/* ==========================================================
   Feladatok – Apple-stílusú feladatkezelő
   ========================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --bg: #FFFFFF;
  --bg-2: #F2F2F7;
  --sidebar: rgba(242, 242, 247, .92);
  --pane: #FFFFFF;
  --card: #FFFFFF;
  --seg-on: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #AEAEB2;
  --sep: rgba(60, 60, 67, .11);
  --sep-strong: rgba(60, 60, 67, .22);
  --fill: rgba(120, 120, 128, .08);
  --fill-2: rgba(120, 120, 128, .14);
  --fill-3: rgba(120, 120, 128, .24);
  --hover: rgba(0, 0, 0, .035);
  --accent: #007AFF;
  --accent-soft: rgba(0, 122, 255, .11);
  --sel: rgba(0, 122, 255, .09);

  --red: #FF3B30; --orange: #FF9500; --yellow: #FFCC00; --green: #34C759; --teal: #30B0C7;
  --blue: #007AFF; --indigo: #5856D6; --purple: #AF52DE; --pink: #FF2D55; --gray: #8E8E93;

  --pop: rgba(255, 255, 255, .9);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .05);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 .5px rgba(0, 0, 0, .07);
  --shadow-card-h: 0 6px 18px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .08);
  --shadow-pop: 0 14px 44px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .1);
  --toast: rgba(28, 28, 30, .94);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1C1E; --bg-2: #141416; --sidebar: rgba(36, 36, 38, .94); --pane: #232325; --card: #2C2C2E; --seg-on: #5B5B5F;
    --text: #F5F5F7; --text-2: #A1A1A6; --text-3: #636366;
    --sep: rgba(255, 255, 255, .08); --sep-strong: rgba(255, 255, 255, .16);
    --fill: rgba(118, 118, 128, .14); --fill-2: rgba(118, 118, 128, .22); --fill-3: rgba(118, 118, 128, .34);
    --hover: rgba(255, 255, 255, .04);
    --accent: #0A84FF; --accent-soft: rgba(10, 132, 255, .2); --sel: rgba(10, 132, 255, .17);
    --red: #FF453A; --orange: #FF9F0A; --yellow: #FFD60A; --green: #30D158; --teal: #40C8E0;
    --blue: #0A84FF; --indigo: #5E5CE6; --purple: #BF5AF2; --pink: #FF375F; --gray: #98989D;
    --pop: rgba(44, 44, 46, .92);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .06);
    --shadow-card-h: 0 6px 18px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .1);
    --shadow-pop: 0 14px 44px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .12);
    --toast: rgba(58, 58, 60, .96);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1C1E; --bg-2: #141416; --sidebar: rgba(36, 36, 38, .94); --pane: #232325; --card: #2C2C2E; --seg-on: #5B5B5F;
  --text: #F5F5F7; --text-2: #A1A1A6; --text-3: #636366;
  --sep: rgba(255, 255, 255, .08); --sep-strong: rgba(255, 255, 255, .16);
  --fill: rgba(118, 118, 128, .14); --fill-2: rgba(118, 118, 128, .22); --fill-3: rgba(118, 118, 128, .34);
  --hover: rgba(255, 255, 255, .04);
  --accent: #0A84FF; --accent-soft: rgba(10, 132, 255, .2); --sel: rgba(10, 132, 255, .17);
  --red: #FF453A; --orange: #FF9F0A; --yellow: #FFD60A; --green: #30D158; --teal: #40C8E0;
  --blue: #0A84FF; --indigo: #5E5CE6; --purple: #BF5AF2; --pink: #FF375F; --gray: #98989D;
  --pop: rgba(44, 44, 46, .92);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(255, 255, 255, .06);
  --shadow-card-h: 0 6px 18px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .1);
  --shadow-pop: 0 14px 44px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .12);
  --toast: rgba(58, 58, 60, .96);
  color-scheme: dark;
}

/* ---------- Alapok ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.4; color: var(--text);
  background: var(--bg-2); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.006em; overflow: hidden; font-feature-settings: "cv11", "ss01";
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
::placeholder { color: var(--text-3); }
svg { display: block; flex-shrink: 0; }
.spacer { flex: 1; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
kbd { font-family: var(--font); font-size: 11px; color: var(--text-3); background: var(--fill); border-radius: 5px; padding: 1px 6px; font-weight: 500; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--fill-3); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--text-3); }
::-webkit-scrollbar-track { background: transparent; }

#app { display: flex; height: 100vh; height: 100dvh; }

/* ---------- Gombok ---------- */
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: background .12s, color .12s; flex-shrink: 0;
}
.icon-btn:hover { background: var(--fill-2); color: var(--text); }
.icon-btn:active { background: var(--fill-3); }
.icon-btn.sm { width: 24px; height: 24px; border-radius: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: 8px; font-weight: 500; font-size: 13.5px; background: var(--fill-2); color: var(--text);
  transition: filter .12s, background .12s, transform .08s; white-space: nowrap;
}
.btn:hover { background: var(--fill-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.btn.ghost { background: none; color: var(--text-2); padding: 0 10px; }
.btn.ghost:hover { background: var(--fill-2); color: var(--text); }
.btn.block { width: 100%; height: 38px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.seg { display: inline-flex; padding: 2px; background: var(--fill-2); border-radius: 9px; flex-shrink: 0; }
.seg button {
  height: 26px; padding: 0 10px; border-radius: 7px; display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.seg button.on { background: var(--seg-on); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Oldalsáv ---------- */
.sidebar {
  width: 260px; flex-shrink: 0; background: var(--sidebar); border-right: 1px solid var(--sep);
  display: flex; flex-direction: column; backdrop-filter: saturate(180%) blur(20px);
}
.sb-top { padding: 16px 12px 8px; }
.sb-search {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px 0 10px;
  border-radius: 9px; background: var(--fill-2); color: var(--text-2); font-size: 13.5px; text-align: left;
}
.sb-search span { flex: 1; }
.sb-search:hover { background: var(--fill-3); }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.sb-item {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px;
  cursor: default; user-select: none; font-size: 14px; transition: background .1s;
}
.sb-item:hover { background: var(--hover); }
.sb-item.active { background: var(--fill-2); font-weight: 500; }
.sb-ic { width: 20px; display: flex; justify-content: center; color: var(--text-2); }
.sb-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-count { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sb-item.drop-hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sb-sec { margin-top: 16px; }
.sb-sec-head.drop-hover { background: var(--accent-soft); color: var(--accent); }
.sb-item[draggable="true"]:active { cursor: grabbing; }
.sb-sec-head {
  display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-2); cursor: default; user-select: none;
}
.sb-chev { display: flex; color: var(--text-3); transition: transform .18s ease; transform: rotate(90deg); }
.sb-sec.collapsed > .sb-sec-head .sb-chev, .sb-folder.collapsed > .sb-item .sb-chev { transform: rotate(0); }
.sb-sec-head .sb-chev { opacity: 0; }
.sb-sec-head:hover .sb-chev, .sb-sec.collapsed .sb-sec-head .sb-chev { opacity: 1; }
.sb-add { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-2); opacity: 0; transition: opacity .12s; }
.sb-sec-head:hover .sb-add { opacity: 1; }
.sb-add:hover { background: var(--fill-2); color: var(--text); }
.sb-sec.collapsed .sb-sec-body { display: none; }
.sb-folder .folder-row { padding-left: 4px; gap: 6px; }
.sb-folder .folder-row .sb-chev { width: 14px; justify-content: center; }
.sb-folder.collapsed .sb-children { display: none; }
.sb-children .sb-item { padding-left: 30px; }
.sb-empty { font-size: 12.5px; color: var(--text-3); padding: 4px 10px 4px 40px; }
.sb-sep { height: 1px; background: var(--sep); margin: 14px 10px 10px; }
.sb-bottom { padding: 8px 10px; border-top: 1px solid var(--sep); display: flex; gap: 2px; align-items: center; }

/* ---------- Fő terület ---------- */
.main { flex: 1; min-width: 0; background: var(--bg); display: flex; flex-direction: column; position: relative; }
.main-head { display: flex; align-items: center; gap: 10px; padding: 24px 28px 12px; }
.mh-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mh-ic { display: flex; }
.mh-title h1 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.024em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mh-count { font-size: 15px; color: var(--text-3); font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mh-actions { display: flex; align-items: center; gap: 4px; }
.mh-actions .seg { margin-right: 6px; }

.quick-add { margin: 2px 28px 10px; }
.qa-box {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 11px;
  background: var(--fill); transition: background .15s, box-shadow .15s;
}
.qa-box:focus-within { background: var(--bg); box-shadow: 0 0 0 1.5px var(--accent), 0 4px 16px color-mix(in srgb, var(--accent) 14%, transparent); }
.qa-ic { color: var(--accent); display: flex; }
.qa-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 14.5px; min-width: 0; }
.qa-preview:empty { display: none; }
.qa-preview { padding: 7px 4px 0; }

.content { flex: 1; overflow: auto; padding: 0 18px 60px; min-height: 0; }
.content.mode-kanban { padding: 0; overflow: hidden; display: flex; }

/* ---------- Lista nézet ---------- */
.group { margin-top: 12px; border-radius: 12px; transition: background .15s; }
.group-head {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; font-size: 13px; font-weight: 600;
  cursor: default; user-select: none; border-radius: 8px;
}
.group-head:hover { background: var(--hover); }
.group-head.static:hover { background: none; }
.g-chev { display: flex; color: var(--text-3); transition: transform .18s; transform: rotate(90deg); }
.group.collapsed .g-chev { transform: rotate(0); }
.group.collapsed .group-body { display: none; }
.g-dot { width: 8px; height: 8px; border-radius: 50%; }
.g-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-count { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.g-more { margin-left: auto; opacity: 0; }
.group-head:hover .g-more { opacity: 1; }
.group.drop-hover { background: var(--accent-soft); }
.group-empty { font-size: 12.5px; color: var(--text-3); padding: 8px 12px 10px 44px; }
.done-sec { margin-top: 22px; }
.done-sec .g-title { color: var(--text-2); }
.add-section { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; margin-top: 10px; border-radius: 8px; color: var(--text-2); font-size: 13px; }
.add-section:hover { background: var(--hover); color: var(--accent); }

.task {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; position: relative;
  cursor: default; transition: background .1s, opacity .3s;
}
.task::after { content: ''; position: absolute; left: 44px; right: 12px; bottom: 0; height: 1px; background: var(--sep); }
.task:last-child::after, .task:hover::after, .task.selected::after { display: none; }
.task:hover { background: var(--hover); }
.task.selected { background: var(--sel); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14.5px; line-height: 20px; word-break: break-word; }
.task.done .task-title { color: var(--text-3); }
.ph { color: var(--text-3); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; font-size: 12.5px; color: var(--text-2); }
.task-meta > span, .card-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.m-date.overdue { color: var(--red); }
.m-date.today { color: var(--accent); }
.m-icon { color: var(--text-3); }
.task-flag { padding-top: 3px; display: flex; }
.task.completing { opacity: .35; }
.task.completing .task-title { color: var(--text-3); }

.chip {
  display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 7px; border-radius: 10px;
  font-size: 11.5px; font-weight: 500; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap;
}
.chip-x { display: inline-flex; margin-left: 1px; margin-right: -3px; width: 14px; height: 14px; border-radius: 50%; align-items: center; justify-content: center; color: inherit; opacity: .7; }
.chip-x:hover { opacity: 1; background: color-mix(in srgb, var(--c) 22%, transparent); }
.chip.add { --c: var(--text-2); background: var(--fill-2); height: 22px; padding: 0 9px; border-radius: 11px; }
.chip.add:hover { background: var(--fill-3); color: var(--text); }

/* Kör alakú pipa (Emlékeztetők-stílus) */
.check {
  --cc: var(--accent); --bc: var(--text-3);
  width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--bc); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; position: relative;
  transition: background .2s, border-color .2s, transform .12s;
}
.check.p1 { --cc: var(--blue); --bc: var(--blue); }
.check.p2 { --cc: var(--orange); --bc: var(--orange); }
.check.p3 { --cc: var(--red); --bc: var(--red); }
.check.p1, .check.p2, .check.p3 { background: color-mix(in srgb, var(--cc) 9%, transparent); }
.check svg { opacity: 0; transform: scale(.4); transition: opacity .18s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.check:hover { background: color-mix(in srgb, var(--cc) 16%, transparent); }
.check:active { transform: scale(.86); }
.check.on { background: var(--cc); border-color: var(--cc); }
.check.on svg { opacity: 1; transform: scale(1); }
.check.sm { width: 18px; height: 18px; }

/* Üres állapot */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 20px 40px; color: var(--text-2); }
.empty-ic { width: 76px; height: 76px; border-radius: 24px; background: var(--fill); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.empty h3 { font-size: 17px; color: var(--text); font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.empty p { font-size: 13.5px; max-width: 320px; }

/* ---------- Kanban ---------- */
.board { display: flex; gap: 14px; padding: 4px 28px 24px; overflow-x: auto; flex: 1; align-items: flex-start; }
.col {
  width: 284px; flex-shrink: 0; background: var(--fill); border-radius: 14px; display: flex; flex-direction: column;
  max-height: 100%; padding: 6px; transition: background .15s, box-shadow .15s;
}
.col.drop-hover { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 8px 8px; font-weight: 600; font-size: 13.5px; min-height: 36px; }
.col-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-count { color: var(--text-3); font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.col-head .icon-btn { opacity: 0; }
.col:hover .col-head .icon-btn { opacity: 1; }
.col-body { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 30px; padding: 2px; margin: -2px; }
.card {
  background: var(--card); border-radius: 11px; padding: 11px 12px; box-shadow: var(--shadow-card);
  cursor: grab; transition: box-shadow .15s, transform .15s, opacity .3s; position: relative;
}
.card:hover { box-shadow: var(--shadow-card-h); }
.card.selected { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); }
.card.completing { opacity: .4; }
.card-row { display: flex; gap: 10px; align-items: flex-start; }
.card-title { font-size: 14px; line-height: 20px; flex: 1; min-width: 0; word-break: break-word; }
.card.done .card-title { color: var(--text-3); }
.card-desc { font-size: 12.5px; color: var(--text-2); margin: 4px 0 0 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.card-meta { margin: 8px 0 0 30px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--text-2); align-items: center; }
.col-add-bottom { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; margin-top: 6px; border-radius: 9px; color: var(--text-2); font-size: 13px; flex-shrink: 0; }
.col-add-bottom:hover { background: var(--hover); color: var(--accent); }
.col-inline { margin-top: 2px; }
.col-inline input { width: 100%; height: 40px; border-radius: 11px; border: 0; padding: 0 12px; background: var(--card); box-shadow: 0 0 0 1.5px var(--accent); outline: 0; font-size: 14px; }
.col-new {
  width: 240px; flex-shrink: 0; height: 46px; border-radius: 14px; border: 1.5px dashed var(--sep-strong);
  color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px;
}
.col-new:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Projektek ---------- */
.proj-card { display: flex; gap: 16px; align-items: center; margin: 0 28px 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: var(--fill); }
.proj-card.st-closed { opacity: .8; }
.pj-ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; }
.pj-ring::before, .sb-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--fill-3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px));
}
.pj-ring span { position: relative; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-chip { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-radius: 13px; background: var(--pane); font-size: 12.5px; color: var(--text-2); box-shadow: var(--shadow-sm); white-space: nowrap; }
button.pj-chip:hover { color: var(--text); }
.pj-chip.late { color: var(--red); }
.pj-chip.soon { color: var(--orange); }
.pj-chip.ghost { background: none; box-shadow: inset 0 0 0 1px var(--sep-strong); }
.st-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pj-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.45; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: text; }
.pj-desc.ph { color: var(--text-3); cursor: pointer; }
.pj-desc.ph:hover { color: var(--accent); }
.pj-ta { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.sb-count { display: inline-flex; align-items: center; gap: 6px; }
.sb-ring { position: relative; width: 13px; height: 13px; flex-shrink: 0; }
.sb-ring::before { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 calc(100% - 2.2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.6px), #000 calc(100% - 2.2px)); }
.sb-item[data-status="paused"] .sb-label, .sb-item[data-status="paused"] .sb-ic { opacity: .5; }
.sb-item[data-status="closed"] { opacity: .7; }
.sb-folder .closed-row { padding-left: 4px; gap: 6px; color: var(--text-2); }
.sb-folder .closed-row .sb-chev { width: 14px; justify-content: center; }
@media (max-width: 860px) { .proj-card { margin: 0 14px 10px; } .pj-ring { width: 48px; height: 48px; } }

/* Listához társított jegyzetek */
.g-ic.note-ic, .note-ic { color: var(--yellow); }
.note-row { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: default; }
.note-row:hover { background: var(--hover); }
.note-row + .note-row { box-shadow: inset 0 1px 0 var(--sep); }
.note-row:hover, .note-row:hover + .note-row { box-shadow: none; }
.nr-ic { display: flex; color: var(--yellow); flex-shrink: 0; }
.nr-main { flex: 1; min-width: 0; }
.nr-title { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-sub { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.nr-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); background: var(--fill-2); border-radius: 6px; padding: 1px 7px; flex-shrink: 0; }
.col-notes { background: color-mix(in srgb, var(--yellow) 9%, var(--fill)); }
.note-card { cursor: pointer; }
.nc-title { font-size: 14px; font-weight: 600; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-body { font-size: 12.5px; color: var(--text-2); line-height: 1.45; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note-card .card-meta { margin-top: 8px; gap: 5px; }
.ne-list { gap: 7px; max-width: 260px; }
.ne-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.nl-meta .nl-badge { margin-top: 0; }
.nl-list { gap: 5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alprojektek */
.sb-kid-toggle { width: 14px; height: 20px; margin-left: -16px; margin-right: 2px; display: flex; align-items: center; justify-content: center; color: var(--text-3); border-radius: 4px; flex-shrink: 0; }
.sb-kid-toggle svg { transition: transform .18s; }
.sb-kid-toggle.open svg { transform: rotate(90deg); }
.sb-kid-toggle:hover { color: var(--text); background: var(--fill-2); }
.sb-sub .sb-item { padding-left: 30px; }
.sb-children .sb-sub .sb-item { padding-left: 50px; }
.sb-item[data-has-kids] + .sb-sub { position: relative; }
.sb-item[data-has-kids] + .sb-sub::before { content: ''; position: absolute; left: 19px; top: 2px; bottom: 6px; width: 1px; background: var(--sep-strong); }
.sb-children .sb-item[data-has-kids] + .sb-sub::before { left: 39px; }
.mh-stack { display: flex; flex-direction: column; min-width: 0; }
.mh-parent { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); padding: 1px 6px; margin: 0 0 1px -6px; border-radius: 6px; max-width: 100%; }
.mh-parent:hover { background: var(--fill-2); color: var(--accent); }
.subprojects { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 0 28px 12px; }
.sp-card { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 12px; border-radius: 13px; background: var(--pane); box-shadow: var(--shadow-card); text-align: left; transition: box-shadow .15s, transform .1s; }
.sp-card:hover { box-shadow: var(--shadow-card-h); }
.sp-card:active { transform: scale(.98); }
.sp-card.st-paused, .sp-card.st-closed { opacity: .6; }
.sp-ic { display: flex; width: 22px; justify-content: center; flex-shrink: 0; }
.sp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-sub { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-ring { width: 18px; height: 18px; }
.sp-add { justify-content: center; color: var(--text-2); background: none; box-shadow: inset 0 0 0 1.5px var(--sep-strong); border: 0; font-size: 13.5px; gap: 6px; }
.sp-add:hover { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
@media (max-width: 860px) { .subprojects { margin: 0 14px 10px; grid-template-columns: 1fr 1fr; } }

/* Befejezett oszlop / szekció */
.g-ic.done-ic, .done-ic { color: var(--green); }
.col-done { background: color-mix(in srgb, var(--green) 7%, var(--fill)); }
.col-done .card { box-shadow: var(--shadow-sm); }
.col-done .card:not(:hover) { opacity: .82; }
.col-empty { font-size: 12.5px; color: var(--text-3); text-align: center; padding: 18px 10px; border: 1.5px dashed var(--sep-strong); border-radius: 10px; }
.more-done { display: block; width: 100%; padding: 9px 10px; margin-top: 4px; border-radius: 9px; font-size: 12.5px; color: var(--text-2); text-align: center; }
.more-done:hover { background: var(--hover); color: var(--accent); }

/* Húzás */
.dragging { opacity: .35 !important; }
body.is-dragging * { cursor: grabbing !important; }
.drop-before { box-shadow: inset 0 2.5px 0 var(--accent) !important; }
.drop-after { box-shadow: inset 0 -2.5px 0 var(--accent) !important; }

/* ---------- Részletek panel ---------- */
.detail { width: 0; flex-shrink: 0; overflow: hidden; background: var(--pane); border-left: 1px solid transparent; transition: width .28s cubic-bezier(.2, .9, .3, 1); }
.detail.open { width: 384px; border-left-color: var(--sep); }
.detail-inner { width: 384px; height: 100%; display: flex; flex-direction: column; }
.d-head { display: flex; align-items: center; gap: 4px; padding: 14px 14px 4px 16px; }
.d-crumb { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); max-width: 260px; }
.d-crumb:hover { background: var(--fill-2); color: var(--text); }
.d-crumb-sep { color: var(--text-3); }
.d-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; }
.d-titlerow { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0 14px; }
.d-titlerow .check { margin-top: 4px; width: 22px; height: 22px; }
.d-title {
  flex: 1; border: 0; outline: 0; background: none; resize: none; overflow: hidden;
  font-family: var(--font-display); font-size: 21px; font-weight: 650; letter-spacing: -.018em; line-height: 1.3;
}
.d-props { background: var(--fill); border-radius: 13px; overflow: hidden; margin-bottom: 20px; }
.prop { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 7px 12px; text-align: left; position: relative; }
.prop + .prop::before { content: ''; position: absolute; top: 0; left: 43px; right: 0; height: 1px; background: var(--sep); }
button.prop:hover { background: var(--hover); }
.prop-ic { width: 20px; display: flex; justify-content: center; }
.prop-label { flex: 1; font-size: 14px; }
.prop-val { color: var(--text-2); font-size: 13.5px; display: flex; align-items: center; gap: 6px; text-align: right; }
.prop-val.overdue { color: var(--red); }
.prop-val.today { color: var(--accent); }
.prop-tags { align-items: flex-start; }
.prop-tags .prop-ic, .prop-tags .prop-label { padding-top: 4px; }
.tag-wrap { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 230px; padding: 2px 0; }
.tag-wrap .chip { height: 22px; padding: 0 8px; border-radius: 11px; }
.d-section { margin-bottom: 20px; }
.d-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin: 0 2px 8px; display: flex; justify-content: space-between; }
.d-label span + span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.d-desc {
  width: 100%; min-height: 96px; border: 0; outline: 0; resize: none; overflow: hidden; background: var(--fill);
  border-radius: 13px; padding: 12px 14px; line-height: 1.55; font-size: 14px; transition: background .15s, box-shadow .15s;
}
.d-desc:focus { background: var(--pane); box-shadow: 0 0 0 1.5px var(--accent); }
.sub-progress { height: 4px; border-radius: 2px; background: var(--fill-2); margin: 0 2px 8px; overflow: hidden; }
.sub-progress i { display: block; height: 100%; background: var(--green); border-radius: 2px; transition: width .3s; }
.subs { background: var(--fill); border-radius: 13px; padding: 4px; }
.sub { display: flex; align-items: center; gap: 10px; padding: 2px 4px 2px 10px; border-radius: 9px; }
.sub:hover { background: var(--hover); }
.sub input { flex: 1; border: 0; outline: 0; background: none; height: 32px; min-width: 0; font-size: 14px; }
.sub.done input { color: var(--text-3); text-decoration: line-through; }
.sub .x { opacity: 0; }
.sub:hover .x { opacity: 1; }
.sub-plus { width: 18px; display: flex; justify-content: center; color: var(--accent); }
.d-source {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 12px; text-align: left;
  background: color-mix(in srgb, var(--yellow) 16%, transparent); font-size: 13px; color: var(--text);
}
.d-source span { flex: 1; }
.d-source:hover { background: color-mix(in srgb, var(--yellow) 26%, transparent); }
.d-foot { display: flex; align-items: center; padding: 8px 12px 8px 20px; border-top: 1px solid var(--sep); font-size: 12px; color: var(--text-3); }

/* ---------- Jegyzetek ---------- */
.notes-wrap { display: flex; flex: 1; min-height: 0; }
.notes-list { width: 290px; border-right: 1px solid var(--sep); display: flex; flex-direction: column; flex-shrink: 0; }
.nl-head { display: flex; align-items: center; gap: 8px; padding: 24px 14px 12px 22px; }
.nl-head h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.024em; flex: 1; }
.nl-search { margin: 0 14px 10px; display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; background: var(--fill-2); border-radius: 9px; color: var(--text-2); }
.nl-search input { flex: 1; border: 0; outline: 0; background: none; font-size: 13.5px; min-width: 0; }
.nl-items { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.nl-item { padding: 10px 12px; border-radius: 10px; cursor: default; position: relative; margin-bottom: 1px; }
.nl-item:hover { background: var(--hover); }
.nl-item.active { background: color-mix(in srgb, var(--yellow) 32%, transparent); }
.nl-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-sub { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); margin-top: 2px; min-width: 0; }
.nl-date { flex-shrink: 0; color: var(--text); opacity: .75; }
.nl-snip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11.5px; color: var(--text-2); background: var(--fill-2); border-radius: 6px; padding: 1px 7px; }
.nl-empty { font-size: 13px; color: var(--text-3); padding: 16px 14px; }
.note-editor { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ne-toolbar { display: flex; align-items: center; gap: 6px; padding: 14px 18px 4px 24px; color: var(--text-3); font-size: 12.5px; }
.ne-scroll { flex: 1; overflow-y: auto; }
.ne-inner { max-width: 760px; margin: 0 auto; padding: 18px 44px 80px; }
.ne-title { font-family: var(--font-display); font-size: 30px; font-weight: 700; border: 0; outline: 0; background: none; width: 100%; letter-spacing: -.025em; margin-bottom: 14px; }
.ne-body { width: 100%; border: 0; outline: 0; background: none; resize: none; font-size: 15.5px; line-height: 1.7; min-height: 55vh; overflow: hidden; }
.ne-tip { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }

/* AI / teendő-kinyerő panel */
.ai-panel { width: 384px; height: 100%; overflow-y: auto; padding: 24px 20px; }
.ai-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.ai-ic { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #5E5CE6, #BF5AF2); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(94, 92, 230, .3); }
.ai-title { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.ai-sub { font-size: 12.5px; color: var(--text-2); }
.ai-list { background: var(--fill); border-radius: 13px; padding: 4px; }
.ai-item { display: flex; gap: 11px; padding: 10px; border-radius: 10px; cursor: pointer; align-items: flex-start; position: relative; }
.ai-item:hover { background: var(--hover); }
.ai-cb { position: absolute; opacity: 0; pointer-events: none; }
.ai-cbox { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--text-3); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; margin-top: 1px; transition: background .15s, border-color .15s; }
.ai-cbox svg { opacity: 0; }
.ai-cb:checked + .ai-cbox { background: var(--accent); border-color: var(--accent); }
.ai-cb:checked + .ai-cbox svg { opacity: 1; }
.ai-body { flex: 1; min-width: 0; }
.ai-text { font-size: 13.5px; line-height: 1.4; }
.ai-target { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 2px 12px; font-size: 13px; color: var(--text-2); }
.ai-target select, select.inp { height: 30px; border-radius: 8px; border: 0; background: var(--fill-2); padding: 0 10px; outline: 0; font-size: 13px; max-width: 200px; }
.ai-help { font-size: 12.5px; color: var(--text-2); line-height: 1.7; background: var(--fill); border-radius: 13px; padding: 12px 14px; margin-top: 16px; }
.ai-help b { color: var(--text); font-weight: 600; }
code { font-family: var(--mono); font-size: 11.5px; background: var(--fill-2); padding: 1px 5px; border-radius: 5px; color: var(--text); }
.ai-created { margin-top: 22px; }
.ai-sec-title { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; margin: 0 2px 8px; display: flex; justify-content: space-between; }
.ai-task { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; cursor: pointer; }
.ai-task:hover { background: var(--hover); }
.ai-task > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-task.done > span { color: var(--text-3); text-decoration: line-through; }
.ai-task .m-date { font-size: 12px; color: var(--text-2); }
.ai-empty { color: var(--text-2); font-size: 13.5px; text-align: center; padding: 60px 10px; }

.tokens { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.tok { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 500; background: var(--fill-2); color: var(--text-2); }
.tok.date { color: var(--accent); background: var(--accent-soft); }
.tok.prio, .tok.tag { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

/* ---------- Felugrók, menük ---------- */
.pop {
  position: fixed; z-index: 1000; background: var(--pop); backdrop-filter: blur(28px) saturate(180%);
  border-radius: 12px; box-shadow: var(--shadow-pop); padding: 5px; animation: popIn .14s ease-out; min-width: 210px;
}
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(-4px); } }
.menu { max-height: 72vh; overflow-y: auto; }
.mi { display: flex; align-items: center; gap: 9px; width: 100%; height: 30px; padding: 0 12px 0 8px; border-radius: 7px; font-size: 13.5px; text-align: left; color: var(--text); }
.mi:hover { background: var(--accent); color: #fff; }
.mi:hover .mi-ic, .mi:hover kbd { color: #fff !important; }
.mi.danger { color: var(--red); }
.mi.danger .mi-ic { color: var(--red); }
.mi.danger:hover { background: var(--red); color: #fff; }
.mi.disabled { opacity: .35; pointer-events: none; }
.mi-check { width: 14px; display: none; justify-content: center; }
.menu.has-checks .mi-check { display: flex; }
.mi-ic { color: var(--text-2); display: flex; width: 18px; justify-content: center; }
.mi-dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 4px; flex-shrink: 0; }
.mi-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi kbd { background: none; }
.menu-sep { height: 1px; background: var(--sep); margin: 5px 8px; }
.menu-h { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 7px 10px 3px; text-transform: uppercase; letter-spacing: .05em; }

/* Dátumválasztó */
.datepop { width: 282px; padding: 10px; }
.dp-title { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px 2px; }
.dp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 6px; }
.dp-q { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; border-radius: 9px; font-size: 11.5px; color: var(--text-2); }
.dp-q svg { color: var(--accent); }
.dp-q:hover { background: var(--fill-2); color: var(--text); }
.dp-head { display: flex; align-items: center; gap: 2px; padding: 6px 2px 6px 6px; }
.dp-month { font-weight: 650; font-size: 14px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 11px; color: var(--text-3); font-weight: 600; padding: 4px 0; }
.dp-day { aspect-ratio: 1; border-radius: 50%; font-size: 13px; font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center; }
.dp-day:hover { background: var(--fill-2); }
.dp-day.out { color: var(--text-3); }
.dp-day.today { color: var(--accent); font-weight: 700; }
.dp-day.sel { background: var(--accent); color: #fff; font-weight: 600; }
.dp-time { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--sep); font-size: 13px; color: var(--text-2); }
.dp-time input { margin-left: auto; border: 0; background: var(--fill-2); border-radius: 7px; padding: 4px 8px; outline: 0; font-size: 13px; }

/* Modális ablakok */
.modal-ov {
  position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center;
  animation: fadeIn .16s; padding: 16px; transition: opacity .15s;
}
.modal-ov.closing { opacity: 0; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(6px); } }
.modal {
  width: 440px; max-width: 100%; max-height: 90vh; overflow: auto; background: var(--pane); border-radius: 18px;
  box-shadow: var(--shadow-pop); padding: 24px; animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.15);
}
.modal.wide { width: 580px; }
.modal h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 18px; letter-spacing: -.015em; }
.modal-text { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field-hint { font-size: 12px; color: var(--text-3); margin-top: -4px; line-height: 1.5; }
.inp { width: 100%; height: 38px; border-radius: 9px; border: 0; background: var(--fill-2); padding: 0 12px; outline: 0; font-size: 14px; transition: box-shadow .15s, background .15s; }
.inp:focus { box-shadow: 0 0 0 1.5px var(--accent); background: var(--pane); }
select.inp { height: 38px; max-width: none; font-size: 14px; }
.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); transition: transform .12s, box-shadow .12s; }
.sw:hover { transform: scale(1.1); }
.sw.on { box-shadow: 0 0 0 2.5px var(--pane), 0 0 0 4.5px var(--c); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--fill-2); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: background .12s, color .12s; }
.tchip:hover { background: var(--fill-3); }
.tchip.on { background: var(--accent); color: #fff; }
.tchip.on .dot { box-shadow: 0 0 0 1.5px #fff; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-foot .btn { min-width: 84px; height: 34px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.kb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kb-table td { padding: 7px 0; border-bottom: 1px solid var(--sep); }
.kb-table td:last-child { text-align: right; }
.kb-table kbd { font-size: 12px; padding: 2px 7px; background: var(--fill-2); color: var(--text); }

/* Kereső (Spotlight-stílus) */
.spot-ov { position: fixed; inset: 0; z-index: 950; background: rgba(0, 0, 0, .2); display: flex; justify-content: center; padding-top: 14vh; animation: fadeIn .12s; }
.spot { width: 640px; max-width: calc(100% - 32px); background: var(--pop); backdrop-filter: blur(30px) saturate(180%); border-radius: 18px; box-shadow: var(--shadow-pop); overflow: hidden; align-self: flex-start; animation: modalIn .18s cubic-bezier(.2, .9, .3, 1.1); }
.spot-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 58px; color: var(--text-2); }
.spot-in input { flex: 1; border: 0; outline: 0; background: none; font-size: 20px; color: var(--text); min-width: 0; letter-spacing: -.01em; }
.spot-res { max-height: 54vh; overflow-y: auto; border-top: 1px solid var(--sep); padding: 6px; }
.spot-res:empty { display: none; }
.sr-h { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 8px 12px 4px; text-transform: uppercase; letter-spacing: .05em; }
.sr { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 10px; cursor: default; }
.sr-ic { display: flex; color: var(--text-2); }
.sr-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sr-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sr.on { background: var(--accent); color: #fff; }
.sr.on .sr-ic, .sr.on .sr-sub { color: rgba(255, 255, 255, .85) !important; }
.sr-none { padding: 18px; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* Értesítés */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  background: var(--toast); color: #fff; border-radius: 13px; padding: 0 6px 0 16px; min-height: 46px;
  display: flex; align-items: center; gap: 14px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .3, 1.2); z-index: 1100; backdrop-filter: blur(20px); max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast span { padding: 12px 0; }
#toast span:last-child { padding-right: 10px; }
#toast button { color: #4DA3FF; font-weight: 600; height: 34px; padding: 0 12px; border-radius: 9px; white-space: nowrap; }
#toast button:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Munkaidő ---------- */
/* Részletek panel */
.te-box { padding: 6px; }
.te-row { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 4px 0 8px; border-radius: 8px; font-size: 13.5px; }
.te-row:hover { background: var(--hover); }
.te-date { width: 74px; flex-shrink: 0; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.te-note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.te-dur { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.te-row .x { opacity: 0; }
.te-row:hover .x { opacity: 1; }
.te-add { display: flex; gap: 6px; margin-top: 4px; }
.te-in { height: 34px; border: 0; outline: 0; border-radius: 9px; background: var(--pane); padding: 0 10px; font-size: 13.5px; min-width: 0; box-shadow: inset 0 0 0 1px var(--sep); }
.te-in:focus { box-shadow: 0 0 0 1.5px var(--accent); }
#te-date { flex: 1.1; }
.te-dur-in { flex: 1; }
.te-note-in { width: 100%; margin-top: 6px; }
.te-btn { width: 40px; padding: 0; height: 34px; flex-shrink: 0; }
.te-hint { font-size: 12px; color: var(--text-2); min-height: 16px; padding: 4px 4px 0; }
.te-hint .bad { color: var(--red); }
.te-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.te-fixed { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 9px; background: var(--fill); font-size: 14px; }
.te-fixed span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-pick { max-height: 210px; }
.pp-row.is-done .pp-t { color: var(--text-3); }

/* Nézet */
.tv-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 28px 12px; border-bottom: 1px solid var(--sep); }
.tv-select { height: 32px; border-radius: 8px; border: 0; background: var(--fill-2); padding: 0 10px; outline: 0; font-size: 13.5px; max-width: 260px; }
.tv-select:focus { box-shadow: 0 0 0 1.5px var(--accent); }
.tv-period { font-size: 13px; color: var(--text-2); padding: 0 4px; }
.tv-dash { color: var(--text-3); }
.tv-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.tv-inner { padding: 18px 28px 60px; max-width: 1180px; }
.tv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tv-stat { background: var(--fill); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tv-sl { font-size: 12px; color: var(--text-2); font-weight: 500; }
.tv-sv { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tv-ss { font-size: 12px; color: var(--text-3); }
.tv-stat.hero { background: color-mix(in srgb, var(--teal) 13%, transparent); }
.tv-stat.hero .tv-sv { font-size: 30px; }
.tv-charts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.tv-card { background: var(--pane); border-radius: 14px; box-shadow: var(--shadow-card); padding: 16px 18px; min-width: 0; }
.tv-card h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.tv-count { font-weight: 500; color: var(--text-3); }

/* Napi oszlopdiagram – egy sorozat, egy szín, tooltip az egész oszlopon */
.bc { display: flex; gap: 8px; height: 170px; }
.bc-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--text-3); padding-bottom: 20px; text-align: right; min-width: 26px; font-variant-numeric: tabular-nums; }
.bc-plot {
  flex: 1; display: flex; align-items: stretch; gap: 2px; position: relative; padding-bottom: 20px;
  background: linear-gradient(var(--sep), var(--sep)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--sep), var(--sep)) 0 calc(50% - 10px) / 100% 1px no-repeat;
  border-bottom: 0;
}
.bc-plot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 1px; background: var(--sep-strong); }
.bc-col { flex: 1; position: relative; display: flex; align-items: flex-end; justify-content: center; min-width: 0; cursor: default; border-radius: 6px; }
.bc-col:hover { background: var(--hover); }
.bc-bar { width: 100%; max-width: 34px; background: var(--teal); border-radius: 4px 4px 0 0; transition: filter .12s; }
.bc-col.weekend .bc-bar { opacity: .7; }
.bc-col:hover .bc-bar { filter: brightness(1.1); }
.bc-x { position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.bc-col.today .bc-x { color: var(--accent); font-weight: 700; }
.bc-col[data-tip]:hover::after, .pc-row[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
  background: var(--toast); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none;
}
.bc-col:hover::after { bottom: auto; top: -30px; }

/* Projekt bontás */
.pc { display: flex; flex-direction: column; gap: 4px; }
.pc-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 70px 36px; align-items: center; gap: 10px; height: 30px; padding: 0 6px; border-radius: 7px; position: relative; font-size: 13px; }
.pc-row:hover { background: var(--hover); }
.pc-row:hover::after { left: 30%; }
.pc-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pc-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-track { height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.pc-bar { display: block; height: 100%; border-radius: 4px; }
.pc-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.pc-pct { font-size: 12px; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }

/* Bejegyzések */
.te-group + .te-group { margin-top: 12px; }
.te-ghead { display: flex; align-items: center; gap: 10px; padding: 8px 8px 6px; border-bottom: 1px solid var(--sep); font-size: 13px; font-weight: 600; }
.te-gtitle { display: flex; align-items: center; gap: 7px; min-width: 0; flex-shrink: 1; overflow: hidden; }
.te-ghead .te-proj { font-weight: 400; }
.te-sec { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-sep { color: var(--text-3); margin: 0 6px; font-weight: 400; }
.te-gtotal { margin-left: auto; font-variant-numeric: tabular-nums; }
.te-line { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 4px 8px; border-radius: 8px; font-size: 13.5px; }
.te-line:hover { background: var(--hover); }
.te-ldate { width: 92px; flex-shrink: 0; color: var(--text-2); font-size: 12.5px; }
.te-task { text-align: left; font-size: 13.5px; color: var(--text); min-width: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.te-task:not(.gone):hover { color: var(--accent); background: var(--accent-soft); }
.te-task.gone { color: var(--text-3); cursor: default; }
.te-gtitle .te-task { font-weight: 600; max-width: none; }
.te-proj { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }
.te-lnote { flex: 1; min-width: 0; color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.te-ldur { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.te-acts { display: flex; opacity: 0; }
.te-line:hover .te-acts { opacity: 1; }

@media (max-width: 1000px) {
  .tv-charts { grid-template-columns: minmax(0, 1fr); }
  .tv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tv-filters { padding: 0 14px 10px; }
  .tv-inner { padding: 14px 14px 60px; }
  .hide-narrow { display: none; }
  .te-proj, .te-ldate { display: none; }
  .te-acts { opacity: 1; }
}

/* Ismétlődés */
.m-rep { display: inline-flex; margin-left: 3px; opacity: .85; }
.rp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-row > span { font-size: 14px; color: var(--text-2); }
.rp-n { width: 72px; text-align: center; }
.rp-until { width: auto; flex: 1; min-width: 150px; }
.rp-until[hidden], .rp-days[hidden] { display: none; }
.rp-preview { display: flex; gap: 8px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 13px; line-height: 1.45; }
.rp-preview svg { margin-top: 2px; }
.rp-preview span { color: var(--text); }

/* Alfeladatok (beágyazás) és kitűzés */
.task { padding-left: calc(12px + var(--depth, 0) * 28px); }
.task::after { left: calc(44px + var(--depth, 0) * 28px); }
.kid-toggle {
  position: absolute; left: calc(var(--depth, 0) * 28px - 9px); top: 11px; width: 18px; height: 18px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: color .12s, background .12s;
}
.kid-toggle svg { transition: transform .18s; }
.kid-toggle.open svg { transform: rotate(90deg); }
.kid-toggle:hover { color: var(--text); background: var(--fill-2); }
.task-pin { padding-top: 3px; display: flex; color: var(--orange); }
.card .task-pin { padding-top: 3px; }
.g-ic { display: flex; color: var(--orange); }
.m-parent { color: var(--text-2); max-width: 220px; }
.icon-btn.pinned { color: var(--orange); }
.d-parent { display: flex; align-items: center; gap: 2px; margin: -8px 0 14px 32px; min-width: 0; }
.d-parent-link { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 7px; font-size: 13px; color: var(--text-2); min-width: 0; }
.d-parent-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-parent-link b { color: var(--text); font-weight: 600; }
.d-parent-link:hover { background: var(--fill-2); }
.sub.child { gap: 10px; padding-right: 8px; color: var(--text-3); }
.child-title { flex: 1; min-width: 0; height: 32px; text-align: left; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub.child.done .child-title { color: var(--text-3); text-decoration: line-through; }
.sub.child .m-date { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.sub.child .m-date.overdue { color: var(--red); }
.sub.child .m-date.today { color: var(--accent); }
.pp-search { margin: 0; }
.pp-list { max-height: 330px; overflow-y: auto; background: var(--fill); border-radius: 13px; padding: 4px; margin-top: 10px; }
.pp-row { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; text-align: left; }
.pp-row:hover { background: var(--hover); }
.pp-row.on { background: var(--accent); color: #fff; }
.pp-row.on .pp-l { color: rgba(255, 255, 255, .8); }
.pp-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.pp-l { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* Emojik (lista ikonok) */
.emo {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal;
}
.emo-sm { font-size: 12.5px; width: 15px; height: 15px; }
.mi-emo { font-size: 15px; width: 18px; margin: 0 1px; }
.ep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 3px; max-height: 172px; overflow-y: auto;
  padding: 6px; background: var(--fill); border-radius: 13px;
}
.ep {
  height: 38px; border-radius: 10px; font-size: 21px; display: flex; align-items: center; justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; transition: background .1s, transform .1s;
}
.ep:hover { background: var(--fill-2); transform: scale(1.08); }
.ep.on { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.ep-custom { margin-top: 8px; }
.lm-preview {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--fill); margin: -4px 0 18px; font-size: 15px; font-weight: 500;
}
.lm-ic { display: flex; width: 22px; justify-content: center; }
.lm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Szinkronjelző */
.sync-ind { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 12px; color: var(--text-2); min-width: 0; }
.sync-ind[hidden] { display: none; }
.sync-ind span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sync-ind:hover { background: var(--fill-2); color: var(--text); }
.sync-ind.busy svg { animation: pulse 1s ease-in-out infinite alternate; }
.sync-ind.warn { color: var(--orange); }
.sync-ind.err { color: var(--red); }
@keyframes pulse { to { opacity: .35; } }

/* Belépés */
.auth {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 16%, var(--bg-2)), var(--bg-2));
  transition: opacity .25s;
}
.auth.closing { opacity: 0; }
.auth-card {
  width: 360px; max-width: 100%; background: var(--pane); border-radius: 22px; box-shadow: var(--shadow-pop);
  padding: 36px 28px 26px; display: flex; flex-direction: column; gap: 12px; text-align: center; animation: modalIn .3s cubic-bezier(.2, .9, .3, 1.15);
}
.auth-logo {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 6px; color: #fff; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #3D9BFF, #0063E1); box-shadow: 0 10px 24px rgba(0, 122, 255, .3);
}
.auth h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.024em; }
.auth-sub { font-size: 14px; color: var(--text-2); line-height: 1.5; margin-bottom: 8px; }
.auth .inp { height: 44px; font-size: 15px; text-align: center; }
.auth .btn.block { height: 44px; font-size: 15px; margin-top: 4px; }
.auth-err { min-height: 18px; font-size: 13px; color: var(--red); }
#app[hidden] { display: none; }

/* iOS „home indicator” sáv */
.sb-bottom { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.content { padding-bottom: max(60px, env(safe-area-inset-bottom)); }

#scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 550; opacity: 0; pointer-events: none; transition: opacity .25s; }

.only-narrow, .only-mid { display: none !important; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1180px) {
  .detail {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: 500; width: 384px !important; max-width: 100%;
    border-left: 1px solid var(--sep);
    transform: translateX(110%); transition: transform .3s cubic-bezier(.2, .9, .3, 1), box-shadow .3s;
  }
  .detail.open:not(.notes-mode), body.ai-open .detail.notes-mode { transform: none; box-shadow: -12px 0 40px rgba(0, 0, 0, .14); }
  .only-mid { display: inline-flex !important; }
}
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 600; transform: translateX(-110%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); background: var(--pane); }
  body.sb-open .sidebar { transform: none; box-shadow: 12px 0 40px rgba(0, 0, 0, .14); }
  body.sb-open #scrim { opacity: 1; pointer-events: auto; }
  .only-narrow { display: inline-flex !important; }
  .main-head { padding: 16px 14px 8px; }
  .mh-title h1 { font-size: 22px; }
  .quick-add { margin: 2px 14px 8px; }
  .content { padding: 0 4px 60px 14px; }
  .board { padding: 4px 14px 20px; }
  .seg button span { display: none; }
  .notes-list { width: 220px; }
  .ne-inner { padding: 14px 20px 60px; }
  .detail-inner, .ai-panel { width: 100%; }
}
@media (max-width: 600px) {
  .notes-wrap { flex-direction: column; }
  .notes-list { width: 100%; max-height: 38vh; border-right: 0; border-bottom: 1px solid var(--sep); }
}

/* ---------- Értékesítés ---------- */
.sl-inner { max-width: 1240px; }
.tv-stat.sl-hero { background: color-mix(in srgb, var(--green) 13%, transparent); }
.sl-qa { margin: 4px 0 12px; }
.sl-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sl-chips { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.sl-chips::-webkit-scrollbar { display: none; }
.sl-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 15px; flex-shrink: 0;
  background: var(--fill); font-size: 13px; color: var(--text-2); white-space: nowrap; transition: background .12s, color .12s;
}
.sl-chip:hover { background: var(--fill-2); color: var(--text); }
.sl-chip i { width: 8px; height: 8px; border-radius: 50%; }
.sl-chip span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sl-chip.on { background: var(--text); color: var(--bg); }
.sl-chip.on span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.sl-search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--fill-2); color: var(--text-3); width: 200px; flex-shrink: 0; }
.sl-search:focus-within { box-shadow: 0 0 0 1.5px var(--accent); background: var(--bg); }
.sl-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }

.sl-card { background: var(--pane); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; }
.sl-wrap { overflow-x: auto; }
.sl-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13.5px; }
.sl-table th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em;
  padding: 11px 10px 9px; border-bottom: 1px solid var(--sep); white-space: nowrap; cursor: pointer; user-select: none;
}
.sl-table th:hover, .sl-table th.sorted { color: var(--text-2); }
.sl-arrow { margin-left: 4px; color: var(--accent); }
.sl-table td { padding: 7px 10px; border-bottom: 1px solid var(--sep); vertical-align: middle; }
.sl-table tbody tr:last-child td { border-bottom: 0; }
.sl-row { cursor: default; }
.sl-row td { transition: background .1s; }
.sl-row:hover td { background: var(--hover); }
.sl-row.selected td { background: var(--sel); }
.sl-row.dragging { opacity: .4; }
.sl-row.drop-before td { box-shadow: inset 0 2.5px 0 var(--accent); }
.sl-row.drop-after td { box-shadow: inset 0 -2.5px 0 var(--accent); }
.sl-row.k-lost .sl-t { color: var(--text-2); }
.sl-table .c-grip { width: 26px; padding: 0 0 0 8px; }
.sl-grip { display: flex; color: var(--text-3); opacity: 0; cursor: grab; }
.sl-row:hover .sl-grip { opacity: 1; }
.sl-table .c-title { min-width: 240px; width: 40%; }
.sl-t { font-weight: 500; color: var(--accent); line-height: 1.35; cursor: pointer; }
.sl-row:hover .sl-t { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 2px; }
.sl-sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-top: 2px; flex-wrap: wrap; }
.sl-proj { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 7px; border-radius: 6px; background: var(--fill); font-size: 11.5px; color: var(--text-2); }
.sl-proj:hover { background: var(--fill-2); color: var(--text); }
.sl-table .c-status { width: 140px; }
.sl-pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: color-mix(in srgb, var(--c) 62%, var(--text));
  background: color-mix(in srgb, var(--c) 22%, transparent); transition: filter .12s;
}
button.sl-pill:hover { filter: brightness(.95) saturate(1.2); }
.sl-table .c-num { width: 130px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-table th.c-num { text-align: right; }
.sl-val { padding: 3px 6px; margin-right: -6px; border-radius: 6px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sl-val:hover { background: var(--fill-2); }
.sl-val.empty { color: var(--text-3); }
.sl-val-inp { width: 120px; height: 28px; border: 0; outline: 0; border-radius: 7px; padding: 0 8px; text-align: right; background: var(--bg); box-shadow: 0 0 0 1.5px var(--accent); font-variant-numeric: tabular-nums; }
.sl-table .c-tags { width: 180px; }
.sl-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 26px; align-items: center; padding: 2px 4px; margin: 0 -4px; border-radius: 7px; cursor: pointer; }
.sl-tags:hover { background: var(--fill); }
.sl-tags .chip { height: 22px; padding: 0 8px; border-radius: 6px; }
.sl-addtag { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); opacity: 0; }
.sl-row:hover .sl-addtag { opacity: 1; }
.sl-table .c-prob { width: 160px; }
.sl-prob { display: flex; align-items: center; gap: 8px; width: calc(100% + 12px); padding: 5px 6px; margin: 0 -6px; border-radius: 7px; }
.sl-prob:hover { background: var(--fill); }
.sl-bar-t { flex: 1; height: 6px; border-radius: 3px; background: var(--fill-2); overflow: hidden; min-width: 60px; }
.sl-bar-t i { display: block; height: 100%; border-radius: 3px; transition: width .3s; }
.sl-bar-t.sm { flex: none; width: 64px; min-width: 0; }
.sl-pct { width: 36px; text-align: right; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sl-pct.auto { color: var(--text-2); font-weight: 500; }
.sl-auto { color: var(--text-3); font-size: 12px; }
.sl-table .c-due { width: 110px; white-space: nowrap; }
.sl-due { padding: 3px 6px; margin-left: -6px; border-radius: 6px; color: var(--text-2); font-size: 13px; }
.sl-due:hover { background: var(--fill-2); color: var(--text); }
.sl-due.late, .sl-late { color: var(--red); }
.sl-due.soon { color: var(--orange); }
.sl-table .c-more { width: 36px; padding-right: 8px; }
.sl-table .c-more .icon-btn { opacity: 0; }
.sl-row:hover .c-more .icon-btn, .sl-row.selected .c-more .icon-btn { opacity: 1; }
.sl-table tfoot td { border-top: 1px solid var(--sep-strong); border-bottom: 0; font-size: 12.5px; color: var(--text-2); padding: 10px; background: var(--fill); }
.sl-table tfoot .c-num { font-weight: 700; color: var(--text); }
.sl-wsum b { color: var(--text); font-variant-numeric: tabular-nums; }
.sl-none { text-align: center; color: var(--text-3); padding: 28px 10px !important; }
.sl-hint { font-size: 12px; color: var(--text-3); margin: 10px 4px 0; }
.sl-src { background: color-mix(in srgb, var(--indigo) 12%, transparent); }
.sl-src:hover { background: color-mix(in srgb, var(--indigo) 20%, transparent); }

/* részletek: szöveges mezők a tulajdonságsorokban */
label.prop { cursor: text; }
.prop-inp { flex: 1.3; min-width: 0; border: 0; outline: 0; background: none; text-align: right; font-size: 13.5px; color: var(--text); padding: 4px 0; }
.prop-inp::placeholder { color: var(--text-3); }
.prop-unit { color: var(--text-2); font-size: 13.5px; }

/* státuszszerkesztő */
.dsm-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.dsm-row { display: flex; align-items: center; gap: 8px; }
.dsm-color { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.dsm-name { flex: 1; min-width: 0; }
.dsm-prob { display: flex; align-items: center; gap: 3px; color: var(--text-2); font-size: 13px; }
.dsm-prob .inp { width: 62px; text-align: right; }
.dsm-kind { width: 120px; }

@media (max-width: 860px) {
  .sl-bar { flex-direction: column; align-items: stretch; }
  .sl-search { width: auto; }
  .sl-inner .tv-stats { grid-template-columns: 1fr 1fr; }
  .sl-grip, .sl-addtag, .sl-table .c-more .icon-btn { opacity: 1; }
}

/* ---------- Összegzés ---------- */
.sum-inner { max-width: 820px; }
.sum-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sum-nav { display: flex; align-items: center; gap: 2px; }
.sum-nav .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.sum-now { height: 30px; font-size: 13px; }
.sum-now.on { color: var(--accent); }
.sum-opt { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.sum-opt input { accent-color: var(--accent); width: 15px; height: 15px; }
.sum-card { background: var(--pane); border-radius: 14px; box-shadow: var(--shadow-card); padding: 22px 26px 24px; }
.sum-period { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.sum-sub { margin: 4px 0 16px; font-size: 14px; font-weight: 600; color: var(--green); }
.sum-sub span { font-variant-numeric: tabular-nums; }
.sum-sub em { font-style: normal; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.sum-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 7px; font-size: 14.5px; line-height: 1.4; }
.sum-list li::marker { color: var(--text-3); }
.sum-day { color: var(--text-3); font-variant-numeric: tabular-nums; margin-right: 6px; }
.sum-t { padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.sum-t:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.sum-l { margin-left: 8px; font-size: 12px; color: var(--text-2); background: var(--fill); padding: 1px 7px; border-radius: 6px; }
.sum-empty { color: var(--text-3); font-size: 14px; padding: 8px 0; }
@media (max-width: 860px) { .sum-card { padding: 18px; } .sum-opt { margin-left: 0; } }
