/* Zaintel Lead design system. One palette, used by every page.
   Light by default; follows the OS dark setting automatically. */

:root {
  color-scheme: light dark;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* surfaces */
  --bg: #f3f4f9;
  --glow: rgb(79 70 229 / .10);
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --line: #e3e6ef;
  --line-2: #cfd4e1;

  /* text */
  --ink: #12172a;
  --ink-2: #485069;
  --ink-3: #7a8299;

  /* brand */
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-ink: #ffffff;
  --brand-soft: #eeedfd;
  --link: #3d35c4;

  /* app bar stays dark in both themes */
  --bar: #0e1326;
  --bar-ink: #eef0f8;
  --bar-muted: #9aa3bd;

  /* status */
  --amber-bg: #fff6df;
  --amber-line: #efd48f;
  --amber-ink: #7a4f00;
  --green: #17a36b;

  /* segment chips: one hue each, matched lightness */
  --seg-residential-cross-sell-bg: #e4ecff;
  --seg-residential-cross-sell-ink: #1d45b5;
  --seg-reseller-channel-bg: #daf3e8;
  --seg-reseller-channel-ink: #0b6a4b;
  --seg-home-phone-legacy-bg: #ffe8d6;
  --seg-home-phone-legacy-ink: #9d4410;
  --seg-home-phone-2009-bg: #eee7ff;
  --seg-home-phone-2009-ink: #5a31b3;

  --shadow-sm: 0 1px 2px rgb(18 23 42 / .05), 0 1px 3px rgb(18 23 42 / .05);
  --shadow-lg: 0 18px 40px -18px rgb(18 23 42 / .30), 0 2px 6px rgb(18 23 42 / .06);
  --radius: 14px;
  --radius-sm: 9px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090c17;
    --glow: rgb(99 102 241 / .16);
    --surface: #121729;
    --surface-2: #181e33;
    --line: #232a42;
    --line-2: #333c5a;

    --ink: #e9ecf6;
    --ink-2: #aeb6cc;
    --ink-3: #7d869f;

    --brand: #6366f1;
    --brand-hover: #7477f5;
    --brand-soft: #1e2347;
    --link: #a5adff;

    --bar: #070a14;

    --amber-bg: #2a2111;
    --amber-line: #5a4416;
    --amber-ink: #f0cd85;

    --seg-residential-cross-sell-bg: #1b2a55;
    --seg-residential-cross-sell-ink: #a9c0ff;
    --seg-reseller-channel-bg: #12372b;
    --seg-reseller-channel-ink: #8fe0bd;
    --seg-home-phone-legacy-bg: #3a2415;
    --seg-home-phone-legacy-ink: #ffbf94;
    --seg-home-phone-2009-bg: #2a2150;
    --seg-home-phone-2009-ink: #c9b6ff;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-lg: 0 18px 40px -18px rgb(0 0 0 / .7);
  }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.55 var(--font);
  color: var(--ink);
  background: radial-gradient(900px 360px at 12% 56px, var(--glow), transparent 70%), var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
main.container { padding-top: 28px; padding-bottom: 24px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------- app bar */

.appbar { background: var(--bar); border-bottom: 1px solid rgb(255 255 255 / .06); position: sticky; top: 0; z-index: 10; }
.appbar-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bar-ink); }
.brand:hover { text-decoration: none; }
.logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 2px 10px rgb(99 102 241 / .45), inset 0 1px 0 rgb(255 255 255 / .25);
}
.wordmark { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.wordmark span { color: var(--bar-muted); font-weight: 500; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--bar-muted); padding: 7px 13px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--bar-ink); background: rgb(255 255 255 / .06); text-decoration: none; }
.nav a.active { color: #fff; background: rgb(255 255 255 / .11); }
.scope { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--bar-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(23 163 107 / .22); }

.foot { color: var(--ink-3); font-size: 12.5px; padding-top: 28px; padding-bottom: 44px; }

/* ------------------------------------------------------------ surfaces */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px 22px;
}
.card.flush { padding: 0; overflow: hidden; }
.card-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-title { font-size: 18px; margin: 34px 0 14px; }
.section-head { margin: 44px 0 16px; }
.section-head h2 { font-size: 20px; }
.section-head p { color: var(--ink-3); margin: 4px 0 0; }

/* ---------------------------------------------------- chips and pills */

.chip, .pill, .tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 3px 10px; line-height: 1.4;
}
.chip { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip[class*="seg-"] { border-color: transparent; background: var(--chip-bg); color: var(--chip-ink); }
.chip[class*="seg-"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.seg-residential-cross-sell { --chip-bg: var(--seg-residential-cross-sell-bg); --chip-ink: var(--seg-residential-cross-sell-ink); }
.seg-reseller-channel { --chip-bg: var(--seg-reseller-channel-bg); --chip-ink: var(--seg-reseller-channel-ink); }
.seg-home-phone-legacy { --chip-bg: var(--seg-home-phone-legacy-bg); --chip-ink: var(--seg-home-phone-legacy-ink); }
.seg-home-phone-2009 { --chip-bg: var(--seg-home-phone-2009-bg); --chip-ink: var(--seg-home-phone-2009-ink); }
.tag { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); font-weight: 500; font-size: 11.5px; padding: 1px 8px; margin-left: 4px; }
.card-title .tag { margin-left: 0; text-transform: none; letter-spacing: 0; }
.pill.ready { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.pill.admin { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); }

/* ------------------------------------------------------------- controls */

input[type=search], select {
  font: inherit; color: var(--ink); background: var(--surface);
  height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
input[type=search]::placeholder { color: var(--ink-3); }
input[type=search]:focus, select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.btn {
  font: inherit; font-weight: 600; height: 42px; padding: 0 20px; border: 1px solid var(--brand);
  border-radius: var(--radius-sm); background: var(--brand); color: var(--brand-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .12s;
}
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--line-2); height: 36px; padding: 0 14px; }
.btn.ghost:hover { background: var(--surface-2); }

.searchpanel {
  display: grid; grid-template-columns: minmax(240px, 1fr) 190px 240px auto; gap: 12px 14px; align-items: end;
  padding: 18px 20px; margin-bottom: 20px;
}
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.searchpanel.compact { grid-template-columns: 1fr auto; padding: 12px 14px; margin-bottom: 22px; align-items: center; }
.searchpanel.compact .btn { height: 42px; }
.check { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin-top: -2px; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }

/* ----------------------------------------------------------- home page */

.hero { padding: 40px 0 28px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.lede { max-width: 58ch; font-size: 17px; color: var(--ink-2); margin: 18px 0 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 18px 0 26px; overflow: hidden; }
.stat { padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-text { font-size: 21px; padding-top: 7px; letter-spacing: -.015em; }

.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tool { padding: 28px 30px 26px; display: flex; flex-direction: column; color: var(--ink); }
.tool h2 { font-size: 22px; margin: 18px 0 8px; letter-spacing: -.02em; }
.tool p { color: var(--ink-2); }
.tool-top { display: flex; align-items: center; justify-content: space-between; }
.tool-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ticks { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 7px; color: var(--ink-2); font-size: 14px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) scale(.9);
}
.tool-cta { margin-top: auto; font-weight: 700; color: var(--link); }
.tool-live { transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-live:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.tool-live:hover .tool-cta span { display: inline-block; transform: translateX(3px); }
.tool-live .tool-cta span { transition: transform .15s; }
.tool-soon { background: transparent; border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.tool-soon .tool-icon { background: var(--surface-2); color: var(--ink-3); }
.tool-soon h2 { color: var(--ink-2); }
.tool-soon .ticks li::before { border-color: var(--ink-3); }
.muted-cta { color: var(--ink-3); }

.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.seg-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.seg-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.seg-count { font-size: 30px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.1; }
.seg-note { color: var(--ink-3); font-size: 13.5px; }

/* ------------------------------------------------------ lookup / detail */

.page-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 22px; }
.page-head-plain { margin-bottom: 18px; }
.page-head h1 { font-size: 28px; letter-spacing: -.03em; font-weight: 700; }
.page-head .sub { color: var(--ink-3); margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 22px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 6px 16px -6px rgb(99 102 241 / .6);
}
.crumbs { margin-bottom: 14px; font-size: 14px; font-weight: 600; }

.count { color: var(--ink-3); margin: 0; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 12px; flex-wrap: wrap; }
.count strong { color: var(--ink); }
.notice {
  background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink);
  border-radius: var(--radius-sm); padding: 11px 15px; margin: 0 0 18px;
}
.notice a { color: inherit; text-decoration: underline; }

.empty { text-align: center; padding: 44px 24px; }
.empty h2 { font-size: 20px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 !important; }
.examples a {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; color: var(--ink);
  font-family: var(--mono); font-size: 13px; background: var(--surface-2);
}
.examples a:hover { text-decoration: none; border-color: var(--brand); background: var(--brand-soft); }
.examples .muted { font-family: var(--font); margin-right: 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
dl { display: grid; grid-template-columns: 8.5em 1fr; gap: 9px 12px; margin: 0; }
dt { color: var(--ink-3); }
dd { margin: 0; overflow-wrap: anywhere; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.plain li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.phone { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; color: var(--ink); transition: border-color .12s, transform .15s, box-shadow .15s; }
.tile:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile.active { border-color: var(--brand); background: var(--brand-soft); }
.tile-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.tile-value { font-size: 28px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile-meta { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th {
  position: sticky; top: 0; background: var(--surface-2); color: var(--ink-3); text-align: left; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; padding: 11px 16px; border-bottom: 1px solid var(--line);
}
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-name { font-weight: 600; color: var(--ink); }
.cell-name:hover { color: var(--link); }
.sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
details summary { cursor: pointer; color: var(--link); font-size: 12.5px; margin-top: 4px; }
table.inner { width: auto; margin-top: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
table.inner td { padding: 5px 12px; border: 0; background: transparent !important; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 22px 0 6px; }

/* ----------------------------------------------------- database browser */

.pill.mini { font-size: 10.5px; padding: 1px 7px; margin-left: 4px; text-transform: uppercase; letter-spacing: .05em; background: rgb(240 205 133 / .14); color: #f0cd85; border-color: rgb(240 205 133 / .28); }
.heading-pill { vertical-align: middle; margin-left: 10px; font-size: 12px; letter-spacing: 0; }
.signout button {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--bar-muted); background: transparent;
  border: 1px solid rgb(255 255 255 / .16); border-radius: 8px; padding: 5px 12px; cursor: pointer;
}
.signout button:hover { color: var(--bar-ink); background: rgb(255 255 255 / .06); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.login-card { max-width: 420px; margin: 56px auto; padding: 32px 32px 30px; }
.login-card h1 { font-size: 24px; margin: 14px 0 6px; letter-spacing: -.02em; }
.login-card .sub { color: var(--ink-3); margin-bottom: 20px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; }
input[type=password] {
  font: inherit; color: var(--ink); background: var(--surface); height: 42px; padding: 0 12px; width: 100%;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
input[type=password]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }

.browser-panel { padding: 18px 20px 20px; margin-bottom: 20px; }
.toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 18px; }
.toggle button { font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink-3); background: transparent; border: 0; border-radius: 7px; padding: 7px 16px; cursor: pointer; }
.toggle button:hover { color: var(--ink); }
.toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.controls { display: grid; grid-template-columns: 200px minmax(220px, 1fr) 220px 150px auto; gap: 12px 14px; align-items: end; }
.controls[hidden], #form-sql[hidden] { display: none; }
.controls .columns-line { grid-column: 1 / -1; margin: 2px 0 0; overflow-wrap: anywhere; }
.sql-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 20px; margin-bottom: 12px; }
.sql-head .field { width: 220px; }
.sql-head p { margin: 0; flex: 1; min-width: 240px; }
textarea.sql {
  width: 100%; resize: vertical; min-height: 150px; padding: 14px 16px; color: var(--ink); background: var(--surface-2);
  font: 13.5px/1.6 var(--mono); border: 1px solid var(--line-2); border-radius: var(--radius-sm); tab-size: 2;
}
textarea.sql:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.sql-foot { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.btn:disabled { opacity: .6; cursor: progress; }

.error-card { border-left: 4px solid #d6455d; margin-bottom: 20px; }
.error-card h3 { font-size: 14px; color: #d6455d; margin-bottom: 6px; }
.error-card p { margin: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }

.results { margin-bottom: 8px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.result-bar form { margin: 0; }
.result-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.notice.flat { border-radius: 0; border-width: 0 0 1px; margin: 0; padding: 9px 18px; font-size: 13px; }
.table-wrap { max-height: 70vh; }
table.data { font-size: 13px; }
table.data th { font-family: var(--mono); text-transform: none; letter-spacing: 0; font-size: 12px; z-index: 1; }
table.data td { padding: 8px 14px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: top; }
table.data td.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
table.data td.null { color: var(--ink-3); font-style: italic; }

.schema-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; margin-bottom: 14px; }
.table-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.table-list a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; color: var(--ink); font-size: 13.5px; }
.table-list a:hover { background: var(--brand-soft); text-decoration: none; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 960px) {
  .searchpanel:not(.compact) { grid-template-columns: 1fr 1fr; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls .grow { grid-column: 1 / -1; }
  .searchpanel .grow { grid-column: 1 / -1; }
  .searchpanel .btn { grid-column: 1 / -1; }
  .tools { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .appbar-inner { gap: 12px; }
  .scope { display: none; }
  .searchpanel:not(.compact) { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; gap: 0; }
  dt { margin-top: 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
