/* Sínen — design: meleg papír-alap, mélyzöld „szabad jelzés” akcentus, jelzőlámpa-színű határidők. */
:root {
  --bg: #F4F2EC; --surface: #FFFFFF; --surface2: #FAF8F3; --ink: #1B1E22; --muted: #6A6F76;
  --line: #E4E0D6; --line2: #D0CABB; --accent: #0E6B5E; --accent-h: #0A5248; --on-accent: #FFFFFF;
  --danger: #C43535; --warn: #A86A0B; --ok: #1B8A4B;
  --shadow: 0 1px 2px rgba(25, 28, 32, .07), 0 3px 10px rgba(25, 28, 32, .05);
  --shadow-lg: 0 16px 48px rgba(20, 24, 28, .24), 0 2px 8px rgba(20, 24, 28, .1);
  --list: rgba(255, 255, 255, .62); --b-l1: 90%; --b-l2: 94%; --b-sm: 1;
  --r: 10px; color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111315; --surface: #1D2023; --surface2: #17191C; --ink: #ECEAE4; --muted: #9AA0A7;
  --line: #2B2F33; --line2: #3C4147; --accent: #36B9A2; --accent-h: #55CDB7; --on-accent: #05221D;
  --danger: #F07272; --warn: #E0A53A; --ok: #4CC987;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 3px 10px rgba(0, 0, 0, .25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
  --list: rgba(16, 18, 20, .55); --b-l1: 15%; --b-l2: 11%; --b-sm: .55;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h3 { font-size: 15px; font-weight: 650; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: left; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
kbd { font: 11px/1 inherit; padding: 3px 5px; border: 1px solid var(--line2); border-radius: 5px; color: var(--muted); }
small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.grow { flex: 1 1 auto; min-width: 0; }
.ic { display: inline-flex; width: 16px; height: 16px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic.end { margin-left: auto; color: var(--accent); }
.lg-bg { fill: var(--accent); } .lg-fg { stroke: var(--on-accent); }
.logo { display: inline-flex; width: 28px; height: 28px; } .logo svg { width: 100%; height: 100%; }
.splash { display: grid; place-items: center; height: 100dvh; color: var(--muted); font-weight: 700; letter-spacing: .02em; }

/* gombok, mezők */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line2); font-weight: 600; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface2); border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn.danger { color: var(--danger); } .btn.danger:hover { border-color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 7px; }
.btn.lg { padding: 12px 18px; font-size: 15px; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; } .btn-row.end { justify-content: flex-end; }
.hint { font-size: 12px; color: var(--muted); }
.link { color: var(--accent); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; } .link:hover { text-decoration: underline; } .link.danger { color: var(--danger); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); flex: none; position: relative; }
.icon-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.icon-btn.sm { width: 26px; height: 26px; border-radius: 6px; } .icon-btn.sm .ic { width: 15px; height: 15px; }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn .ic { width: 18px; height: 18px; }
.input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surface); outline: none; transition: border-color .12s, box-shadow .12s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.input.lg { padding: 11px 13px; font-size: 16px; } .input.sm { padding: 5px 8px; width: auto; font-size: 13px; }
.input.inline { padding: 3px 7px; font-weight: inherit; font-size: inherit; min-width: 80px; }
textarea.input, textarea { resize: none; display: block; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.fld > .input, .fld .seg, .fld .swatches { color: var(--ink); font-weight: 400; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--ink) 7%, transparent); white-space: nowrap; }
.chip.btn { border: 0; } .chip.btn:hover { background: color-mix(in srgb, var(--ink) 13%, transparent); }
.chip.on { background: var(--accent); color: var(--on-accent); }
.chip.ghost { color: var(--muted); }
.seg { display: flex; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 7%, transparent); gap: 2px; }
.seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.pad { margin: 4px 8px 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.sw { width: 30px; height: 30px; border-radius: 8px; background: var(--c); color: #fff; display: grid; place-items: center; transition: transform .1s; }
.sw:hover { transform: scale(1.1); } .sw.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.count { font-size: 12px; font-weight: 700; color: var(--muted); padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.count.over { background: var(--danger); color: #fff; }
.badge { font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 16px; min-width: 16px; text-align: center; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; }
.empty { color: var(--muted); padding: 18px; border: 1.5px dashed var(--line2); border-radius: var(--r); }

/* avatar, címke, határidő, pipa */
.avatar { --c: #6B7280; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; flex: none; user-select: none; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.stack { display: flex; } .stack .avatar { box-shadow: 0 0 0 2px var(--surface); margin-left: -5px; }
.label { --c: #888; display: inline-block; max-width: 100%; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 700; line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: color-mix(in srgb, var(--c) 20%, var(--surface)); color: color-mix(in srgb, var(--c) 72%, var(--ink)); min-width: 30px; }
.label.big { padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.due { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.due .ic, .bdg .ic, .prio .ic { width: 13px; height: 13px; }
.due.late { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.due.soon { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.due.done { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.prio { display: inline-flex; align-items: center; gap: 4px; } .prio.p1 { color: #2F7FE0; } .prio.p2 { color: var(--warn); } .prio.p3 { color: var(--danger); }
.prio .ic svg { fill: currentColor; fill-opacity: .25; }
.bdg { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); } .bdg.ok { color: var(--ok); }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--line2); display: inline-grid; place-items: center; color: transparent; flex: none; background: var(--surface); transition: all .12s; }
.tick .ic { width: 11px; height: 11px; } .tick .ic svg { stroke-width: 3.2; }
.tick:hover { border-color: var(--ok); color: var(--ok); }
.tick.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.tick.sq { border-radius: 5px; } .tick.lg { width: 26px; height: 26px; margin-top: 3px; } .tick.lg .ic { width: 15px; height: 15px; }
.bdot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: hsl(var(--bh) var(--bs) 45%); display: inline-block; }

/* fejléc */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.app.v-board { height: 100dvh; overflow: hidden; }
.top { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; flex: none; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.01em; margin-right: 10px; }
.nav { display: flex; gap: 2px; height: 100%; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--ink); } .nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.search-btn { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); min-width: 190px; background: var(--surface2); }
.search-btn span:nth-child(2) { flex: 1; } .search-btn:hover { border-color: var(--line2); color: var(--ink); }
.bell .badge { position: absolute; top: 2px; right: 1px; }
.me-btn { border-radius: 50%; margin-left: 4px; } .me-btn:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.offline-chip { display: none; font-size: 12px; font-weight: 700; color: var(--danger); margin-left: 8px; } .offline .offline-chip { display: inline; }

/* kezdőlap, feladataim */
.home, .my { width: 100%; max-width: 1180px; margin: 0 auto; padding: 34px 22px 60px; }
.my { max-width: 820px; }
.home-head { margin-bottom: 28px; } .home-head p { margin-top: 5px; font-size: 15px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.home h2, .my h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 104px; padding: 14px 15px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, hsl(var(--bh) var(--bs) 34%), hsl(calc(var(--bh) + 32) var(--bs) 44%)); box-shadow: var(--shadow); transition: transform .14s, box-shadow .14s; overflow: hidden; }
.tile::after { content: ""; position: absolute; right: -18px; bottom: -30px; width: 110px; height: 110px; border-radius: 24px; border: 10px solid rgba(255, 255, 255, .1); transform: rotate(18deg); pointer-events: none; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile-t { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; padding-right: 26px; overflow-wrap: anywhere; }
.tile-m { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; opacity: .88; }
.tile-star { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: rgba(255, 255, 255, .55); z-index: 1; }
.tile-star:hover { background: rgba(255, 255, 255, .18); color: #fff; } .tile-star.on { color: #FFD766; } .tile-star.on svg { fill: currentColor; }
.tile.new { background: none; border: 1.5px dashed var(--line2); color: var(--muted); box-shadow: none; align-items: center; justify-content: center; flex-direction: row; gap: 8px; font-weight: 700; }
.tile.new::after { display: none; } .tile.new:hover { border-color: var(--accent); color: var(--accent); transform: none; }
.arch { margin-top: 26px; } .arch summary { cursor: pointer; font-weight: 600; color: var(--muted); margin-bottom: 12px; } .arch .tile { filter: saturate(.35); }
.rows { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row, .res { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); width: 100%; }
.row:last-child { border-bottom: 0; } .row:hover, .res:hover, .res.sel { background: var(--surface2); }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.is-done .row-t { text-decoration: line-through; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--accent); }
.group { margin-bottom: 26px; } .group.late h2 { color: var(--danger); }

/* tábla */
.board { flex: 1; min-height: 0; display: flex; flex-direction: column; background: linear-gradient(165deg, hsl(var(--bh) calc(var(--bs) * var(--b-sm)) var(--b-l1)), hsl(calc(var(--bh) + 30) calc(var(--bs) * var(--b-sm)) var(--b-l2))); }
.board.loading { place-items: center; display: grid; }
.bbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; flex-wrap: wrap; }
.btitle { font-size: 19px; cursor: text; padding: 2px 6px; border-radius: 6px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btitle:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bbar .input.inline { font-size: 19px; font-weight: 700; width: 280px; }
.star.on { color: #E0A100; } .star.on svg { fill: currentColor; }
.faces { display: flex; gap: 2px; } .face { border-radius: 50%; padding: 2px; opacity: .8; transition: all .12s; } .face:hover { opacity: 1; }
.face.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.fsearch { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 30px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); }
.fsearch input { border: 0; background: none; outline: none; width: 110px; color: var(--ink); transition: width .15s; } .fsearch input:focus { width: 170px; }
.fsearch:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.banner { display: flex; align-items: center; gap: 10px; margin: 0 14px 8px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line2); font-weight: 600; flex-wrap: wrap; }
.lists { flex: 1; min-height: 0; display: flex; align-items: flex-start; gap: 12px; padding: 4px 14px 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent; }
.list { flex: none; width: 292px; max-height: 100%; display: flex; flex-direction: column; background: var(--list); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.list-h { display: flex; align-items: center; gap: 8px; padding: 10px 8px 6px 14px; cursor: grab; touch-action: pan-x pan-y; }
.list-t { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: text; }
.list-h .input.inline { flex: 1; font-weight: 650; font-size: 15px; }
.cards { flex: 1 1 auto; min-height: 8px; overflow-y: auto; padding: 4px 8px 2px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 22%, transparent) transparent; }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; flex: none; overflow: hidden; border: 1px solid transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color .12s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card.saving { opacity: .6; }
.card-b { padding: 9px 11px 10px; display: flex; flex-direction: column; gap: 7px; }
.cover.color { height: 30px; background: var(--c); } .cover.img img { display: block; width: 100%; max-height: 170px; object-fit: cover; }
.labels { display: flex; flex-wrap: wrap; gap: 4px; }
.card-t { display: flex; gap: 8px; align-items: flex-start; font-weight: 550; overflow-wrap: anywhere; line-height: 1.38; }
.card-t .tick { margin-top: 1px; }
@media (hover: hover) { .card:not(.is-done) .card-t .tick { width: 0; border-width: 0; margin-right: -8px; opacity: 0; } .card:hover .card-t .tick { width: 18px; border-width: 1.6px; margin-right: 0; opacity: 1; } }
.card.is-done .card-t span { color: var(--muted); }
.card-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.add-card { display: flex; align-items: center; gap: 6px; margin: 6px 8px 8px; padding: 7px 8px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.add-card:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.composer { margin: 4px 8px 8px; flex: none; } .cards > .composer { margin: 0 0 2px; }
.composer textarea { width: 100%; padding: 9px 11px; border-radius: var(--r); border: 1px solid var(--accent); background: var(--surface); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); min-height: 58px; }
.composer-b { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.add-list { flex: none; width: 292px; padding-right: 14px; box-sizing: content-box; }
.add-list-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 14px; font-weight: 650; color: var(--muted); background: color-mix(in srgb, var(--list) 60%, transparent); border: 1.5px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.add-list-btn:hover { color: var(--ink); border-color: var(--accent); }
.placeholder { opacity: .35; outline: 2px dashed var(--accent); outline-offset: -2px; } .placeholder * { visibility: hidden; }
.ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; box-shadow: var(--shadow-lg); opacity: .96; margin: 0; will-change: transform; }
.dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; } .dragging * { cursor: grabbing !important; } .dragging .lists { scroll-snap-type: none !important; }

/* felugrók */
.pop { position: fixed; z-index: 60; min-width: 250px; max-width: min(340px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.pop.wide, .pop:has(.wide) { min-width: 320px; }
.pop-shade { display: none; }
.menu { padding: 6px; display: flex; flex-direction: column; } .menu.form { padding: 10px 12px 12px; } .menu.form .pop-h { padding: 0 0 8px; }
.menu.form .mi { margin: 0 -6px; width: calc(100% + 12px); }
.pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 6px 10px; font-size: 13px; }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; font-weight: 550; min-height: 36px; }
.mi:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } .mi.danger { color: var(--danger); } .mi > .ic:first-child { color: var(--muted); } .mi.danger > .ic { color: inherit; }
.mi-row { display: flex; align-items: center; gap: 2px; } .mi-row .mi { flex: 1; min-width: 0; }
.pad { padding: 8px 10px; } .quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; } .who div { display: flex; flex-direction: column; } .who span { font-size: 12px; }
.checks { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); font-weight: 400; font-size: 14px; } .checks p { font-size: 12px; margin-bottom: 4px; }
.ck { display: flex; align-items: center; gap: 8px; padding: 5px 2px; cursor: pointer; } .ck input { width: 16px; height: 16px; accent-color: var(--accent); }
.cover-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; } .cimg { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; border: 2px solid transparent; } .cimg.on { border-color: var(--accent); } .cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.notifs { padding: 6px; } .notif { display: flex; gap: 10px; padding: 9px 10px; border-radius: 8px; width: 100%; align-items: flex-start; line-height: 1.35; }
.notif:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } .notif.new { background: color-mix(in srgb, var(--accent) 11%, transparent); } .notif small { display: block; margin-top: 2px; } .notif span { overflow-wrap: anywhere; min-width: 0; }

/* ablakok */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(14, 17, 19, .52); overflow-y: auto; padding: 48px 16px; display: flex; align-items: flex-start; justify-content: center; animation: fade .14s; }
#modal { z-index: 40; } .overlay.confirm { z-index: 70; align-items: center; }
.has-modal { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.dialog { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; animation: rise .16s; }
.dialog.small { max-width: 420px; } .dialog.wide { max-width: 720px; } .dialog.palette { max-width: 600px; }
.confirm .dialog { padding: 22px; } .confirm p { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 4px 20px; } .dlg-h h2 { font-size: 17px; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.dlg-body { padding: 10px 20px 20px; } .dlg-body h3 { margin: 20px 0 10px; }
.palette .dlg-h { display: none; } .palette .dlg-body { padding: 12px; }
.results { margin-top: 8px; max-height: 56dvh; overflow-y: auto; } .res { border: 0; border-radius: 8px; }
.arow, .trow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.arow-t { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; } .arow-t small { display: block; font-weight: 400; }
.trow-n { flex: 1; min-width: 0; display: flex; flex-direction: column; } .trow.off { opacity: .55; }
.add-user { display: grid; grid-template-columns: 1.3fr 1fr auto auto; gap: 8px; margin-bottom: 10px; }
.linkbox { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); margin-bottom: 12px; }
.copy { display: flex; gap: 8px; margin-top: 8px; }

/* kártyaablak */
.modal { position: relative; width: 100%; max-width: 880px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .16s; overflow: hidden; }
.modal > .cover.color { height: 64px; } .modal > .cover.img { background: var(--surface2); } .modal > .cover.img img { max-height: 260px; object-fit: contain; margin: 0 auto; width: auto; max-width: 100%; }
.m-head { display: flex; gap: 12px; padding: 20px 16px 4px 22px; align-items: flex-start; }
.m-head-t { flex: 1; min-width: 0; } .m-head-t p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-left: 7px; font-size: 13px; }
.m-title { width: 100%; border: 1px solid transparent; background: none; font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; padding: 3px 6px; border-radius: 8px; outline: none; overflow: hidden; }
.m-title:hover { background: var(--surface2); } .m-title:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.m-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 26px; padding: 14px 22px 22px; }
.m-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.m-meta { display: flex; flex-wrap: wrap; gap: 14px 26px; } .mm small { display: block; font-weight: 700; margin-bottom: 5px; letter-spacing: .02em; }
.mm-v { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 30px; }
.round { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); } .round:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.chip.due, .chip.prio { padding: 5px 10px; font-size: 13px; border-radius: 999px; } .chip.prio { background: color-mix(in srgb, currentColor 14%, transparent); }
.sec-h { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; } .sec-h > .ic { width: 18px; height: 18px; color: var(--muted); } .sec-h h3 { flex: 1; min-width: 0; overflow-wrap: anywhere; } .sec-h .input.inline { flex: 1; }
.md { line-height: 1.55; overflow-wrap: anywhere; } .md a { color: var(--accent); text-decoration: underline; } .md ul { margin: 4px 0; padding-left: 22px; } .md code { background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
section > .md { cursor: text; padding: 2px 0; }
.mention { color: var(--accent); font-weight: 650; }
.placeholder-btn { width: 100%; padding: 12px 14px 30px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--muted); } .placeholder-btn:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; margin-bottom: 6px; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .25s; } .bar.full i { background: var(--ok); }
.item { display: flex; align-items: flex-start; gap: 10px; padding: 5px 4px; border-radius: 7px; } .item:hover { background: var(--surface2); }
.item .tick { margin-top: 2px; } .item-t { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: text; } .item.is-done .item-t { text-decoration: line-through; color: var(--muted); }
.item .input.inline { flex: 1; }
.ghosty { opacity: 0; } .item:hover .ghosty, .ghosty:focus-visible { opacity: 1; } @media (hover: none) { .ghosty { opacity: .6; } }
.add-item { margin-top: 6px; border-style: dashed; background: none; }
.atts { display: flex; flex-direction: column; gap: 8px; } .att { display: flex; gap: 12px; align-items: center; }
.att-th { width: 96px; height: 68px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 7%, transparent); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 800; font-size: 12px; color: var(--muted); } .att-th img { width: 100%; height: 100%; object-fit: cover; }
.att-b { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .att-n { font-weight: 650; overflow-wrap: anywhere; } .att-n:hover { text-decoration: underline; } .att-a { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.comment-new, .comment { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.comment-b { flex: 1; min-width: 0; background: var(--surface2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 8px 12px 9px; }
.comment-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; } .comment-h .link { margin-left: auto; font-size: 12px; opacity: 0; } .comment:hover .comment-h .link, .comment-h .link:focus-visible { opacity: 1; } @media (hover: none) { .comment-h .link { opacity: 1; } }
.hist { color: var(--muted); } .activity { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: 13px; } .activity small { margin-left: 8px; }
.m-foot { font-size: 12px; }
.m-side { display: flex; flex-direction: column; gap: 6px; } .m-side small { font-weight: 700; margin: 8px 0 2px; letter-spacing: .02em; } .m-side small:first-child { margin-top: 0; }
.btn.side { justify-content: flex-start; background: color-mix(in srgb, var(--ink) 6%, transparent); border-color: transparent; font-weight: 600; padding: 7px 11px; } .btn.side:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); } .btn.side .ic { color: var(--muted); }
.btn.side.accent { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 4px; } .btn.side.accent .ic { color: inherit; }
.drop-hint { display: none; position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 88%, transparent); color: var(--on-accent); font-size: 18px; font-weight: 700; place-items: center; grid-auto-flow: column; justify-content: center; gap: 10px; pointer-events: none; z-index: 5; } .modal.drop .drop-hint { display: grid; }
.close { margin-left: auto; }

/* értesítő buborék */
#toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { background: #1B1E22; color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; box-shadow: var(--shadow-lg); animation: rise .18s; transition: opacity .3s, transform .3s; text-align: center; } .toast.bad { background: #B42B2B; } .toast.out { opacity: 0; transform: translateY(6px); }
:root[data-theme="dark"] .toast { background: #ECEAE4; color: #111315; } :root[data-theme="dark"] .toast.bad { background: #F07272; }

/* belépés */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(1000px 520px at 50% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 28px 30px; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 22px; } .auth-brand .logo { width: 34px; height: 34px; }
.auth-card h1 { font-size: 22px; } .auth-card > .muted { margin: 6px 0 20px; } .auth-card .fld { margin-bottom: 14px; }
.err { color: var(--danger); font-weight: 600; margin-bottom: 12px; } .auth-foot { margin-top: 18px; color: var(--muted); font-size: 13px; }

/* telefon */
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } .search-btn { min-width: 0; } .search-btn span:nth-child(2), .search-btn kbd { display: none; } .search-btn { border: 0; background: none; padding: 8px; } }
@media (max-width: 640px) {
  h1 { font-size: 22px; }
  .top { padding: 0 8px; gap: 2px; } .brand b { display: none; } .brand { margin-right: 4px; } .nav a { padding: 0 9px; }
  .home, .my { padding: 22px 14px 50px; } .tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .bbar { padding: 8px 8px 6px; gap: 6px; } .bbar > .grow { flex-basis: 100%; height: 0; } .btitle { font-size: 17px; max-width: 56vw; } .fsearch { flex: 1; } .fsearch input, .fsearch input:focus { width: 100%; }
  .lists { padding: 4px 8px 10px; gap: 10px; scroll-snap-type: x mandatory; scroll-padding: 8px; } .list { width: min(86vw, 320px); scroll-snap-align: start; } .add-list { width: min(86vw, 320px); scroll-snap-align: start; }
  .overlay { padding: 0; align-items: stretch; } .overlay.confirm { padding: 16px; align-items: center; }
  .modal, .dialog { border-radius: 0; max-width: none !important; min-height: 100dvh; } .confirm .dialog { min-height: 0; border-radius: 16px; }
  .m-grid { grid-template-columns: 1fr; padding: 12px 14px 28px; gap: 22px; } .m-head { padding: 16px 8px 4px 14px; }
  .m-side { display: grid; grid-template-columns: 1fr 1fr; } .m-side small, .btn.side.accent { grid-column: 1 / -1; }
  .pop-shade { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(14, 17, 19, .4); }
  .pop.sheet { left: 0 !important; right: 0; top: auto !important; bottom: 0; max-width: none; border-radius: 18px 18px 0 0; max-height: 82dvh; padding-bottom: env(safe-area-inset-bottom); animation: rise .18s; } .mi { min-height: 44px; }
  .add-user { grid-template-columns: 1fr 1fr; } .trow { flex-wrap: wrap; } .input, .composer textarea, .fsearch input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
