:root {
  --brand: #1F4E79;
  --brand-dark: #0B2E4F;
  --accent: #148CB8;
  --bg: #F3F5F8;
  --card: #FFFFFF;
  --text: #1B2430;
  --muted: #66707C;
  --line: #DDE2E8;
  --chip: #E8EEF5;
  --danger: #C62828;
  --warn: #C77700;
  --ok: #2E7D32;
  --high-bg: #FDE7E7;
  /* fontosság színei (naptár) */
  --p-high: #D32F2F;
  --p-normal: #148CB8;
  --p-low: #43A047;
  /* cégjelvények színei (a cég azonosítója szerint körbe-körbe, bármennyi cég lehet) */
  --c0-bg: #E3F4E8; --c0-fg: #1E7A3C;
  --c1-bg: #E8EEF5; --c1-fg: #148CB8;
  --c2-bg: #FFF1D6; --c2-fg: #8A5A00;
  --c3-bg: #EFE7FB; --c3-fg: #6A3FB5;
  --c4-bg: #DFF5F3; --c4-fg: #0E7C74;
  --c5-bg: #FCE6EE; --c5-fg: #B0305E;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F141A;
    --card: #19212B;
    --text: #E7ECF2;
    --muted: #9AA5B1;
    --line: #2A3542;
    --chip: #22303F;
    --high-bg: #3B1C1C;
    --p-high: #EF6B6B;
    --p-normal: #5FC0E6;
    --p-low: #7FD39A;
    --c0-bg: #16351F; --c0-fg: #7FD39A;
    --c1-bg: #22303F; --c1-fg: #5FC0E6;
    --c2-bg: #3A2E14; --c2-fg: #F2C46B;
    --c3-bg: #2C2140; --c3-fg: #C2A6F2;
    --c4-bg: #11332F; --c4-fg: #6FD6CB;
    --c5-bg: #3A1A27; --c5-fg: #F29BBB;
    --danger: #EF6B6B;
    --warn: #F0A33A;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: var(--accent); }

.view { min-height: 100vh; display: flex; flex-direction: column; }

/* Fejléc + fülek (görgetéskor fent maradnak) */
.top { position: sticky; top: 0; z-index: 5; }
.bar {
  display: flex; align-items: center; gap: 4px;
  background: var(--brand); color: #fff;
  padding: calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 8px) 8px calc(env(safe-area-inset-left) + 8px);
}
.bar-title { flex: 1; min-width: 0; padding-left: 8px; }
.bar h1 { margin: 0; font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { font-size: 13px; opacity: .85; }
.icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 22px; border: 0;
  background: transparent; color: inherit; display: grid; place-items: center; padding: 0;
}
.icon-btn:active { background: rgba(255, 255, 255, .18); }
.icon-btn svg { width: 24px; height: 24px; }

.tabs { display: flex; background: var(--card); border-bottom: 1px solid var(--line); }
.tab {
  flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; white-space: nowrap;
  padding: 12px 2px 10px; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted);
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.count:empty { display: none; }
.count {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px;
  background: var(--chip); color: var(--text); font-size: 12px; line-height: 20px;
}

.content {
  flex: 1; width: 100%; max-width: 720px; margin: 0 auto;
  padding: 12px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 100px) calc(env(safe-area-inset-left) + 12px);
}

/* Feladatkártyák */
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border-radius: var(--radius); padding: 12px 14px;
  border-left: 4px solid transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); cursor: pointer;
}
.task.prio-high { border-left-color: var(--danger); }
.check {
  flex: none; width: 28px; height: 28px; margin-top: 1px; padding: 0; border-radius: 50%;
  border: 2px solid var(--accent); background: transparent; display: grid; place-items: center;
}
.task.done .check { background: var(--ok); border-color: var(--ok); }
.task.done .check::after {
  content: ''; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0;
  transform: translateY(-1px) rotate(45deg);
}
.task .body { flex: 1; min-width: 0; }
.task .title { font-weight: 600; overflow-wrap: anywhere; }
.task.done .title { text-decoration: line-through; color: var(--muted); }
.task .meta {
  margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-size: 13px; color: var(--muted);
}
.task.overdue .due { color: var(--danger); font-weight: 700; }
.task.today .due { color: var(--warn); font-weight: 700; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px;
  background: var(--chip); color: var(--accent);
}
.badge.c0 { background: var(--c0-bg); color: var(--c0-fg); }
.badge.c1 { background: var(--c1-bg); color: var(--c1-fg); }
.badge.c2 { background: var(--c2-bg); color: var(--c2-fg); }
.badge.c3 { background: var(--c3-bg); color: var(--c3-fg); }
.badge.c4 { background: var(--c4-bg); color: var(--c4-fg); }
.badge.c5 { background: var(--c5-bg); color: var(--c5-fg); }
.badge.high { background: var(--high-bg); color: var(--danger); }
.badge.low { color: var(--muted); }
.empty { text-align: center; color: var(--muted); margin-top: 56px; }

/* Naptár */
.cal-card { background: var(--card); border-radius: var(--radius); padding: 6px 8px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cal-head { display: flex; align-items: center; }
.cal-title { flex: 1; text-align: center; font-weight: 700; font-size: 18px; }
.icon-btn.plain { color: var(--text); }
.icon-btn.plain:active { background: var(--chip); }
.cal-week {
  display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
  font-size: 12px; font-weight: 700; color: var(--muted); margin: 4px 0;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; touch-action: pan-y; }
.cal-day {
  aspect-ratio: 1 / 1; border: 0; border-radius: 10px; background: transparent; padding: 0;
  font: inherit; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.cal-day .num { font-size: 15px; line-height: 1; }
.cal-day.other { opacity: .38; }
.cal-day.busy { background: var(--chip); }
.cal-day.busy .num { font-weight: 700; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-day.today .num { color: var(--accent); font-weight: 800; }
.cal-day.sel { background: var(--brand); box-shadow: none; }
.cal-day.sel .num { color: #fff; }
.dots { display: flex; align-items: center; gap: 3px; height: 7px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.p-high { background: var(--p-high); }
.dot.p-normal { background: var(--p-normal); }
.dot.p-low { background: var(--p-low); }
.cal-day.sel .dots:not(:empty) { background: #fff; border-radius: 6px; padding: 2px 4px; height: 11px; margin-bottom: -4px; }
.dots .more { font-size: 11px; font-weight: 800; line-height: 7px; color: var(--muted); }
.cal-day.sel .more { color: #fff; }
.cal-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 10px 6px 0; font-size: 13px; color: var(--muted); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .link { margin-left: auto; padding: 4px 8px; font-weight: 700; }
.cal-day-title { margin: 18px 4px 10px; font-size: 16px; }
.cal-day-title::first-letter { text-transform: uppercase; }
#cal-day-empty { margin-top: 12px; }
#cal-nodue { margin: 14px 4px 0; }
.day-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 0; overflow: hidden; cursor: pointer;
  background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.day-item .bar { align-self: stretch; flex: none; width: 6px; border-radius: 0 4px 4px 0; background: var(--p-normal); }
.day-item .time { flex: none; min-width: 46px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--p-normal); }
.day-item .plabel { font-weight: 700; color: var(--p-normal); }
.day-item.p-high .bar { background: var(--p-high); }
.day-item.p-high .time, .day-item.p-high .plabel { color: var(--p-high); }
.day-item.p-low .bar { background: var(--p-low); }
.day-item.p-low .time, .day-item.p-low .plabel { color: var(--p-low); }
.day-item .body { flex: 1; min-width: 0; }
.day-item .title { font-weight: 600; overflow-wrap: anywhere; }
.day-item .meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.day-item .late { color: var(--danger); font-weight: 700; }
.day-item.done { opacity: .6; }
.day-item.done .title { text-decoration: line-through; }

.fab {
  position: fixed; z-index: 6; width: 60px; height: 60px; border-radius: 30px; border: 0; padding: 0;
  right: calc(env(safe-area-inset-right) + 20px); bottom: calc(env(safe-area-inset-bottom) + 20px);
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(11, 46, 79, .45);
}
.fab svg { width: 30px; height: 30px; }
body.offline .fab, body.has-update .fab { bottom: calc(env(safe-area-inset-bottom) + 76px); }
body.offline #update-banner { display: none !important; }

/* Alsó menüsor (csak a fő nézetben) */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: flex;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 4px calc(env(safe-area-inset-right) + 4px) calc(env(safe-area-inset-bottom) + 2px) calc(env(safe-area-inset-left) + 4px);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px;
  background: none; border: 0; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted);
}
.nav-btn svg { width: 24px; height: 24px; }
.nav-btn.active { color: var(--accent); }
body.nav-on .content { padding-bottom: calc(env(safe-area-inset-bottom) + 150px); }
body.nav-on #view-main .fab { bottom: calc(env(safe-area-inset-bottom) + 76px); }
body.nav-on .banner { bottom: calc(env(safe-area-inset-bottom) + 58px); padding-bottom: 10px; }
body.nav-on.offline #view-main .fab, body.nav-on.has-update #view-main .fab { bottom: calc(env(safe-area-inset-bottom) + 130px); }

/* Projektek */
.search { margin-bottom: 12px; }
.task .chev { flex: none; align-self: center; color: var(--muted); font-size: 22px; line-height: 1; }
.task.archived { opacity: .6; }
.cost { font-weight: 700; color: var(--text); }
.big-cost { font-size: 17px; font-weight: 700; }
.pre { white-space: pre-wrap; }
.check-row { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.check-row input { width: 22px; height: 22px; flex: none; -webkit-appearance: checkbox; appearance: auto; }
.entry { background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.entry.editable { cursor: pointer; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.entry-when { font-weight: 700; color: var(--text); }
.entry-head .cost { margin-left: auto; font-size: 14px; }
.entry-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-edited { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Napló */
.log-intro { margin: 0 4px 10px; }
.log-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.log-item { background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.log-tag { font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--chip); color: var(--accent); }
.ent-project .log-tag, .ent-entry .log-tag { background: var(--c0-bg); color: var(--c0-fg); }
.ent-reminder .log-tag { background: var(--c2-bg); color: var(--c2-fg); }
.ent-company .log-tag, .ent-user .log-tag { background: var(--c3-bg); color: var(--c3-fg); }
.log-who { font-weight: 700; color: var(--text); }
.log-when { margin-left: auto; }
.log-text { overflow-wrap: anywhere; }
.log-change { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }

/* Emlékeztetők a feladat űrlapján */
.rem-box { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.rem-box h3 { margin: 0; font-size: 16px; }
.rem-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rem-list:empty { display: none; }
.rem-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.rem-when { font-weight: 700; }
.rem-status { color: var(--muted); }
.rem-status.ok { color: var(--ok); font-weight: 700; }
.rem-del { margin-left: auto; padding: 2px 4px; font-size: 14px; }
.bell { font-size: 13px; }

/* Űrlapok */
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; -webkit-appearance: none; appearance: none;
}
select:disabled { opacity: .6; }
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.chip { border: 0; border-radius: 16px; padding: 7px 12px; background: var(--chip); color: var(--text); font: inherit; font-size: 14px; }
.chip:active { background: var(--accent); color: #fff; }
button.primary, button.secondary, button.danger {
  width: 100%; font: inherit; font-weight: 700; border-radius: 12px; padding: 14px; border: 0;
}
.primary { background: var(--brand); color: #fff; }
.primary:disabled { opacity: .6; }
.secondary { background: var(--chip); color: var(--text); }
.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.link { background: none; border: 0; color: var(--accent); font: inherit; padding: 8px; }
.error { min-height: 1.2em; margin: 0; color: var(--danger); font-size: 14px; }
.hint, .muted { color: var(--muted); }
.hint { margin: -6px 0 0; font-size: 13px; }
.small { font-size: 13px; }
.meta-line { margin: 0; color: var(--muted); font-size: 13px; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.card h2 { margin: 0 0 2px; font-size: 17px; }
.card p { margin: 4px 0; }
.co-list { list-style: none; margin: 6px 0 14px; padding: 0; }
.co-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.co-item .co-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.co-item .edit { color: var(--accent); font-size: 14px; }
input::placeholder { color: var(--muted); opacity: .7; }
.button-link {
  display: block; text-align: center; text-decoration: none; font-weight: 700;
  padding: 14px; border-radius: 12px; background: var(--brand); color: #fff;
}
.secret {
  margin: 0; padding: 10px; border-radius: 10px; background: var(--chip); text-align: center;
  font: 600 17px/1.5 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere;
}
.codes {
  list-style: none; margin: 8px 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  font: 600 16px/1.6 ui-monospace, Menlo, Consolas, monospace; text-align: center;
}
.codes li { background: var(--chip); border-radius: 8px; padding: 4px 0; }
.notes { margin: 4px 0 12px; padding-left: 20px; }
.notes li { margin: 3px 0; }

/* Leírás mező diktálással (mikrofon gomb a címke mellett) */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-head label { flex: 1; }
.mic {
  flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 18px;
  padding: 7px 14px 7px 10px; background: var(--chip); color: var(--accent); font: inherit; font-size: 14px; font-weight: 700;
}
.mic svg { width: 20px; height: 20px; }
.mic.rec { background: var(--danger); color: #fff; animation: mic-pulse 1.3s ease-in-out infinite; }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); }
  50% { box-shadow: 0 0 0 8px rgba(198, 40, 40, 0); }
}
@media (prefers-reduced-motion: reduce) { .mic.rec { animation: none; } }
textarea { overflow-y: auto; }

/* Első belépés: lépések */
.steps { list-style: none; display: flex; gap: 8px; margin: 0 0 14px; padding: 0; counter-reset: step; }
.steps li {
  flex: 1; counter-increment: step; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 6px 4px; border-radius: 10px; background: var(--chip);
}
.steps li::before { content: counter(step) ". "; }
.steps li.active { background: var(--brand); color: #fff; }
.steps li.done { color: var(--ok); }
.steps li.done::before { content: "✓ "; }
#view-setup .auth-card { margin: auto 0; }
#view-setup .codes { margin-top: 12px; }
.check-row span { font-weight: 600; }
.remember-days { color: var(--muted); font-weight: 400 !important; }

.small-link { align-self: center; font-size: 14px; padding: 4px 8px; }

/* Régi (IP-címes) ikon: költözés az új címre */
.move-banner {
  position: fixed; z-index: 40; left: 10px; right: 10px; top: calc(env(safe-area-inset-top) + 64px);
  background: #FFF4D6; color: #3B2F00; border-radius: 14px; padding: 12px 40px 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font-size: 14px;
}
.move-banner p { margin: 0 0 10px; }
.move-links { display: flex; gap: 8px; }
.move-links .button-link { flex: 1; padding: 10px; font-size: 15px; }
.secondary-link { background: transparent !important; color: var(--brand) !important; box-shadow: inset 0 0 0 2px var(--brand); }
.move-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 24px; line-height: 1; padding: 6px; color: inherit; }

/* Megjegyzett eszközök */
.dev-item { cursor: default; }
.dev-label { font-weight: 600; }
.dev-item .link { flex: none; font-size: 14px; }

/* Belépés */
.auth {
  justify-content: center; align-items: center;
  padding: calc(env(safe-area-inset-top) + 24px) 20px calc(env(safe-area-inset-bottom) + 24px);
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
}
.auth-card {
  width: 100%; max-width: 380px; background: var(--card); border-radius: 20px; padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.auth-card h1 { margin: 8px 0 2px; font-size: 24px; text-align: center; }
.auth-card .sub { margin: 0 0 18px; text-align: center; color: var(--muted); font-size: 14px; }
.auth-logo { display: block; margin: 0 auto; border-radius: 16px; }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.cert-link { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; }
.cert-link a { font-weight: 700; font-size: 15px; }

/* Kapcsolati sáv és üzenetek */
.banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  background: #B3261E; color: #fff; font-size: 14px;
  padding: 10px calc(env(safe-area-inset-right) + 16px) calc(env(safe-area-inset-bottom) + 10px) calc(env(safe-area-inset-left) + 16px);
}
.banner.update { background: var(--brand); }
.banner span { flex: 1; }
.banner .link { color: #fff; text-decoration: underline; font-weight: 700; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 30; max-width: 90vw;
  bottom: calc(env(safe-area-inset-bottom) + 96px);
  background: rgba(20, 28, 38, .92); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 14px; text-align: center;
}

/* 0.7.0: több felelős (jelölhető gombok), közös feladat jelölése, időpont nélküli határidő */
.field-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.pick-chips { margin-top: 0; }
.chip.pick {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; font-size: 15px; font-weight: 600;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
}
.chip.pick::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--muted); display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1;
}
.chip.pick[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.chip.pick[aria-pressed="true"]::before { content: "✓"; border: 0; background: #fff; color: var(--accent); }
.chip.pick:disabled { opacity: .65; }
.chip.pick:disabled:active { background: var(--card); color: var(--text); }
.chip.pick[aria-pressed="true"]:disabled:active { background: var(--accent); color: #fff; }
#f-assignees-hint { margin: 0; }
.assign.shared { color: var(--accent); font-weight: 700; }
.day-item .time.allday { width: 46px; font-size: 12px; line-height: 1.15; text-align: center; white-space: normal; }
input[type="date"] { min-height: 48px; }

/* 0.8.0: határidő (nap + időpont, óra-gombok), választógombok, privát, projekt eszközsor, tartozások */
.due-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.due-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.due-row input { min-width: 0; }
.due-row label.sub { gap: 4px; font-size: 13px; }
input[type="time"] { min-height: 48px; }
input::-webkit-date-and-time-value { text-align: left; }
.chip.opt[aria-pressed="true"] { background: var(--accent); color: #fff; }
.chip.opt:disabled { opacity: .6; }
#f-due-hint { margin: 0; }
.badge.priv { background: var(--chip); color: var(--text); }
.proj-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.proj-tools .search { margin-bottom: 0; flex: 1; min-width: 0; }
.proj-tools .secondary { width: auto; flex: none; padding: 12px 14px; white-space: nowrap; }
.kv { margin: 4px 0; }
.debt { background: var(--card); border-radius: var(--radius); padding: 12px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); cursor: pointer; }
.debt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.debt-who { font-weight: 700; }
.debt-amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.debt-note { margin-top: 4px; overflow-wrap: anywhere; }
.debt-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.debt-meta .open { color: var(--warn); font-weight: 700; }
.debt-meta .ok { color: var(--ok); font-weight: 700; }
.debt.settled { opacity: .7; }
.debt.settled .debt-amt { text-decoration: line-through; }
#debt-new { margin: 4px 0 6px; }
#debt-form { margin-top: 4px; }
#debt-sum { margin: 0 0 8px; }
.debt-flag { color: var(--warn); font-weight: 700; }

/* 0.9.0: projekt a feladatnál, több napos feladat, a projekt feladatai */
.proj-tag, .span-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.span-tag { font-weight: 700; }
#ptask-new { margin: 4px 0 6px; }
#ptask-empty { margin: 0 0 6px; }
#f-multi-row { margin-top: 2px; }

/* 0.9.1: görgetés a ragadós fejléc alá; üres dátum-idő mező iPhone-on; sötét mód: jobban olvasható zöld */
#debt-form { scroll-margin-top: calc(env(safe-area-inset-top) + 72px); }
input[type="datetime-local"] { min-height: 48px; }
@media (prefers-color-scheme: dark) {
  .debt-meta .ok, .rem-status.ok, .steps li.done { color: #7FD39A; }
}

/* 0.10.0: értesítő e-mailek (beállítások) */
#notify-card .check-row { margin: 12px 0; align-items: flex-start; font-weight: 500; }
#notify-card .check-row input { margin-top: 1px; }
#notify-card .check-row span { font-weight: 500; }
#n-hint { margin: 4px 0 0; }
