/* HarveyOS shell v3 (redesign port, Phase 2): sidebar, phone tab bar, More sheet, palette skin.
   Tokens are the Today v3 set (static/v3/tokens.css): dark first, light is cool grey #f4f5f7 with white
   surfaces, accent Cobalt by default and never orange by default. Lane colours are not used here. */
html {
  --hs-bg: #0A0A0C; --hs-s1: #121214; --hs-s2: #17171A; --hs-raised: #212125;
  --hs-seam: rgb(255 252 248 / .07); --hs-seam2: rgb(255 252 248 / .13);
  --hs-tx: #F7F5F2; --hs-dim: #9A9894; --hs-faint: #6E6C69;
  --hs-ok: #4FA477; --hs-warn: #C7A847; --hs-bad: #E8676E;
  --hs-accent: #4d8dff; --hs-accent-tx: #4d8dff; --hs-accent-ink: #06142e;
  --hs-ease: cubic-bezier(.23, 1, .32, 1);
}
/* Light is honoured only where the page itself has a light form (Today, so far). A white sidebar beside a
   dark LUMEN page would be a clash, so every other page keeps the dark shell until its own port lands. */
html[data-hs-theme="light"]:has(body.page-today) {
  --hs-bg: #F4F5F7; --hs-s1: #FFFFFF; --hs-s2: #F8F9FB; --hs-raised: #EBEDF1;
  --hs-seam: rgb(17 20 28 / .08); --hs-seam2: rgb(17 20 28 / .15);
  --hs-tx: #12141A; --hs-dim: #5C616B; --hs-faint: #6A6F79;
  --hs-ok: #2E7D55; --hs-warn: #8C6900; --hs-bad: #B23A42;
  --hs-accent: #2f6fe4; --hs-accent-tx: #2d69d9; --hs-accent-ink: #ffffff;
}
html[data-hs-accent="aqua"] { --hs-accent: #2fd3e3; --hs-accent-tx: #2fd3e3; --hs-accent-ink: #06242a; }
html[data-hs-theme="light"]:has(body.page-today)[data-hs-accent="aqua"] { --hs-accent: #0e8fa0; --hs-accent-tx: #0c7a88; --hs-accent-ink: #12141a; }
html[data-hs-accent="chartreuse"] { --hs-accent: #c6ef3a; --hs-accent-tx: #c6ef3a; --hs-accent-ink: #1c2600; }
html[data-hs-theme="light"]:has(body.page-today)[data-hs-accent="chartreuse"] { --hs-accent: #5f7d00; --hs-accent-tx: #5b7800; --hs-accent-ink: #ffffff; }
html[data-hs-accent="rose"] { --hs-accent: #ff5c8a; --hs-accent-tx: #ff5c8a; --hs-accent-ink: #33000f; }
html[data-hs-theme="light"]:has(body.page-today)[data-hs-accent="rose"] { --hs-accent: #c8285a; --hs-accent-tx: #c8285a; --hs-accent-ink: #ffffff; }
html[data-hs-accent="ember"] { --hs-accent: #ff5b04; --hs-accent-tx: #ff5b04; --hs-accent-ink: #2b0f00; }
html[data-hs-theme="light"]:has(body.page-today)[data-hs-accent="ember"] { --hs-accent: #d94a00; --hs-accent-tx: #c54300; --hs-accent-ink: #ffffff; }

.hs-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hs-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hs-side, .hs-tabs, .hs-more { font-family: 'IBM Plex Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.hs-side *, .hs-tabs *, .hs-more * { box-sizing: border-box; }
.hs-side :where(a, button), .hs-tabs :where(a, button), .hs-more :where(a, button, summary, input) { font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; }
.hs-side :where(a, button, summary):focus-visible, .hs-tabs :where(a, button):focus-visible, .hs-more :where(a, button, summary, input):focus-visible { outline: 2px solid var(--hs-accent) !important; outline-offset: 2px; }

/* ---- live signal bits: count badge and status dot ---- */
.hs-b { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: color-mix(in srgb, var(--hs-accent) 16%, transparent); color: var(--hs-accent-tx); font: 700 12px/1 'Archivo', 'IBM Plex Sans', sans-serif; font-variant-numeric: tabular-nums; }
.hs-b[hidden], .hs-d[hidden], .hs-gp[hidden] { display: none; }
.hs-b.is-warn { background: color-mix(in srgb, var(--hs-warn) 20%, transparent); color: var(--hs-warn); }
.hs-b.is-bad { background: color-mix(in srgb, var(--hs-bad) 20%, transparent); color: var(--hs-bad); }
.hs-b.bump { animation: hs-bump .38s var(--hs-ease); }
@keyframes hs-bump { 0% { transform: translateY(5px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.hs-d { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hs-ok); }
.hs-d[data-d="a"] { background: var(--hs-warn); }
.hs-d[data-d="r"] { background: var(--hs-bad); }
.hs-d[data-d="g"] { opacity: .75; }

/* ================= desktop sidebar ================= */
@media (min-width: 1024px) {
  /* Type and row height grow with the window: 14px rows at 1024, 16px at 1440, 17px from
     about 1650 up. The sidebar only exists from 1024px, so the phone tab bar is untouched. */
  html { --hs-fs: clamp(14px, 9.1px + .48vw, 17px); --hs-row: clamp(38px, 30px + .78vw, 46px); --nav-width: 272px; }
  html.hs-rail { --nav-width: 76px; }
  body:not(.page-login) { transition: padding-left .28s var(--hs-ease); }
  .hs-tabs, .hs-more { display: none !important; }
  .hs-side {
    position: fixed; inset: 0 auto 0 0; z-index: 90; width: var(--nav-width); height: 100dvh;
    display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 12px; overflow: hidden;
    background: var(--hs-s1); color: var(--hs-tx); border: 0; border-right: 1px solid var(--hs-seam); box-shadow: none;
    transition: width .28s var(--hs-ease);
  }
  .hs-brand { display: flex; align-items: center; gap: 10px; height: 40px; margin: 0 6px 12px; color: var(--hs-tx); text-decoration: none; white-space: nowrap; }
  .hs-mark { width: 26px; height: 26px; flex: none; color: var(--hs-accent); }
  .hs-word { font: 700 calc(var(--hs-fs) + 4px)/1 'Apfel Grotezk', 'Archivo', sans-serif; letter-spacing: -.01em; color: var(--hs-tx); -webkit-text-fill-color: currentColor; background: none; }
  .hs-word span { color: var(--hs-dim); margin: 0; }
  .hs-search { display: flex; align-items: center; gap: 10px; width: 100%; height: calc(var(--hs-row) + 2px); margin-bottom: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--hs-seam2); background: var(--hs-bg); color: var(--hs-dim); cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s; }
  .hs-search:hover { color: var(--hs-tx); border-color: color-mix(in srgb, var(--hs-accent) 55%, var(--hs-seam2)); }
  .hs-search-t { flex: 1; text-align: left; font-size: var(--hs-fs); }
  .hs-key { font: 500 12px/1 'IBM Plex Sans', sans-serif; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--hs-seam2); color: var(--hs-dim); background: none; }
  .hs-nav { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--hs-seam2) transparent; padding: 0 0 8px; }
  .hs-pill { position: absolute; left: 0; right: 0; top: 0; height: var(--hs-row); z-index: 0; pointer-events: none; opacity: 0; border-radius: 10px; background: color-mix(in srgb, var(--hs-accent) 14%, transparent); transform: translateY(var(--hs-y, 0)); transition: transform .28s var(--hs-ease), opacity .15s; }
  .hs-pill::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--hs-accent); }
  .hs-pill.is-on { opacity: 1; }
  .hs-pill.is-still { transition: none; }
  .hs-gh { position: relative; z-index: 1; display: flex; align-items: center; width: 100%; height: calc(var(--hs-row) - 4px); min-height: 0; margin-top: 10px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--hs-dim); font-size: calc(var(--hs-fs) - 1px); font-weight: 600; cursor: pointer; }
  .hs-side .hs-i .hs-ic, .hs-search .hs-ic, .hs-rail-toggle .hs-ic { width: calc(var(--hs-fs) + 4px); height: calc(var(--hs-fs) + 4px); }
  .hs-gh:first-child { margin-top: 2px; }
  .hs-gh span { flex: 1; text-align: left; }
  .hs-gh:hover { color: var(--hs-tx); }
  .hs-gh .hs-ic { width: 16px; height: 16px; transition: transform .2s var(--hs-ease); }
  .hs-gh[aria-expanded="false"] .hs-ic { transform: rotate(-90deg); }
  .hs-gp { width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--hs-accent); }
  .hs-gp[data-d="a"] { background: var(--hs-warn); } .hs-gp[data-d="r"] { background: var(--hs-bad); }
  .hs-gi { display: flex; flex-direction: column; gap: 1px; }
  .hs-gi[hidden] { display: none; }
  .hs-i { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: var(--hs-row); padding: 0 12px 0 14px; border-radius: 10px; color: var(--hs-dim); font-size: var(--hs-fs); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
  .hs-i:hover { color: var(--hs-tx); background: color-mix(in srgb, var(--hs-tx) 5%, transparent); text-decoration: none; }
  .hs-i[aria-current="page"] { color: var(--hs-tx); font-weight: 600; background: none; }
  .hs-i[aria-current="page"] .hs-ic { color: var(--hs-accent-tx); }
  .hs-pill.is-on ~ .hs-grp .hs-i[aria-current="page"]:hover { background: none; }
  .hs-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hs-rail-toggle { text-align: left; display: flex; align-items: center; gap: 12px; width: 100%; height: var(--hs-row); margin-top: 4px; padding: 0 12px 0 14px; border: 0; border-top: 1px solid var(--hs-seam); border-radius: 0 0 10px 10px; background: none; color: var(--hs-dim); font-size: var(--hs-fs); cursor: pointer; white-space: nowrap; }
  .hs-rail-toggle:hover { color: var(--hs-tx); }
  .hs-rt-b { display: none; }

  /* rail: icons only, badges become dots, groups stay open so every icon is reachable */
  html.hs-rail .hs-side { padding-inline: 10px; }
  html.hs-rail .hs-word, html.hs-rail .hs-search-t, html.hs-rail .hs-key, html.hs-rail .hs-t, html.hs-rail .hs-gh span, html.hs-rail .hs-gh .hs-ic { display: none; }
  html.hs-rail .hs-brand { justify-content: center; margin-inline: 0; }
  html.hs-rail .hs-search { justify-content: center; padding: 0; }
  html.hs-rail .hs-gh { height: 1px; min-height: 0; margin: 8px 12px; padding: 0; background: var(--hs-seam); pointer-events: none; overflow: hidden; }
  html.hs-rail .hs-gi[hidden] { display: flex; }
  html.hs-rail .hs-i { justify-content: center; padding: 0; }
  html.hs-rail .hs-i .hs-b { position: absolute; top: 5px; right: 9px; min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; border-radius: 50%; background: var(--hs-accent); }
  html.hs-rail .hs-i .hs-b.is-warn { background: var(--hs-warn); } html.hs-rail .hs-i .hs-b.is-bad { background: var(--hs-bad); }
  html.hs-rail .hs-i .hs-d { position: absolute; top: 5px; right: 9px; }
  html.hs-rail .hs-rail-toggle { justify-content: center; padding: 0; }
  html.hs-rail .hs-rt-a { display: none; } html.hs-rail .hs-rt-b { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-pill, .hs-side, .hs-gh .hs-ic, body:not(.page-login) { transition: none; }
}
html.no-motion .hs-pill, html.no-motion .hs-side, html.no-motion body:not(.page-login) { transition: none; }

/* ================= phone: slim top bar, tab bar, More sheet ================= */
@media (max-width: 1023px) {
  .hs-side {
    position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 56px; padding: 6px max(14px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--hs-s1) 96%, transparent); backdrop-filter: blur(18px) saturate(120%);
    color: var(--hs-tx); border: 0; border-bottom: 1px solid var(--hs-seam);
  }
  .hs-brand { display: flex; align-items: center; gap: 9px; color: var(--hs-tx); text-decoration: none; }
  .hs-mark { width: 24px; height: 24px; color: var(--hs-accent); }
  .hs-word { font: 700 17px/1 'Apfel Grotezk', 'Archivo', sans-serif; color: var(--hs-tx); -webkit-text-fill-color: currentColor; background: none; }
  .hs-word span { color: var(--hs-dim); }
  .hs-search { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--hs-seam2); background: none; color: var(--hs-tx); cursor: pointer; }
  .hs-search-t, .hs-key, .hs-nav, .hs-rail-toggle { display: none; }
  .hs-tabs {
    position: fixed; z-index: 130; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px 6px env(safe-area-inset-bottom); min-height: calc(64px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--hs-s1) 97%, transparent); backdrop-filter: blur(18px) saturate(125%);
    border-top: 1px solid var(--hs-seam2);
  }
  .hs-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 56px; margin: 0; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--hs-dim); font-size: 12px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .11s var(--hs-ease), color .15s; }
  .hs-tab .hs-ic { width: 22px; height: 22px; }
  .hs-tab:active { transform: scale(.95); }
  .hs-tab[aria-current="page"], .hs-tab.is-open { color: var(--hs-tx); }
  .hs-tab[aria-current="page"] .hs-ic, .hs-tab.is-open .hs-ic { color: var(--hs-accent-tx); }
  .hs-tab .hs-b { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; font-size: 11px; border: 2px solid var(--hs-s1); box-sizing: content-box; }
  .hs-tab .hs-b::after { content: none; }
}

/* More sheet: a native dialog, anchored to the bottom, dragged down to dismiss */
.hs-more { margin: auto 0 0; padding: 0; width: 100%; max-width: none; max-height: 90dvh; border: 0; border-top: 1px solid var(--hs-seam2); border-radius: 20px 20px 0 0; background: var(--hs-s1); color: var(--hs-tx); overflow: hidden; box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .5); transform: translateY(var(--hs-drag, 0)); transition: transform .22s var(--hs-ease); }
.hs-more[open] { display: flex; flex-direction: column; animation: hs-sheet-in .28s var(--hs-ease); }
.hs-more::backdrop { background: rgb(0 0 0 / .55); }
.hs-more.is-dragging { transition: none; animation: none; }
.hs-more.is-closing { transition: transform .22s var(--hs-ease); transform: translateY(100%); }
@keyframes hs-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
html.no-motion .hs-more[open] { animation: none; } html.no-motion .hs-more.is-closing { transition: none; }
@media (prefers-reduced-motion: reduce) { .hs-more[open] { animation: none; } .hs-more.is-closing { transition: none; } }
.hs-more-top { flex: none; padding: 0 16px 8px; touch-action: none; }
.hs-grab { display: grid; place-items: center; height: 22px; cursor: grab; }
.hs-grab i { width: 40px; height: 4px; border-radius: 2px; background: var(--hs-faint); opacity: .55; }
.hs-more-h { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.hs-more-h b { font-size: 15px; font-weight: 600; color: var(--hs-dim); }
.hs-more .hs-x { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.hs-x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--hs-dim); cursor: pointer; border-radius: 12px; }
.hs-msearch { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--hs-bg); border: 1px solid var(--hs-seam2); color: var(--hs-dim); }
.hs-msearch:focus-within { border-color: var(--hs-accent); }
.hs-msearch input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0 !important; box-shadow: none; color: var(--hs-tx); font-size: 16px; font-weight: 500; -webkit-appearance: none; appearance: none; padding: 0; }
.hs-msearch input::-webkit-search-cancel-button { display: none; }
.hs-more-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.hs-capture { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 6px; }
.hs-capture label { display: grid; gap: 4px; }
.hs-capture label > span { font-size: 13px; font-weight: 500; color: var(--hs-dim); letter-spacing: 0; text-transform: none; }
.hs-capture input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--hs-seam2); background: var(--hs-bg); color: var(--hs-tx); font-size: 16px; }
.hs-capture button { height: 44px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--hs-accent); color: var(--hs-accent-ink); font-weight: 600; cursor: pointer; }
.hs-capture output { grid-column: 1 / -1; font-size: 13px; color: var(--hs-dim); }
.hs-capture output:empty { display: none; }
.hs-msec { margin-top: 20px; }
.hs-msec[hidden], .hs-grid [hidden], .hs-list [hidden], .hs-none[hidden] { display: none; }
.hs-msec h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--hs-dim); letter-spacing: 0; text-transform: none; }
.hs-chips { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hs-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; flex: none; border-radius: 22px; border: 1px solid var(--hs-seam2); color: var(--hs-tx); font-size: 14px; font-weight: 500; text-decoration: none; }
.hs-chip .hs-ic { color: var(--hs-accent-tx); }
.hs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 359px) { .hs-grid { grid-template-columns: minmax(0, 1fr); } }
.hs-tile { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 56px; padding: 12px; border-radius: 14px; background: var(--hs-s2); border: 1px solid var(--hs-seam); color: var(--hs-tx); text-decoration: none; transition: transform .11s var(--hs-ease); }
.hs-tile:active, .hs-row:active, .hs-chip:active { transform: scale(.97); }
.hs-tic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 11px; background: color-mix(in srgb, var(--hs-accent) 14%, transparent); color: var(--hs-accent-tx); }
.hs-tic .hs-ic { width: 20px; height: 20px; }
.hs-tn { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.hs-ts { font-size: 13px; line-height: 1.3; color: var(--hs-dim); overflow-wrap: anywhere; }
.hs-tile .hs-b { position: absolute; top: 12px; right: 12px; }
.hs-tile .hs-d { position: absolute; top: 18px; right: 16px; }
.hs-tile .hs-b:not([hidden]) ~ .hs-d { display: none; }
.hs-tile[aria-current="page"], .hs-row[aria-current="page"] { border-color: var(--hs-accent); box-shadow: 0 0 0 1px var(--hs-accent), 0 0 0 5px color-mix(in srgb, var(--hs-accent) 16%, transparent); }
.hs-sys > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; margin-top: 4px; list-style: none; border-radius: 14px; background: var(--hs-s2); border: 1px solid var(--hs-seam); font-size: 15px; font-weight: 600; cursor: pointer; }
.hs-sys > summary::-webkit-details-marker { display: none; }
.hs-sys > summary span { flex: 1; }
.hs-sys > summary small { color: var(--hs-dim); font-size: 13px; font-weight: 400; }
.hs-sys > summary .hs-ic { width: 16px; height: 16px; color: var(--hs-dim); transition: transform .2s var(--hs-ease); }
.hs-sys:not([open]) > summary .hs-ic { transform: rotate(-90deg); }
.hs-list { display: grid; gap: 6px; margin-top: 8px; }
.hs-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--hs-s2); border: 1px solid var(--hs-seam); color: var(--hs-tx); text-decoration: none; transition: transform .11s var(--hs-ease); }
.hs-row .hs-tic { width: 36px; height: 36px; margin: 0; }
.hs-tx { flex: 1; min-width: 0; display: grid; }
.hs-tx b { font-size: 15px; font-weight: 600; }
.hs-tx small { font-size: 13px; color: var(--hs-dim); }
.hs-none { margin: 24px 0 0; color: var(--hs-dim); font-size: 14px; text-align: center; }

/* ================= palette skin (behaviour lives in base.html) ================= */
#palette .palette-box { background: var(--hs-s1); color: var(--hs-tx); border: 1px solid var(--hs-seam2); border-radius: 16px; box-shadow: 0 24px 80px -12px rgb(0 0 0 / .55); }
#palette .command-card { border-color: var(--hs-seam); background: var(--hs-s2); color: var(--hs-tx); border-radius: 12px; }
#palette .command-card:hover, #palette .command-card:focus-visible { border-color: color-mix(in srgb, var(--hs-accent) 55%, var(--hs-seam)); }
#palette .command-glyph { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--hs-accent) 14%, transparent); color: var(--hs-accent-tx); }
#palette .command-glyph .hs-ic { width: 18px; height: 18px; }
#palette .pal-item.is-selected { background: color-mix(in srgb, var(--hs-accent) 13%, transparent); box-shadow: inset 3px 0 var(--hs-accent); }
#palette .pal-page-hit { display: flex; align-items: center; gap: 12px; }
#palette .pal-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--hs-tx) 7%, transparent); color: var(--hs-dim); }
#palette .pal-item.is-selected .pal-ic { background: color-mix(in srgb, var(--hs-accent) 18%, transparent); color: var(--hs-accent-tx); }
#palette .pal-sig { margin-left: auto; color: var(--hs-dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
#palette .pal-jump { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--hs-seam); }
#palette .pal-page { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--hs-tx); font-size: 14px; text-decoration: none; min-width: 0; }
#palette .pal-page:hover, #palette .pal-page:focus-visible { background: color-mix(in srgb, var(--hs-accent) 12%, transparent); }
#palette .pal-page .hs-ic { color: var(--hs-dim); }
#palette .pal-page span { flex: none; font-weight: 500; }
#palette .pal-page small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--hs-dim); font-size: 12px; }
#palette .pal-page small:empty { display: none; }

/* the page's own scroll padding: leave room for the sticky phone bar */
@media (max-width: 1023px) { html { scroll-padding-top: 64px; } }

/* the palette sits above the phone tab bar (130) so its lower half is never covered */
#palette.palette-overlay { z-index: 150; }
.hs-more a, .hs-more a:hover, .hs-more a *, .hs-tabs a, .hs-tabs a:hover, #palette .pal-page, #palette .pal-page:hover { text-decoration: none !important; }
