[hidden] { display: none !important; }
/* Layout: ügyintézői pult — bal oldali modulmenü, jobb oldalon a kiválasztott modul; a KATA figyelőben felül személyenkénti áttekintő kártyák, alatta a kiválasztott személy részletei. A kékes tónus a nyugtatömbök indigókék másolópapírjából jön. */
:root {
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #172031;
  --muted: #5A6578;
  --line: #DCE1EA;
  --track: #E7EBF2;
  --carbon: #2C4DB3;
  --carbon-soft: #E3E9F8;
  --series2: #0E857A;
  --ok: #1D7445;
  --ok-soft: #E1F2E8;
  --warn: #A9520A;
  --warn-soft: #FBEBDB;
  --bad: #BE2530;
  --bad-soft: #FADFE1;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E121A; --surface: #161C27; --ink: #E5E9F1; --muted: #98A2B5; --line: #283143; --track: #222A38;
    --carbon: #86A2F2; --carbon-soft: #1C2848; --series2: #43C3B4;
    --ok: #63CC8F; --ok-soft: #15301F; --warn: #F2A55A; --warn-soft: #3A2612; --bad: #F2777E; --bad-soft: #3D1A1E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E121A; --surface: #161C27; --ink: #E5E9F1; --muted: #98A2B5; --line: #283143; --track: #222A38;
  --carbon: #86A2F2; --carbon-soft: #1C2848; --series2: #43C3B4;
  --ok: #63CC8F; --ok-soft: #15301F; --warn: #F2A55A; --warn-soft: #3A2612; --bad: #F2777E; --bad-soft: #3D1A1E;
  color-scheme: dark;
}

body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
* { box-sizing: border-box; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--carbon); outline-offset: 2px; }

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.side { border-right: 1px solid var(--line); background: var(--surface); padding-block: 28px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: 20px; display: flex; flex-direction: column; gap: 28px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.brand-sub { font-size: 0.8rem; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--carbon-soft); color: var(--carbon); }
.nav-glyph { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; background: var(--carbon); color: var(--surface); flex: none; }
.nav-hint { font-size: 0.8rem; color: var(--muted); padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; }

.main { padding-block: 32px 48px; padding-left: max(16px, 32px); padding-right: max(16px, env(safe-area-inset-right, 0px), 32px); min-width: 0; }
.wrap { max-width: 1040px; margin-inline: auto; display: flex; flex-direction: column; gap: 28px; }

.mod-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.mod-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; }
.mod-sub { color: var(--muted); font-size: 0.92rem; margin-top: 6px; max-width: 62ch; }
.updated { font-size: 0.82rem; color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.person { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s; }
.person:hover { border-color: var(--muted); }
.person[aria-pressed="true"] { border-color: var(--carbon); box-shadow: 0 0 0 1px var(--carbon); }
.person-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.person-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.person-desc { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.person-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.person-total b { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.person-total span { color: var(--muted); font-size: 0.88rem; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); background: var(--ok-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.chip.bad { color: var(--bad); background: var(--bad-soft); }

.barline { position: relative; padding-block: 4px; }
.track { display: flex; height: 12px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar.big .track { height: 22px; }
.seg { height: 100%; }
.mark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--muted); }
.mark.over { border-left-color: var(--bad); }
.scale { position: relative; height: 1.5em; font-size: 0.78rem; color: var(--muted); }
.scale span { position: absolute; top: 2px; white-space: nowrap; }
.scale .s0 { left: 0; }
.scale .smid { transform: translateX(-50%); }
.scale .smid.over { color: var(--bad); font-weight: 600; }
.scale .send { right: 0; }

.detail { display: flex; flex-direction: column; gap: 20px; }
.detail-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.detail-head h2 { font-size: 1.4rem; }
.take { font-size: 0.95rem; }
.take.warn { color: var(--warn); }
.take.bad { color: var(--bad); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-label { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile-val { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; }
.tile-val.bad { color: var(--bad); }
.tile-sub { font-size: 0.78rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.panel-head h3 { font-size: 1.05rem; }
.note { font-size: 0.82rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.search { width: min(100%, 260px); padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 0.88rem; }
.tablewrap { overflow: auto; max-height: 560px; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 500; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr.cross td { background: var(--warn-soft); }
.r { text-align: right; }
.tag { font-size: 0.75rem; color: var(--muted); }
.cross-note { font-size: 0.72rem; color: var(--warn); font-weight: 600; margin-left: 6px; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); gap: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav-label { display: none; }
  .main { padding-block: 24px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hide-narrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- Saját domain kiegészítések --- */
html, body { height: 100%; }
body { margin: 0; padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.side-foot .who { overflow-wrap: anywhere; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; font-size: 0.9rem; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--carbon); border-color: var(--carbon); color: var(--surface); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.small { padding: 4px 10px; font-size: 0.8rem; }
.btn.danger { color: var(--bad); }
.btn.danger.armed { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.btn:disabled { opacity: .55; cursor: default; }

.login { min-height: 100%; display: grid; place-items: center; padding-block: 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.login-card { width: min(100%, 380px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.login-card h1 { font-size: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.field input, .field select { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.msg { font-size: 0.86rem; min-height: 1.3em; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }

.entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; align-items: end; }
.entry .btn { height: 40px; }
td.act { width: 1%; }

/* --- Kezdőlap --- */
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 6px; }
.home-sec { display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.sec-head h2 { font-size: 1.25rem; }
.link { color: var(--carbon); text-decoration: none; font-size: 0.88rem; font-weight: 500; }
.link:hover { text-decoration: underline; }
.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alerts li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; }
.alerts .chip { flex: none; margin-top: 1px; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.recent li:last-child { border-bottom: 0; }
.recent .who-line { color: var(--muted); font-size: 0.8rem; }
.recent .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.mod { display: flex; align-items: flex-start; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.92rem; line-height: 1.4; }
a.mod:hover { border-color: var(--carbon); }
.mod-empty { border-style: dashed; }
.nav-glyph.ghost { background: var(--track); color: var(--muted); }

/* --- Időjárás (kompakt) --- */
.wx { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; min-width: 0; }
.wx .w-icon { width: 30px; height: 30px; color: var(--carbon); flex: none; }
.wx .w-icon svg { width: 100%; height: 100%; }
.wx b { font-family: var(--font-display); font-size: 1.05rem; }
.wx .note { font-size: 0.76rem; }

/* --- Frissítés gomb --- */
.topbar { max-width: 1040px; margin: 0 auto 18px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.topbar .spin { display: inline-block; font-size: 1rem; line-height: 1; }
.topbar .busy .spin { animation: forog 0.8s linear infinite; }
@keyframes forog { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .topbar .busy .spin { animation: none; } }

/* --- Név --- */
.brand-word { letter-spacing: 0.14em; }
.brand-name.brand-word { font-size: 1.35rem; }
.brand-sub b { color: var(--carbon); font-weight: 600; }

/* --- Laura üzenete --- */
.laura { display: flex; align-items: flex-start; gap: 12px; max-width: 720px; }
.laura-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--carbon); color: var(--surface); font-family: var(--font-display); font-weight: 700; letter-spacing: 0.05em; }
.laura-bubble { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 16px; font-size: 0.95rem; line-height: 1.55; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.laura-name { font-size: 0.75rem; font-weight: 600; color: var(--carbon); letter-spacing: 0.04em; }

/* --- Írj Laurának + jegyzetek --- */
.ask { display: flex; gap: 10px; max-width: 720px; margin-left: 52px; }
.ask input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.ask input:focus { border-color: var(--carbon); outline: none; box-shadow: 0 0 0 3px var(--carbon-soft); }
.ask .btn { border-radius: 999px; padding-inline: 18px; }
@media (max-width: 760px) { .ask { margin-left: 0; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--carbon); font: inherit; font-size: 0.85rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.notes li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.notes .tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted); background: transparent; flex: none; cursor: pointer; display: grid; place-items: center; color: var(--surface); font-size: 0.8rem; padding: 0; margin-top: 1px; }
.notes .tick:hover { border-color: var(--carbon); }
.notes li.done .tick { background: var(--ok); border-color: var(--ok); }
.notes .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.95rem; }
.notes li.done .txt { color: var(--muted); text-decoration: line-through; }
.notes .due { flex: none; }
.notes .del { flex: none; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.notes .del:hover { color: var(--bad); }
.notes .del.armed { color: var(--surface); background: var(--bad); font-size: 0.75rem; padding: 4px 8px; }

/* --- Értesítések --- */
.push .note { font-size: 0.88rem; max-width: 62ch; }
.push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip:not(.ok):not(.warn):not(.bad) { color: var(--muted); background: var(--track); }

/* --- Csevegés --- */
.chat { max-width: 720px; margin-left: 52px; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row.me { justify-content: flex-end; }
.laura-ava.small { width: 26px; height: 26px; font-size: 0.75rem; }
.msg-bubble { max-width: 85%; padding: 9px 14px; border-radius: 14px; font-size: 0.93rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-bubble p { margin: 0; }
.msg-bubble p + p { margin-top: 8px; }
.msg-row.laura .msg-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-row.me .msg-bubble { background: var(--carbon); color: var(--surface); border-bottom-right-radius: 4px; }
.msg-row.typing .msg-bubble { color: var(--muted); font-style: italic; }
.chat-tools { max-width: 720px; margin-left: 52px; display: flex; justify-content: flex-end; }
.link-btn.armed { color: var(--bad); font-weight: 600; }
@media (max-width: 760px) { .chat, .chat-tools { margin-left: 0; } }

/* --- Gyorslinkek --- */
.qlinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.qlink { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; min-width: 0; }
.qlink:hover { border-color: var(--carbon); }
.qlink-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; color: #fff; }
.qlink-ico.cooltix { background: #4B2BE8; }
.qlink-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qlink-txt .note { font-size: 0.78rem; }
.qlink-arrow { margin-left: auto; color: var(--muted); }

/* --- Heti sáv (kezdőlap) --- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wday { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.wday:hover { border-color: var(--muted); }
.wday .dw { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wday .dn { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.wday .dots { display: flex; gap: 3px; min-height: 8px; align-items: center; }
.wday .dot-s { width: 6px; height: 6px; border-radius: 50%; background: var(--carbon); }
.wday .dot-s.bad { background: var(--bad); }
.wday .dot-s.done { background: var(--ok); }
.wday.today { border-color: var(--carbon); }
.wday.today .dn { color: var(--carbon); }
.wday[aria-selected="true"] { background: var(--carbon); border-color: var(--carbon); color: var(--surface); }
.wday[aria-selected="true"] .dw, .wday[aria-selected="true"] .dn { color: var(--surface); }
.wday[aria-selected="true"] .dot-s { background: var(--surface); }
.wday.past:not([aria-selected="true"]) { opacity: 0.6; }
.week-day { display: flex; flex-direction: column; gap: 4px; }
.week-day-title { margin: 0; font-size: 0.85rem; color: var(--muted); }
.notes .empty-li { color: var(--muted); font-size: 0.9rem; border-bottom: 0; padding: 6px 0; }

/* --- Naptár modul --- */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-head h2 { font-size: 1.25rem; min-width: 10ch; text-align: center; flex: 1; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { font-size: 0.72rem; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 0; }
.cday { min-height: 84px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); text-align: left; min-width: 0; overflow: hidden; }
.cday:hover { border-color: var(--muted); }
.cday.other { background: transparent; color: var(--muted); border-style: dashed; }
.cday.weekend:not(.other) { background: var(--paper); }
.cday .num { font-weight: 600; font-size: 0.85rem; }
.cday.today .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--carbon); color: var(--surface); }
.cday[aria-selected="true"] { border-color: var(--carbon); box-shadow: 0 0 0 1px var(--carbon); }
.cday .ev { font-size: 0.72rem; line-height: 1.3; padding: 1px 5px; border-radius: 4px; background: var(--carbon-soft); color: var(--carbon); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cday .ev.bad { background: var(--bad-soft); color: var(--bad); }
.cday .ev.done { background: var(--track); color: var(--muted); text-decoration: line-through; }
.cday .more { font-size: 0.7rem; color: var(--muted); }
.cday .cdots { display: none; gap: 3px; flex-wrap: wrap; }
.cday .cdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--carbon); }
.cday .cdots i.bad { background: var(--bad); }
.cday .cdots i.done { background: var(--ok); }
.cal-add { margin-left: 0; max-width: none; }
@media (max-width: 640px) {
  .cday { min-height: 52px; padding: 4px; align-items: center; }
  .cday .ev, .cday .more { display: none; }
  .cday .cdots { display: flex; justify-content: center; }
}

/* --- Naptári programok --- */
.cday .ev.event { background: var(--ok-soft, var(--carbon-soft)); color: var(--ok); }
.wday .dot-s.event, .cday .cdots i.event { background: var(--ok); border-radius: 2px; }
.wday[aria-selected="true"] .dot-s.event { background: var(--surface); }
.notes li.event .ev-mark { width: 22px; text-align: center; flex: none; }
.chip.due.event { background: var(--ok-soft, var(--track)); color: var(--ok); }
.cal-add-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; color: var(--muted); }
.cal-add-opts .check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cal-add-opts input[type="date"] { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.qlinks-hint { margin-top: 8px; font-size: 0.8rem; }
.cal-add-opts input[type="time"] { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }

/* --- Hangüzenet gomb --- */
.ask .btn.mic { padding: 0; width: 44px; min-width: 44px; display: inline-grid; place-items: center; color: var(--carbon); background: var(--surface); border: 1px solid var(--line); }
.ask .btn.mic:hover { border-color: var(--carbon); }
.ask .btn.mic.listening { background: var(--bad); border-color: var(--bad); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--bad-soft); } 50% { box-shadow: 0 0 0 8px var(--bad-soft); } }
@media (prefers-reduced-motion: reduce) { .ask .btn.mic.listening { animation: none; } }

/* --- Cooltix modul --- */
.ctx-sync { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctx-error { color: var(--bad); }
.ctx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ctx-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.ctx-tile b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ctx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.ctx-card { display: flex; flex-direction: column; gap: 10px; }
.ctx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ctx-name { font-size: 1rem; line-height: 1.35; }
.ctx-nums { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.ctx-big b { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ctx-money b { font-variant-numeric: tabular-nums; }
.ctx-bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.ctx-bar span { display: block; height: 100%; background: var(--carbon); border-radius: 999px; }
.ctx-bar span.full { background: var(--ok); }
.ctx-trend { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ctx-spark { width: 168px; max-width: 60%; height: 34px; flex: none; }
.ctx-spark rect.on { fill: var(--carbon); }
.ctx-spark rect.off { fill: var(--track); }
.ctx-types { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.ctx-types li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.ctx-types .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-type-n { font-variant-numeric: tabular-nums; color: var(--muted); }
.ctx-table-wrap { overflow-x: auto; }
.ctx-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ctx-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.78rem; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ctx-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctx-table .nowrap { white-space: nowrap; }
.ctx-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ctx-mini-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.ctx-mini li:last-child .ctx-mini-row { border-bottom: 0; }
.ctx-mini-row .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-mini-date { font-weight: 600; color: var(--carbon); min-width: 7ch; }
.ctx-mini-n { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
