/* WebPanel's one stylesheet (CSP: style-src 'self'). Rules: Docs/architecture/07-ui-design.md.
   Every colour, size and shadow is a value in :root below; the rest of this file uses only those (a test checks). */

/* ---- Design values (light) ---- */
:root {
  color-scheme: light dark;
  --ground: #f4f5f7;
  --surface: #ffffff;
  --fill: rgba(17, 24, 39, .055);
  --hover: rgba(17, 24, 39, .04);
  --select: rgba(47, 111, 235, .12);
  --line: rgba(17, 24, 39, .08);
  --line-strong: rgba(17, 24, 39, .22);
  --text: #1d1d1f;
  --text2: #6e6e73;
  --accent: #2c68dd;
  --accent-hover: #1d55c4;
  --on-accent: #ffffff;
  --ok: #1a7440;
  --wait: #975600;
  --bad: #c62828;
  --ok-soft: rgba(30, 132, 73, .10);
  --wait-soft: rgba(161, 92, 0, .10);
  --bad-soft: rgba(198, 40, 40, .09);
  --accent-soft: rgba(47, 111, 235, .10);
  --glass: rgba(248, 248, 250, .74);
  --scrim: rgba(0, 0, 0, .28);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-raised: 0 1px 2px rgba(0, 0, 0, .08);
  --shadow-pop: 0 24px 60px rgba(0, 0, 0, .28);
  --mono-0: #2f6feb; --mono-1: #8e5cf7; --mono-2: #14a37f; --mono-3: #e8833a; --mono-4: #d6457a; --mono-5: #3d8fb8;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-12: 12px; --fs-13: 13px; --fs-15: 15px; --fs-17: 17px; --fs-20: 20px; --fs-22: 22px; --fs-28: 28px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --r-sm: 8px; --r-md: 10px; --r-row: 12px; --r-lg: 16px;
  --sidebar: 248px;
  --speed: 150ms;
  --focus: 0 0 0 3px rgba(47, 111, 235, .45);
}

/* ---- Design values (dark): following the computer ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e0f12;
    --surface: #17181c;
    --fill: rgba(255, 255, 255, .07);
    --hover: rgba(255, 255, 255, .05);
    --select: rgba(91, 140, 255, .18);
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .25);
    --text: #f5f5f7;
    --text2: #a1a1a6;
    --accent: #5b8cff;
    --accent-hover: #86a9ff;
    --on-accent: #0e0f12;
    --ok: #3fb979;
    --wait: #e0a440;
    --bad: #f0675d;
    --ok-soft: rgba(63, 185, 121, .16);
    --wait-soft: rgba(224, 164, 64, .16);
    --bad-soft: rgba(240, 103, 93, .16);
    --accent-soft: rgba(91, 140, 255, .16);
    --glass: rgba(23, 24, 28, .72);
    --scrim: rgba(0, 0, 0, .5);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-raised: 0 1px 2px rgba(0, 0, 0, .5);
    --focus: 0 0 0 3px rgba(91, 140, 255, .55);
  }
}

/* ---- More contrast when the computer asks for it (HIG Color) ---- */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(17, 24, 39, .3);
    --text2: #3a3a3e;
    --fill: rgba(17, 24, 39, .1);
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --line: rgba(255, 255, 255, .35);
    --text2: #d1d1d6;
    --fill: rgba(255, 255, 255, .14);
  }
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font: 400 var(--fs-15)/1.47 var(--font); color: var(--text); background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: var(--fs-28); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--fs-20); font-weight: 600; margin: var(--s8) 0 var(--s3); }
h3 { font-size: var(--fs-17); font-weight: 600; }
p { margin: var(--s3) 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code, .codes, pre { font-family: var(--font-mono); }
code { padding: 1px 5px; border-radius: 5px; font-size: .9em; background: var(--fill); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
::selection { background: var(--select); }

/* ---- Skip link (A11Y30) ---- */
.skip { position: absolute; left: var(--s3); top: -48px; z-index: 10; padding: var(--s2) var(--s4); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-raised), 0 0 0 1px var(--line); }
.skip:focus { top: var(--s3); }

/* ---- The frame: sidebar + content (L1, L5, L6) ---- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; flex: 0 0 var(--sidebar); height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  gap: 2px; padding: var(--s5) var(--s3); background: var(--glass); border-right: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
@media (prefers-reduced-transparency: reduce) { .sidebar { background: var(--ground); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.brand { display: flex; align-items: center; gap: 10px; padding: var(--s1) 10px var(--s4); color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; }
.brand-name small { font-size: var(--fs-12); font-weight: 400; color: var(--text2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text2); }
.nav a {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 10px; border-radius: 9px; color: var(--text);
  font-size: 14px; transition: background var(--speed) ease-out;
}
.nav a:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.nav a[aria-current="page"] { background: var(--select); font-weight: 600; }
.nav .count { margin-left: auto; font-size: var(--fs-12); font-weight: 500; color: var(--text2); }
.nav svg, .brand svg { flex: 0 0 auto; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: var(--s3) 10px var(--s1); }
.job { display: flex; flex-direction: column; gap: 6px; padding: 10px var(--s3); border-radius: var(--r-row); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); font-size: var(--fs-13); }
.job-title { display: flex; align-items: center; gap: var(--s2); font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; font-size: var(--fs-13); }
.who form { margin-left: auto; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--fill); font-weight: 600; font-size: var(--fs-12); }
.menu-toggle { display: none; }
.content { flex: 1 1 auto; min-width: 0; padding: var(--s8) var(--s10) var(--s12); }
.page { max-width: 880px; }
.page.logs { max-width: 1200px; }

@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar { position: static; height: auto; flex-basis: auto; padding: var(--s3); border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-top { display: flex; align-items: center; justify-content: space-between; }
  .brand { padding: 0; }
  .menu-toggle { display: inline-flex; }
  .js .sidebar:not(.open) .nav, .js .sidebar:not(.open) .sidebar-foot { display: none; }
  .sidebar-foot { margin-top: var(--s3); }
  .content { padding: var(--s5) var(--s4) var(--s10); }
}

/* ---- Standalone screens: sign-in, setup, recovery (L10) ---- */
body.standalone { display: grid; place-items: center; padding: var(--s4); }
body.standalone .card { width: 100%; max-width: 30rem; }

/* ---- Surfaces ---- */
.card, .group {
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: var(--s6);
  min-width: 0;
}
.card.notice { margin: var(--s4) 0; padding: var(--s4); box-shadow: 0 0 0 1px var(--accent); }
.group { padding: 0; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: var(--s3) 18px; border-top: 1px solid var(--line); }
.cell:first-child { border-top: 0; }
.group-title { margin: var(--s6) 0 var(--s2) var(--s4); font-size: var(--fs-13); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text2); }
.group-foot { margin: var(--s2) var(--s4) 0; font-size: var(--fs-13); color: var(--text2); max-width: 62ch; }

/* ---- Sites: split view (L2), list column, site page with tabs (L3) ---- */
.content:has(.split) { padding: 0; }
.split { display: flex; min-height: 100vh; }
.site-list { flex: 0 0 300px; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) var(--s3);
  border-right: 1px solid var(--line); }
.site-list-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s1) 6px; }
.site-list-head h2 { margin: 0; font-size: var(--fs-22); font-weight: 700; }
.site-rows { display: flex; flex-direction: column; gap: var(--s1); }
.site-row { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s3); border-radius: var(--r-row); color: var(--text);
  transition: background var(--speed) ease-out; }
.site-row:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.site-row[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow-raised), 0 0 0 1px var(--line); }
.site-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.site-row-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-row-sub { font-size: var(--fs-13); color: var(--text2); }
.dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--text2); }
.dot.ready { background: var(--ok); } .dot.pending { background: var(--wait); } .dot.drift, .dot.unknown { background: var(--bad); }
.mono { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; font-weight: 600; font-size: 14px;
  color: var(--on-accent); background: var(--mono-0); }
.mono.big { flex-basis: 46px; width: 46px; height: 46px; border-radius: var(--r-row); font-size: 19px; }
.mono.c1 { background: var(--mono-1); } .mono.c2 { background: var(--mono-2); } .mono.c3 { background: var(--mono-3); }
.mono.c4 { background: var(--mono-4); } .mono.c5 { background: var(--mono-5); }
.detail { flex: 1 1 auto; min-width: 0; padding: var(--s8) var(--s10) var(--s12); display: flex; flex-direction: column; gap: var(--s5); }
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.site-head-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 240px; }
.site-head-text h1 { overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 var(--s3); border-radius: 14px; font-size: var(--fs-13);
  font-weight: 500; background: var(--fill); color: var(--text2); }
.pill.ready { background: var(--ok-soft); color: var(--ok); } .pill.pending { background: var(--wait-soft); color: var(--wait); }
.pill.drift, .pill.unknown { background: var(--bad-soft); color: var(--bad); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--fill); align-self: flex-start;
  max-width: 100%; }
.tabs a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--r-sm); color: var(--text2);
  font-size: 14px; font-weight: 500; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-raised); }
.tab-body { max-width: 880px; }
.tab-body > h2:first-child, .tab-page > h2:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.cards .card { display: flex; flex-direction: column; gap: 6px; padding: var(--s5) 22px; }
.card-label { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-13); font-weight: 600; color: var(--text2); }
.card-value { font-size: var(--fs-20); font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.card-value.mono-text { font-family: var(--font-mono); font-size: var(--fs-15); }
.card-note { font-size: var(--fs-13); color: var(--text2); }
.card-note.wait, .wait-text { color: var(--wait); font-weight: 500; } .card-note.bad, .bad-text { color: var(--bad); font-weight: 600; }
.card a.more { margin-top: auto; padding-top: var(--s1); font-size: var(--fs-13); font-weight: 600; }
.alert { padding: var(--s3) var(--s4); border-radius: var(--r-row); background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--wait-soft); color: var(--wait); }
.alert.changes { margin-bottom: var(--s4); }
.alert.changes ul { margin: var(--s2) 0; padding-left: var(--s4); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); max-width: 46ch; margin: var(--s12) auto 0; }
.empty h1 { font-size: var(--fs-22); }

@media (max-width: 1000px) {
  .split { flex-direction: column; min-height: 0; }
  .site-list { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .split.has-site .site-list { display: none; }
  .detail { padding: var(--s5) var(--s4) var(--s10); }
  .back-to-sites { display: inline-flex; }
  .narrow-quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .empty { margin-top: var(--s4); }
}
.back-to-sites { display: none; align-items: center; gap: var(--s1); font-size: var(--fs-15); }

/* ---- Text helpers ---- */
.muted, .next { color: var(--text2); }
.small { font-size: var(--fs-13); }
.status { min-height: 1.5em; color: var(--text2); }
.status.error, .error { color: var(--bad); }
.codes { font-size: var(--fs-17); line-height: 1.8; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s4); margin: var(--s4) 0; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; }
details { margin: var(--s3) 0; }
details summary { cursor: pointer; color: var(--text2); }

/* ---- Buttons (VIS10, UX30, UX31) ---- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin-top: var(--s4);
  padding: 0 var(--s4); border: 0; border-radius: var(--r-md); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--on-accent); background: var(--accent); white-space: nowrap; transition: background var(--speed) ease-out;
}
button:hover, .button:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
button:disabled { opacity: .55; cursor: progress; }
button.quiet, .button.quiet { margin: 0; color: var(--text); background: var(--fill); font-weight: 500; }
button.quiet:hover, .button.quiet:hover { background: var(--line-strong); color: var(--text); }
button.danger { background: var(--bad); color: var(--on-accent); }
button.small, .button.small { min-height: 30px; margin: 0; padding: 0 var(--s3); font-size: var(--fs-13); }
.quiet-link { margin-left: var(--s3); color: var(--text2); }
.quiet-link:hover { color: var(--text); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.bar h1, .bar h2 { margin: 0; }
.bar form, .actions form, .who form { margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }

/* ---- Forms (UX24-26) ---- */
label { display: block; margin: var(--s4) 0 6px; font-size: 14px; font-weight: 600; }
input, textarea, select {
  width: 100%; padding: 9px var(--s3); font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
textarea { resize: vertical; }
select { width: auto; }
input:focus-visible, textarea:focus-visible, select:focus-visible { border-color: var(--accent); }
fieldset.choice { margin: var(--s4) 0 0; padding: 0; border: 0; }
fieldset.choice legend { margin-bottom: var(--s1); font-size: 14px; font-weight: 600; }
fieldset.choice label { display: flex; align-items: baseline; gap: var(--s2); margin: 6px 0; font-weight: 400; }
fieldset.choice label.indent { margin-left: 26px; color: var(--text2); }
fieldset.choice input { width: auto; accent-color: var(--accent); }
fieldset.choice select { padding: 4px var(--s2); }

/* ---- Status words with a dot (UX19) ---- */
.tag { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px var(--s2); border-radius: 6px; font-size: var(--fs-12); font-weight: 500;
  background: var(--accent-soft); color: var(--text); }
.state, .https { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); }
.state::before, .https::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.ready, .https.ready { color: var(--ok); }
.state.pending, .https.waiting { color: var(--wait); }
.state.drift, .state.unknown { color: var(--bad); }

/* ---- Today's site list (until step 2 brings the split view) ---- */
.sites { list-style: none; margin: 0; padding: 0; }
.sites li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4);
  padding: var(--s4) 0; border-top: 1px solid var(--line); }
.sites li > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---- Tables and logs ---- */
.table-scroll { overflow-x: auto; }
.log-table { border-collapse: collapse; width: 100%; font-size: var(--fs-13); }
.log-table th, .log-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.log-table th { color: var(--text2); font-weight: 600; }
.log-table td code { word-break: break-all; }
.log-table td[class^="st4"], .log-table td[class^="st5"] { color: var(--bad); font-weight: 600; }
.log-filter { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s2) var(--s3); margin: var(--s4) 0; }
.log-filter label { margin: 0; }
.log-filter select, .log-filter input { width: auto; margin: 0; }
.log-filter input { flex: 1 1 12rem; }
.log-filter button { margin: 0; }
.log-pre { overflow-x: auto; max-height: 70vh; padding: var(--s3); font-size: var(--fs-13); white-space: pre; background: var(--fill);
  border-radius: var(--r-md); }
code.token { display: block; padding: 10px; word-break: break-all; user-select: all; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Grouped settings pages (L9) ---- */
.cell-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cell-title { font-weight: 600; overflow-wrap: anywhere; }
.cell-sub { font-size: var(--fs-13); color: var(--text2); }
.cell .ic { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: var(--r-sm); color: var(--on-accent);
  background: var(--accent); }
.cell .ic.ok { background: var(--ok); } .cell .ic.wait { background: var(--wait); } .cell .ic.bad { background: var(--bad); }
.cell .ic.quiet { background: var(--fill); color: var(--text); }
.cell button, .cell .button { margin: 0; }
.cell form { margin: 0; }
a.cell { color: var(--text); }
a.cell:hover { background: var(--hover); text-decoration: none; color: var(--text); }
.chev { margin-left: auto; color: var(--text2); }
.group-body { padding: var(--s3) 18px var(--s5); border-top: 1px solid var(--line); }
.group-body:first-child { border-top: 0; }
.group-body > label:first-child { margin-top: var(--s2); }
.page-lead { margin: 6px 0 0; color: var(--text2); font-size: var(--fs-15); max-width: 62ch; }
.page > h1 + .page-lead + .group-title, .page > h1 + .group-title { margin-top: var(--s8); }
.group-body .status { margin: var(--s2) 0 0; min-height: 0; }
.group-body .status:empty { margin: 0; }
.group-body > button:first-child, .group-body > .button:first-child { margin-top: 0; }
.group-body > h3:first-child, .group-body > h4:first-child { margin-top: var(--s2); }
h4 { margin: var(--s4) 0 var(--s2); font-size: var(--fs-15); font-weight: 600; }

/* ---- Command bar (L7) ---- */
.search-hint { display: flex; align-items: center; gap: var(--s2); width: 100%; min-height: 36px; margin: 0 0 var(--s2); padding: 0 var(--s3);
  border-radius: var(--r-md); background: var(--fill); color: var(--text2); font-size: 14px; font-weight: 400; }
.search-hint:hover { background: var(--line-strong); color: var(--text); }
.kbd { margin-left: auto; padding: 1px 6px; border-radius: 5px; font: inherit; font-size: var(--fs-12); color: var(--text2);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.palette { width: min(620px, calc(100% - var(--s8))); max-height: min(560px, calc(100vh - var(--s12) * 2)); margin: 12vh auto auto;
  padding: 0; border: 0; border-radius: 18px; color: var(--text); background: var(--surface); box-shadow: var(--shadow-pop), 0 0 0 1px var(--line);
  overflow: hidden; display: none; flex-direction: column; }
.palette[open] { display: flex; }
.palette::backdrop { background: var(--scrim); }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text2); }
.palette-search input { flex: 1; padding: 0; border: 0; background: transparent; font-size: var(--fs-17); color: var(--text); }
.palette-search input:focus-visible { box-shadow: none; }
.palette-list { list-style: none; margin: 0; padding: var(--s2); overflow-y: auto; }
.palette-group { padding: 10px var(--s3) var(--s1); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text2); }
.palette-item { padding: 10px var(--s3); border-radius: var(--r-md); font-size: 14px; cursor: pointer; }
.palette-item[aria-selected="true"] { background: var(--select); }
.palette-empty { margin: 0; padding: var(--s4) 18px; color: var(--text2); }

/* ---- Sign-in screens (L10) ---- */
body.standalone .card.signin { max-width: 26rem; padding: var(--s10) var(--s8); text-align: left; box-shadow: var(--shadow-pop), 0 0 0 1px var(--line); }
.brand-mark.big { width: 48px; height: 48px; margin-bottom: var(--s5); border-radius: var(--r-row); }
.brand-mark.big svg { width: 24px; height: 24px; }
body.standalone .card.signin button { width: 100%; min-height: 44px; font-size: var(--fs-15); }
body.standalone .card.signin h1 { font-size: var(--fs-28); margin-bottom: var(--s2); }
@media (hover: none) { .search-hint .kbd { display: none; } }
