
:root {
  --ink: #141814;
  --ink-soft: #303630;
  --paper: #f8f7f2;
  --paper-2: #efefe9;
  --paper-3: #e5e7df;
  --white: #fffef9;
  --line: #c9cdc4;
  --line-strong: #949b90;
  --muted: #626860;
  --green: #285742;
  --green-2: #3f735a;
  --green-pale: #dce9df;
  --orange: #d65c38;
  --orange-pale: #f4d7cb;
  --yellow-pale: #fff3c8;
  --danger: #a92f27;
  --success: #17613d;
  --shadow: 0 24px 70px rgba(20, 24, 20, .09);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shell: 1440px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::selection { background: var(--orange-pale); color: var(--ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: #8a9087; }
:focus-visible { outline: 3px solid rgba(214, 92, 56, .55); outline-offset: 3px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-160%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }
.shell.narrow { width: min(760px, calc(100% - 40px)); }
.narrow-left { max-width: 1080px; margin-left: max(24px, calc((100vw - var(--shell)) / 2)); margin-right: 24px; }
.section-block { padding-block: clamp(88px, 11vw, 170px); }
.eyebrow { margin: 0 0 14px; font: 600 12px/1.2 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--green); }
.eyebrow.light { color: #cbe0d0; }
.muted { color: var(--muted); }
code, pre { font-family: var(--font-mono); }

.button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--orange); color: #fff; }
.button.primary:hover { background: #bd4827; }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: var(--green); }
.button.ghost { background: transparent; border-color: var(--line-strong); }
.button.ghost:hover { border-color: var(--ink); background: var(--white); }
.button.inverse { background: #f8f7f2; color: var(--ink); }
.button.large { min-height: 58px; padding-inline: 26px; font-size: 15px; }
.button.compact { min-height: 40px; padding-inline: 14px; font-size: 13px; }
.button.full { width: 100%; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 19px; }
.icon-button:hover { border-color: var(--ink); }
.icon-button.danger { color: var(--danger); border-color: #e3b4af; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 247, 242, .91); border-bottom: 1px solid rgba(201, 205, 196, .75); backdrop-filter: blur(18px); }
.site-header__inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.04em; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); position: relative; overflow: hidden; }
.brand__mark::before { content: ""; position: absolute; inset: 9px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; }
.brand__mark span { position: absolute; right: 5px; top: 5px; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav > a { font-size: 13px; font-weight: 700; text-decoration: none; }
.primary-nav > a:hover { color: var(--green); }
.primary-nav .nav-cta { border: 1px solid var(--ink); padding: 9px 13px; border-radius: 8px; }
.nav-form { margin: 0; }
.nav-account { border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; text-align: right; font-weight: 700; line-height: 1.15; }
.nav-account span { color: var(--muted); font-size: 11px; font-weight: 600; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: transparent; border-radius: 10px; padding: 12px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 30px; background: var(--paper-2); }
.site-footer__grid { display: grid; grid-template-columns: minmax(280px, 1.5fr) 1fr 1fr; gap: 70px; }
.site-footer__grid > div { display: grid; align-content: start; gap: 12px; }
.site-footer__grid p { max-width: 47ch; color: var(--muted); }
.site-footer__grid strong { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.site-footer__grid a:not(.brand) { width: fit-content; color: var(--muted); font-size: 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 64px; padding-top: 24px; color: var(--muted); font-size: 12px; }
.footer-brand { margin-bottom: 6px; }

/* Landing */
.hero { min-height: min(860px, calc(100svh - 74px)); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; padding-block: clamp(70px, 8vw, 120px); }
.hero__copy h1, .page-hero h1, .experiment-header h1, .dashboard-hero h1, .auth-intro h1 {
  margin: 0;
  font-size: clamp(54px, 7.7vw, 116px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 800;
}
.hero__copy h1 em { color: var(--green); font-style: normal; }
.hero__lead { margin: 34px 0 0; max-width: 720px; font-size: clamp(17px, 1.4vw, 22px); color: var(--ink-soft); }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.hero__facts { display: flex; gap: clamp(28px, 5vw, 70px); margin: 70px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.hero__facts div { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.hero__facts dt { font: 600 13px var(--font-mono); color: var(--orange); }
.hero__facts dd { margin: 0; font-size: 12px; color: var(--muted); }
.hero__visual { min-height: 630px; position: relative; background: var(--ink); border-radius: 4px; overflow: hidden; color: #fff; box-shadow: var(--shadow); }
.visual-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 98%); }
.hero__visual svg { position: absolute; inset: 54px 30px 38px; width: calc(100% - 60px); height: calc(100% - 92px); }
.visual-label { position: absolute; z-index: 2; top: 26px; left: 28px; font: 600 10px var(--font-mono); letter-spacing: .18em; color: #bec8c0; }
.hero-axis { fill: none; stroke: #7e8a80; stroke-width: 1.5; }
.hero-curve { fill: none; stroke: #f6f4ec; stroke-width: 6; stroke-linecap: round; }
.hero-points circle { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.hero-guide { stroke: #7b8f82; stroke-width: 1; stroke-dasharray: 5 7; }
.hero-note, .hero-tick { fill: #cfd7d0; font: 500 13px var(--font-mono); }
.visual-result { position: absolute; right: 28px; bottom: 26px; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; background: #f6f4ed; color: var(--ink); padding: 16px 18px; min-width: 230px; }
.visual-result span { grid-column: 1 / -1; font: 600 10px var(--font-mono); letter-spacing: .09em; color: var(--muted); }
.visual-result strong { font: 700 34px var(--font-mono); }
.visual-result small { font: 500 12px var(--font-mono); }
.section-heading h2 { margin: 0; font-size: clamp(42px, 6vw, 84px); line-height: .98; letter-spacing: -.065em; }
.section-heading.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.section-heading.split > p { color: var(--muted); font-size: 18px; max-width: 52ch; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 80px; border-top: 1px solid var(--line); }
.principle-grid article { padding: 30px 38px 30px 0; border-right: 1px solid var(--line); }
.principle-grid article + article { padding-left: 38px; }
.principle-grid article:last-child { border-right: 0; }
.principle-grid span { font: 600 12px var(--font-mono); color: var(--orange); }
.principle-grid h3 { margin: 50px 0 16px; font-size: 25px; letter-spacing: -.04em; }
.principle-grid p { color: var(--muted); margin: 0; }
.section-dark { background: var(--ink); color: #f7f6f1; }
.product-demo { padding-block: clamp(90px, 12vw, 170px); overflow: hidden; }
.product-demo__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 130px); align-items: center; }
.product-demo__copy h2 { margin: 0; font-size: clamp(48px, 7vw, 92px); line-height: .94; letter-spacing: -.07em; }
.product-demo__copy p:not(.eyebrow) { color: #adb8af; max-width: 48ch; font-size: 18px; margin: 28px 0 34px; }
.demo-window { background: #f5f4ee; color: var(--ink); border: 1px solid #3d443e; box-shadow: 22px 22px 0 #2c5a44; transform: rotate(1.1deg); }
.demo-window__bar { min-height: 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.demo-window__bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.demo-window__bar strong { margin-left: 12px; font: 500 11px var(--font-mono); }
.demo-table { overflow: hidden; }
.demo-row { display: grid; grid-template-columns: 2fr repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.demo-row > * { min-height: 58px; display: flex; align-items: center; padding: 10px 14px; border-right: 1px solid var(--line); }
.demo-row span { font-size: 13px; font-weight: 700; }
.demo-row b { font: 500 13px var(--font-mono); justify-content: center; }
.demo-row.head { background: var(--paper-3); }
.demo-row.input b { background: var(--yellow-pale); }
.demo-row.result { background: var(--green-pale); }
.experiment-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 72px; }
.experiment-card { min-height: 320px; border: 1px solid var(--line); padding: 30px; text-decoration: none; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; transition: background .2s, color .2s, transform .2s; }
.experiment-card.available:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.experiment-card__index { font: 500 12px var(--font-mono); color: var(--orange); }
.experiment-card p { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.experiment-card h3 { margin: 55px 0 15px; font-size: 34px; letter-spacing: -.05em; }
.experiment-card span { color: var(--muted); max-width: 48ch; display: block; }
.experiment-card i { font-style: normal; }
.experiment-card.available:hover p, .experiment-card.available:hover span { color: #d7e1da; }
.experiment-card.upcoming { background: var(--paper-2); }
.final-cta { margin-bottom: clamp(80px, 10vw, 150px); min-height: 330px; padding: clamp(35px, 5vw, 70px); background: var(--orange-pale); display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.final-cta h2 { margin: 0; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.06em; line-height: 1; }

/* Generic page */
.page-hero { padding-block: clamp(80px, 10vw, 150px) 70px; }
.page-hero h1 { font-size: clamp(60px, 9vw, 130px); }
.page-hero > p:last-child { max-width: 760px; font-size: 20px; color: var(--muted); margin-top: 36px; }
.catalog-list { padding-top: 20px; }
.catalog-row { display: grid; grid-template-columns: 70px 1fr 320px 50px; gap: 34px; align-items: center; min-height: 230px; border-top: 1px solid var(--line); text-decoration: none; transition: padding .2s, background .2s; }
.catalog-row:last-child { border-bottom: 1px solid var(--line); }
.catalog-row:hover { padding-inline: 22px; background: var(--white); }
.catalog-row__number { font: 600 12px var(--font-mono); color: var(--orange); }
.catalog-row p { margin: 0 0 12px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.catalog-row h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 56px); letter-spacing: -.055em; line-height: 1; }
.catalog-row > div > span { color: var(--muted); }
.catalog-row dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.catalog-row dt { font: 500 10px var(--font-mono); color: var(--muted); text-transform: uppercase; }
.catalog-row dd { margin: 7px 0 0; font-size: 14px; font-weight: 700; }
.catalog-row i { font-style: normal; font-size: 28px; }

/* Experiment */
.experiment-header { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: end; padding-block: 78px 54px; }
.experiment-header h1 { font-size: clamp(62px, 8vw, 118px); }
.experiment-header__intro > p { margin: 0 0 34px; max-width: 760px; font-size: 19px; color: var(--muted); }
.constant-strip { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.constant-strip span { padding: 16px 24px; border-right: 1px solid var(--line); font: 500 11px var(--font-mono); color: var(--muted); }
.constant-strip span:first-child { padding-left: 0; }
.constant-strip b { color: var(--ink); font-size: 15px; }
.experiment-shell { padding-bottom: 120px; }
.experiment-toolbar { position: sticky; top: 74px; z-index: 80; background: rgba(248,247,242,.95); border: 1px solid var(--line); padding: 14px; display: flex; justify-content: space-between; gap: 18px; backdrop-filter: blur(18px); }
.experiment-meta-fields { display: grid; grid-template-columns: minmax(260px, 1.5fr) 165px minmax(190px, 1fr); gap: 10px; flex: 1; }
.experiment-meta-fields label, .form-stack label, .form-grid label, .filter-grid label { display: grid; gap: 6px; }
.experiment-meta-fields label span, .form-stack label span, .form-grid label span, .filter-grid label span { font: 600 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.experiment-meta-fields input { height: 46px; border: 1px solid var(--line); background: var(--white); padding: 0 12px; border-radius: 7px; min-width: 0; }
.toolbar-actions { display: flex; gap: 8px; align-items: end; }
.experiment-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(470px, .78fr); gap: 18px; margin-top: 18px; align-items: start; }
.data-panel, .analysis-panel, .notes-panel { border: 1px solid var(--line); background: var(--white); }
.panel-heading { min-height: 88px; padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading .eyebrow { margin-bottom: 7px; }
.panel-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.sample-counter { display: grid; text-align: right; }
.sample-counter strong { font: 600 24px var(--font-mono); }
.sample-counter span { font: 500 10px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.matrix-wrap { overflow: auto; max-height: 760px; scrollbar-color: var(--line-strong) transparent; }
.experiment-matrix { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.experiment-matrix caption { position: absolute; clip: rect(0 0 0 0); }
.experiment-matrix th, .experiment-matrix td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 146px; height: 55px; padding: 7px 9px; text-align: center; }
.experiment-matrix thead th { position: sticky; top: 0; z-index: 4; background: var(--paper-3); font: 600 11px var(--font-mono); }
.experiment-matrix th.row-label { position: sticky; left: 0; z-index: 3; min-width: 250px; max-width: 250px; text-align: left; background: var(--paper); font-weight: 700; }
.experiment-matrix thead th.row-label { z-index: 6; }
.experiment-matrix .unit { display: block; margin-top: 3px; font: 500 10px var(--font-mono); color: var(--muted); }
.experiment-matrix .section-row th { background: var(--green); color: #fff; height: 43px; text-transform: uppercase; font: 600 10px var(--font-mono); letter-spacing: .09em; }
.experiment-matrix .section-row td { background: var(--green); height: 43px; }
.sample-heading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.sample-heading button { width: 25px; height: 25px; border: 1px solid #a8ada5; border-radius: 50%; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; }
.matrix-input { width: 100%; min-height: 38px; padding: 6px 8px; text-align: right; font: 500 13px var(--font-mono); border: 1px solid #d4bd65; border-radius: 5px; background: var(--yellow-pale); }
.matrix-input[aria-invalid="true"] { border-color: var(--danger); background: #fff0ef; }
.matrix-result { font: 500 13px var(--font-mono); }
.matrix-result.empty { color: #9ca199; }
.result-row td { background: #f1f4ef; }
.result-row.final td { background: var(--green-pale); font-weight: 700; }
.cell-error { display: block; color: var(--danger); font-size: 9px; line-height: 1.2; margin-top: 3px; max-width: 115px; }
.data-status { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--paper-2); }
.data-status p { margin: 0; font-size: 13px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 5px rgba(148,155,144,.16); }
.data-status.valid .status-dot { background: var(--success); box-shadow: 0 0 0 5px rgba(23,97,61,.15); }
.data-status.warning .status-dot { background: var(--orange); box-shadow: 0 0 0 5px rgba(214,92,56,.14); }
.mobile-sample-editor { display: none; }
.analysis-panel { position: sticky; top: 156px; }
.chart-frame { position: relative; aspect-ratio: 1.18 / 1; min-height: 470px; background: #fbfbf7; }
.compaction-chart { width: 100%; height: 100%; overflow: visible; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 7px; color: var(--muted); }
.chart-empty strong { color: var(--ink); }
.chart-empty.hidden { display: none; }
.chart-grid-line { stroke: #dfe2da; stroke-width: 1; }
.chart-axis-line { stroke: #636a62; stroke-width: 1.2; }
.chart-tick { fill: #697067; font: 10px var(--font-mono); }
.chart-axis-title { fill: #303630; font: 600 11px var(--font-mono); }
.chart-data-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-regression-line { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 7 5; }
.chart-point { fill: var(--green); stroke: #fff; stroke-width: 3; cursor: pointer; }
.chart-point:focus { stroke: var(--orange); stroke-width: 5; outline: none; }
.chart-optimum { fill: var(--orange); stroke: #fff; stroke-width: 4; }
.chart-optimum-guide { stroke: var(--orange); stroke-width: 1; stroke-dasharray: 4 5; opacity: .7; }
.chart-tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 7px; padding: 8px 10px; font: 500 11px var(--font-mono); transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 10px 25px rgba(0,0,0,.18); }
.analysis-results { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.analysis-results article { min-height: 118px; padding: 18px 20px; display: grid; align-content: end; grid-template-columns: auto auto; column-gap: 7px; }
.analysis-results article + article { border-left: 1px solid var(--line); }
.analysis-results span { grid-column: 1/-1; font: 500 10px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.analysis-results strong { font: 600 30px var(--font-mono); }
.analysis-results small { align-self: end; padding-bottom: 4px; font: 500 10px var(--font-mono); }
.equation-box { padding: 18px 20px 22px; }
.equation-box > span { font: 500 10px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.equation-box code { display: block; margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
.equation-box p { margin: 9px 0 0; font-size: 12px; color: var(--muted); }
.accessible-points { border-top: 1px solid var(--line); padding: 18px 20px; max-height: 210px; overflow: auto; }
.accessible-points h3 { margin: 0 0 12px; font-size: 13px; }
.accessible-points table { width: 100%; border-collapse: collapse; font: 500 10px var(--font-mono); }
.accessible-points th, .accessible-points td { text-align: left; border-bottom: 1px solid var(--line); padding: 7px 4px; }
.notes-panel { margin-top: 18px; padding: 22px; display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.notes-panel label { display: grid; align-content: start; gap: 5px; font-weight: 800; }
.notes-panel label small { color: var(--muted); font-weight: 500; }
.notes-panel textarea { width: 100%; resize: vertical; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 13px; }
.form-message { min-height: 0; margin-top: 14px; }
.form-message:not(:empty) { padding: 13px 16px; background: #fff0ef; border: 1px solid #dfaaa5; color: var(--danger); }

/* Auth */
.auth-page main { min-height: calc(100svh - 74px); display: grid; }
.auth-shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 130px); align-items: center; padding-block: 70px 110px; }
.auth-intro h1 { font-size: clamp(58px, 7vw, 105px); }
.auth-intro > p:last-of-type { max-width: 620px; color: var(--muted); font-size: 18px; }
.auth-card { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 4vw, 50px); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.auth-card > div:first-child > p { color: var(--muted); }
.auth-card a { color: var(--green); font-weight: 750; }
.form-stack { display: grid; gap: 17px; margin-top: 32px; }
.form-stack input { min-height: 50px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 0 13px; }
.form-stack small { color: var(--muted); }
.form-between { display: flex; justify-content: flex-end; font-size: 13px; }
.auth-art { position: relative; height: 280px; margin-top: 50px; border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; overflow: hidden; }
.auth-art svg { position: absolute; inset: 30px; width: calc(100% - 60px); height: calc(100% - 60px); }
.auth-art path { fill: none; stroke: var(--green); stroke-width: 4; }
.auth-art circle { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.auth-stat { display: grid; gap: 4px; margin-top: 45px; padding: 22px; border-left: 4px solid var(--orange); background: var(--paper-2); }
.auth-stat span { color: var(--muted); }
.inline-alert { padding: 13px 15px; border: 1px solid #e4aca6; background: #fff0ef; margin-top: 20px; font-size: 13px; }
.inline-alert ul { margin-bottom: 0; }
.compact-auth { max-width: 1100px; }

/* Dashboard */
.dashboard-hero { padding-block: 80px 55px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.dashboard-hero h1 { font-size: clamp(64px, 9vw, 126px); }
.dashboard-hero p:last-child { max-width: 660px; color: var(--muted); font-size: 18px; }
.dashboard-summary { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); background: var(--white); }
.dashboard-summary article { min-height: 130px; padding: 22px; display: grid; align-content: space-between; border-right: 1px solid var(--line); }
.dashboard-summary article:last-child { border-right: 0; }
.dashboard-summary span { font: 500 11px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.dashboard-summary strong { font: 600 38px var(--font-mono); }
.run-list { display: grid; gap: 10px; }
.run-card { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); background: var(--white); transition: transform .18s, border-color .18s; }
.run-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.run-card__main { padding: 24px; display: grid; grid-template-columns: 1fr 430px; gap: 40px; align-items: center; text-decoration: none; }
.run-card__main p { margin: 0 0 8px; font: 500 10px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.run-card__main h3 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.04em; }
.run-card__main > div > span { color: var(--muted); font-size: 13px; }
.run-card dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; gap: 15px; }
.run-card dt { font: 500 9px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.run-card dd { margin: 7px 0 0; font: 600 12px var(--font-mono); }
.run-card > .icon-button { margin-right: 20px; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 4px 8px; font: 600 9px var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.status-pill.completed { background: #ddefe2; color: #155f39; }
.status-pill.draft { background: #fff0c7; color: #805b00; }
.status-pill.archived { background: #eceee9; color: #61675f; }
.empty-state { border: 1px dashed var(--line-strong); padding: 55px; text-align: center; }
.empty-state strong { font-size: 25px; }
.empty-state p { color: var(--muted); }

/* Notifications */
.toast { position: fixed; z-index: 300; top: 88px; right: 24px; max-width: min(430px, calc(100% - 48px)); padding: 14px 18px; border: 1px solid; background: var(--white); box-shadow: var(--shadow); font-size: 13px; animation: toast-in .25s ease both; }
.toast.success { border-color: #9fc7aa; color: var(--success); }
.toast.error { border-color: #dfa9a4; color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

/* Admin */
.admin-shell { background: #eef0eb; min-height: 100svh; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 255px; background: #0f1210; color: #e7eae5; padding: 24px 18px; display: flex; flex-direction: column; z-index: 200; }
.admin-brand { color: #fff; padding: 0 8px 22px; border-bottom: 1px solid #2d332e; }
.admin-brand small { display: block; font: 500 9px var(--font-mono); color: #8f9991; text-transform: uppercase; letter-spacing: .08em; margin-left: 2px; }
.admin-nav { display: grid; gap: 5px; padding-top: 22px; }
.admin-nav a { min-height: 44px; padding: 0 12px; display: flex; align-items: center; border-radius: 8px; text-decoration: none; color: #aeb7b0; font-size: 13px; font-weight: 700; }
.admin-nav a:hover, .admin-nav a.active { background: #202621; color: #fff; }
.admin-nav a.active { box-shadow: inset 3px 0 0 var(--orange); }
.admin-sidebar__bottom { margin-top: auto; display: grid; gap: 7px; padding: 18px 8px 0; border-top: 1px solid #2d332e; font-size: 11px; color: #8f9991; }
.admin-sidebar__bottom a { color: #fff; }
.admin-workspace { margin-left: 255px; min-height: 100svh; }
.admin-topbar { height: 76px; border-bottom: 1px solid #d4d7d0; background: rgba(248,249,246,.9); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 100; }
.admin-topbar p { margin: 0; font: 500 9px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.admin-topbar strong { font-size: 15px; }
.admin-menu { display: none; }
.admin-content { padding: 34px; max-width: 1650px; margin: 0 auto; }
.admin-page-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.admin-page-head h1 { margin: 0; font-size: clamp(42px,5vw,72px); letter-spacing: -.06em; line-height: 1; }
.admin-page-head > div > p:last-child { max-width: 760px; color: var(--muted); }
.admin-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.admin-metrics article { min-height: 145px; background: #fff; border: 1px solid #d4d7d0; padding: 20px; display: grid; align-content: space-between; }
.admin-metrics span { font: 500 10px var(--font-mono); color: var(--muted); text-transform: uppercase; }
.admin-metrics strong { font: 600 40px var(--font-mono); }
.admin-metrics small { color: var(--muted); }
.admin-panel { background: #fff; border: 1px solid #d4d7d0; padding: 22px; margin-bottom: 16px; }
.admin-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #e0e2dd; }
.admin-panel > header h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.admin-panel > header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.admin-table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 850px; font-size: 12px; }
.admin-table th { text-align: left; padding: 13px 10px; color: var(--muted); font: 600 9px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid #d4d7d0; }
.admin-table td { padding: 14px 10px; border-bottom: 1px solid #e6e8e3; vertical-align: middle; }
.admin-table td > span { display: block; color: var(--muted); margin-top: 3px; }
.admin-table a { font-weight: 700; }
.admin-table code { font-size: 10px; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-actions form { margin: 0; }
.mini-button { min-height: 32px; border: 1px solid #c8ccc4; background: #fff; border-radius: 6px; padding: 0 9px; font-size: 10px; font-weight: 700; cursor: pointer; }
.mini-button:hover { border-color: var(--ink); }
.mini-button.danger { color: var(--danger); border-color: #e0b3ae; }
.role-pill { font: 600 9px var(--font-mono); text-transform: uppercase; border: 1px solid #c9cdc4; border-radius: 999px; padding: 4px 7px; }
.admin-search { display: flex; gap: 8px; }
.admin-search input { min-width: 300px; min-height: 40px; border: 1px solid #c8ccc4; padding: 0 11px; }
.filter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.filter-grid input, .filter-grid select, .form-grid input, .form-grid select, .form-grid textarea, .settings-form input, .settings-form select, .settings-form textarea { min-height: 44px; border: 1px solid #c7cbc3; background: #fff; border-radius: 7px; padding: 8px 11px; width: 100%; }
.type-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.type-editor { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-block: 20px; }
.form-grid .full { grid-column: 1/-1; }
.module-meta { margin: 0 0 20px; display: grid; gap: 9px; }
.module-meta div { display: grid; grid-template-columns: 125px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e5e7e2; }
.module-meta dt { font: 500 9px var(--font-mono); text-transform: uppercase; color: var(--muted); }
.module-meta dd { margin: 0; overflow-wrap: anywhere; }
.module-guidance { margin-top: 24px; padding: 35px; }
.module-guidance h2 { font-size: 35px; letter-spacing: -.05em; }
.module-guidance ol { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 0; list-style-position: inside; }
.module-guidance li { border-top: 2px solid var(--green); padding-top: 15px; }
.settings-form { max-width: 1000px; }
.settings-row { min-height: 115px; display: grid; grid-template-columns: 1fr 260px; gap: 30px; align-items: center; border-bottom: 1px solid #e1e3de; }
.settings-row h2 { margin: 0 0 7px; font-size: 20px; }
.settings-row p { margin: 0; color: var(--muted); }
.settings-row.vertical { grid-template-columns: 1fr; gap: 14px; padding-block: 22px; }
.settings-form > .button { margin-top: 24px; }
.audit-table details { min-width: 130px; }
.audit-table pre { max-width: 430px; max-height: 260px; overflow: auto; background: #f2f3ef; padding: 12px; white-space: pre-wrap; }
.debug-box { background: #151815; color: #fff; padding: 15px; overflow: auto; }
.error-page { padding-block: 130px; }
.error-page h1 { font-size: clamp(50px,8vw,92px); letter-spacing: -.07em; line-height: .95; }

/* Responsive */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 560px; }
  .product-demo__grid { grid-template-columns: 1fr; }
  .experiment-header { grid-template-columns: 1fr; gap: 35px; }
  .experiment-grid { grid-template-columns: 1fr; }
  .analysis-panel { position: static; }
  .experiment-toolbar { flex-direction: column; }
  .toolbar-actions { justify-content: flex-end; }
  .run-card__main { grid-template-columns: 1fr 360px; }
  .admin-metrics { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 920px) {
  .shell { width: min(100% - 30px, var(--shell)); }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; flex-direction: column; align-items: stretch; gap: 4px; }
  .primary-nav.open { display: flex; }
  .primary-nav > a, .nav-account { min-height: 46px; display: flex; align-items: center; padding: 0 10px; text-align: left; }
  .primary-nav .nav-cta { border: 0; padding: 0 10px; }
  .nav-account span { margin-left: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: 1/-1; }
  .section-heading.split { grid-template-columns: 1fr; gap: 25px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article + article { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid h3 { margin-top: 24px; }
  .experiment-cards { grid-template-columns: 1fr; }
  .catalog-row { grid-template-columns: 45px 1fr 40px; }
  .catalog-row dl { grid-column: 2; }
  .experiment-meta-fields { grid-template-columns: 1fr 1fr; }
  .experiment-meta-fields label:first-child { grid-column: 1/-1; }
  .dashboard-hero { align-items: start; flex-direction: column; }
  .dashboard-summary { grid-template-columns: repeat(2,1fr); }
  .dashboard-summary article:nth-child(2) { border-right: 0; }
  .dashboard-summary article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .run-card__main { grid-template-columns: 1fr; gap: 24px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-workspace { margin-left: 0; }
  .admin-menu { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid #cdd1ca; background: #fff; border-radius: 8px; }
  .admin-topbar { padding-inline: 16px; }
  .admin-content { padding: 24px 16px; }
  .type-admin-grid { grid-template-columns: 1fr; }
  .module-guidance ol { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid label:first-child { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, var(--shell)); }
  .hero { padding-top: 55px; }
  .hero__copy h1, .page-hero h1, .experiment-header h1, .dashboard-hero h1, .auth-intro h1 { font-size: clamp(47px, 15vw, 72px); }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__facts { gap: 18px; overflow-x: auto; }
  .hero__facts div { min-width: 135px; }
  .hero__visual { min-height: 470px; }
  .visual-result { left: 20px; right: 20px; }
  .section-block { padding-block: 80px; }
  .section-heading h2 { font-size: 45px; }
  .product-demo__copy h2 { font-size: 49px; }
  .demo-window { transform: none; overflow-x: auto; }
  .demo-table { min-width: 650px; }
  .experiment-card { min-height: 270px; padding: 22px; grid-template-columns: auto 1fr; }
  .experiment-card i { grid-column: 2; }
  .final-cta { align-items: start; flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 38px; }
  .site-footer__grid > div:first-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; }
  .catalog-row { grid-template-columns: 35px 1fr; padding-block: 30px; }
  .catalog-row dl { grid-column: 2; }
  .catalog-row i { display: none; }
  .experiment-header { padding-top: 55px; }
  .constant-strip { overflow-x: auto; flex-wrap: nowrap; }
  .constant-strip span { min-width: max-content; }
  .experiment-toolbar { top: 74px; padding: 10px; }
  .experiment-meta-fields { grid-template-columns: 1fr 1fr; }
  .experiment-meta-fields label:first-child, .experiment-meta-fields label:last-child { grid-column: 1/-1; }
  .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar-actions .button { width: 100%; padding-inline: 10px; }
  .toolbar-actions .button:last-child { grid-column: 1/-1; }
  .matrix-wrap { display: none; }
  .mobile-sample-editor { display: block; }
  .mobile-sample-nav { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
  .mobile-sample-nav button { border: 1px solid var(--line); background: var(--white); border-radius: 8px; }
  .mobile-sample-nav select { min-height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 0 10px; }
  .mobile-sample-card { padding: 14px; display: grid; gap: 14px; }
  .mobile-section-title { padding: 10px 12px; background: var(--green); color: #fff; font: 600 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
  .mobile-field { display: grid; grid-template-columns: 1fr minmax(125px, .8fr); gap: 14px; align-items: center; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
  .mobile-field label { font-size: 12px; font-weight: 700; }
  .mobile-field label small { display: block; font: 500 9px var(--font-mono); color: var(--muted); }
  .mobile-field input { width: 100%; min-height: 44px; text-align: right; font-family: var(--font-mono); border: 1px solid #d4bd65; background: var(--yellow-pale); border-radius: 6px; padding: 0 9px; }
  .mobile-field output { text-align: right; font: 600 13px var(--font-mono); }
  .mobile-remove { width: 100%; min-height: 44px; border: 1px solid #e0b3ae; color: var(--danger); background: #fff; border-radius: 8px; font-weight: 700; }
  .analysis-panel .panel-heading { min-height: 76px; }
  .chart-frame { min-height: 330px; }
  .notes-panel { grid-template-columns: 1fr; gap: 14px; }
  .auth-shell { grid-template-columns: 1fr; padding-top: 55px; }
  .auth-art { display: none; }
  .auth-card { padding: 24px; }
  .dashboard-summary { grid-template-columns: 1fr 1fr; }
  .run-card__main dl { grid-template-columns: 1fr; }
  .run-card { grid-template-columns: 1fr; }
  .run-card > .icon-button { margin: 0 20px 20px auto; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-page-head { align-items: start; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-search input { min-width: 0; flex: 1; }
  .form-grid, .filter-grid { grid-template-columns: 1fr; }
  .form-grid .full, .filter-grid label:first-child { grid-column: auto; }
  .module-guidance ol { grid-template-columns: 1fr; }
  .settings-row { grid-template-columns: 1fr; gap: 14px; padding-block: 20px; }
}

/* Interactive states */
.button:disabled, .icon-button:disabled, .mini-button:disabled { opacity: .56; cursor: wait; }
.form-message.success:not(:empty) { background: #e9f6ed; border-color: #96cba6; color: var(--success); }
.matrix-input:focus, .mobile-field input:focus, .experiment-meta-fields input:focus, .notes-panel textarea:focus { outline: 3px solid rgba(40,86,66,.18); border-color: var(--green); }
.cell-error:empty { display: none; }
.chart-tooltip[hidden] { display: none; }
.platform-notice { background: var(--ink); color: #fff; border-bottom: 1px solid #303630; }
.platform-notice .shell { min-height: 42px; display: flex; align-items: center; justify-content: center; text-align: center; font: 600 11px var(--font-mono); letter-spacing: .02em; }
.maintenance-page .site-footer { display: none; }
.maintenance-page .error-page { min-height: calc(100svh - 74px); display: grid; align-content: center; gap: 24px; }
.maintenance-page .error-page p { max-width: 700px; color: var(--muted); font-size: 18px; }


/* Landing v1.1 — responsive editorial motion system */
.landing-page { overflow-x: clip; }
.landing-page .hero { min-height: calc(100svh - 74px); grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr); gap: clamp(46px, 7vw, 118px); padding-block: clamp(64px, 8vw, 112px); }
.landing-page .hero__copy { position: relative; z-index: 2; }
.landing-page .hero__copy h1 { max-width: 10.5ch; text-wrap: balance; }
.landing-page .hero__lead { max-width: 58ch; }
.landing-page .hero__visual { min-height: clamp(520px, 52vw, 690px); border-radius: 18px; isolation: isolate; transform: perspective(1400px) rotateY(-2deg); transform-origin: center left; }
.landing-page .hero__visual::after { content: ""; position: absolute; inset: auto 8% -18% 8%; height: 38%; background: rgba(40,87,66,.28); filter: blur(70px); z-index: -1; }
.landing-page .hero-curve { stroke-dasharray: 850; stroke-dashoffset: 850; animation: geolab-draw 2.4s cubic-bezier(.22,1,.36,1) .35s forwards; }
.landing-page .hero-points circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: geolab-point .55s cubic-bezier(.2,.9,.3,1.35) forwards; }
.landing-page .hero-points circle:nth-child(1){animation-delay:.75s}.landing-page .hero-points circle:nth-child(2){animation-delay:1s}.landing-page .hero-points circle:nth-child(3){animation-delay:1.25s}.landing-page .hero-points circle:nth-child(4){animation-delay:1.5s}.landing-page .hero-points circle:nth-child(5){animation-delay:1.75s}
.landing-page .visual-result { animation: geolab-float 5s ease-in-out infinite; }
.landing-page [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .72s cubic-bezier(.22,1,.36,1); transition-delay: var(--reveal-delay, 0ms); }
.landing-page [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.landing-page .principle-grid article, .landing-page .experiment-card { will-change: transform; }
@keyframes geolab-draw { to { stroke-dashoffset: 0; } }
@keyframes geolab-point { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes geolab-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 1180px) {
  .landing-page .hero { grid-template-columns: 1fr; min-height: auto; }
  .landing-page .hero__copy h1 { max-width: 12ch; }
  .landing-page .hero__visual { width: min(100%, 820px); min-height: 560px; transform: none; }
  .experiment-grid { grid-template-columns: minmax(0, 1.5fr) minmax(390px, .8fr); }
}
@media (max-width: 920px) {
  .experiment-grid { grid-template-columns: 1fr; }
  .analysis-panel { position: static; }
  .chart-frame { min-height: 430px; }
}
@media (max-width: 680px) {
  .landing-page .hero { width: min(100% - 28px, var(--shell)); padding-block: 44px 72px; gap: 42px; }
  .landing-page .hero__copy h1 { font-size: clamp(46px, 14.2vw, 72px); line-height: .9; }
  .landing-page .hero__lead { margin-top: 24px; font-size: 16px; }
  .landing-page .hero__facts { margin-top: 42px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .landing-page .hero__facts div { scroll-snap-align: start; }
  .landing-page .hero__visual { min-height: 430px; border-radius: 14px; }
  .landing-page .hero__visual svg { inset: 46px 12px 26px; width: calc(100% - 24px); height: calc(100% - 72px); }
  .landing-page .visual-result { right: 14px; bottom: 14px; min-width: 190px; padding: 13px 14px; }
  .landing-page .visual-result strong { font-size: 28px; }
  .landing-page .principle-grid { margin-top: 48px; }
  .chart-frame { min-height: 360px; aspect-ratio: 1 / 1; }
  .experiment-matrix th, .experiment-matrix td { min-width: 132px; }
  .experiment-matrix th.row-label { min-width: 210px; max-width: 210px; }
}
/* Secure Admin v2 — responsive operational workspace */
.admin-page { min-width: 320px; background: #eef0eb; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-brand .brand__mark { width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #566159; border-radius: 7px; display: grid; place-items: center; }
.admin-brand .brand__mark span { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 8px -6px 0 -2px #8eb29b, -7px 7px 0 -2px #8eb29b; }
.admin-user-card { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; align-items: center; padding: 14px 8px; border-bottom: 1px solid #2d332e; }
.admin-user-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #263128; color: #fff; font-weight: 800; }
.admin-user-card strong, .admin-user-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-card strong { font-size: 12px; }
.admin-user-card small { margin-top: 2px; color: #8f9991; font: 500 9px var(--font-mono); text-transform: uppercase; }
.admin-nav { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.admin-nav p { margin: 15px 10px 4px; color: #6f7971; font: 600 9px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.admin-sidebar__footer { margin-top: auto; display: grid; gap: 6px; padding: 16px 8px 0; border-top: 1px solid #2d332e; }
.admin-sidebar__footer a, .admin-sidebar__footer button { min-height: 40px; width: 100%; display: flex; align-items: center; padding: 0 10px; color: #c7cec8; background: transparent; border: 0; border-radius: 7px; text-decoration: none; font-size: 11px; cursor: pointer; }
.admin-sidebar__footer a:hover, .admin-sidebar__footer button:hover { background: #202621; color: #fff; }
.admin-topbar > div { min-width: 0; }
.admin-topbar > div span { display: block; font: 600 9px var(--font-mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.admin-topbar > div strong { display: block; max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-menu-button { display: none; min-width: 44px; min-height: 44px; border: 1px solid #cdd1ca; background: #fff; border-radius: 9px; cursor: pointer; font-size: 20px; }
.admin-security-chip { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #cdd1ca; border-radius: 999px; background: #fff; text-decoration: none; font-size: 11px; font-weight: 800; }
.admin-alert { margin-bottom: 16px; padding: 16px 18px; border: 1px solid; background: #fff; display: flex; align-items: flex-start; gap: 12px; }
.admin-alert strong { flex: 0 0 auto; }
.admin-alert span { color: var(--muted); }
.admin-alert.warning { border-color: #d9bd58; background: #fff9df; }
.admin-alert.danger { border-color: #d9a29d; background: #fff1ef; }
.security-state { min-width: 170px; display: grid; padding: 12px 14px; border: 1px solid; background: #fff; }
.security-state strong { font-size: 12px; }
.security-state span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.security-state.ok { border-color: #9fc7aa; }
.security-state.warning { border-color: #d9bd58; }
.content-admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.content-group-title { grid-column: 1/-1; margin: 30px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 20px; }
.content-group-title:first-of-type { margin-top: 0; }
.content-field { margin: 0; display: grid; gap: 8px; }
.content-field > span { font-weight: 800; }
.content-field small { color: var(--muted); }
.content-field input, .content-field textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #c7cbc3; border-radius: 7px; background: #fbfcf9; resize: vertical; }
.content-save-bar { grid-column: 1/-1; position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0 30px; padding: 15px; border: 1px solid #bdc3b9; background: rgba(255,255,252,.94); backdrop-filter: blur(16px); box-shadow: 0 18px 50px rgba(20,24,20,.11); }
.content-save-bar p { margin: 0; color: var(--muted); font-size: 12px; }
.revision-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; }
.revision-values pre { max-width: 420px; max-height: 230px; margin: 5px 0 0; padding: 10px; overflow: auto; white-space: pre-wrap; background: #f2f3ef; }
.developer-workbench { display: grid; grid-template-columns: minmax(260px, 330px) minmax(0,1fr); gap: 16px; align-items: start; }
.file-browser { position: sticky; top: 92px; max-height: calc(100svh - 114px); margin: 0; padding: 12px; display: flex; flex-direction: column; overflow: hidden; }
.file-search { display: flex; align-items: end; gap: 7px; padding-bottom: 10px; }
.file-search label { min-width: 0; flex: 1; }
.file-search label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.file-search input { width: 100%; min-height: 40px; padding: 0 9px; border: 1px solid #c7cbc3; border-radius: 6px; }
.file-tree { min-height: 220px; overflow: auto; border-block: 1px solid #e0e2dd; scrollbar-width: thin; }
.file-tree a { display: grid; gap: 2px; padding: 9px 8px; border-bottom: 1px solid #eceee9; text-decoration: none; overflow-wrap: anywhere; }
.file-tree a:hover, .file-tree a.active { background: #eef3ef; box-shadow: inset 3px 0 var(--green); }
.file-tree a span { font: 600 10px/1.4 var(--font-mono); }
.file-tree a small { color: var(--muted); font-size: 9px; }
.content-search { padding-top: 12px; }
.content-match-list { display: grid; max-height: 230px; overflow: auto; }
.content-match-list a { padding: 8px; border-bottom: 1px solid #e6e8e3; text-decoration: none; }
.content-match-list strong, .content-match-list span { display: block; }
.content-match-list strong { font: 600 9px var(--font-mono); }
.content-match-list span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.code-editor-panel { min-width: 0; margin: 0; padding: 0; overflow: hidden; }
.code-editor-header { padding: 18px 20px; }
.code-editor-header h2 { max-width: 68vw; overflow-wrap: anywhere; }
.code-editor-form { min-width: 0; }
.editor-shell { display: grid; grid-template-columns: auto minmax(0,1fr); min-height: 620px; max-height: calc(100svh - 250px); background: #101310; color: #dfe6df; overflow: hidden; }
.editor-lines { min-width: 50px; margin: 0; padding: 16px 10px; overflow: hidden; background: #181c18; color: #727d74; text-align: right; font: 500 12px/1.6 var(--font-mono); user-select: none; }
.code-editor-form textarea { width: 100%; height: 100%; min-height: 620px; margin: 0; padding: 16px; border: 0; outline: 0; resize: none; overflow: auto; tab-size: 2; white-space: pre; background: #101310; color: #e2e8e2; font: 500 12px/1.6 var(--font-mono); caret-color: #fff; }
.code-editor-form textarea:read-only { color: #b9c1b9; }
.editor-footer { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,430px) auto; gap: 14px; align-items: end; padding: 15px 18px; border-top: 1px solid #333a34; background: #f7f8f5; }
.editor-footer > div { min-width: 0; display: grid; gap: 6px; }
.editor-footer code { overflow-wrap: anywhere; font-size: 9px; }
.editor-footer label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.editor-footer input { width: 100%; min-height: 44px; border: 1px solid #c7cbc3; border-radius: 7px; padding: 0 10px; }
.critical-chip { width: fit-content; padding: 4px 7px; border: 1px solid #d5a5a0; background: #fff0ee; color: var(--danger); font: 700 8px var(--font-mono); text-transform: uppercase; }
.empty-editor { min-height: 560px; display: grid; place-content: center; text-align: center; padding: 30px; }
.empty-editor strong { font-size: 28px; }
.empty-editor p { color: var(--muted); }
.diff-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,390px); gap: 16px; align-items: start; }
.diff-panel, .confirm-panel { margin: 0; }
.code-diff { max-height: calc(100svh - 240px); overflow: auto; margin: 18px 0 0; padding: 16px; background: #101310; color: #dfe6df; font: 500 11px/1.6 var(--font-mono); white-space: pre; }
.confirm-panel { position: sticky; top: 92px; }
.confirm-panel dl { margin: 20px 0; }
.confirm-panel dl div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e2e4df; }
.confirm-panel dt { color: var(--muted); font: 600 9px var(--font-mono); text-transform: uppercase; }
.confirm-panel dd { margin: 0; overflow-wrap: anywhere; }
.confirm-panel form, .security-form { display: grid; gap: 14px; }
.confirm-panel label > span, .security-form label > span { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 800; }
.confirm-panel input, .security-form input { width: 100%; min-height: 46px; padding: 0 11px; border: 1px solid #c7cbc3; border-radius: 7px; }
.confirm-check { display: grid!important; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; }
.confirm-check input { width: 20px; min-height: 20px; }
.security-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.7fr); gap: 16px; align-items: start; }
.security-grid > * { margin: 0; }
.secret-box { margin: 18px 0; padding: 16px; border: 1px dashed #8f978d; background: #f3f5f1; overflow-wrap: anywhere; }
.secret-box code { font-size: 15px; }
.recovery-panel { border-color: #d9bd58; background: #fff9df; }
.recovery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 18px; }
.recovery-grid code { padding: 10px; border: 1px solid #d8c67f; background: #fff; text-align: center; }
.danger-zone { border-color: #d5a5a0; }
.inline-security-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.health-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.health-summary.ok { border-left: 5px solid var(--success); }
.health-summary.failed { border-left: 5px solid var(--danger); }
.health-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.health-card { margin: 0; min-height: 150px; display: grid; align-content: space-between; }
.health-card.ok { border-top: 3px solid var(--success); }
.health-card.failed { border-top: 3px solid var(--danger); }
.health-card.warning { border-top: 3px solid #c79b17; }
.health-card h2 { margin: 0; font-size: 16px; }
.health-card p { margin: 12px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.role-form { display: flex; align-items: center; gap: 6px; }
.role-form select { min-height: 34px; border: 1px solid #c7cbc3; background: #fff; }

@media (max-width: 1180px) {
  .developer-workbench { grid-template-columns: 280px minmax(0,1fr); }
  .editor-footer { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recovery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .admin-sidebar { width: min(86vw,320px); box-shadow: 22px 0 70px rgba(0,0,0,.25); }
  .admin-menu-button { display: inline-grid; place-items: center; }
  .admin-topbar { height: 68px; gap: 12px; }
  .admin-security-chip { margin-left: auto; }
  .admin-page-head h1 { font-size: clamp(36px,10vw,58px); }
  .developer-workbench { grid-template-columns: 1fr; }
  .file-browser { position: static; max-height: none; }
  .file-tree { max-height: 300px; }
  .editor-shell, .code-editor-form textarea { min-height: 500px; }
  .editor-shell { max-height: 620px; }
  .diff-layout, .security-grid { grid-template-columns: 1fr; }
  .confirm-panel { position: static; }
  .health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .admin-content { padding: 20px 12px 44px; }
  .admin-topbar { padding-inline: max(12px,env(safe-area-inset-left)); }
  .admin-security-chip { min-width: 44px; width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .admin-security-chip::before { content: "2FA"; font-size: 9px; }
  .admin-panel { padding: 16px; }
  .admin-page-head { gap: 15px; margin-bottom: 20px; }
  .admin-page-head > .button { width: 100%; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-metrics article { min-height: 110px; }
  .content-admin-grid { grid-template-columns: 1fr; }
  .content-group-title, .content-save-bar { grid-column: auto; }
  .content-save-bar { align-items: stretch; flex-direction: column; bottom: 8px; }
  .content-save-bar .button { width: 100%; }
  .revision-values { grid-template-columns: 1fr; }
  .admin-alert { display: grid; }
  .security-state { width: 100%; }
  .editor-shell { grid-template-columns: 40px minmax(0,1fr); min-height: 440px; }
  .editor-lines { min-width: 40px; padding-inline: 6px; font-size: 10px; }
  .code-editor-form textarea { min-height: 440px; padding: 12px 10px; font-size: 11px; }
  .editor-footer { padding: 12px; }
  .inline-security-fields, .health-grid, .recovery-grid { grid-template-columns: 1fr; }
  .health-summary { grid-template-columns: 1fr; }
  .code-diff { max-height: 520px; font-size: 10px; }
  .file-search { align-items: stretch; flex-direction: column; }
  .file-search .mini-button { min-height: 40px; }
}

@media (forced-colors: active) {
  .admin-nav a.active, .health-card, .admin-alert, .security-state { border: 2px solid CanvasText; }
  .status-pill, .critical-chip { forced-color-adjust: none; }
}
html.admin-drawer-open { overflow: hidden; }


/* Secure backup and CMS extensions */
.locale-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.locale-switcher a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 800; }
.locale-switcher a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.backup-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 18px; margin-bottom: 18px; }
.snapshot-create, .backup-policy { display: grid; align-content: start; gap: 16px; }
.snapshot-create h2, .backup-policy h2 { margin: 0; }
.snapshot-create > p, .backup-policy > p { margin: 0; color: var(--muted); }
.snapshot-create label, .restore-details form { display: grid; gap: 8px; }
.snapshot-create label > span { font-weight: 800; font-size: 13px; }
.snapshot-create textarea, .snapshot-create input, .restore-details input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 11px 12px; }
.snapshot-create textarea { min-height: 96px; resize: vertical; }
.backup-policy ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.snapshot-table td > span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.restore-details summary { min-height: 40px; display: inline-flex; align-items: center; cursor: pointer; font-weight: 800; }
.restore-details form { min-width: 230px; padding-top: 12px; }
.faq-section { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(40px,7vw,110px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; font-size: clamp(18px,2vw,24px); font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 500 24px var(--font-mono); color: var(--orange); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 68ch; margin: -4px 0 24px; color: var(--muted); }
.site-footer__contact { overflow-wrap: anywhere; }
@media (max-width: 920px) { .backup-layout, .faq-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .snapshot-table .restore-details form { min-width: 190px; } .locale-switcher a { flex: 1; justify-content: center; } }

/* GeoLab Developer Workspace v2.1 */
.developer-page .admin-content { padding: 0; max-width: none; }
.developer-page .admin-topbar { display: none; }
.workspace-app { --ws-bg:#090b0d; --ws-panel:#0f1215; --ws-panel-2:#14181c; --ws-line:#252b31; --ws-text:#eef2f4; --ws-muted:#8d98a1; --ws-accent:#b7ff4a; min-height:100svh; background:var(--ws-bg); color:var(--ws-text); font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.workspace-toolbar { height:64px; display:grid; grid-template-columns:minmax(260px,1fr) auto minmax(280px,1fr); align-items:center; gap:20px; padding:0 18px; border-bottom:1px solid var(--ws-line); background:#0b0d10; position:sticky; top:0; z-index:20; }
.workspace-toolbar__identity,.workspace-toolbar__actions,.workspace-toolbar__status { display:flex; align-items:center; gap:12px; }
.workspace-toolbar__identity strong { display:block; font-size:14px; }
.workspace-toolbar__identity .eyebrow { font-size:9px; color:var(--ws-muted); letter-spacing:.12em; }
.workspace-back { width:34px;height:34px;border:1px solid var(--ws-line);border-radius:9px;display:grid;place-items:center;color:var(--ws-text);text-decoration:none; }
.workspace-toolbar__status { justify-content:center; color:var(--ws-muted); font-size:12px; }
.workspace-dot { width:8px;height:8px;border-radius:99px;background:#ffb84a;box-shadow:0 0 0 4px rgb(255 184 74 / 10%); }.workspace-dot.ok{background:#72df8b;box-shadow:0 0 0 4px rgb(114 223 139 / 10%)}
.workspace-divider{width:1px;height:16px;background:var(--ws-line)}
.workspace-toolbar__actions{justify-content:flex-end}.workspace-button{min-height:36px;padding:0 14px;border:1px solid var(--ws-line);border-radius:8px;background:#111519;color:var(--ws-text);font-size:12px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.workspace-button.primary{background:var(--ws-accent);border-color:var(--ws-accent);color:#0a0c0d}.workspace-button:disabled{opacity:.42;cursor:not-allowed}
.workspace-warning{display:flex;gap:12px;padding:10px 18px;background:#2a1d0b;border-bottom:1px solid #5a3d13;color:#f6c66c;font-size:12px}.workspace-warning span{color:#d6b77c}
.workspace-grid{display:grid;grid-template-columns:270px minmax(420px,1fr) minmax(360px,46vw);height:calc(100svh - 64px);min-height:650px}
.workspace-sidebar,.workspace-editor-column,.workspace-preview-column{min-width:0;min-height:0;background:var(--ws-panel);border-right:1px solid var(--ws-line)}
.workspace-sidebar{display:flex;flex-direction:column}.workspace-sidebar__tabs{height:42px;display:flex;border-bottom:1px solid var(--ws-line)}.workspace-sidebar__tabs button,.workspace-sidebar__tabs a{flex:1;border:0;background:transparent;color:var(--ws-muted);font-size:10px;font-weight:800;letter-spacing:.08em;display:grid;place-items:center;text-decoration:none}.workspace-sidebar__tabs .active{color:var(--ws-text);box-shadow:inset 0 -2px var(--ws-accent)}
.workspace-search{display:flex;gap:6px;padding:10px;border-bottom:1px solid var(--ws-line)}.workspace-search input,.workspace-content-search input{width:100%;height:34px;border:1px solid var(--ws-line);background:#0b0e11;color:var(--ws-text);border-radius:7px;padding:0 10px;font-size:12px}.workspace-search button,.workspace-content-search button{height:34px;min-width:34px;border:1px solid var(--ws-line);background:#151a1f;color:var(--ws-text);border-radius:7px}
.workspace-project-head{display:flex;justify-content:space-between;padding:10px 12px 6px;color:var(--ws-muted);font-size:10px;font-weight:800;letter-spacing:.08em}.workspace-project-head small{font-weight:500;letter-spacing:0}
.workspace-tree{overflow:auto;padding:0 8px 10px;flex:1}.workspace-tree__folder>summary{height:30px;display:flex;align-items:center;gap:7px;cursor:pointer;color:#cbd2d7;font-size:12px;list-style:none;border-radius:6px;padding:0 6px}.workspace-tree__folder>summary:hover{background:#171b20}.workspace-tree__folder>summary::-webkit-details-marker{display:none}.workspace-tree__folder>summary:before{content:'›';width:10px;color:var(--ws-muted);transition:transform .15s}.workspace-tree__folder[open]>summary:before{transform:rotate(90deg)}.workspace-icon.folder{width:14px;height:10px;border:1px solid #7f8c96;border-radius:2px;position:relative}.workspace-icon.folder:before{content:'';position:absolute;left:1px;top:-4px;width:7px;height:4px;border:1px solid #7f8c96;border-bottom:0;border-radius:2px 2px 0 0}.workspace-tree__children{padding-left:13px;border-left:1px solid #20262c;margin-left:11px}
.workspace-tree__file{height:29px;display:flex;align-items:center;gap:8px;padding:0 6px;border-radius:6px;color:#b8c0c6;text-decoration:none;font-size:12px;min-width:0}.workspace-tree__file:hover{background:#171b20}.workspace-tree__file.active{background:#232a31;color:#fff}.workspace-tree__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.workspace-tree__state{font-size:8px;color:#6fdc88}.workspace-filetype{width:24px;height:17px;display:inline-grid;place-items:center;border-radius:4px;background:#252d35;color:#9ed0ff;font-size:8px;font-weight:900;text-transform:uppercase;flex:0 0 auto}.type-js{color:#f4dd69}.type-css{color:#6db7ff}.type-php{color:#b6a7ff}.type-html,.type-htm{color:#ff9b62}.type-json{color:#d0e96e}.type-md,.type-txt{color:#a7b1b8}
.workspace-content-search{border-top:1px solid var(--ws-line);padding:8px 10px;color:var(--ws-muted);font-size:11px}.workspace-content-search summary{cursor:pointer}.workspace-content-search form{display:flex;gap:6px;margin-top:8px}.workspace-search-results{max-height:220px;overflow:auto;margin-top:8px}.workspace-search-results a{display:block;padding:7px;border-radius:6px;color:var(--ws-text);text-decoration:none}.workspace-search-results a:hover{background:#171b20}.workspace-search-results strong,.workspace-search-results span{display:block;font-size:10px}.workspace-search-results span{color:var(--ws-muted);margin-top:3px}
.workspace-editor-column{display:flex;flex-direction:column;background:#0b0e11}.workspace-tabs{height:39px;display:flex;align-items:end;background:#0d1013;border-bottom:1px solid var(--ws-line);overflow:auto}.workspace-tab{height:38px;padding:0 13px;display:flex;align-items:center;gap:8px;border-right:1px solid var(--ws-line);color:var(--ws-muted);font-size:12px}.workspace-tab.active{background:#0b0e11;color:#fff;border-top:1px solid var(--ws-accent)}.workspace-tab small{color:#6fdc88}.workspace-breadcrumb{height:34px;padding:0 14px;display:flex;align-items:center;color:#7f8b94;font-size:11px;border-bottom:1px solid #191f24;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-editor-form{display:flex;flex:1;min-height:0;flex-direction:column}.workspace-code-area{display:grid;grid-template-columns:52px minmax(0,1fr);flex:1;min-height:0;background:#0b0e11}.workspace-line-numbers{margin:0;padding:14px 10px;overflow:hidden;background:#0a0c0f;color:#4f5a63;text-align:right;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;user-select:none;border-right:1px solid #171d22}.workspace-code-area textarea{width:100%;height:100%;min-height:500px;resize:none;border:0;outline:0;background:#0b0e11;color:#dfe6eb;padding:14px 16px;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;tab-size:2;white-space:pre;overflow:auto}.workspace-code-area textarea:focus{box-shadow:inset 0 0 0 1px rgb(183 255 74 / 18%)}.workspace-code-area textarea[readonly]{color:#aab3ba}
.workspace-editor-footer{min-height:56px;border-top:1px solid var(--ws-line);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 12px;background:#0d1013}.workspace-file-meta{display:flex;gap:10px;color:#77838c;font-size:10px;flex-wrap:wrap}.workspace-file-meta strong{color:#ffb566}.workspace-change-note{display:flex;align-items:center;gap:8px;color:#8e9aa3;font-size:10px}.workspace-change-note input{width:min(290px,26vw);height:34px;border:1px solid var(--ws-line);border-radius:7px;background:#0a0d10;color:var(--ws-text);padding:0 10px}.workspace-empty{display:grid;place-content:center;text-align:center;height:100%;padding:40px;color:var(--ws-muted)}.workspace-empty__mark{font:700 50px ui-monospace;color:#2c343b}.workspace-empty h1{font-size:20px;color:#d8dfe3;margin:14px 0 6px}.workspace-empty p{max-width:430px;font-size:13px;line-height:1.6}
.workspace-preview-column{display:flex;flex-direction:column;background:#0e1114;border-right:0}.workspace-preview-toolbar{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-bottom:1px solid var(--ws-line)}.workspace-device-switch{display:flex;gap:4px}.workspace-device-switch button,.workspace-preview-toolbar a,.workspace-preview-toolbar>div:last-child button{height:27px;border:0;background:transparent;color:#86919a;border-radius:6px;padding:0 8px;font-size:10px;text-decoration:none}.workspace-device-switch button.active{background:#222930;color:#fff}.workspace-preview-stage{flex:1;display:grid;place-items:center;padding:16px;background:#171b1f;overflow:auto}.workspace-preview-stage iframe{width:100%;height:100%;border:0;background:#fff;border-radius:7px;box-shadow:0 18px 60px rgb(0 0 0 / 35%);transition:width .2s,height .2s}.workspace-preview-stage[data-device="tablet"] iframe{width:min(768px,100%);height:min(1024px,100%)}.workspace-preview-stage[data-device="mobile"] iframe{width:min(390px,100%);height:min(844px,100%)}
@media (max-width:1280px){.workspace-grid{grid-template-columns:250px minmax(420px,1fr) minmax(310px,38vw)}.workspace-toolbar{grid-template-columns:1fr auto}.workspace-toolbar__status{display:none}}
@media (max-width:980px){.developer-page .admin-sidebar{display:none}.developer-page .admin-workspace{margin-left:0}.workspace-grid{grid-template-columns:240px minmax(0,1fr)}.workspace-preview-column{display:none}.workspace-toolbar{grid-template-columns:1fr auto}.workspace-toolbar__actions .subtle{display:none}}
@media (max-width:700px){.workspace-toolbar{height:auto;min-height:58px;padding:9px 10px}.workspace-toolbar__identity .eyebrow{display:none}.workspace-grid{height:auto;min-height:calc(100svh - 58px);grid-template-columns:1fr}.workspace-sidebar{max-height:38svh;border-bottom:1px solid var(--ws-line)}.workspace-tree{max-height:27svh}.workspace-editor-column{min-height:62svh}.workspace-editor-footer{align-items:flex-start;flex-direction:column}.workspace-change-note{width:100%;flex-direction:column;align-items:stretch}.workspace-change-note input{width:100%}.workspace-toolbar__actions a{display:none}.workspace-button.primary{padding:0 10px}.workspace-code-area textarea{min-height:50svh}.workspace-warning{flex-direction:column;gap:2px}}
/* GeoLab Page Builder v3 */
.page-builder-page .admin-content{padding:0;max-width:none;overflow:hidden}
.page-builder-page .admin-topbar{display:none}
.pb-shell{--pb-border:#252a27;--pb-panel:#0d0f0e;--pb-panel-2:#131614;--pb-text:#f4f6f3;--pb-muted:#89918b;--pb-accent:#a9ff65;display:grid;grid-template-columns:248px minmax(460px,1fr) minmax(380px,46vw);height:100vh;min-height:700px;background:#090b0a;color:var(--pb-text);overflow:hidden}
.pb-files,.pb-editor-pane,.pb-preview-pane{min-width:0;min-height:0}
.pb-files{display:flex;flex-direction:column;border-right:1px solid var(--pb-border);background:#0b0d0c}
.pb-files__head{height:54px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--pb-border)}
.pb-files__head>div{display:flex;align-items:center;gap:8px}.pb-files__head span{font-size:10px;font-weight:800;letter-spacing:.12em}.pb-files__head strong{display:grid;place-items:center;min-width:20px;height:20px;border-radius:99px;background:#1d221e;color:#aab2ac;font-size:10px}
.pb-icon-button,.pb-refresh{border:1px solid #303630;background:#151915;color:#eef1ed;border-radius:7px;width:30px;height:30px;cursor:pointer;font-size:18px}
.pb-search{padding:10px;border-bottom:1px solid var(--pb-border)}.pb-search input{width:100%;height:35px;border:1px solid #252a27;border-radius:7px;background:#111411;color:#fff;padding:0 11px;font-size:12px}
.pb-create{padding:12px;border-bottom:1px solid var(--pb-border);display:grid;gap:10px;background:#101310}.pb-create[hidden]{display:none}.pb-create label{display:grid;gap:5px}.pb-create label span{font-size:10px;color:#a9b0aa;text-transform:uppercase;letter-spacing:.08em}.pb-create input,.pb-create select{width:100%;height:36px;border:1px solid #303630;border-radius:6px;background:#0a0c0b;color:#fff;padding:0 9px;font-size:12px}.pb-create .button{min-height:36px;padding:.5rem .8rem;font-size:12px}
.pb-file-list{overflow:auto;padding:8px;display:grid;align-content:start;gap:3px}.pb-file{position:relative;display:grid;grid-template-columns:24px 1fr 8px;align-items:center;gap:8px;padding:9px 8px;border:1px solid transparent;border-radius:7px;color:#c9ceca;text-decoration:none}.pb-file:hover{background:#111411}.pb-file.active{background:#181d19;border-color:#2e382f;color:#fff}.pb-file__icon{font-size:14px;color:#7d887f;text-align:center}.pb-file>span:nth-child(2){min-width:0;display:grid;gap:2px}.pb-file strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pb-file small{font-size:10px;color:#747d76;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pb-status-dot{width:6px;height:6px;border-radius:50%;background:#626963}.pb-status-dot.published{background:#8ee859}.pb-status-dot.draft{background:#d6a94c}.pb-status-dot.archived{background:#6a6f6b}
.pb-empty{grid-column:2/-1;display:grid;place-items:center;background:#101210}.pb-empty>div{max-width:500px;padding:40px}.pb-empty span{font-size:12px;color:#798079}.pb-empty h1{font-size:clamp(28px,4vw,54px);line-height:1.03;margin:18px 0}.pb-empty p{color:#8e9690}
.pb-editor-pane{display:grid;grid-template-rows:54px 42px minmax(0,1fr);background:#0b0d0c;border-right:1px solid var(--pb-border)}
.pb-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:0 12px;border-bottom:1px solid var(--pb-border)}.pb-breadcrumb{display:flex;align-items:center;gap:8px;min-width:0}.pb-breadcrumb strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pb-breadcrumb span{font-size:10px;color:#737b75;white-space:nowrap}.pb-toolbar__state{display:flex;align-items:center;gap:8px}.pb-save-state{font-size:10px;color:#7f8881}.pb-save-state.dirty{color:#d8aa50}.pb-badge{padding:4px 7px;border-radius:99px;font-size:9px;text-transform:uppercase;letter-spacing:.08em;background:#222722;color:#9fa6a0}.pb-badge.published{background:#1c3220;color:#a8ee89}.pb-badge.draft{background:#342b18;color:#e8c277}.pb-toolbar__actions{display:flex;align-items:center;gap:6px}.pb-toolbar .button{min-height:32px;padding:.45rem .75rem;font-size:11px}.pb-secondary-action{font-size:10px;color:#aab0ab;text-decoration:none;padding:8px}
.pb-tabs{display:flex;align-items:end;padding:0 10px;border-bottom:1px solid var(--pb-border);overflow-x:auto}.pb-tabs button{height:41px;padding:0 13px;border:0;border-bottom:2px solid transparent;background:none;color:#6f7771;font-size:10px;font-weight:800;letter-spacing:.08em;cursor:pointer}.pb-tabs button[aria-selected="true"]{color:#fff;border-color:var(--pb-accent)}
.pb-editor-content{min-height:0;overflow:hidden}.pb-code-panel{height:100%;display:none;grid-template-rows:38px minmax(0,1fr)}.pb-code-panel.active{display:grid}.pb-code-meta{display:flex;align-items:center;justify-content:space-between;padding:0 13px;background:#101310;border-bottom:1px solid #202420}.pb-code-meta span{font-size:10px;font-weight:900;color:#d8ddd9}.pb-code-meta small{font-size:9px;color:#687069}
.pb-code-editor{min-height:0;display:grid;grid-template-columns:48px minmax(0,1fr);background:#0a0c0b;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:12px;line-height:1.65}.pb-code-editor pre{margin:0;padding:13px 9px;overflow:hidden;background:#0d100e;border-right:1px solid #1d211e;color:#48504a;text-align:right;user-select:none;font:inherit}.pb-code-editor textarea{width:100%;height:100%;min-height:0;resize:none;border:0;outline:0;background:#0a0c0b;color:#dce2dd;padding:13px 16px;white-space:pre;overflow:auto;tab-size:2;font:inherit;caret-color:var(--pb-accent)}
.pb-form-panel,.pb-history-panel{height:100%;overflow:auto;padding:26px}.pb-form-panel[hidden],.pb-history-panel[hidden]{display:none}.pb-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:900px}.pb-form-grid label{display:grid;gap:7px;align-content:start}.pb-form-grid label.wide,.pb-serp-preview,.pb-danger-zone{grid-column:1/-1}.pb-form-grid label>span{font-size:11px;font-weight:800;color:#d9ded9}.pb-form-grid input,.pb-form-grid select,.pb-form-grid textarea{width:100%;border:1px solid #303630;border-radius:8px;background:#121512;color:#f4f5f4;padding:10px 11px;font:inherit;font-size:12px}.pb-form-grid input,.pb-form-grid select{height:40px}.pb-form-grid textarea{resize:vertical}.pb-form-grid small{color:#717a73;font-size:10px}.pb-checkbox{grid-template-columns:auto 1fr!important;align-items:center!important}.pb-checkbox input{width:18px;height:18px}.pb-serp-preview{padding:20px;border:1px solid #292e2a;border-radius:10px;background:#101310}.pb-serp-preview small{display:block;color:#879087}.pb-serp-preview strong{display:block;margin:8px 0 5px;color:#b8d4ff;font-size:18px}.pb-serp-preview p{margin:0;color:#aab2ab;font-size:12px;line-height:1.6}.pb-danger-zone{margin-top:34px;padding:18px;border:1px solid #5b2b2b;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:20px}.pb-danger-zone strong{font-size:12px}.pb-danger-zone p{margin:4px 0 0;color:#8c9490;font-size:11px}.pb-danger-zone button{border:1px solid #8b3a3a;background:#321616;color:#ffd1d1;border-radius:7px;padding:8px 12px;cursor:pointer}
.pb-history-panel>header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.pb-history-panel header span{font-size:10px;color:#7c847e;letter-spacing:.1em}.pb-history-panel h2{margin:6px 0 0;font-size:24px}.pb-history-panel header small{max-width:300px;color:#747c76;text-align:right;font-size:10px}.pb-revision-list{display:grid;gap:8px}.pb-revision-list article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border:1px solid #252a27;border-radius:8px;background:#101310}.pb-revision-list article>div{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center}.pb-revision-list article span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:7px;background:#1b201c;color:#8f9891;font-size:10px}.pb-revision-list strong{font-size:11px}.pb-revision-list small{font-size:9px;color:#737b75}.pb-revision-list button{border:1px solid #343a35;border-radius:6px;background:#171b18;color:#d8ddd9;padding:7px 10px;font-size:10px;cursor:pointer}
.pb-preview-pane{display:grid;grid-template-rows:54px minmax(0,1fr) 32px;background:#111311}.pb-preview-pane>header{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:0 10px;border-bottom:1px solid var(--pb-border)}.pb-preview-pane>header>div:first-child{display:grid}.pb-preview-pane>header strong{font-size:11px}.pb-preview-pane>header span{font-size:9px;color:#747c76}.pb-device-switch{display:flex;background:#0c0e0d;border:1px solid #292e2a;border-radius:6px;padding:2px}.pb-device-switch button{border:0;background:none;color:#747c76;padding:5px 8px;font-size:9px;border-radius:4px;cursor:pointer}.pb-device-switch button.active{background:#242a25;color:#fff}.pb-refresh{font-size:15px}
.pb-preview-stage{position:relative;display:flex;align-items:flex-start;justify-content:center;min-height:0;overflow:auto;padding:14px;background:#181b19}.pb-preview-stage iframe{width:100%;height:100%;border:0;border-radius:4px;background:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.06);transition:width .25s ease}.pb-preview-stage[data-device="tablet"] iframe{width:min(768px,100%)}.pb-preview-stage[data-device="mobile"] iframe{width:min(390px,100%)}.pb-preview-loading{position:absolute;inset:14px;display:grid;place-content:center;justify-items:center;gap:10px;background:#dadcda;color:#5a605b}.pb-preview-loading[hidden]{display:none}.pb-preview-loading span{width:22px;height:22px;border:2px solid #9ca29d;border-top-color:#303531;border-radius:50%;animation:pb-spin .7s linear infinite}.pb-preview-loading p{margin:0;font-size:11px}.pb-preview-footer{display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-top:1px solid #292e2a}.pb-preview-footer span{font-size:8px;font-weight:900;color:#a7afa8}.pb-preview-footer small{font-size:9px;color:#687069}
.pb-notice{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:min(460px,calc(100vw - 36px));padding:12px 15px;border:1px solid #39413a;border-radius:9px;background:#161a17;color:#eef2ee;box-shadow:0 14px 50px rgba(0,0,0,.35);font-size:12px}.pb-notice.success{border-color:#3e6f45}.pb-notice.warning{border-color:#806a34}.pb-notice.error{border-color:#873f3f}
@keyframes pb-spin{to{transform:rotate(360deg)}}
@media(max-width:1500px){.pb-shell{grid-template-columns:220px minmax(430px,1fr) minmax(340px,40vw)}.pb-toolbar__state{display:none}.pb-toolbar{grid-template-columns:minmax(0,1fr) auto}}
@media(max-width:1180px){.pb-shell{grid-template-columns:210px minmax(0,1fr)}.pb-preview-pane{position:fixed;right:0;top:0;bottom:0;width:min(540px,80vw);z-index:120;transform:translateX(100%);transition:transform .25s ease}.pb-shell.preview-open .pb-preview-pane{transform:translateX(0)}}
@media(max-width:760px){.page-builder-page .admin-sidebar{display:none}.page-builder-page .admin-workspace{margin:0}.pb-shell{grid-template-columns:1fr;height:auto;min-height:100vh}.pb-files{max-height:280px;border-right:0;border-bottom:1px solid var(--pb-border)}.pb-editor-pane{min-height:720px;border-right:0}.pb-toolbar{height:auto;min-height:64px;grid-template-columns:1fr}.pb-toolbar__actions{padding-bottom:8px;overflow-x:auto}.pb-toolbar__actions .button,.pb-secondary-action{white-space:nowrap}.pb-form-grid{grid-template-columns:1fr}.pb-preview-pane{width:100vw}.pb-code-meta small{display:none}}

/* GeoLab 3.1 — file-backed page projects ---------------------------------- */
.project-admin-page{margin:0;background:#08090b;color:#f3f4f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100svh}
.project-admin-page *{box-sizing:border-box}
.project-admin-page button,.project-admin-page input,.project-admin-page textarea,.project-admin-page select{font:inherit}
.project-global-bar{height:68px;padding:0 clamp(18px,4vw,54px);display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(260px,1fr);align-items:center;gap:24px;border-bottom:1px solid #202227;background:rgba(8,9,11,.94);position:sticky;top:0;z-index:80;backdrop-filter:blur(18px)}
.project-global-brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;width:max-content}.project-global-brand__mark{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#f5f5f5;color:#090a0d;font-size:14px;font-weight:900}.project-global-brand span:last-child{display:grid}.project-global-brand strong{font-size:13px;letter-spacing:.02em}.project-global-brand small{font-size:8px;letter-spacing:.18em;text-transform:uppercase;color:#727785;margin-top:2px}
.project-global-nav{display:flex;align-items:center;gap:6px}.project-global-nav a{padding:8px 12px;border-radius:8px;color:#777c88;text-decoration:none;font-size:12px;font-weight:800}.project-global-nav a:hover,.project-global-nav a.active{color:#f3f4f6;background:#15171b}
.project-global-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.project-global-site,.project-global-actions form button{border:1px solid #25282f;background:#111318;color:#a9adb8;border-radius:8px;padding:8px 10px;text-decoration:none;font-size:11px;font-weight:800;cursor:pointer}.project-global-user{display:flex;align-items:center;gap:8px;color:#d8dae0;text-decoration:none;font-size:11px}.project-global-user>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#1d2026;color:#76ffd3;font-weight:900}.project-global-user strong{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-admin-content{min-height:calc(100svh - 68px)}.project-toast{position:fixed;right:24px;top:82px;z-index:300;max-width:min(480px,calc(100vw - 32px));padding:13px 16px;border-radius:10px;border:1px solid #2a2d34;background:#15171b;box-shadow:0 18px 50px rgba(0,0,0,.38);font-size:12px;font-weight:750}.project-toast.success{color:#78ffd3;border-color:#174638}.project-toast.error{color:#ff9b9b;border-color:#5b2828}
.project-dashboard-shell,.project-subpage-shell,.project-form-shell{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:32px 0 72px}.project-dashboard-head,.project-subpage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}.project-dashboard-head h1,.project-subpage-head h1{margin:0;color:#fafafa;font-size:clamp(25px,3vw,34px);letter-spacing:-.04em}.project-dashboard-head p,.project-subpage-head p{margin:5px 0 0;color:#6f7480;font-size:12px}.project-dashboard-head p strong{color:#aeb2bc}.project-subpage-head a{display:inline-flex;color:#777c87;text-decoration:none;font-size:11px;font-weight:800;margin-bottom:12px}.project-subpage-head code{color:#a9ff65}.project-primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:0 15px;border:0;border-radius:8px;background:#a9ff65;color:#101310;text-decoration:none;font-size:11px;font-weight:900;cursor:pointer}
.project-dashboard-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:32px}.project-action-card{min-height:146px;padding:18px;border:1px solid #24262c;border-radius:11px;background:#121317;color:#fff;text-decoration:none;display:flex;flex-direction:column;align-items:flex-start;transition:border-color .2s ease,transform .2s ease,background .2s ease}.project-action-card:hover{border-color:#3a3e47;background:#15171c;transform:translateY(-2px)}.project-action-card__icon{width:35px;height:35px;border-radius:8px;display:grid;place-items:center;margin-bottom:12px;background:#1c1e24;font-weight:900}.project-action-card__icon.blue{color:#3159ff}.project-action-card__icon.green{color:#15e6a3;background:#10251f}.project-action-card__icon.purple{color:#9f4dff;background:#21172b}.project-action-card__icon.yellow{color:#ffd43d;background:#292413}.project-action-card strong{font-size:12px}.project-action-card p{margin:8px 0 0;color:#676b77;font-size:10px;line-height:1.5}.project-action-card b{margin-top:auto;font-size:9px;letter-spacing:.03em;color:#777c88}.project-action-card:nth-child(2) b{color:#3dffc3}.project-action-card:nth-child(3) b{color:#b887ff}.project-action-card:nth-child(4) b{color:#ffd43d}
.project-list-section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.project-list-section>header div{display:flex;align-items:center;gap:9px}.project-list-section h2{font-size:13px;margin:0}.project-list-section>header span{min-width:21px;height:18px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:#191b20;color:#747985;font-size:9px}.project-list-section>header small{color:#484c57;font-size:9px}.project-list-table{border:1px solid #24262b;border-radius:13px;overflow:hidden;background:#0b0c0f}.project-list-row{display:grid;grid-template-columns:minmax(260px,1.45fr) .65fr minmax(200px,.9fr) minmax(220px,.8fr);align-items:center;min-height:62px;padding:0 18px;border-bottom:1px solid #1c1e23;gap:14px}.project-list-row:last-child{border-bottom:0}.project-list-row--head{min-height:37px;background:#141519;color:#484c57;font-size:8px;font-weight:900;letter-spacing:.08em}.project-list-name{display:flex;align-items:center;gap:13px;min-width:0}.project-list-icon{width:35px;height:35px;border:1px solid #23262d;border-radius:9px;background:#181a20;color:#ff824d;display:grid;place-items:center;font-size:18px}.project-list-name div{display:grid;min-width:0}.project-list-name strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-list-name small{font:9px ui-monospace,SFMono-Regular,Consolas,monospace;color:#454954;margin-top:3px}.project-status{width:max-content;display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#0c261d;color:#3dffc3;font-size:9px;font-weight:900}.project-status i{width:5px;height:5px;border-radius:50%;background:currentColor}.project-status.draft{background:#2a2511;color:#ffd75c}.project-status.archived{background:#29202a;color:#d997db}.project-folder-cell{display:grid;gap:2px;min-width:0}.project-folder-cell code{font-size:9px;color:#777c88;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-folder-cell small{font-size:8px;color:#444854}.project-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.project-row-actions a,.project-row-actions button{display:inline-flex;align-items:center;min-height:27px;padding:0 9px;border:1px solid #252830;border-radius:6px;background:#0c0d10;color:#6f7480;text-decoration:none;font-size:9px;font-weight:800;cursor:pointer}.project-row-actions a:hover,.project-row-actions button:hover{color:#fff;border-color:#3a3e49}.project-row-actions form{margin:0}.project-list-empty{padding:28px;color:#6c707a;font-size:11px;text-align:center}
.project-create-form{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;padding:22px;border:1px solid #24272d;border-radius:13px;background:#101115}.project-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.project-form-grid label,.project-seo-card label,.project-dialog label{display:grid;gap:7px}.project-form-grid label.wide,.project-dialog-grid .wide{grid-column:1/-1}.project-form-grid label>span,.project-seo-card label>span,.project-dialog label>span{color:#8a8f9b;font-size:10px;font-weight:800}.project-form-grid input,.project-form-grid textarea,.project-form-grid select,.project-seo-card input,.project-seo-card textarea,.project-dialog input,.project-dialog textarea,.project-dialog select{width:100%;border:1px solid #292c33;background:#0b0c0f;color:#e8e9ec;border-radius:8px;padding:11px 12px;outline:0;font-size:11px}.project-form-grid input:focus,.project-form-grid textarea:focus,.project-form-grid select:focus,.project-seo-card input:focus,.project-seo-card textarea:focus,.project-dialog input:focus,.project-dialog textarea:focus,.project-dialog select:focus{border-color:#6d746e;box-shadow:0 0 0 3px rgba(169,255,101,.08)}.project-create-files{padding:18px;border:1px solid #24272d;border-radius:10px;background:#0b0c0f}.project-create-files h2{font-size:12px;margin:0 0 14px}.project-create-files pre{margin:0;padding:16px;border-radius:8px;background:#07080a;color:#9ea3ad;overflow:auto;font-size:11px;line-height:1.8}.project-create-files pre span{color:#a9ff65}.project-create-files p{color:#5f6470;font-size:10px;line-height:1.6;margin:14px 0 0}.project-create-form>footer{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #22252b;padding-top:18px}.project-create-form>footer>a{color:#777c88;text-decoration:none;font-size:10px;font-weight:800}
.project-seo-list{display:grid;gap:12px}.project-seo-card{border:1px solid #24272d;border-radius:12px;background:#101115;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:14px}.project-seo-card>header,.project-seo-card>footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.project-seo-card>header{padding-bottom:13px;border-bottom:1px solid #21242a}.project-seo-card>header>div{display:grid}.project-seo-card>header strong{font-size:12px}.project-seo-card>header small{color:#555a65;font-size:9px;margin-top:3px}.project-seo-card>footer{padding-top:4px}.project-seo-card>footer a{color:#7d838e;text-decoration:none;font-size:9px;font-weight:800}.project-seo-card>footer button{border:0;border-radius:7px;background:#a9ff65;color:#11150f;padding:9px 12px;font-size:9px;font-weight:900;cursor:pointer}
.project-analytics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.project-analytics-metrics article{min-height:110px;padding:17px;border:1px solid #24272d;border-radius:11px;background:#101115;display:grid;align-content:start}.project-analytics-metrics span{color:#6d727d;font-size:9px;font-weight:800}.project-analytics-metrics strong{font-size:29px;letter-spacing:-.04em;margin-top:8px}.project-analytics-metrics small{color:#4f535d;font-size:9px}.project-event-panel{border:1px solid #24272d;border-radius:12px;overflow:hidden;background:#0b0c0f}.project-event-panel>header{padding:15px 18px;background:#121419;border-bottom:1px solid #23262c}.project-event-panel h2{font-size:12px;margin:0}.project-event-row{display:grid;grid-template-columns:1fr 1.2fr .5fr .75fr .65fr;gap:14px;align-items:center;min-height:58px;padding:0 18px;border-bottom:1px solid #1d2025;color:#747985;font-size:9px}.project-event-row:last-child{border-bottom:0}.project-event-row.head{min-height:35px;background:#101115;color:#494d57;font-size:8px;font-weight:900}.project-event-row span:first-child{display:grid}.project-event-row strong{color:#d6d8dd;font-size:10px}.project-event-row small{color:#494d57;margin-top:2px}.project-event-row code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#979ca7}
/* full-screen project source editor */
.project-editor-page .project-global-bar{display:none}.project-editor-page .project-admin-content{height:100svh;min-height:680px;overflow:hidden}.project-code-app{--pc-border:#22252a;--pc-panel:#0d0f12;--pc-panel-2:#121419;--pc-muted:#6d727d;--pc-accent:#a9ff65;height:100%;display:grid;grid-template-rows:58px minmax(0,1fr);background:#08090b;color:#eff0f3}.project-code-toolbar{height:58px;display:grid;grid-template-columns:minmax(280px,1fr) auto minmax(360px,1fr);align-items:center;gap:16px;padding:0 14px;border-bottom:1px solid var(--pc-border);background:#0b0d0f}.project-code-identity{display:flex;align-items:center;gap:10px;min-width:0}.project-code-identity>a{width:30px;height:30px;border:1px solid #272a30;border-radius:7px;color:#8d929c;display:grid;place-items:center;text-decoration:none}.project-code-identity>div{display:grid;min-width:0}.project-code-identity small{color:#4e535d;font:8px ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-code-identity strong{font-size:11px;margin-top:2px}.project-code-status{display:flex;align-items:center;gap:9px;color:#5f646e;font-size:9px}.project-code-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.project-code-actions>a,.project-code-actions>button{height:31px;padding:0 10px;border:1px solid #272a30;border-radius:7px;background:#0f1115;color:#7b808b;text-decoration:none;font-size:9px;font-weight:850;cursor:pointer}.project-code-actions>button.primary{border-color:#a9ff65;background:#a9ff65;color:#11150f}.project-code-actions>button:disabled{opacity:.4;cursor:not-allowed}.project-code-actions kbd{margin-left:5px;font-size:7px;opacity:.7}.project-code-grid{min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr)}.project-file-sidebar{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;border-right:1px solid var(--pc-border);background:#0c0e11}.project-file-sidebar__head{height:51px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1c1f24}.project-file-sidebar__head>div{display:flex;align-items:center;gap:7px}.project-file-sidebar__head span{font-size:8px;font-weight:900;letter-spacing:.08em}.project-file-sidebar__head b{min-width:18px;height:17px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:#17191e;color:#626773;font-size:8px}.project-file-sidebar__head button{width:27px;height:27px;border:1px solid #272a31;border-radius:6px;background:#121419;color:#8e939d;cursor:pointer}.project-file-search{margin:10px 10px 6px;height:34px;border:1px solid #22252b;border-radius:7px;background:#101216;display:flex;align-items:center;padding:0 9px;gap:7px}.project-file-search span{color:#4e535d}.project-file-search input{width:100%;border:0;outline:0;background:transparent;color:#c9cbd1;font-size:9px}.project-root-label{height:32px;padding:0 13px;display:flex;align-items:center;gap:8px;color:#7d828d}.project-root-label strong{font-size:8px;letter-spacing:.06em}.project-root-label small{margin-left:auto;font-size:7px;color:#3affbd}.project-tree-folder-icon{width:13px;height:10px;border:1px solid #4a4f59;border-radius:2px;position:relative;display:inline-block}.project-tree-folder-icon:before{content:"";position:absolute;left:1px;top:-4px;width:6px;height:3px;border:1px solid #4a4f59;border-bottom:0;border-radius:2px 2px 0 0}.project-file-tree{min-height:0;overflow:auto;padding:4px 7px 14px}.project-tree-folder{margin:1px 0}.project-tree-folder>summary{list-style:none;height:29px;display:flex;align-items:center;gap:7px;padding:0 7px;border-radius:5px;color:#7a7f89;cursor:pointer}.project-tree-folder>summary::-webkit-details-marker{display:none}.project-tree-folder>summary:hover{background:#14171b;color:#c3c6cc}.project-tree-folder>summary strong{font-size:9px;font-weight:700}.project-tree-chevron{font-size:14px;transform-origin:center;transition:transform .15s}.project-tree-folder[open]>summary .project-tree-chevron{transform:rotate(90deg)}.project-tree-children{padding-left:14px}.project-tree-file{height:29px;display:grid;grid-template-columns:25px minmax(0,1fr) 12px;align-items:center;gap:6px;padding:0 7px;border-radius:5px;color:#757a85;text-decoration:none;font-size:9px}.project-tree-file:hover{background:#14171b;color:#d2d4d9}.project-tree-file.active{background:#1b1f22;color:#fff}.project-tree-file i{font-style:normal;color:#3dffc3;font-size:7px}.project-file-icon{width:23px;height:20px;border-radius:4px;background:#1c1f25;color:#7f8490;display:grid;place-items:center;text-transform:uppercase;font:7px ui-monospace,SFMono-Regular,Consolas,monospace}.project-file-icon.type-html,.project-file-icon.type-htm{color:#ff8a55}.project-file-icon.type-css,.project-file-icon.type-scss{color:#5b9dff}.project-file-icon.type-js,.project-file-icon.type-mjs,.project-file-icon.type-ts{color:#ffd55c}.project-file-icon.type-json{color:#6effb9}.project-file-icon.type-svg{color:#dd8cff}.project-sidebar-footer{border-top:1px solid #1d2025;padding:8px}.project-sidebar-footer button,.project-sidebar-footer a{width:100%;height:31px;border:0;background:transparent;color:#626773;display:flex;align-items:center;justify-content:space-between;padding:0 7px;text-decoration:none;font-size:8px;font-weight:800;cursor:pointer}.project-sidebar-footer button:hover,.project-sidebar-footer a:hover{color:#d5d7dc;background:#121419}.project-sidebar-footer span{min-width:19px;height:17px;border-radius:999px;background:#191c21;display:grid;place-items:center;font-size:7px}.project-code-editor-column{min-width:0;min-height:0;display:grid;grid-template-rows:38px 32px minmax(0,1fr);background:#090a0d}.project-editor-tabs{display:flex;align-items:end;border-bottom:1px solid #202329;background:#0d0f12;padding-left:8px}.project-editor-tab{height:34px;min-width:150px;max-width:260px;padding:0 10px;display:flex;align-items:center;gap:7px;border:1px solid #23262c;border-bottom-color:#0d0f12;border-radius:6px 6px 0 0;background:#0d0f12}.project-editor-tab strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.project-editor-tab i{margin-left:auto;color:#3dffc3;font-size:7px}.project-editor-breadcrumb{height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #1d2025;color:#4d525c;font:8px ui-monospace,SFMono-Regular,Consolas,monospace}.project-editor-breadcrumb form{margin:0}.project-editor-breadcrumb button{border:0;background:transparent;color:#75545a;font-size:8px;cursor:pointer}.project-source-form{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 54px}.project-source-area{min-height:0;display:grid;grid-template-columns:48px minmax(0,1fr);background:#090a0d}.project-source-area pre{margin:0;padding:14px 9px 40px 0;border-right:1px solid #181b1f;color:#343841;text-align:right;overflow:hidden;font:11px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;user-select:none}.project-source-area textarea{width:100%;height:100%;resize:none;border:0;outline:0;background:#090a0d;color:#d8dadd;padding:14px 18px 40px;tab-size:2;white-space:pre;overflow:auto;font:11px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace}.project-source-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 14px;border-top:1px solid #1d2025;background:#0d0f12}.project-source-footer>div{display:flex;align-items:center;gap:12px;color:#555a65;font-size:8px}.project-source-footer label{display:flex;align-items:center;gap:8px}.project-source-footer label span{font-size:8px;color:#555a65}.project-source-footer input{width:260px;height:31px;border:1px solid #25282e;border-radius:6px;background:#101216;color:#b8bbc2;padding:0 9px;outline:0;font-size:9px}.project-binary-file,.project-editor-empty{display:grid;place-items:center;align-content:center;text-align:center;padding:28px}.project-binary-file>span,.project-editor-empty>span{width:58px;height:58px;border:1px solid #262930;border-radius:13px;display:grid;place-items:center;color:#555b65;font:13px ui-monospace,SFMono-Regular,Consolas,monospace}.project-binary-file h1,.project-editor-empty h1{font-size:18px;margin:16px 0 5px}.project-binary-file p,.project-editor-empty p{max-width:520px;color:#5e636e;font-size:10px;line-height:1.6;margin:2px 0}.project-editor-notice{position:fixed;right:17px;bottom:17px;z-index:500;padding:11px 14px;border:1px solid #1c503d;border-radius:8px;background:#10271f;color:#64ffd0;font-size:9px;font-weight:800;box-shadow:0 16px 45px rgba(0,0,0,.4)}.project-editor-notice.error{border-color:#5e2b2b;background:#2b1717;color:#ff9c9c}
.project-dialog{width:min(620px,calc(100vw - 28px));max-height:min(760px,calc(100svh - 28px));border:1px solid #2a2d34;border-radius:12px;background:#111317;color:#ecedf0;padding:0;box-shadow:0 28px 90px rgba(0,0,0,.58)}.project-dialog::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(5px)}.project-dialog.compact{width:min(460px,calc(100vw - 28px))}.project-dialog>form,.project-dialog>div{display:grid}.project-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:17px 18px;border-bottom:1px solid #25282e}.project-dialog header small{color:#676c77;font-size:7px;font-weight:900;letter-spacing:.09em}.project-dialog header h2{margin:3px 0 0;font-size:15px}.project-dialog header>button{width:28px;height:28px;border:1px solid #2b2e35;border-radius:7px;background:#17191e;color:#858a95;cursor:pointer}.project-dialog label{margin:14px 18px 0}.project-dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:17px 18px;margin-top:17px;border-top:1px solid #25282e}.project-dialog footer button{height:32px;padding:0 12px;border:1px solid #292c33;border-radius:7px;background:#15171b;color:#858a95;font-size:9px;font-weight:850;cursor:pointer}.project-dialog footer button.primary{border-color:#a9ff65;background:#a9ff65;color:#10140e}.project-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.project-checkbox{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center}.project-checkbox input{width:16px!important;height:16px}.project-history-list{max-height:600px;overflow:auto;padding:9px}.project-history-list>p{color:#666b76;font-size:10px;padding:18px}.project-history-list article{display:flex;gap:10px;padding:10px;border-bottom:1px solid #21242a}.project-history-list article:last-child{border-bottom:0}.project-history-list article>div{display:grid}.project-history-list strong{font-size:9px}.project-history-list small{font-size:8px;color:#5d626d;margin-top:3px}.project-history-list p{margin:5px 0 0;color:#818691;font-size:8px}
@media(max-width:980px){.project-global-bar{grid-template-columns:1fr auto}.project-global-nav{display:none}.project-global-actions .project-global-site,.project-global-user strong{display:none}.project-dashboard-actions,.project-analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.project-list-row{grid-template-columns:minmax(210px,1fr) .65fr minmax(190px,.8fr)}.project-list-row>span:nth-child(3),.project-folder-cell{display:none}.project-list-row--head span:nth-child(3){display:none}.project-create-form{grid-template-columns:1fr}.project-create-files{grid-row:2}.project-create-form>footer{grid-column:1}.project-code-toolbar{grid-template-columns:minmax(220px,1fr) auto}.project-code-status{display:none}.project-code-grid{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:700px){.project-global-bar{height:58px;padding:0 12px}.project-global-actions form{display:none}.project-admin-content{min-height:calc(100svh - 58px)}.project-dashboard-shell,.project-subpage-shell,.project-form-shell{width:min(100% - 24px,1120px);padding-top:22px}.project-dashboard-head{align-items:center}.project-dashboard-actions,.project-analytics-metrics{grid-template-columns:1fr}.project-list-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:13px;align-items:start}.project-list-row--head{display:none}.project-list-row>div:nth-child(2){position:absolute;margin-left:48px;margin-top:36px}.project-row-actions{justify-content:flex-start;padding-left:48px}.project-seo-card{grid-template-columns:1fr}.project-form-grid,.project-dialog-grid{grid-template-columns:1fr}.project-code-app{grid-template-rows:auto minmax(0,1fr)}.project-code-toolbar{height:auto;min-height:58px;padding:8px;grid-template-columns:minmax(0,1fr)}.project-code-actions{justify-content:flex-start;overflow:auto}.project-code-grid{grid-template-columns:1fr;grid-template-rows:minmax(170px,32svh) minmax(0,1fr)}.project-file-sidebar{border-right:0;border-bottom:1px solid #22252a}.project-file-sidebar__head{height:42px}.project-root-label{display:none}.project-code-editor-column{min-height:58svh}.project-source-footer{height:auto;min-height:62px;align-items:flex-start;flex-direction:column;padding:8px}.project-source-footer input{width:min(100%,330px)}.project-source-area textarea,.project-source-area pre{font-size:10px}.project-editor-page .project-admin-content{height:100svh}.project-dialog{max-height:calc(100svh - 12px)}}
.developer-page .workspace-grid{grid-template-columns:270px minmax(420px,1fr)}
@media(max-width:980px){.developer-page .workspace-grid{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:700px){.developer-page .workspace-grid{grid-template-columns:1fr}}

/* BEGIN GEOLAB v3.2 GLOBAL LIGHT OVERRIDES */
/* =========================================================
   GEOLAB v3.2 — UNIFIED LIGHT DESIGN SYSTEM
   Shared public, admin and page-editor experience.
   ========================================================= */
:root {
  color-scheme: light;
  --ink: #111813;
  --ink-soft: #344038;
  --paper: #f7f9f5;
  --paper-2: #eef3ed;
  --paper-3: #e3ebe2;
  --white: #ffffff;
  --line: #cbd5cb;
  --line-strong: #8d9a8e;
  --muted: #536058;
  --green: #315f45;
  --green-2: #47795b;
  --green-pale: #dcebdd;
  --orange: #b94e31;
  --orange-pale: #f4ddd5;
  --danger: #9a2c25;
  --success: #17613d;
  --shadow: 0 24px 70px rgba(17, 24, 19, .08);
  --shell: 1520px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
}

html { min-width: 320px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1rem, .965rem + .16vw, 1.125rem);
  line-height: 1.65;
}
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.shell { width: min(var(--shell), calc(100% - clamp(32px, 6vw, 96px))); }
:focus-visible { outline: 3px solid rgba(49, 95, 69, .58); outline-offset: 3px; }

.button { min-height: 48px; font-size: 15px; }
.button.compact { min-height: 44px; font-size: 14px; }
.icon-button, .nav-toggle { width: 46px; height: 46px; }

.site-header { background: rgba(247, 249, 245, .92); }
.site-header__inner { min-height: 80px; }
.brand { font-size: 18px; }
.primary-nav > a { font-size: 15px; }
.nav-account { font-size: 14px; }
.nav-account span { font-size: 12px; }
.site-footer__grid p, .site-footer__grid a:not(.brand) { font-size: 16px; }
.site-footer__grid strong, .site-footer__bottom { font-size: 13px; }

.hero { min-height: min(900px, calc(100svh - 80px)); }
.hero__copy h1,
.page-hero h1,
.experiment-header h1,
.dashboard-hero h1,
.auth-intro h1 { font-size: clamp(3.75rem, 7.1vw, 7.75rem); }
.hero__lead { font-size: clamp(1.125rem, 1.25vw, 1.45rem); line-height: 1.55; }
.hero__facts dt { font-size: 14px; }
.hero__facts dd { font-size: 14px; line-height: 1.5; }
.eyebrow { font-size: 13px; }
.section-heading h2 { font-size: clamp(3rem, 5.4vw, 6rem); }
.section-heading.split > p,
.product-demo__copy p:not(.eyebrow) { font-size: clamp(1.05rem, 1.1vw, 1.25rem); }
.principle-grid h3 { font-size: 28px; }
.principle-grid p { font-size: 17px; }

/* The previous dark feature band now uses a bright editorial surface. */
.section-dark {
  background: #edf3ec;
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.section-dark .eyebrow.light { color: var(--green); }
.product-demo__copy p:not(.eyebrow) { color: var(--muted); }
.product-demo .button.inverse { background: var(--ink); color: #fff; }

/* Shared forms, cards and data surfaces */
input, select, textarea {
  min-height: 44px;
  border-color: var(--line-strong);
  background: #fff;
}
label, .form-field label, .admin-form label { font-size: 14px; }
.card, .panel, .admin-panel, .admin-metrics article { box-shadow: 0 12px 36px rgba(17,24,19,.045); }

/* =========================================================
   STANDARD ADMIN — aligned with the page editor
   ========================================================= */
.admin-page,
.admin-shell { background: #f2f5f1; color: var(--ink); }
.admin-sidebar {
  width: 272px;
  background: #fbfcfa;
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 30px rgba(17,24,19,.035);
}
.admin-workspace { margin-left: 272px; }
.admin-brand { color: var(--ink); border-bottom-color: var(--line); }
.admin-brand small { color: var(--muted); font-size: 11px; }
.admin-brand .brand__mark { border-color: var(--line-strong); background: #fff; }
.admin-user-card { border-bottom-color: var(--line); }
.admin-user-card > span { background: var(--green-pale); color: var(--green); }
.admin-user-card strong { font-size: 14px; }
.admin-user-card small { color: var(--muted); font-size: 11px; }
.admin-nav p { color: #647068; font-size: 11px; }
.admin-nav a {
  min-height: 46px;
  color: #49554e;
  font-size: 14px;
  border: 1px solid transparent;
}
.admin-nav a:hover { background: #edf2ec; color: var(--ink); }
.admin-nav a.active {
  background: #e4efdf;
  color: #23452f;
  border-color: #c9dbc2;
  box-shadow: inset 3px 0 0 var(--green);
}
.admin-sidebar__bottom,
.admin-sidebar__footer { border-top-color: var(--line); color: var(--muted); }
.admin-sidebar__bottom a,
.admin-sidebar__footer a,
.admin-sidebar__footer button { color: #445149; font-size: 13px; min-height: 44px; }
.admin-sidebar__footer a:hover,
.admin-sidebar__footer button:hover { background: #edf2ec; color: var(--ink); }
.admin-topbar {
  min-height: 80px;
  height: auto;
  background: rgba(250,252,249,.93);
  border-bottom-color: var(--line);
}
.admin-topbar p,
.admin-topbar > div span { font-size: 11px; }
.admin-topbar strong,
.admin-topbar > div strong { font-size: 16px; }
.admin-menu-button,
.admin-security-chip { min-height: 44px; background: #fff; border-color: var(--line); font-size: 13px; }
.admin-content { padding: clamp(24px, 3vw, 48px); }
.admin-page-head h1 { font-size: clamp(2.75rem, 4.5vw, 5.25rem); }
.admin-page-head > div > p:last-child { font-size: 17px; }
.admin-metrics span { font-size: 11px; }
.admin-metrics small { font-size: 14px; }
.admin-panel { border-color: var(--line); border-radius: var(--radius); }
.admin-panel > header h2 { font-size: 26px; }
.admin-panel > header p { font-size: 15px; }
.admin-table { font-size: 14px; }
.admin-table th { font-size: 11px; padding-block: 15px; }
.admin-table td { padding-block: 16px; }
.admin-table code { font-size: 12px; }
.admin-search input { min-height: 44px; font-size: 14px; }
.admin-alert { font-size: 14px; border-radius: 10px; }

/* =========================================================
   PROJECT ADMIN / DASHBOARD — unified light palette
   ========================================================= */
.project-admin-page,
.project-editor-page,
.project-admin-content,
.project-dashboard-shell,
.project-subpage-shell,
.project-form-shell {
  --pa-bg: #f2f5f1;
  --pa-panel: #ffffff;
  --pa-panel-soft: #f7f9f6;
  --pa-border: #d1dad1;
  --pa-border-strong: #9eaa9f;
  --pa-text: #172019;
  --pa-muted: #5a675e;
  --pa-accent: #4b7d34;
  color-scheme: light;
}
.project-admin-page,
.project-editor-page,
.project-admin-content { background: var(--pa-bg, #f2f5f1); color: var(--pa-text, #172019); }
.project-global-bar {
  min-height: 68px;
  height: auto;
  background: rgba(251,252,250,.96);
  border-bottom: 1px solid var(--pa-border, #d1dad1);
  color: var(--pa-text, #172019);
  box-shadow: 0 8px 24px rgba(17,24,19,.04);
}
.project-global-brand,
.project-global-nav a,
.project-global-site,
.project-global-user { color: #38453c; }
.project-global-brand strong { font-size: 15px; }
.project-global-brand small { color: var(--pa-muted, #5a675e); font-size: 11px; }
.project-global-nav a { min-height: 40px; font-size: 13px; }
.project-global-nav a:hover,
.project-global-nav a.active { background: #e8f0e4; color: #24442c; }
.project-global-actions a,
.project-global-actions button,
.project-global-site,
.project-global-user { min-height: 40px; font-size: 13px; border-color: var(--pa-border, #d1dad1); background: #fff; }
.project-admin-content { min-height: calc(100dvh - 68px); }
.project-dashboard-shell,
.project-subpage-shell,
.project-form-shell { width: min(1180px, calc(100% - clamp(28px, 6vw, 84px))); }
.project-dashboard-head h1,
.project-subpage-head h1,
.project-form-head h1 { color: var(--pa-text, #172019); font-size: clamp(2.4rem, 4vw, 4.75rem); }
.project-dashboard-head p,
.project-subpage-head p,
.project-form-head p { color: var(--pa-muted, #5a675e); font-size: 16px; }
.project-action-card,
.project-list-card,
.project-form-card,
.project-seo-card,
.project-analytics-card,
.project-empty-card {
  background: #fff;
  color: var(--pa-text, #172019);
  border-color: var(--pa-border, #d1dad1);
  box-shadow: 0 14px 40px rgba(17,24,19,.045);
}
.project-action-card:hover { border-color: #9eb392; background: #fbfdf9; }
.project-action-card strong { font-size: 17px; }
.project-action-card p { color: var(--pa-muted, #5a675e); font-size: 14px; }
.project-list-row { color: var(--pa-text, #172019); border-color: #e1e7e0; font-size: 14px; }
.project-list-row--head { background: #f3f6f2; color: var(--pa-muted, #5a675e); font-size: 11px; }
.project-row-actions a,
.project-row-actions button,
.project-primary-button,
.project-secondary-button,
.project-danger-button { min-height: 42px; font-size: 13px; }
.project-primary-button { background: #315f45; color: #fff; border-color: #315f45; }
.project-status { font-size: 12px; }
.project-form-label,
.project-form-field > span,
.project-dialog label > span { color: #455249; font-size: 13px; }
.project-form-field input,
.project-form-field select,
.project-form-field textarea,
.project-dialog input,
.project-dialog select,
.project-dialog textarea { min-height: 46px; background: #fff; color: var(--pa-text, #172019); border-color: var(--pa-border-strong, #9eaa9f); font-size: 14px; }
.project-form-field textarea,
.project-dialog textarea { min-height: 130px; }
.project-seo-card h2,
.project-analytics-card h2 { font-size: 22px; }
.project-seo-card p,
.project-analytics-card p { color: var(--pa-muted, #5a675e); font-size: 14px; }
.project-analytics-metrics strong { font-size: clamp(2rem, 3vw, 3.25rem); }
.project-analytics-metrics span { font-size: 12px; }

/* =========================================================
   PAGE / SOURCE EDITOR — readable, light and responsive
   ========================================================= */
.project-editor-page .project-global-bar { background: rgba(251,252,250,.98); }
.project-code-app {
  --pc-bg: #f2f5f1;
  --pc-panel: #ffffff;
  --pc-panel-2: #f6f8f5;
  --pc-border: #d2dbd2;
  --pc-text: #172019;
  --pc-muted: #647168;
  --pc-accent: #477a31;
  min-height: 100dvh;
  background: var(--pc-bg);
  color: var(--pc-text);
}
.project-code-toolbar {
  min-height: 68px;
  height: auto;
  background: #fbfcfa;
  border-bottom-color: var(--pc-border);
  padding: 8px 14px;
}
.project-code-identity > a { width: 40px; height: 40px; background: #edf2ec; color: #315f45; border-color: #cbd7ca; }
.project-code-identity small { color: var(--pc-muted); font-size: 11px; }
.project-code-identity strong { color: var(--pc-text); font-size: 14px; }
.project-code-status { color: var(--pc-muted); font-size: 12px; }
.project-code-actions > a,
.project-code-actions > button {
  min-height: 42px;
  height: auto;
  padding: 0 14px;
  border-color: #cbd5cb;
  background: #fff;
  color: #3f4b43;
  font-size: 13px;
}
.project-code-actions > button.primary { background: #315f45; border-color: #315f45; color: #fff; }
.project-code-actions kbd { font-size: 10px; }
.project-code-grid { grid-template-columns: 300px minmax(0,1fr); background: var(--pc-bg); }
.project-file-sidebar { background: #f8faf7; border-right-color: var(--pc-border); }
.project-file-sidebar__head { min-height: 54px; height: auto; border-bottom-color: var(--pc-border); }
.project-file-sidebar__head span { color: #37443b; font-size: 12px; }
.project-file-sidebar__head b { min-width: 24px; height: 22px; background: #e8eee7; color: #4c5950; font-size: 11px; }
.project-file-sidebar__head button { width: 40px; height: 40px; background: #fff; border-color: #cbd5cb; color: #3d4a41; }
.project-file-search { min-height: 42px; height: auto; background: #fff; border-color: #cbd5cb; }
.project-file-search span { color: #647168; }
.project-file-search input { min-height: 38px; color: var(--pc-text); font-size: 13px; }
.project-root-label { min-height: 40px; height: auto; color: #48564d; }
.project-root-label strong { font-size: 12px; }
.project-root-label small { color: #397126; font-size: 10px; }
.project-tree-folder > summary { min-height: 40px; height: auto; color: #4f5c54; }
.project-tree-folder > summary:hover { background: #edf2ec; color: var(--pc-text); }
.project-tree-folder > summary strong { font-size: 13px; }
.project-tree-folder-icon,
.project-tree-folder-icon::before { border-color: #758177; }
.project-tree-file {
  min-height: 40px;
  height: auto;
  grid-template-columns: 32px minmax(0,1fr) 18px;
  color: #536058;
  font-size: 13px;
}
.project-tree-file:hover { background: #edf2ec; color: var(--pc-text); }
.project-tree-file.active { background: #dfeadb; color: #1f4428; box-shadow: inset 3px 0 0 #4b7d34; }
.project-tree-file i { color: #397126; font-size: 10px; }
.project-file-icon { width: 30px; height: 27px; background: #e8ede7; color: #536058; font-size: 9px; }
.project-file-icon.type-html,
.project-file-icon.type-htm { color: #a94725; }
.project-file-icon.type-css,
.project-file-icon.type-scss { color: #245fa4; }
.project-file-icon.type-js,
.project-file-icon.type-mjs,
.project-file-icon.type-ts { color: #7a5b00; }
.project-file-icon.type-json { color: #17613d; }
.project-file-icon.type-svg { color: #773f8f; }
.project-sidebar-footer { border-top-color: var(--pc-border); }
.project-sidebar-footer button,
.project-sidebar-footer a { min-height: 42px; height: auto; color: #526058; font-size: 12px; }
.project-sidebar-footer button:hover,
.project-sidebar-footer a:hover { color: var(--pc-text); background: #edf2ec; }
.project-sidebar-footer span { min-width: 24px; height: 22px; background: #e5ebe4; font-size: 10px; }
.project-code-editor-column { grid-template-rows: 46px 40px minmax(0,1fr); background: #fff; }
.project-editor-tabs { background: #f2f5f1; border-bottom-color: var(--pc-border); }
.project-editor-tab { min-height: 42px; height: auto; background: #fff; border-color: var(--pc-border); border-bottom-color: #fff; }
.project-editor-tab strong { color: var(--pc-text); font-size: 13px; }
.project-editor-tab i { color: #397126; font-size: 10px; }
.project-editor-breadcrumb { min-height: 40px; height: auto; color: #657269; border-bottom-color: var(--pc-border); font-size: 11px; }
.project-editor-breadcrumb button { min-height: 36px; color: #9a2c25; font-size: 12px; }
.project-source-form { grid-template-rows: minmax(0,1fr) minmax(64px,auto); }
.project-source-area { grid-template-columns: 58px minmax(0,1fr); background: #fff; }
.project-source-area pre {
  padding-top: 18px;
  background: #f1f4f0;
  color: #7a867d;
  border-right-color: #dce3dc;
  font: 12px/1.7 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
}
.project-source-area textarea {
  background: #fff;
  color: #172019;
  padding: 18px 22px 48px;
  font: 14px/1.7 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;
  caret-color: #315f45;
}
.project-source-footer { min-height: 64px; background: #f7f9f6; border-top-color: var(--pc-border); }
.project-source-footer > div,
.project-source-footer label span { color: #5b685f; font-size: 12px; }
.project-source-footer input { width: min(360px, 42vw); min-height: 42px; height: auto; background: #fff; color: var(--pc-text); border-color: #c4cec4; font-size: 13px; }
.project-binary-file > span,
.project-editor-empty > span { border-color: #cbd5cb; color: #5b685f; }
.project-binary-file h1,
.project-editor-empty h1 { color: var(--pc-text); font-size: 24px; }
.project-binary-file p,
.project-editor-empty p { color: var(--pc-muted); font-size: 14px; }
.project-editor-notice { padding: 13px 16px; border-color: #8cb59c; background: #e7f3eb; color: #185b36; font-size: 13px; box-shadow: 0 16px 45px rgba(17,24,19,.14); }
.project-editor-notice.error { border-color: #d6aaa7; background: #fff0ef; color: #8c2924; }

.project-dialog {
  border-color: #cbd5cb;
  background: #fff;
  color: var(--pc-text);
  box-shadow: 0 28px 90px rgba(17,24,19,.22);
}
.project-dialog::backdrop { background: rgba(22,30,24,.48); }
.project-dialog header,
.project-dialog footer { border-color: #dce3dc; }
.project-dialog header small { color: #647168; font-size: 11px; }
.project-dialog header h2 { font-size: 21px; }
.project-dialog header > button { width: 40px; height: 40px; background: #f5f7f4; border-color: #cbd5cb; color: #445149; }
.project-dialog footer button { min-height: 42px; height: auto; background: #f6f8f5; color: #39463d; border-color: #cbd5cb; font-size: 13px; }
.project-dialog footer button.primary { background: #315f45; border-color: #315f45; color: #fff; }
.project-checkbox input { width: 20px !important; height: 20px !important; min-height: 20px; }
.project-history-list > p { color: #647168; font-size: 14px; }
.project-history-list article { border-color: #e0e6df; }
.project-history-list strong { font-size: 14px; }
.project-history-list small { color: #647168; font-size: 12px; }
.project-history-list p { color: #4f5c54; font-size: 13px; }

/* Legacy workspace and page-builder screens receive the same light system. */
.workspace-app,
.pb-app,
.developer-page {
  --ws-bg: #f2f5f1;
  --ws-panel: #ffffff;
  --ws-panel-2: #f6f8f5;
  --ws-line: #d0d9d0;
  --ws-text: #172019;
  --ws-muted: #5d6a61;
  --ws-accent: #477a31;
  background: var(--ws-bg);
  color: var(--ws-text);
  color-scheme: light;
}
.workspace-toolbar,
.pb-toolbar { background: #fbfcfa; border-color: var(--ws-line); color: var(--ws-text); }
.workspace-toolbar *,
.pb-toolbar * { font-size: max(12px, 1em); }
.workspace-sidebar,
.workspace-inspector,
.pb-sidebar,
.pb-inspector { background: #f8faf7; color: var(--ws-text); border-color: var(--ws-line); }
.workspace-canvas,
.pb-canvas { background: #e9eee8; }
.workspace-app button,
.workspace-app input,
.workspace-app select,
.pb-app button,
.pb-app input,
.pb-app select { min-height: 40px; font-size: 13px; }

.editor-shell { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.editor-lines { background: #f0f3ef; color: #778279; font-size: 13px; }
.editor-textarea { background: #fff; color: #172019; font-size: 14px; line-height: 1.7; }
.editor-footer { border-top-color: var(--line); }
.editor-footer code { font-size: 12px; }
.editor-footer label span { font-size: 13px; }

@media (max-width: 1100px) {
  .admin-sidebar { width: 252px; }
  .admin-workspace { margin-left: 252px; }
  .project-code-grid { grid-template-columns: 260px minmax(0,1fr); }
}

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .site-footer__grid { gap: 42px; }
  .admin-sidebar { width: min(320px, 88vw); transform: translateX(-102%); }
  .admin-page.admin-menu-open .admin-sidebar,
  .admin-shell.admin-menu-open .admin-sidebar { transform: translateX(0); }
  .admin-workspace { margin-left: 0; }
  .admin-menu-button { display: grid; place-items: center; }
  .admin-content { padding: 24px 18px; }
  .admin-table { font-size: 13px; }
  .project-code-grid { grid-template-columns: 1fr; grid-template-rows: minmax(210px, 34dvh) minmax(0,1fr); }
  .project-file-sidebar { border-right: 0; border-bottom: 1px solid var(--pc-border); }
  .project-code-editor-column { min-height: 60dvh; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header__inner { min-height: 72px; }
  .hero__copy h1,
  .page-hero h1,
  .experiment-header h1,
  .dashboard-hero h1,
  .auth-intro h1 { font-size: clamp(3.1rem, 16vw, 5.3rem); }
  .section-heading h2 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .site-footer__grid p, .site-footer__grid a:not(.brand) { font-size: 15px; }
  .project-global-bar { min-height: 62px; }
  .project-admin-content { min-height: calc(100dvh - 62px); }
  .project-code-toolbar { min-height: 66px; }
  .project-code-actions > a,
  .project-code-actions > button { min-height: 44px; white-space: nowrap; }
  .project-source-area { grid-template-columns: 46px minmax(0,1fr); }
  .project-source-area textarea { padding: 16px 14px 44px; font-size: 13px; }
  .project-source-area pre { font-size: 11px; }
  .project-source-footer { padding: 10px 12px; }
  .project-source-footer input { width: min(100%, 360px); }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 24px, var(--shell)); }
  .admin-content { padding-inline: 14px; }
  .project-dashboard-shell,
  .project-subpage-shell,
  .project-form-shell { width: calc(100% - 20px); }
  .project-code-grid { grid-template-rows: minmax(190px, 31dvh) minmax(0,1fr); }
  .project-file-search { margin-inline: 8px; }
}
/* v3.2 light-theme completeness pass */
.hero__visual {
  background: #edf2ec;
  color: var(--ink);
  border: 1px solid var(--line);
}
.visual-grid {
  background-image:
    linear-gradient(rgba(17,24,19,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,19,.07) 1px, transparent 1px);
}
.visual-label,
.hero-note,
.hero-tick { color: #506057; fill: #506057; }
.hero-axis { stroke: #819087; }
.hero-curve { stroke: #315f45; }
.hero-guide { stroke: #90a096; }
.hero-points circle { stroke: #fff; }
.visual-result { background: #fff; border: 1px solid var(--line); }
.debug-box,
.platform-notice { background: #eef3ed; color: var(--ink); border-color: var(--line); }
.code-editor-form textarea,
.code-diff { background: #fff; color: #172019; border-color: var(--line); font-size: 14px; line-height: 1.7; }

.workspace-button,
.workspace-search button,
.workspace-content-search button { background: #fff; color: var(--ws-text); border-color: var(--ws-line); }
.workspace-warning { background: #fff5d9; border-color: #d9ba55; color: #6f4b00; }
.workspace-warning span { color: #745b22; }
.workspace-search input,
.workspace-content-search input,
.workspace-change-note input { background: #fff; color: var(--ws-text); border-color: var(--ws-line); }
.workspace-tree__folder > summary,
.workspace-tree__file { color: #46534b; min-height: 38px; height: auto; font-size: 13px; }
.workspace-tree__folder > summary:hover,
.workspace-tree__file:hover,
.workspace-search-results a:hover { background: #eaf0e9; color: var(--ws-text); }
.workspace-tree__file.active { background: #dfeadb; color: #20432a; }
.workspace-filetype { background: #e6ece5; color: #4b5850; }
.workspace-editor-column,
.workspace-code-area,
.workspace-code-area textarea,
.workspace-preview-column { background: #fff; color: var(--ws-text); }
.workspace-tabs,
.workspace-tab.active,
.workspace-editor-footer { background: #f4f7f3; color: var(--ws-text); }
.workspace-line-numbers { background: #eef2ed; color: #78837a; }
.workspace-code-area textarea { font-size: 14px; line-height: 1.7; }
.workspace-device-switch button.active { background: #dfe7de; color: var(--ws-text); }
.workspace-preview-stage { background: #e5ebe4; }

.pb-shell {
  --pb-border: #d0d9d0;
  --pb-panel: #ffffff;
  --pb-panel-2: #f6f8f5;
  --pb-text: #172019;
  --pb-muted: #5d6a61;
  --pb-accent: #477a31;
  background: #f2f5f1;
  color: var(--pb-text);
  color-scheme: light;
}
.pb-files,
.pb-editor-pane,
.pb-preview-pane { background: #fff; color: var(--pb-text); border-color: var(--pb-border); }
.pb-files__head strong,
.pb-badge,
.pb-revision-list article span { background: #e6ece5; color: #46534b; }
.pb-badge.published { background: #dcebdd; color: #235038; }
.pb-icon-button,
.pb-refresh,
.pb-search input,
.pb-create input,
.pb-create select,
.pb-form-grid input,
.pb-form-grid select,
.pb-form-grid textarea,
.pb-revision-list button { background: #fff; color: var(--pb-text); border-color: var(--pb-border); }
.pb-search input,
.pb-create input,
.pb-create select { min-height: 42px; height: auto; font-size: 13px; }
.pb-create,
.pb-empty,
.pb-code-meta,
.pb-serp-preview,
.pb-revision-list article { background: #f7f9f6; color: var(--pb-text); }
.pb-file { color: #4e5b53; min-height: 42px; font-size: 13px; }
.pb-file:hover { background: #edf2ec; color: var(--pb-text); }
.pb-file.active { background: #dfeadb; color: #20432a; }
.pb-tabs button { min-height: 44px; height: auto; font-size: 12px; color: #5c6961; }
.pb-tabs button.active { color: #23452f; border-bottom-color: #477a31; }
.pb-code-editor,
.pb-code-editor textarea { background: #fff; color: #172019; font-size: 14px; line-height: 1.7; }
.pb-code-editor pre { background: #eef2ed; color: #78837a; font-size: 12px; }
.pb-form-panel,
.pb-history-panel { background: #fff; color: var(--pb-text); }
.pb-preview-pane { background: #f7f9f6; }
.pb-device-switch { background: #edf2ec; }
.pb-device-switch button.active { background: #d9e2d8; color: var(--pb-text); }
.pb-preview-stage { background: #e4eae3; }
.pb-notice { background: #fff; color: var(--pb-text); border-color: var(--pb-border); box-shadow: 0 14px 50px rgba(17,24,19,.16); }

.project-toast { background: #fff; color: var(--pa-text); border-color: var(--pa-border); box-shadow: 0 18px 52px rgba(17,24,19,.15); font-size: 13px; }
.project-action-card__icon,
.project-list-icon { background: #e8eee7; color: #3e6246; }
.project-action-card__icon.green { background: #e1f0e7; color: #23613d; }
.project-action-card__icon.yellow { background: #fff2cf; color: #795900; }
.project-list-section > header span { background: #e8eee7; color: #4c5950; }
.project-list-table,
.project-create-form,
.project-create-files,
.project-event-panel { background: #fff; color: var(--pa-text); border-color: var(--pa-border); }
.project-list-row--head,
.project-event-row.head { background: #f2f5f1; color: var(--pa-muted); }
.project-create-files pre { background: #f1f4f0; color: #4a574f; border-color: var(--pa-border); font-size: 13px; }
.project-analytics-metrics article { background: #fff; color: var(--pa-text); border-color: var(--pa-border); }
.project-row-actions a,
.project-row-actions button { background: #fff; color: #3f4b43; border-color: var(--pa-border); }
.project-status { background: #e0f0e6; color: #20593a; }
.project-status.draft { background: #fff1c7; color: #745500; }
.project-status.archived { background: #eee7ef; color: #624963; }

@media (max-width: 760px) {
  .workspace-grid,
  .pb-shell { min-width: 0; }
  .workspace-code-area textarea,
  .pb-code-editor textarea { font-size: 13px; }
}

/* END GEOLAB v3.2 GLOBAL LIGHT OVERRIDES */


/* =========================================================
   GEOLAB v3.4 — RESEARCH EXPERIMENT WORKSPACE
   Wide desktop workspace, progressive mobile sample editor.
   ========================================================= */
.experiment-page {
  min-width: 320px;
  background:
    linear-gradient(rgba(40,87,66,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40,87,66,.025) 1px, transparent 1px),
    #f4f7f1;
  background-size: 48px 48px;
}

.experiment-page .site-footer { display: none; }
.experiment-wide { width: min(1880px, calc(100% - clamp(28px, 3.4vw, 72px))); margin-inline: auto; }
.experiment-main { min-height: 100svh; }

.experiment-topbar {
  position: sticky;
  top: 0;
  z-index: 140;
  border-bottom: 1px solid rgba(148,155,144,.55);
  background: rgba(250,252,248,.9);
  backdrop-filter: blur(18px);
}
.experiment-topbar__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.experiment-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 850; letter-spacing: -.04em; }
.experiment-brand__mark { position: relative; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--ink); }
.experiment-brand__mark::before { content: ""; position: absolute; inset: 8px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; }
.experiment-brand__mark span { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.experiment-topbar__nav { display: flex; align-items: center; gap: 24px; }
.experiment-topbar__nav a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.experiment-topbar__nav a:hover { color: var(--ink); }

.experiment-page .experiment-header {
  display: grid;
  grid-template-columns: minmax(460px, .82fr) minmax(560px, 1.18fr);
  gap: clamp(50px, 7vw, 132px);
  align-items: end;
  padding-block: clamp(46px, 5vw, 86px) clamp(34px, 4vw, 58px);
}
.experiment-header__title { min-width: 0; }
.experiment-back { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 38px; color: var(--muted); font: 650 12px var(--font-mono); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.experiment-back svg { width: 19px; height: 19px; }
.experiment-back:hover { color: var(--ink); }
.experiment-page .experiment-header h1 { max-width: 9ch; margin: 0; font-size: clamp(58px, 6.5vw, 108px); line-height: .88; letter-spacing: -.075em; text-wrap: balance; }
.experiment-page .experiment-header__intro > p { max-width: 65ch; margin: 0 0 30px; color: var(--ink-soft); font-size: clamp(17px, 1.2vw, 21px); line-height: 1.65; }
.experiment-page .constant-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(255,254,249,.72); }
.experiment-page .constant-strip span { display: grid; min-width: 0; gap: 4px; padding: 16px 18px; border-right: 1px solid var(--line); color: var(--muted); }
.experiment-page .constant-strip span:first-child { padding-left: 18px; }
.experiment-page .constant-strip span:last-child { border-right: 0; }
.experiment-page .constant-strip b { color: var(--ink); font: 750 clamp(14px, 1vw, 17px) var(--font-mono); white-space: nowrap; }
.experiment-page .constant-strip small { overflow: hidden; font: 600 9px var(--font-mono); letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }

.experiment-page .experiment-shell { padding-bottom: 110px; }
.experiment-page .experiment-toolbar {
  position: sticky;
  top: 82px;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148,155,144,.58);
  border-radius: 16px;
  background: rgba(250,252,248,.94);
  box-shadow: 0 12px 35px rgba(20,24,20,.08);
  backdrop-filter: blur(20px);
}
.experiment-page .experiment-meta-fields { display: grid; grid-template-columns: minmax(250px, 1.35fr) 170px minmax(220px, 1fr); gap: 10px; }
.experiment-page .experiment-meta-fields label span { font-size: 10px; }
.experiment-page .experiment-meta-fields input { height: 50px; border-radius: 9px; padding-inline: 14px; background: #fff; font-size: 15px; }
.experiment-page .toolbar-actions { display: flex; align-items: end; gap: 8px; }
.experiment-page .toolbar-actions .button { min-height: 50px; padding-inline: 17px; white-space: nowrap; }
.experiment-page .toolbar-actions .button svg { width: 19px; height: 19px; flex: 0 0 19px; }

.experiment-page .experiment-grid { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(430px, .74fr); gap: 18px; margin-top: 18px; align-items: start; }
.experiment-page .data-panel,
.experiment-page .analysis-panel,
.experiment-page .notes-panel { border: 1px solid rgba(148,155,144,.58); border-radius: 16px; overflow: hidden; background: rgba(255,254,249,.94); box-shadow: 0 14px 42px rgba(20,24,20,.05); }
.experiment-page .panel-heading { min-height: 104px; padding: 24px 26px; background: rgba(255,254,249,.88); }
.experiment-page .panel-heading h2 { font-size: clamp(23px, 1.6vw, 29px); }
.panel-heading__hint { max-width: 62ch; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.experiment-page .sample-counter strong { font-size: 29px; }
.experiment-page .sample-counter span { font-size: 10px; }

.experiment-page .matrix-wrap { max-height: min(760px, calc(100svh - 258px)); min-height: 570px; overscroll-behavior: contain; background: #fffef9; }
.experiment-page .experiment-matrix { font-size: 14px; }
.experiment-page .experiment-matrix th,
.experiment-page .experiment-matrix td { min-width: 164px; height: 64px; padding: 9px 11px; }
.experiment-page .experiment-matrix thead th { height: 58px; font-size: 12px; background: #e9eee7; }
.experiment-page .experiment-matrix th.row-label { min-width: 280px; max-width: 280px; padding-inline: 16px; font-size: 13px; }
.experiment-page .experiment-matrix .unit { margin-top: 4px; font-size: 10px; }
.experiment-page .experiment-matrix .section-row th,
.experiment-page .experiment-matrix .section-row td { height: 45px; }
.experiment-page .sample-heading button { width: 30px; height: 30px; font-size: 17px; }
.experiment-page .matrix-input { min-height: 44px; padding: 7px 10px; border-radius: 7px; font-size: 14px; }
.experiment-page .matrix-result { font-size: 14px; }
.experiment-page .cell-error { max-width: 140px; font-size: 10px; }
.experiment-page .data-status { min-height: 62px; padding-inline: 22px; }
.experiment-page .data-status p { font-size: 14px; }

.experiment-page .analysis-panel { position: sticky; top: 172px; }
.experiment-page .icon-button svg { width: 21px; height: 21px; }
.experiment-page .chart-frame { min-height: 470px; aspect-ratio: 1.12 / 1; background: #fcfcf8; }
.experiment-page .chart-tick { font-size: 11px; }
.experiment-page .chart-axis-title { font-size: 12px; }
.experiment-page .analysis-results article { min-height: 126px; padding: 20px 22px; }
.experiment-page .analysis-results span { font-size: 10px; line-height: 1.4; }
.experiment-page .analysis-results strong { font-size: 32px; }
.experiment-page .equation-box { padding: 21px 22px 24px; }
.experiment-page .equation-box code { font-size: 13px; }
.experiment-page .accessible-points { max-height: none; padding: 0; border-top: 1px solid var(--line); overflow: visible; }
.experiment-page .accessible-points summary { min-height: 52px; display: flex; align-items: center; padding: 0 22px; cursor: pointer; font-size: 13px; font-weight: 750; list-style: none; }
.experiment-page .accessible-points summary::-webkit-details-marker { display: none; }
.experiment-page .accessible-points summary::after { content: "+"; margin-left: auto; font: 500 21px var(--font-mono); }
.experiment-page .accessible-points[open] summary::after { content: "−"; }
.accessible-points__scroll { max-height: 220px; overflow: auto; padding: 0 20px 18px; }
.experiment-page .accessible-points table { font-size: 11px; }

.experiment-page .notes-panel { display: grid; grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr); gap: 34px; margin-top: 18px; padding: 25px 26px; }
.experiment-page .notes-panel label span { font-size: 15px; }
.experiment-page .notes-panel label small { max-width: 35ch; font-size: 12px; line-height: 1.55; }
.experiment-page .notes-panel textarea { min-height: 130px; padding: 15px; border-radius: 10px; background: #fff; font-size: 15px; }
.experiment-page .form-message:not(:empty) { border-radius: 12px; }

@media (max-width: 1440px) {
  .experiment-page .experiment-grid { grid-template-columns: minmax(0, 1.48fr) minmax(400px, .72fr); }
  .experiment-page .experiment-matrix th,
  .experiment-page .experiment-matrix td { min-width: 150px; }
  .experiment-page .experiment-matrix th.row-label { min-width: 245px; max-width: 245px; }
}

@media (max-width: 1280px) {
  .experiment-page .experiment-header { grid-template-columns: 1fr; gap: 34px; }
  .experiment-page .experiment-header h1 { max-width: 12ch; }
  .experiment-page .experiment-grid { grid-template-columns: 1fr; }
  .experiment-page .analysis-panel { position: static; }
  .experiment-page .chart-frame { min-height: 520px; aspect-ratio: 1.55 / 1; }
}

@media (max-width: 960px) {
  .experiment-page .experiment-toolbar { position: relative; top: auto; grid-template-columns: 1fr; }
  .experiment-page .experiment-meta-fields { grid-template-columns: 1fr 1fr; }
  .experiment-page .experiment-meta-fields label:first-child { grid-column: 1 / -1; }
  .experiment-page .toolbar-actions { justify-content: flex-end; }
  .experiment-page .chart-frame { min-height: 430px; aspect-ratio: 1.25 / 1; }
}

@media (max-width: 700px) {
  .experiment-wide { width: min(100% - 24px, 1880px); }
  .experiment-topbar__inner { min-height: 62px; }
  .experiment-topbar__nav a:first-child { display: none; }
  .experiment-topbar__nav { gap: 0; }
  .experiment-topbar__nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .experiment-page .experiment-header { display: block; padding-block: 28px 28px; }
  .experiment-back { margin-bottom: 28px; }
  .experiment-page .experiment-header h1 { max-width: 10ch; font-size: clamp(45px, 14vw, 64px); line-height: .92; }
  .experiment-page .experiment-header__intro { margin-top: 26px; }
  .experiment-page .experiment-header__intro > p { margin-bottom: 22px; font-size: 16px; line-height: 1.62; }
  .experiment-page .constant-strip { grid-template-columns: repeat(5, minmax(116px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; }
  .experiment-page .constant-strip span { scroll-snap-align: start; padding: 14px; }
  .experiment-page .constant-strip span:first-child { padding-left: 14px; }
  .experiment-page .experiment-shell { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .experiment-page .experiment-toolbar { padding: 12px; border-radius: 14px; }
  .experiment-page .experiment-meta-fields { grid-template-columns: 1fr 1fr; }
  .experiment-page .experiment-meta-fields label:first-child,
  .experiment-page .experiment-meta-fields label:last-child { grid-column: 1 / -1; }
  .experiment-page .experiment-meta-fields input { height: 48px; font-size: 16px; }
  .experiment-page .toolbar-actions {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 220;
    display: grid;
    grid-template-columns: .9fr 1fr 1fr;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(148,155,144,.7);
    border-radius: 16px;
    background: rgba(250,252,248,.96);
    box-shadow: 0 18px 50px rgba(20,24,20,.2);
    backdrop-filter: blur(20px);
  }
  .experiment-page .toolbar-actions .button { min-height: 50px; width: 100%; padding-inline: 8px; gap: 6px; font-size: 12px; }
  .experiment-page .toolbar-actions .button svg { width: 17px; height: 17px; }
  .experiment-page .experiment-grid { margin-top: 14px; }
  .experiment-page .data-panel,
  .experiment-page .analysis-panel,
  .experiment-page .notes-panel { border-radius: 14px; }
  .experiment-page .panel-heading { min-height: 0; padding: 19px 18px; align-items: flex-start; }
  .experiment-page .panel-heading h2 { font-size: 23px; }
  .panel-heading__hint { font-size: 11px; }
  .experiment-page .matrix-wrap { display: none; }
  .experiment-page .mobile-sample-editor { display: block; }
  .experiment-page .mobile-sample-nav {
    position: sticky;
    top: 62px;
    z-index: 35;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(250,252,248,.96);
    backdrop-filter: blur(16px);
  }
  .experiment-page .mobile-sample-nav button,
  .experiment-page .mobile-sample-nav select { min-height: 48px; }
  .experiment-page .mobile-sample-nav button { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .experiment-page .mobile-sample-nav button svg { width: 22px; height: 22px; }
  .experiment-page .mobile-sample-nav select { min-width: 0; border-radius: 10px; padding-inline: 12px; font-size: 15px; }
  .experiment-page .mobile-sample-card { padding: 14px; gap: 12px; }
  .experiment-page .mobile-section-title { padding: 11px 12px; border-radius: 9px; background: var(--green-pale); color: var(--green); font-size: 10px; }
  .experiment-page .mobile-field { grid-template-columns: minmax(0, 1fr) minmax(110px, 38%); gap: 10px; min-height: 62px; padding: 9px 0 12px; }
  .experiment-page .mobile-field label { min-width: 0; font-size: 13px; line-height: 1.35; }
  .experiment-page .mobile-field label small { margin-top: 4px; font-size: 9px; }
  .experiment-page .mobile-field input { min-height: 48px; border-radius: 8px; padding-inline: 10px; font-size: 16px; }
  .experiment-page .mobile-field output { font-size: 14px; overflow-wrap: anywhere; }
  .experiment-page .mobile-remove { min-height: 48px; border-radius: 10px; }
  .experiment-page .data-status { min-height: 58px; padding-inline: 16px; }
  .experiment-page .chart-frame { min-height: 340px; aspect-ratio: 1 / 1; }
  .experiment-page .analysis-results article { min-height: 106px; padding: 16px; }
  .experiment-page .analysis-results strong { font-size: 25px; }
  .experiment-page .equation-box { padding: 18px; }
  .experiment-page .accessible-points summary { padding-inline: 18px; }
  .experiment-page .notes-panel { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px; }
  .experiment-page .notes-panel textarea { min-height: 150px; font-size: 16px; }
}

@media (max-width: 390px) {
  .experiment-page .toolbar-actions .button { flex-direction: column; gap: 3px; min-height: 54px; font-size: 10px; line-height: 1.05; }
  .experiment-page .toolbar-actions .button svg { width: 16px; height: 16px; }
  .experiment-page .analysis-results { grid-template-columns: 1fr; }
  .experiment-page .analysis-results article + article { border-left: 0; border-top: 1px solid var(--line); }
  .experiment-page .mobile-field { grid-template-columns: minmax(0, 1fr) 106px; }
}

/* =========================================================
   GEOLAB v3.5 — VALIDATED STUDENT EXPERIMENT WORKSPACE
   Compact scientific workspace, responsive validation flow.
   ========================================================= */
.experiment-page {
  --workspace-border: rgba(112, 124, 113, .42);
  --workspace-surface: rgba(255, 255, 252, .96);
  --workspace-input: #fff5cf;
  --workspace-result: #e8f2ea;
  --workspace-error: #fff0ee;
  --workspace-warning: #fff5df;
  background-size: 44px 44px;
}

.experiment-page .experiment-overview {
  display: grid;
  grid-template-columns: minmax(420px, .82fr) minmax(600px, 1.18fr);
  gap: clamp(42px, 6vw, 108px);
  align-items: end;
  padding-block: 38px 28px;
}
.experiment-page .experiment-overview__copy { min-width: 0; }
.experiment-page .experiment-overview__copy .experiment-back { margin-bottom: 24px; }
.experiment-page .experiment-overview h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(42px, 4.3vw, 70px);
  line-height: .96;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.experiment-page .experiment-overview__copy > p:last-child {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.65;
}
.experiment-page .experiment-overview__side { display: grid; gap: 12px; min-width: 0; }
.experiment-page .constant-strip { border-color: var(--workspace-border); }
.experiment-page .workspace-readiness {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: rgba(255,255,252,.72);
}
.experiment-page .workspace-readiness article {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--workspace-border);
}
.experiment-page .workspace-readiness article:last-child { border-right: 0; }
.experiment-page .workspace-readiness span {
  display: block;
  color: var(--muted);
  font: 600 9px var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.experiment-page .workspace-readiness strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  font: 700 13px var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.experiment-page .workspace-readiness strong[data-state="valid"] { color: var(--success); }
.experiment-page .workspace-readiness strong[data-state="warning"] { color: #8c5c00; }

.experiment-page .experiment-shell { padding-bottom: 90px; }
.experiment-page .experiment-toolbar {
  top: 78px;
  padding: 12px;
  border-color: var(--workspace-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20,24,20,.07);
}
.experiment-page .experiment-meta-fields { grid-template-columns: minmax(240px, 1.3fr) 158px minmax(210px, 1fr); }
.experiment-page .experiment-meta-fields input { height: 48px; }
.experiment-page .toolbar-actions .button { min-height: 48px; }

.experiment-page .workspace-progress {
  display: grid;
  grid-template-columns: minmax(280px, auto) minmax(180px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: rgba(255,255,252,.82);
}
.experiment-page .workspace-progress__copy { display: grid; gap: 1px; }
.experiment-page .workspace-progress__copy strong { font-size: 13px; }
.experiment-page .workspace-progress__copy span { color: var(--muted); font-size: 11px; }
.experiment-page .workspace-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde2db;
}
.experiment-page .workspace-progress__track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .25s ease;
}
.experiment-page .workspace-progress__action,
.experiment-page .validation-summary button {
  min-height: 36px;
  border: 1px solid #dca69f;
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.experiment-page .experiment-grid {
  grid-template-columns: minmax(0, 1.72fr) minmax(390px, .68fr);
  gap: 16px;
  margin-top: 14px;
}
.experiment-page .data-panel,
.experiment-page .analysis-panel,
.experiment-page .notes-panel {
  border-color: var(--workspace-border);
  border-radius: 14px;
  background: var(--workspace-surface);
  box-shadow: 0 10px 34px rgba(20,24,20,.045);
}
.experiment-page .panel-heading { min-height: 96px; padding: 20px 22px; }
.experiment-page .panel-heading__tools { display: flex; align-items: center; gap: 18px; }
.experiment-page .input-legend { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.experiment-page .input-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 600 9px var(--font-mono);
  text-transform: uppercase;
}
.experiment-page .input-legend span::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--line-strong); border-radius: 3px; }
.experiment-page .input-legend .input::before { background: var(--workspace-input); border-color: #d6b84d; }
.experiment-page .input-legend .result::before { background: var(--workspace-result); border-color: #a9c4ae; }

.experiment-page .validation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2aaa3;
  background: var(--workspace-error);
}
.experiment-page .validation-summary[hidden] { display: none; }
.experiment-page .validation-summary strong { color: var(--danger); font-size: 13px; }
.experiment-page .validation-summary p { margin: 2px 0 0; color: #7d423d; font-size: 11px; }

.experiment-page .matrix-wrap {
  max-height: min(740px, calc(100svh - 250px));
  min-height: 520px;
}
.experiment-page .experiment-matrix { font-size: 12px; }
.experiment-page .experiment-matrix th,
.experiment-page .experiment-matrix td { min-width: 136px; height: 58px; padding: 7px 8px; }
.experiment-page .experiment-matrix thead th { height: 55px; font-size: 11px; }
.experiment-page .experiment-matrix th.row-label { min-width: 224px; max-width: 224px; padding-inline: 13px; font-size: 12px; }
.experiment-page .experiment-matrix th.row-label > span:first-child { display: block; }
.experiment-page .experiment-matrix .unit {
  display: block;
  max-width: 205px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.experiment-page .experiment-matrix .section-row th,
.experiment-page .experiment-matrix .section-row td { height: 39px; }
.experiment-page .sample-heading { gap: 7px; }
.experiment-page .sample-heading__copy { display: grid; gap: 1px; text-align: left; }
.experiment-page .sample-heading__copy b { font: 700 11px var(--font-mono); }
.experiment-page .sample-heading__copy small { color: var(--muted); font: 600 8px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.experiment-page [data-sample-heading][data-state="complete"] .sample-heading__copy small { color: var(--success); }
.experiment-page [data-sample-heading][data-state="incomplete"] .sample-heading__copy small { color: #8c5c00; }
.experiment-page [data-sample-heading][data-state="invalid"] .sample-heading__copy small { color: var(--danger); }
.experiment-page .sample-heading button { width: 27px; height: 27px; }
.experiment-page .matrix-input {
  min-height: 42px;
  padding: 6px 9px;
  border-color: #d5b94f;
  border-radius: 7px;
  background: var(--workspace-input);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.experiment-page .matrix-input.is-valid { border-color: #aab9a9; }
.experiment-page .matrix-input[aria-invalid="true"] { border-color: #c8584e; background: var(--workspace-error); }
.experiment-page .result-row td { background: rgba(232,242,234,.42); }
.experiment-page .result-row.final td { background: rgba(220,233,223,.78); }
.experiment-page .matrix-result { font-size: 13px; font-variant-numeric: tabular-nums; }
.experiment-page .matrix-result.warning { color: #8c5c00; text-decoration: underline dotted; text-underline-offset: 3px; }
.experiment-page .cell-error { max-width: 122px; font-size: 9px; }
.experiment-page .data-status { min-height: 56px; padding-inline: 18px; }
.experiment-page .data-status.error .status-dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(169,47,39,.13); }

.experiment-page .analysis-panel { top: 160px; }
.experiment-page .analysis-heading-actions { display: flex; align-items: center; gap: 9px; }
.experiment-page .analysis-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  font: 650 9px var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.experiment-page .analysis-state.valid { border-color: #8fc29e; background: #edf8f0; color: var(--success); }
.experiment-page .analysis-state.warning { border-color: #dfc07a; background: var(--workspace-warning); color: #805500; }
.experiment-page .chart-frame { min-height: 420px; aspect-ratio: 1.15 / 1; }
.experiment-page .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 600 9px var(--font-mono);
  text-transform: uppercase;
}
.experiment-page .chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.experiment-page .chart-legend span::before { content: ""; width: 16px; height: 2px; background: var(--line-strong); }
.experiment-page .chart-legend .measured::before { height: 8px; width: 8px; border-radius: 50%; background: var(--orange); }
.experiment-page .chart-legend .curve::before { background: var(--green); }
.experiment-page .chart-legend .optimum::before { height: 8px; width: 8px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.experiment-page .analysis-results { grid-template-columns: repeat(3, 1fr); }
.experiment-page .analysis-results article { min-width: 0; min-height: 112px; padding: 16px 17px; }
.experiment-page .analysis-results article + article { border-left: 1px solid var(--line); }
.experiment-page .analysis-results strong { overflow: hidden; font-size: 25px; text-overflow: ellipsis; white-space: nowrap; }
.experiment-page .analysis-results small { font-size: 9px; }
.experiment-page .equation-box { padding: 18px 19px 20px; }
.experiment-page .accessible-points summary { min-height: 48px; padding-inline: 19px; }

.experiment-page .notes-panel { margin-top: 14px; padding: 22px; }

.experiment-page .mobile-sample-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 8px;
}
.experiment-page .mobile-sample-summary div { display: grid; }
.experiment-page .mobile-sample-summary div span { color: var(--muted); font: 600 9px var(--font-mono); text-transform: uppercase; }
.experiment-page .mobile-sample-summary div strong { font-size: 18px; }
.experiment-page .mobile-sample-summary > span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font: 700 9px var(--font-mono);
  text-transform: uppercase;
}
.experiment-page .mobile-sample-summary > span[data-state="complete"] { border-color: #8fc29e; color: var(--success); }
.experiment-page .mobile-sample-summary > span[data-state="incomplete"] { border-color: #dfc07a; color: #805500; }
.experiment-page .mobile-sample-summary > span[data-state="invalid"] { border-color: #dfa49e; color: var(--danger); }
.experiment-page .mobile-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.experiment-page .mobile-section summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  cursor: pointer;
  list-style: none;
  background: #eef3ec;
  color: var(--green);
  font: 700 10px var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.experiment-page .mobile-section summary::-webkit-details-marker { display: none; }
.experiment-page .mobile-section summary::after { content: "+"; order: 3; font-size: 18px; }
.experiment-page .mobile-section[open] summary::after { content: "−"; }
.experiment-page .mobile-section summary small { margin-left: auto; color: var(--muted); font-size: 9px; }
.experiment-page .mobile-section summary small[data-state="complete"] { color: var(--success); }
.experiment-page .mobile-section summary small[data-state="incomplete"] { color: #805500; }
.experiment-page .mobile-section-fields { padding: 4px 13px 8px; }

@media (max-width: 1520px) {
  .experiment-page .experiment-grid { grid-template-columns: minmax(0, 1.58fr) minmax(370px, .72fr); }
  .experiment-page .experiment-matrix th,
  .experiment-page .experiment-matrix td { min-width: 128px; }
  .experiment-page .experiment-matrix th.row-label { min-width: 208px; max-width: 208px; }
}

@media (max-width: 1280px) {
  .experiment-page .experiment-overview { grid-template-columns: 1fr; gap: 25px; }
  .experiment-page .experiment-overview__copy > p:last-child { max-width: 76ch; }
  .experiment-page .experiment-grid { grid-template-columns: 1fr; }
  .experiment-page .analysis-panel { position: static; }
  .experiment-page .chart-frame { min-height: 430px; aspect-ratio: 1.65 / 1; }
}

@media (max-width: 960px) {
  .experiment-page .experiment-overview { padding-top: 30px; }
  .experiment-page .experiment-toolbar { position: relative; top: auto; }
  .experiment-page .workspace-progress { grid-template-columns: 1fr auto; }
  .experiment-page .workspace-progress__track { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 700px) {
  .experiment-page .experiment-overview { display: block; padding-block: 24px 18px; }
  .experiment-page .experiment-overview__copy .experiment-back { margin-bottom: 20px; }
  .experiment-page .experiment-overview h1 { font-size: clamp(38px, 12vw, 53px); }
  .experiment-page .experiment-overview__copy > p:last-child { margin-top: 15px; font-size: 15px; }
  .experiment-page .experiment-overview__side { margin-top: 20px; }
  .experiment-page .constant-strip { grid-template-columns: repeat(5, minmax(108px, 1fr)); }
  .experiment-page .workspace-readiness { grid-template-columns: repeat(3, minmax(126px, 1fr)); overflow-x: auto; }
  .experiment-page .workspace-readiness article { min-width: 126px; }
  .experiment-page .experiment-shell { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .experiment-page .experiment-toolbar { padding: 10px; }
  .experiment-page .workspace-progress {
    grid-template-columns: 1fr auto;
    gap: 9px 12px;
    padding: 10px 12px;
  }
  .experiment-page .workspace-progress__copy span { line-height: 1.35; }
  .experiment-page .workspace-progress__track { grid-column: 1 / -1; }
  .experiment-page .workspace-progress__action { padding-inline: 9px; }
  .experiment-page .panel-heading { padding: 17px 16px; }
  .experiment-page .panel-heading__tools { display: grid; justify-items: end; gap: 7px; }
  .experiment-page .input-legend { display: none; }
  .experiment-page .validation-summary { align-items: flex-start; padding: 12px 14px; }
  .experiment-page .validation-summary p { line-height: 1.4; }
  .experiment-page .validation-summary button { flex: 0 0 auto; padding-inline: 9px; }
  .experiment-page .mobile-sample-nav { top: 62px; }
  .experiment-page .mobile-sample-card { display: grid; padding: 12px; gap: 10px; }
  .experiment-page .mobile-section-title { display: none; }
  .experiment-page .mobile-field { grid-template-columns: minmax(0, 1fr) minmax(118px, 42%); min-height: 64px; }
  .experiment-page .mobile-field label small { max-width: 28ch; line-height: 1.25; }
  .experiment-page .chart-frame { min-height: 330px; aspect-ratio: 1 / 1; }
  .experiment-page .chart-legend { gap: 9px 12px; padding-inline: 15px; }
  .experiment-page .analysis-results { grid-template-columns: 1fr 1fr; }
  .experiment-page .analysis-results article:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; min-height: 88px; }
  .experiment-page .analysis-results strong { font-size: 24px; }
  .experiment-page .notes-panel { padding: 18px 16px; }
}

@media (max-width: 390px) {
  .experiment-page .workspace-progress { grid-template-columns: 1fr; }
  .experiment-page .workspace-progress__action { width: 100%; }
  .experiment-page .workspace-progress__track { grid-column: 1; }
  .experiment-page .validation-summary { display: grid; }
  .experiment-page .validation-summary button { width: 100%; }
  .experiment-page .mobile-field { grid-template-columns: minmax(0, 1fr) 112px; }
  .experiment-page .analysis-heading-actions .analysis-state { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .experiment-page .workspace-progress__track > span { transition: none; }
}

/* v3.5 responsive containment and state visibility fixes */
.experiment-page .chart-empty[hidden],
.experiment-page .validation-summary[hidden] { display: none !important; }
.experiment-page .experiment-toolbar,
.experiment-page .experiment-meta-fields,
.experiment-page .experiment-meta-fields label { min-width: 0; }
.experiment-page .experiment-meta-fields input { width: 100%; min-width: 0; }

@media (max-width: 960px) {
  .experiment-page .experiment-meta-fields {
    grid-template-columns: minmax(0, 1fr) minmax(150px, .42fr);
  }
  .experiment-page .experiment-meta-fields label:first-child { grid-column: 1 / -1; }
  .experiment-page .experiment-meta-fields label:last-child { grid-column: 1; }
}

@media (max-width: 700px) {
  .experiment-page { overflow-x: clip; }
  .experiment-page .experiment-meta-fields { grid-template-columns: minmax(0, 1fr); }
  .experiment-page .experiment-meta-fields label,
  .experiment-page .experiment-meta-fields label:first-child,
  .experiment-page .experiment-meta-fields label:last-child { grid-column: 1; }
}

@media (max-width: 700px) {
  .experiment-page .workspace-readiness {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .experiment-page .workspace-readiness article { min-width: 0; padding: 10px 9px; }
  .experiment-page .workspace-readiness strong {
    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .experiment-page .toolbar-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .experiment-page .toolbar-actions .button.primary { grid-column: 1 / -1; }
}

/* GeoLab v3.9 — centralized navigation, password visibility and user activity */
.nav-account-group {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
  padding-left: 2px;
}
.nav-user {
  display: grid;
  line-height: 1.15;
  text-align: right;
  text-decoration: none;
}
.nav-user span { font-size: 13px; font-weight: 800; }
.nav-user small { color: var(--muted); font-size: 11px; font-weight: 600; }
.nav-logout {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.nav-logout:hover { border-color: var(--danger); color: var(--danger); background: #fff7f5; }
.primary-nav > a.active { color: var(--green); }

.password-field { position: relative; display: block; }
.password-field > input { width: 100%; padding-right: 52px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.password-toggle:hover { background: var(--paper-2); color: var(--ink); }
.password-toggle svg { width: 21px; height: 21px; }
.password-toggle__hide { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle__show { display: none; }
.password-toggle[aria-pressed="true"] .password-toggle__hide { display: block; }

.user-activity-table { min-width: 1380px; }
.user-activity-table td { white-space: nowrap; }
.user-activity-table td:first-child,
.user-activity-table td:last-child { white-space: normal; }
.user-activity-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 750;
}
.activity-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.activity-pill.online { color: var(--success); border-color: #9bc8aa; background: #eef8f1; }
.activity-pill.online i { background: var(--success); box-shadow: 0 0 0 4px rgba(23,97,61,.12); }
.activity-pill.idle { color: #8a5b12; border-color: #dfc17d; background: #fff8e6; }
.activity-pill.idle i { background: #b97812; }
.activity-pill.offline,
.activity-pill.never { color: var(--muted); }
.activity-migration-alert { margin: 16px; }
.activity-migration-alert p { margin: 6px 0 0; }
.user-actions { min-width: 210px; }

@media (max-width: 920px) {
  .primary-nav > a { min-height: 46px; display: flex; align-items: center; padding: 0 10px; text-align: left; }
  .nav-account-group {
    grid-template-columns: 1fr auto;
    width: 100%;
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding: 12px 10px 0;
  }
  .nav-user { text-align: left; }
  .nav-user span { font-size: 14px; }
  .nav-logout { min-height: 42px; }
}

/* MFA challenge */
.mfa-challenge {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 92px);
}
.mfa-challenge__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px);
}
.mfa-challenge__header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.mfa-challenge__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--green);
  background: var(--green-pale);
  border: 1px solid rgba(40, 87, 66, .16);
}
.mfa-challenge__icon svg { width: 27px; height: 27px; }
.mfa-challenge__icon path,
.mfa-challenge__icon rect { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mfa-challenge__header h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.mfa-challenge__lead { margin: 16px 0 0; max-width: 54ch; color: var(--muted); font-size: 16px; }
.mfa-challenge__notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 30px;
  padding: 14px 16px;
  border: 1px solid #d5dfd7;
  border-radius: 12px;
  background: #f2f7f3;
}
.mfa-challenge__notice-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font: 700 12px var(--font-mono);
}
.mfa-challenge__notice p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.mfa-challenge__form { display: grid; gap: 10px; margin-top: 30px; }
.mfa-challenge__form label { font: 700 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.mfa-challenge__form > p { margin: -2px 0 4px; color: var(--muted); font-size: 13px; }
.mfa-challenge__form input {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 0 18px;
  font: 700 clamp(22px, 3vw, 30px)/1 var(--font-mono);
  letter-spacing: .18em;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.mfa-challenge__form input::placeholder { color: #a7ada5; opacity: .8; }
.mfa-challenge__form input:focus {
  outline: 0;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(40, 87, 66, .12);
}
.mfa-challenge__submit { min-height: 56px; margin-top: 6px; }
.mfa-challenge__submit span { font-size: 18px; transition: transform .18s ease; }
.mfa-challenge__submit:hover span { transform: translateX(3px); }
.mfa-challenge__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.mfa-challenge__footer > span { color: var(--muted); }
.mfa-challenge__support { padding: clamp(8px, 2vw, 22px); }
.mfa-challenge__support h2 { margin: 0; max-width: 12ch; font-size: clamp(30px, 3vw, 44px); line-height: 1.04; letter-spacing: -.05em; }
.mfa-challenge__support > p:not(.eyebrow) { margin: 18px 0 0; max-width: 46ch; color: var(--muted); }
.mfa-challenge__steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; }
.mfa-challenge__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
}
.mfa-challenge__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 54px;
  width: 1px;
  height: 36px;
  background: var(--line);
}
.mfa-challenge__steps li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--muted);
  font: 700 13px var(--font-mono);
}
.mfa-challenge__steps li.is-complete > span { border-color: var(--green); background: var(--green); color: #fff; }
.mfa-challenge__steps li.is-active > span { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 0 0 5px rgba(214, 92, 56, .12); }
.mfa-challenge__steps div { display: grid; gap: 2px; }
.mfa-challenge__steps strong { font-size: 14px; }
.mfa-challenge__steps small { color: var(--muted); font-size: 12px; }
.mfa-challenge__help {
  margin-top: 28px;
  padding: 18px;
  border-left: 3px solid var(--orange);
  background: var(--paper-2);
}
.mfa-challenge__help strong { font-size: 13px; }
.mfa-challenge__help p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .mfa-challenge { grid-template-columns: 1fr; width: min(680px, calc(100% - 36px)); padding-block: 42px 64px; }
  .mfa-challenge__support { order: -1; padding: 0; }
  .mfa-challenge__support > p:not(.eyebrow),
  .mfa-challenge__steps,
  .mfa-challenge__help { display: none; }
  .mfa-challenge__support h2 { max-width: none; font-size: 28px; }
}
@media (max-width: 560px) {
  .mfa-challenge { width: min(100% - 24px, 680px); padding-block: 24px 42px; }
  .mfa-challenge__panel { border-radius: 18px; padding: 22px 18px; }
  .mfa-challenge__header { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
  .mfa-challenge__icon { width: 46px; height: 46px; border-radius: 13px; }
  .mfa-challenge__header h1 { font-size: 32px; }
  .mfa-challenge__lead { font-size: 14px; }
  .mfa-challenge__form input { min-height: 58px; font-size: 24px; letter-spacing: .12em; }
  .mfa-challenge__footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}
