:root {
  color-scheme: light dark;
  --lake-bg: #f6f3ed;
  --lake-panel: rgb(255 255 255 / .58);
  --lake-ink: #090909;
  --lake-muted: #676762;
  --lake-line: rgb(0 0 0 / .10);
  --lake-accent: #ff8418;
  --lake-accent-soft: rgb(255 132 24 / .13);
  --lake-shadow: 0 18px 48px rgb(0 0 0 / .10), inset 0 1px rgb(255 255 255 / .72);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}
html[data-theme="light"] {
  --lake-bg: #f6f3ed;
  --lake-panel: rgb(255 255 255 / .58);
  --lake-ink: #090909;
  --lake-muted: #676762;
  --lake-line: rgb(0 0 0 / .10);
  --lake-accent: #ff8418;
  --lake-accent-soft: rgb(255 132 24 / .13);
  --lake-shadow: 0 18px 48px rgb(0 0 0 / .10), inset 0 1px rgb(255 255 255 / .72);
}
html[data-theme="dark"] {
  --lake-bg: #161719;
  --lake-panel: rgb(34 35 37 / .72);
  --lake-ink: #f6f5f1;
  --lake-muted: #b7b7b1;
  --lake-line: rgb(255 255 255 / .15);
  --lake-accent: #ff9b45;
  --lake-accent-soft: rgb(255 132 24 / .16);
  --lake-shadow: 0 18px 48px rgb(0 0 0 / .22), inset 0 1px rgb(255 255 255 / .09);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--lake-bg); color: var(--lake-ink);
  background: radial-gradient(circle at 12% 18%, #c6efff 0, transparent 34%), radial-gradient(circle at 83% 18%, #ffd4d0 0, transparent 30%), radial-gradient(circle at 62% 86%, #c7e7a9 0, transparent 35%), var(--lake-bg);
  font-family: inherit;
}
a { color: inherit; }
button, input, select { font: inherit; }
button {
  border: 1px solid var(--lake-line); border-radius: 999px; background: var(--lake-panel);
  color: var(--lake-ink); cursor: pointer; padding: 10px 14px; font-weight: 500;
}
button.primary { background: var(--lake-ink); color: var(--lake-bg); border-color: var(--lake-ink); box-shadow: 0 9px 20px rgb(0 0 0 / .14); }
button:hover { border-color: var(--lake-accent); transform: translateY(-1px); }
input, select {
  width: 100%; min-height: 40px; padding: 9px 10px; color: var(--lake-ink);
  background: rgb(255 255 255 / .58); border: 1px solid transparent; border-radius: 14px;
}
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: rgb(0 0 0 / .24); color: var(--lake-ink); }
label { display: grid; gap: 6px; font-size: 12px; font-weight: 500; color: var(--lake-muted); }
.lake-shell { max-width: 1240px; margin: 0 auto; padding: 0 28px 56px; }
.lake-header {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 90px; border-bottom: 1px solid var(--lake-line);
}
.lockup { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 28px; font-weight: 500; }
.ff-half-target { display: block; width: 20px; height: 40px; }
html[data-theme="dark"] .ff-half-target { filter: invert(1); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.section-kicker { color: var(--lake-accent); font-size: 12px; font-weight: 500; }
.hero { padding: 54px 0 36px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: .94; margin: 10px 0 16px; }
.hero p { max-width: 710px; font-size: 17px; line-height: 1.55; color: var(--lake-muted); }
.overview-card, .model-card, .empty-card {
  background: var(--lake-panel); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid rgb(255 255 255 / .62); border-radius: 26px; box-shadow: var(--lake-shadow);
}
.overview-card { padding: 22px; align-self: end; }
.status-line { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--lake-line); padding: 12px 0; }
.status-line:last-child { border-bottom: none; }
.status-line span { color: var(--lake-muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 34px; }
.metric { padding: 18px; border: 1px solid rgb(255 255 255 / .55); background: var(--lake-panel); backdrop-filter: blur(22px); border-radius: 18px; box-shadow: 0 10px 25px rgb(0 0 0 / .06); }
.metric strong { display: block; font-size: 25px; letter-spacing: 0; }
.metric span { color: var(--lake-muted); font-size: 12px; }
.model-card { padding: 26px; margin-top: 22px; }
.model-card h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: 0; }
.model-card p { color: var(--lake-muted); line-height: 1.5; max-width: 940px; }
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.domain { border: 1px solid var(--lake-line); border-radius: 18px; padding: 17px; background: rgb(255 255 255 / .16); }
.domain h3 { font-size: 14px; margin: 0 0 8px; color: var(--lake-accent); }
.domain p { margin: 0; font-size: 13px; }
.domain ul { margin: 12px 0 0; padding-left: 18px; color: var(--lake-muted); font-size: 12px; line-height: 1.6; }
.table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--lake-line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13px; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--lake-line); }
th { color: var(--lake-muted); font-size: 11px; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; background: var(--lake-accent-soft); color: var(--lake-accent); padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; }
.access-note { margin-top: 25px; padding: 14px 16px; border-left: 3px solid var(--lake-accent); color: var(--lake-muted); background: var(--lake-accent-soft); font-size: 13px; line-height: 1.45; }
.footer { color: var(--lake-muted); border-top: 1px solid var(--lake-line); margin-top: 46px; padding-top: 16px; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(480px, 100%); padding: 30px; }
.auth-card h1 { font-size: 34px; margin: 28px 0 8px; }
.auth-card p { color: var(--lake-muted); line-height: 1.5; }
.auth-card form { display: grid; gap: 14px; margin-top: 25px; }
.auth-tabs { display: flex; gap: 8px; margin-top: 22px; }
.auth-tabs button.active { background: var(--lake-ink); color: var(--lake-panel); border-color: var(--lake-ink); }
.auth-card .notice { min-height: 20px; color: var(--lake-accent); font-size: 12px; }
.auth-card .notice.ok { color: #38894a; }
.workspace-card { scroll-margin-top: 24px; }
.explorer-toolbar { display: grid; grid-template-columns: minmax(165px, .8fr) minmax(230px, 1.7fr) 110px auto; gap: 12px; align-items: end; margin-top: 20px; }
.explorer-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.product-prompt { display: flex; gap: 10px; align-items: end; margin-top: 18px; }
.product-prompt .search-control { flex: 1; }
.column-picker { margin-top: 14px; border: 1px solid var(--lake-line); border-radius: 14px; background: rgb(255 255 255 / .16); }
.column-picker summary { cursor: pointer; padding: 11px 13px; font-size: 12px; font-weight: 500; color: var(--lake-muted); }
.column-picker > .column-options { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0 13px 13px; max-height: 230px; overflow: auto; }
.column-group { border-top: 1px solid var(--lake-line); }
.column-group:first-of-type { border-top: 0; }
.column-group summary { padding: 9px 13px; color: var(--lake-muted); font-size: 12px; font-weight: 600; }
.column-group .column-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 14px; padding: 0 13px 13px; max-height: 235px; overflow: auto; }
.column-option { display: flex; align-items: center; gap: 6px; color: var(--lake-ink); font-size: 12px; text-transform: none; font-weight: 500; }
.column-option input { width: auto; min-height: auto; padding: 0; accent-color: var(--lake-accent); }
.explorer-tip { font-size: 12px; margin: 12px 0 0; color: var(--lake-muted); }
.explorer-tip code { color: var(--lake-ink); }
.search-control, .prompt-label { display: grid; gap: 7px; color: var(--lake-muted); font-size: 12px; font-weight: 500; }
.filter-header, .explorer-meta, .page-actions, .result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filter-list { display: grid; gap: 8px; margin: 14px 0; }
.filter-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(130px, .8fr) minmax(180px, 1.2fr) auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--lake-line); border-radius: 8px; }
.quiet-button { background: transparent; color: var(--lake-muted); }
.explorer-meta { margin: 14px 0; color: var(--lake-muted); font-size: 12px; }
.page-actions { justify-content: flex-end; }
button:disabled { opacity: .45; cursor: not-allowed; }
.explorer-results { max-height: 650px; overflow: auto; border: 1px solid var(--lake-line); border-radius: 9px; }
.explorer-results .table-wrap { margin: 0; border: 0; border-radius: 0; }
.sort-button { border: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; text-transform: inherit; letter-spacing: inherit; }
.cell-value { display: block; max-width: 290px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analyst-form { display: grid; gap: 14px; margin-top: 20px; }
textarea { width: 100%; min-height: 112px; padding: 12px; color: var(--lake-ink); background: rgb(255 255 255 / .58); border: 1px solid transparent; border-radius: 14px; font: inherit; resize: vertical; }
.drop-zone { display: grid; gap: 8px; padding: 17px; border: 1px dashed var(--lake-accent); border-radius: 18px; color: var(--lake-muted); cursor: pointer; }
.drop-zone.dragging { background: var(--lake-accent-soft); }
.drop-zone input { display: none; }
.workspace-note { margin: 0; font-size: 12px; color: var(--lake-muted); }
.analyst-results { display: grid; gap: 11px; margin-top: 18px; }
.analyst-result { padding: 14px; border: 1px solid var(--lake-line); border-radius: 18px; }
.result-score { color: var(--lake-accent); font-weight: 500; }
.result-line { margin-top: 7px; color: var(--lake-muted); font-size: 12px; line-height: 1.5; }
.result-list { white-space: pre-line; }
@media (max-width: 850px) {
  .lake-shell { padding: 0 18px 38px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .metric-grid, .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .portal { display: none; }
  .explorer-toolbar { grid-template-columns: 1fr 1fr; }
  .product-prompt { align-items: stretch; }
  .filter-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .metric-grid, .domain-grid { grid-template-columns: 1fr; }
  .header-actions button { padding: 8px 10px; }
  .explorer-toolbar, .filter-row { grid-template-columns: 1fr; }
  .product-prompt { display: grid; grid-template-columns: 1fr; }
}

/* Shared Lab typography: neutral tracking and no heavy display weights. */
body, body * { font-weight: 500 !important; letter-spacing: 0 !important; }
