:root {
  --bg: #f5f5f8;
  --surface: #fff;
  --side: #1b1a22;
  --side-hover: #2a2934;
  --side-active: #34323f;
  --side-text: #d4d3dd;
  --side-muted: #8b8a98;
  --text: #1c1c22;
  --muted: #676774;
  --faint: #a2a2ad;
  --line: #ededf2;
  --line-2: #e0e0e8;
  --hover: #f7f6fb;
  --sel: #f1eeff;
  --accent: #6a4cff;
  --accent-2: #5638ef;
  --accent-weak: #efebff;
  --danger: #e2474c;
  --danger-weak: #fdeceb;
  --ok: #1f9d63;
  --ok-weak: #e5f5ec;
  --warn: #c77700;
  --radius: 10px;
  --shadow: 0 16px 40px -12px rgba(25, 18, 60, .28), 0 2px 8px rgba(25, 18, 60, .08);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: #d2d2dc; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-danger { color: var(--danger); }
.btn-danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-on { background: var(--accent-weak); border-color: #d7cfff; color: var(--accent-2); }
.btn-done { background: var(--ok-weak); border-color: #bfe6d0; color: var(--ok); }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-weak); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr) auto; height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; min-height: 0; padding: 14px 10px 10px; }
.main { background: var(--surface); min-width: 0; overflow: auto; position: relative; }
.panel { width: min(580px, 46vw); background: #fff; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; min-height: 0; box-shadow: -8px 0 24px -16px rgba(25, 18, 60, .25); }

/* ---------- sidebar ---------- */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand b { font-weight: 700; }
.side-add { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; margin: 0 4px 14px; }
.side-add:hover { background: var(--accent-2); }
.side-nav a, .side-projects a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; }
.side-nav a:hover, .side-projects a:hover { background: var(--side-hover); }
.side-nav a.on, .side-projects a.on { background: var(--side-active); color: #fff; }
.side-nav .count { margin-left: auto; font-size: 12px; color: var(--side-muted); }
.side-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--side-muted); padding: 18px 10px 6px; }
.side-projects { overflow: auto; flex: 1; min-height: 0; }
.side-projects .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.side-projects .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-empty { color: var(--side-muted); padding: 6px 10px; font-size: 13px; }
.side-foot { display: flex; align-items: center; gap: 10px; padding: 10px 6px 2px; border-top: 1px solid #2c2b36; margin-top: 8px; }
.side-foot .who { min-width: 0; flex: 1; line-height: 1.25; }
.side-foot .who b { display: block; color: #fff; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who small { color: var(--side-muted); font-size: 12px; }
.side-foot .icon-btn { color: var(--side-muted); }
.side-foot .icon-btn:hover { background: var(--side-hover); color: #fff; }

/* ---------- avatars, chips ---------- */
.av { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 700; flex: none; letter-spacing: .02em; }
.av.lg { width: 30px; height: 30px; font-size: 12px; }
.av-empty { background: transparent; border: 1.5px dashed #c5c5cf; color: #b0b0bb; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); background: #f1f1f5; white-space: nowrap; }
.pri { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pri.high { background: var(--danger-weak); color: #c42d33; }
.pri.normal { color: var(--faint); font-weight: 500; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; }
.muted { color: var(--muted); }
.ph { color: var(--faint); }

/* ---------- page header & toolbar ---------- */
.page-h { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); padding: 18px 28px 0; border-bottom: 1px solid var(--line); }
.page-h .title { display: flex; align-items: center; gap: 12px; }
.page-h h1 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.page-h .proj-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.menu-btn { display: none; }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 14px 0 12px; flex-wrap: wrap; }
.toolbar .sp { flex: 1; }
.tabs { display: flex; gap: 2px; margin-top: 10px; }
.tabs a { padding: 9px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; text-decoration: none; }
.tabs a.on { color: var(--text); border-color: var(--text); }
.tabs a:hover { color: var(--text); }

/* ---------- task list ---------- */
.list { padding: 0 28px 120px; }
.lh, .row { display: grid; grid-template-columns: minmax(0, 1fr) 180px 118px 104px; align-items: stretch; }
.lh { font-size: 12px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); position: sticky; top: var(--hdr, 0px); background: #fff; z-index: 3; }
.lh > span { padding: 8px 10px; border-left: 1px solid var(--line); }
.lh > span:first-child { border-left: 0; padding-left: 30px; }
.list.my .lh, .list.my .row { grid-template-columns: minmax(0, 1fr) 210px 118px 104px; }

.sec { margin-top: 18px; }
.sec-h { display: flex; align-items: center; gap: 6px; height: 40px; border-radius: 8px; }
.sec-h h3 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.sec-h .caret { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); transition: transform .15s; }
.sec-h .caret:hover { background: var(--hover); }
.sec.collapsed .caret { transform: rotate(-90deg); }
.sec.collapsed .rows, .sec.collapsed .qa { display: none; }
.sec-h .sec-count { color: var(--faint); font-size: 13px; }
.sec-h .icon-btn { width: 26px; height: 26px; opacity: 0; }
.sec-h:hover .icon-btn { opacity: 1; }
.sec-h.drop { background: var(--accent-weak); }

.row { min-height: 40px; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.row:hover { background: var(--hover); }
.row.sel { background: var(--sel); }
.row > * { border-left: 1px solid var(--line); padding: 0 10px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.row > :first-child { border-left: 0; padding-left: 4px; }
.row .grip { width: 18px; color: transparent; cursor: grab; display: grid; place-items: center; flex: none; }
.row:hover .grip { color: var(--faint); }
.row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row.done .t { color: var(--faint); text-decoration: line-through; }
.row .ic-notes { color: var(--faint); }
.row .parent-hint { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.row .parent-hint:hover { color: var(--accent); }
.row.sub { min-height: 34px; background: #fcfcfd; font-size: 13px; }
.row.sub:hover { background: var(--hover); }
.row.sub > :first-child { padding-left: 46px; }
.row.sub .chk { width: 16px; height: 16px; }
.row .c-ass, .row .c-due, .row .c-pri, .row .c-proj { font-size: 13px; color: var(--muted); text-align: left; }
.row .c-ass span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .c-ass:hover, .row .c-due:hover, .row .c-pri:hover { background: rgba(106, 76, 255, .06); }
.row .c-proj { gap: 6px; }
.row .c-proj .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .c-due .ph, .row .c-ass .ph { opacity: 0; transition: opacity .1s; }
.row:hover .c-due .ph, .row:hover .c-ass .ph { opacity: 1; }
.is-overdue { color: var(--danger) !important; font-weight: 500; }
.is-today { color: var(--ok) !important; font-weight: 600; }
.is-soon { color: var(--warn) !important; }
.row.dragging { opacity: .4; }
.drop-line { height: 2px; background: var(--accent); border-radius: 2px; margin: -1px 0; position: relative; z-index: 2; }

/* checkbox */
.chk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b9b9c4; display: grid; place-items: center; color: transparent; flex: none; transition: all .12s; }
.chk svg { width: 11px; height: 11px; }
.chk:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-weak); }
.done .chk, .chk.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.chk.ghost { border-style: dashed; pointer-events: none; }

/* quick add */
.qa-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 0 0 30px; color: var(--muted); width: 100%; text-align: left; border-radius: 0 0 8px 8px; }
.qa-btn:hover { color: var(--text); background: var(--hover); }
.qa-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 8px 26px; border: 1.5px solid var(--accent); border-radius: 8px; margin: 4px 0; background: #fff; box-shadow: 0 0 0 4px var(--accent-weak); }
.qa-row .chk { margin-top: 2px; }
.qa-input { flex: 1; border: 0; outline: 0; resize: none; line-height: 22px; min-height: 22px; background: transparent; }
.qa-hint { font-size: 12px; color: var(--faint); padding: 2px 0 6px 30px; }
.qa-hint kbd { font: 11px var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--muted); background: #fff; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty h3 { color: var(--text); margin: 10px 0 4px; }

/* ---------- task panel ---------- */
.pn-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pn-top .sp { flex: 1; }
.pn-body { overflow: auto; padding: 16px 24px 60px; flex: 1; min-height: 0; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a:hover { color: var(--accent); text-decoration: none; }
.crumbs .sep { color: var(--faint); }
.back-parent { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 2px 0 4px; font-weight: 500; }
.pn-title { width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; margin: 4px -8px 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; resize: none; overflow: hidden; outline: 0; }
.pn-title:hover { border-color: var(--line-2); }
.pn-title:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.done-banner { display: flex; align-items: center; gap: 8px; background: var(--ok-weak); color: var(--ok); border-radius: 8px; padding: 8px 12px; font-weight: 500; margin-bottom: 10px; font-size: 13px; }
.fields { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; row-gap: 6px; margin-bottom: 18px; }
.fields > label { color: var(--muted); font-size: 13px; }
.field { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-left: -10px; border-radius: 8px; max-width: 100%; justify-self: start; }
.field:hover { background: var(--hover); }
.field .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; justify-self: start; }
.seg button { height: 28px; padding: 0 12px; border-radius: 6px; color: var(--muted); font-weight: 500; font-size: 13px; }
.seg button.on { background: #f0f0f4; color: var(--text); }
.seg button.on.high { background: var(--danger-weak); color: #c42d33; }
.pn-body h4 { font-size: 13px; font-weight: 600; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.notes { min-height: 64px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; white-space: normal; word-break: break-word; cursor: text; line-height: 1.55; }
.notes:hover { border-color: var(--line-2); }
.notes a { word-break: break-all; }
.notes-edit { width: 100%; min-height: 120px; border: 1px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); border-radius: 8px; padding: 10px 12px; outline: 0; resize: vertical; line-height: 1.55; }
.subs { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.subs:empty { display: none; }
.subs .row { grid-template-columns: minmax(0, 1fr) 40px 92px 76px; min-height: 36px; font-size: 13px; }
.subs .row:last-child { border-bottom: 0; }
.subs .row > :first-child { padding-left: 10px; }
.subs .row > * { border-left: 0; padding: 0 6px; }
.subs .row .c-ass { justify-content: center; }
.subs .qa-row { margin: 6px 0 0; }
.pn-body .qa-btn { padding-left: 10px; border-radius: 8px; height: 34px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--muted); }
.activity li .av { width: 22px; height: 22px; font-size: 9.5px; margin-top: 1px; }
.activity li b { color: var(--text); font-weight: 600; }
.activity li time { color: var(--faint); white-space: nowrap; margin-left: 6px; }
.activity li .what { min-width: 0; word-break: break-word; }
.meta { color: var(--faint); font-size: 12px; margin-top: 16px; }

/* ---------- popovers ---------- */
.pop { position: fixed; z-index: 50; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu { width: 260px; padding: 6px; }
.menu-search { width: 100%; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; outline: 0; margin-bottom: 4px; }
.menu-search:focus { border-color: var(--accent); }
.menu-list { max-height: 300px; overflow: auto; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 8px; border-radius: 7px; text-align: left; }
.menu-item:hover, .menu-item.hl { background: var(--hover); }
.menu-item.on { font-weight: 600; }
.menu-item .chkmark { margin-left: auto; color: var(--accent); }
.menu-item small { color: var(--faint); margin-left: auto; font-size: 12px; }
.menu-group { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 10px 8px 4px; display: flex; align-items: center; gap: 6px; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* date picker */
.dp { display: grid; grid-template-columns: 218px 268px; }
.dp-quick button span, .dp-quick button small { white-space: nowrap; }
.dp-quick { border-right: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.dp-quick button { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; padding: 0 10px; border-radius: 7px; text-align: left; }
.dp-quick button:hover, .dp-quick button.on { background: var(--hover); }
.dp-quick button.on { color: var(--accent-2); font-weight: 600; }
.dp-quick small { color: var(--faint); font-size: 12px; }
.dp-quick .dp-clear { color: var(--danger); margin-top: auto; }
.dp-quick .dp-clear small { display: none; }
.dp-main { padding: 12px; }
.dp-input { width: 100%; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; outline: 0; margin-bottom: 10px; }
.dp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.dp-input.bad { border-color: var(--danger); }
.dp-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-nav strong { font-size: 14px; text-transform: capitalize; }
.dp-nav button { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.dp-nav button:hover { background: var(--hover); color: var(--text); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { font-size: 11px; color: var(--faint); text-align: center; padding: 4px 0; font-weight: 600; }
.dp-day { height: 32px; border-radius: 50%; font-size: 13px; display: grid; place-items: center; }
.dp-day:hover { background: var(--hover); }
.dp-day.out { color: #c9c9d2; }
.dp-day.we { color: var(--muted); }
.dp-day.today { color: var(--accent-2); font-weight: 700; box-shadow: inset 0 0 0 1.5px #cfc5ff; }
.dp-day.sel { background: var(--accent); color: #fff; font-weight: 600; box-shadow: none; }

/* ---------- modal ---------- */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(20, 16, 40, .38); display: grid; place-items: center; padding: 20px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; box-shadow: var(--shadow); width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 24px; }
.modal.wide { width: min(640px, 100%); }
.modal h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.modal p { margin: 0 0 14px; color: var(--muted); }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.form label.f { display: block; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.form label.f input, .form label.f select { display: block; width: 100%; height: 38px; margin-top: 5px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 11px; outline: 0; background: #fff; }
.form label.f input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.form h3 { font-size: 14px; margin: 18px 0 4px; }
.form .hint { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.acc { border: 1px solid var(--line); border-radius: 10px; max-height: 320px; overflow: auto; }
.acc fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 10px 14px; }
.acc fieldset:last-child { border-bottom: 0; }
.acc legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.acc legend .check { font-weight: 600; font-size: 13.5px; }
.acc .secs { clear: both; display: grid; grid-template-columns: 1fr 1fr; padding-left: 24px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 0; }

/* ---------- admin ---------- */
.adm { padding: 20px 28px 80px; max-width: 1060px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 13.5px; }
.tbl tr.off td { color: var(--faint); }
.tbl .u { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.badge { display: inline-flex; height: 20px; align-items: center; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: #f0f0f4; color: var(--muted); }
.badge.admin { background: var(--accent-weak); color: var(--accent-2); }
.badge.off { background: var(--danger-weak); color: var(--danger); }
.ap { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.ap-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fafafc; border-bottom: 1px solid var(--line); }
.ap-h input[type=color] { width: 28px; height: 28px; border: 0; padding: 0; background: none; border-radius: 7px; cursor: pointer; }
.inline { border: 1px solid transparent; border-radius: 7px; height: 32px; padding: 0 8px; outline: 0; background: transparent; min-width: 0; flex: 1; }
.inline:hover { border-color: var(--line-2); background: #fff; }
.inline:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-weak); }
.ap-h .inline { font-weight: 600; font-size: 15px; }
.ap ul { list-style: none; margin: 0; padding: 6px 14px; }
.ap li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.ap li .n { color: var(--faint); font-size: 12px; white-space: nowrap; }
.add-line { display: flex; gap: 8px; padding: 8px 14px 12px; }
.add-line input { flex: 1; height: 34px; border: 1px dashed var(--line-2); border-radius: 8px; padding: 0 10px; outline: 0; }
.add-line input:focus { border: 1px solid var(--accent); }
.log td.what { color: var(--muted); }
.log td time { white-space: nowrap; color: var(--faint); }
.log .gone { color: var(--faint); text-decoration: line-through; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #e9e4ff 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #ffe6ea 0%, transparent 60%), var(--bg); }
.login-card { width: min(380px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 30px 30px 26px; }
.login-card .brand { color: var(--text); padding: 0 0 18px; font-size: 17px; }
.login-card h1 { font-size: 20px; margin: 0 0 18px; letter-spacing: -.02em; }
.login-card .btn-primary { width: 100%; height: 40px; justify-content: center; margin-top: 6px; }

/* ---------- toast ---------- */
.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; }
.toast { background: #1d1c25; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow); animation: pop .15s; }
.toast.err { background: var(--danger); }

/* ---------- responsive ---------- */
@media (min-width: 1181px) {
  /* s otvoreným panelom ostane miesto na názvy úloh: riešiteľ len ako avatar */
  .app.has-panel .main .lh, .app.has-panel .main .row { grid-template-columns: minmax(0, 1fr) 46px 92px 86px; }
  .app.has-panel .main .list.my .lh, .app.has-panel .main .list.my .row { grid-template-columns: minmax(0, 1fr) 150px 92px 86px; }
  .app.has-panel .main .row .c-ass .nm { display: none; }
  .app.has-panel .main .row .c-ass { justify-content: center; padding: 0; }
  .app.has-panel .main .list:not(.my) .lh > span:nth-child(2) { font-size: 0; }
  .app.has-panel .page-h, .app.has-panel .list { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 1180px) {
  .panel { position: fixed; right: 0; top: 0; bottom: 0; z-index: 40; width: min(580px, 100vw); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 45; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .side { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-grid; }
  .page-h, .list, .adm { padding-left: 16px; padding-right: 16px; }
  .lh, .row, .list.my .lh, .list.my .row { grid-template-columns: minmax(0, 1fr) 44px 86px; }
  .lh > span:nth-child(4), .row > .c-pri, .row > .c-proj { display: none; }
  .list:not(.my) .lh > span:nth-child(2) { font-size: 0; }
  .list.my .lh > span:nth-child(2) { display: none; }
  .list.my .lh, .list.my .row { grid-template-columns: minmax(0, 1fr) 86px; }
  .row .c-ass .nm { display: none; }
  .row .c-ass { justify-content: center; padding: 0; }
  .dp { grid-template-columns: 1fr; }
  .dp-quick { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .dp-quick button small { display: none; }
  .acc .secs { grid-template-columns: 1fr; }
}

/* ---------- v0.2: login kroky, roly ---------- */
.login-p { margin: -8px 0 16px; font-size: 13.5px; }
.login-alt { text-align: center; font-size: 13px; margin: 14px 0 0; color: var(--muted); }
.link-btn { color: var(--accent); font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.code-input { font-size: 22px !important; letter-spacing: 10px; text-align: center; font-weight: 600; height: 48px !important; }
.badge.ok { background: var(--ok-weak); color: var(--ok); }
.badge.wait { background: #fff4e0; color: var(--warn); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.role-card { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; cursor: pointer; }
.role-card:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); }
.role-card input { margin-top: 3px; accent-color: var(--accent); }
.role-card b { display: block; font-size: 13.5px; }
.role-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.acc-row { padding: 9px 14px; border-bottom: 1px solid var(--line); margin: 0; }
.acc-row:last-child { border-bottom: 0; }
.acct { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }
.adm { overflow-x: auto; }
.tbl .btn { height: 28px; padding: 0 9px; font-size: 12.5px; }
.tbl td { white-space: nowrap; }
.log td.what, .log td:nth-child(3) { white-space: normal; }
/* sekcie: premenovanie priamo v zozname */
.sec-name.editable { cursor: text; border-radius: 6px; padding: 2px 6px; margin-left: -6px; }
.sec-name.editable:hover { background: var(--hover); box-shadow: inset 0 0 0 1px var(--line-2); }
.sec-input { font: 700 15px var(--font); letter-spacing: -.01em; height: 30px; padding: 0 6px; margin-left: -6px; border: 1px solid var(--accent); border-radius: 6px; outline: 0; box-shadow: 0 0 0 3px var(--accent-weak); min-width: 260px; }

/* =====================================================================
   iProbio vrstva (v0.3): farby, písmo a motívy z iprobio.sk
   teal #17a19e (CTA), navy #1a547a, seafoam #e5f2f1, Barlow nadpisy, pill tlačidlá
   ===================================================================== */
:root {
  --accent: #17a19e;
  --accent-2: #128784;
  --accent-weak: #e5f2f1;
  --navy: #1a547a;
  --navy-deep: #0d2a40;
  --sel: #e9f6f5;
  --hover: #f5f9f9;
  --text: #1b1d1f;
  --line: #e8eeee;
  --line-2: #d0dada;
  --danger: #e86262;
  --danger-weak: #fdeeee;
  --ok: #10b981;
  --ok-weak: #e3f7ef;
  --side: #0d2a40;
  --side-hover: rgba(255, 255, 255, .07);
  --side-active: rgba(23, 161, 158, .22);
  --side-text: #d5e4ea;
  --side-muted: #8aa5b4;
  --head: 'Barlow', var(--font);
}
h1, h2, h3, .page-h h1, .sec-h h3, .pn-title, .modal h2 { font-family: var(--head); letter-spacing: -.02em; }
.page-h h1 { font-size: 26px; font-weight: 700; color: var(--navy-deep); }
.sec-h h3 { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.pn-title { font-size: 24px; color: var(--navy-deep); }
.btn-primary, .side-add, .login-card .btn-primary { border-radius: 999px; }
.btn-primary { font-weight: 600; }
.chk:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-weak); }
.done .chk, .chk.on { background: var(--accent); border-color: var(--accent); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px #9fd8d6; }
.pri.high { background: var(--danger-weak); color: #cf4444; }
.is-today { color: var(--accent-2) !important; }
.tabs a.on { border-color: var(--accent); color: var(--navy-deep); }

/* sidebar: navy ako hero webu + mikrobiómová textúra pri spodnom okraji */
.side { background: linear-gradient(180deg, #0d2a40 0%, #0f3550 100%); position: relative; overflow: hidden; }
.side::after { content: ''; position: absolute; inset: auto -40px -30px -40px; height: 260px; background: url(assets/cells.webp) center bottom / cover no-repeat; opacity: .28; mix-blend-mode: screen; pointer-events: none; }
.side > * { position: relative; z-index: 1; }
.brand { padding: 6px 8px 18px; gap: 0; flex-direction: column; align-items: flex-start; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sub { font: 600 10.5px/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: #6fd1cf; margin: 8px 0 0 2px; }
.side-add { background: var(--accent); box-shadow: 0 6px 18px -8px rgba(23, 161, 158, .8); }
.side-add:hover { background: #1dcdca; color: #06302f; }
.side-label { color: #6f8fa1; }
.side-foot { border-top-color: rgba(255, 255, 255, .08); }

/* ---------- login: živé mikrobiómové pozadie + sklenená karta ---------- */
.login { position: relative; overflow: hidden; background: var(--navy-deep); isolation: isolate; }
.login-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.02); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), filter 1.2s; }
.login-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 45%, rgba(13, 42, 64, .25) 0%, rgba(13, 42, 64, .72) 70%, rgba(9, 28, 44, .92) 100%); }
.login-card { background: rgba(10, 34, 52, .52); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); color: #eaf4f6; border-radius: 22px; padding: 34px 32px 28px; width: min(400px, 100%); animation: cardIn .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(6px); } }
.login-card .brand { padding: 0 0 22px; }
.login-card .brand-logo { height: 34px; }
.login-card h1 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.login-card .muted, .login-card .login-p { color: #a9c3cf; }
.login-card label.f { color: #cfe2e9; }
.login-card label.f input { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; height: 42px; border-radius: 12px; }
.login-card label.f input::placeholder { color: rgba(255, 255, 255, .35); }
.login-card label.f input:focus { border-color: #3be3e0; box-shadow: 0 0 0 3px rgba(23, 161, 158, .35); background: rgba(255, 255, 255, .1); }
.login-card .btn-primary { height: 44px; font-size: 15px; background: var(--accent); border: 0; box-shadow: 0 10px 30px -10px rgba(23, 161, 158, .9); }
.login-card .btn-primary:hover { background: #1dcdca; color: #062f2e; }
.login-card .err { color: #ff9b9b; }
.login-card .login-alt, .login-card .login-alt a, .login-card .link-btn { color: #7fd8d5; }
.login-foot { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(214, 233, 239, .55); font: 500 11px/1 var(--head); letter-spacing: .2em; text-transform: uppercase; }

/* odchod z loginu: karta sa rozpustí, pozadie sa priblíži */
.login.leaving .login-card { animation: cardOut .75s cubic-bezier(.5, 0, .75, 0) forwards; filter: url(#dissolve); }
@keyframes cardOut { to { opacity: 0; transform: translateY(-6px) scale(1.06); letter-spacing: .02em; } }
.login.leaving .login-bg { transform: scale(1.14); filter: brightness(1.25) saturate(1.15); }
.login.leaving .login-foot { opacity: 0; transition: opacity .4s; }
.spark { position: fixed; z-index: 90; width: 6px; height: 6px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #b8fffd 0%, #3be3e0 45%, rgba(23, 161, 158, 0) 70%); }
.login-overlay { position: fixed; inset: 0; z-index: 85; transition: opacity .7s ease .1s; pointer-events: none; }
.login-overlay.gone { opacity: 0; }

/* príchod do aplikácie */
.app.entering .side { animation: sideIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.app.entering .page-h { animation: fadeUp .7s .15s cubic-bezier(.2, .8, .2, 1) both; }
.app.entering .sec, .app.entering .lh { animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.25s + var(--i, 0) * 70ms); }
@keyframes sideIn { from { opacity: 0; transform: translateX(-26px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  .login-card, .app.entering .side, .app.entering .page-h, .app.entering .sec, .app.entering .lh { animation: none !important; }
  .login.leaving .login-card { animation: none; opacity: 0; filter: none; }
  .login-bg { transition: none; }
}
.sec-new .sec-h { opacity: .95; }

/* v0.4: API kľúče, zdroj zmeny, filtre histórie */
.via { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: #0f6f6d; background: #def3f2; vertical-align: 1px; white-space: nowrap; }
.log-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.log-filters select, .log-filters input { height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; outline: 0; }
.log-filters input { min-width: 220px; }
.log-filters select:focus, .log-filters input:focus { border-color: var(--accent); }
.log-note { margin: 6px 0 10px; font-size: 13px; }
.log-more { padding: 14px 0; text-align: center; }
.key-new { background: var(--accent-weak); border: 1px solid #bfe3e1; border-radius: 10px; padding: 12px 14px; margin: 10px 0; font-size: 13px; }
.key-row { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; }
.key-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: #f3f6f7; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.key-new .key-row code { background: #fff; }

/* v0.5: viac zaradení, podúlohy (počet / mini zoznam / celé), blokujúce podúlohy */
.subchip { cursor: pointer; border: 1px solid transparent; }
.subchip:hover { border-color: #bfe3e1; color: var(--accent-2); background: var(--accent-weak); }
.subchip.on { background: var(--accent); color: #fff; }
.chip.multi { background: #eaf1f7; color: var(--navy); }
.chip.lockchip { background: #fff1e0; color: #b45309; }
.lock-ic { display: inline-grid; place-items: center; color: #b45309; }
.mini-subs { margin: -2px 0 6px 46px; border-left: 2px solid #cdeceb; padding: 2px 0 2px 10px; }
.mini-sub { display: flex; align-items: center; gap: 8px; height: 28px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-radius: 6px; padding: 0 6px; }
.mini-sub:hover { background: var(--hover); color: var(--text); }
.mini-sub .chk { width: 14px; height: 14px; }
.mini-sub .chk svg { width: 9px; height: 9px; }
.mini-sub .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini-sub.done .t { text-decoration: line-through; color: var(--faint); }
.mini-sub .sp { flex: 1; }
.mini-meta { font-size: 11.5px; display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.av.xs { width: 18px; height: 18px; font-size: 8.5px; }
.pri.mini { height: 16px; padding: 0 5px; font-size: 11px; }
.sub-seg button { display: inline-flex; align-items: center; gap: 5px; }
.homes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 0; }
.home { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 10px; border: 1px solid var(--line-2); border-radius: 15px; font-size: 12.5px; background: #fff; }
.home.primary { border-color: #9fd8d6; background: var(--accent-weak); }
.home small { color: var(--accent-2); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding-right: 6px; }
.home-name { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-name:hover { color: var(--accent-2); }
.home-x { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; color: var(--faint); }
.home-x:hover { background: var(--danger-weak); color: var(--danger); }
.home-x svg { width: 12px; height: 12px; }
.home-add { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 15px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 12.5px; }
.home-add:hover { border-color: var(--accent); color: var(--accent-2); }
.block-banner { display: flex; align-items: center; gap: 8px; background: #fff4e5; color: #9a4b07; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: -6px 0 14px; }
.lock-btn { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #c9c9d2; flex: none; }
.lock-btn:hover { color: #b45309; background: #fff4e5; }
.lock-btn.on { color: #b45309; background: #fff1e0; }
.hint-inline { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; font-size: 11.5px; color: var(--faint); margin-left: auto; }

/* v0.6: nastavenia, ľudia v projekte, fotky */
img.av { object-fit: cover; background: #e6eef0; }
.av.xl { width: 88px; height: 88px; font-size: 30px; }
.av.sm { width: 26px; height: 26px; font-size: 10px; }
.av.more { background: #e6eef0; color: var(--muted); font-size: 10.5px; }
.me-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; text-decoration: none; border-radius: 8px; padding: 4px; margin: -4px; }
.me-link:hover { background: var(--side-hover); text-decoration: none; }
.page-h .title .sp { flex: 1; }
.proj-people { display: flex; cursor: pointer; padding-left: 8px; }
.proj-people .av { margin-left: -8px; box-shadow: 0 0 0 2px #fff; width: 28px; height: 28px; font-size: 10.5px; }
.settings { padding: 20px 28px 80px; max-width: 760px; display: grid; gap: 16px; }
.settings .card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #fff; }
.settings .card h2 { font-size: 17px; margin: 0 0 12px; color: var(--navy-deep); }
.settings .hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.profile-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile-actions .hint { width: 100%; margin: 0; }
.people-list .acc-row { gap: 10px; }
.invite-line input { border-style: solid !important; }

/* v0.7: prílohy */
.ic-notes small { font-size: 10.5px; margin-left: 1px; }
.att-zone { border-radius: 10px; }
#panel.drop-files .att-zone { outline: 2px dashed var(--accent); outline-offset: 4px; background: var(--accent-weak); }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.att-grid:empty { display: none; }
.att { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.att-thumb { position: relative; height: 96px; background: #eef4f5; display: grid; place-items: center; overflow: hidden; color: var(--faint); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-play { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(13, 42, 64, .65); display: grid; place-items: center; }
.att-meta { padding: 6px 8px 2px; min-width: 0; }
.att-name { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-meta small { color: var(--faint); font-size: 11px; }
.att-actions { display: flex; align-items: center; gap: 10px; padding: 2px 8px 7px; font-size: 11.5px; }
.att-actions button { margin-left: auto; color: var(--faint); }
.att-actions button:hover { color: var(--danger); }
.att-actions svg { width: 13px; height: 13px; }
.att-uploads:empty { display: none; }
.att-up { display: grid; grid-template-columns: minmax(0, 1fr) 120px 60px; gap: 8px; align-items: center; font-size: 12.5px; padding: 6px 0; }
.att-up .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-up .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.att-up .bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.att-up.fail .bar i { background: var(--danger); }
.att-up small { color: var(--muted); text-align: right; }
.att-hint { font-size: 12px; color: var(--faint); margin: 2px 0 0 10px; }
.viewer-modal { width: min(1100px, 100%) !important; padding: 12px !important; background: #0d2a40 !important; }
.viewer img, .viewer video { display: block; max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; border-radius: 8px; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 10px 2px 0; color: #d5e4ea; font-size: 13px; }
.viewer-bar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* podúloha v paneli: celý riadok otvára, mazanie po prejdení myšou */
.subs .row .c-title .t { flex: 0 1 auto; }
.sub-del { margin-left: auto; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--faint); opacity: 0; flex: none; }
.subs .row:hover .sub-del, .sub-del:focus-visible { opacity: 1; }
.sub-del:hover { color: var(--danger); background: var(--danger-weak); }
.sub-del svg { width: 13px; height: 13px; }
@media (hover: none) { .sub-del { opacity: 1; } }

/* v0.8: pohľady projektu */
.ptabs { margin-top: 6px; }
.ptabs a { display: inline-flex; align-items: center; gap: 6px; }
.side-label { display: flex; align-items: center; }
.side-plus { margin-left: auto; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--side-muted); }
.side-plus:hover { background: var(--side-hover); color: #fff; }
.side-plus svg { width: 13px; height: 13px; }
.view-toggles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.view-toggles .role-card span { display: block; }
.view-toggles .role-card svg { display: inline-block; vertical-align: -2px; margin-right: 6px; color: var(--accent-2); }
.view-toggles .role-card b { display: inline; }
.tl-tip { font-size: 12px; }

/* nástenka */
.board { display: flex; gap: 14px; padding: 16px 28px 60px; overflow-x: auto; align-items: flex-start; min-height: calc(100vh - 180px); }
.bcol { flex: 0 0 280px; background: #f3f7f8; border-radius: 12px; padding: 8px; margin: 0; display: flex; flex-direction: column; max-height: calc(100vh - 200px); }
.bcol-h { height: 36px; padding: 0 6px; }
.bcol-h h3 { font-size: 13.5px; }
.bcards { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; min-height: 40px; }
.bcol .qa-btn { padding-left: 8px; height: 34px; border-radius: 8px; }
.bcol .qa-row { padding-left: 10px; }
.bcol .qa-hint { padding-left: 4px; }
.card.row { display: block; min-height: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; box-shadow: 0 1px 2px rgba(13, 42, 64, .06); }
.card.row:hover { border-color: #b9dcda; background: #fff; box-shadow: 0 4px 14px -6px rgba(13, 42, 64, .25); }
.card.row.sel { border-color: var(--accent); }
.card.row > * { border-left: 0; padding: 0; display: flex; min-width: 0; }
.card-top { align-items: flex-start; gap: 8px; }
.card-top .chk { margin-top: 1px; }
.card-top .t { white-space: normal; overflow: visible; line-height: 1.35; font-weight: 500; }
.card .parent-hint { display: block; max-width: 100%; margin: 4px 0 0 26px; }
.card-tags { flex-wrap: wrap; gap: 5px; margin: 8px 0 0 26px; }
.card-tags:empty { display: none; }
.card-foot { justify-content: space-between; align-items: center; margin-top: 8px; }
.card-foot .c-ass, .card-foot .c-due { padding: 2px 4px; border-radius: 6px; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.card-foot .c-ass:hover, .card-foot .c-due:hover { background: var(--hover); }
.card-foot .ph { opacity: .6; }

/* prehľad */
.dash { padding: 18px 28px 80px; max-width: 1100px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.tile small { display: block; color: var(--muted); font-size: 12px; }
.tile b { display: block; font: 700 30px/1.15 var(--head); color: var(--navy-deep); letter-spacing: -.02em; margin-top: 4px; }
.tile-sub { font-size: 11.5px; color: var(--muted); }
.tile.warn b { color: #c03b3b; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dcard { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; min-width: 0; }
.dcard.wide { grid-column: 1 / -1; }
.dcard h3 { font-size: 14px; margin: 0 0 12px; color: var(--navy-deep); }
.hbars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(0, 160px) 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.hbar-l { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); }
.hbar-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: #eef3f4; border-radius: 0 4px 4px 0; }
.hbar-track i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar:hover .hbar-track i { background: var(--accent-2); }
.hbar b { text-align: right; font-weight: 600; color: var(--text); }
.colchart { width: 100%; height: 150px; display: block; }
.colchart .axis { stroke: var(--line-2); stroke-width: 1; }
.colchart .col { fill: var(--accent); }
.colchart .col-hit { fill: transparent; }
.colchart g:hover .col { fill: var(--accent-2); }
.colchart g:hover .col-hit { fill: rgba(23, 161, 158, .06); }
.col-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.dash-table { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.dash-table summary { cursor: pointer; }
.dash-empty { font-size: 13px; margin: 0; }
.late { display: grid; gap: 2px; }
.late-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.late-row:hover { background: var(--hover); text-decoration: none; }
.late-row .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* časová os */
.tl { position: relative; overflow: auto; height: calc(100vh - 190px); margin: 0 0 0 0; border-top: 1px solid var(--line); }
.tl-head { position: sticky; top: 0; z-index: 4; display: flex; background: #fff; border-bottom: 1px solid var(--line); width: max-content; }
.tl-corner { position: sticky; left: 0; z-index: 5; width: 260px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 30px 14px 6px 28px; font-size: 12px; color: var(--muted); }
.tl-scale { position: relative; height: 52px; flex: none; }
.tl-months, .tl-days { position: relative; height: 26px; }
.tl-month { position: absolute; top: 6px; font: 600 12px var(--head); color: var(--navy); text-transform: capitalize; padding-left: 6px; border-left: 1px solid var(--line-2); }
.tl-day { position: absolute; top: 0; width: 34px; text-align: center; font-size: 11.5px; color: var(--muted); line-height: 1.1; }
.tl-day small { display: block; font-size: 9.5px; color: var(--faint); }
.tl-day.we { color: var(--faint); }
.tl-day.today { color: #fff; }
.tl-day.today::before { content: ''; position: absolute; inset: -2px 3px; background: var(--accent); border-radius: 6px; z-index: -1; }
.tl-day.today small { color: #e5f2f1; }
.tl-body { position: relative; width: max-content; min-width: 100%; }
.tl-bg { position: absolute; top: 0; bottom: 0; left: 260px; pointer-events: none; }
.tl-we { position: absolute; top: 0; bottom: 0; width: 34px; background: #f6f9fa; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); opacity: .7; }
.tl-row, .tl-sec { display: flex; position: relative; }
.tl-label { position: sticky; left: 0; z-index: 3; width: 260px; flex: none; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 28px; height: 40px; min-width: 0; }
.tl-label .t { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; min-width: 0; flex: 1; }
.tl-label small { font-size: 11px; white-space: nowrap; }
.tl-label .chk { width: 16px; height: 16px; }
.tl-label .chk.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.sec-label { font: 700 13px var(--head); color: var(--navy); background: #f8fbfb; height: 34px; letter-spacing: .01em; }
.tl-sec .tl-track { height: 34px; background: rgba(248, 251, 251, .7); }
.tl-track { position: relative; flex: none; height: 40px; border-bottom: 1px solid var(--line); width: var(--tlw); cursor: crosshair; }
.tl-bar { position: absolute; top: 7px; height: 26px; border-radius: 7px; background: var(--accent); color: #fff; display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 12px; font-weight: 500; cursor: grab; box-shadow: 0 2px 6px -2px rgba(13, 42, 64, .35); user-select: none; overflow: hidden; }
.tl-bar:hover { background: var(--accent-2); }
.tl-bar.dragging { cursor: grabbing; opacity: .85; box-shadow: 0 6px 16px -4px rgba(13, 42, 64, .45); }
.tl-bar.high { box-shadow: inset 3px 0 0 #e86262, 0 2px 6px -2px rgba(13, 42, 64, .35); }
.tl-bar.late { background: #e86262; }
.tl-bar.done { background: #c8d3d6; color: #fff; }
.tl-bar-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tl-bar .av { box-shadow: 0 0 0 1.5px #fff; }
.tl-h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.tl-h.l { left: 0; } .tl-h.r { right: 0; }
@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .tl-corner, .tl-label { width: 170px; padding-left: 12px; }
  .tl-bg { left: 170px; }
  .board { padding: 12px 16px 40px; }
  .view-toggles { grid-template-columns: 1fr; }
}
.ap-views { display: inline-flex; gap: 4px; } .ap-views .chip { padding: 0 5px; } .ap-h .btn { height: 30px; font-size: 12.5px; }

/* v0.9: predvolené zobrazenie, miznutie dokončenej úlohy */
.pref-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.pref-row > span { width: 130px; font-size: 13px; color: var(--muted); }
.pref-row .seg button { display: inline-flex; align-items: center; gap: 5px; }
.row.done .chk, .card.done .chk { animation: chkPop .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes chkPop { 50% { transform: scale(1.35); } }

/* v1.0: komentáre, @označenia, varovanie pri sprístupnení */
.comments { display: grid; gap: 12px; margin-bottom: 10px; }
.comments:empty { display: none; }
.cm { display: flex; gap: 10px; align-items: flex-start; }
.cm .av { margin-top: 2px; }
.cm-main { flex: 1; min-width: 0; background: #f6f9fa; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 8px 12px; }
.cm-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 3px; flex-wrap: wrap; }
.cm-head time { color: var(--faint); }
.cm-ed { font-size: 11.5px; }
.cm-tools { margin-left: auto; display: none; gap: 8px; }
.cm:hover .cm-tools { display: inline-flex; }
@media (hover: none) { .cm-tools { display: inline-flex; } }
.cm-tools button { font-size: 12px; color: var(--muted); }
.cm-tools button:hover { color: var(--accent-2); }
.cm-tools button[data-act="cm-del"]:hover { color: var(--danger); }
.cm-body { font-size: 13.5px; line-height: 1.5; word-break: break-word; }
.mention { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--accent-weak); color: var(--accent-2); font-weight: 600; }
.composer { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px; background: #fff; }
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.cm-input { width: 100%; border: 0; outline: 0; resize: none; line-height: 1.5; min-height: 44px; padding: 4px 6px; background: transparent; }
.cm-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.cm-actions .hint-inline { margin: 0 auto 0 6px; }
.mention-warn { display: flex; gap: 10px; align-items: flex-start; background: #fff5e6; border: 1px solid #f5d39c; color: #7a4a06; border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.45; }
.mention-warn svg { flex: none; margin-top: 1px; color: #c77700; }
.mention-menu { width: 300px; }
.mention-menu .menu-item small { margin-left: auto; color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.shared-note { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.shared-hint { font-size: 12.5px; margin: -4px 0 8px 6px; }

/* v1.1: žiara úloh + pomocníček s okuliarmi (súčasť riadku/karty) */
.nk-glow { --glow: #3b82f6; z-index: 1; box-shadow: inset 2px 0 0 var(--glow), 0 0 0 1px color-mix(in srgb, var(--glow) 28%, transparent), 0 0 14px -4px color-mix(in srgb, var(--glow) 65%, transparent); animation: nkpulse 3.4s ease-in-out infinite; }
.card.row.nk-glow { border-color: color-mix(in srgb, var(--glow) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 25%, transparent), 0 0 16px -4px color-mix(in srgb, var(--glow) 70%, transparent); animation-name: nkpulsecard; }
@keyframes nkpulse { 50% { box-shadow: inset 2px 0 0 var(--glow), 0 0 0 1px color-mix(in srgb, var(--glow) 42%, transparent), 0 0 20px -3px color-mix(in srgb, var(--glow) 80%, transparent); } }
@keyframes nkpulsecard { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 40%, transparent), 0 0 22px -3px color-mix(in srgb, var(--glow) 85%, transparent); } }
.hs { position: absolute; left: 0; top: 0; width: 20px; height: 26px; pointer-events: none; z-index: 3; color: var(--glow, #3b82f6); will-change: transform; filter: drop-shadow(0 1px 1px rgba(13, 42, 64, .25)); }
.hs svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hs .hs-leg, .hs .hs-arm, .hs .hs-head, .hs .hs-eyes { transform-box: view-box; }
.hs .hs-l { transform-origin: 8.4px 19.4px; } .hs .hs-r { transform-origin: 11.6px 19.4px; }
.hs .hs-al { transform-origin: 6.5px 15.6px; } .hs .hs-ar { transform-origin: 13.5px 15.6px; }
.hs .hs-head { transform-origin: 10px 13px; animation: hshead 2.6s ease-in-out infinite; }
.hs .hs-eyes { transform-origin: 10px 9.1px; animation: hsblink 3.8s infinite; }
.hs.walking .hs-l { animation: hsleg .3s ease-in-out infinite alternate; }
.hs.walking .hs-r { animation: hsleg .3s ease-in-out infinite alternate-reverse; }
.hs.walking .hs-al { animation: hsleg .3s ease-in-out infinite alternate-reverse; }
.hs.tinker .hs-ar { animation: hstinker .16s ease-in-out infinite alternate; }
.hs.tinker .hs-head { animation: hsfocus .72s ease-in-out; }
@keyframes hsleg { from { transform: rotate(22deg); } to { transform: rotate(-22deg); } }
@keyframes hstinker { from { transform: rotate(-30deg); } to { transform: rotate(18deg); } }
@keyframes hshead { 50% { transform: rotate(-5deg); } }
@keyframes hsfocus { 50% { transform: rotate(8deg) translateY(.6px); } }
@keyframes hsblink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.hs-nudge { animation: hsnudge .72s ease-in-out; }
@keyframes hsnudge { 20% { transform: translate(1.5px, -1px) rotate(-3deg); } 45% { transform: translate(-1px, .5px) rotate(2.5deg); } 70% { transform: translate(1px, -.5px) rotate(-1.5deg); } }
.glow-pick { width: 38px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: #fff; }
.glow-pick:disabled { opacity: .4; }
.glow-swatches { display: inline-flex; gap: 6px; }
.glow-swatches button { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.glow-swatches button:hover { transform: scale(1.12); }
.glow-preview { padding: 6px 0 4px !important; margin-top: 6px; }
.glow-preview .row { border: 1px solid var(--line); border-radius: 8px; cursor: default; }
@media (prefers-reduced-motion: reduce) { .nk-glow, .hs, .hs * , .hs-nudge { animation: none !important; } }
/* postavička nie je stĺpec riadku: zrušiť štýly .row > * */
.row > .hs, .card.row > .hs { display: block; padding: 0; border: 0; min-width: 0; gap: 0; }
/* pomalšia chôdza, pirueta potrebuje perspektívu */
.hs { perspective: 120px; }
.hs.walking .hs-l, .hs.walking .hs-r, .hs.walking .hs-al { animation-duration: .55s; }
.hs.walking .hs-head { animation: hshead 1.1s ease-in-out infinite; }

/* v1.2: Marián – chlapík s lupou */
.hs svg { transform-origin: 50% 100%; }
.hs-inspector .hs-mag, .hs-inspector .hs-box { opacity: 0; transition: opacity .2s; }
.hs-inspector .hs-ar { transition: transform .25s ease; }
.hs-inspector.inspect .hs-ar { transform: rotate(-58deg); }
.hs-inspector.inspect .hs-mag { opacity: 1; }
.hs-inspector .hs-lens { transform-box: fill-box; transform-origin: center; }
.hs-inspector.inspect .hs-lens { animation: hslens 1.1s ease-in-out infinite; }
.hs-inspector .hs-lglint { opacity: 0; }
.hs-inspector.inspect .hs-lglint { animation: nkglint 1.4s ease-in-out infinite; }
@keyframes hslens { 50% { transform: scale(1.14); } }
.hs-inspector.inspect .hs-head { animation: hsfocus 1.6s ease-in-out infinite; }
.hs-inspector.pocket .hs-ar { transform: rotate(16deg); }
.hs-inspector.boxout .hs-ar { transform: rotate(-35deg); }
.hs-inspector.boxout .hs-box { opacity: 1; }
.hs-inspector .hs-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .25s ease .1s; }
.hs-inspector.boxout .hs-lid { transform: rotate(-70deg); }
.hs-inspector .hs-box { transform-box: view-box; transform-origin: 13.6px 15.6px; }
.hs-inspector.boxout .hs-box { transform: rotate(-35deg); }
.hs-cog { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; }
.hs-cog svg { display: block; width: 100%; height: 100%; }
.row > .hs-cog, .card.row > .hs-cog { display: block; padding: 0; border: 0; min-width: 0; }

/* v1.3: notifikácie */
.notif-list { display: grid; gap: 2px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.notif-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--hover); }
.notif-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.notif-row b { display: block; font-size: 13.5px; font-weight: 600; }
.notif-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.hour-pick { height: 32px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 8px; background: #fff; }

/* v1.4: externá osoba */
.av.ext { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #e8873a; }
.ext-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fdeee0; color: #b25a12; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; white-space: nowrap; }
.menu-item .ext-tag { margin-left: 0; }
.ext-check { align-items: flex-start; }
.ext-check .muted { font-weight: 400; }
.toast.warn { background: #b25a12; }

/* v1.5: sekcia Dokončené + hľadanie */
.sec-done .done-h { cursor: pointer; }
.sec-done .done-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.sec-done .done-ic svg { width: 10px; height: 10px; }
.sec-done .done-h h3 { color: var(--muted, #6b6b76); }
.sec-done .done-h .btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.sec-done.collapsed .caret svg { transform: rotate(-90deg); }
.board .sec-done.collapsed { min-width: 0; width: 210px; flex: none; align-self: flex-start; }
.side-search { position: relative; display: flex; align-items: center; gap: 8px; height: 34px; margin: 0 4px 12px; padding: 0 10px; border-radius: 9px; background: rgba(255,255,255,.08); color: var(--side-muted); cursor: text; }
.side-search:focus-within { background: rgba(255,255,255,.14); box-shadow: 0 0 0 2px rgba(23,161,158,.55); }
.side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13.5px; }
.side-search input::placeholder { color: var(--side-muted); }
.side-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.side-search kbd { font: 600 10.5px/1 inherit; padding: 3px 5px; border-radius: 5px; border: 1px solid rgba(255,255,255,.18); color: var(--side-muted); }
.side-search:focus-within kbd { display: none; }
.search-pop { width: 460px; max-width: calc(100vw - 16px); max-height: min(560px, 70vh); overflow: auto; }
.search-item { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; }
.search-item:hover, .search-item.hl { background: var(--hover); }
.search-item .si-top { display: flex; align-items: center; gap: 8px; }
.search-item .si-top b { flex: 1; font-weight: 600; }
.search-item .si-chk { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c5c5cf; flex: none; }
.search-item.done .si-chk { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-item.done .si-chk svg { width: 9px; height: 9px; }
.search-item.done .si-top b { text-decoration: line-through; color: var(--faint); }
.search-item .si-meta { display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; padding-left: 23px; }
.search-item .si-meta .dot { width: 7px; height: 7px; }
.search-item .si-snip { padding-left: 23px; font-size: 12.5px; color: var(--muted, #6b6b76); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-item .si-snip small { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 999px; background: var(--hover); font-size: 10.5px; font-weight: 600; }
.search-item mark { background: #fff0b3; color: inherit; border-radius: 2px; padding: 0 1px; }

/* v1.5: ľudia v projekte ako v Asane */
.ppl-add { position: relative; display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 2px; }
.ppl-input { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: text; }
.ppl-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,161,158,.15); }
.ppl-input input { flex: 1; min-width: 160px; border: 0; outline: 0; font: inherit; padding: 4px 2px; background: transparent; }
.ppl-chips { display: contents; }
.ppl-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 4px; border-radius: 999px; background: var(--hover); font-size: 13px; font-weight: 500; }
.ppl-chip button { width: 18px; height: 18px; border-radius: 50%; line-height: 1; color: var(--faint); }
.ppl-chip button:hover { background: rgba(0,0,0,.08); color: inherit; }
.ppl-add > .btn { height: 40px; }
.ppl-sugg { position: absolute; left: 0; top: 46px; width: min(420px, 100%); z-index: 5; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); max-height: 300px; overflow: auto; }
.ppl-sugg .ppl-already { opacity: .55; cursor: default; }
.ppl-h { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ppl-list { max-height: 46vh; overflow: auto; border-top: 1px solid var(--line); }
.ppl-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.ppl-who { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.ppl-who small { flex-basis: 100%; color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ppl-role { font-size: 12.5px; white-space: nowrap; }
.ppl-row .btn-sm, .ppl-spacer { width: 82px; height: 28px; padding: 0 10px; font-size: 12.5px; flex: none; }
.ppl-row .btn-sm:hover { color: var(--danger); border-color: var(--danger); }
.notice-muted { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fdeee0; color: #8a4510; font-size: 13px; }

/* v1.6: čarodej (Martin) a motorkár (Norbert) */
.hs-wizard .hs-robe { transform-box: view-box; transform-origin: 11px 14px; }
.hs-wizard.walking .hs-robe { animation: hsrobe .55s ease-in-out infinite alternate; }
.hs-wizard .hs-ar { transform-origin: 14px 15.4px; transition: transform .3s ease; }
.hs-wizard.cast .hs-ar { transform: rotate(-24deg); }
.hs-wizard.raise .hs-ar { transform: rotate(-48deg) translateY(-1px); }
.hs-wizard .hs-orb { transform-box: fill-box; transform-origin: center; animation: hsorb 2.2s ease-in-out infinite; }
.hs-wizard.cast .hs-orb { animation: hsorbcast .5s ease-in-out infinite alternate; }
@keyframes hsrobe { from { transform: skewX(3deg); } to { transform: skewX(-3deg); } }
@keyframes hsorb { 50% { opacity: .55; } }
@keyframes hsorbcast { from { filter: drop-shadow(0 0 1px #fde68a); transform: scale(1); } to { filter: drop-shadow(0 0 3px #fff6c9) drop-shadow(0 0 2px var(--glow, #7c3aed)); transform: scale(1.5); } }
.hs-rider svg { transform-origin: 22% 80%; }
.hs-rider .hs-wheel { transform-box: fill-box; transform-origin: center; }
.hs-rider.walking .hs-wheel { animation: hswheel .35s linear infinite; }
.hs-rider.walking .hs-body { animation: hsbump .22s ease-in-out infinite alternate; }
.hs-rider .hs-body { transform-box: view-box; }
.hs-rider .hs-head { animation: none; }
.hs-rider.rev svg { animation: hswheelie .95s ease-in-out; }
.hs-rider.rev .hs-wb { animation: hswheel .25s linear infinite; }
.hs-rider .hs-ar { transform-origin: 16.6px 9.2px; transition: transform .2s ease; }
.hs-rider.throw .hs-ar { transform: rotate(-70deg); }
@keyframes hswheel { to { transform: rotate(360deg); } }
@keyframes hsbump { from { transform: translateY(0); } to { transform: translateY(-.6px); } }
@keyframes hswheelie { 0%, 100% { transform: rotate(0deg); } 35%, 65% { transform: rotate(-13deg); } }
.hs-ring i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1.2px solid var(--ring, #7c3aed); box-shadow: 0 0 4px #fff6c9; }
.hs-puff i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #cbd5e1; }
.hs-boom i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, #fff7d6 0 20%, #fbbf24 35%, #f97316 60%, rgba(239,68,68,0) 72%); }
.hs-smoke i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(100,116,139,.55), rgba(100,116,139,0) 70%); }
.hs-bit i { display: block; width: 100%; height: 100%; border-radius: 1px; }
.hs-bomb .hs-fuse { transform-box: fill-box; transform-origin: center; animation: hsfuse .12s ease-in-out infinite alternate; }
@keyframes hsfuse { from { transform: scale(.7); fill: #fbbf24; } to { transform: scale(1.3); fill: #ef4444; } }
.row > .hs-cog, .card.row > .hs-cog { pointer-events: none; }

/* v1.7: prihlásenie kódom, voliteľné heslo */
.login .remember { margin: 2px 0 4px; font-size: 13px; color: rgba(255, 255, 255, .82); gap: 8px; cursor: pointer; }
.pw-state { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; margin: 4px 0 10px; }
.pw-actions { display: flex; gap: 8px; }

/* v1.7: portál čarodeja */
.hs-portal { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; }
.row > .hs-portal, .card.row > .hs-portal { display: block; padding: 0; border: 0; min-width: 0; }
.hs-portal i { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 1.2px solid #fff6c9; box-shadow: 0 0 5px var(--glow, #7c3aed), inset 0 0 4px #fff6c9; background: #2e1065; }
.hs-portal i::before { content: ''; position: absolute; left: -60%; top: -30%; width: 220%; height: 160%;
  background: conic-gradient(from 0deg, var(--glow, #7c3aed), #fff6c9, #c4b5fd, var(--glow, #7c3aed), #1e1b4b, var(--glow, #7c3aed));
  animation: hsportal .9s linear infinite; opacity: .9; }
.hs-portal i::after { content: ''; position: absolute; inset: 25% 20%; border-radius: 50%; background: radial-gradient(ellipse, #fff6c9, rgba(255,246,201,0) 70%); }
@keyframes hsportal { to { transform: rotate(360deg); } }
