/* Simple, clean styling for the whole app. */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --border: #e2e8f0;
  --danger: #dc2626;
  --ok: #16a34a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
a { color: var(--brand-dark); }

/* Top navigation — brand bar with grouped dropdowns */
nav.topbar {
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 16px;
  position: relative;
}
nav.topbar .brand {
  font-weight: 700; margin-right: 18px; padding: 12px 0;
  color: #fff; text-decoration: none; white-space: nowrap;
}
nav.topbar form { margin: 0; }

/* The row of top-level entries. */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; }

/* One shared look for plain links and dropdown triggers. */
.nav-item, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; margin: 6px 0;
  color: #e6fffb; text-decoration: none; white-space: nowrap;
  background: none; border: none; border-radius: 8px;
  font-size: .95rem; font-family: inherit; cursor: pointer;
}
.nav-item:hover, .nav-trigger:hover,
.nav-group:hover .nav-trigger, .nav-group.open .nav-trigger { background: var(--brand-dark); color: #fff; }
.nav-item:focus-visible, .nav-trigger:focus-visible,
.nav-menu a:focus-visible, .topbar button.link:focus-visible {
  outline: 2px solid #fff; outline-offset: -2px;
}
/* Current section. */
.nav-item.on, .nav-trigger.on { background: rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.nav-trigger .ico { font-size: .95rem; }
.nav-trigger .caret { font-size: .7rem; opacity: .8; }

/* The dropdown itself. */
.nav-group { position: relative; }
.nav-menu {
  display: none; position: absolute; left: 0; top: 100%; z-index: 50;
  min-width: 190px; padding: 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.16);
}
.nav-group:hover .nav-menu, .nav-group.open .nav-menu { display: block; }
.nav-menu a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: .92rem; white-space: nowrap;
}
.nav-menu a:hover { background: #f1f5f9; }

/* Signed-in identity and log out, pushed to the right. */
.nav-user { display: flex; align-items: center; gap: 4px; margin-left: auto; }
nav.topbar .who { color: #ccfbf1; padding: 0 8px; font-size: .88rem; white-space: nowrap; }
nav.topbar button.link {
  background: none; border: none; color: #e6fffb; cursor: pointer;
  padding: 10px 12px; margin: 6px 0; border-radius: 8px;
  font-size: .95rem; font-family: inherit;
}
nav.topbar button.link:hover { background: var(--brand-dark); color: #fff; }

/* Hamburger — desktop hides it. */
.nav-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  padding: 10px 12px; margin-left: auto; border-radius: 8px;
}
.nav-toggle:hover { background: var(--brand-dark); }

@media (max-width: 900px) {
  nav.topbar { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 2; }
  .nav-user { order: 3; margin-left: 0; }
  .nav-links {
    display: none; order: 4; flex-direction: column;
    align-items: stretch; width: 100%; padding-bottom: 8px;
  }
  .nav-links.show { display: flex; }
  .nav-item, .nav-trigger { width: 100%; justify-content: flex-start; margin: 0; }
  .nav-trigger .caret { margin-left: auto; }
  /* Stacked, not floating — hover-open would trap a touch user. */
  .nav-group:hover .nav-menu { display: none; }
  .nav-group.open .nav-menu { display: block; }
  .nav-menu {
    position: static; min-width: 0; box-shadow: none;
    margin: 2px 0 2px 18px; background: rgba(255,255,255,.08); border-color: transparent;
  }
  .nav-menu a { color: #e6fffb; }
  .nav-menu a:hover { background: rgba(255,255,255,.14); }
}

/* Signed-in identity menu, at the right-hand end of the bar. */
.user-trigger { gap: 8px; }
.user-trigger .avatar {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,.22);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.user-trigger .user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Anchored to the right edge so it never runs off-screen. */
.nav-menu-right { left: auto; right: 0; min-width: 230px; }
.nav-menu .menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.nav-menu .menu-name { font-weight: 700; font-size: .93rem; color: var(--ink); }
.nav-menu .menu-mail {
  color: var(--muted); font-size: .82rem; margin: 1px 0 7px;
  overflow: hidden; text-overflow: ellipsis;
}
.nav-menu .menu-sep { height: 1px; background: var(--border); margin: 6px 0; }
.nav-menu form { margin: 0; }
/* Log out is a form submit, but must look like the links above it. */
.nav-menu .menu-btn {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: none; border-radius: 6px;
  background: none; color: var(--danger); cursor: pointer;
  font-size: .92rem; font-family: inherit;
}
.nav-menu .menu-btn:hover { background: #fee2e2; }

@media (max-width: 900px) {
  /* The identity menu stays a floating panel — stacking it would push the
     hamburger and the page content down every time it opens. */
  .nav-user .nav-menu {
    position: absolute; right: 0; left: auto; min-width: 230px;
    background: var(--card); border-color: var(--border);
    box-shadow: 0 8px 24px rgba(15,23,42,.16); margin: 0;
  }
  .nav-user .nav-menu a { color: var(--ink); }
  .nav-user .nav-menu a:hover { background: #f1f5f9; }
  .user-trigger .user-name { display: none; }
}

main { max-width: 1000px; margin: 24px auto; padding: 0 16px; }
h1 { font-size: 1.5rem; margin: 0 0 16px; }

/* Cards / tables */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .95rem; }
th { background: var(--brand); color: #dce9ce; font-weight: 600; }
tbody tr:nth-child(even) { background: #f0f3e9; }
tbody tr:hover { background: #e4ebd8; }
tr:last-child td { border-bottom: none; }

/* Forms */
label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: .9rem; }
input, select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer; font-size: 1rem; line-height: 1;
}
.password-toggle:hover { background: #f1f5f9; }
.password-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.password-visibility {
  display: flex; align-items: center; gap: 4px; width: fit-content;
  margin: 7px 0 0; font-size: .88rem; font-weight: 400; color: var(--muted); cursor: pointer;
}
.password-visibility input { width: auto; margin: 0; accent-color: var(--brand); cursor: pointer; }
textarea { min-height: 90px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: none;
  padding: 9px 16px; border-radius: 8px; text-decoration: none; cursor: pointer;
  font-size: .95rem;
}
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn.edit-action { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.edit-action:hover { background: var(--brand-dark); }
.btn.archive-action { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.archive-action:hover { background: #8f3224; }
.btn.danger { background: var(--danger); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.actions { display: flex; gap: 8px; align-items: center; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Flash messages */
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }

/* Login / signup */
.auth-wrap { max-width: 380px; margin: 60px auto; }
.muted { color: var(--muted); font-size: .9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.stat .n { font-size: 1.8rem; font-weight: 700; color: var(--brand-dark); }
.stat .l { color: var(--muted); font-size: .85rem; text-transform: capitalize; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: .8rem; background: #e2e8f0; }
.badge.status-paid { background: #dcfce7; color: #166534; }
.badge.status-partial { background: #fef9c3; color: #854d0e; }
.badge.status-open { background: #fee2e2; color: #991b1b; }
.badge.status-void { background: #e2e8f0; color: #475569; }
.badge.reqstat-pending { background: #fef9c3; color: #854d0e; }
.badge.reqstat-scheduled { background: #dcfce7; color: #166534; }
.badge.reqstat-declined { background: #fee2e2; color: #991b1b; }
.badge.reqstat-cancelled { background: #e2e8f0; color: #475569; }

/* ==========================================================================
   Home pages — public landing, staff home, patient home
   ========================================================================== */

/* Page heading: greeting on the left, date/context on the right */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.page-head h1 { margin: 0 0 4px; }
.page-head .sub { color: var(--muted); font-size: .9rem; }

/* Actionable alerts — only rendered when there is something to act on */
.alert-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.alert-pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 10px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  border: 1px solid transparent;
}
.alert-pill .count {
  background: rgba(255,255,255,.75); border-radius: 999px;
  padding: 1px 9px; font-size: .85rem;
}
.alert-pill.warn   { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.alert-pill.danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-pill.info   { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.alert-pill:hover  { filter: brightness(.96); }

/* KPI tiles — more deliberate than the plain .stat */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; margin-bottom: 12px; }
.kpi {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; display: block;
  text-decoration: none; color: inherit;
}
a.kpi:hover { border-color: var(--brand); }
.kpi .kpi-label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.kpi .kpi-value { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 6px 0 2px; line-height: 1.1; }
.kpi .kpi-sub { color: var(--muted); font-size: .85rem; }
.kpi.accent .kpi-value { color: var(--brand-dark); }
.kpi.money  .kpi-value { color: var(--danger); }
.trend { font-size: .85rem; font-weight: 600; }
.trend.up   { color: var(--ok); }
.trend.down { color: var(--danger); }
.trend.flat { color: var(--muted); }

/* Two-column layout that collapses on narrow screens */
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* Panel = card with a proper header row */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: #f8fafc;
}
.panel-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.panel-head a { font-size: .85rem; text-decoration: none; }
.panel-body { padding: 12px; }
.panel-body > :first-child { margin-top: 0; }
.panel-body > :last-child { margin-bottom: 0; }
.panel table { border-radius: 0; }
.panel table th:first-child, .panel table td:first-child { padding-left: 18px; }
.panel table th:last-child,  .panel table td:last-child  { padding-right: 18px; }

/* Empty states */
.empty { text-align: center; padding: 6px 12px; color: var(--muted); font-size: .9rem; }
.empty .icon { font-size: 1.4rem; display: block; margin-bottom: 2px; opacity: .4; }

/* Quick actions */
.qa-list { display: flex; flex-direction: column; gap: 2px; padding: 4px; }
.qa {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  text-decoration: none; color: var(--ink); font-size: .93rem; border-radius: 8px;
}
.qa:hover { background: #f1f5f9; }
.qa .ico { width: 20px; text-align: center; }

/* Compact rows for "recent activity" lists */
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: .92rem;
}
.list-row:last-child { border-bottom: none; }
.list-row .who { font-weight: 600; }
.list-row .when { color: var(--muted); font-size: .85rem; }
.list-row .amount { font-weight: 700; color: var(--ok); white-space: nowrap; }

/* Patient "next visit" hero card */
.hero-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: 14px; padding: 24px; margin-bottom: 20px;
}
.hero-card .eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; opacity: .85; font-weight: 700; }
.hero-card .when { font-size: 1.75rem; font-weight: 700; margin: 8px 0 6px; }
.hero-card .meta { opacity: .92; font-size: .95rem; }
.hero-card .btn { background: #fff; color: var(--brand-dark); margin-top: 16px; font-weight: 600; }
.hero-card .btn:hover { background: #e6fffb; }
.hero-card.quiet { background: var(--card); color: var(--ink); border: 1px dashed var(--border); }
.hero-card.quiet .btn { background: var(--brand); color: #fff; }
.hero-card.quiet .eyebrow { color: var(--muted); opacity: 1; }

.badge.job { background: #ccfbf1; color: #0f766e; }
.badge.due-soon { background: #fef9c3; color: #854d0e; }
.badge.overdue  { background: #fee2e2; color: #991b1b; }

/* ---------- Public landing page ---------- */
.landing-nav {
  display: flex; align-items: center; gap: 8px; padding: 14px 24px;
  background: var(--card); border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.landing-nav .brand { font-weight: 700; font-size: 1.1rem; margin-right: auto; color: var(--ink); }
/* The brand is a link home, but should not look like one of the nav buttons. */
.landing-nav a.brand { padding-left: 0; }
.landing-nav a.brand:hover { background: none; }
.landing-nav a { text-decoration: none; padding: 8px 14px; border-radius: 8px; color: var(--ink); font-size: .93rem; }
.landing-nav a:hover { background: #f1f5f9; }
.landing-nav a.btn { color: #fff; }
.landing-nav a.btn:hover { background: var(--brand-dark); }

.hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
  color: #fff; padding: 72px 24px;
}
.hero-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 14px; }
.hero p.lede { font-size: 1.1rem; opacity: .92; max-width: 620px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.14); }
.hero .btn.solid { background: #fff; color: var(--brand-dark); font-weight: 600; }
.hero .btn.solid:hover { background: #e6fffb; }
@media (max-width: 620px) { .hero { padding: 52px 20px; } .hero h1 { font-size: 1.9rem; } }

.section { max-width: 1000px; margin: 0 auto; padding: 56px 24px; }
.section h2 { font-size: 1.6rem; margin: 0 0 8px; text-align: center; }
.section .section-sub { color: var(--muted); text-align: center; margin: 0 0 32px; }
.section-band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.figure-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; text-align: center; }
.figure .n { font-size: 2.2rem; font-weight: 700; color: var(--brand-dark); }
.figure .l { color: var(--muted); font-size: .9rem; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.section-band .tile { background: var(--bg); }
.tile .ico { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.tile h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tile p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  background: var(--brand); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
}
.step h3 { margin: 4px 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.site-footer {
  background: #0f172a; color: #94a3b8; padding: 32px 24px; text-align: center; font-size: .9rem;
}
.site-footer a { color: #5eead4; text-decoration: none; }

/* ---------- Doctor availability ---------- */
.avail-day {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; margin-bottom: 8px; background: var(--card);
}
.avail-day-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.avail-day-head .day-name { font-weight: 600; font-size: .92rem; }
.avail-day.is-empty { border-style: dashed; }

/* One start/end/slot-length row. The global 'input { width: 100% }' would blow
   these out to full width, so every control here opts back out. */
.time-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.time-row:last-child { margin-bottom: 0; }
.time-row input, .time-row select {
  width: auto; padding: 5px 7px; font-size: .88rem; border-radius: 6px;
}
.time-row input[type="time"] { min-width: 108px; }
.time-row input[type="number"] { width: 68px; }
.time-row input[type="date"] { min-width: 140px; }
.time-row input[type="text"] { min-width: 160px; flex: 1 1 160px; }
.time-row .sep { color: var(--muted); font-size: .85rem; }
.time-row label { display: inline; margin: 0; font-weight: 400; font-size: .85rem; color: var(--muted); }

/* Drops a range from the editor before saving; stays quiet until hovered. */
.row-remove {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 6px; cursor: pointer; line-height: 1;
  padding: 4px 8px; font-size: .9rem; font-family: inherit;
}
.row-remove:hover { border-color: var(--danger); color: var(--danger); }

.avail-summary { font-size: .88rem; color: var(--muted); }
.avail-summary .day { color: var(--ink); font-weight: 600; }

/* Date-specific exceptions — denser than the default table. */
table.exceptions th, table.exceptions td { padding: 6px 10px; font-size: .88rem; }
table.exceptions td.narrow { white-space: nowrap; width: 1%; }
.badge.kind-off   { background: #fee2e2; color: #991b1b; }
.badge.kind-extra { background: #dcfce7; color: #166534; }

/* ---------- Tabs (Accounts: staff vs patients) ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 600;
  border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}
.tab:hover { background: #f1f5f9; color: var(--ink); }
.tab.on {
  background: var(--card); color: var(--ink);
  border-color: var(--border); border-bottom-color: var(--card);
}
.tab .count {
  background: #e2e8f0; color: var(--muted); border-radius: 999px;
  padding: 0 7px; font-size: .78rem; font-weight: 700;
}
.tab.on .count { background: var(--brand); color: #fff; }

/* DentFlow showcase theme */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');
:root { --bg:#f6f4ec; --ink:#22301f; --brand:#2f4a34; --brand-dark:#203522; --muted:#6b7a63; --border:#dde3d2; --ok:#4c6b3d; --brand-soft:#3f6b4a; --gold:#b98b3e; }
body { background:var(--bg); color:var(--ink); font-family:'Manrope',sans-serif; -webkit-font-smoothing:antialiased; }
h1,h2,h3 { font-family:'Fraunces',serif; font-weight:600; }
nav.topbar { background:var(--brand); padding:0 28px; }
nav.topbar .brand, .landing-nav .brand { display:inline-flex; align-items:center; gap:8px; font-family:'Fraunces',serif; }
nav.topbar .brand img { width:40px; height:40px; object-fit:contain; border-radius:4px; }
.landing-nav { padding:16px 28px; background:#fff; }
.landing-nav .brand { color:var(--brand); }
.landing-nav .brand img { width:40px; height:40px; object-fit:contain; }
.nav-item,.nav-trigger { color:#dce9ce; font-size:.88rem; }
.nav-logo-icon { width:18px; height:18px; background:#fff; border-radius:50%; padding:2px; }
.nav-item:hover,.nav-trigger:hover,.nav-group:hover .nav-trigger,.nav-group.open .nav-trigger { background:rgba(255,255,255,.12); }
main { max-width:none; margin:0; padding:0 28px 40px; }
.hero { background:linear-gradient(120deg,var(--brand-soft),var(--brand) 62%,var(--ink)); padding:72px 24px 78px; }
.hero-inner { max-width:680px; }
.hero h1 { font-size:2.55rem; }
.hero p.lede { color:#dce8ce; line-height:1.65; }
.btn { border-radius:9px; font-weight:700; }
.btn.solid { background:var(--gold); color:#2a1e08; }
.btn.solid:hover { background:#c99e4e; }
.section { max-width:1180px; padding:58px 28px; }
.section h2 { color:var(--brand); font-size:1.65rem; }
.section-band { background:var(--bg); border:0; }
.tile-grid { gap:18px; }
.service-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.about-steps-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tile { border-color:var(--border); border-radius:10px; padding:22px 20px; box-shadow:0 12px 26px -24px rgba(34,48,31,.45); }
.dashboard-page table th { background:var(--brand); color:#dce9ce; border-color:var(--brand-soft); }
.dashboard-page table { border:1px solid var(--brand-soft); }
.dashboard-page table td { background:transparent; }
.dashboard-page table tbody tr:nth-child(even) { background:#f0f3e9; }
.dashboard-page table tbody tr:hover { background:#e4ebd8; }
.panel-head { background:var(--brand); border-bottom-color:var(--brand-soft); }
.panel-head h2 { color:#fff; }
.panel-head a { color:#dce9ce; }
.panel-head a:hover { color:#fff; }
.section-band .tile { background:#fff; }
.tile p { color:var(--muted); line-height:1.55; }
.figure .n { font-family:'IBM Plex Mono',monospace; color:var(--brand); }
.page-head { background:linear-gradient(100deg,var(--brand),var(--brand-soft)); color:#fff; padding:28px max(28px,calc((100vw - 1180px)/2)); margin:0 -28px 28px; }
.page-head h1 { color:#fff; }
.page-head .sub { color:#d8e7c4; }
.panel,.kpi,.card { border-color:var(--border); box-shadow:0 12px 28px -26px rgba(34,48,31,.45); }
.kpi .kpi-value { color:var(--brand); font-family:'IBM Plex Mono',monospace; }
.auth-split { display:flex; min-height:560px; margin:24px auto 60px; max-width:1000px; background:#fff; box-shadow:0 26px 55px -32px rgba(34,48,31,.5); }
.auth-panel { flex:1.1; background:#2b4c38; padding:36px 42px 42px; display:flex; flex-direction:column; justify-content:space-between; }
.auth-mark { display:flex; align-items:flex-start; justify-content:flex-start; margin-top:0; }
.auth-mark img { display:block; width:76px; height:76px; object-fit:contain; filter: brightness(0) invert(1); }
.auth-brand-stack { display:flex; align-items:center; gap:18px; }
.auth-brand-copy { display:flex; flex-direction:column; justify-content:center; }
.auth-brand-copy .brand-name { color:#fff; font-size:28px; line-height:1; font-weight:700; letter-spacing:-.04em; }
.auth-brand-copy .brand-sub { color:#ffffff; font-size:11px; letter-spacing:.16em; text-transform:uppercase; opacity:1; margin-top:8px; }
.auth-quote { max-width:360px; margin-top:18vh; }
.auth-quote h2 { color:#fff; font-size:1.8rem; line-height:1.2; font-style:italic; margin:0 0 18px; }
.auth-quote p { color:#ffffff; font-size:1.08rem; line-height:1.6; }
.auth-form-side { flex:1; display:flex; align-items:center; justify-content:center; padding:44px; background:#fff; }
.auth-card { width:100%; max-width:360px; }
.auth-card .eyebrow { color:#6b7280; font:.72rem 'IBM Plex Mono',monospace; letter-spacing:.14em; text-transform:uppercase; }
.auth-card h1 { color:#1f2937; font-size:2.2rem; margin:12px 0 22px; }
.auth-card label { color:#111827; font-size:1.02rem; font-weight:600; }
.auth-card input { border:1px solid #c7cfd4; border-radius:10px; background:#fff; color:#111827; font-size:1rem; padding:12px 14px; }
.auth-card .btn.solid { width:100%; background:#2b4c38; color:#fff; border-radius:12px; font-size:1.1rem; font-weight:700; }
.auth-card .btn.solid:hover { background:#213d2d; }
.auth-card .muted { color:#374151; }
.auth-card a { color:#213d2d; }
.site-footer { background:var(--ink); }
.site-footer a { color:#c9d3bc; }
.inline-logo { width:22px; height:22px; vertical-align:middle; border-radius:3px; }
.qa-logo-icon { width:18px; height:18px; border-radius:3px; flex:0 0 auto; }
@media (max-width:700px) { main{padding:0 16px 28px;} .auth-split{margin:0 auto 32px;min-height:0;} .auth-panel{display:none;} .auth-form-side{padding:34px 24px 44px;} .hero h1{font-size:2rem;} .page-head{margin:0 -16px 20px;padding-left:20px;padding-right:20px;} }
@media (max-width:700px) { .service-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
