:root {
  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-2: #f8faf7;
  --text: #17211b;
  --muted: #66736a;
  --border: #dbe1da;
  --primary: #16624f;
  --primary-2: #0f493a;
  --accent: #b3832c;
  --danger: #b42318;
  --sidebar: #18201c;
  --sidebar-muted: #aeb8b1;
  --shadow: 0 18px 45px rgba(23, 33, 27, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
}

a {
  color: var(--primary);
}

.landing-page {
  background: #f6fbfd;
}

.promo-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  background: #17324d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.promo-strip a {
  color: #b7f04a;
  text-decoration: none;
}

.landing-nav,
.landing-footer {
  width: min(1240px, calc(100% - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 18px 0;
}

.landing-nav {
  border-bottom: 1px solid rgba(22, 98, 79, 0.14);
}

.landing-nav .brand {
  color: var(--text);
  text-decoration: none;
}

.landing-nav nav,
.landing-footer > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-nav nav a,
.landing-footer a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.landing-nav nav a:hover,
.landing-footer a:hover {
  background: #eaf7fb;
  color: #17324d;
}

.hero,
.landing-section {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
  padding: 42px 0 64px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 60px;
  line-height: 1.03;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: #4f6170;
  font-size: 19px;
  line-height: 1.6;
}

.hero-primary {
  background: #0b6f8f;
}

.hero-primary:hover {
  background: #075a76;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  padding: 8px 10px;
  border: 1px solid #c9e8f1;
  border-radius: 999px;
  background: #ffffff;
  color: #244557;
  font-size: 13px;
  font-weight: 900;
}

.product-shot {
  min-height: 470px;
  overflow: hidden;
  border: 1px solid #b9dfeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 50, 77, 0.18);
}

.app-window-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid #d8edf3;
  background: #f7fbfd;
}

.app-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b63;
}

.app-window-bar span:nth-child(2) {
  background: #ffc857;
}

.app-window-bar span:nth-child(3) {
  background: #6ccf7f;
}

.app-window-body {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 430px;
}

.app-window-body aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: #17324d;
}

.app-window-body aside strong {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #b7f04a;
  color: #17324d;
}

.app-window-body aside span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.app-window-body section {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  background: #eaf7fb;
}

.preview-header,
.preview-kpis,
.preview-table,
.mini-report {
  border: 1px solid #c8e5ee;
  border-radius: 8px;
  background: #ffffff;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.preview-header small,
.preview-kpis span,
.mini-report span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: #c8e5ee;
}

.preview-kpis article {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: #ffffff;
}

.preview-kpis strong {
  font-size: 30px;
}

.preview-table {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 12px;
  padding: 18px;
}

.preview-table span {
  height: 14px;
  border-radius: 999px;
  background: #dbeef5;
}

.landing-section {
  padding: 60px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.accounting-band h2 {
  font-size: 42px;
  line-height: 1.1;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.price-card,
.mini-report {
  padding: 24px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(23, 50, 77, 0.08);
}

.feature-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #b7f04a;
  color: #17324d;
  font-weight: 900;
}

.feature-grid p,
.pricing-band p,
.price-card small,
.accounting-band p {
  color: var(--muted);
}

.accounting-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  border-radius: 8px;
  background: #17324d;
  color: #ffffff;
}

.accounting-band .eyebrow,
.accounting-band p {
  color: #d8edf3;
}

.mini-report {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.mini-report div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mini-report div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pricing-band {
  display: block;
}

.price-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.price-card strong {
  font-size: 42px;
  line-height: 1.05;
}

.featured-price {
  border-color: #0b6f8f;
  box-shadow: 0 22px 55px rgba(11, 111, 143, 0.16);
}

.trial-card {
  background: #f4ffe0;
  border-color: #d3ef8d;
}

.landing-footer {
  width: 100%;
  display: block;
  margin-top: 36px;
  padding: 34px max(18px, calc((100vw - 1240px) / 2));
  border-top: 1px solid #c8d9e3;
  background: #eaf3f8;
  color: #062b4f;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-top {
  margin-bottom: 34px;
}

.footer-copy {
  max-width: 820px;
  margin: 0;
  color: #062b4f;
  line-height: 1.45;
}

.footer-region {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 800;
}

.footer-region .flag {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  font-size: 22px;
}

.footer-links,
.footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.landing-footer a,
.footer-cookie-button {
  border: 0;
  background: transparent;
  color: #005a96;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.landing-footer a:hover,
.footer-cookie-button:hover {
  color: #062b4f;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #0b8dd8;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.footer-socials a:hover {
  background: #006da8;
  color: #ffffff;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(460px, calc(100vw - 36px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #b9d6e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner p,
.cookie-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 43, 79, 0.42);
}

.cookie-dialog {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(6, 43, 79, 0.25);
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.pricing-hero {
  width: min(980px, calc(100% - 36px));
  display: grid;
  gap: 16px;
  margin: 0 auto;
  padding: 64px 0 28px;
  text-align: center;
}

.pricing-hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.08;
}

.pricing-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.pricing-toggle {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid #c8e5ee;
  border-radius: 999px;
  background: #ffffff;
  color: #244557;
  font-size: 13px;
}

.plan-grid {
  width: min(1240px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 28px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(23, 50, 77, 0.08);
}

.featured-plan {
  border: 2px solid #0b6f8f;
  box-shadow: 0 24px 70px rgba(11, 111, 143, 0.16);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #b7f04a;
  color: #17324d;
  font-size: 12px;
  font-weight: 900;
}

.plan-name {
  color: #0b6f8f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
}

.plan-card p,
.plan-card li {
  color: var(--muted);
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.comparison-section {
  padding-top: 24px;
}

.comparison-table {
  display: grid;
  overflow: hidden;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(23, 50, 77, 0.08);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, 1fr);
  gap: 1px;
  border-bottom: 1px solid #e4eef2;
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span,
.comparison-row strong {
  padding: 15px;
}

.comparison-head {
  background: #17324d;
  color: #ffffff;
}

.pricing-faq {
  padding-top: 28px;
}

.public-hero {
  width: min(1240px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: 34px;
  align-items: center;
  margin: 0 auto;
  padding: 58px 0;
}

.public-hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.08;
}

.public-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.public-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 45px rgba(23, 50, 77, 0.08);
}

.public-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-list li {
  padding: 12px;
  border-radius: 8px;
  background: #f6fbfd;
  color: #244557;
  font-weight: 800;
}

.split-section {
  width: min(1240px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin: 0 auto;
  padding: 44px 0;
}

.policy-page {
  width: min(940px, calc(100% - 36px));
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 64px 0 36px;
}

.policy-page h1 {
  max-width: 780px;
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.policy-page h2 {
  margin-top: 18px;
  font-size: 22px;
}

.policy-page p {
  margin: 0;
  color: #4f6170;
  font-size: 16px;
  line-height: 1.7;
}

.policy-note {
  padding: 14px 16px;
  border: 1px solid #b9dfeb;
  border-radius: 8px;
  background: #ffffff;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--primary-2);
}

button:disabled,
button:disabled:hover {
  background: #e5edf2;
  color: #7b8b98;
  cursor: not-allowed;
  box-shadow: none;
}

button.secondary,
button.ghost,
.button.secondary {
  background: #eef3ee;
  color: var(--text);
}

button.secondary:hover,
button.ghost:hover,
.button.secondary:hover {
  background: #e0e8e1;
  color: var(--text);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 700;
  line-height: 1.45;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-wrap: anywhere;
}

.consent-check input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.consent-check a {
  overflow-wrap: anywhere;
}

.app-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  background: #213a61;
  color: #ffffff;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 44px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.app-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-logo-img {
  max-width: 132px;
  max-height: 34px;
  object-fit: contain;
}

.app-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #f5f8ff;
  font-size: 12px;
  font-weight: 800;
}

.app-header-actions a {
  color: #f5f8ff;
  text-decoration: none;
}

.app-header-actions a:hover {
  color: #bfe4ff;
}

.sidebar {
  position: fixed;
  inset: 44px auto 0 0;
  width: 184px;
  padding: 16px 10px;
  border-right: 1px solid #d9e0ea;
  background: #ffffff;
  color: #32455c;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand.large {
  margin-bottom: 30px;
}

.brand-logo-full {
  display: block;
  width: 178px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.landing-page .brand .brand-logo-full + div,
.auth-page .brand .brand-logo-full + div {
  display: none;
}

.landing-nav .brand-logo-full {
  width: 210px;
}

.auth-page .brand-logo-full {
  width: 240px;
}

.app-brand-logo {
  width: 122px;
  max-height: 48px;
}

.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #213a61;
  color: #ffffff;
  font-weight: 900;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
}

.brand strong {
  display: block;
  color: #24384f;
  font-size: 13px;
}

.brand small,
.sidebar-footer small {
  display: block;
  color: #718299;
  margin-top: 3px;
}

nav {
  display: grid;
  gap: 6px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #495d73;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

nav a span {
  width: 16px;
  display: inline-flex;
  justify-content: center;
  color: #6d7f94;
  font-size: 13px;
}

nav a:hover,
nav a.active {
  background: #eef4ff;
  color: #213a61;
}

nav a:hover span,
nav a.active span {
  color: #213a61;
}

.nav-folder {
  display: grid;
  gap: 4px;
}

.nav-folder summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #495d73;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.nav-folder summary::-webkit-details-marker {
  display: none;
}

.nav-folder summary::after {
  content: "▾";
  margin-left: auto;
  color: #6d7f94;
  font-size: 10px;
}

.nav-folder summary span {
  width: 16px;
  display: inline-flex;
  justify-content: center;
}

.nav-folder[open] summary,
.nav-folder summary:hover {
  background: #eef4ff;
  color: #213a61;
}

.nav-folder a {
  margin-left: 14px;
  min-height: 30px;
  padding-block: 6px;
  font-size: 12px;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 8px;
  border-top: 1px solid #edf0f4;
}

.main {
  min-height: 100vh;
  margin-left: 184px;
  padding: 68px 24px 28px;
  background: #ffffff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -2px -24px 18px;
  padding: 0 24px 18px;
  border-bottom: 1px solid #e1e6ee;
  background: #ffffff;
}

.module-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-action-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.module-action-menu button {
  width: 100%;
  justify-content: flex-start;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f2a44;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.module-action-menu button:hover {
  background: #eef6ff;
  color: #102a4c;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 32px;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
}

h3 {
  margin-bottom: 10px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.compact-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi,
.panel {
  background: var(--surface);
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  box-shadow: none;
}

.kpi {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.kpi span,
.kpi small {
  color: var(--muted);
}

.kpi strong {
  font-size: 26px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calendar-layout {
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
}

.inventory-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.panel {
  padding: 18px;
}

.wide-panel {
  grid-column: span 2;
}

.calendar-layout .wide-panel {
  grid-column: auto;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}

.panel-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.calendar-panel-header {
  align-items: flex-start;
}

.calendar-panel-header > div:first-child {
  display: grid;
  gap: 4px;
}

.calendar-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.compact-button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.stack {
  display: grid;
  gap: 13px;
}

.compact-form {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.auth-help {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.auth-help summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-button {
  background: #b42318;
  color: #ffffff;
}

.danger-button:hover {
  background: #912018;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.activity-list,
.audit-list,
.table-list {
  display: grid;
  gap: 10px;
}

.activity-item,
.audit-row,
.account-row,
.table-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.activity-item.alert-item {
  color: var(--text);
  text-decoration: none;
}

.activity-item small,
.audit-row small,
.account-row small {
  color: var(--muted);
}

.account-row,
.table-row,
.table-head {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
}

.row-button {
  width: 100%;
  min-height: 0;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.row-button:hover {
  background: #eef3ee;
  color: var(--text);
}

.search-input {
  margin-bottom: 12px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.module-tabs {
  display: flex;
  gap: 22px;
  margin: -8px 0 12px;
  border-bottom: 1px solid #dfe6ef;
}

.module-tabs a {
  padding: 10px 0;
  color: #718299;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.module-tabs a.active,
.module-tabs a:hover {
  border-bottom: 2px solid #213a61;
  color: #213a61;
}

.module-actions {
  display: inline-flex;
  gap: 8px;
}

.rental-editor-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
}

.rental-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.rental-form label {
  display: grid;
  gap: 6px;
  color: #40546b;
  font-size: 12px;
  font-weight: 900;
}

.rental-form .wide {
  grid-column: 1 / -1;
}

.rental-form textarea {
  resize: vertical;
}

.rental-row.row-button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.rental-row.row-button:hover {
  background: #f7faff;
}

.rental-empty {
  min-width: 320px;
}

.filter-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  margin-bottom: 12px;
  border: 1px solid #dfe6ef;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.filter-row > * {
  min-height: 34px;
  margin: 0;
  border: 0;
  border-right: 1px solid #dfe6ef;
  border-radius: 0;
}

.filter-row > *:last-child {
  border-right: 0;
}

.rental-table-panel {
  padding: 0;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #ffffff;
  overflow: auto;
}

.rental-table {
  min-width: 980px;
}

.rental-head,
.rental-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  color: #516277;
  font-size: 13px;
}

.rental-head {
  color: #495d73;
  font-size: 12px;
  font-weight: 900;
}

.rental-row a {
  color: #2b7cc7;
  font-weight: 800;
  text-decoration: none;
}

.reservation-table .rental-head,
.reservation-table .rental-row {
  grid-template-columns: 60px 1.2fr 90px 130px 130px 120px 120px 110px 110px;
}

.rental-items-table .rental-head,
.rental-items-table .rental-row {
  grid-template-columns: 28px 70px 140px 86px 100px 130px 110px 90px 1.5fr 120px 120px 90px;
}

.payment-table .rental-head,
.payment-table .rental-row {
  grid-template-columns: 50px 90px 140px 110px 130px 100px 100px 90px 140px 140px 120px 110px 110px;
}

.customer-rental-table .rental-head,
.customer-rental-table .rental-row {
  grid-template-columns: 60px 1fr 1fr 1.2fr 120px 120px 120px 90px;
}

.reports-rental-table .rental-head,
.reports-rental-table .rental-row {
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.5fr) 130px 90px;
}

.platform-table .rental-head,
.platform-table .rental-row {
  grid-template-columns: minmax(190px, 1.25fr) 100px 150px 70px minmax(210px, 1.15fr) 150px 150px;
}

.platform-actions {
  display: grid;
  gap: 8px;
}

.compact-button {
  min-height: 34px;
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
}

.status-pill {
  width: max-content;
  padding: 3px 7px;
  border-radius: 5px;
  background: #edf2f7;
  color: #506176;
  font-size: 11px;
  font-weight: 900;
}

.status-pill.open {
  background: #fff1d6;
  color: #9a5b00;
}

.status-pill.rental {
  background: #dff5e7;
  color: #16834c;
}

.status-pill.quote {
  background: #eef2f7;
  color: #506176;
}

.status-pill.dirty {
  background: #dcf6e6;
  color: #138044;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  color: #718299;
  font-size: 13px;
}

.table-head {
  display: grid;
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty,
.muted {
  color: var(--muted);
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.weekday-row {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.day {
  position: relative;
  min-height: 118px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  overflow: visible;
}

.day:hover {
  z-index: 20;
}

.day-number {
  color: var(--text);
}

.today-day {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.today-day .day-number {
  color: #1d4ed8;
}

.muted-day {
  opacity: 0.45;
}

.calendar-event {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 0;
  margin-top: 7px;
  padding: 7px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.event-delete {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
}

.event-delete:hover {
  background: #fee4e2;
}

.calendar-event:hover {
  background: #eef3ee;
  color: var(--text);
  z-index: 30;
}

.event-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.event-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.event-dots i {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  flex: 0 0 auto;
}

.event-popover {
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  z-index: 80;
  display: none;
  width: 240px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--text);
  white-space: normal;
}

.calendar-event:hover .event-popover,
.calendar-event:focus .event-popover {
  display: grid;
  gap: 5px;
}

.event-popover small,
.event-popover em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.event-popover strong {
  font-size: 14px;
}

.event-popover em {
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.people-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
}

.assignee-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, max-content));
  align-items: start;
  gap: 5px;
  max-height: 94px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.person-chip,
.person-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.person-check {
  cursor: pointer;
}

.person-check input {
  width: 11px;
  height: 11px;
  min-height: 0;
  margin: 0;
}

.person-chip i,
.person-check i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.inventory-head,
.inventory-row {
  display: grid;
  grid-template-columns: 90px minmax(170px, 1.2fr) 90px 110px 130px 90px 80px 130px 130px 130px;
  gap: 12px;
  align-items: center;
  min-width: 1120px;
}

.inventory-head {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  color: #495d73;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-table,
.history-list,
.used-list {
  display: grid;
  gap: 0;
  overflow: auto;
}

.inventory-row,
.used-item,
.history-row {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #ffffff;
}

button.inventory-row {
  width: 100%;
  min-height: 0;
  color: var(--text);
  text-align: left;
}

.inventory-row.out-of-stock {
  border-color: #f3b4ad;
  background: #fff7f6;
}

.inventory-row.low-stock {
  border-color: #e8c266;
  background: #fffbeb;
}

.inventory-row.out-of-stock span:nth-child(2) {
  color: var(--danger);
  font-weight: 900;
}

.user-head,
.user-row {
  grid-template-columns: 1fr 1.4fr 0.8fr 0.7fr 0.8fr;
}

.report-head,
.report-row {
  grid-template-columns: 0.8fr repeat(4, 1fr);
}

.account-code-head,
.account-code-row {
  grid-template-columns: 90px minmax(0, 1fr) 120px 80px;
}

.bank-transaction-head,
.bank-transaction-row {
  grid-template-columns: 100px 140px minmax(0, 1.4fr) 100px 110px 120px minmax(170px, 0.8fr);
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-actions button {
  padding: 7px 9px;
  font-size: 0.78rem;
}

.status-good,
.status-bad {
  font-weight: 900;
}

.status-good {
  color: #16624f;
}

.status-bad {
  color: var(--danger);
}

.audit-panel {
  margin-top: 18px;
}

.audit-card {
  gap: 12px;
  padding: 16px;
  background: #ffffff;
}

.audit-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.audit-card-head > div {
  display: grid;
  gap: 5px;
}

.audit-card-head strong {
  color: #102a45;
  font-size: 15px;
  line-height: 1.35;
}

.audit-action {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8f6fb;
  color: #0b6f8f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-card-head small,
.audit-meta {
  color: #607485;
}

.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.audit-meta span {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f3f8fb;
}

.audit-change-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce9f0;
  border-radius: 8px;
}

.audit-change-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 1px;
  background: #dce9f0;
}

.audit-change-row + .audit-change-row {
  border-top: 1px solid #dce9f0;
}

.audit-change-row span,
.audit-change-row del,
.audit-change-row strong {
  min-width: 0;
  padding: 10px 12px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.audit-change-row span {
  color: #50677a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.audit-change-row del {
  color: #9a3412;
  text-decoration: none;
}

.audit-change-row del::before {
  content: "Was: ";
  color: #607485;
  font-weight: 900;
}

.audit-change-row strong {
  color: #16624f;
}

.audit-change-row strong::before {
  content: "Now: ";
  color: #607485;
  font-weight: 900;
}

.audit-detail-text {
  padding: 12px;
  border: 1px solid #dce9f0;
  border-radius: 8px;
  background: #f8fbfd;
  color: #50677a;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.inventory-row small,
.used-item small,
.history-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.stock-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  gap: 10px;
}

.customer-list {
  display: grid;
  gap: 0;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.customer-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  background: #ffffff;
}

.customer-card:last-child {
  border-bottom: 0;
}

.customer-open {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  gap: 12px;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #516277;
  text-align: left;
}

.customer-open:hover {
  background: transparent;
  color: #213a61;
}

.customer-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  color: #718299;
  font-size: 13px;
}

.customer-card p {
  margin: 0;
  color: #718299;
  font-size: 13px;
}

.customer-card .button-row {
  justify-content: flex-end;
}

.customer-list .empty {
  padding: 14px;
}

.customer-profile-page {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid #dfe6ef;
  background: #ffffff;
}

.profile-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 10px;
}

.profile-titlebar h2 {
  margin: 0;
  color: #2f4056;
  font-size: 20px;
}

.profile-titlebar h2 a {
  color: #2b7cc7;
  text-decoration: none;
}

.profile-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border-bottom: 1px solid #dfe6ef;
}

.profile-tabs button {
  min-height: 34px;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #718299;
  font-size: 13px;
  font-weight: 800;
}

.profile-tabs button.active,
.profile-tabs button:hover {
  border-bottom-color: #213a61;
  color: #213a61;
}

.profile-tab-panel {
  display: none;
  padding: 14px 0;
}

.profile-tab-panel.active {
  display: block;
}

.profile-form {
  display: grid;
  gap: 18px;
}

.profile-section {
  display: grid;
  gap: 12px;
}

.profile-section h3 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5eaf0;
  color: #32445a;
  font-size: 15px;
}

.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 24px;
}

.profile-fields label {
  display: grid;
  gap: 6px;
  color: #40546b;
  font-size: 12px;
  font-weight: 800;
}

.profile-fields .span-2 {
  grid-column: 1 / -1;
}

.profile-savebar {
  display: flex;
  gap: 8px;
}

.profile-relation {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(100px, auto));
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: transparent;
  color: #516277;
  text-align: left;
}

.profile-relation strong {
  color: #213a61;
}

.table-list {
  gap: 0;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  overflow: hidden;
}

.table-list .table-row {
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #ffffff;
}

.table-list .table-row:last-child {
  border-bottom: 0;
}

.table-list .table-row:hover {
  background: #f8fbff;
}

.table-head {
  padding: 12px 14px;
  border: 1px solid #dfe6ef;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #ffffff;
  color: #495d73;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.table-head + .table-list {
  border-radius: 0 0 8px 8px;
}

.document-register-row,
.document-head {
  grid-template-columns: 130px 1fr 1.2fr 100px 120px;
}

/* legacy-compatible customer grid */
.customer-list[data-legacy] {
  display: grid;
  gap: 12px;
}

.used-item,
.line-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.line-entry {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.add-line-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: #15803d;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.line-entry > .add-line-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.line-entry > label:first-of-type {
  padding-right: 48px;
}

.inline-add {
  align-self: stretch;
}

.line-item-row {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.icon-button {
  min-height: 34px;
  padding: 0 10px;
  background: #eef3ee;
  color: var(--text);
}

.history-row {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  color: var(--text);
  text-align: left;
}

.history-row:hover {
  background: #eef3ee;
  color: var(--text);
}

.document-print {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

.doc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-header,
.doc-grid,
.signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.doc-header {
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 3px solid #111827;
}

.doc-header div:last-child {
  text-align: right;
}

.doc-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.doc-meta span {
  color: #16624f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3ee;
  color: #16624f !important;
  font-weight: 900;
}

.doc-header p,
.document-print p {
  margin-bottom: 0;
  color: #4b5563;
}

.doc-logo {
  max-width: 120px;
  max-height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
}

.doc-grid section {
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.doc-table th,
.doc-table td {
  padding: 10px;
  border: 1px solid #d1d5db;
  text-align: left;
}

.doc-table th {
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
}

.doc-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef3ee;
}

.compact-total {
  margin-top: 4px;
}

.barcode-preview {
  margin-top: 12px;
}

.barcode-label {
  width: max-content;
  max-width: 100%;
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 10px;
  border: 1px dashed #9ca3af;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
}

.barcode-label .qr-box {
  width: 132px;
  height: 132px;
}

.barcode-label svg {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.barcode-label .qr-box svg {
  width: 132px;
  height: 132px;
  display: block;
}

.barcode-label small {
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.barcode-print {
  padding: 16px;
}

.scanner-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #f8fbff;
}

#barcodeVideo {
  width: 100%;
  max-height: 260px;
  border-radius: 8px;
  background: #111827;
  object-fit: cover;
}

.delivery-note-style {
  gap: 16px;
  border: 1px solid #9ca3af;
  border-radius: 0;
  font-size: 12px;
}

.delivery-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.delivery-header h2 {
  margin: 0 0 8px;
  color: #374151;
  font-size: 36px;
  letter-spacing: 0;
}

.delivery-header p {
  margin: 2px 0;
}

.delivery-logo-box {
  min-height: 84px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 10px;
  border: 2px solid #6b7280;
  border-radius: 12px;
  text-align: center;
}

.delivery-info-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 42px;
}

.delivery-box {
  border: 1px solid #9ca3af;
}

.delivery-box dl {
  display: grid;
  grid-template-columns: 115px 1fr;
  margin: 0;
}

.delivery-box dt,
.delivery-box dd {
  min-height: 24px;
  margin: 0;
  padding: 5px 8px;
  border-bottom: 1px solid #d1d5db;
}

.delivery-box dt {
  background: #f3f4f6;
  color: #374151;
  font-weight: 900;
  text-transform: uppercase;
}

.delivery-note-style .doc-table th {
  background: #e5e7eb;
  color: #374151;
}

.office-use {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #6b7280;
}

.office-use strong {
  width: 100%;
  text-transform: uppercase;
}

.office-use label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.office-use label span {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 3px solid #111827;
}

.terms-line {
  padding: 8px;
  border-top: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  text-transform: uppercase;
}

.delivery-note-style .signature-row {
  grid-template-columns: 1fr 1fr 1fr;
}

.small-print {
  font-size: 11px;
  font-style: italic;
}

.signature-row {
  margin-top: 20px;
}

.signature-row span {
  padding-top: 34px;
  border-top: 1px solid #111827;
  color: #4b5563;
}

.bar-chart {
  display: grid;
  gap: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 130px;
  gap: 12px;
  align-items: center;
}

.bar-row div {
  height: 12px;
  border-radius: 999px;
  background: #e6ece7;
  overflow: hidden;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar-row i.good {
  background: #1f7a5f;
}

.bar-row i.warn {
  background: #c58b2f;
}

.bar-row i.bad {
  background: var(--danger);
}

.preview-box {
  min-height: 220px;
}

.print-window {
  padding: 24px;
  background: #ffffff;
}

.print-window .doc-actions {
  display: none;
}

.print-box {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(22, 98, 79, 0.08), transparent 38%),
    var(--bg);
}

.auth-shell {
  width: min(100%, 520px);
}

.auth-panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.subscription-shell {
  width: min(100%, 720px);
}

.subscription-panel {
  display: grid;
  gap: 18px;
}

.subscription-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.payment-note {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #cbdde7;
  border-radius: 8px;
  background: #f3f8fb;
}

.payment-note strong {
  color: #102a45;
}

.payment-note span {
  color: #607485;
  line-height: 1.45;
}

.notice {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--primary);
  font-weight: 700;
}

.notice.error {
  color: var(--danger);
}

.notice-card,
.app-notice-toast {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #b9dce4;
  border-radius: 8px;
  background: #f5fcff;
  box-shadow: 0 14px 34px rgba(8, 45, 70, 0.12);
  color: #102a45;
}

.notice-card:empty {
  display: none;
}

.notice-card.error,
.app-notice-toast.error {
  border-color: #f1b8b4;
  background: #fff6f5;
  color: #8a1f17;
}

.notice-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #d9ff66;
  color: #102a45;
  font-weight: 900;
  line-height: 1;
}

.notice-card.error .notice-icon,
.app-notice-toast.error .notice-icon {
  background: #fee4e2;
  color: #b42318;
}

.notice-card strong,
.app-notice-toast strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  color: inherit;
}

.notice-card small,
.app-notice-toast small {
  display: block;
  color: #607485;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.notice-card.error small,
.app-notice-toast.error small {
  color: #9f3b32;
}

.app-notice-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 260;
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.app-notice-toast {
  pointer-events: auto;
  animation: noticeIn 160ms ease-out;
}

.app-notice-toast button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #cbdde7;
  border-radius: 8px;
  background: #ffffff;
  color: #607485;
  box-shadow: none;
}

@keyframes noticeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 23, 40, 0.48);
  backdrop-filter: blur(6px);
}

.app-confirm-dialog {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(185, 213, 227, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 85px rgba(6, 23, 40, 0.32);
}

.app-confirm-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9ff66, #70d7c7);
  color: #102a45;
  font-weight: 900;
}

.app-confirm-icon.danger {
  background: #fee4e2;
  color: #b42318;
}

.app-confirm-dialog h2 {
  margin: 0 0 8px;
  color: #102a45;
  font-size: 22px;
}

.app-confirm-dialog p {
  margin: 0;
  color: #607485;
  line-height: 1.55;
}

.app-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 23, 40, 0.48);
  backdrop-filter: blur(6px);
}

.settings-overlay[hidden] {
  display: none;
}

.settings-dialog {
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(185, 213, 227, 0.9);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 30px 85px rgba(6, 23, 40, 0.32);
}

.settings-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #dce9f0;
  background:
    linear-gradient(135deg, rgba(232, 246, 251, 0.96), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.settings-dialog-header h2 {
  margin: 0;
  color: #102a45;
  font-size: 26px;
}

.settings-dialog-header small {
  display: block;
  margin-top: 5px;
  color: #607485;
  font-weight: 700;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  padding: 20px 24px 24px;
}

.settings-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid #dce9f0;
  border-radius: 8px;
  background: #fbfdff;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h3 {
  margin: 0 0 6px;
  color: #102a45;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.theme-toggle-card {
  min-height: 86px;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 16px;
  border: 1px solid #b9d5e3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 246, 251, 0.94)),
    #ffffff;
  color: #102a45;
  box-shadow: none;
}

.theme-toggle-card span {
  color: #0b6f8f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-toggle-card strong {
  font-size: 20px;
}

.theme-toggle-card[aria-pressed="true"] {
  border-color: #2c4961;
  background:
    linear-gradient(135deg, rgba(14, 34, 52, 0.96), rgba(18, 67, 76, 0.96)),
    #102a45;
  color: #ffffff;
}

.theme-toggle-card[aria-pressed="true"] span {
  color: #d9ff66;
}

.settings-status {
  min-height: 18px;
  margin: 0;
  color: #607485;
  font-size: 13px;
  font-weight: 700;
}

.settings-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-feature-list span {
  padding: 8px 10px;
  border: 1px solid #cbdde7;
  border-radius: 999px;
  background: #ffffff;
  color: #0b6f8f;
  font-size: 12px;
  font-weight: 900;
}

/* Public marketing polish */
.landing-page {
  background:
    radial-gradient(circle at top left, rgba(112, 215, 199, 0.22), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(217, 255, 102, 0.18), transparent 26%),
    #f6fbfd;
}

.landing-page main {
  overflow: hidden;
}

.landing-nav {
  position: relative;
  z-index: 30;
  width: min(1240px, calc(100% - 36px));
  margin-top: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(198, 220, 230, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(16, 42, 69, 0.08);
  backdrop-filter: blur(14px);
}

.landing-nav nav a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #17324d;
}

.landing-nav nav a:hover {
  background: #e8f6fb;
  color: #0b6f8f;
}

.brand-mark {
  background: linear-gradient(135deg, #102a45, #0b6f8f);
  color: #d9ff66;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.marketing-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  min-height: 680px;
  padding-top: 48px;
}

.hero-copy h1,
.public-hero h1,
.pricing-hero h1 {
  letter-spacing: 0;
  color: #102a45;
}

.hero-copy h1 {
  font-size: 64px;
}

.hero-copy p,
.section-heading p,
.public-hero p,
.plan-card p {
  color: #536878;
}

.eyebrow {
  color: #0b6f8f;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  margin: 0;
}

.hero-visual img,
.visual-band img,
.document-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual img {
  filter: drop-shadow(0 30px 55px rgba(16, 42, 69, 0.24));
}

.button {
  border-radius: 8px;
  background: #102a45;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(16, 42, 69, 0.16);
}

.button:hover {
  background: #0b6f8f;
  color: #ffffff;
}

.button.secondary {
  border: 1px solid #b9d5e3;
  background: #ffffff;
  color: #102a45;
  box-shadow: none;
}

.button.secondary:hover {
  border-color: #0b6f8f;
  background: #e8f6fb;
  color: #0b6f8f;
}

.hero-primary,
.hero-primary:hover {
  background: linear-gradient(135deg, #0b6f8f, #12a594);
}

.compact-section {
  padding: 26px 0;
}

.logo-cloud {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #536878;
}

.logo-cloud strong,
.hero-points span {
  border-color: #c9e8f1;
  background: #ffffff;
  color: #102a45;
  box-shadow: 0 12px 30px rgba(16, 42, 69, 0.06);
}

.logo-cloud strong {
  padding: 10px 14px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.centered {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.fancy-grid article,
.plan-card,
.public-card,
.security-panel,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(185, 213, 227, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 253, 255, 0.96)),
    #ffffff;
  box-shadow: 0 20px 55px rgba(16, 42, 69, 0.09);
}

.fancy-grid article::after,
.plan-card::after,
.public-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0b6f8f, #12a594, #d9ff66);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9ff66, #70d7c7);
  color: #102a45;
  font-size: 13px;
}

.visual-band {
  width: min(1240px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(420px, 1fr);
  gap: 38px;
  align-items: center;
  margin: 38px auto;
  padding: 42px;
  border: 1px solid rgba(185, 213, 227, 0.82);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 42, 69, 0.1);
}

.visual-band.reverse {
  grid-template-columns: minmax(420px, 1fr) minmax(0, 0.75fr);
}

.visual-band h2,
.document-showcase h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.visual-band p {
  color: #536878;
  line-height: 1.65;
}

.text-link {
  color: #0b6f8f;
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.rich-band {
  background:
    linear-gradient(135deg, #102a45, #0b6f8f);
  box-shadow: 0 24px 70px rgba(16, 42, 69, 0.2);
}

.pro-report {
  background: #ffffff;
}

.report-chart {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  height: 98px;
  gap: 10px !important;
  padding: 12px 0 0 !important;
  border-bottom: 0 !important;
}

.report-chart i {
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #12a594, #0b6f8f);
}

.report-chart i:nth-child(1) { height: 42%; }
.report-chart i:nth-child(2) { height: 68%; }
.report-chart i:nth-child(3) { height: 54%; }
.report-chart i:nth-child(4) { height: 82%; }
.report-chart i:nth-child(5) { height: 74%; }
.report-chart i:nth-child(6) { height: 94%; }

.document-showcase {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: center;
  margin: 0 auto;
}

.showcase-list {
  display: grid;
  gap: 14px;
}

.showcase-list article,
.contact-method {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 42, 69, 0.06);
}

.showcase-list span,
.contact-method span {
  color: #536878;
}

.enhanced-pricing {
  max-width: 1040px;
  padding-top: 74px;
}

.plan-grid {
  align-items: stretch;
}

.plan-card {
  min-height: 100%;
}

.featured-plan {
  transform: translateY(-10px);
  border-color: #0b6f8f;
  background:
    linear-gradient(180deg, rgba(232, 246, 251, 0.72), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.ultimate-plan {
  background:
    linear-gradient(180deg, rgba(16, 42, 69, 0.06), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.comparison-table {
  border-radius: 8px;
}

.comparison-head {
  background: linear-gradient(135deg, #102a45, #0b6f8f);
}

.feature-hero,
.security-hero,
.contact-hero {
  min-height: 520px;
}

.metric-card,
.security-panel,
.contact-card {
  padding: 30px;
  border-radius: 8px;
}

.metric-card strong {
  color: #102a45;
  font-size: 76px;
  line-height: 1;
}

.tiny-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  height: 110px;
  gap: 12px;
}

.tiny-bars i {
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #d9ff66, #12a594);
}

.tiny-bars i:nth-child(1) { height: 50%; }
.tiny-bars i:nth-child(2) { height: 78%; }
.tiny-bars i:nth-child(3) { height: 64%; }
.tiny-bars i:nth-child(4) { height: 94%; }

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.workflow-steps article {
  padding: 24px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(16, 42, 69, 0.08);
}

.workflow-steps span,
.shield-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9ff66, #70d7c7);
  color: #102a45;
  font-weight: 900;
}

.shield-mark {
  width: 70px;
  height: 70px;
  font-size: 36px;
}

.highlight-card {
  background:
    linear-gradient(135deg, rgba(217, 255, 102, 0.22), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.contact-details-card {
  align-content: start;
}

.policy-page {
  margin-top: 36px;
  padding: 48px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(16, 42, 69, 0.08);
}

.policy-page h1 {
  color: #102a45;
  font-size: 48px;
}

.policy-page h2 {
  margin-top: 22px;
  color: #0b6f8f;
}

.policy-note {
  padding: 14px 16px;
  border: 1px solid #d6e8ee;
  border-radius: 8px;
  background: #f6fbfd;
}

.auth-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(217, 255, 102, 0.24), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(112, 215, 199, 0.24), transparent 26%),
    linear-gradient(135deg, #102a45, #0b6f8f);
}

.auth-shell {
  position: relative;
  width: min(100%, 520px);
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: -42px;
  z-index: -1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(1px);
}

.auth-panel {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(6, 23, 40, 0.3);
}

.auth-panel form,
.auth-panel label,
.auth-panel input,
.auth-panel select,
.auth-panel button {
  max-width: 100%;
}

body[data-page="register"] .auth-shell {
  width: min(100%, 560px);
}

.auth-panel h1 {
  margin-bottom: 6px;
  color: #102a45;
  font-size: 38px;
}

.auth-panel input,
.auth-panel select {
  background: #f8fbfd;
}

body:not(.landing-page):not(.auth-page) {
  position: relative;
  background:
    radial-gradient(circle at 18% 0%, rgba(18, 165, 148, 0.10), transparent 28%),
    linear-gradient(180deg, #f5f8fb 0%, #eef4f8 100%);
  color: #172536;
}

body:not(.landing-page):not(.auth-page)::before {
  content: "";
  position: absolute;
  inset: 56px 0 auto 0;
  z-index: -1;
  height: 240px;
  background: linear-gradient(135deg, #102a45, #0b6f8f);
  pointer-events: none;
}

.app-header {
  height: 56px;
  padding: 0 22px;
  background: #102a45;
  box-shadow: 0 10px 28px rgba(6, 23, 40, 0.20);
}

.app-header-left,
.app-header-title {
  display: flex;
  align-items: center;
}

.app-header-left {
  gap: 12px;
}

.app-header-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: #ffffff;
}

.app-header-title strong {
  font-size: 13px;
}

.app-header-title small {
  color: #a8cadb;
  font-size: 11px;
  font-weight: 800;
}

.app-logo {
  width: 138px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #102a45;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.app-logo-img {
  max-width: 128px;
  max-height: 30px;
}

.app-header-actions {
  gap: 10px;
}

.app-header-actions a,
.user-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8ff;
}

.app-header-actions a:hover {
  background: rgba(217, 255, 102, 0.15);
  color: #d9ff66;
}

.user-pill {
  background: rgba(255, 255, 255, 0.14);
}

.sidebar {
  inset: 56px auto 0 0;
  width: 238px;
  padding: 18px 12px;
  border-right: 0;
  background: #0f2035;
  color: #d8e7ef;
  box-shadow: 18px 0 42px rgba(6, 23, 40, 0.12);
}

.sidebar .brand {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar .brand strong {
  color: #ffffff;
}

.sidebar .brand small,
.sidebar-footer small {
  color: #a8cadb;
}

.sidebar .brand-logo-full {
  width: 124px;
  max-height: 50px;
  padding: 3px;
  border-radius: 8px;
  background: #ffffff;
}

.sidebar .brand-mark,
.sidebar .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.sidebar .brand-mark {
  background: linear-gradient(135deg, #d9ff66, #70d7c7);
  color: #102a45;
}

.sidebar nav {
  gap: 5px;
}

.sidebar nav a,
.nav-folder summary {
  min-height: 40px;
  border-radius: 8px;
  color: #c8d9e6;
}

.sidebar nav a span,
.nav-folder summary span {
  width: 26px;
  height: 24px;
  align-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #9cc4d8;
  font-size: 10px;
  font-weight: 900;
}

.sidebar nav a:hover,
.sidebar nav a.active,
.nav-folder[open] summary,
.nav-folder summary:hover {
  background: rgba(217, 255, 102, 0.12);
  color: #ffffff;
}

.sidebar nav a:hover span,
.sidebar nav a.active span,
.nav-folder[open] summary span,
.nav-folder summary:hover span {
  background: #d9ff66;
  color: #102a45;
}

.nav-folder summary::after {
  content: "v";
  color: #9cc4d8;
}

.nav-folder[open] summary::after {
  content: "^";
}

.nav-folder a {
  margin-left: 18px;
}

.sidebar-footer {
  margin: auto 0 0;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-footer button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar-footer button.ghost:hover {
  background: #d9ff66;
  color: #102a45;
}

.sidebar-settings-button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
  text-align: left;
}

.sidebar-settings-button span {
  width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #9cc4d8;
  font-size: 10px;
  font-weight: 900;
}

.sidebar-settings-button strong {
  font-size: 13px;
}

.sidebar-settings-button:hover {
  background: rgba(217, 255, 102, 0.12);
  color: #ffffff;
}

.sidebar-settings-button:hover span {
  background: #d9ff66;
  color: #102a45;
}

.main {
  margin-left: 238px;
  padding: 88px 30px 34px;
  background: transparent;
}

.topbar {
  margin: 0 0 22px;
  padding: 22px 24px;
  border: 1px solid rgba(185, 213, 227, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 255, 0.92)),
    #ffffff;
  box-shadow: 0 20px 55px rgba(16, 42, 69, 0.10);
}

.topbar h1 {
  color: #102a45;
  font-size: 34px;
}

.topbar .eyebrow {
  color: #0b6f8f;
  letter-spacing: 0.08em;
}

.kpi,
.panel,
.rental-editor-panel,
.rental-table-panel,
.customer-list,
.comparison-table {
  border: 1px solid rgba(185, 213, 227, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(16, 42, 69, 0.08);
}

.panel {
  padding: 20px;
}

.panel-header {
  margin-bottom: 18px;
  border-bottom-color: #e5eff4;
}

.panel-header h2 {
  color: #102a45;
}

.panel-header span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef7fb;
  color: #0b6f8f;
  font-size: 11px;
  text-transform: uppercase;
}

.kpi {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0b6f8f, #12a594, #d9ff66);
}

.kpi span {
  color: #607485;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi strong {
  color: #102a45;
  font-size: 30px;
}

.kpi small {
  color: #607485;
}

button,
.button {
  border-radius: 8px;
  background: linear-gradient(135deg, #0b6f8f, #12a594);
  box-shadow: 0 10px 22px rgba(11, 111, 143, 0.18);
}

button:hover,
.button:hover {
  background: #102a45;
}

button.secondary,
button.ghost,
.button.secondary {
  border: 1px solid #cbdde7;
  background: #ffffff;
  color: #102a45;
  box-shadow: none;
}

button.secondary:hover,
button.ghost:hover,
.button.secondary:hover {
  border-color: #0b6f8f;
  background: #e8f6fb;
  color: #0b6f8f;
}

input,
select,
textarea {
  border-color: #cbdde7;
  background: #fbfdff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(18, 165, 148, 0.16);
  border-color: #12a594;
}

.search-input {
  min-height: 44px;
  border-color: #b9d5e3;
  background: #ffffff;
}

.activity-item,
.audit-row,
.account-row,
.table-row,
.customer-card,
.used-item,
.history-row {
  border-color: #dce9f0;
  background: #fbfdff;
}

.activity-item:hover,
.row-button:hover,
.customer-card:hover,
.history-row:hover,
button.inventory-row:hover,
.rental-row.row-button:hover {
  background: #eef8fb;
}

.table-head,
.inventory-head,
.rental-head {
  color: #50677a;
  background: #f3f8fb;
}

.module-tabs {
  gap: 8px;
  border-bottom: 0;
}

.module-tabs a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.module-tabs a.active,
.module-tabs a:hover {
  border: 1px solid #b9d5e3;
  background: #ffffff;
  color: #0b6f8f;
}

.filter-row {
  border-color: #cbdde7;
  border-radius: 8px;
}

.day {
  border-color: #d5e6ee;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.today-day {
  border-color: #7cc8e1;
  background: #e8f6fb;
}

.calendar-event {
  border-color: #d5e6ee;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 42, 69, 0.06);
}

.event-popover {
  border-color: #b9d5e3;
  box-shadow: 0 20px 55px rgba(16, 42, 69, 0.18);
}

.assignee-list,
.check-row {
  border-color: #d5e6ee;
  background: #fbfdff;
}

.person-chip,
.person-check,
.status-pill {
  border-radius: 999px;
}

.document-print {
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(16, 42, 69, 0.08);
}

.preview-box {
  border-radius: 8px;
  background: #f8fbfd;
}

.profile-titlebar,
.customer-profile-page {
  background: transparent;
}

.profile-tabs {
  border-bottom-color: #d5e6ee;
}

.profile-tabs button {
  border-radius: 8px 8px 0 0;
}

@media (max-width: 1080px) {
  .kpi-grid,
  .content-grid,
  .calendar-layout,
  .inventory-layout {
    grid-template-columns: 1fr;
  }

  .wide-panel {
    grid-column: auto;
  }

  .hero,
  .accounting-band,
  .public-hero,
  .split-section,
  .visual-band,
  .visual-band.reverse,
  .document-showcase {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid,
  .plan-grid,
  .sitemap-grid,
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-shot {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .promo-strip {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .landing-nav,
  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 28px, 1240px);
  }

  .landing-footer {
    width: 100%;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links,
  .footer-socials {
    gap: 14px;
  }

  .landing-nav nav {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 38px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy h1,
  .visual-band h2 {
    font-size: 38px;
  }

  .product-shot {
    min-height: 360px;
  }

  .app-window-body {
    grid-template-columns: 74px 1fr;
  }

  .app-window-body aside {
    padding: 12px;
  }

  .preview-kpis,
  .preview-table {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid,
  .plan-grid,
  .sitemap-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .pricing-hero h1 {
    font-size: 36px;
  }

  .public-hero h1 {
    font-size: 36px;
  }

  .pricing-toggle {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 8px;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-head strong {
    display: none;
  }

  .subscription-status {
    grid-template-columns: 1fr;
  }

  .accounting-band {
    padding: 24px;
  }

  .visual-band,
  .policy-page {
    padding: 24px;
  }

  .featured-plan {
    transform: none;
  }

  .section-heading h2,
  .accounting-band h2 {
    font-size: 30px;
  }

  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
    margin-top: 44px;
    border-right: 0;
    border-bottom: 1px solid #d9e0ea;
  }

  .main {
    margin-left: 0;
    padding: 18px;
    overflow-x: hidden;
  }

  .app-header-actions {
    gap: 10px;
  }

  .app-header-actions a {
    display: none;
  }

  .topbar {
    margin: 0 0 18px;
    padding: 0 0 14px;
  }

  .topbar,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .report-head,
  .report-row,
  .bar-row,
  .stock-picker,
  .used-item,
  .line-item-row,
  .history-row,
  .doc-header,
  .doc-grid,
  .signature-row {
    grid-template-columns: 1fr;
  }

  .table-head,
  .table-row,
  .inventory-head,
  .inventory-row {
    min-width: max-content;
  }

  .customer-details {
    grid-template-columns: 1fr;
  }

  .calendar-layout {
    display: grid;
    gap: 14px;
  }

  .calendar-layout .wide-panel {
    order: -1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-layout > .panel:first-child {
    order: 2;
  }

  .calendar-layout .panel {
    min-width: 0;
  }

  .calendar-panel-header {
    gap: 10px;
  }

  .calendar-panel-header,
  .calendar-controls {
    width: 100%;
  }

  .calendar-controls {
    justify-content: space-between;
  }

  .weekday-row,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(82px, 1fr));
    min-width: 640px;
    gap: 6px;
  }

  .day {
    min-height: 96px;
    padding: 6px;
  }

  .calendar-event {
    grid-template-columns: auto 1fr auto;
    gap: 4px;
    padding: 5px;
    font-size: 11px;
  }

  .calendar-event .event-dots {
    display: none;
  }

  .event-time {
    font-size: 10px;
  }

  .event-popover {
    right: auto;
    left: 0;
    top: calc(100% + 8px);
    width: min(280px, 90vw);
  }

  .auth-page {
    min-height: 100vh;
    padding: 16px;
    place-items: start center;
  }

  .auth-shell,
  body[data-page="register"] .auth-shell {
    width: min(100%, 520px);
  }

  .auth-shell::before {
    inset: -18px;
  }

  .auth-panel {
    width: 100%;
    padding: 22px;
  }

  .auth-panel h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .auth-page .brand.large {
    align-items: flex-start;
    gap: 12px;
  }

  .auth-page .brand-logo-full {
    max-width: min(240px, 72vw);
  }

  .consent-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    width: 100%;
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .consent-check input {
    justify-self: start;
    margin-top: 3px;
  }

  .consent-check a {
    white-space: normal;
  }
}

body.landing-page .landing-nav {
  position: static !important;
  top: auto !important;
}

body.app-theme-dark:not(.landing-page):not(.auth-page) {
  --surface: #102033;
  --surface-2: #13283f;
  --text: #e7f1f7;
  --muted: #9fb5c4;
  --border: #294259;
  background: #081726;
  color: var(--text);
}

body.app-theme-dark .main {
  background:
    radial-gradient(circle at 18% 0, rgba(18, 165, 148, 0.16), transparent 30%),
    #081726;
  color: var(--text);
}

body.app-theme-dark .topbar,
body.app-theme-dark .panel,
body.app-theme-dark .kpi,
body.app-theme-dark .rental-editor-panel,
body.app-theme-dark .rental-table-panel,
body.app-theme-dark .customer-list,
body.app-theme-dark .comparison-table,
body.app-theme-dark .print-box,
body.app-theme-dark .preview-box,
body.app-theme-dark .document-print,
body.app-theme-dark .settings-dialog,
body.app-theme-dark .settings-card {
  border-color: #294259;
  background: rgba(16, 32, 51, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  color: var(--text);
}

body.app-theme-dark .topbar {
  background:
    linear-gradient(135deg, rgba(16, 32, 51, 0.98), rgba(13, 42, 58, 0.96)),
    #102033;
}

body.app-theme-dark .settings-dialog-header {
  border-bottom-color: #294259;
  background:
    linear-gradient(135deg, rgba(16, 32, 51, 0.98), rgba(13, 42, 58, 0.96)),
    #102033;
}

body.app-theme-dark h1,
body.app-theme-dark h2,
body.app-theme-dark h3,
body.app-theme-dark .topbar h1,
body.app-theme-dark .panel-header h2,
body.app-theme-dark .settings-dialog-header h2,
body.app-theme-dark .settings-card h3,
body.app-theme-dark .kpi strong,
body.app-theme-dark .doc-title h2,
body.app-theme-dark .document-print h1,
body.app-theme-dark .document-print h2 {
  color: #e7f1f7;
}

body.app-theme-dark .muted,
body.app-theme-dark .panel-header span,
body.app-theme-dark .settings-dialog-header small,
body.app-theme-dark .settings-status,
body.app-theme-dark .kpi span,
body.app-theme-dark .kpi small,
body.app-theme-dark small,
body.app-theme-dark .table-head,
body.app-theme-dark .inventory-head,
body.app-theme-dark .rental-head {
  color: #9fb5c4;
}

body.app-theme-dark .panel-header,
body.app-theme-dark .topbar,
body.app-theme-dark .filter-row,
body.app-theme-dark .table-head,
body.app-theme-dark .table-row,
body.app-theme-dark .inventory-head,
body.app-theme-dark .inventory-row,
body.app-theme-dark .rental-head,
body.app-theme-dark .rental-row,
body.app-theme-dark .account-row,
body.app-theme-dark .activity-item,
body.app-theme-dark .audit-row,
body.app-theme-dark .customer-card,
body.app-theme-dark .used-item,
body.app-theme-dark .history-row,
body.app-theme-dark .line-item-row,
body.app-theme-dark .stock-picker,
body.app-theme-dark .day,
body.app-theme-dark .calendar-event,
body.app-theme-dark .module-action-menu,
body.app-theme-dark .notice-card,
body.app-theme-dark .app-notice-toast {
  border-color: #294259;
  background: #13283f;
  color: #e7f1f7;
}

body.app-theme-dark .table-head,
body.app-theme-dark .inventory-head,
body.app-theme-dark .rental-head,
body.app-theme-dark .module-tabs a.active,
body.app-theme-dark .module-tabs a:hover,
body.app-theme-dark .today-day {
  background: #17314a;
}

body.app-theme-dark input,
body.app-theme-dark select,
body.app-theme-dark textarea,
body.app-theme-dark .search-input {
  border-color: #31506a;
  background: #0d1d2f;
  color: #e7f1f7;
}

body.app-theme-dark input::placeholder,
body.app-theme-dark textarea::placeholder {
  color: #7890a2;
}

body.app-theme-dark input:focus,
body.app-theme-dark select:focus,
body.app-theme-dark textarea:focus {
  border-color: #70d7c7;
  outline-color: rgba(112, 215, 199, 0.18);
}

body.app-theme-dark button.secondary,
body.app-theme-dark button.ghost,
body.app-theme-dark .button.secondary,
body.app-theme-dark .icon-button {
  border-color: #31506a;
  background: #13283f;
  color: #e7f1f7;
}

body.app-theme-dark button.secondary:hover,
body.app-theme-dark button.ghost:hover,
body.app-theme-dark .button.secondary:hover,
body.app-theme-dark .icon-button:hover,
body.app-theme-dark .module-action-menu button:hover,
body.app-theme-dark .activity-item:hover,
body.app-theme-dark .row-button:hover,
body.app-theme-dark .customer-card:hover,
body.app-theme-dark .history-row:hover,
body.app-theme-dark button.inventory-row:hover,
body.app-theme-dark .rental-row.row-button:hover {
  border-color: #70d7c7;
  background: #17314a;
  color: #d9ff66;
}

body.app-theme-dark .theme-toggle-card {
  border-color: #31506a;
  background:
    linear-gradient(135deg, rgba(13, 29, 47, 0.94), rgba(23, 49, 74, 0.94)),
    #102033;
  color: #e7f1f7;
}

body.app-theme-dark .settings-feature-list span,
body.app-theme-dark .panel-header span {
  border-color: #31506a;
  background: #0d1d2f;
  color: #70d7c7;
}

body.app-theme-dark .notice-card small,
body.app-theme-dark .app-notice-toast small,
body.app-theme-dark .app-confirm-dialog p {
  color: #9fb5c4;
}

body.app-theme-dark .notice-card.error,
body.app-theme-dark .app-notice-toast.error {
  border-color: #7f2f35;
  background: #321a24;
  color: #ffd7d3;
}

body.app-theme-dark .app-confirm-dialog {
  border-color: #294259;
  background: #102033;
  color: #e7f1f7;
}

body.app-theme-dark .app-confirm-dialog h2 {
  color: #e7f1f7;
}

@media (max-width: 760px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-overlay {
    padding: 12px;
  }

  .settings-dialog-header {
    padding: 18px;
  }

  .settings-grid {
    padding: 16px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .sidebar,
  .app-header,
  .topbar,
  form,
  button,
  .doc-actions,
  .panel-header,
  .inventory-head,
  .inventory-table,
  .history-list {
    display: none !important;
  }

  .main {
    margin: 0;
    padding: 0;
  }

  .panel,
  .print-box,
  .print-panel {
    border: 0;
    box-shadow: none;
  }

  .content-grid,
  .inventory-layout {
    display: block;
  }

  .panel {
    display: none;
  }

  .print-panel {
    display: block;
    padding: 0;
  }

  .print-panel .preview-box {
    display: block;
  }

  .preview-box {
    min-height: 0;
  }

  .document-print {
    border: 0;
    border-radius: 0;
    padding: 0;
    width: 100%;
  }
}
