* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --background: #f4f5ef;
  --surface: #fffefa;
  --ink: #17271f;
  --muted: #53665c;
  --rule: #cbd5cb;
  --accent: #175b42;
  --hover: #104834;
  --tint: #e7efe5;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.mast { border-bottom: 1px solid var(--rule); background: var(--surface); }
.mast-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 1rem; font-weight: 750; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: white; }
main { padding-block: clamp(30px, 6vw, 72px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -.065em; line-height: 1.03; }
h2 { font-size: 1.25rem; letter-spacing: -.022em; }
h3 { font-size: 1.05rem; }
p { line-height: 1.55; }
.eyebrow { color: var(--accent); font: 700 .78rem/1.5 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.intro, .report-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dim, small, .model { color: var(--muted); }
.model { font-size: .85rem; max-width: 220px; }
.model strong { display: block; overflow-wrap: anywhere; }
.overview { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.google-panel { margin-bottom: 16px; }
.google-top { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px; }
.google-top h2 { margin-bottom: 4px; }
.google-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.google-panel details { margin: 12px 0 0; }
#google-configure { display: grid; gap: 12px; max-width: 560px; padding: 0 16px 16px; }
#google-configure p { padding: 0; }
#google-callback { overflow-wrap: anywhere; user-select: all; }
.google-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(125px, 100%), 1fr)); gap: 8px; margin-block: 18px; }
.google-metrics div { padding: 12px; background: var(--tint); }
.google-metrics dt { color: var(--muted); font-size: .84rem; }
.google-metrics dd { margin: 4px 0 0; font-size: 1.3rem; font-weight: 700; }
.google-caption { margin: 4px 0 10px; }
#google-opportunities .table-wrap { margin-inline: 0; }
.google-submit { margin-top: 12px; }
.surface { background: var(--surface); border: 1px solid var(--rule); padding: clamp(16px, 3vw, 28px); }
.action, .access, .history { display: grid; gap: 14px; align-content: start; }
.access { max-width: 420px; margin-top: 24px; }
label { display: block; margin-bottom: 5px; font-weight: 650; font-size: .92rem; }
input, select, textarea { width: 100%; max-width: 100%; min-height: 44px; background: #fff; color: var(--ink); border: 1px solid #8d9d92; border-radius: 4px; padding: 10px; font: inherit; }
textarea { resize: vertical; }
small { display: block; margin-top: 4px; line-height: 1.4; }
button { min-height: 44px; justify-self: start; border: 1px solid transparent; border-radius: 4px; padding: 9px 15px; background: var(--accent); color: #fff; font: 680 .9rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
button:hover { background: var(--hover); }
button:disabled { background: var(--tint); color: var(--muted); border-color: var(--rule); cursor: default; }
.tertiary { background: transparent; color: var(--accent); }
.tertiary:hover { background: var(--tint); }
:focus-visible { outline: 3px solid #22688d; outline-offset: 3px; }
#notice:not(:empty) { margin-block: 0 18px; padding: 12px; background: #f9e9da; color: #642e1a; }
#access + #notice:not(:empty) { margin-top: 15px; }
#report { margin-top: 36px; }
.report-head .eyebrow { margin: 0; text-align: right; }
.summary { border-left: 4px solid var(--accent); background: var(--tint); }
.summary p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; }
nav { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 18px; }
nav a { padding: 11px; border: 1px solid var(--rule); background: var(--surface); color: var(--accent); text-underline-offset: 3px; font-size: .86rem; min-height: 44px; }
details { background: var(--surface); border: 1px solid var(--rule); margin-bottom: 10px; scroll-margin: 15px; }
summary { padding: 15px 18px; min-height: 46px; cursor: pointer; font-weight: 720; }
details p { padding: 0 18px 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 18px 15px; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { padding: 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; min-width: 95px; }
th { background: var(--tint); }
td:first-child { min-width: 150px; }
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .intro { flex-direction: column; align-items: start; gap: 10px; }
  .overview { grid-template-columns: minmax(0, 1fr); }
  .mast-row { min-height: 60px; }
  .action button { width: 100%; }
}
