:root {
  --ink: #15231f;
  --muted: #60706a;
  --line: #dce5e1;
  --paper: #f7faf8;
  --white: #ffffff;
  --forest: #204d40;
  --forest-light: #e7f1ed;
  --coral: #d94e63;
  --coral-dark: #b93d51;
  --gold: #c69539;
  --blue: #426f92;
  --danger: #b7474f;
  --shadow: 0 18px 46px rgba(21, 35, 31, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
.button[hidden] { display: none !important; }
.button.disabled { cursor: not-allowed; opacity: .55; pointer-events: none; }
h1, h2, h3, p { margin-top: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; }
.brand img { width: 36px; height: 36px; object-fit: contain; background: white; border-radius: 6px; }
.brand-light { color: white; }
.brand-dark { color: var(--ink); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; padding: 9px 16px; font-weight: 800; background: transparent; color: inherit; }
.button-primary { background: var(--coral); color: white; }
.button-primary:hover { background: var(--coral-dark); }
.button-quiet { border-color: var(--line); background: white; }
.button-dark { background: var(--ink); color: white; }
.button-glass { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.12); color: white; }
.button-large { min-height: 50px; padding: 12px 22px; }
.button-block { width: 100%; }
.kicker, .eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.muted { color: var(--muted); }

.marketing-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 76px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; color: white; }
.marketing-header nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 700; }
.marketing-header .button-quiet { color: var(--ink); }
.hero { min-height: 88vh; position: relative; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,31,26,.88) 0%, rgba(13,31,26,.68) 38%, rgba(13,31,26,.16) 70%); }
.hero-content { position: relative; z-index: 1; min-height: 88vh; max-width: 760px; padding: 18vh clamp(22px, 7vw, 104px) 70px; display: flex; flex-direction: column; justify-content: center; color: white; }
.hero h1 { font-size: clamp(58px, 8vw, 108px); line-height: 1; margin-bottom: 24px; }
.hero-copy { max-width: 700px; color: rgba(255,255,255,.91); font-size: clamp(20px, 2.2vw, 29px); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 44px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero-facts div { border-top: 1px solid rgba(255,255,255,.4); padding-top: 14px; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: 21px; }
.hero-facts span { color: rgba(255,255,255,.72); font-size: 12px; margin-top: 4px; }
.content-band, .sample-band, .pricing-band, .trial-band, .feedback-band { padding: 90px clamp(22px, 6vw, 88px); }
.content-band { max-width: 1320px; margin: 0 auto; }
.section-heading h2, .trial-band h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.2; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 42px; }
.workflow-grid article { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 28px; min-height: 220px; }
.workflow-grid article > span { color: var(--coral); font-size: 13px; font-weight: 800; }
.workflow-grid h3 { margin: 34px 0 10px; font-size: 21px; }
.workflow-grid p { color: var(--muted); margin-bottom: 0; }
.sample-band { background: #eef4f1; }
.sample-heading { max-width: 1180px; margin: 0 auto 38px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: end; }
.sample-heading h2 { max-width: 720px; margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; }
.sample-heading > p { margin: 0; color: var(--muted); font-size: 17px; }
.sample-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sample-item { min-height: 370px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 8px; }
.sample-preview { min-height: 370px; display: grid; place-items: center; padding: 26px; background: #e5eee9; }
.sample-paper { width: 190px; aspect-ratio: 1 / 1.414; padding: 25px 18px; background: #fff; box-shadow: 0 16px 32px rgba(21,35,31,.16); color: var(--ink); }
.sample-paper > span { display: block; color: var(--coral); font-size: 7px; font-weight: 800; margin-bottom: 18px; }
.sample-paper > strong { display: block; font-size: 13px; line-height: 1.45; }
.sample-score { margin: 28px 0 18px; font-size: 44px; font-weight: 800; color: #9aa39f; }
.sample-paper > i, .sample-table-lines i { display: block; height: 5px; margin-top: 8px; background: #dfe8e4; }
.sample-paper > i:nth-of-type(1) { width: 76%; background: #5f927f; }
.sample-paper > i:nth-of-type(2) { width: 56%; background: #d6a64b; }
.sample-paper > i:nth-of-type(3) { width: 86%; }
.clinician-preview { background: #e8edf1; }
.clinician-preview .sample-paper > span { color: var(--blue); }
.sample-table-lines { margin-top: 44px; }
.sample-table-lines i { height: 13px; border-left: 4px solid var(--blue); background: #edf2f5; }
.sample-copy { align-self: center; padding: 30px; }
.sample-tag { display: inline-block; margin-bottom: 16px; color: var(--coral); font-size: 11px; font-weight: 800; }
.sample-copy h3 { margin-bottom: 12px; font-size: 24px; }
.sample-copy p { min-height: 78px; color: var(--muted); font-size: 14px; }
.pricing-band { background: white; }
.pricing-heading { max-width: 1180px; margin: 0 auto 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: end; }
.pricing-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; }
.pricing-heading > p { margin: 0; color: var(--muted); font-size: 16px; }
.pricing-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pricing-card { min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; display: flex; flex-direction: column; }
.pricing-card.highlight { border-color: #e5b8bf; background: #fff7f8; }
.pricing-card span { color: var(--coral); font-size: 12px; font-weight: 800; }
.pricing-card strong { margin: 14px 0 18px; font-size: 30px; line-height: 1.2; }
.pricing-card p { margin: 0; color: var(--muted); font-size: 14px; }
.pricing-notes { max-width: 1180px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pricing-notes div { padding: 18px; border-left: 3px solid var(--forest); background: var(--forest-light); }
.pricing-notes strong, .pricing-notes span { display: block; }
.pricing-notes strong { margin-bottom: 7px; font-size: 13px; }
.pricing-notes span { color: var(--muted); font-size: 12px; }
.trial-band { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; background: var(--forest); color: white; }
.trial-band .trial-copy { align-self: center; }
.trial-band .trial-copy p { color: rgba(255,255,255,.78); font-size: 18px; }
.feedback-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; background: #f5f8f6; }
.feedback-copy h2 { margin-bottom: 12px; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.2; }
.feedback-copy p:not(.kicker) { color: var(--muted); font-size: 16px; }
.feedback-form { display: grid; gap: 10px; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.feedback-form label { font-size: 13px; font-weight: 800; }
.feedback-form textarea { width: 100%; min-height: 150px; resize: vertical; padding: 13px 14px; border: 1px solid #cbd8d2; border-radius: 6px; color: var(--ink); font: inherit; line-height: 1.55; }
.feedback-form textarea:focus { outline: 3px solid rgba(63,139,118,.14); border-color: #3f8b76; }
.feedback-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.feedback-actions small { color: var(--muted); font-size: 11px; }
.feedback-status { margin: 2px 0 0; padding: 10px 12px; border-radius: 5px; font-size: 13px; font-weight: 800; }
.feedback-status.success { background: var(--forest-light); color: var(--forest); }
.feedback-status.error { background: #fff1f2; color: var(--danger); }
.site-footer { min-height: 118px; padding: 24px clamp(22px, 5vw, 76px); display: flex; align-items: center; gap: 30px; background: #10201b; color: rgba(255,255,255,.72); font-size: 13px; }
.site-footer strong { color: white; font-size: 17px; }
.site-footer a { color: white; font-weight: 700; }
.footer-brand { display: grid; gap: 5px; min-width: 190px; }
.footer-business { max-width: 720px; display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: 11px; line-height: 1.55; }
.footer-business a { font-size: 11px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; white-space: nowrap; }

.auth-page { background: white; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1.05fr) minmax(420px, .95fr); }
.auth-visual { min-height: 100vh; position: relative; overflow: hidden; color: white; }
.auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,32,27,.35), rgba(15,32,27,.87)); }
.auth-visual-copy { position: relative; z-index: 1; height: 100%; padding: 54px clamp(34px, 6vw, 84px); display: flex; flex-direction: column; justify-content: flex-end; }
.auth-visual-copy .brand { position: absolute; top: 36px; left: clamp(34px, 6vw, 84px); }
.auth-visual-copy h1 { max-width: 620px; font-size: clamp(34px, 4.5vw, 64px); line-height: 1.15; margin-bottom: 18px; }
.auth-visual-copy p { max-width: 600px; color: rgba(255,255,255,.78); font-size: 18px; }
.trial-number { font-size: 112px !important; line-height: .85; margin-bottom: 28px; font-weight: 800; color: white !important; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 54px clamp(28px, 6vw, 78px); }
.auth-panel-scroll { align-items: flex-start; overflow-y: auto; }
.auth-form-wrap { width: min(100%, 560px); }
.auth-form-wrap h2 { font-size: 34px; margin-bottom: 8px; }
.form-stack { display: grid; gap: 18px; margin-top: 30px; }
.form-stack label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.form-stack label > span { color: var(--muted); font-size: 11px; font-weight: 500; }
.form-stack input, .patient-form input, .patient-form select { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #cbd8d2; border-radius: 5px; background: white; color: var(--ink); }
.form-stack input:focus, .patient-form input:focus, .patient-form select:focus { outline: 3px solid rgba(63,139,118,.14); border-color: #3f8b76; }
.two-column-form { grid-template-columns: 1fr 1fr; }
.form-wide { grid-column: 1 / -1; }
.check-row { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 500 !important; line-height: 1.5; }
.check-row input { width: 17px; min-height: 17px; margin-top: 3px; }
.check-row a { color: var(--forest); font-weight: 800; text-decoration: underline; }
.form-error { padding: 10px 12px; border-left: 3px solid var(--danger); background: #fff1f2; color: var(--danger); font-size: 13px; font-weight: 700; }
.auth-switch { margin: 22px 0 10px; color: var(--muted); font-size: 14px; }
.auth-switch a, .back-link { color: var(--forest); font-weight: 800; }
.back-link { font-size: 13px; }

.dashboard-page { background: #f4f7f5; }
.app-header { height: 68px; position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: white; border-bottom: 1px solid var(--line); }
.app-header-right { display: flex; align-items: center; gap: 12px; }
.clinic-name { font-weight: 800; }
.status-badge { padding: 6px 9px; border-radius: 4px; background: var(--forest-light); color: var(--forest); font-size: 12px; font-weight: 800; }
.status-badge.expired { background: #f8e7e9; color: var(--danger); }
.dashboard-shell { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.app-sidebar { padding: 26px 18px; background: #14241f; color: rgba(255,255,255,.72); display: flex; flex-direction: column; gap: 7px; }
.app-sidebar > a { padding: 10px 12px; border-radius: 5px; font-size: 14px; font-weight: 700; }
.app-sidebar > a.active, .app-sidebar > a:hover { background: rgba(255,255,255,.1); color: white; }
.sidebar-note { margin-top: auto; border-top: 1px solid rgba(255,255,255,.16); padding: 18px 10px 0; font-size: 12px; }
.sidebar-note strong { color: #efc97f; }
.sidebar-note p { margin: 7px 0 0; color: rgba(255,255,255,.58); }
.sidebar-legal { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.sidebar-legal a { color: rgba(255,255,255,.78); font-size: 10px; text-decoration: underline; }
.dashboard-main { min-width: 0; padding: 28px clamp(20px, 4vw, 54px) 70px; }
.trial-banner { max-width: 1260px; margin: 0 auto 24px; min-height: 130px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--forest); color: white; border-radius: 8px; }
.trial-banner.expired { background: #70464a; }
.trial-label { color: #f0cc84; font-size: 12px; font-weight: 800; }
.trial-banner h1 { margin: 4px 0 0; font-size: 27px; }
.trial-banner h1 strong { font-size: 42px; }
.trial-banner p { max-width: 430px; margin: 0; color: rgba(255,255,255,.75); }
.dashboard-section { max-width: 1260px; margin: 0 auto 24px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title-row h2, .billing-section h2 { margin: 0; font-size: 23px; }
.section-title-row .kicker, .billing-section .kicker { margin-bottom: 5px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-grid article { min-height: 128px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfb; }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); }
.metric-grid span { font-size: 12px; font-weight: 700; }
.metric-grid strong { display: block; margin: 8px 0 7px; font-size: 27px; }
.metric-grid small { font-size: 11px; }
.data-rule { color: var(--forest); background: var(--forest-light); padding: 7px 9px; border-radius: 4px; font-size: 11px; font-weight: 800; }
.inline-form-panel { margin-bottom: 20px; padding: 18px; background: #f3f8f5; border: 1px solid #d3e4dc; border-radius: 6px; }
.patient-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.patient-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.patient-memo { grid-column: span 3; }
.form-actions { display: flex; align-items: end; justify-content: flex-end; gap: 7px; }
.patient-form .form-error { grid-column: 1 / -1; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 10px; text-align: left; color: var(--muted); background: #f6f8f7; border-block: 1px solid var(--line); font-size: 11px; }
td { padding: 13px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-actions { text-align: right; }
.table-button { border: 0; background: transparent; color: var(--muted); padding: 6px 8px; font-size: 11px; font-weight: 800; }
.table-button.primary { color: var(--forest); background: var(--forest-light); border-radius: 4px; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 7px 0 0; font-size: 13px; }
.billing-section { display: grid; grid-template-columns: 1.3fr .7fr; gap: 44px; align-items: center; }
.billing-section > div > p:last-child { margin-bottom: 0; color: var(--muted); }
.download-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.download-section h2 { margin: 0 0 9px; font-size: 23px; }
.download-section > div > p:last-child { margin-bottom: 0; color: var(--muted); }
.download-action { padding-left: 28px; border-left: 1px solid var(--line); display: grid; gap: 8px; }
.download-action span, .download-action small { color: var(--muted); font-size: 11px; }
.download-action strong { font-size: 19px; }
.pc-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pc-choice-button { min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.pc-choice-button strong, .pc-choice-button span { display: block; }
.pc-choice-button strong { font-size: 15px; }
.pc-choice-button span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.pc-choice-button.active { border-color: var(--forest); background: var(--forest-light); box-shadow: inset 0 0 0 1px var(--forest); }
.pc-choice-button:disabled { cursor: not-allowed; opacity: .58; }
.mobile-pc-notice { padding: 12px; border-left: 3px solid var(--gold); background: #fff8e9; }
.mobile-pc-notice strong, .mobile-pc-notice span { display: block; }
.mobile-pc-notice strong { color: var(--ink); font-size: 12px; }
.mobile-pc-notice span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.billing-options { min-width: 360px; display: grid; gap: 18px; }
.billing-status { padding-left: 28px; border-left: 1px solid var(--line); display: grid; gap: 9px; }
.billing-status span, .billing-status small { color: var(--muted); font-size: 11px; }
.billing-status strong { font-size: 20px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 360px; padding: 13px 16px; border-radius: 6px; box-shadow: var(--shadow); background: var(--ink); color: white; font-size: 13px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.simple-page { min-height: 100vh; display: grid; place-items: center; }
.simple-page main { text-align: center; }
.billing-result { width: min(100% - 32px, 520px); padding: 42px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.billing-result .brand { margin-bottom: 34px; }
.billing-result h1 { margin-bottom: 12px; font-size: 28px; }
.billing-result > p:not(.kicker) { margin-bottom: 24px; color: var(--muted); }

.legal-page { background: #f4f7f5; }
.legal-header { position: sticky; top: 0; z-index: 5; min-height: 68px; padding: 0 clamp(20px, 5vw, 70px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: white; border-bottom: 1px solid var(--line); }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; color: var(--muted); font-size: 12px; font-weight: 800; }
.legal-nav a:hover { color: var(--forest); }
.legal-shell { width: min(100% - 32px, 980px); margin: 0 auto; padding: 54px 0 80px; }
.legal-intro { margin-bottom: 30px; }
.legal-intro h1 { margin-bottom: 10px; font-size: 38px; }
.legal-intro p { color: var(--muted); }
.legal-notice { padding: 15px 18px; border-left: 4px solid var(--gold); background: #fff8e9; color: #69552d; font-size: 13px; }
.legal-section { scroll-margin-top: 88px; margin-top: 18px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.legal-section h2 { margin-bottom: 8px; font-size: 26px; }
.legal-section h3 { margin: 28px 0 8px; font-size: 17px; }
.legal-section p, .legal-section li { color: #4e5d58; font-size: 14px; }
.legal-section ol, .legal-section ul { margin: 8px 0 0; padding-left: 21px; }
.legal-section li + li { margin-top: 6px; }
.legal-meta { color: var(--muted); font-size: 12px; }
.legal-table-wrap { overflow-x: auto; margin-top: 12px; }
.legal-table { min-width: 680px; }
.legal-table th, .legal-table td { white-space: normal; vertical-align: top; }
.legal-contact { margin-top: 26px; padding: 18px; background: var(--forest-light); border-radius: 6px; }
.legal-contact strong, .legal-contact span, .legal-contact a { display: block; }
.legal-contact a { margin-top: 4px; color: var(--forest); font-weight: 800; }
.legal-footer { padding: 24px; text-align: center; color: var(--muted); font-size: 12px; }

.admin-page { min-height: 100vh; background: #f4f7f5; }
.admin-shell { max-width: 1380px; margin: 0 auto; padding: 38px clamp(18px, 4vw, 56px) 80px; }
.admin-auth-panel { width: min(100%, 500px); margin: 5vh auto 0; padding: 34px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.admin-auth-panel h1, .admin-title-row h1 { margin-bottom: 8px; font-size: 32px; }
.admin-auth-panel > p:not(.kicker) { color: var(--muted); }
.admin-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.admin-title-row h1 { margin-bottom: 0; }
.admin-section-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.admin-section-title h2 { margin: 0; font-size: 22px; }
.admin-signup-alert { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #efd088; border-left: 5px solid var(--gold); border-radius: 8px; background: #fff8e8; box-shadow: 0 10px 24px rgba(88, 64, 18, .08); }
.admin-signup-alert[hidden] { display: none; }
.admin-signup-alert strong, .admin-signup-alert span { display: block; }
.admin-signup-alert strong { font-size: 15px; }
.admin-signup-alert span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.admin-metrics { margin-bottom: 22px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.admin-toolbar input { width: min(100%, 420px); min-height: 42px; padding: 9px 12px; border: 1px solid #cbd8d2; border-radius: 5px; }
.admin-toolbar span { color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-table-wrap { background: white; border: 1px solid var(--line); border-radius: 8px; }
.admin-table-wrap table { min-width: 1180px; }
.admin-table-wrap td { vertical-align: top; }
.admin-table-wrap td strong, .admin-table-wrap td span, .admin-table-wrap td small { display: block; }
.admin-table-wrap td small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-new-signup { background: #fffaf0; }
.admin-new-signup td:first-child { border-left: 4px solid var(--gold); }
.admin-new-label { display: inline-block !important; width: fit-content; margin-top: 8px !important; padding: 4px 7px; border-radius: 4px; background: #fff1bd; color: #725513 !important; font-size: 10px; font-weight: 900; }
.admin-inline-actions { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.admin-status-select { min-height: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.admin-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-certificate-link { display: inline-block; margin-top: 8px; color: var(--forest); font-size: 12px; font-weight: 800; text-decoration: underline; }
.admin-feedback-panel { margin-top: 24px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.admin-feedback-list { display: grid; gap: 10px; }
.admin-feedback-item { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfb; }
.admin-feedback-item.unread { border-color: #efd088; background: #fffaf0; }
.admin-feedback-item p { margin: 0; color: #34433f; white-space: pre-wrap; line-height: 1.55; }
.admin-feedback-meta { display: flex; align-items: center; gap: 8px; }
.admin-feedback-meta span { color: var(--muted); font-size: 11px; font-weight: 800; }
.admin-feedback-meta strong { padding: 3px 7px; border-radius: 4px; background: #fff1bd; color: #725513; font-size: 10px; }
.admin-feedback-empty { padding: 28px 16px; }

@media (max-width: 900px) {
  .marketing-header nav > a:not(.button) { display: none; }
  .hero { min-height: 760px; }
  .hero-content { min-height: 760px; padding-top: 150px; }
  .workflow-grid, .pricing-grid, .pricing-notes, .metric-grid, .admin-metrics { grid-template-columns: 1fr; }
  .sample-heading, .pricing-heading, .sample-grid, .trial-band, .feedback-band, .billing-section, .download-section { grid-template-columns: 1fr; gap: 28px; }
  .sample-item { grid-template-columns: 220px minmax(0, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 320px; }
  .auth-visual-copy { min-height: 320px; padding-block: 36px; }
  .auth-visual-copy h1 { font-size: 34px; }
  .auth-panel { padding-block: 44px; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .patient-form { grid-template-columns: 1fr 1fr; }
  .patient-memo { grid-column: 1 / -1; }
  .billing-options { min-width: 0; }
  .billing-status { padding: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .download-action { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .marketing-header { padding-inline: 16px; }
  .marketing-header nav { gap: 7px; }
  .marketing-header .button { padding-inline: 10px; font-size: 12px; }
  .hero-content { padding-inline: 20px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding-top: 9px; }
  .content-band, .sample-band, .pricing-band, .trial-band, .feedback-band { padding: 64px 20px; }
  .feedback-actions { align-items: stretch; flex-direction: column; }
  .sample-item { grid-template-columns: 1fr; }
  .sample-preview { min-height: 300px; }
  .sample-copy p { min-height: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-links { margin-left: 0; flex-wrap: wrap; white-space: normal; }
  .two-column-form, .patient-form { grid-template-columns: 1fr; }
  .form-wide, .patient-memo { grid-column: auto; }
  .app-header { padding-inline: 14px; }
  .app-header .brand span, .clinic-name { display: none; }
  .dashboard-main { padding-inline: 12px; }
  .trial-banner { align-items: flex-start; flex-direction: column; }
  .dashboard-section { padding: 18px; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .legal-header { align-items: flex-start; flex-direction: column; padding-block: 14px; }
  .legal-nav { justify-content: flex-start; }
  .legal-shell { padding-top: 34px; }
  .legal-intro h1 { font-size: 30px; }
  .legal-section { padding: 22px 18px; }
}
