:root {
  --cream: #ffffff;
  --paper: #fffdf8;
  --ink: #173238;
  --ink-soft: #52666a;
  --teal: #35a7a0;
  --teal-deep: #116c69;
  --honey: #f4c95d;
  --border: #d8ded7;
  --danger: #ad3d34;
  --success: #237a57;
  --shadow: 0 18px 44px rgba(23, 50, 56, .09);
  --radius: 24px;
  --control: 12px;
}

/* Usage reporting shares manager panels and remains readable on staff tablets. */
.usage-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; padding: 18px; margin-bottom: 16px; }
.usage-controls label { flex: 1 1 155px; min-width: 0; }
.usage-controls label[data-usage-location] { flex-grow: 2; }
.usage-freshness { margin: 12px 0 20px; color: var(--ink-soft); font-size: .86rem; line-height: 1.65; }
.usage-notice { margin: 12px 0; padding: 15px 18px; border: 1px solid #dca299; border-radius: 12px; color: var(--danger); background: #fff5f2; }
.metrics.usage-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.usage-metric { min-width: 0; }
.usage-metric strong { overflow-wrap: anywhere; font-size: clamp(1.45rem, 2.4vw, 2.25rem); }
.usage-metric small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .75rem; line-height: 1.45; }
.usage-secondary-metrics { color: var(--ink-soft); line-height: 1.7; font-size: .88rem; margin: -2px 0 20px; }
.usage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.usage-grid > * { min-width: 0; }
.usage-wide { grid-column: 1 / -1; }
.usage-grid h2, .usage-archive h2, .usage-location-breakdown h2, .usage-accounts h2, .usage-saved-report h2 { font-size: 1.08rem; margin: 0; }
.usage-grid .workspace-sub, .usage-archive .workspace-sub { margin-bottom: 0; }
.usage-chart-scroll { overflow-x: auto; padding-bottom: 8px; }
.usage-bars { display: flex; align-items: end; gap: 7px; min-width: 100%; width: max-content; }
.usage-bar-column { flex: 1 0 30px; width: 30px; max-width: 50px; text-align: center; }
.usage-bar-pair { height: 150px; display: flex; align-items: end; gap: 2px; border-bottom: 1px solid var(--border); }
.usage-bar { display: block; width: 50%; border-radius: 3px 3px 0 0; }
.usage-bar.checks { background: var(--teal-deep); }
.usage-bar.searches { background: var(--honey); }
.usage-bar-column small { display: block; font-size: .6rem; color: var(--ink-soft); padding-top: 8px; white-space: nowrap; }
.usage-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .77rem; margin: 12px 0; }
.usage-legend span:first-child { color: var(--teal-deep); }
.usage-legend span:last-child { color: #816318; }
.usage-data-table summary, .usage-definitions summary, .usage-settings > summary { cursor: pointer; font-weight: 700; line-height: 1.5; }
.usage-data-table { font-size: .84rem; }
.usage-ranking { list-style: none; margin: 0; padding: 0; }
.usage-ranking li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.usage-ranking li:first-child { padding-top: 0; }
.usage-ranking li:last-child { border-bottom: 0; padding-bottom: 0; }
.usage-ranking li > span { overflow-wrap: anywhere; min-width: 0; }
.usage-add-rule { display: block; font-size: .8rem; padding-left: 0; }
.usage-empty { color: var(--ink-soft); line-height: 1.6; margin: 4px 0; }
.usage-definitions { margin: 20px 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--border); border-radius: 16px; line-height: 1.7; font-size: .87rem; }
.usage-definitions p:last-child { margin-bottom: 0; }
.usage-settings, .usage-archive, .usage-location-breakdown, .usage-saved-report { margin-top: 20px; }
.usage-settings > summary { padding: 18px 20px; }
.usage-settings[open] > summary { border-bottom: 1px solid var(--border); }
.usage-checkbox { display: flex; align-items: center; align-self: center; gap: 10px; }
.usage-checkbox input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--teal-deep); }
.usage-save-status { display: inline-block; margin-left: 12px; font-size: .85rem; }
.usage-report-list { padding: 0; margin: 0; list-style: none; }
.usage-report-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; padding: 10px 0; }
.usage-report-list span { color: var(--ink-soft); font-size: .83rem; }
.usage-account-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.usage-accounts { font-size: .8rem; }
.usage-accounts td { vertical-align: top; }
.usage-accounts th { white-space: normal; }
.usage-accounts .table-action { text-align: left; padding-left: 0; }
.usage-report-head { margin-bottom: 22px; }
.usage-report-head h1 { margin-bottom: 12px; }
.usage-report-head p { color: var(--ink-soft); font-size: .86rem; line-height: 1.6; }
#usagePrint { display: none; }
@media (max-width: 1100px) {
  .metrics.usage-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .metrics.usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-metrics .usage-metric:last-child { grid-column: 1 / -1; }
  .usage-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .usage-controls { padding: 14px; gap: 12px; }
  .usage-controls label { flex-basis: 120px; }
  .usage-controls button { flex-grow: 1; }
  .usage-freshness { overflow-wrap: anywhere; }
  .usage-saved-report > .panel-body { padding: 12px; }
}
@media print {
  body.usage-printing { background: white; }
  body.usage-printing > :not(#usagePrint) { display: none !important; }
  body.usage-printing #usagePrint { display: block; max-width: none; font-size: 10pt; }
  #usagePrint .usage-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #usagePrint .usage-metric:last-child { grid-column: auto; }
  #usagePrint .usage-metric strong { font-size: 16pt; }
  #usagePrint .usage-metric small, #usagePrint .usage-metric span { font-size: 8pt; }
  #usagePrint .panel, #usagePrint .metric { box-shadow: none; break-inside: avoid; }
  #usagePrint .usage-grid { display: block; }
  #usagePrint .usage-grid > .panel { margin-bottom: 14px; }
  #usagePrint .usage-bars { width: 100%; gap: 2px; }
  #usagePrint .usage-bar-column { flex: 1 1 0; width: auto; min-width: 0; }
  #usagePrint .usage-bar-column small { font-size: 5pt; }
  #usagePrint .usage-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #usagePrint .usage-chart-scroll, #usagePrint .table-wrap { overflow: visible; }
  #usagePrint .usage-data-table { display: none; }
  #usagePrint .usage-definitions { display: block; }
  #usagePrint .usage-definitions > :not(summary) { display: block !important; }
  #usagePrint .usage-definitions summary { list-style: none; }
  #usagePrint .usage-location-breakdown .data-table { min-width: 0; }
  #usagePrint .usage-location-breakdown td, #usagePrint .usage-location-breakdown th { padding: 8px; }
  @page { margin: 15mm; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Cabin, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button, .button { min-height: 44px; border: 0; border-radius: var(--control); cursor: pointer; font-weight: 800; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(216, 222, 215, .85); background: var(--cream); }
.nav-row { min-height: 70px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.2rem; font-weight: 900; }
.brand img { height: 40px; width: auto; object-fit: contain; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 13px; border-radius: var(--control); text-decoration: none; font-size: .92rem; font-weight: 800; color: rgba(23, 50, 56, .72); }
.nav-links a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; text-decoration: none; }
.button-primary { background: var(--honey); color: var(--ink); box-shadow: inset 0 -1px rgba(23, 50, 56, .2); }
.button-dark { background: var(--ink); color: white; }
.button-secondary { border: 1px solid var(--border); background: white; color: var(--ink); }
.button-quiet { background: transparent; color: var(--teal-deep); }
.mobile-menu { display: none; margin-left: auto; width: 44px; background: white; border: 1px solid var(--border); }
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero-copy { padding-top: 1.5rem; }
.display { margin: 0; font-size: clamp(3rem, 6.3vw, 5rem); line-height: .92; letter-spacing: -.055em; font-weight: 900; }
.hero .display { max-width: 10ch; }
.hero-kicker { margin: 1.25rem 0 0; max-width: 18ch; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.15; font-weight: 900; }
.lede { max-width: 33rem; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
/* Hero email capture. Wraps to stacked full-width on a phone so the field and
   the button never get squeezed side by side. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-start { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; max-width: 33rem; }
/* An author `display` rule beats the UA stylesheet's [hidden] { display:none },
   so without this the form stays on screen after a successful submit, next to
   the "check your email" message, inviting a second submit. */
.hero-start[hidden] { display: none; }
.hero-start input { flex: 1 1 16rem; min-width: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: white; font: inherit; font-size: 1rem; color: var(--ink); }
.hero-start input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.hero-start .button { flex: 0 0 auto; }
.hero-start-note { margin: .75rem 0 0; max-width: 33rem; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
@media (max-width: 540px) { .hero-start input, .hero-start .button { flex: 1 1 100%; } }
.proof-line { margin-top: 1.5rem; padding-left: 16px; border-left: 2px solid var(--teal); max-width: 34rem; color: var(--ink-soft); font-size: .9rem; font-weight: 700; line-height: 1.6; }
.chart-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.chart-brand { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px; border-bottom: 1px solid var(--border); }
.chart-brand strong { font-size: 1.25rem; }
.chart-brand span { color: var(--ink-soft); font-size: .82rem; font-weight: 700; }
.chart-tools { display: flex; gap: 8px; padding: 16px 20px; background: #fbfaf5; border-bottom: 1px solid var(--border); }
.chart-tools input { flex: 1; min-width: 0; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--control); background: white; color: var(--ink); padding: 11px 12px; }
label { display: grid; gap: 7px; font-size: .88rem; font-weight: 800; }
.date-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.date-pills button { min-height: 36px; padding: 7px 10px; background: white; border: 1px solid var(--border); font-size: .78rem; }
.date-pills button.active { background: var(--teal-deep); color: white; border-color: var(--teal-deep); }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th, .mini-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .84rem; }
.mini-table th { color: var(--ink-soft); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.rule-pill { display: inline-flex; min-width: 70px; justify-content: center; padding: 6px 9px; border-radius: 999px; background: rgba(53, 167, 160, .12); color: var(--teal-deep); font-size: .75rem; font-weight: 900; }
.rule-pill.warning { background: rgba(244, 201, 93, .25); color: #6e5411; }

/* Embedded live sample (landing hero + demo page) */
.live-demo-shell { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.live-demo-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); background: var(--paper); }
.live-demo-head > div { min-width: 0; }
.live-demo-head strong { display: block; font-size: 1.05rem; }
.live-demo-head span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .82rem; font-weight: 700; line-height: 1.4; }
.live-demo-head a { flex: 0 0 auto; color: var(--teal-deep); font-size: .84rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.live-demo-head a:hover { text-decoration: underline; }
.live-demo-panel { overflow: hidden; }
.live-demo-frame { display: block; width: 100%; border: 0; background: white; }
.live-demo-shell .live-demo-frame { height: 620px; }
.live-demo-panel .live-demo-frame { height: 1100px; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-title { margin: 0; max-width: 18ch; font-size: clamp(2.55rem, 5vw, 4.45rem); line-height: .95; letter-spacing: -.045em; font-weight: 900; }
.steps-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { display: flex; min-height: 370px; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: 0 14px 35px rgba(23, 50, 56, .06); }
.step-num { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: var(--ink); color: white; font-weight: 900; }
.step:nth-child(2) .step-num { background: var(--teal); }
.step:nth-child(3) .step-num { background: var(--teal-deep); }
.step:nth-child(4) .step-num { background: var(--honey); color: var(--ink); }
.step h3 { margin: 1rem 0 .5rem; font-size: 1.3rem; }
.step p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.step-visual { margin-top: 1.25rem; display: grid; gap: 8px; padding: 13px; border: 1px solid var(--border); border-radius: 16px; background: var(--cream); }
.step-visual span { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: white; font-size: .76rem; font-weight: 800; }
.step-note { margin-top: auto !important; padding-top: 1.2rem; color: var(--teal-deep) !important; font-size: .86rem; font-weight: 900; }
.trust { background: var(--teal-deep); color: var(--cream); }
.trust .section-title { max-width: 12ch; }
.trust blockquote { margin: 2rem 0 0; max-width: 50rem; padding-left: 22px; border-left: 2px solid var(--honey); font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 800; }
.faq-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-grid details { padding: 18px 20px; border: 1px solid var(--border); border-radius: 16px; background: white; }
.faq-grid summary { cursor: pointer; font-weight: 900; }
.faq-grid p { color: var(--ink-soft); line-height: 1.6; }
.final-cta { background: var(--teal-deep); color: var(--cream); }
.final-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.site-footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; color: var(--ink-soft); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-weight: 800; text-decoration: none; }

/* Auth */
.auth-page { min-height: 100vh; padding: 28px 0 60px; }
.back-link { display: inline-flex; gap: 7px; align-items: center; text-decoration: none; font-weight: 800; color: var(--teal-deep); }
.auth-layout { margin-top: 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: start; }
.auth-copy { padding: 22px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; font-weight: 900; color: var(--teal-deep); }
.auth-copy h1, .page-heading { margin: 12px 0; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: .95; letter-spacing: -.045em; }
.plan-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-card { min-height: 150px; padding: 16px; text-align: left; border: 1px solid var(--border); background: white; }
.plan-card.active { border: 2px solid var(--teal); background: #f4fbfa; }
.plan-card span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }
.auth-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--border); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 20px; }
.auth-card .brand img { height: 56px; width: auto; }
.auth-card h2 { margin: 8px 0; font-size: 2rem; }
.auth-card form { display: grid; gap: 15px; margin-top: 20px; }
.field-help { color: var(--ink-soft); font-size: .76rem; line-height: 1.45; font-weight: 600; }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(244, 201, 93, .22); color: #5d4813; font-size: .86rem; line-height: 1.5; }
.notice.error { background: #fbe9e7; color: var(--danger); }
.terms { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .8rem; line-height: 1.45; }
.terms input { width: auto; margin-top: 3px; }
.upload-zone { padding: 28px; border: 2px dashed #9abfbb; border-radius: 18px; background: #f4fbfa; text-align: center; }
.upload-zone.dragging { border-color: var(--teal-deep); background: #e9f8f6; }
.upload-zone input { display: none; }
.upload-zone .button { margin-top: 12px; }
.file-summary { margin-top: 16px; display: grid; gap: 10px; }
.preview-list { max-height: 280px; overflow: auto; border: 1px solid var(--border); border-radius: 14px; }
.preview-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: .82rem; }

/* Manager shell */
.manager-body { background: #ffffff; }
.app-header { position: sticky; top: 0; z-index: 20; background: white; border-bottom: 1px solid var(--border); }
.app-header-row { min-height: 70px; display: flex; align-items: center; gap: 16px; }
.location-chip { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 800; background: #fbfaf7; }
.app-shell { width: min(1460px, 100%); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 70px); }
.sidebar { padding: 24px 16px; border-right: 1px solid var(--border); background: white; }
.sidebar-group { margin-bottom: 24px; }
.sidebar-label { padding: 0 10px 8px; color: #7c898b; text-transform: uppercase; letter-spacing: .13em; font-size: .65rem; font-weight: 900; }
.side-link { display: flex; width: 100%; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 10px; background: transparent; color: var(--ink-soft); text-align: left; text-decoration: none; font-size: .88rem; }
.side-link:hover, .side-link.active { background: #ecf7f5; color: var(--teal-deep); }
.side-icon { width: 22px; text-align: center; }
.app-main { min-width: 0; padding: clamp(20px, 4vw, 42px); }
.app-main-inner { max-width: 1120px; margin: 0 auto; }
.workspace-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.workspace-head h1 { margin: 5px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.workspace-sub { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.55; }
.panel { border: 1px solid var(--border); border-radius: 18px; background: white; box-shadow: 0 10px 28px rgba(23, 50, 56, .045); }
.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.panel-body { padding: 20px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: white; }
.metric span { color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
.metric strong { display: block; margin-top: 8px; font-size: 1.75rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: .84rem; }
.data-table th { color: var(--ink-soft); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.table-action { min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); background: white; color: var(--teal-deep); font-size: .75rem; }
.empty-state { padding: 48px 24px; text-align: center; }
.empty-state p { max-width: 30rem; margin: 10px auto 20px; color: var(--ink-soft); line-height: 1.6; }
.chart-frame { width: 100%; min-height: 720px; border: 0; border-radius: 0 0 18px 18px; background: #0b0b0c; }
.share-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.qr-box { display: grid; place-items: center; min-height: 250px; border-radius: 16px; background: var(--cream); }
.fake-qr { width: 164px; height: 164px; background: repeating-conic-gradient(var(--ink) 0 25%, white 0 50%) 0 / 22px 22px; border: 12px solid white; box-shadow: 0 0 0 1px var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; display: none; justify-content: flex-end; background: rgba(17, 37, 41, .52); }
.drawer-backdrop.open { display: flex; }
.drawer { width: min(520px, 100%); height: 100%; overflow: auto; background: white; box-shadow: -18px 0 60px rgba(0, 0, 0, .18); }
.drawer-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); background: white; }
.drawer-body { display: grid; gap: 16px; padding: 22px; }
.drawer-actions { display: flex; gap: 10px; padding-top: 8px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: none; max-width: 380px; padding: 13px 16px; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow); font-weight: 800; }
.toast.show { display: block; }
.mobile-tabs { display: none; }

@media (max-width: 980px) {
  .hero-grid, .auth-layout, .share-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-tabs { display: flex; overflow-x: auto; gap: 8px; margin: -4px 0 20px; }
  .mobile-tabs .side-link { flex: 0 0 auto; width: auto; border: 1px solid var(--border); background: white; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 1.25rem, 1180px); }
  .nav-links { display: none; position: absolute; inset: 70px 0 auto; padding: 12px; border-bottom: 1px solid var(--border); background: var(--cream); }
  .nav-links.open { display: grid; }
  .nav-links .button { justify-content: flex-start; }
  .mobile-menu { display: block; }
  .nav-row > .button-primary { margin-left: auto; padding-inline: 12px; font-size: .78rem; }
  .display { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero { padding-top: 2rem; }
  .steps-grid, .faq-grid, .final-row, .form-grid, .plan-grid { grid-template-columns: 1fr; }
  .step { min-height: 300px; }
  .chart-card { border-radius: 18px; }
  .live-demo-shell { border-radius: 18px; }
  .live-demo-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .live-demo-head a { white-space: normal; }
  .live-demo-shell .live-demo-frame { height: 660px; }
  .live-demo-panel .live-demo-frame { height: 900px; }
  .chart-tools { display: grid; }
  .mini-table th:nth-child(4), .mini-table td:nth-child(4) { display: none; }
  .workspace-head { align-items: flex-start; flex-direction: column; }
  .workspace-head .actions { margin-top: 0; width: 100%; }
  .workspace-head .button { flex: 1; }
  .app-main { padding: 18px 10px 34px; }
  .app-header .brand span { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { padding: 13px; }
  .metric strong { font-size: 1.35rem; }
  .chart-frame { min-height: 760px; }
  .data-table th, .data-table td { white-space: nowrap; }
}

/* Location status badges */
.pill { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eef2f7; color: #475569; }
.pill-live { background: #dcfce7; color: #166534; }
