:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10131a;
  background: #f4f2ec;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --surface: #eeece5;
  --surface-raised: #f8f7f2;
  --line: #c8c8c1;
  --muted: #626975;
  --accent: #7f9900;
  --focus: #7f9900;
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f4f2ec; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 1120px; margin: 0 auto; padding: 1rem 1.25rem; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { font-size: 1.05rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand span, .site-header nav a, .identity-label, .fine-print, .site-footer { color: var(--muted); }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { font-size: .9rem; text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.page-shell { width: min(100% - 2rem, 1120px); margin: 2rem auto 3rem; }
.hero-panel { width: min(100%, 760px); margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line); background: var(--surface-raised); }
.eyebrow { margin: 0 0 .65rem; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .8rem; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: 1.35rem; letter-spacing: -.03em; }
.lede { margin-bottom: 1.3rem; color: #464d57; line-height: 1.55; }
.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; gap: .5rem; padding: .72rem 1rem; border: 1px solid #10131a; border-radius: 0; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.button-google { width: 100%; border-color: var(--line); background: #fff; color: #10131a; }
.button:disabled, button:disabled { cursor: not-allowed; opacity: .58; }
.button-primary { border-color: #10131a; background: #10131a; color: #f4f2ec; }
.button-primary:hover { background: #30343a; }
.button-quiet { border-color: var(--line); background: transparent; color: #10131a; }
.divider { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; color: var(--muted); font-size: .8rem; }
.divider::before, .divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
form { display: grid; gap: .65rem; }
[hidden] { display: none !important; }
label { margin-top: .35rem; font-size: .86rem; font-weight: 700; }
input, textarea, .admin-form select { width: 100%; min-height: 2.8rem; padding: .72rem .8rem; border: 1px solid #9b9d98; border-radius: 0; background: #fff; color: #10131a; }
textarea { resize: vertical; }
form .button { margin-top: .45rem; }
.fine-print { margin: 1rem 0 0; font-size: .78rem; line-height: 1.55; }
.account-benefits { display: grid; gap: .45rem; margin: 0 0 1rem; padding-left: 1.25rem; color: #30343a; font-size: .9rem; line-height: 1.5; }
.account-benefits li::marker { color: var(--accent); }
.auth-actions { margin-bottom: .25rem; }
.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: .25rem 0 1rem; border: 1px solid var(--line); background: #fff; }
.auth-mode-switch button, .text-button { min-height: 2.6rem; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.auth-mode-switch button[aria-pressed="true"] { background: #10131a; color: #fff; }
.text-button { justify-self: start; min-height: 2rem; padding: .2rem 0; color: #465400; text-decoration: underline; text-underline-offset: .2rem; }
.text-button:hover { color: #10131a; }
.account-view { display: grid; gap: 1.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h1 { font-size: clamp(2rem, 5vw, 3rem); }
.identity-label { overflow-wrap: anywhere; font-size: .88rem; }
.account-view > section, .admin-panel { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--surface-raised); }
.license-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .85rem; padding: 0; list-style: none; }
.license-card { padding: 1.1rem; border: 1px solid var(--line); background: #fff; }
.license-card h3 { margin: 0 0 .55rem; font-size: 1rem; }
.license-card p { margin: .3rem 0; color: var(--muted); font-size: .88rem; }
.admin-form { max-width: 38rem; margin: 1.25rem 0 2rem; padding: 1.1rem; border: 1px solid var(--line); background: var(--surface); }
.admin-form h3 { margin: 0 0 .3rem; }
.admin-form textarea { min-height: 5rem; }
.status-message { min-height: 1.4rem; color: var(--muted); font-size: .9rem; }
.support-panel > p:not(.eyebrow) { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); font-size: .76rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; }
  .page-shell { width: min(100% - 1.25rem, 1120px); margin-top: 1rem; }
  .section-heading, .site-footer { align-items: flex-start; flex-direction: column; }
}
body.is-embedded { min-height: 0; overflow: hidden; }
body.is-embedded .site-header, body.is-embedded .site-footer { display: none; }
body.is-embedded .page-shell { width: 100%; margin: 0; }
body.is-embedded .hero-panel { width: 100%; margin: 0; border: 0; box-shadow: none; }
body.is-embedded #sign-in > .eyebrow,
body.is-embedded #sign-in > h1,
body.is-embedded #sign-in > .lede,
body.is-embedded #sign-in > .account-benefits,
body.is-embedded #sign-in > .fine-print { display: none; }
