/* Команден център: три колони — статус вляво, сфера в центъра, ден и разговор вдясно */
:root {
  --void: #05080f;
  --deep: #0a1120;
  --panel: rgba(13, 21, 38, 0.66);
  --line: rgba(140, 170, 220, 0.14);
  --line-strong: rgba(140, 170, 220, 0.28);
  --text: #dce6f5;
  --muted: #8592ad;
  --gold: #e9b95f;
  --gold-soft: rgba(233, 185, 95, 0.14);
  --ice: #8fd8ff;
  --ok: #4fd69c;
  --warn: #f2c14e;
  --bad: #ff6b6b;
  --f-display: 'Jura', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #0e1a33 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(140, 170, 220, 0.07) 1px, transparent 0) 0 0 / 28px 28px,
    var(--void);
  color: var(--text);
  font: 400 14px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

.app {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr minmax(280px, 360px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "top top top" "left stage right";
  gap: 0 20px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: env(safe-area-inset-top, 0px) 16px;
}

.top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-weight: 600; letter-spacing: 0.32em; font-size: 15px; }
.brand-mark { width: 12px; height: 12px; border-radius: 50%; align-self: center; background: radial-gradient(circle, #fff3d6, var(--gold) 55%, transparent 70%); box-shadow: 0 0 14px var(--gold); }
.brand-sub { font-weight: 400; letter-spacing: 0.14em; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.top-right { display: flex; align-items: center; gap: 8px; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--panel); font: 500 12px var(--f-display); letter-spacing: 0.08em; white-space: nowrap; }
.chip-btn:hover { border-color: var(--gold); }
.chip-warn { color: var(--warn); border-color: rgba(242, 193, 78, 0.4); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.dot.spin { background: var(--gold); animation: blink 0.8s infinite alternate; }
@keyframes blink { to { opacity: 0.25; } }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--muted); }
.icon-btn:hover { color: var(--text); }

.col { min-width: 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.col-left { grid-area: left; }
.col-right { grid-area: right; }

.clock { padding: 4px 2px 6px; }
.clock-time { font: 500 56px/1 var(--f-display); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: #f2f6fc; }
.clock-date { margin-top: 6px; color: var(--muted); font: 500 12px var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 12px; backdrop-filter: blur(6px); }
.panel h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font: 600 11px var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.h-count { color: var(--gold); font-family: var(--f-mono); letter-spacing: 0; }
.mini-btn { margin-left: auto; height: 22px; padding: 0 9px; border-radius: 11px; border: 1px solid var(--line-strong); background: transparent; font: 600 10px var(--f-display); letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.mini-btn:hover { color: var(--gold); border-color: var(--gold); }

.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; padding-top: 2px; }
.row-main { min-width: 0; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-val { font: 500 12px var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.row-val.hot { color: var(--gold); font-weight: 600; font-size: 14px; }
.spark { display: block; width: 64px; height: 18px; margin-top: 2px; margin-left: auto; }
.empty { color: var(--muted); font-size: 12.5px; padding: 2px 0; }
.link { color: var(--gold); font-weight: 600; }
.empty b { color: var(--text); font-weight: 600; }

.mail-msgs { list-style: none; margin: 4px 0 2px 20px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.mail-msgs li { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-msgs b { color: var(--text); font-weight: 600; }

.cal-time { font: 600 12px var(--f-mono); color: var(--gold); width: 46px; flex: none; font-variant-numeric: tabular-nums; }
.cal-row { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.cal-row:first-child { border-top: 0; }
.cal-day { font: 600 10px var(--f-display); letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; padding: 8px 0 2px; }
.cal-row.past { opacity: 0.45; }

.biz { display: flex; flex-direction: column; gap: 12px; }
.biz-name { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.metric { background: rgba(5, 8, 15, 0.5); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; min-width: 0; }
.metric-v { font: 600 17px var(--f-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.metric-k { font-size: 11px; color: var(--muted); line-height: 1.3; }

.brief { margin: 0; color: var(--text); font-size: 13px; line-height: 1.6; max-height: 9.6em; overflow-y: auto; white-space: pre-line; }
.brief-meta { display: block; margin-top: 6px; color: var(--muted); font: 500 11px var(--f-mono); }

.panel-log { flex: 1 1 auto; min-height: 180px; display: flex; flex-direction: column; }
.log { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; }
.log li { font-size: 13px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.log .who { display: block; font: 600 10px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
.log .me .who { color: var(--ice); }
.log .ai .who { color: var(--gold); }
.log .tool { font: 500 11px var(--f-mono); color: var(--muted); }
.log .error { color: var(--bad); }

.stage { grid-area: stage; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.orb { width: 100%; flex: 1 1 auto; min-height: 280px; display: block; }
.caption-wrap { width: min(680px, 100%); text-align: center; padding: 0 8px; min-height: 92px; }
.state-label { font: 600 11px var(--f-display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.state-label.listening { color: var(--ice); }
.caption { margin: 8px 0 0; font: 500 clamp(17px, 2vw, 22px)/1.45 var(--f-body); color: #eef3fb; text-wrap: balance; max-height: 4.4em; overflow-y: auto; }

.ask { width: min(640px, 100%); display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px; border-radius: 40px; border: 1px solid var(--line-strong); background: rgba(10, 17, 32, 0.85); }
.mic { width: 52px; height: 52px; border-radius: 50%; border: 0; flex: none; display: grid; place-items: center; color: #1a1205; background: radial-gradient(circle at 35% 30%, #fff1cf, var(--gold) 60%, #a77a2c); box-shadow: 0 0 22px rgba(233, 185, 95, 0.45); transition: transform 0.15s; }
.mic:hover { transform: scale(1.05); }
.mic.on { color: #031420; background: radial-gradient(circle at 35% 30%, #e6f8ff, var(--ice) 60%, #3f8fb8); box-shadow: 0 0 30px rgba(143, 216, 255, 0.7); animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.mic:disabled { opacity: 0.4; cursor: not-allowed; animation: none; }
.ask-input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; background: transparent; outline: none; font-size: 15px; padding: 0 4px; }
.ask-input::placeholder { color: var(--muted); }
.send { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: var(--muted); flex: none; }
.send:hover { color: var(--gold); border-color: var(--gold); }
.toggles { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 10px; color: var(--muted); font-size: 12px; }
.tog { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tog input { accent-color: var(--gold); }

.login { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 15, 0.92); backdrop-filter: blur(10px); }
.login-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--deep); }
.login-card h1 { margin: 6px 0 0; text-align: center; font: 600 22px var(--f-display); letter-spacing: 0.4em; }
.login-card p { margin: 0 0 10px; text-align: center; color: var(--muted); }
.login-card label { font: 600 11px var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.login-card input { height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--void); font-size: 16px; width: 100%; }
#codeWrap { display: flex; flex-direction: column; gap: 8px; }
#code { font-family: var(--f-mono); letter-spacing: 0.3em; }
.login-orb { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #fff3d6 0%, var(--gold) 35%, rgba(233, 185, 95, 0.1) 65%, transparent 70%); box-shadow: 0 0 40px rgba(233, 185, 95, 0.4); }
.primary { height: 46px; margin-top: 10px; border-radius: 8px; border: 0; background: var(--gold); color: #1a1205; font: 700 14px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; }
.err { color: var(--bad) !important; min-height: 1.4em; margin: 4px 0 0 !important; }

/* Профил и известия в лентата */
.profile-chip { max-width: 320px; }
.profile-chip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.avatar-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 38%, #ffd79a 0 22%, transparent 24%), radial-gradient(ellipse at 50% 100%, rgba(143,216,255,.9) 0 45%, transparent 47%), #13203a; box-shadow: 0 0 10px rgba(143,216,255,.35); }
#bellBtn { position: relative; }
.bell-dot { position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }

/* Задачи */
.panel-tasks { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.quick-add { display: flex; gap: 6px; margin-bottom: 8px; }
.quick-add input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(5, 8, 15, 0.6); font-size: 13px; outline: none; }
.quick-add input:focus { border-color: var(--ice); }
.qa-btn { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--gold); background: var(--gold-soft); color: var(--gold); font: 600 20px/1 var(--f-display); flex: none; }
.tasks { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.t-group { font: 600 10px var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; display: flex; gap: 6px; align-items: center; }
.t-group.overdue { color: var(--bad); }
.t-group.today { color: var(--gold); }
.task { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.t-group + .task { border-top: 0; }
.t-check { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; color: transparent; padding: 0; }
.t-check:hover { border-color: var(--ok); color: var(--ok); }
.task.done .t-check { border-color: var(--ok); background: rgba(79, 214, 156, 0.18); color: var(--ok); }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.task.high .t-check { border-color: var(--warn); }
.t-main { min-width: 0; }
.t-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.t-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 10px; font: 500 11px var(--f-mono); color: var(--muted); border: 1px solid var(--line); background: rgba(5, 8, 15, 0.4); font-variant-numeric: tabular-nums; }
.t-chip.bell { color: var(--ice); border-color: rgba(143, 216, 255, 0.3); }
.t-chip.late { color: var(--bad); border-color: rgba(255, 107, 107, 0.35); }
.t-chip.soon { color: var(--gold); border-color: rgba(233, 185, 95, 0.4); }
.t-notes { color: var(--muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.t-acts { display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s; }
.task:hover .t-acts, .task:focus-within .t-acts { opacity: 1; }
.t-act { width: 26px; height: 26px; border-radius: 6px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; font-size: 13px; }
.t-act:hover { background: rgba(140, 170, 220, 0.12); color: var(--text); }
@media (hover: none) { .t-acts { opacity: 1; } }

/* Подсказки */
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; max-width: 680px; }
.sg { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line-strong); background: rgba(10, 17, 32, 0.7); color: var(--text); font-size: 12.5px; }
.sg:hover { border-color: var(--ice); color: #fff; }

/* Чернова в разговора */
.draft { margin-top: 6px; border: 1px solid rgba(233, 185, 95, 0.35); border-radius: 8px; background: rgba(233, 185, 95, 0.06); padding: 8px 10px; }
.draft-head { font: 600 10px var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.draft-head button { margin-left: auto; }
.draft-meta { font: 500 11px var(--f-mono); color: var(--muted); margin: 4px 0; overflow-wrap: anywhere; }
.draft-body { white-space: pre-wrap; font-size: 12.5px; max-height: 12em; overflow-y: auto; }

/* Напомняне */
.toast { position: fixed; z-index: 15; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(233, 185, 95, 0.5); background: rgba(12, 18, 32, 0.96); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(233, 185, 95, 0.15); animation: drop 0.35s ease-out; }
@keyframes drop { from { transform: translate(-50%, -20px); opacity: 0; } }
.toast-ring { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 18px rgba(233, 185, 95, 0.6), inset 0 0 12px rgba(233, 185, 95, 0.5); animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.12); } }
.toast-kicker { font: 600 10px var(--f-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.toast-title { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.toast-sub { color: var(--muted); font-size: 12.5px; }
.toast-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.t-btn { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; font-weight: 600; font-size: 13px; }
.t-primary { background: var(--gold); border-color: var(--gold); color: #1a1205; }
.t-ghost { margin-left: auto; }

/* Профил */
.drawer { position: fixed; inset: 0; z-index: 18; display: flex; justify-content: flex-end; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(3, 5, 10, 0.6); backdrop-filter: blur(3px); }
.drawer-card { position: relative; width: min(440px, 100%); height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: var(--deep); border-left: 1px solid var(--line-strong); padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px; animation: slide 0.25s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2, .drawer-sub { margin: 0; font: 600 13px var(--f-display); letter-spacing: 0.26em; text-transform: uppercase; }
.drawer-sub { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer-note { margin: 0; color: var(--muted); font-size: 13px; }
.drawer-msg { margin: 0; min-height: 1.3em; color: var(--ok); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row .field { flex: 1 1 140px; }
.field label { font: 600 10px var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--void); font-size: 14px; outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ice); }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.secondary { height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; font-weight: 600; font-size: 13px; }
.secondary:hover { border-color: var(--ice); }
.secondary:disabled { opacity: 0.45; cursor: not-allowed; }


/* ===== Кликаеми заглавия и редове ===== */
.h-link { all: unset; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; }
.h-link:hover, .h-link:focus-visible { color: var(--gold); }
.h-link::after { content: ' ›'; opacity: 0.6; }
.row.clickable { cursor: pointer; border-radius: 6px; }
.row.clickable:hover { background: rgba(140, 170, 220, 0.06); }
.task .t-main { cursor: pointer; }
.search-chip { gap: 6px; color: var(--muted); }
.search-chip kbd { font: 500 10px var(--f-mono); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-strong); }

/* ===== Център за модулите ===== */
body.hub-open { overflow: hidden; }
.hub { position: fixed; inset: 0; z-index: 16; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.hub-scrim { position: absolute; inset: 0; background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(6px); }
.hub-card { position: relative; width: min(1180px, 100%); height: min(860px, 100%); display: grid; grid-template-columns: 220px 1fr; border-radius: 16px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, #0c1527, #080e1b); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); overflow: hidden; animation: pop 0.22s ease-out; }
@keyframes pop { from { transform: scale(0.98); opacity: 0; } }
.hub-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); overflow-y: auto; background: rgba(5, 8, 15, 0.4); }
.hub-nav-btn { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 13.5px; font-weight: 600; }
.hub-nav-btn:hover { background: rgba(140, 170, 220, 0.08); color: var(--text); }
.hub-nav-btn.on { background: var(--gold-soft); color: var(--gold); }
.hn-ic { width: 22px; text-align: center; font-size: 15px; }
.hn-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hub-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hub-head h2 { margin: 0; flex: 1 1 auto; font: 600 15px var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; min-width: 0; }
.hub-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hub-body { flex: 1 1 auto; overflow-y: auto; padding: 18px; min-height: 0; scrollbar-width: thin; }
.hub-loading { color: var(--muted); padding: 24px 4px; font-size: 13px; }
.hub-loading::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--gold); animation: blink 0.7s infinite alternate; }
.hub-empty { color: var(--muted); padding: 28px 8px; text-align: center; line-height: 1.7; }
.hub-empty b { color: var(--text); }

/* Общи контроли */
.inp { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(5, 8, 15, 0.7); color: var(--text); font-size: 14px; outline: none; width: 100%; min-width: 0; }
textarea.inp { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.inp:focus { border-color: var(--ice); }
.inp.big { height: 48px; font-size: 17px; font-weight: 600; }
.inp.mono { font-family: var(--f-body); font-size: 14px; }
.inp.sel { width: auto; }
select.inp { padding-right: 28px; }
input[type="datetime-local"].inp, input[type="time"].inp { color-scheme: dark; }
.btn, .btn-gold { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap; }
.btn { border: 1px solid var(--line-strong); background: transparent; color: var(--text); }
.btn:hover { border-color: var(--ice); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-gold { border: 1px solid var(--gold); background: var(--gold); color: #1a1205; }
.btn-gold:hover { filter: brightness(1.08); }
.btn:disabled, .btn-gold:disabled { opacity: 0.5; cursor: wait; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.link-btn { all: unset; color: var(--gold); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { height: 32px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--gold-soft); color: var(--gold); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.mb { margin-bottom: 12px; }
.chip-f { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 12.5px; }
.chip-f:hover { border-color: var(--ice); }
.chip-f.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.chip-f b { color: var(--gold); font-family: var(--f-mono); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .inp[type="search"] { flex: 1 1 220px; width: auto; }
.hint { color: var(--muted); font-size: 12.5px; margin: 6px 0; }
.card { border: 1px solid var(--line); background: rgba(13, 21, 38, 0.6); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.card h4 { margin: 0 0 12px; font: 600 11px var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.note-box { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; margin: 10px 0; background: rgba(143, 216, 255, 0.05); line-height: 1.6; white-space: pre-wrap; }
.note-box.gold { border-color: rgba(233, 185, 95, 0.4); background: rgba(233, 185, 95, 0.06); }
.note-box.ok { border-color: rgba(79, 214, 156, 0.45); color: var(--ok); }
.note-box.bad { border-color: rgba(255, 107, 107, 0.45); color: var(--bad); }
.nb-h { display: flex; gap: 10px; justify-content: space-between; font-size: 12px; color: var(--gold); margin-bottom: 6px; white-space: normal; }
.pre { white-space: pre-wrap; line-height: 1.6; overflow-wrap: anywhere; }
.back { all: unset; cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 12px; display: inline-block; }
.back:hover { color: var(--text); }
.x { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.x:hover { color: var(--bad); background: rgba(255, 107, 107, 0.1); }
.mt { margin-top: 12px; }
.bad-t { color: var(--bad); }

/* Статистики */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(13, 21, 38, 0.6); min-width: 0; }
.stat-v { font: 600 24px var(--f-mono); font-variant-numeric: tabular-nums; }
.stat-v small { font-size: 13px; color: var(--muted); margin-left: 2px; }
.stat-k { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.stat.ok .stat-v { color: var(--ok); } .stat.warn .stat-v { color: var(--warn); } .stat.bad .stat-v { color: var(--bad); }
.stat-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; grid-column: span 1; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(var(--gold), rgba(233, 185, 95, 0.4)); }
.bar-col span { font: 500 9.5px var(--f-mono); color: var(--muted); }

/* Задачи в центъра */
.tlist { display: flex; flex-direction: column; }
.trow { display: grid; grid-template-columns: 22px 1fr 14px; gap: 12px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 6px; }
.trow:first-child { border-top: 0; }
.trow:hover { background: rgba(140, 170, 220, 0.05); }
.trow.done .t-title { text-decoration: line-through; color: var(--muted); }
.trow.done .t-check { border-color: var(--ok); color: var(--ok); background: rgba(79, 214, 156, 0.18); }
.trow.high .t-check { border-color: var(--warn); }
.chev { color: var(--muted); font-size: 18px; }
.editor { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid2 .wide { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font: 600 10px var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.subs { display: flex; flex-direction: column; gap: 4px; }
.sub { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; background: rgba(5, 8, 15, 0.4); }
.sub label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sub.done label { text-decoration: line-through; color: var(--muted); }
.sub input { accent-color: var(--ok); width: 16px; height: 16px; }
.row-add { display: flex; gap: 8px; margin: 6px 0 12px; }
.row-add .inp { flex: 1; }

.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kcol { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.kcol.over { border-color: var(--gold); background: var(--gold-soft); }
.kcol-h { font: 600 11px var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.kcard { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px; background: rgba(13, 21, 38, 0.9); cursor: grab; }
.kcard.high { border-left: 3px solid var(--warn); }
.kc-t { font-weight: 600; overflow-wrap: anywhere; }
.kc-m { color: var(--muted); font: 500 11px var(--f-mono); margin-top: 4px; }
.kc-mv { display: flex; justify-content: space-between; margin-top: 6px; }
.kc-mv button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 6px; width: 30px; height: 24px; }
.kc-mv button:hover { color: var(--gold); border-color: var(--gold); }

/* Поща */
.split { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 14px; min-height: 0; }
.pane-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 260px); overflow-y: auto; scrollbar-width: thin; }
.pane-read { min-width: 0; border-left: 1px solid var(--line); padding-left: 16px; }
.mrow, .drow { all: unset; box-sizing: border-box; display: block; padding: 10px 12px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.mrow:hover, .drow:hover { background: rgba(140, 170, 220, 0.06); }
.mrow.sel { border-color: var(--gold); background: var(--gold-soft); }
.mr-top { display: flex; justify-content: space-between; gap: 10px; }
.mr-from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mr-date { color: var(--muted); font: 500 11px var(--f-mono); white-space: nowrap; }
.mr-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-why { color: var(--gold); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.mrow.unread .mr-from::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); margin-right: 7px; vertical-align: middle; }
.mrow.unread .mr-sub { color: var(--text); }
.mail-subj { margin: 0 0 6px; font-size: 18px; overflow-wrap: anywhere; }
.mail-meta { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; overflow-wrap: anywhere; }
.reply-box { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.reply-box .inp { flex: 1 1 260px; }
.mail-body { white-space: pre-wrap; line-height: 1.65; overflow-wrap: anywhere; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.only-mobile { display: none; }
.dlist { display: flex; flex-direction: column; gap: 4px; }

/* Календар */
.cal-h { margin: 0 0 12px; font: 600 16px var(--f-display); letter-spacing: 0.06em; text-transform: capitalize; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wday.today { border-color: var(--gold); }
.wd-h { font: 600 11px var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wd-h b { color: var(--text); font-size: 14px; margin-left: 4px; }
.wd-empty { color: var(--line-strong); }
.ev { all: unset; cursor: pointer; display: block; font-size: 12px; padding: 5px 7px; border-radius: 6px; background: rgba(143, 216, 255, 0.08); border-left: 2px solid var(--ice); overflow-wrap: anywhere; }
.ev:hover { background: rgba(143, 216, 255, 0.16); }
.ev-t { display: block; font: 600 10.5px var(--f-mono); color: var(--gold); }
.month .mh { display: grid; grid-template-columns: repeat(7, 1fr); color: var(--muted); font: 600 10px var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; text-align: center; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mcell { all: unset; box-sizing: border-box; cursor: pointer; min-height: 84px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mcell:hover { border-color: var(--ice); }
.mcell.out { opacity: 0.35; }
.mcell.today { border-color: var(--gold); }
.mc-n { font: 600 12px var(--f-mono); }
.mc-e { font-size: 10.5px; background: rgba(143, 216, 255, 0.1); border-radius: 4px; padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-more { font-size: 10px; color: var(--muted); }
.day-list { display: flex; flex-direction: column; gap: 10px; }
.day-ev { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.de-time { font: 600 13px var(--f-mono); color: var(--gold); }
.de-t { font-weight: 700; font-size: 15px; }
.de-s { color: var(--muted); font-size: 12.5px; margin: 2px 0 8px; }

/* Сайт */
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; min-width: 420px; height: auto; display: block; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-lbl { fill: var(--muted); font: 500 10px var(--f-mono); }
.ch-line { fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linejoin: round; }
.ch-area { fill: rgba(143, 216, 255, 0.1); stroke: none; }
.ch-dot { fill: var(--ice); }
.ch-down { fill: rgba(255, 107, 107, 0.5); }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 2px; }
.hc { display: inline-block; height: 14px; border-radius: 2px; background: var(--line-strong); }
.hc.ok { background: rgba(79, 214, 156, 0.7); } .hc.warn { background: var(--warn); } .hc.bad { background: var(--bad); }
.legend { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); font-size: 11.5px; }
.legend i { width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; }
.inc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.inc li { display: flex; gap: 8px; align-items: center; font-size: 13px; overflow-wrap: anywhere; }
.ana-top { display: flex; gap: 16px; align-items: center; margin: 6px 0 10px; }
.score { --p: 50; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--line) 0); }
.score span { width: 52px; height: 52px; border-radius: 50%; background: var(--deep); display: grid; place-items: center; font: 600 18px var(--f-mono); }
.ana-sum { margin: 0; line-height: 1.6; }
.recs { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.recs li { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.recs li.done { opacity: 0.55; }
.recs li.done b { text-decoration: line-through; }
.recs label { display: flex; gap: 10px; cursor: pointer; }
.recs input { accent-color: var(--ok); width: 17px; height: 17px; flex: none; margin-top: 2px; }
.recs small { color: var(--muted); }
.pri { font-style: normal; font: 600 10px var(--f-display); letter-spacing: 0.1em; color: var(--warn); border: 1px solid rgba(242, 193, 78, 0.4); border-radius: 8px; padding: 0 6px; text-transform: uppercase; }
.facts summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.facts dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: 13px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }

/* Умен дом */
.devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.dev { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.dev.on { border-color: rgba(233, 185, 95, 0.5); box-shadow: inset 0 0 30px rgba(233, 185, 95, 0.06); }
.dev-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dev-n { font-weight: 600; overflow-wrap: anywhere; }
.dev-s { color: var(--muted); font-size: 12px; }
.dev input[type="range"] { accent-color: var(--gold); width: 100%; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: var(--line-strong); transition: 0.2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--ice); }

/* Памет, проучване, настройки */
.mem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mem li { display: flex; gap: 8px; }
.res-h { display: flex; justify-content: space-between; gap: 8px; }
.res-h h4 { text-transform: none; letter-spacing: 0; font: 700 15px var(--f-body); color: var(--text); margin: 0; }
.res.flash { border-color: var(--gold); }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.srcs a { font-size: 12px; color: var(--ice); border: 1px solid rgba(143, 216, 255, 0.3); border-radius: 12px; padding: 3px 10px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setlist { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.setlist li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.sl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sl-main small { color: var(--muted); overflow-wrap: anywhere; }
.help summary { cursor: pointer; color: var(--gold); font-size: 13px; }
.help p { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Търсене ⌘K */
.palette { position: fixed; inset: 0; z-index: 19; background: rgba(3, 5, 10, 0.6); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: calc(10vh + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.pal-card { width: min(640px, 100%); border-radius: 14px; border: 1px solid var(--line-strong); background: var(--deep); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); overflow: hidden; }
.pal-input { width: 100%; height: 56px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 18px; font-size: 16px; color: var(--text); outline: none; }
.pal-results { max-height: 60vh; overflow-y: auto; padding: 6px; }
.pal-row { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.pal-row.sel, .pal-row:hover { background: var(--gold-soft); }
.pal-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: rgba(140, 170, 220, 0.1); color: var(--gold); flex: none; }
.pal-t { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pal-t small { color: var(--muted); font-size: 11.5px; }
.pal-row.ask .pal-t { color: var(--gold); }
.pal-hint { padding: 10px 12px; }

.flash { position: fixed; z-index: 30; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 10px; background: #13203a; border: 1px solid var(--ok); color: var(--text); font-weight: 600; font-size: 13px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.flash.bad { border-color: var(--bad); }

/* Таблет и телефон за центъра */
@media (max-width: 900px) {
  .hub { padding: 0; }
  .hub-card { width: 100%; height: 100%; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border: 0; }
  .hub-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: calc(8px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px)); scrollbar-width: none; }
  .hub-nav-btn { flex: none; padding: 7px 10px; }
  .hub-head { padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .hub-body { padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .split { grid-template-columns: 1fr; }
  .pane-read { display: none; border: 0; padding: 0; }
  .hub-body.reading .pane-read { display: block; }
  .hub-body.reading .pane-list, .hub-body.reading .chips.mb { display: none; }
  .pane-list { max-height: none; }
  .only-mobile { display: inline-block; }
  .kanban { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; }
  .day-ev { grid-template-columns: 1fr; gap: 6px; }
  .mcell { min-height: 56px; }
  .mc-e { display: none; }
  .mcell:has(.mc-e)::after { content: '•'; color: var(--gold); }
  .facts dl { grid-template-columns: 1fr; }
  .search-chip .sc-t, .search-chip kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hub-card { animation: none; } }

/* Таблет */
@media (max-width: 1180px) {
  .app { grid-template-columns: minmax(240px, 300px) 1fr; grid-template-rows: auto auto auto; grid-template-areas: "top top" "left stage" "right right"; height: auto; min-height: 100%; }
  .stage { min-height: 620px; }
  .col { overflow: visible; }
  .col-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Телефон */
@media (max-width: 760px) {
  .app { display: flex; flex-direction: column; gap: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .top { margin-bottom: 0; padding-block: 10px; }
  .brand-sub { display: none; }
  .stage { order: 1; min-height: 0; }
  .orb { height: min(92vw, 420px); flex: none; min-height: 0; }
  .caption-wrap { min-height: 0; }
  .ask { position: fixed; left: 0; right: 0; bottom: 0; width: auto; z-index: 5; margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(5, 8, 15, 0.94); backdrop-filter: blur(10px); }
  .col-left { order: 2; }
  .col-right { order: 3; display: flex; align-items: stretch; }
  .profile-chip { max-width: 150px; }
  .top { gap: 8px; min-width: 0; }
  .brand { letter-spacing: 0.2em; font-size: 14px; min-width: 0; }
  .top-right { gap: 6px; min-width: 0; flex-shrink: 1; }
  .chip, .icon-btn { flex: none; }
  .suggest { gap: 6px; }
  .t-acts { opacity: 1; }
  .clock { display: flex; align-items: baseline; gap: 12px; }
  .clock-time { font-size: 34px; }
  .panel-log { min-height: 0; }
  .log { max-height: 50vh; }
  .chip { padding: 0 10px; font-size: 11px; }
}

@media (max-width: 520px) {
  .profile-chip #profileText { display: none; }
  .profile-chip { padding: 0 6px; }
  .search-chip { padding: 0 8px; }
  #logoutBtn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mic.on, .dot.spin, .toast, .toast-ring, .drawer-card { animation: none; }
}
