/* HQ 2.0: login + dashboard. Gordita and the shared By Calie palette set (assets/palettes.json). */

@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; }

/* Six palette colours (--p-*) come from the chosen palette; everything else is derived from them. */
body.hq {
  --p-base: #F7F4EC; --p-surface: #FDFCF9; --p-contrast: #292314; --p-muted: #6C634B; --p-accent: #0B7A61; --p-on: #FFFFFF;
  --bg: var(--p-base); --surface: var(--p-surface); --sunk: color-mix(in srgb, var(--p-base) 92%, var(--p-contrast));
  --raised: color-mix(in srgb, var(--p-surface) 94%, var(--p-contrast));
  --ink: var(--p-contrast); --muted: var(--p-muted); --soft-ink: color-mix(in srgb, var(--p-contrast) 78%, var(--p-base));
  --line: color-mix(in srgb, var(--p-contrast) 10%, var(--p-base)); --line-strong: color-mix(in srgb, var(--p-contrast) 22%, var(--p-base));
  --divider: color-mix(in srgb, var(--p-contrast) 7%, var(--p-surface));
  --accent: var(--p-accent); --accent-ink: var(--p-on);
  --accent-soft: color-mix(in srgb, var(--p-accent) 14%, var(--surface));
  --accent-deep: color-mix(in srgb, var(--p-accent) 82%, var(--p-contrast));
  --danger: #b02a37; --danger-soft: #f8dfe1; --warn: #a8540f; --warn-soft: #fbe9db; --ok: #1f7a43; --ok-soft: #dcf0e3;
  --shadow: 0 1px 2px color-mix(in srgb, var(--p-contrast) 5%, transparent), 0 8px 24px color-mix(in srgb, var(--p-contrast) 5%, transparent);
  --shadow-lift: 0 2px 4px color-mix(in srgb, var(--p-contrast) 6%, transparent), 0 18px 40px color-mix(in srgb, var(--p-contrast) 13%, transparent);
  --pane-edge: none;
  --display: "Gordita", 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;
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
/* Dark palettes: the palette's surface is deeper than its base, so cards lift slightly instead and the surface becomes the sunken tone. */
html.is-dark body.hq {
  --surface: color-mix(in srgb, var(--p-base) 94%, var(--p-contrast)); --sunk: var(--p-surface);
  --raised: color-mix(in srgb, var(--p-base) 89%, var(--p-contrast));
  --line: color-mix(in srgb, var(--p-contrast) 11%, var(--p-base)); --line-strong: color-mix(in srgb, var(--p-contrast) 22%, var(--p-base));
  --divider: color-mix(in srgb, var(--p-contrast) 8%, var(--p-base));
  --accent-soft: color-mix(in srgb, var(--p-accent) 18%, var(--p-base));
  --accent-deep: color-mix(in srgb, var(--p-accent) 85%, #fff);
  --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));
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lift: 0 18px 48px rgba(0,0,0,.5);
  --pane-edge: inset 0 1px 0 color-mix(in srgb, var(--p-contrast) 5%, transparent);
  color-scheme: dark;
}

.hq *, .hq *::before, .hq *::after { box-sizing: border-box; }
.hq button, .hq input, .hq select, .hq textarea { font: inherit; color: inherit; }
.hq button { cursor: pointer; }
.hq a { color: var(--accent-deep); }
.hq :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hq [hidden] { display: none !important; }
.hq h1, .hq h2, .hq h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
.hq .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hq svg { flex: none; width: 16px; height: 16px; }

.hq input:not([type=checkbox]):not([type=radio]):not([type=color]), .hq select, .hq textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
}
.hq textarea { min-height: 90px; resize: vertical; }
.hq input:focus, .hq select:focus, .hq textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hq input[type=checkbox], .hq 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; }
.hq a.hq-btn { color: var(--ink); }
.hq-btn:hover { border-color: var(--muted); }
.hq-btn svg { width: 16px; height: 16px; }
.hq-btn.primary, .hq 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; }

/* ============================================================== LOGIN */
.hq-login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 1fr); }
.hq-brand { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
html.is-dark .hq-brand { background: var(--sunk); color: var(--ink); }
html.is-dark .hq-brand .tiles { color: var(--accent); opacity: .22; }
.hq-brand .word { font-family: var(--display); font-weight: 500; font-size: clamp(72px, 11vw, 160px); line-height: .85; letter-spacing: -0.05em; position: relative; z-index: 1; }
.hq-brand .tag { font-size: 18px; max-width: 26ch; opacity: .9; position: relative; z-index: 1; margin-top: 18px; }
.hq-brand .site { font-family: var(--mono); font-size: 13px; opacity: .75; position: relative; z-index: 1; }
.hq-brand .tiles { position: absolute; right: -40px; top: 50%; transform: translateY(-50%) rotate(-8deg); display: grid; grid-template-columns: repeat(4, 84px); gap: 14px; opacity: .16; }
.hq-brand .tiles i { display: block; width: 84px; height: 84px; border-radius: 22px; background: currentColor; }
.hq-brand .tiles i:nth-child(3n) { opacity: .5; } .hq-brand .tiles i:nth-child(5n) { opacity: .25; }
.hq-panel { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.hq-card { width: min(400px, 100%); display: grid; gap: 18px; }
.hq-card h1 { font-size: 32px; }
.hq-card .sub { color: var(--muted); margin: -8px 0 0; }
.hq-card form { display: grid; gap: 14px; }
.hq-pass { position: relative; }
.hq-pass input { padding-right: 70px; }
.hq-pass button { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 0 10px; border-radius: 8px; }
.hq-pass button:hover { background: var(--sunk); color: var(--ink); }
.hq-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.hq-foot { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.hq-foot a { color: var(--muted); }

/* PIN pad */
.hq-pin { display: grid; gap: 22px; justify-items: center; text-align: center; }
.hq-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--sunk); box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.hq-dots { display: flex; gap: 14px; height: 18px; }
.hq-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); transition: background .12s, border-color .12s, transform .12s; }
.hq-dots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.hq-dots.shake { animation: hq-shake .4s; }
.hq-dots.shake i { border-color: var(--danger); }
@keyframes hq-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.hq-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.hq-key { height: 76px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-family: var(--display); font-size: 28px; font-weight: 500; box-shadow: var(--shadow); transition: transform .06s, background .1s; display: grid; place-items: center; }
.hq-key:active, .hq-key.press { transform: scale(.94); background: var(--accent-soft); }
.hq-key.text { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--muted); border-color: transparent; background: transparent; box-shadow: none; }
.hq-key.text:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hq-login-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hq-brand { padding: 28px 24px 24px; min-height: 0; }
  .hq-brand .word { font-size: 64px; }
  .hq-brand .tag { font-size: 15px; margin-top: 8px; }
  .hq-brand .tiles { grid-template-columns: repeat(4, 54px); gap: 10px; right: -20px; }
  .hq-brand .tiles i { width: 54px; height: 54px; border-radius: 14px; }
  .hq-brand .site { display: none; }
  .hq-panel { place-items: start center; padding-top: 28px; }
  .hq-keys { grid-template-columns: repeat(3, 72px); }
  .hq-key { height: 72px; }
}

/* ============================================================== 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; }
.hq 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); }
.hq .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; }
.hq .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; }
.hq .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); }
.hq .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; } }
@media (prefers-reduced-motion: reduce) { .hq *, .hq *::before, .hq *::after { animation: none !important; transition: none !important; } }
