:root {
  color-scheme: dark;
  --bg: #0b0c0d;
  --surface: #151719;
  --text: #f2f1ed;
  --muted: #a7aaa9;
  --orange: #ff6a1a;
  --orange-light: #ff9147;
  --line: #ffffff21;
  --page: min(100% - 4rem, 68rem);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-light); }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 6px; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--orange); color: var(--bg); }
[hidden] { display: none !important; }
.wrap { width: var(--page); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -5rem; left: 1rem; padding: .7rem 1rem; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; font-size: 1.5rem; font-weight: 300; letter-spacing: -.065em; line-height: 1; }
.brand img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.brand-accent { color: var(--orange); font-weight: 500; }
.brand-labs { margin-left: .65rem; padding-left: .75rem; border-left: 1px solid #ffffff3d; color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: .015em; }
.header-note { font-size: .875rem; color: var(--muted); }
.topbar-inner:has(.session-controls:not([hidden])) .header-note { display: none; }
.session-controls { display: flex; align-items: center; gap: 1rem; font-size: .75rem; color: var(--muted); }
.text-button { background: none; border: 0; color: var(--text); padding: .65rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2rem; }
.text-button:hover { color: var(--orange-light); }
.nav-labs { text-decoration: none; color: var(--orange-light); }
.lab-home { padding-top: clamp(3rem, 6vw, 5rem); }
.lab-home-intro h1 { font-size: clamp(2.75rem, 5.3vw, 4.6rem); }
.lab-home-intro .lead { margin-top: 1.2rem; font-size: 1.0625rem; }
.featured-lab { margin-top: 2.5rem; padding: 1.7rem 2rem 1.25rem; border: 1px solid #ff6a1a77; border-radius: 1rem; background: #171512; }
.lab-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lab-category { font-size: .625rem; letter-spacing: .1em; font-weight: 500; color: var(--muted); }
.lab-availability { display: inline-flex; align-items: center; gap: .5rem; color: var(--orange-light); font-size: .6875rem; }
.lab-availability .tiny-mark { width: .3rem; height: .3rem; }
.featured-lab-body { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.25rem 1.6rem; }
.featured-lab-copy { max-width: 36rem; }
.featured-lab h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 300; letter-spacing: -.055em; line-height: 1.2; }
.featured-lab-copy > p { color: var(--muted); font-size: .9375rem; margin-top: .75rem; max-width: 31rem; }
.open-lab-button { flex-shrink: 0; min-height: 3.25rem; padding: .7rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: 1.35rem; border: 1px solid var(--orange); border-radius: 999px; background: var(--orange); color: #17120e; font-size: .9375rem; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s; }
.open-lab-button:hover { background: var(--orange-light); border-color: var(--orange-light); }
.open-lab-button span { font-size: 1.3rem; font-weight: 400; }
.lab-card-foot { border-top: 1px solid #ff91471f; padding-top: .9rem; font-size: .6875rem; color: #bfb5ac; }
.lab-card-foot span { padding-inline: .35rem; color: var(--orange-light); }
.future-labs { margin-top: 2.25rem; }
.future-lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.25rem; }
.future-lab { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.future-lab h3 { font-size: 1.125rem; font-weight: 400; letter-spacing: -.025em; margin-top: .65rem; }
.coming-soon { display: inline-block; margin-top: .75rem; color: var(--muted); font-size: .6875rem; }
.lab-home-note { color: var(--muted); font-size: .6875rem; margin-block: 1.25rem 1.5rem; max-width: 44rem; }
.detail-nav { padding-top: 1.15rem; }
.back-to-labs { display: inline-flex; align-items: center; gap: .65rem; background: none; border: 0; padding: .4rem 0; color: var(--muted); cursor: pointer; font-size: .75rem; }
.back-to-labs:hover { color: var(--orange-light); }
.lab-detail .hero { padding-top: 1.75rem; }
.auth-gate { padding-block: clamp(3rem, 8vh, 5rem) 4rem; min-height: calc(100vh - 13rem); }
.auth-content { max-width: 45rem; }
.auth-icon { width: 4rem; height: 4rem; margin-bottom: 1.6rem; }
.auth-gate h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.auth-action { margin-top: 2rem; min-height: 2.8rem; }
.google-workspace-button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.1rem; max-width: 100%; padding: .7rem 1.25rem; border: 1px solid #ffffff35; border-radius: 999px; background: #f2f1ed; color: #242424; font-size: .9375rem; font-weight: 500; line-height: 1.4; cursor: pointer; transition: background-color .2s, border-color .2s; }
.google-workspace-button:hover:not(:disabled) { background: #fff; border-color: #fff; }
.google-workspace-button:disabled { cursor: wait; opacity: .6; }
.google-mark { flex: 0 0 18px; }
.auth-disclosure { margin-top: 1.25rem; font-size: .75rem; color: var(--muted); max-width: 35rem; }
.auth-disclosure summary { cursor: pointer; }
.auth-disclosure .auth-note { margin-top: .6rem; }
.auth-status { color: var(--muted); font-size: .8125rem; margin-top: 1rem; }
.auth-status[data-kind="error"] { color: #ffb39f; }
.auth-note { max-width: 35rem; font-size: .75rem; color: var(--muted); margin-top: 1.25rem; }
.retry-button { border: 1px solid var(--orange); border-radius: 999px; background: var(--orange); color: var(--bg); font-size: .875rem; padding: .65rem 1.1rem; cursor: pointer; }
.hero { padding-top: clamp(3.5rem, 7vw, 6rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .75rem; letter-spacing: .14em; font-weight: 600; margin-bottom: 1.4rem; }
.tiny-mark { width: .5rem; height: .5rem; background: var(--orange); border-radius: 50%; }
h1 { font-size: clamp(2.9rem, 5.7vw, 5.3rem); line-height: 1.065; font-weight: 300; letter-spacing: -.065em; text-wrap: balance; }
h1 span { color: var(--orange); }
.lead { max-width: 35rem; margin-top: 1.5rem; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.check-area { margin-top: 3.25rem; }
.check-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; font-size: .72rem; font-weight: 500; letter-spacing: .105em; color: var(--muted); }
.check-mode { letter-spacing: 0; font-size: .8125rem; }
.detect-button { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 1.3rem; padding: 1.6rem 2rem 1.7rem; background: #171512; border: 1px solid #ff6a1a88; border-radius: 1rem; color: var(--text); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.detect-button:hover:not(:disabled) { background: #201914; border-color: var(--orange); transform: translateY(-2px); }
.detect-button:active:not(:disabled) { transform: translateY(0); }
.detect-button:disabled { cursor: wait; }
.button-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--orange-light); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; }
#button-icon { font-size: 1.65rem; font-weight: 300; letter-spacing: 0; line-height: 1; }
.ip-value { display: block; font-size: clamp(2.25rem, 6.6vw, 5.4rem); line-height: 1.18; letter-spacing: -.055em; font-weight: 300; overflow-wrap: anywhere; }
.detect-button[data-result="true"] .ip-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.button-hint { display: flex; align-items: center; gap: .6rem; color: #bfb5ac; font-size: .875rem; }
.button-hint span { color: var(--orange-light); }
.detect-button[aria-busy="true"] { border-color: #ff6a1a55; background: #151412; }
.detect-button[aria-busy="true"] #button-icon { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
.result-line { display: flex; align-items: flex-start; gap: .65rem; padding-top: 1rem; min-height: 2.6rem; }
.status-dot { flex: 0 0 .375rem; height: .375rem; margin-top: .55rem; border-radius: 50%; background: #6e7372; }
.result-line[data-kind="match"] .status-dot { background: var(--orange); }
.result-line[data-kind="different"] .status-dot { background: #b9c1c4; }
.result-line[data-kind="error"] .status-dot { background: #ff9c87; }
#result-status { font-size: .875rem; color: var(--muted); }
.result-line[data-kind="match"] #result-status { color: var(--orange-light); }
.result-line[data-kind="error"] #result-status { color: #ffb39f; }
.check-help { font-size: .75rem; color: var(--muted); margin: .35rem 0 0 1.025rem; }
.notice { border-left: 2px solid var(--orange); padding: .8rem 1rem; margin-top: 1rem; color: var(--orange-light); }
.comparison { margin-top: 2.65rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.section-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
.section-label h2 { font-size: 1.125rem; font-weight: 400; letter-spacing: -.025em; }
.section-label p { font-size: .8125rem; color: var(--muted); }
.measurements { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2.5rem; padding-top: 1.5rem; }
.measurement { min-width: 0; }
.measurement-label { font-size: .625rem; color: var(--muted); letter-spacing: .1em; }
.measurement-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1rem, 2.5vw, 1.75rem); letter-spacing: -.06em; margin-block: .4rem; overflow-wrap: anywhere; }
.measurement-detail { font-size: .75rem; color: var(--muted); }
.comparison-arrow { color: var(--orange); font-size: 1.5rem; font-weight: 300; }
.walkthrough { border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 2rem 2.75rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; padding: 0; margin: 1.7rem 0 0; }
.steps li { display: flex; align-items: baseline; gap: .85rem; }
.step-number { color: var(--orange-light); font: .75rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.steps h3 { font-size: 1.05rem; font-weight: 400; letter-spacing: -.025em; }
.steps p { color: var(--muted); font-size: .8125rem; line-height: 1.7; margin-top: .5rem; }
.details { border-top: 1px solid var(--line); font-size: .8125rem; }
.details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding-block: 1.1rem; color: var(--muted); list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary span { color: var(--orange); font-size: 1.2rem; }
.details[open] summary span { transform: rotate(45deg); }
.details-content { max-width: 52rem; color: var(--muted); padding-bottom: 1.5rem; }
.details-content p + p { margin-top: .85rem; }
.details-content strong { color: var(--text); font-weight: 500; }
code { font-size: .95em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; border-top: 1px solid var(--line); margin-top: 1rem; padding-block: 1.7rem; color: var(--muted); font-size: .6875rem; }
.footer span { padding-inline: .25rem; color: #6e7372; }
@media (min-width: 681px) and (max-height: 820px) {
  .topbar-inner { min-height: 5rem; }
  .auth-gate { padding-top: 2rem; }
  .auth-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
  .auth-gate h1 { font-size: clamp(2.6rem, 5vw, 3.75rem); }
  .auth-action { margin-top: 1.5rem; }
  .hero { padding-top: 2.5rem; }
  .lab-home { padding-top: 2rem; }
  .lab-home-intro h1 { font-size: clamp(2.75rem, 5vw, 3.6rem); }
  .lab-home-intro .lead { margin-top: .9rem; }
  .featured-lab { margin-top: 1.6rem; padding: 1.25rem 1.65rem 1rem; }
  .featured-lab-body { padding-block: 1rem 1.2rem; }
  .future-labs { margin-top: 1.6rem; }
  .lab-detail .hero { padding-top: .75rem; }
  .eyebrow { margin-bottom: 1rem; }
  h1 { font-size: clamp(2.9rem, 5.1vw, 4rem); }
  .lead { margin-top: 1rem; font-size: 1.0625rem; max-width: 39rem; }
  .check-area { margin-top: 1.5rem; }
  .detect-button { padding: 1.25rem 1.7rem; gap: 1rem; }
  .ip-value { font-size: clamp(2.25rem, 6.2vw, 4.5rem); }
}
@media (max-width: 680px) {
  :root { --page: calc(100% - 2.5rem); }
  .topbar-inner { min-height: 5rem; }
  .header-note { display: none; }
  .session-controls { gap: .5rem; }
  .nav-labs { font-size: .6875rem; }
  .lab-home { padding-top: 2.5rem; }
  .featured-lab { margin-top: 2rem; padding: 1.25rem; }
  .featured-lab-body { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .open-lab-button { min-height: 3rem; }
  .lab-card-top { align-items: flex-start; }
  .lab-availability { font-size: .625rem; }
  .lab-category { font-size: .5625rem; }
  .future-lab-grid { grid-template-columns: 1fr; gap: .25rem; }
  .future-lab { position: relative; padding-right: 6.5rem; }
  .coming-soon { position: absolute; top: 1rem; right: 0; }
  .lab-detail .hero { padding-top: 1rem; }
  #session-email { display: none; }
  .auth-gate { padding-top: 2rem; }
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(2.6rem, 8vw, 3.8rem); }
  .lead { font-size: 1rem; }
  .check-area { margin-top: 2.25rem; }
  .check-heading { font-size: .625rem; }
  .check-mode { font-size: .6875rem; }
  .detect-button { padding: 1.25rem; gap: 1.15rem; }
  .ip-value { font-size: clamp(1.9rem, 8.2vw, 3.6rem); }
  .button-hint { font-size: .75rem; }
  .button-top { font-size: .625rem; }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
  .steps p { margin-top: .25rem; }
  .steps li { gap: 1rem; }
  .measurements { gap: 1rem; }
  .measurement-ip { font-size: clamp(.92rem, 3.6vw, 1.5rem); }
  .measurement-detail { font-size: .6875rem; }
  .comparison-arrow { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.3rem; gap: .6rem; }
  .brand img { width: 2rem; height: 2rem; }
  .brand-labs { display: none; }
  .google-workspace-button { font-size: .875rem; padding-inline: 1rem; }
}
@media (forced-colors: active) {
  .detect-button { border: 1px solid ButtonText; }
  .status-dot, .tiny-mark { background: CanvasText; }
}
