/* Dash 3.0. Gordita throughout, like Lander and Bench. Every colour comes from the
   chosen palette's six values (--p-*), set inline from Settings > Look. */

@font-face { font-family: "Gordita"; src: url("fonts/gordita-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gordita"; src: url("fonts/gordita-regularitalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gordita"; src: url("fonts/gordita-medium.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Gordita"; src: url("fonts/gordita-bold.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }

body.dash {
  --p-base: #F8EFEC; --p-surface: #FFFFFF; --p-contrast: #15171C; --p-muted: #5C616B; --p-accent: #A02A57; --p-on: #FFFFFF;
  --bg: var(--p-base);
  --surface: color-mix(in srgb, var(--p-base) 25%, #fff);
  --raised: color-mix(in srgb, var(--p-base) 96.5%, #000);
  --sunk: color-mix(in srgb, var(--p-base) 95%, #000);
  --line: color-mix(in srgb, var(--p-base) 93%, #000);
  --line2: color-mix(in srgb, var(--p-base) 87%, #000);
  --divider: color-mix(in srgb, var(--p-base) 93%, #000);
  --hover: color-mix(in srgb, var(--p-base) 95.5%, #000);
  --text: #15171C; --textmid: #2E323A; --text2: #4C515B; --text3: #5C616B;
  --accent: var(--p-accent); --on-accent: var(--p-on);
  --dash-tint: color-mix(in srgb, var(--p-accent) 10%, #fff);
  --dash-ink: var(--p-accent);
  --dash-ink2: color-mix(in srgb, var(--p-accent) 55%, #fff);
  --side: color-mix(in srgb, var(--p-base) 70%, #fff);
  --acc-soft: color-mix(in srgb, var(--p-accent) 11%, var(--surface));
  --acc-text: color-mix(in srgb, var(--p-accent) 80%, #000);
  --panel-shadow: 0 1px 2px rgba(20,22,28,0.04), 0 8px 24px rgba(20,22,28,0.04);
  --lift: 0 18px 40px rgba(20,22,28,0.10);
  --danger: #b02a37; --danger-soft: #f8dfe1; --warn: #a8540f; --warn-soft: #fbe9db; --ok: #1f7a43; --ok-soft: #dcf0e3;
  /* Names the older components use. */
  --ink: var(--text); --muted: var(--text2); --soft-ink: var(--textmid); --line-strong: var(--line2);
  --accent-ink: var(--on-accent); --accent-soft: var(--acc-soft); --accent-deep: var(--acc-text);
  --shadow: var(--panel-shadow); --shadow-lift: var(--lift); --pane-edge: none;
  --display: "Gordita", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Gordita", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Gordita", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side-w: 252px;
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
html.is-dark body.dash {
  --surface: color-mix(in srgb, var(--p-base) 95.5%, #fff);
  --raised: color-mix(in srgb, var(--p-base) 92%, #fff);
  --sunk: color-mix(in srgb, var(--p-base) 90%, #000);
  --line: color-mix(in srgb, var(--p-base) 91%, #fff);
  --line2: color-mix(in srgb, var(--p-base) 84%, #fff);
  --divider: color-mix(in srgb, var(--p-base) 93%, #fff);
  --hover: color-mix(in srgb, var(--p-base) 90%, #fff);
  --text: color-mix(in srgb, #fff 93%, var(--p-base)); --textmid: color-mix(in srgb, #fff 80%, var(--p-base));
  --text2: color-mix(in srgb, #fff 68%, var(--p-base)); --text3: color-mix(in srgb, #fff 56%, var(--p-base));
  --dash-tint: color-mix(in srgb, var(--p-accent) 16%, var(--p-base));
  --dash-ink2: color-mix(in srgb, var(--p-accent) 55%, var(--p-base));
  --side: color-mix(in srgb, var(--p-base) 88%, #000);
  --acc-soft: color-mix(in srgb, var(--p-accent) 16%, var(--p-base));
  --acc-text: color-mix(in srgb, var(--p-accent) 85%, #fff);
  --panel-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  --lift: 0 18px 40px rgba(0,0,0,0.35);
  --danger: #f08795; --danger-soft: #3a1c20; --warn: #f0a46b; --warn-soft: color-mix(in srgb, #f0a46b 14%, var(--p-base)); --ok: #74cf84; --ok-soft: color-mix(in srgb, #74cf84 14%, var(--p-base));
  color-scheme: dark;
}
:where(.dash) *, :where(.dash) *::before, :where(.dash) *::after { box-sizing: border-box; }
:where(.dash) :is(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.dash) button { cursor: pointer; }

/* ================================================================ BUILDING BLOCKS (from HQ 2.0) */
:where(.dash) a { color: var(--accent-deep); }
.dash :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash [hidden] { display: none !important; }
.dash h1, .dash h2, .dash h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
.dash .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:where(.dash) svg { flex: none; width: 16px; height: 16px; }

.dash input:not([type=checkbox]):not([type=radio]):not([type=color]), .dash select, .dash textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
}
.dash textarea { min-height: 90px; resize: vertical; }
.dash input:focus, .dash select:focus, .dash textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.dash input[type=checkbox], .dash input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.hq-field { display: grid; gap: 6px; }
.hq-field > label, .hq-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.hq-field .hint { font-size: 12px; color: var(--muted); }
.hq-check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.hq-check.top { align-items: flex-start; } .hq-check.top input { margin-top: 2px; }

.hq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); line-height: 1.2; transition: background .12s, border-color .12s; }
.dash a.hq-btn { color: var(--ink); }
.hq-btn:hover { border-color: var(--muted); }
.hq-btn svg { width: 16px; height: 16px; }
.hq-btn.primary, .dash a.hq-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.hq-btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.hq-btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.hq-btn.ghost:hover { background: var(--sunk); color: var(--ink); }
.hq-btn.danger { color: var(--danger); }
.hq-btn.small { min-height: 32px; padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.hq-btn.icon { width: 40px; min-height: 40px; padding: 0; }
.hq-btn.icon.small { width: 32px; min-height: 32px; }
.hq-btn.block { width: 100%; min-height: 48px; font-size: 16px; }
.hq-btn[disabled] { opacity: .55; cursor: default; }
.hq-msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.hq-msg.err { background: var(--danger-soft); color: var(--danger); }
.hq-msg.ok { background: var(--accent-soft); color: var(--accent-deep); }
.hq-msg.warn { background: var(--warn-soft); color: var(--warn); }

.hq-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; flex: none; }

/* ============================================================== DASHBOARD */
.hq-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .15s; }
.hq-top.scrolled { border-bottom-color: var(--line); }
.hq-top-in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 12px 32px; }
.hq-home { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink) !important; min-height: 44px; }
.hq-home .hq-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
.hq-top .title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.hq-nav { display: flex; gap: 2px; margin-left: 10px; }
.hq-nav button { border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 14px; }
.hq-nav button:hover { color: var(--ink); background: var(--sunk); }
.hq-nav button[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.hq-top .grow { flex: 1; }
.hq-searchbtn { flex: 0 1 460px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); text-align: left; font-size: 14px; transition: border-color .12s; }
.hq-searchbtn:hover { border-color: var(--muted); }
.hq-searchbtn svg { width: 17px; height: 17px; }
.hq-searchbtn span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 1px 6px; background: var(--sunk); line-height: 1.5; }
.hq-tools { display: flex; align-items: center; gap: 6px; }
.hq-tools .hq-btn.icon { border-color: transparent; background: transparent; color: var(--soft-ink); }
.hq-tools .hq-btn.icon:hover { background: var(--sunk); color: var(--ink); }
.hq-me { position: relative; }
.hq-me > button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 50%; padding: 0; overflow: hidden; font-weight: 600; font-size: 14px; }
.hq-me img { width: 100%; height: 100%; object-fit: cover; }
.hq-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 6px; display: grid; z-index: 30; }
.hq-pop a, .hq-pop button { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; text-align: left; color: var(--ink) !important; text-decoration: none; font-size: 14px; width: 100%; }
.hq-pop a:hover, .hq-pop button:hover { background: var(--sunk); }
.hq-pop svg { width: 16px; height: 16px; color: var(--muted); }
.hq-pop .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.hq-pop .who b { display: block; color: var(--ink); font-size: 14px; }
.hq-pop .sep { height: 1px; background: var(--line); margin: 4px 2px; }

.hq-main { max-width: 1280px; margin: 0 auto; padding: 22px 32px 72px; display: grid; gap: 32px; }
.hq-hero { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-top: 16px; }
.hq-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.hq-hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.035em; }
.hq-hero .date, .hq-hero .lede { color: var(--muted); margin-top: 10px; font-size: 16px; }
.hq-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); background: transparent; }
.hq-pill svg { width: 14px; height: 14px; }
button.hq-pill:hover { color: var(--ink); border-color: var(--line-strong); }

.hq-row2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.hq-row2 > .wide { flex: 2 1 560px; min-width: 0; }
.hq-row2 > .narrow { flex: 1 1 340px; min-width: 0; }
.hq-row2.bottom { align-items: flex-start; }
.hq-row2.bottom > .wide { flex: 3 1 520px; }
.hq-row2.bottom > .narrow { flex: 2 1 360px; display: grid; gap: 20px; }

.hq-pane { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow), var(--pane-edge); }
.hq-pane-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hq-pane-head h2 { font-size: 18px; letter-spacing: -0.015em; }
.hq-pane-head .n { font-size: 13px; color: var(--muted); }
.hq-pane-head .grow { flex: 1; }
.hq-pane-head .link { font-size: 13px; color: var(--muted); text-decoration: none; border: 0; background: none; padding: 4px 0; }
.hq-pane-head .link:hover { color: var(--ink); }
.hq-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunk); }
.hq-seg button { border: 0; background: transparent; border-radius: 8px; padding: 5px 11px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hq-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Today */
.hq-today { display: grid; }
.hq-ti { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px; margin: 0 -12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.hq-ti:hover { background: var(--sunk); }
.hq-ti .t { width: 54px; flex: none; font-size: 13px; color: var(--soft-ink); }
.hq-ti .t.over { color: var(--danger); font-weight: 500; }
.hq-ti .bar { width: 3px; align-self: stretch; min-height: 38px; border-radius: 2px; background: var(--c, var(--accent)); flex: none; }
.hq-ti .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hq-ti .txt b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.hq-ti .txt small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-ti .txt a.stretch { color: inherit; text-decoration: none; }
.hq-ti .txt a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.hq-ti .acts { display: flex; gap: 6px; position: relative; z-index: 1; }
.hq-ti .acts .hq-btn { background: transparent; width: 34px; padding: 0; }
.hq-ti .acts .lbl { display: none; }
.hq-ti .acts .hq-btn:hover { background: var(--surface); }
.hq-ti .done { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; padding: 0; color: transparent; position: relative; z-index: 1; flex: none; }
.hq-ti .done:hover { border-color: var(--accent); color: var(--accent); }
.hq-ti .done svg { width: 12px; height: 12px; }
.hq-chipline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hq-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--sunk); color: var(--soft-ink); }
.hq-mini.over { background: var(--danger-soft); color: var(--danger); }
.hq-mini svg { width: 12px; height: 12px; }
.hq-quiet { padding: 22px 4px 8px; color: var(--muted); font-size: 14px; display: grid; gap: 10px; justify-items: start; }
.hq-quiet b { color: var(--ink); font-weight: 500; font-size: 15px; }

/* Attention */
.hq-att { display: flex; align-items: center; gap: 12px; padding: 11px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; color: var(--ink) !important; border: 0; background: transparent; width: calc(100% + 24px); text-align: left; }
.hq-att:hover { background: var(--sunk); }
.hq-att .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hq-att .txt b { font-weight: 500; font-size: 15px; }
.hq-att .txt small { font-size: 13px; color: var(--muted); }
.hq-att > svg { width: 16px; height: 16px; color: var(--muted); }

/* Icons in tinted squares */
.ico { --c: var(--accent); display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 24%, transparent); overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico.letters { font-family: var(--display); font-weight: 700; }
.ico svg { width: 55%; height: 55%; }
.hq-att .ico, .hq-today .ico { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.ico.warn { --c: var(--warn); } .ico.err { --c: var(--danger); } .ico.neutral { --c: var(--muted); }

/* Apps */
.hq-section { display: grid; gap: 14px; }
.hq-section-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-section-head h2 { font-size: 20px; letter-spacing: -0.02em; }
.hq-section-head .count { font-size: 13px; color: var(--muted); }
.hq-section-head .grow { flex: 1; }

.hq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hq-tile { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; min-height: 200px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow), var(--pane-edge); transition: transform .15s, box-shadow .15s, border-color .15s; }
.hq-tile:not(.edit):hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.hq-tile .head { display: flex; align-items: flex-start; gap: 14px; }
.hq-tile .ico { width: 52px; height: 52px; border-radius: 15px; font-size: 26px; }
.hq-tile .ico .dashicons { width: 26px; height: 26px; font-size: 26px; }
.hq-tile .ico.letters { font-size: 19px; }
.hq-tile .who { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hq-tile h3 { font-size: 19px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.015em; }
.hq-tile h3 a { color: var(--ink); text-decoration: none; }
.hq-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; z-index: 0; }
.hq-tile h3 .ext { width: 15px; height: 15px; color: var(--muted); }
.hq-tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hq-tile .summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--warn); font-weight: 500; }
.hq-tile .summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hq-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--c, var(--warn)) 16%, var(--surface)); color: color-mix(in srgb, var(--c, var(--warn)) 72%, var(--ink)); letter-spacing: 0; }
.hq-tile .qa { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.hq-tile .qa a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.hq-tile .qa a:hover { border-color: var(--muted); }
.hq-tile .qa a.sec { background: transparent; color: var(--soft-ink); }
.hq-tile .qa svg { width: 14px; height: 14px; }
.hq-tile .foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--divider); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hq-tile .foot .r { margin-left: auto; }
.hq-tile .num { position: absolute; top: 18px; right: 18px; z-index: 1; font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 5px; opacity: 0; transition: opacity .15s; }
.hq-grid:hover .hq-tile .num { opacity: 1; }
.hq-tile.add { border-style: dashed; background: transparent; box-shadow: none; align-items: flex-start; justify-content: center; text-align: left; color: var(--muted); cursor: pointer; }
.hq-tile.add:hover { color: var(--ink); border-color: var(--muted); transform: none; }
.hq-tile.add .plus { width: 46px; height: 46px; border-radius: 13px; background: var(--sunk); display: grid; place-items: center; }
.hq-tile.add .plus svg { width: 20px; height: 20px; }
.hq-tile.add b { color: var(--ink); font-weight: 500; font-size: 16px; }

/* Arrange mode */
.hq-grid.editing .hq-tile { cursor: grab; animation: hq-wiggle .3s ease-in-out; }
.hq-grid.editing .hq-tile.dragging { opacity: .4; }
.hq-grid.editing .hq-tile.over { outline: 2px dashed var(--accent); outline-offset: 4px; }
.hq-grid.editing .hq-tile.is-hidden { opacity: .5; background: var(--sunk); }
@keyframes hq-wiggle { 0%,100% { transform: rotate(0); } 33% { transform: rotate(-.6deg); } 66% { transform: rotate(.6deg); } }
.hq-tile .tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.hq-tile .tools button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); display: grid; place-items: center; padding: 0; }
.hq-tile .tools button:hover { color: var(--ink); border-color: var(--muted); }
.hq-tile .tools svg { width: 16px; height: 16px; }
.hq-tile .handle { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); }

/* Widgets */
.hq-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.hq-w { display: flex; flex-direction: column; gap: 14px; }
.hq-w .wh { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hq-w .wh i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.hq-w .wh a { margin-left: auto; color: var(--muted); text-decoration: none; }
.hq-w .wh a:hover { color: var(--ink); }
.hq-w .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hq-w .big b { font-family: var(--display); font-weight: 500; font-size: 36px; letter-spacing: -0.035em; line-height: 1; }
.hq-w .big span { color: var(--muted); font-size: 14px; }
.hq-w .next { font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.025em; line-height: 1.15; }
.hq-w .lines { display: grid; gap: 3px; font-size: 14px; }
.hq-w .lines span:not(:first-child) { color: var(--muted); font-size: 13px; }
.hq-w .meter { height: 10px; border-radius: 5px; background: var(--sunk); overflow: hidden; display: flex; gap: 2px; }
.hq-w .meter i { display: block; height: 100%; }
.hq-w .legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13px; color: var(--soft-ink); }
.hq-w .legend span { display: flex; align-items: center; gap: 8px; }
.hq-w .legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.hq-w .wl { display: grid; }
.hq-w .wl a, .hq-w .wl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--divider); font-size: 14px; color: var(--ink); text-decoration: none; }
.hq-w .wl small { color: var(--muted); font-size: 13px; }
.hq-w .wfoot { margin-top: auto; }

/* Activity */
.hq-act { display: grid; }
.hq-act > div { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--divider); font-size: 14px; line-height: 1.5; }
.hq-act > div:first-child { border-top: 0; }
.hq-act .when { width: 84px; flex: none; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.hq-act .what { flex: 1; min-width: 0; color: var(--soft-ink); }
.hq-act .what b { font-weight: 500; color: color-mix(in srgb, var(--c, var(--ink)) 72%, var(--ink)); }
.hq-act .what a { color: inherit; text-decoration: none; }
.hq-act .what a:hover { text-decoration: underline; }

/* Health card */
.hq-hrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 14px; }
.hq-hrow:first-of-type { border-top: 0; }
.hq-hrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.hq-hrow .dot.update { background: var(--warn); } .hq-hrow .dot.error, .hq-hrow .dot.down { background: var(--danger); } .hq-hrow .dot.unchecked { background: var(--line-strong); }
.hq-hrow .nm { flex: 1; min-width: 0; }
.hq-hrow .st { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hq-hrow .st.update { color: var(--warn); } .hq-hrow .st.error, .hq-hrow .st.down { color: var(--danger); }

/* Claude card */
.hq-claude { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); display: grid; gap: 12px; }
.hq-claude .hd { display: flex; align-items: center; gap: 10px; }
.hq-claude .hd .ico { width: 32px; height: 32px; border-radius: 9px; }
.hq-claude h2 { font-size: 17px; }
.hq-claude p { margin: 0; font-size: 14px; color: var(--muted); }
.hq-claude .ex { display: flex; flex-wrap: wrap; gap: 8px; }
.hq-claude .ex span { font-size: 13px; padding: 6px 10px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }

.hq-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.hq-empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 20px; display: grid; gap: 12px; justify-items: center; }
.hq-empty h3 { color: var(--ink); font-size: 20px; }

.hq-nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); }
.hq-nudge .t { flex: 1 1 260px; }
.hq-nudge b { color: var(--ink); }

/* Contacts */
.hq-people { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.hq-plist { padding: 14px; display: grid; gap: 10px; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: hidden; grid-template-rows: auto auto 1fr; }
.hq-plist .rows { overflow-y: auto; display: grid; align-content: start; gap: 2px; margin: 0 -6px; padding: 0 6px; }
.hq-prow { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; border: 0; background: transparent; text-align: left; width: 100%; color: var(--ink); }
.hq-prow:hover { background: var(--sunk); }
.hq-prow[aria-current="true"] { background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line-strong); }
.hq-prow .txt { flex: 1; min-width: 0; display: grid; }
.hq-prow .txt b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-prow .txt small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-dots3 { display: flex; gap: 4px; }
.hq-dots3 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); }
.hq-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--sunk); color: var(--soft-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none; border: 1px solid var(--line); }
.hq-ava.big { width: 64px; height: 64px; font-size: 20px; }
.hq-pdetail { display: grid; gap: 22px; }
.hq-pdetail .hd { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hq-pdetail .hd .nm { flex: 1; min-width: 200px; }
.hq-pdetail h1 { font-size: 30px; letter-spacing: -0.03em; }
.hq-pdetail .role { color: var(--muted); margin-top: 6px; }
.hq-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hq-facts > div { background: var(--surface); padding: 12px 16px; display: grid; gap: 2px; min-width: 0; }
.hq-facts small { font-size: 12px; color: var(--muted); }
.hq-facts span { font-size: 14px; overflow-wrap: anywhere; }
.hq-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hq-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.hq-link .ico { width: 36px; height: 36px; border-radius: 10px; }
.hq-link .txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hq-link .txt small { font-size: 12px; color: var(--muted); }
.hq-link .txt b { font-weight: 500; font-size: 14px; }
.hq-link .x { position: absolute; top: 6px; right: 6px; }
.hq-notes { white-space: pre-wrap; color: var(--soft-ink); font-size: 14px; margin: 0; }
.hq-h3 { font-size: 15px !important; font-weight: 600 !important; letter-spacing: 0 !important; margin-bottom: 10px !important; }

/* Settings */
.hq-settings { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.hq-snav { position: sticky; top: 84px; display: grid; gap: 2px; }
.hq-snav button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.hq-snav button:hover { background: var(--sunk); color: var(--ink); }
.hq-snav button[aria-current="true"] { background: var(--accent-soft); color: var(--accent-deep); }
.hq-spanel { display: grid; gap: 20px; }
.hq-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 16px; box-shadow: var(--pane-edge); }
.hq-box h3 { font-size: 18px; }
.hq-box > p { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.hq-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hq-pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hq-pal { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; font-size: 13px; color: var(--ink); }
.hq-pal:hover { border-color: var(--line-strong); }
.hq-pal[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.hq-pal .sw { position: relative; height: 54px; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 8px; gap: 6px; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.hq-pal .sw b { height: 8px; border-radius: 4px; }
.hq-pal .sw i { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; border-radius: 50%; }
.hq-pal .nm { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; line-height: 1.25; }
.hq-pal .nm small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.hq-pal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-pal-head .grow { flex: 1; }
.hq-themes { display: flex; gap: 10px; flex-wrap: wrap; }
.hq-themes button { display: grid; gap: 6px; justify-items: center; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.hq-themes button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); color: var(--ink); }
.hq-themes .mini { width: 64px; height: 40px; border-radius: 7px; border: 1px solid var(--line-strong); display: grid; place-items: center; overflow: hidden; }
.hq-themes .mini b { display: block; width: 16px; height: 16px; border-radius: 50%; }
.hq-appcol { display: grid; }
.hq-appcol > div { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--divider); flex-wrap: wrap; }
.hq-appcol > div:first-child { border-top: 0; }
.hq-appcol .ico { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.hq-appcol .nm { width: 130px; font-weight: 500; font-size: 14px; }
.hq-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hq-list > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.hq-list > div:first-child { border-top: 0; }
.hq-list .ico { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.hq-list .ico .dashicons { font-size: 20px; width: 20px; height: 20px; }
.hq-list .meta { flex: 1 1 180px; min-width: 0; display: grid; }
.hq-list .meta b { font-weight: 600; font-size: 14px; }
.hq-list .meta small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-list .meta small.wrap { white-space: normal; }
.hq-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); background: var(--accent-soft); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.hq-tag.warn { color: var(--warn); background: var(--warn-soft); }
.hq-tag.err { color: var(--danger); background: var(--danger-soft); }
.hq-tag.ok { color: var(--ok); background: var(--ok-soft); }
.hq-tag.muted { color: var(--muted); background: var(--sunk); }
.hq-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; background: var(--sunk); border-radius: 10px; padding: 14px; white-space: pre; overflow-x: auto; line-height: 1.6; margin: 0; }

/* Swatches */
.hq-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hq-colors button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); padding: 0; }
.hq-colors button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.hq-colors button.reset { display: grid; place-items: center; font-size: 11px; color: var(--muted); background: var(--surface); width: auto; padding: 0 9px; border-radius: 14px; height: 28px; }
.hq-colors input[type=color] { width: 36px; height: 30px; padding: 0; border: 0; background: none; min-height: 0; }

/* Modal */
.hq-scrim { position: fixed; inset: 0; background: color-mix(in srgb, #0b0a08 50%, transparent); z-index: 50; display: grid; place-items: center; padding: 16px; animation: hq-fade .12s ease-out; }
html.is-dark .hq-scrim { background: rgba(0,0,0,.6); }
@keyframes hq-fade { from { opacity: 0; } }
.hq-modal { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lift); padding: 24px; display: grid; gap: 16px; }
.hq-modal.wide { width: min(680px, 100%); }
.hq-modal h3 { font-size: 22px; }
.hq-modal .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.hq-modal .actions .left { margin-right: auto; }
.hq-emoji { display: flex; flex-wrap: wrap; gap: 6px; }
.hq-emoji button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 20px; padding: 0; }
.hq-emoji button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hq-preview { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.hq-preview .ico { width: 48px; height: 48px; border-radius: 13px; font-size: 24px; }

/* Command palette */
.hq-cmd-scrim { place-items: start center; padding-top: 9vh; }
.hq-cmd { width: min(660px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-lift), var(--pane-edge); overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; max-height: 80vh; }
.hq-cmd .in { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; }
.hq-cmd .in svg { width: 19px; height: 19px; color: var(--muted); }
.dash .hq-cmd .in input { border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 17px; padding: 0 !important; min-height: 44px; letter-spacing: -0.01em; }
.hq-cmd .scopes { display: flex; gap: 4px; padding: 0 14px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.hq-cmd .scopes button { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.hq-cmd .scopes button[aria-selected="true"] { border-color: var(--line-strong); background: var(--sunk); color: var(--ink); }
.hq-cmd .res { overflow-y: auto; padding: 8px; min-height: 120px; }
.hq-cmd .grp { margin: 10px 12px 6px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hq-cmd .it { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border-radius: 11px; color: var(--ink); text-decoration: none; cursor: pointer; }
.hq-cmd .it[aria-selected="true"] { background: var(--sunk); }
.hq-cmd .it .ico { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; }
.hq-cmd .it .ico.letters { font-size: 13px; }
.hq-cmd .it .txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hq-cmd .it .txt b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-cmd .it .txt small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-cmd .it .meta { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hq-cmd .it kbd { visibility: hidden; }
.hq-cmd .it[aria-selected="true"] kbd { visibility: visible; }
.hq-cmd .none { padding: 48px 16px; text-align: center; color: var(--muted); }
.hq-cmd .ft { display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.hq-cmd .ft span { display: inline-flex; gap: 6px; align-items: center; }
.hq-cmd .ft .grow { flex: 1; }

/* Capture */
.hq-cap { width: min(600px, 100%); padding: 0; gap: 0; overflow: hidden; }
.hq-cap .top { display: flex; align-items: center; gap: 10px; padding: 18px 20px 4px; }
.hq-cap .top h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hq-cap .top span { font-size: 13px; color: var(--muted); }
.hq-cap .top .grow { flex: 1; }
.dash .hq-cap textarea { border: 0 !important; box-shadow: none !important; background: transparent !important; resize: none; font-size: 19px; line-height: 1.45; padding: 8px 20px; min-height: 96px; letter-spacing: -0.01em; }
.dash .hq-cap textarea:focus { box-shadow: none; }
.hq-cap .found { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; min-height: 16px; }
.hq-cap .found .hq-mini { height: 30px; padding: 0 6px 0 10px; border-radius: 8px; font-size: 13px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); }
.hq-cap .found .hq-mini button { border: 0; background: transparent; color: var(--muted); padding: 0 4px; font-size: 15px; line-height: 1; }
.hq-cap .found .add { height: 30px; border: 1px dashed var(--line-strong); background: transparent; border-radius: 8px; padding: 0 10px; font-size: 13px; color: var(--muted); }
.dash .hq-cap .found input[type=datetime-local] { width: auto; min-height: 30px; height: 30px; padding: 0 8px; font-size: 13px; }
.hq-cap .opts { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.hq-cap .dest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 0; padding: 0; margin: 0; }
.hq-cap .dest legend { float: left; margin-right: 6px; font-size: 13px; color: var(--muted); padding: 0; }
.hq-cap .dest label { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; cursor: pointer; color: var(--soft-ink); }
.hq-cap .dest label:has(input:checked) { border-color: color-mix(in srgb, var(--c, var(--accent)) 55%, transparent); background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)); color: var(--ink); }
.hq-cap .dest input { accent-color: var(--c, var(--accent)); }
.hq-cap .cal { display: flex; align-items: center; gap: 12px; }
.hq-cap .cal small { display: block; color: var(--muted); font-size: 13px; }
.hq-cap .bottom { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.hq-cap .bottom .hint { font-size: 12px; color: var(--muted); flex: 1; }

.hq-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 12px 10px 18px; border-radius: 12px; font-size: 14px; z-index: 60; box-shadow: var(--shadow-lift); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; }
.hq-toast button, .hq-toast a { border: 0; background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg) !important; border-radius: 8px; padding: 4px 10px; font-weight: 600; font-size: 13px; text-decoration: none; }

.hq-only-phone { display: none !important; }
@media (max-width: 860px) { .hq-only-phone { display: inline-flex !important; } }

/* Phone bar */
.hq-dock { display: none; }

@media (max-width: 860px) {
  .hq-nav { display: none; }
  .hq-people { grid-template-columns: 1fr; }
  .hq-plist { position: static; max-height: none; }
  .hq-people.has-sel .hq-plist { display: none; }
  .hq-people:not(.has-sel) .hq-pdetail { display: none; }
}
@media (max-width: 760px) {
  .hq-top-in { padding: 10px 16px; gap: 8px; }
  .hq-top .title { display: none; }
  .hq-searchbtn, .hq-tools .capture, .hq-tools .lock { display: none; }
  .hq-top .grow { flex: 1; }
  .hq-main { padding: 8px 16px 120px; gap: 24px; }
  .hq-pane { padding: 18px; border-radius: 18px; }
  .hq-ti { gap: 12px; }
  .hq-ti .t { width: 44px; font-size: 12px; }
  .hq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hq-tile { min-height: 150px; padding: 16px; gap: 12px; border-radius: 18px; }
  .hq-tile .head { flex-direction: column; gap: 12px; }
  .hq-tile .ico { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
  .hq-tile h3 { font-size: 16px; }
  .hq-tile p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hq-tile .qa, .hq-tile .foot { display: none; }
  .hq-act .when { width: 64px; }
  .hq-settings { grid-template-columns: 1fr; gap: 16px; }
  .hq-snav { position: static; display: flex; overflow-x: auto; gap: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .hq-snav button { white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; }
  .hq-two { grid-template-columns: 1fr; }
  .hq-box { padding: 18px; }
  .hq-cmd-scrim { padding: 8px; place-items: start stretch; }
  .hq-cmd { max-height: calc(100vh - 16px); }
  .hq-cmd .ft { display: none; }
  .hq-dock { display: flex; position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 25; gap: 10px; padding: 8px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); }
  .hq-dock .s { flex: 1; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--sunk); color: var(--muted); font-size: 15px; text-align: left; }
  .hq-dock .c { width: 48px; height: 48px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
  .hq-dock svg { width: 19px; height: 19px; }
  .hq-toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .hq-cap .bottom .hint { display: none; }
  .hq-cap .bottom { justify-content: flex-end; }
}
@media (max-width: 380px) { .hq-grid { grid-template-columns: 1fr; } }

/* ================================================================ OVERRIDES
   The older building blocks (buttons, fields, lists, modals) in the v4 look. */
.dash h1, .dash h2, .dash h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
:where(.dash) a { color: var(--acc-text); }
.hq-btn { border-radius: 12px; border-color: var(--line2); background: var(--surface); color: var(--text); font-weight: 500; }
.hq-btn:hover { border-color: var(--text3); background: var(--surface); }
.hq-btn.primary, .dash a.hq-btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.hq-btn.primary:hover { background: var(--textmid); border-color: var(--textmid); }
.hq-btn.small { border-radius: 10px; }
.dash input:not([type=checkbox]):not([type=radio]):not([type=color]), .dash select, .dash textarea { border-radius: 12px; border-color: var(--line2); background: var(--bg); }
.hq-field > label, .hq-label { font-size: 13px; font-weight: 500; color: var(--text); letter-spacing: 0; }
.hq-modal { border-radius: 26px; padding: 28px; border-color: var(--line2); background: var(--surface); }
.hq-modal h3 { font-size: 24px; }
.hq-box { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 22px !important; box-shadow: var(--panel-shadow) !important; padding: 24px !important; }
.hq-box h3 { font-size: 17px !important; }
.hq-pane { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--panel-shadow); }
.hq-spanel { display: grid; gap: 16px; }
.hq-seg { background: var(--raised); border-radius: 12px; }
.hq-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.hq-toast { border-radius: 14px; background: var(--text); color: var(--bg); }
.hq-cmd { border-radius: 22px; background: var(--surface); border-color: var(--line2); }
.hq-cmd .it[aria-selected="true"] { background: var(--hover); }
.hq .hq-hero, .ld-page .hq-hero { padding: 0; }
.ld-page .hq-hero h1 { font-size: 40px; }
.ico { border-radius: 10px; }
.ico.tinted { background: var(--tint); border-color: transparent; }
.ico.logo img { width: 78%; height: 78%; object-fit: contain; }
.ico.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.ico.sm img { width: 18px; height: 18px; }
.ico.dashico svg { width: 100%; height: 100%; }

/* ================================================================ SHELL
   The same sidebar as Lander and Bench. */
.ld-shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) calc(var(--side-w) - 1px), var(--line) calc(var(--side-w) - 1px), var(--line) var(--side-w), var(--bg) var(--side-w)); }
.ld-shell.is-collapsed { --side-w: 76px; }
.ld-side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.ld-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.ld-brand .who { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.ld-mark { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ld-mark.dash { background: var(--dash-tint); padding: 4px; }
.ld-mark.dash svg, .dh-markbox svg, .dl-mark svg { width: 100%; height: 100%; }
.ld-brand b { display: block; font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.ld-brand small { display: block; font-size: 13px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--text2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
.ld-icon-btn:hover { background: var(--hover); color: var(--text); }
.ld-icon-btn.square { border: 1px solid var(--line2); background: var(--surface); color: var(--text); }
.ld-icon-btn svg { width: 20px; height: 20px; }
.ld-new { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; padding: 0 14px; border: 0; width: 100%; }
.ld-new:hover { background: var(--textmid); }
.ld-new svg { width: 20px; height: 20px; stroke-width: 2; }
.ld-new span.grow { flex: 1; text-align: left; }
.ld-new small { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .7; border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; }
.ld-nav { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.ld-nav a { display: flex; align-items: center; gap: 12px; height: 40px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--textmid); padding: 0 12px; white-space: nowrap; }
.ld-nav a:hover { background: var(--hover); color: var(--text); }
.ld-nav a[aria-current="page"] { background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.ld-nav a > svg { width: 20px; height: 20px; flex-shrink: 0; }
.ld-nav a .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.ld-nav .ld-count { font-size: 12px; font-weight: 600; color: var(--text3); }
.ld-nav .ext svg { width: 14px; height: 14px; color: var(--text3); }
.ld-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }
.ld-nav .ld-sub { padding-left: 44px; height: 34px; font-size: 14px; }
.ld-nav .ld-sub[aria-current="page"] { background: transparent; color: var(--text); font-weight: 600; }
.ld-nav.apps a { height: 38px; }
.ld-side-h { margin: 18px 12px 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.ld-spacer { flex: 1; min-height: 12px; }
.ld-account { display: flex; align-items: center; gap: 10px; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); }
.ld-account .meta { flex: 1; min-width: 0; }
.ld-account b { display: block; font-size: 14px; font-weight: 600; }
.ld-account small { display: block; font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-collapsed .ld-side { padding-inline: 16px; }
.is-collapsed .ld-brand { flex-direction: column; align-items: center; gap: 12px; }
.is-collapsed .ld-hide-c { display: none !important; }
.is-collapsed .ld-nav a, .is-collapsed .ld-new { justify-content: center; padding: 0; width: 44px; margin: 0 auto; }
.is-collapsed .ld-account { justify-content: center; flex-direction: column; }

.ld-main { min-width: 0; display: flex; flex-direction: column; }
.ld-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ld-top-in { max-width: 1180px; margin: 0 auto; padding: 14px 48px; display: flex; align-items: center; gap: 8px; }
.ld-top .grow { flex: 1; }
.ld-search { flex: 1; min-width: 0; max-width: 520px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text3); text-align: left; font-size: 15px; }
.ld-search:hover { border-color: var(--line2); }
.ld-search svg { width: 18px; height: 18px; }
.ld-search span.grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-kbd { font-family: var(--mono); font-size: 11px; color: var(--text3); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; }
.ld-view:focus { outline: none; }
.ld-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 48px 80px; display: flex; flex-direction: column; gap: 24px; }
.ld-crumb { font-size: 14px; color: var(--text3); display: flex; align-items: center; gap: 6px; margin-bottom: -12px; }
.ld-crumb a { color: var(--text3); text-decoration: none; font-weight: 500; }
.ld-crumb a:hover { color: var(--text); }
.ld-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ld-h1 { font-size: 40px; line-height: 1.08; }
.ld-sub-text { margin: 8px 0 0; font-size: 15px; color: var(--text2); max-width: 640px; }
.ld-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ld-tabbar { display: none; }
.ld-only-phone { display: none !important; }

/* ================================================================ HOME (v4) */
body.is-home { min-height: 100vh; }
.dh-top { max-width: 1120px; margin: 0 auto; padding: 22px 32px; display: flex; align-items: center; gap: 6px; }
.dh-top .grow { flex: 1; }
.dh-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text) !important; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; margin-right: 8px; }
.dh-markbox { width: 32px; height: 32px; padding: 3px; border-radius: 9px; background: var(--dash-tint); display: flex; }
.dh-ib { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text2); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.dh-ib:hover { background: var(--hover); color: var(--text); }
.dh-ib svg { width: 19px; height: 19px; }
.dh-me { width: 40px; height: 40px; margin-left: 6px; padding: 0; border: 1px solid var(--line2); border-radius: 20px; background: var(--surface); overflow: hidden; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.dh-me img, .dh-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-main { max-width: 1120px; margin: 0 auto; padding: 56px 32px 80px; display: flex; flex-direction: column; gap: 56px; }
.dh-hello { display: flex; flex-direction: column; gap: 8px; }
.dh-hello h1 { margin: 0; font-size: 40px; line-height: 1.1; }
.dh-date { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--text3); letter-spacing: .08em; }
.dh-nudge { display: flex; align-items: center; gap: 12px; margin-top: -32px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 14px; color: var(--text2); }
.dh-nudge svg { width: 16px; height: 16px; color: var(--accent); }
.dh-nudge .grow, .dh-editbar .grow { flex: 1; }
.dh-link { border: 0; background: none; padding: 6px 4px; color: var(--text2); font-size: 14px; }
.dh-link.strong { color: var(--text); font-weight: 600; }
.dh-link:hover { color: var(--text); text-decoration: underline; }
.dh-editbar { display: flex; align-items: center; gap: 12px; margin-top: -32px; padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--acc-soft); color: var(--text); font-size: 14px; }

.dh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.dh-tile { position: relative; min-height: 280px; padding: 28px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--panel-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dh-tile:not(.add):not(.edit):hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: var(--lift); }
.dh-tile:not(.edit):focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.dh-tile .head { display: flex; align-items: flex-start; justify-content: space-between; }
.dh-tile .grow { flex: 1; }
.dh-ico { position: relative; width: 76px; height: 76px; border-radius: 22px; display: flex; }
.dh-ico .in { width: 100%; height: 100%; border-radius: 22px; font-size: 28px; border: 0; }
.dh-ico.logo .in img { width: 80%; height: 80%; }
.dh-ico.tinted .in { background: var(--tint); }
.dh-ico:not(.tinted) .in { background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)); }
.dh-ico .pip { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 7px; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); }
.dh-more { position: relative; z-index: 2; width: 40px; height: 40px; margin: -6px -8px 0 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--text3); }
.dh-more:hover, .dh-more[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.dh-more svg { width: 18px; height: 18px; }
.dh-tile .open { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); text-decoration: none; line-height: 1.15; }
.dh-tile a.open::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.dh-tile a.open:focus { outline: none; }
.dh-tile .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.dh-tile .st { font-size: 14px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-tile .go { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--text3); transition: all .18s ease; flex-shrink: 0; }
.dh-tile .go svg { width: 17px; height: 17px; stroke-width: 2; }
.dh-tile:hover .go { color: var(--text); background: var(--raised); }
.dh-tile .num { position: absolute; bottom: 12px; right: 18px; font-family: var(--mono); font-size: 10px; color: var(--text3); opacity: 0; transition: opacity .15s; }
body:has(.dh-tile) .dh-grid:hover .num { opacity: .0; }
.dh-tile.add { align-items: flex-start; justify-content: flex-end; gap: 14px; background: transparent; border: 1px dashed var(--line2); box-shadow: none; color: var(--text2); text-align: left; }
.dh-tile.add:hover { border-color: var(--text3); color: var(--text); }
.dh-tile.add .plus { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; }
.dh-tile.add .plus svg { width: 20px; height: 20px; }
.dh-tile.add .lbl { font-size: 16px; font-weight: 500; }
.dh-tile.edit { cursor: grab; border-style: dashed; border-color: var(--line2); }
.dh-tile.edit.is-hidden { opacity: .45; }
.dh-tile.edit.dragging { opacity: .4; }
.dh-tile.edit.over { border-color: var(--accent); }
.dh-tile.edit .tools { position: absolute; top: 18px; right: 18px; display: flex; gap: 4px; }
.dh-tile.edit .tools button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--text2); display: grid; place-items: center; }
.dh-tile.edit .tools svg { width: 17px; height: 17px; }

.dh-up { display: flex; flex-direction: column; }
.dh-up-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.dh-up-head h2 { margin: 0; font-size: 15px; font-weight: 500; }
.dh-up-head a { font-size: 13px; color: var(--text3); text-decoration: none; }
.dh-up-head a:hover { color: var(--text); }
.dh-line { display: flex; align-items: center; gap: 12px; min-height: 48px; border: 0; border-top: 1px solid var(--divider); background: none; padding: 0; text-align: left; text-decoration: none; font-size: 15px; color: var(--textmid) !important; width: 100%; }
.dh-line:last-child { border-bottom: 1px solid var(--divider); }
.dh-line:hover { color: var(--text) !important; }
.dh-line .dot, .dh-row .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--c, var(--text3)); flex-shrink: 0; }
.dh-line .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-line .who { font-size: 13px; color: var(--text3); white-space: nowrap; }
.dh-line .who.over { color: var(--danger); }
.dh-quiet { margin: 0; padding: 14px 0; color: var(--text3); font-size: 14px; }
.dh-ask { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 16px; background: var(--surface); color: var(--text2) !important; font-size: 15px; text-decoration: none; margin-top: -24px; }
.dh-ask:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); }
.dh-ask svg { width: 18px; height: 18px; color: var(--accent); stroke-width: 2; }
.dh-ask .grow { flex: 1; }
.mono { font-family: var(--mono); font-size: 11px; color: var(--text3); letter-spacing: .04em; }

/* Menus (account, tile shortcuts) */
.dh-menu { position: absolute; z-index: 60; width: 260px; padding: 6px; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--lift); display: flex; flex-direction: column; animation: hq-fade .1s ease-out; }
.dh-menu .it { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 14px; text-align: left; text-decoration: none; }
.dh-menu .it:hover, .dh-menu .it:focus-visible { background: var(--hover); outline: none; }
.dh-menu .it svg { width: 17px; height: 17px; color: var(--text2); }
.dh-menu .it .grow { flex: 1; }
.dh-menu .sep { height: 1px; background: var(--divider); margin: 6px 4px; }
.dh-menu .who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.dh-menu .who b { display: block; font-size: 14px; }
.dh-menu .who small { display: block; font-size: 12px; color: var(--text3); }
.dh-ava { width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line2); background: var(--surface); overflow: hidden; display: grid; place-items: center; font-weight: 600; flex-shrink: 0; }
.dh-ava.sm { width: 34px; height: 34px; font-size: 13px; }
.dh-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 2px 6px 6px; padding: 3px; background: var(--raised); border-radius: 10px; }
.dh-modes button { height: 30px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; color: var(--text2); }
.dh-modes button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.dh-menu .foot { padding: 8px 12px 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }

/* ================================================================ PAGES */
.dh-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.dh-pills button { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); background: transparent; font-size: 14px; color: var(--text2); display: inline-flex; align-items: center; gap: 8px; }
.dh-pills button .n { font-family: var(--mono); font-size: 11px; color: var(--text3); }
.dh-pills button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.dh-pills button[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.dh-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; box-shadow: var(--panel-shadow); display: flex; flex-direction: column; gap: 6px; }
.dh-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.dh-sec-head .ico { width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
.dh-sec-head h2 { font-size: 20px; }
.dh-sec-head .n { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.dh-sec-head .grow { flex: 1; }
.dh-group { margin: 14px 0 4px; font-family: var(--mono) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--text3); display: flex; gap: 8px; }
.dh-group span { opacity: .8; }
.dh-group.over { color: var(--danger); }
.dh-rows { display: flex; flex-direction: column; }
.dh-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--divider); }
.dh-row .dot { --c: var(--accent); }
.dh-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dh-row .txt b { font-weight: 500; color: var(--text); }
.dh-row .txt small { font-size: 13px; color: var(--text3); }
.dh-row .stretch { color: inherit; text-decoration: none; }
.dh-row .stretch::after { content: ""; position: absolute; inset: 0; }
.dh-row .acts { position: relative; z-index: 1; display: flex; gap: 6px; }
.dh-row .acts .lbl { display: none; }
.dh-rows.inbox .hq-ti { border-top: 1px solid var(--divider); padding: 10px 0; }
.dh-two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dh-two .hq-pane { padding: 22px 24px; }
.dh-askbox { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 1px solid var(--line2); border-radius: 18px; background: var(--surface); box-shadow: var(--panel-shadow); }
.dh-askbox > svg { width: 20px; height: 20px; color: var(--accent); stroke-width: 2; }
.dh-askbox input { border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 16px; min-height: 48px !important; padding: 0 !important; }
.dh-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -8px; }
.dh-try button { height: 34px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 17px; background: transparent; font-size: 13px; color: var(--text2); }
.dh-try button:hover { color: var(--text); border-color: var(--text3); }
.dh-abil { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-top: 6px; }
.dh-abil > div { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.dh-abil .hd { display: flex; align-items: center; gap: 10px; }
.dh-abil .hd .ico { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.dh-abil .hd .n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text3); }
.dh-abil p { margin: 0; font-size: 14px; color: var(--text2); line-height: 1.55; }
.dh-abil p b { color: var(--text); font-weight: 600; }
.dh-foot-note { margin: 0; font-size: 13px; color: var(--text3); }
.dh-add .muted { margin: 0; font-size: 14px; color: var(--text2); }
.dh-stabs { gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.dh-stabs a { flex-shrink: 0; height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 18px; display: inline-flex; align-items: center; font-size: 14px; color: var(--text2); text-decoration: none; }
.dh-stabs a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ================================================================ SIGN IN (v4) */
body.dash-login { background: var(--bg); }
.dl-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.dl-main { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 28px; }
.dl-main.narrow { max-width: 340px; align-items: center; text-align: center; }
.dl-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.dl-head > div { display: flex; flex-direction: column; gap: 6px; }
.dl-head h1 { margin: 0; font-size: 34px; line-height: 1.1; }
.dl-head h1.md { font-size: 30px; }
.dl-head p { margin: 0; font-size: 15px; color: var(--text2); }
.dl-mark { width: 64px; height: 64px; padding: 6px; border-radius: 19px; background: var(--dash-tint); display: flex; }
.dl-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 1px 2px rgba(20,22,28,0.04), 0 18px 40px -16px rgba(20,22,28,0.12); }
html.is-dark .dl-card { box-shadow: var(--panel-shadow); }
.dl-field { display: flex; flex-direction: column; gap: 6px; }
.dl-field label { font-size: 13px; font-weight: 500; }
.dl-lrow { display: flex; align-items: baseline; justify-content: space-between; }
.dl-lrow a { font-size: 13px; color: var(--text2) !important; }
.dash .dl-in { height: 48px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 13px; background: var(--bg); color: var(--text); font-size: 15px; width: 100%; }
.dl-in:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--line2); box-shadow: none; }
.dl-pass { position: relative; }
.dl-pass .dl-in { padding-right: 70px; }
.dl-show { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; color: var(--text2); }
.dl-show:hover { background: var(--hover); }
.dl-check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; color: var(--text2); }
.dl-check input { width: 18px; height: 18px; accent-color: var(--text); margin: 0; }
.dl-primary { height: 50px; border: 0; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600; }
.dl-primary:hover { opacity: .9; }
.dl-primary[disabled] { opacity: .6; cursor: default; }
.dl-msg { padding: 10px 14px; border-radius: 12px; background: var(--acc-soft); font-size: 14px; color: var(--text); }
.dl-msg.err { background: var(--danger-soft); color: var(--danger); }
.dl-alt { align-self: center; min-height: 36px; display: flex; align-items: center; font-size: 14px; color: var(--text2) !important; }
.dl-site { margin: 0; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--text3); text-transform: uppercase; }
.dl-ava { position: relative; width: 64px; height: 64px; border-radius: 32px; border: 1px solid var(--line2); background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 22px; overflow: hidden; }
.dl-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl-dots { display: flex; gap: 14px; height: 16px; align-items: center; }
.dl-dots i { width: 12px; height: 12px; border-radius: 6px; border: 1.5px solid var(--text3); transition: all .12s; }
.dl-dots i.on { background: var(--text); border-color: var(--text); transform: scale(1.1); }
.dl-dots.shake { animation: dl-shake .4s; }
@keyframes dl-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.dl-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.dl-key { height: 64px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); font-size: 22px; font-weight: 500; transition: transform .1s ease; display: flex; align-items: center; justify-content: center; }
.dl-key:hover { background: var(--hover); }
.dl-key.press, .dl-key:active { transform: scale(.96); }
.dl-key.ghost { border: 0; background: transparent; color: var(--text2); }
.dl-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dl-link { border: 0; background: none; color: var(--text3); font-size: 12px; padding: 6px; }
.dl-link:hover { color: var(--text); text-decoration: underline; }

/* ================================================================ PHONES */
@media (max-width: 1100px) {
  .ld-top-in, .ld-page { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 860px) {
  .ld-shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .ld-side { display: none; }
  .ld-shell.side-open .ld-side { display: flex; position: fixed; z-index: 800; width: 280px; left: 0; top: 0; box-shadow: var(--lift); }
  .ld-shell.side-open::after { content: ""; position: fixed; inset: 0; z-index: 790; background: rgba(0,0,0,.3); }
  .ld-top-in { padding: 10px 16px; }
  .ld-page { padding: 20px 16px 110px; gap: 18px; }
  .ld-h1, .ld-page .hq-hero h1 { font-size: 30px; }
  .ld-hide-phone { display: none !important; }
  .ld-only-phone { display: inline-flex !important; }
  nav.dh-stabs.ld-only-phone { display: flex !important; }
  .ld-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 700; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .ld-tabbar a, .ld-tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--text3); text-decoration: none; border: 0; background: transparent; padding: 6px 0; min-height: 52px; justify-content: center; }
  .ld-tabbar svg { width: 22px; height: 22px; }
  .ld-tabbar [aria-current="page"] { color: var(--acc-text); }
  .hq-toast { bottom: 92px; }
  .dh-top { padding: 14px 16px; }
  .dh-main { padding: 28px 16px 64px; gap: 40px; }
  .dh-hello h1 { font-size: 30px; }
  .dh-nudge, .dh-editbar { margin-top: -20px; flex-wrap: wrap; }
  .dh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dh-tile { min-height: 190px; padding: 18px; border-radius: 22px; }
  .dh-tile a.open::after { border-radius: 22px; }
  .dh-ico, .dh-ico .in { width: 56px; height: 56px; border-radius: 17px; }
  .dh-tile .open { font-size: 21px; }
  .dh-tile .st { font-size: 13px; }
  .dh-tile .go { display: none; }
  .dh-tile.add .plus { width: 44px; height: 44px; }
  .dh-ask { margin-top: -16px; }
  .dh-ask .mono { display: none; }
  .dh-two { grid-template-columns: minmax(0, 1fr); }
  .dh-sec { padding: 18px 16px; border-radius: 20px; }
  .dh-row .acts .hq-btn:not(:last-child) { display: none; }
  .dh-menu { width: min(300px, calc(100vw - 24px)); }
}
@media (max-width: 380px) { .dh-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dash *, .dash *::before, .dash *::after { animation: none !important; transition: none !important; } }
.dl-key svg { width: 22px; height: 22px; }
