:root {
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172820;
  background: #f5f6f1;
  --line: #cbd6c9;
  --green: #175d38;
  --muted: #496052;
  --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a, button, input, textarea, select, summary { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 3px solid #368554; outline-offset: 3px; }
button:disabled, select:disabled { cursor: default; opacity: .6; }
input:disabled, textarea:disabled { background: #f4f6f2; }
h1, h2, h3, p, dl { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.055em; line-height: 1.06; margin-bottom: 10px; }
h2 { font-size: 1.38rem; letter-spacing: -.035em; line-height: 1.22; margin-bottom: 14px; }
h3 { font-size: 1rem; margin-bottom: 5px; }
p { margin-bottom: 12px; }
dt { font-weight: 600; }
dd { margin: 0; }
.sub { color: var(--muted); }
.shell { display: grid; grid-template-columns: 222px minmax(0, 1fr); min-height: 100vh; }
.rail { padding: 28px 18px; background: #183529; color: #fff; }
.brand { display: inline-block; color: inherit; font-size: 1.25rem; letter-spacing: -1px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand::before { content: '◢'; color: #478961; margin-right: 7px; }
.rail .brand::before { color: #9edbb5; }
.rail p { color: #c5dcce; margin: 0 0 30px 22px; font-size: .875rem; }
.rail nav { display: grid; gap: 5px; }
.rail nav a { background: none; color: #e2ede6; text-decoration: none; padding: 11px 14px; border-radius: 6px; font-weight: 600; }
.rail nav a[aria-current=page] { background: #d6efd9; color: #174831; }
.rail nav a:hover { box-shadow: inset 0 0 0 1px #88aa95; }
.workspace { max-width: 1250px; width: 100%; padding: 0 clamp(20px, 4vw, 62px) 54px; min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: .875rem; }
.top strong { color: #1b3929; }
.page { margin-top: 34px; }
.page-heading { margin-bottom: 24px; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.stat, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: clamp(14px, 2.2vw, 26px); min-width: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 5px; color: var(--muted); overflow-wrap: anywhere; }
.stat dt { font-weight: 500; }
.stat dd, .metric { display: block; color: var(--green); font: 650 clamp(1.3rem, 2.8vw, 2.1rem)/1.2 ui-monospace, monospace; }
.stat-text dd { font-family: inherit; font-size: clamp(.95rem, 2vw, 1.5rem); }
.panel + .panel { margin-top: 16px; }
.panel > :last-child { margin-bottom: 0; }
.line, .actions, .access-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.line { justify-content: space-between; }
.line h2 { margin-bottom: 0; }
.line + p, .line + .actions { margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--green); font-weight: 650; padding: 8px 14px; min-height: 43px; text-decoration: none; text-align: center; }
.btn:hover:not(:disabled) { border-color: var(--green); }
.btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.chip { color: var(--green); background: #e9f2e8; padding: 3px 8px; border-radius: 4px; display: inline-block; font-size: .8125rem; }
.table-wrap { overflow-x: auto; }
.line + .table-wrap, .line + .sub { margin-top: 14px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 7px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th[scope=col] { color: var(--muted); font-size: .8125rem; }
tr > :first-child { padding-left: 0; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { max-width: min(45vw, 32rem); }
.mobile-score { display: none; }
.score-support { display: block; color: var(--muted); font-size: max(.75rem, .875em); font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-sites] { display: grid; gap: 16px; }
[data-sites] .panel, [data-sites-message] { margin: 0; }
label { display: grid; gap: 4px; font-size: .875rem; font-weight: 650; min-width: 0; }
input, textarea, select { padding: 9px 10px; border: 1px solid #819585; background: #fff; color: inherit; border-radius: 4px; min-width: 0; max-width: 100%; }
textarea { resize: vertical; }
.import-controls { display: grid; gap: 12px; max-width: 750px; }
.site-form { justify-content: flex-start; align-items: flex-end; }
.site-form label { flex: 0 1 430px; }
.review { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.review ul { overflow-wrap: anywhere; columns: 2; padding-left: 24px; }
.review li { break-inside: avoid; }
.message:empty { display: none; }
.message { background: #e9f2e8; border-radius: 5px; color: #174831; padding: 9px 12px; margin: 12px 0 0; }
.message[data-error], .notice { color: #782719; background: #fff2ec; }
.back { display: inline-block; margin-bottom: 15px; font-weight: 650; }
.snapshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.snapshots > div { padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.snapshots .sub { margin: 8px 0 0; }
.comparison { margin-top: 18px; border-left: 3px solid #7e995f; padding-left: 12px; }
.comparison p:last-child { margin-bottom: 0; }
.criteria > div, .account-details > div, .plan-list li { border-bottom: 1px solid var(--line); padding: 9px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.account-details dd { overflow-wrap: anywhere; }
.plan-list { list-style: none; padding: 0; margin: 12px 0 0; }
.plan-list li:last-child, .account-details > div:last-child { border-bottom: 0; }
.plan-form { display: grid; align-items: start; justify-items: start; gap: 10px; }
.plan-form input { width: 12ch; }
details > summary { font-weight: 650; }
details[open] > summary { margin-bottom: 10px; }
.access { max-width: 1000px; margin: auto; min-height: 100vh; padding: 0 clamp(18px, 4vw, 38px); display: flex; flex-direction: column; }
.access > header, .access > footer { display: flex; align-items: center; gap: 16px; padding: 18px 0; }
.access > header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.access > footer { border-top: 1px solid var(--line); margin-top: auto; flex-wrap: wrap; }
.access-main { width: min(100%, 540px); margin: 0 auto; padding: clamp(28px, 8vw, 84px) 0; }
.access-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.access-form input:not([type=hidden]) { min-height: 44px; }
.access-form .btn, .access-google-button { width: 100%; min-height: 44px; }
.access-google-button { background: #fff; color: #1f1f1f; border-color: #747775; }
.access-google-button:hover:not(:disabled) { background: #f6f8f6; }
.access-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .875rem; }
.access-divider::before, .access-divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.access-recovery { justify-self: start; min-height: 28px; font-size: .875rem; }
.access-terms, .access-form .sub { font-size: .875rem; }
.access-actions { margin-top: 16px; }
.access-form .sub { margin: 0; }
.access-card > .notice { margin: 0 0 16px; }
@media(max-width: 780px) {
  .shell { display: block; }
  .rail { padding: 13px 16px; }
  .rail p { display: none; }
  .rail nav { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px; }
  .rail nav a { padding: 9px; font-size: .875rem; }
  .workspace { padding: 0 14px 30px; }
  .top { padding: 10px 0; }
  .page { margin-top: 20px; }
  .stats { gap: 6px; }
  .stat { padding: 9px; font-size: .8125rem; }
  th, td { padding: 9px 4px; }
  table { font-size: .875rem; }
}
@media(max-width: 460px) {
  .optional { display: none; }
  .mobile-score { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; margin-top: 3px; }
  .review ul { columns: auto; }
  .criteria > div, .account-details > div { grid-template-columns: 1fr; gap: 3px; }
}

.access .account-nav { display: flex; align-items: center; gap: 12px; }
.access .account-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.access .account-nav .nav-action { background: var(--green); color: #fff; padding: 0 12px; border-radius: 5px; }
.access .account-nav a:hover, .access .account-nav [aria-current] { text-decoration: underline; }
@media (max-width: 390px) {
  .access > header { flex-wrap: wrap; gap: 4px 8px; }
  .access .brand { font-size: 1rem; }
  .access .account-nav { gap: 8px; }
}
.site-credit { display: grid; gap: 2px; margin-inline-end: auto; color: var(--muted); font-size: .8125rem; }
.site-credit strong { color: #172820; font-size: .9375rem; }
.site-credit a { text-decoration: underline; }
.shell { grid-template-rows: 1fr auto; }
.shell > .rail { grid-row: 1 / 3; }
.workspace-footer { grid-column: 2; margin-inline: clamp(20px, 4vw, 62px); border-top: 1px solid var(--line); padding: 18px 0; }

.trial-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; background: #eef5eb; }
.trial-panel > div { flex: 1 1 32ch; }
.trial-panel h2 { margin-bottom: 6px; }
.trial-panel p { margin-bottom: 0; }
.capacity-offer { max-width: 760px; margin-top: 14px; padding: 14px; border: 1px solid #b0c6ae; border-radius: 6px; background: #eef5eb; }
.capacity-offer h3 { margin-bottom: 6px; }
.plan-recommendation { background: #eef5eb; border-radius: 6px; padding: 12px; }
