/* HQ: login + dashboard. Gordita and the shared By Calie palette set (assets/palettes.json), same as Job Hunt. */

@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));
  --ink: var(--p-contrast); --muted: var(--p-muted);
  --line: color-mix(in srgb, var(--p-contrast) 12%, var(--p-base)); --line-strong: color-mix(in srgb, var(--p-contrast) 24%, var(--p-base));
  --accent: var(--p-accent); --accent-ink: var(--p-on);
  --accent-soft: color-mix(in srgb, var(--p-accent) 16%, var(--surface));
  --accent-deep: color-mix(in srgb, var(--p-accent) 82%, var(--p-contrast));
  --danger: #b02a37; --danger-soft: #f8dfe1; --warn: #b4531a; --warn-soft: #fbe9db; --ok: #2a8a3e;
  --shadow: 0 1px 2px color-mix(in srgb, var(--p-contrast) 6%, transparent), 0 6px 20px color-mix(in srgb, var(--p-contrast) 7%, transparent);
  --shadow-lift: 0 2px 4px color-mix(in srgb, var(--p-contrast) 7%, transparent), 0 14px 34px color-mix(in srgb, var(--p-contrast) 14%, transparent);
  --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) 93%, var(--p-contrast)); --sunk: var(--p-surface);
  --line: color-mix(in srgb, var(--p-contrast) 14%, var(--p-base)); --line-strong: color-mix(in srgb, var(--p-contrast) 26%, var(--p-base));
  --accent-soft: color-mix(in srgb, var(--p-accent) 20%, 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 16%, var(--p-base)); --ok: #74cf84;
  --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-lift: 0 10px 30px rgba(0,0,0,.45);
  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 input:not([type=checkbox]):not([type=radio]), .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] { 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; }
.hq-btn:hover { border-color: var(--muted); }
.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.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; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.hq-top.scrolled { border-bottom-color: var(--line); }
.hq-top .title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.hq-top .grow { flex: 1; }
.hq-search { position: relative; flex: 0 1 420px; }
.hq .hq-search input[type=search] { padding-left: 38px; min-height: 40px; border-radius: 999px; background: var(--surface); }
.hq-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.hq-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; }
.hq-me { position: relative; }
.hq-me > button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 12px 3px 3px; font-weight: 500; font-size: 14px; }
.hq-me img { width: 32px; height: 32px; border-radius: 50%; }
.hq-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; 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); text-decoration: none; font-size: 14px; width: 100%; }
.hq-pop a:hover, .hq-pop button:hover { background: var(--sunk); }
.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: 1240px; margin: 0 auto; padding: 18px 32px 64px; display: grid; gap: 28px; }
.hq-hero { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-top: 18px; }
.hq-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.hq-hero .date { color: var(--muted); margin-top: 8px; font-size: 15px; }
.hq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hq a.hq-chip { color: var(--warn); }
.hq-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 500; border: 0; text-decoration: none; }
.hq-chip b { font-family: var(--mono); }
.hq-chip.calm { background: var(--accent-soft); color: var(--accent-deep); }

.hq-section { display: grid; gap: 14px; }
.hq-section-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hq-section-head h2 { font-size: 20px; }
.hq-section-head .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hq-section-head .grow { flex: 1; }

.hq-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hq .hq-recent a { color: var(--ink); }
.hq-recent a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hq-recent a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.hq-recent .ico { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.hq-recent span { display: grid; min-width: 0; }
.hq-recent b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hq-recent small { color: var(--muted); font-size: 12px; }

.hq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hq .hq-tile { color: var(--ink); }
.hq-tile { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 20px; min-height: 196px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.hq-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.hq-tile .ico { --c: var(--accent); width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 28px; line-height: 1; background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); overflow: hidden; }
.hq-tile .ico img { width: 100%; height: 100%; object-fit: cover; }
.hq-tile .ico .dashicons { width: 28px; height: 28px; font-size: 28px; }
.hq-tile .ico.letters { font-family: var(--display); font-weight: 700; font-size: 20px; }
.ico { display: grid; place-items: center; flex: none; --c: var(--accent); background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--c); overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.hq-tile h3 { font-size: 20px; }
.hq-tile p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.hq-tile .summary { margin-top: 10px; 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-tile .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.hq-tile .foot .ext { margin-left: auto; font-family: var(--body); }
.hq-tile .badge { position: absolute; top: 16px; right: 16px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--warn); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 500; display: grid; place-items: center; }
html.is-dark .hq-tile .badge { color: var(--p-base); }
.hq-tile .num { position: absolute; top: 18px; right: 18px; font-family: var(--mono); 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:not(:has(.badge)) .num, .hq-grid.show-nums .hq-tile:not(:has(.badge)) .num { opacity: 1; }
.hq-tile.add { border-style: dashed; background: transparent; box-shadow: none; align-content: center; justify-items: center; text-align: center; color: var(--muted); cursor: pointer; grid-template-rows: auto auto; }
.hq-tile.add:hover { color: var(--ink); border-color: var(--muted); }
.hq-tile.add .plus { width: 54px; height: 54px; border-radius: 50%; border: 1px dashed currentColor; display: grid; place-items: center; font-size: 26px; }

/* Edit 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; }
.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; font-size: 14px; 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); }

.hq-empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 18px; 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); }

/* 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: 16px; padding: 22px; display: grid; gap: 16px; }
.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-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.hq-swatch { display: grid; justify-items: center; gap: 4px; border: 0; background: transparent; padding: 4px; font-size: 12px; color: var(--muted); text-transform: capitalize; border-radius: 10px; }
.hq-swatch i { display: block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.hq-swatch[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.hq-swatch[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--ink); }
.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; grid-template-columns: 18px 1fr; overflow: hidden; }
.hq-themes .mini b { display: block; }
.hq-themes .mini.light { background: #f7f4ec; } .hq-themes .mini.light b { background: #fffdf8; border-right: 1px solid #e3ddd0; }
.hq-themes .mini.dark { background: #16150f; } .hq-themes .mini.dark b { background: #1f1d16; border-right: 1px solid #2e2b23; }
.hq-themes .mini.system { background: linear-gradient(110deg, #f7f4ec 50%, #16150f 50%); } .hq-themes .mini.system b { background: linear-gradient(110deg, #fffdf8 50%, #1f1d16 50%); }
.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-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; }
.hq-code { font-family: var(--mono); font-size: 12px; background: var(--sunk); border-radius: 10px; padding: 14px; white-space: pre; overflow-x: auto; line-height: 1.6; margin: 0; }

/* Modal */
.hq-scrim { position: fixed; inset: 0; background: rgba(15,14,10,.45); z-index: 50; display: grid; place-items: center; padding: 16px; }
.hq-modal { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lift); padding: 24px; display: grid; gap: 16px; }
.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-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 input[type=color] { width: 36px; height: 30px; padding: 0; border: 0; background: none; min-height: 0; }
.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; }

.hq-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 60; box-shadow: var(--shadow-lift); max-width: calc(100% - 32px); }

@media (max-width: 760px) {
  .hq-top { padding: 10px 16px; gap: 10px; }
  .hq-top .title { display: none; }
  .hq-search { flex: 1 1 auto; }
  .hq-search kbd { display: none; }
  .hq-me > button span { display: none; }
  .hq-me > button { padding: 3px; }
  .hq-main { padding: 8px 16px 48px; gap: 22px; }
  .hq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hq-tile { min-height: 168px; padding: 16px; gap: 10px; border-radius: 16px; }
  .hq-tile .ico { width: 46px; height: 46px; font-size: 24px; border-radius: 13px; }
  .hq-tile h3 { font-size: 17px; }
  .hq-tile p { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .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; }
}
@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; } }
