/* TaskHub – RTL design system (light / dark), Monday-style */
:root {
  --bg: #f5f6fa; --panel: #fff; --panel-2: #f8f9fc; --text: #262a3b; --muted: #6b7083; --faint: #9aa0b4;
  --line: #e4e7ef; --line-2: #eef0f5; --hover: #f2f5ff; --sel: #e7efff;
  --primary: #0073ea; --primary-h: #0060c2; --primary-soft: #e6f1fe; --primary-text: #fff;
  --danger: #e2445c; --success: #00c875; --warn: #fdab3d; --info: #579bfc; --purple: #a25ddc;
  --side-bg: #1f2340; --side-text: #c9cde4; --side-active: #0073ea; --side-hover: rgba(255, 255, 255, .07);
  --shadow-sm: 0 1px 2px rgba(20, 25, 60, .06); --shadow: 0 6px 24px rgba(20, 25, 60, .10); --shadow-lg: 0 18px 50px rgba(20, 25, 60, .22);
  --r: 10px; --r-sm: 6px; --r-lg: 16px;
  --font: "Segoe UI", "Rubik", "Assistant", "Heebo", system-ui, -apple-system, Arial, sans-serif;
  --top-h: 58px; --side-w: 236px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #15172b; --panel: #1e2140; --panel-2: #23264a; --text: #e8eaf6; --muted: #a2a7c4; --faint: #757a99;
  --line: #31355c; --line-2: #2a2e52; --hover: #272b52; --sel: #2c3567;
  --primary: #3d8bff; --primary-h: #5c9dff; --primary-soft: #23315f;
  --side-bg: #111327; --side-text: #b7bbd8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 6px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.45; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { margin: 0 0 8px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 15px; height: 15px; } svg.i.lg { width: 22px; height: 22px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; } .sp { flex: 1; }
.gap-4 { gap: 4px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.danger-text { color: var(--danger); } .success-text { color: var(--success); } .warn-text { color: #d48806; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none !important; }
.btn:hover { background: var(--hover); border-color: #c9d2ea; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-h); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-ghost { color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; position: relative; flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.sm { width: 28px; height: 28px; }
.input, .select, textarea.input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.input.sm, .select.sm { height: 32px; font-size: 13px; }
.input[type="date"] { direction: rtl; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > label, .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.field .hint { font-size: 12px; color: var(--faint); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: #c5c9d6; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: right .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked { background: var(--success); }
.switch input:checked::after { right: 19px; }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 550; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.seg button.on { background: var(--panel); color: var(--primary); box-shadow: var(--shadow-sm); }
.search { position: relative; }
.search .i { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search .input { padding-right: 34px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: 100dvh; }
.side { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; color: #fff; text-decoration: none; cursor: pointer; min-width: 0; }
.brand:hover .logo { transform: scale(1.06); }
.brand .logo { width: 36px; height: 36px; border-radius: 10px; flex: none; transition: transform .15s; }
.brand b { display: block; font-size: 15px; line-height: 1.2; }
.brand small { display: block; color: var(--side-text); font-size: 11.5px; opacity: .85; }
.nav { padding: 6px 10px; overflow-y: auto; flex: 1; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; margin: 2px 0; border-radius: 8px; color: var(--side-text); text-decoration: none; font-weight: 550; position: relative; }
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.on { background: var(--side-active); color: #fff; }
.nav .sect { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #7f86b0; padding: 14px 12px 4px; font-weight: 700; }
.nav .count { margin-right: auto; background: var(--danger); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; line-height: 18px; font-weight: 700; }
.side-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-foot .me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; color: #fff; }
.side-foot .me:hover { background: var(--side-hover); }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; z-index: 5; }
.topbar .title { font-size: 17px; font-weight: 650; min-width: 0; }
.topbar .search-trigger { display: flex; align-items: center; gap: 8px; height: 36px; min-width: 260px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--faint); cursor: pointer; }
.topbar .search-trigger kbd { margin-right: auto; font-family: inherit; font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; background: var(--panel); }
.dot-badge { position: absolute; top: 3px; left: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; line-height: 1; border: 2px solid var(--panel); }
.content { flex: 1; overflow: auto; padding: 22px 26px 40px; min-height: 0; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.bottom-nav { display: none; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--primary-soft); color: var(--text); margin-bottom: 16px; border: 1px solid rgba(0, 115, 234, .2); }
.banner.warn { background: #fff6e5; border-color: #ffd58a; }
[data-theme="dark"] .banner.warn { background: #3b3220; border-color: #6d5a2b; }

/* ---------- cards / kpis ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head .sp { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 16px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); cursor: default; }
.kpi[data-go] { cursor: pointer; }
.kpi[data-go]:hover { border-color: var(--primary); }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--primary)); }
.kpi .v { font-size: 28px; font-weight: 700; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .l .i { color: var(--c, var(--primary)); }
.kpi .s { color: var(--faint); font-size: 12px; margin-top: 4px; }

/* ---------- pills, chips, avatars ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 92px; height: 30px; padding: 0 10px; border-radius: 6px; color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; border: 0; cursor: default; background: var(--c, #9aa0ac); }
button.pill { cursor: pointer; }
button.pill:hover { filter: brightness(1.07); }
.pill.sm { height: 24px; min-width: 70px; font-size: 12px; border-radius: 5px; }
.pill.full { width: 100%; border-radius: 0; height: 100%; min-height: 36px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; font-weight: 550; color: var(--muted); white-space: nowrap; max-width: 100%; }
.chip.c { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 35%, transparent); color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.chip .x { cursor: pointer; opacity: .7; } .chip .x:hover { opacity: 1; }
.tag-ms { display: inline-flex; align-items: center; gap: 3px; color: #b8860b; font-weight: 700; font-size: 12px; }
.avatar { --s: 28px; width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: calc(var(--s) * .4); font-weight: 700; flex: none; background: var(--c, #8a8fa8); border: 2px solid var(--panel); letter-spacing: -.02em; user-select: none; }
.avatar.empty { background: transparent; border: 1.5px dashed var(--faint); color: var(--faint); }
.avatars { display: inline-flex; flex-direction: row; }
.avatars .avatar + .avatar { margin-right: -8px; }
.health { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.health.green { background: var(--success); } .health.amber { background: var(--warn); } .health.red { background: var(--danger); } .health.done { background: #5f6b7a; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; min-width: 60px; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--success)); transition: width .3s; }
.prog-cell { display: flex; align-items: center; gap: 8px; }
.prog-cell .progress { flex: 1; }
.prog-cell span { font-size: 12px; color: var(--muted); min-width: 32px; text-align: left; font-variant-numeric: tabular-nums; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; }
.badge.gray { background: var(--line); color: var(--muted); }
.badge.blue { background: var(--primary); }
.date-chip { font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.date-chip.over { color: var(--danger); font-weight: 650; }
.date-chip.soon { color: #d48806; font-weight: 600; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs .on { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- monday-like board table ---------- */
.board-group { margin-bottom: 22px; }
.group-title { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--c); font-weight: 700; font-size: 15px; cursor: pointer; user-select: none; }
.group-title .cnt { color: var(--faint); font-weight: 500; font-size: 13px; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-weight: 600; font-size: 12.5px; text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.tbl td { padding: 0 10px; height: 42px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl tr.sel td { background: var(--sel); }
.tbl td.c-pill { padding: 0; width: 130px; min-width: 120px; }
.tbl td.c-pill .pill { width: 100%; height: 41px; border-radius: 0; min-width: 0; }
.tbl.board td:first-child { border-right: 5px solid var(--gc, var(--primary)); }
.tbl .t-title { display: flex; align-items: center; gap: 6px; min-width: 220px; cursor: pointer; }
.tbl .t-title .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.tbl .t-title:hover .name { color: var(--primary); }
.tbl .t-meta { display: inline-flex; gap: 6px; color: var(--faint); font-size: 12px; align-items: center; }
.tbl .t-meta span { display: inline-flex; align-items: center; gap: 2px; }
.tbl td.sel-c, .tbl th.sel-c { width: 34px; padding: 0 8px; }
.tbl td.done-row .name { text-decoration: line-through; color: var(--faint); }
.tbl .sub-row td:first-child { border-right-color: color-mix(in srgb, var(--gc) 45%, transparent); }
.tbl .sub-row .t-title { padding-right: 22px; }
.tbl tfoot td { background: var(--panel-2); }
.add-row { display: flex; align-items: center; gap: 8px; }
.add-row input { border: 0; background: transparent; outline: none; height: 40px; flex: 1; min-width: 160px; }
.add-row input::placeholder { color: var(--faint); }
.cell-btn { border: 0; background: transparent; cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; }
.cell-btn:hover { background: var(--line-2); }
.cell-date { border: 0; background: transparent; height: 32px; width: 128px; cursor: pointer; border-radius: 6px; padding: 0 4px; }
.cell-date:hover { background: var(--line-2); }
.star { cursor: pointer; color: var(--faint); display: inline-grid; place-items: center; border: 0; background: none; padding: 2px; }
.star.on { color: #f2b200; }
.star.on svg { fill: #f2b200; }
.bulk-bar { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; z-index: 40; }
.bulk-bar .n { background: var(--primary); color: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 700; }

/* ---------- list rows (my area) ---------- */
.task-list { display: flex; flex-direction: column; }
.task-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--hover); }
.task-row .tt { flex: 1; min-width: 0; }
.task-row .tt b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .tt small { color: var(--muted); font-size: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.sect-title { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 12px 14px 8px; font-size: 14px; color: var(--c, var(--text)); }
.list-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item.click { cursor: pointer; border-radius: 6px; padding: 9px 8px; }
.list-item.click:hover { background: var(--hover); }

/* ---------- projects ---------- */
.proj-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.proj-card::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 5px; background: var(--c, var(--primary)); }
.proj-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.proj-card h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.proj-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-card .foot { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.proj-head { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 16px; }
.proj-head .ttl { font-size: 22px; font-weight: 700; border: 1px solid transparent; border-radius: 6px; padding: 2px 6px; margin: -3px -7px; outline: none; min-width: 200px; }
.proj-head .ttl[contenteditable="true"]:hover { border-color: var(--line); }
.proj-head .ttl:focus { border-color: var(--primary); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 18px; margin-top: 14px; }
.meta-grid .m { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.meta-grid .m > span { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- kanban ---------- */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { width: 280px; flex: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; max-height: calc(100dvh - 260px); }
.kcol-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 700; border-top: 4px solid var(--c); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.kcol-b { padding: 4px 10px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcol.drop .kcol-b { background: var(--primary-soft); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; cursor: grab; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.kcard:hover { border-color: #b8c4e6; }
.kcard.dragging { opacity: .5; }
.kcard b { font-weight: 600; font-size: 13.5px; }

/* ---------- gantt ---------- */
.gantt { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: auto; position: relative; max-height: calc(100dvh - 210px); }
.g-grid { display: grid; grid-template-columns: 300px max-content; min-width: max-content; }
.g-left { position: sticky; right: 0; z-index: 3; background: var(--panel); border-left: 1px solid var(--line); }
.g-head { position: sticky; top: 0; z-index: 4; background: var(--panel); border-bottom: 1px solid var(--line); height: 52px; }
.g-left .g-head { z-index: 5; display: flex; align-items: flex-end; padding: 0 12px 8px; font-weight: 600; color: var(--muted); font-size: 12.5px; }
.g-row { height: 36px; display: flex; align-items: center; border-bottom: 1px solid var(--line-2); padding: 0 10px; gap: 6px; font-size: 13px; }
.g-row.proj { font-weight: 700; background: var(--panel-2); }
.g-row.task { padding-right: 26px; cursor: pointer; }
.g-row.task:hover { color: var(--primary); }
.g-right { position: relative; z-index: 1; }
.g-months { display: flex; height: 26px; border-bottom: 1px solid var(--line-2); }
.g-months div, .g-days div { border-left: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; flex: none; }
.g-months div { font-weight: 650; color: var(--text); }
.g-days { display: flex; height: 26px; }
.g-body { position: relative; }
.g-line { height: 36px; border-bottom: 1px solid var(--line-2); position: relative; }
.g-line.proj { background: var(--panel-2); }
.g-bar { position: absolute; top: 8px; height: 20px; border-radius: 5px; background: var(--c, var(--primary)); color: #fff; font-size: 11.5px; line-height: 20px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); touch-action: none; }
.g-bar.proj { top: 11px; height: 14px; border-radius: 3px; opacity: .85; cursor: default; font-size: 0; }
.g-bar .done { position: absolute; inset: 0 0 0 auto; background: rgba(255, 255, 255, .28); pointer-events: none; }
.g-bar .rs { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; }
.g-bar.late { outline: 2px solid var(--danger); outline-offset: 1px; }
.g-ms { position: absolute; top: 10px; width: 16px; height: 16px; transform: rotate(45deg); background: var(--c, #f2b200); border: 2px solid var(--panel); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); cursor: pointer; margin-right: -8px; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
.g-today::before { content: "היום"; position: absolute; top: -1px; transform: translateX(50%); background: var(--danger); color: #fff; font-size: 10px; padding: 0 4px; border-radius: 3px; right: 1px; }
.g-wkend { position: absolute; top: 0; bottom: 0; background: rgba(120, 130, 160, .06); pointer-events: none; }

/* ---------- work plan (excel-like) ---------- */
.wp-wrap { overflow: auto; border: 1px solid #9fb3d1; border-radius: 8px; background: var(--panel); max-height: calc(100dvh - 250px); }
table.wp { border-collapse: collapse; font-size: 12.5px; min-width: 1500px; width: 100%; }
.wp th { position: sticky; top: 0; z-index: 2; background: #c5e0b4; color: #000; font-weight: 700; padding: 8px 6px; border: 1px solid #8fb07a; text-align: center; vertical-align: middle; line-height: 1.25; }
.wp th.hl { color: #0000ff; }
.wp td { border: 1px solid #c7d3e3; padding: 5px 7px; vertical-align: middle; }
.wp tr.parent td { background: #ffe699; font-weight: 700; color: #000; }
.wp tr.child td.gray { background: #a6a6a6; }
[data-theme="dark"] .wp th { background: #3c5a2e; color: #fff; border-color: #56784a; } [data-theme="dark"] .wp th.hl { color: #8fb4ff; } [data-theme="dark"] .wp tr.child td.gray { background: #4a4d5c; }
[data-theme="dark"] .wp tr.parent td { background: #5a4a1c; color: #fff; }
[data-theme="dark"] .wp td { border-color: #3a4a6a; }
.wp tr.child td { background: var(--panel); }
.wp tr.child:hover td { background: var(--hover); }
.wp td.st { text-align: center; font-weight: 650; color: #fff; }
.wp td.late { color: var(--danger); font-weight: 700; }
.wp .ms-name { padding-right: 18px; position: relative; cursor: pointer; }
.wp .ms-name::before { content: "◆"; position: absolute; right: 4px; color: #f2b200; font-size: 10px; top: 50%; transform: translateY(-50%); }
.wp .act-name { cursor: pointer; }
.wp .act-name:hover, .wp .ms-name:hover { color: var(--primary); text-decoration: underline; }
.save-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.save-status .d { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.save-status.err .d { background: var(--danger); }

/* ---------- people ---------- */
.person-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.person-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.person-card .top { display: flex; gap: 12px; align-items: center; }
.person-card .top b { display: block; font-size: 15px; }
.person-card.inactive { opacity: .6; }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.matrix { border-collapse: collapse; width: 100%; font-size: 13px; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: right; }
.matrix .yes { color: var(--success); font-weight: 800; } .matrix .no { color: var(--faint); }
.tier-top td { background: color-mix(in srgb, var(--success) 12%, transparent) !important; }
.tier-low td { background: color-mix(in srgb, var(--danger) 10%, transparent) !important; }
.score { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 800; font-size: 14px; border: 3px solid var(--c, var(--primary)); color: var(--c, var(--primary)); background: var(--panel); }
.score.sm { width: 34px; height: 34px; font-size: 12.5px; border-width: 2.5px; }

/* ---------- charts ---------- */
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.legend .li { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .track { height: 18px; background: var(--line-2); border-radius: 5px; overflow: hidden; display: flex; }
.hbar .track i { display: block; height: 100%; }
.hbar .v { text-align: left; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.vcols { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.vcols .vc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.vcols .vc i { display: block; width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: var(--c, var(--primary)); min-height: 2px; }
.vcols .vc small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.vcols .vc b { font-size: 12px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 18, 40, .45); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--panel); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; animation: pop .18s ease-out; }
.modal.wide { width: min(860px, 100%); }
.modal.xwide { width: min(1100px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 6px; }
.modal-h h2 { flex: 1; font-size: 18px; }
.modal-b { padding: 10px 20px 8px; overflow-y: auto; }
.modal-f { display: flex; gap: 8px; padding: 12px 20px 18px; justify-content: flex-start; flex-wrap: wrap; }
.drawer-ov { position: fixed; inset: 0; background: rgba(15, 18, 40, .25); z-index: 90; animation: fade .15s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(760px, 100vw); background: var(--panel); z-index: 91; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
.drawer-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 22px 40px; }
.menu { position: fixed; z-index: 200; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 180px; max-height: 360px; overflow-y: auto; animation: pop .12s ease-out; }
.menu .mi { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.menu .mi:hover, .menu .mi.kb { background: var(--hover); }
.menu .mi.on { font-weight: 700; color: var(--primary); }
.menu .mi.danger { color: var(--danger); }
.menu .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.menu .div { height: 1px; background: var(--line); margin: 5px 2px; }
.menu .msearch { margin: 2px 2px 6px; }
.menu.status-menu { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px; min-width: 200px; }
.menu.status-menu .pill { width: 100%; cursor: pointer; height: 32px; }
.menu.status-menu .pill.on { outline: 2px solid var(--text); outline-offset: 1px; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: #2b2f4c; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; animation: pop .2s ease-out; cursor: default; }
.toast.click { cursor: pointer; }
.toast.ok { background: #037f4c; } .toast.err { background: #c4314b; }
.toast b { display: block; }
.palette { width: min(640px, 100%); align-self: start; margin-top: 10vh; }
.palette .input { height: 50px; font-size: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: none !important; }
.palette .res { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette .grp { font-size: 11.5px; color: var(--faint); font-weight: 700; padding: 8px 10px 4px; }
.notif-panel { width: min(420px, calc(100vw - 20px)); max-height: 70vh; padding: 0; display: flex; flex-direction: column; }
.notif-panel .np-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-panel .np-b { overflow-y: auto; }
.notif { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.notif:hover { background: var(--hover); }
.notif.unread { background: var(--primary-soft); }
.notif .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--c, var(--primary)); color: #fff; }
.notif b { display: block; font-weight: 600; font-size: 13.5px; }
.notif small { color: var(--muted); font-size: 12.5px; display: block; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .art { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--primary-soft); color: var(--primary); }
.empty .art svg { width: 34px; height: 34px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty p { max-width: 420px; margin: 0 auto 14px; }

/* ---------- task drawer ---------- */
.t-title-input { width: 100%; font-size: 21px; font-weight: 700; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 4px 8px; margin: 0 -9px; outline: none; resize: none; overflow: hidden; line-height: 1.35; }
.t-title-input:hover:not(:disabled) { border-color: var(--line); }
.t-title-input:focus { border-color: var(--primary); }
.t-props { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 12px; align-items: center; margin: 14px 0 18px; }
.t-props > .k { color: var(--muted); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; min-height: 36px; }
.t-props > .v { min-height: 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ms-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed #e5c35a; background: #fffbea; margin-bottom: 14px; }
.ms-toggle.on { border-style: solid; background: #fff3c4; }
[data-theme="dark"] .ms-toggle { background: #3a3420; border-color: #7a6a2c; }
[data-theme="dark"] .ms-toggle.on { background: #4a3f1c; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.post { display: flex; gap: 10px; }
.post .bubble { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.post.update .bubble { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); background: color-mix(in srgb, var(--success) 6%, var(--panel)); }
.post .bubble .h { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.post .bubble .h b { color: var(--text); font-size: 13px; }
.post .bubble .t { white-space: pre-wrap; word-break: break-word; }
.mention { color: var(--primary); font-weight: 600; }
.composer { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--panel); }
.composer textarea { border: 0; width: 100%; min-height: 64px; resize: vertical; outline: none; background: transparent; padding: 4px; }
.composer:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.file-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.file-row .ext { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--c, #8a8fa8); flex: none; text-transform: uppercase; }
.file-row img.thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.subtask { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.subtask .name { flex: 1; cursor: pointer; }
.subtask .name:hover { color: var(--primary); }
.subtask.done .name { text-decoration: line-through; color: var(--faint); }
.range { width: 100%; accent-color: var(--success); }
.hist { font-size: 12.5px; color: var(--muted); padding: 6px 0; border-bottom: 1px dashed var(--line-2); display: flex; gap: 8px; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: linear-gradient(150deg, #0b1d51 0%, #0073ea 55%, #00c3ff 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.auth-side h1 { font-size: 34px; line-height: 1.2; }
.auth-side p { font-size: 16px; opacity: .92; max-width: 460px; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li .i { background: rgba(255, 255, 255, .18); border-radius: 8px; padding: 5px; width: 30px; height: 30px; }
.auth-side .blob { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .07); left: -120px; bottom: -120px; }
.auth-main { display: grid; place-items: center; padding: 32px 20px; background: var(--panel); }
.auth-box { width: min(440px, 100%); }
.auth-box h2 { font-size: 24px; margin-bottom: 4px; }
.auth-box .sub { color: var(--muted); margin-bottom: 22px; }
.auth-box .alt { text-align: center; margin-top: 18px; color: var(--muted); }
.err-box { background: #fdecef; color: #b4233b; border: 1px solid #f6c3cc; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 13.5px; }
[data-theme="dark"] .err-box { background: #4a1f2a; color: #ffb3c0; border-color: #6e2c3b; }
.ok-box { background: #e6f9f0; color: #036b40; border: 1px solid #a8e6c8; border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
[data-theme="dark"] .ok-box { background: #173a2c; color: #8ff0c4; border-color: #285c45; }
.splash { min-height: 100dvh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }

/* ---------- guide ---------- */
.guide { max-width: 920px; }
.guide h2 { margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.guide h3 { margin: 16px 0 6px; }
.guide p, .guide li { line-height: 1.7; }
.guide .tip { background: var(--primary-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.guide .toc { display: flex; flex-wrap: wrap; gap: 6px; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(4px); } }
@keyframes slide { from { transform: translateX(-40px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive / mobile ---------- */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0 0 0 auto; width: 270px; z-index: 120; box-shadow: var(--shadow-lg); }
  .side-ov { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 110; }
  .topbar { padding: 0 10px; gap: 4px; padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); }
  .topbar .search-trigger { min-width: 0; width: 38px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .topbar .search-trigger span, .topbar .search-trigger kbd { display: none; }
  .topbar .hide-m { display: none; }
  .content { padding: 14px 12px calc(84px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line); z-index: 50; }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; position: relative; font-weight: 600; }
  .bottom-nav a.on { color: var(--primary); }
  .bottom-nav a .i { width: 22px; height: 22px; }
  .bottom-nav .dot-badge { top: 6px; left: calc(50% - 22px); }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi .v { font-size: 24px; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .drawer { width: 100vw; }
  .drawer-b { padding: 14px 14px 60px; }
  .t-props { grid-template-columns: 105px minmax(0, 1fr); }
  .page-head h1 { font-size: 20px; }
  .modal { max-height: calc(100dvh - 20px); }
  .overlay { padding: 10px; align-items: end; }
  .overlay .modal { border-radius: 18px 18px 12px 12px; }
  .bulk-bar { bottom: calc(72px + env(safe-area-inset-bottom)); width: calc(100vw - 20px); overflow-x: auto; }
  .hbar { grid-template-columns: 90px 1fr 40px; }
  .g-grid { grid-template-columns: 170px max-content; }
  .toasts { right: 10px; left: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
  .kcol { width: 82vw; }
}
@media print {
  .side, .topbar, .bottom-nav, .toolbar, .btn { display: none !important; }
  .shell { display: block; } .content { overflow: visible; padding: 0; }
}

/* ---------- extras ---------- */
.show-m { display: none !important; }
@media (max-width: 860px) { .show-m { display: inline-grid !important; } .hide-m { display: none !important; } }
.search .input { padding-right: 34px; }
.select { appearance: auto; }
.card-list { display: flex; flex-direction: column; }
.color-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.color-pick label { width: 26px; height: 26px; border-radius: 7px; background: var(--c); cursor: pointer; display: grid; place-items: center; color: #fff; border: 2px solid transparent; }
.color-pick input { display: none; }
.color-pick input:checked + span::after { content: "✓"; font-weight: 800; }
.color-pick label:has(input:checked) { border-color: var(--text); }
.check-list { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; }
.check-list .check { padding: 5px 6px; border-radius: 6px; }
.check-list .check:hover { background: var(--hover); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; font-size: 13.5px; }
.kv > span:nth-child(odd) { color: var(--muted); font-weight: 600; }
.pw-show { font-family: Consolas, monospace; font-size: 20px; letter-spacing: .06em; background: var(--panel-2); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; text-align: center; direction: ltr; user-select: all; }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; display: inline-block; border: 1px solid var(--line); }
.qr-box img { display: block; width: 180px; height: 180px; }
.link-box { display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; direction: ltr; font-family: Consolas, monospace; font-size: 13px; word-break: break-all; }
.report-frame { width: 100%; height: calc(100dvh - 260px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.drawer .tabs { position: sticky; top: -18px; background: var(--panel); z-index: 2; margin-top: 8px; }
.mention-list { max-height: 200px; }
.tbl .exp { width: 20px; height: 20px; border: 0; background: none; color: var(--faint); cursor: pointer; display: inline-grid; place-items: center; padding: 0; flex: none; }
.tbl .exp:hover { color: var(--text); }
.tbl .exp.open svg { transform: rotate(-90deg); }
.tbl .ph { width: 20px; flex: none; }
.tbl .row-act { opacity: 0; }
.tbl tr:hover .row-act { opacity: 1; }
.pill.ghost-pill { background: var(--panel-2); color: var(--muted); border: 1px dashed var(--line); }
.perm-note { font-size: 12.5px; color: var(--muted); background: var(--panel-2); border-radius: 8px; padding: 8px 12px; }
.install-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.big-num { font-size: 34px; font-weight: 800; line-height: 1; }
@media (max-width: 860px) { .kv { grid-template-columns: 110px minmax(0, 1fr); } .report-frame { height: 70dvh; } }.page { min-width: 0; }
.g-main { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; }
@media (max-width: 1100px) { .g-main { grid-template-columns: minmax(0, 1fr); } }
.tbl td.num, .tbl th.num { text-align: center; }
.cell-date.over { color: var(--danger); font-weight: 600; }
.wp .exp { display: inline-grid; place-items: center; vertical-align: middle; color: #6b5a1f; }
.wp .exp svg { transition: transform .15s; }
.wp .exp:not(.open) svg { transform: rotate(90deg); }
.wp tr.parent .icon-btn { margin: -4px 0; }

[hidden] { display: none !important; }
.toast.warn { background: #a65f00; }
.btn.loading { opacity: .65; pointer-events: none; cursor: progress; }
