/* DevWorks — development workspace UI. Restrained neutral palette, one accent,
   semantic colours for status, risk, priority and programme delay. */
:root {
  --bg: #f6f7f9; --panel: #ffffff; --panel2: #fafbfc; --line: #e6e8ec; --line2: #eef0f3;
  --ink: #14181f; --ink2: #3b4350; --mute: #6b7381; --mute2: #9aa1ad;
  --acc: #2f5bd3; --acc2: #e9effc; --acc-ink: #1e3f9e;
  --side: #101520; --side2: #1a2130; --side-ink: #c9cfda; --side-mute: #7c8597;
  --green: #12805c; --green-bg: #e5f5ee; --teal: #0e7c86; --teal-bg: #e2f4f5; --blue: #2f5bd3; --blue-bg: #e9effc;
  --violet: #6d4bd1; --violet-bg: #efeafc; --amber: #a86a00; --amber-bg: #fdf3dc; --orange: #c2540a; --orange-bg: #fdebdd;
  --red: #c53030; --red-bg: #fde8e8; --grey: #586172; --grey-bg: #eef0f3; --muted-c: #8c94a1; --muted-bg: #f3f4f6;
  --r: 8px; --r2: 6px; --sh: 0 1px 2px rgba(16, 24, 40, .05); --sh2: 0 10px 30px -8px rgba(16, 24, 40, .25);
  --f: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 13px/1.45 var(--f); -webkit-font-smoothing: antialiased; }
a { color: var(--acc); text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
code { font-family: var(--mono); font-size: 11px; background: var(--grey-bg); padding: 1px 4px; border-radius: 4px; }
.boot { padding: 40px; color: var(--mute); }
.ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.ic.sm { width: 14px; height: 14px; } .ic.xs { width: 12px; height: 12px; vertical-align: -2px; }
.muted { color: var(--mute); } .sm { font-size: 12px; } .xs { font-size: 11px; } .mono { font-family: var(--mono); font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; } .r { text-align: right; } .neg { color: var(--red); } .pos { color: var(--green); } .yes { color: var(--green); font-weight: 500; }
.pad { padding: 10px 2px; } .mt { margin-top: 10px; } .mb { margin-bottom: 12px; }
.row { display: flex; align-items: center; } .gap { gap: 8px; } .grow-1 { flex: 1; }
.w30 { width: 30px; } .w40 { width: 40px; } .w50 { width: 50px; } .w55 { width: 55px; } .w60 { width: 60px; } .w70 { width: 70px; } .w80 { width: 80px; } .w90 { width: 90px; } .w100 { width: 100px; } .w110 { width: 110px; } .w120 { width: 120px; } .w130 { width: 130px; } .w140 { width: 140px; } .w150 { width: 150px; } .w160 { width: 160px; } .w170 { width: 170px; } .w200 { width: 200px; } .w240 { width: 240px; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; overflow: hidden; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; overflow-y: auto; position: relative; }
.brand { display: flex; gap: 10px; align-items: center; padding: 16px 16px 12px; }
.logo { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #4c74e8, #2a49b0); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 12px; letter-spacing: .02em; }
.b1 { color: #fff; font-weight: 600; } .b2 { color: var(--side-mute); font-size: 11px; }
.projsw { margin: 4px 10px 10px; padding: 10px 30px 10px 12px; border-radius: var(--r); background: var(--side2); border: 1px solid #263044; text-align: left; cursor: pointer; position: relative; }
.projsw .ic { position: absolute; right: 10px; top: 18px; color: var(--side-mute); }
.projsw:hover { border-color: #34405a; }
.pcode { font-family: var(--mono); font-size: 10.5px; color: var(--side-mute); } .pcode .demo { color: #b6a4f5; font-family: var(--f); }
.pname { color: #fff; font-weight: 500; margin-top: 2px; line-height: 1.3; }
nav { padding: 4px 8px; flex: 1; }
.nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--side-ink); font-size: 13px; margin: 1px 0; }
.nav:hover { background: var(--side2); color: #fff; }
.nav.on { background: #243150; color: #fff; }
.nav .ic { color: var(--side-mute); } .nav.on .ic { color: #8fb0ff; }
.nav span:nth-child(2) { flex: 1; }
.nbadge { font-size: 10.5px; padding: 1px 6px; border-radius: 9px; background: #2a3449; color: var(--side-ink); font-variant-numeric: tabular-nums; }
.nbadge.red { background: #5b2020; color: #ffb4b4; }
.side-f { padding: 12px 14px; border-top: 1px solid #1f2738; }
.storage { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--side-mute); }
.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.content { flex: 1; overflow: auto; padding: 18px 24px 40px; }

.top { display: flex; align-items: flex-start; gap: 16px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.ident { flex: 1; min-width: 0; }
.ident-1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ident-1 h1 { font-size: 17px; }
.ident-2 { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; color: var(--mute); font-size: 12px; align-items: center; }
.ident-2 > span { display: inline-flex; align-items: center; gap: 4px; } .ident-2 b { color: var(--ink2); font-weight: 500; }
.top-r { display: flex; align-items: center; gap: 8px; position: relative; }
.search { position: relative; display: flex; align-items: center; }
.search > .ic { position: absolute; left: 9px; color: var(--mute2); }
.search input { width: 260px; padding: 7px 10px 7px 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel2); font: inherit; }
.search input:focus { outline: none; border-color: var(--acc); background: #fff; box-shadow: 0 0 0 3px var(--acc2); }
.sres { position: absolute; top: 38px; right: 0; width: 480px; max-height: 60vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh2); padding: 4px; z-index: 50; }
.sr { display: flex; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; align-items: baseline; }
.sr:hover { background: var(--acc2); } .sr-l { flex: 1; min-width: 0; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 7px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink2); position: relative; flex: none; }
.icon-btn:hover { background: var(--grey-bg); } .icon-btn.sm { width: 24px; height: 24px; } .icon-btn:disabled { opacity: .35; cursor: default; }
.bell .nb { position: absolute; top: 2px; right: 0; background: var(--red); color: #fff; font-size: 9.5px; border-radius: 8px; padding: 0 4px; font-weight: 600; }
.userbtn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px 8px 4px 4px; cursor: pointer; }
.userbtn:hover { border-color: #cfd4dc; }
.un { display: flex; flex-direction: column; line-height: 1.2; text-align: left; } .un b { font-weight: 500; font-size: 12px; } .un span { font-size: 10.5px; color: var(--mute); }
.mob { display: none; }
.menu { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh2); z-index: 60; padding: 6px; color: var(--ink); }
.menu-h { padding: 6px 8px 8px; font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-h .btn { margin-left: auto; }
.menu-i { display: block; width: 100%; text-align: left; padding: 8px; border-radius: 6px; border: 0; background: none; cursor: pointer; font-size: 12.5px; }
.menu-i:hover { background: var(--acc2); } .menu-i.on { background: var(--grey-bg); } .menu-i:disabled { opacity: .45; cursor: default; }
.menu-i.accent { color: var(--acc); font-weight: 500; }
.menu-note { font-size: 11px; color: var(--mute); padding: 8px; border-top: 1px solid var(--line2); margin-top: 4px; }
.usermenu { top: 44px; right: 0; width: 330px; } .notif { top: 44px; right: 120px; width: 420px; }
.projmenu { left: 10px; right: 10px; top: 116px; }
.notif-list { max-height: 50vh; overflow: auto; }
.ni { padding: 8px; border-radius: 6px; cursor: pointer; border-left: 3px solid transparent; }
.ni:hover { background: var(--panel2); } .ni.unread { border-left-color: var(--acc); background: #f7f9ff; }
.ni-t { font-size: 12.5px; }

/* ---------- Common blocks ---------- */
.vh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.vh h2 { font-size: 19px; } .vh .muted { margin-top: 2px; }
.vh-t { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 14px; }
.card-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line2); min-height: 42px; }
.card-h h3 { font-size: 13px; } .card-b { padding: 12px 14px; overflow-x: auto; } .card-t { display: flex; gap: 6px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .cols2 > .card { margin-bottom: 0; } .cols2 { margin-bottom: 14px; }
.eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); font-weight: 600; }
.empty { color: var(--mute); padding: 18px; text-align: center; font-size: 12.5px; }
.callout { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 12px; font-size: 12.5px; color: var(--ink2); }
.callout.bad { background: var(--red-bg); border-color: #f5c6c6; color: #7a1f1f; } .callout.good { background: var(--green-bg); border-color: #bfe6d4; color: #0d5c42; }
.callout.sm { font-size: 12px; }
.desc { color: var(--ink2); font-size: 12.5px; margin: 10px 0 0; }
.dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: 12.5px; } .dl dt { color: var(--mute); } .dl dd { margin: 0; }
.err { white-space: pre-wrap; font-size: 11px; color: var(--red); }
.sub-h { font-size: 12px; margin: 16px 0 8px; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.rules { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink2); } .rules li { margin: 4px 0; }

/* ---------- Buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: 12.5px; white-space: nowrap; color: var(--ink2); }
.btn:hover { border-color: #cdd2da; background: var(--panel2); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; } .btn.primary:hover { background: var(--acc-ink); }
.btn.danger { color: var(--red); border-color: #f1c4c4; } .btn.danger:hover { background: var(--red-bg); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--acc); } .btn.ghost:hover { background: var(--acc2); }
.btn.sm { padding: 4px 9px; font-size: 12px; } .btn:disabled { opacity: .5; cursor: default; }
.in { font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.in:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc2); }
.in:disabled { background: var(--panel2); color: var(--ink2); }
.in.ro { background: var(--panel2); color: var(--ink2); min-height: 31px; }
textarea.in { resize: vertical; line-height: 1.45; }
select.in { padding-right: 22px; }
.in-mini { width: auto; padding: 3px 6px; font-size: 12px; }
.title-in { font-size: 16px; font-weight: 600; border-color: transparent; padding: 4px 6px; margin-left: -6px; }
.title-in:hover { border-color: var(--line); }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld-l { font-size: 11px; color: var(--mute); font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.switch { position: relative; display: inline-block; width: 32px; height: 18px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #cfd4dc; border-radius: 10px; transition: .15s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--acc); } .switch input:checked + i::after { transform: translateX(14px); }
.switch input:disabled + i { opacity: .5; cursor: default; }
.switch-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.switch-l.prefs { padding: 6px 0; border-bottom: 1px solid var(--line2); }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.chk.blk { display: flex; padding: 4px 0; white-space: normal; }
.cb { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 500; white-space: nowrap; line-height: 18px; }
.badge.xs { font-size: 10px; padding: 0 5px; line-height: 15px; }
.c-grey { background: var(--grey-bg); color: var(--grey); } .c-blue { background: var(--blue-bg); color: var(--blue); } .c-violet { background: var(--violet-bg); color: var(--violet); }
.c-teal { background: var(--teal-bg); color: var(--teal); } .c-green { background: var(--green-bg); color: var(--green); } .c-amber { background: var(--amber-bg); color: var(--amber); }
.c-orange { background: var(--orange-bg); color: var(--orange); } .c-red { background: var(--red-bg); color: var(--red); } .c-muted { background: var(--muted-bg); color: var(--muted-c); }
.ic.c-grey, .ic.c-blue, .ic.c-violet, .ic.c-teal, .ic.c-green, .ic.c-amber, .ic.c-orange, .ic.c-red, .ic.c-muted { background: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 4px; }
.dot.c-red { background: var(--red); } .dot.c-amber { background: #e5a000; } .dot.c-blue { background: var(--blue); } .dot.c-green { background: var(--green); } .dot.c-grey { background: var(--mute2); } .dot.c-violet { background: var(--violet); } .dot.c-teal { background: var(--teal); } .dot.c-orange { background: var(--orange); } .dot.c-muted { background: #c6cbd3; }
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; background: none !important; }
.prio i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.av { width: 26px; height: 26px; border-radius: 50%; background: #dfe6f7; color: #2a48a6; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; flex: none; border: 1.5px solid #fff; }
.av.av-ext { background: #efe7fb; color: #6d4bd1; } .av.av-empty { background: var(--grey-bg); color: var(--mute2); }
.av.sm { width: 22px; height: 22px; font-size: 9.5px; } .av.xs { width: 19px; height: 19px; font-size: 8.5px; margin-right: -4px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pchip .av.xs { margin-right: 0; }
.multi { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mchip { display: inline-flex; align-items: center; gap: 5px; background: var(--grey-bg); border-radius: 12px; padding: 2px 4px 2px 2px; font-size: 11.5px; }
.mchip .av.xs { margin: 0; }
.mchip button { border: 0; background: none; cursor: pointer; color: var(--mute); padding: 0 3px; font-size: 13px; line-height: 1; }
.multi .in-mini { max-width: 110px; }
.date { white-space: nowrap; font-variant-numeric: tabular-nums; } .date.neg { color: var(--red); font-weight: 500; } .date.soon { color: var(--amber); font-weight: 500; }
.bar { height: 6px; background: var(--line2); border-radius: 4px; overflow: hidden; flex: 1; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--acc); border-radius: 4px; }
.bar i.c-green { background: #1f9e6e; } .bar i.c-amber { background: #e5a000; } .bar i.c-red { background: #d64545; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }
.flag-c { font-style: normal; font-size: 9px; font-weight: 700; color: #fff; background: var(--red); border-radius: 3px; padding: 0 3px; margin-left: 6px; vertical-align: 1px; }
.flag-a { color: var(--amber); margin-left: 5px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--mute); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 12.5px; }
.tab:hover { color: var(--ink); } .tab.on { color: var(--ink); border-bottom-color: var(--acc); }
.tab-n { margin-left: 6px; font-size: 10.5px; background: var(--grey-bg); color: var(--mute); padding: 0 6px; border-radius: 8px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.stab { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--ink2); }
.stab span { color: var(--mute); font-size: 11px; margin-left: 2px; } .stab.on { background: var(--ink); color: #fff; border-color: var(--ink); } .stab.on span { color: #c5cad3; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpis.sm { grid-template-columns: repeat(4, 1fr); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--sh); position: relative; }
.kpi.click { cursor: pointer; } .kpi.click:hover { border-color: #cdd3dc; }
.kpi-l { font-size: 11px; color: var(--mute); font-weight: 500; } .kpi-v { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; } .kpi-s { font-size: 11px; color: var(--mute); margin-top: 1px; }
.kpi.t-red { border-left: 3px solid var(--red); } .kpi.t-red .kpi-v { color: var(--red); }
.kpi.t-amber { border-left: 3px solid #e5a000; } .kpi.t-orange { border-left: 3px solid var(--orange); } .kpi.t-green { border-left: 3px solid var(--green); } .kpi.t-violet { border-left: 3px solid var(--violet); }

/* ---------- Tables ---------- */
.tscroll { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid th { text-align: left; font-weight: 500; color: var(--mute); font-size: 11.5px; padding: 7px 8px; background: var(--panel2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.grid th.sortable { cursor: pointer; user-select: none; } .grid th.sortable:hover { color: var(--ink); } .grid th.sorted { color: var(--acc); }
.grid td { padding: 6px 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid.compact td { padding: 5px 8px; }
.card .grid, .card .tscroll { border: 0; }
.trow { cursor: pointer; } .trow:hover td, tr.click:hover td { background: #f8faff; } tr.click { cursor: pointer; }
.trow.done .tname span:first-child { color: var(--mute); text-decoration: line-through; text-decoration-color: #b8bec8; }
.trow.excl td { opacity: .5; }
/* red is reserved for records that need attention (.flagged) */
tr.sel td { background: var(--acc2); }
.tname { font-weight: 500; min-width: 220px; }
.grow td { background: var(--panel2); font-weight: 600; font-size: 12px; cursor: pointer; padding: 6px 8px; }
.grow td .ic { color: var(--mute); }
tr.totals td { background: var(--panel2); border-top: 1px solid var(--line); }
.clip { display: block; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid select.in-mini { border-color: transparent; background: transparent; font-weight: 500; }
.grid select.in-mini:hover { border-color: var(--line); background: #fff; }
.st-red { color: var(--red); } .st-green { color: var(--green); } .st-blue { color: var(--blue); } .st-violet { color: var(--violet); } .st-amber { color: var(--amber); } .st-orange { color: var(--orange); } .st-teal { color: var(--teal); } .st-grey { color: var(--grey); } .st-muted { color: var(--muted-c); }
.tfoot { padding: 6px 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.filters .in { width: auto; max-width: 210px; }
.fsearch { position: relative; display: flex; align-items: center; }
.fsearch .ic { position: absolute; left: 8px; color: var(--mute2); } .fsearch .in { padding-left: 26px; width: 220px; max-width: none; }
.quickadd { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: #fff; color: var(--mute); }
.quickadd .in { border: 0; padding: 4px; box-shadow: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.chip .dot { margin: 0; } .chip b { font-weight: 600; } .chip.on { border-color: var(--acc); background: var(--acc2); }
.reg-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.reg-h h3 { font-size: 14px; } .reg-h.right { justify-content: flex-end; }
.register { margin-bottom: 16px; }

/* ---------- Overview ---------- */
.ov-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.ov-ready { display: flex; gap: 18px; padding: 16px; align-items: center; }
.ready-state { font-size: 16px; font-weight: 600; margin: 3px 0 4px; letter-spacing: -.01em; }
.blockers { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.blk-i { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 12px; padding: 2px 0; }
.blk-i span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .blk-i .ic { color: var(--red); } .blk-i:hover span { color: var(--acc); }
.ring-bg { fill: none; stroke: var(--line2); stroke-width: 10; } .ring-fg { fill: none; stroke: var(--acc); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .4s; }
.rc-green { stroke: #1f9e6e; } .rc-amber { stroke: #e5a000; } .rc-red { stroke: #d64545; }
.ring-v { font-size: 26px; font-weight: 600; fill: var(--ink); letter-spacing: -.03em; } .ring-l { font-size: 11px; fill: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.ov-dates { padding: 16px; }
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.dgrid > div { display: flex; flex-direction: column; } .dgrid b { font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.var { padding: 7px 10px; border-radius: 6px; font-size: 12px; } .var.bad { background: var(--red-bg); color: #7a1f1f; } .var.good { background: var(--green-bg); color: #0d5c42; }
.ov-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; }
.alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.ag { margin-bottom: 8px; } .ag-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; margin: 4px 0 4px; }
.al { display: flex; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; } .al:hover { background: var(--panel2); }
.al-t { font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.mslist { display: flex; flex-direction: column; }
.msi { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line2); cursor: pointer; } .msi:last-child { border: 0; } .msi:hover { background: var(--panel2); }
.msi-n { flex: 1; font-weight: 500; } .msi-d { font-variant-numeric: tabular-nums; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line2); font-size: 12.5px; }
.lrow:last-child { border-bottom: 0; } .lrow.click { cursor: pointer; } .lrow.click:hover { background: var(--panel2); }
.lrow > span:first-child { min-width: 0; } .lrow-r { display: flex; align-items: center; gap: 6px; flex: none; }
.fund-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; } .fund-mini > div { display: flex; flex-direction: column; } .fund-mini b { font-size: 15px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: -12px 0 40px -12px rgba(16, 24, 40, .22); z-index: 40; display: flex; flex-direction: column; }
.drawer.enter { animation: slide .16s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.dr-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0 18px; }
.dr-k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); font-weight: 600; }
.dr-tools { display: flex; gap: 2px; }
.dr-title { padding: 4px 18px 0; } .dr-title h2 { font-size: 16px; }
.dr-sub { padding: 4px 18px 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.drawer .tabs { padding: 0 12px; margin-bottom: 0; }
.dr-b { flex: 1; overflow: auto; padding: 14px 18px 30px; }
.fcast { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 11px; margin-bottom: 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.fcast.bad { background: #fff7ed; border-color: #fbd5b5; }
.appr { margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 10px; }
.meta { margin-top: 16px; font-size: 11px; color: var(--mute2); }
.rlink { color: var(--acc); cursor: pointer; } .rlink:hover { text-decoration: underline; }
.links .lgroup { margin-bottom: 12px; } .lg-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); font-weight: 600; margin-bottom: 2px; }
.lrow .rlink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comments .cmt { padding: 8px 0; border-bottom: 1px solid var(--line2); } .cmt-h { display: flex; gap: 8px; align-items: baseline; } .cmt-b { margin-top: 2px; }
.cmt-new { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; align-items: flex-end; }
.acts .act, .act { display: grid; grid-template-columns: 120px 110px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line2); font-size: 12px; }
.act-t { color: var(--mute2); font-size: 11px; } .act-u { color: var(--ink2); font-weight: 500; } .old { color: var(--mute); text-decoration: line-through; } .reason { color: var(--violet); }
.deprow { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.dep-n { flex: 1; min-width: 0; }
.depadd { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.callout .muted.sm { margin-top: 4px; }
.cp-steps { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.cp-steps span { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--mute); }
.cp-steps span.on { background: var(--green-bg); color: var(--green); border-color: #bfe6d4; }
.rd-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.blk { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.vers .ver { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.vn { font-family: var(--mono); font-size: 11px; background: var(--grey-bg); border-radius: 4px; padding: 2px 6px; } .vmeta { flex: 1; min-width: 0; }
.upload { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; padding: 7px 12px; border: 1px dashed #c3c9d3; border-radius: 7px; cursor: pointer; color: var(--acc); font-weight: 500; }
.upload input { display: none; }
.ms-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.ms-dates > div { display: flex; flex-direction: column; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 8px; } .ms-dates b { margin-top: 2px; }
.mact { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line2); } .mact-t { flex: 1; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 20, 30, .42); z-index: 80; display: grid; place-items: center; padding: 20px; }
.overlay.enter { animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 10px; width: min(520px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--sh2); }
.modal.wide { width: min(780px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line2); } .modal-h h3 { font-size: 14px; }
.modal-b { padding: 14px 16px; overflow: auto; } .modal-b p { margin: 0 0 10px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line2); }
.pick-list { margin-top: 10px; max-height: 50vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); }
.pick { display: flex; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line2); cursor: pointer; align-items: baseline; } .pick:hover { background: var(--acc2); }
.pick-t { font-size: 10.5px; color: var(--mute); background: var(--grey-bg); border-radius: 4px; padding: 1px 6px; flex: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-h { font-size: 14px; margin-bottom: 10px; }
.dc-g { display: flex; gap: 16px; align-items: center; background: var(--panel2); border: 1px solid var(--line); padding: 10px; border-radius: var(--r); flex-wrap: wrap; } .dc-g .arrow { font-size: 18px; color: var(--mute); }
.imp { font-size: 12px; padding: 4px 8px; border-radius: 5px; margin: 2px 0; } .imp.bad { background: #fff4ec; } .imp.good { background: var(--green-bg); }
.imp-list { max-height: 220px; overflow: auto; margin-bottom: 6px; }
.imp-ms .imp { font-size: 12.5px; }
.dc .fld { margin-top: 12px; }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast { background: #151b27; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 12.5px; box-shadow: var(--sh2); transition: opacity .3s, transform .3s; }
.toast.error { background: #9b1c1c; } .toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- Board ---------- */
.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.bcol { flex: 0 0 260px; background: #eef0f4; border-radius: var(--r); padding: 8px; min-height: 120px; }
.bcol.over { background: var(--acc2); outline: 2px dashed var(--acc); }
.bcol-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; }
.bcol-b { display: flex; flex-direction: column; gap: 6px; max-height: 68vh; overflow: auto; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; cursor: grab; box-shadow: var(--sh); }
.bcard.crit { border-left: 3px solid var(--red); } .bcard.dragging { opacity: .4; }
.bc-t { font-weight: 500; font-size: 12.5px; line-height: 1.35; } .bc-m { display: flex; align-items: center; gap: 6px; margin-top: 6px; } .bc-m .av.xs { margin: 0; }
.bc-w { font-size: 11px; color: var(--orange); margin-top: 4px; }
.cols2 .card-b .lrow { font-size: 12.5px; }

/* ---------- Gantt ---------- */
.gtools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.gtools .in { width: auto; max-width: 230px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 5px 10px; cursor: pointer; font-size: 12px; color: var(--ink2); border-right: 1px solid var(--line); } .seg button:last-child { border: 0; } .seg button.on { background: var(--ink); color: #fff; }
.glegend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--ink2); margin-bottom: 8px; align-items: center; }
.glegend > span { display: inline-flex; align-items: center; gap: 5px; }
.lg-bar { display: inline-block; width: 22px; height: 9px; border-radius: 3px; background: #6f8fe6; } .lg-bar.crit { background: #d64545; } .lg-bar.late { background: #e58a00; } .lg-bar.done { background: #1f9e6e; }
.lg-fc { display: inline-block; width: 22px; height: 9px; border-radius: 3px; border: 1.5px dashed #e58a00; } .lg-base { display: inline-block; width: 22px; height: 3px; background: #9aa1ad; }
.gantt { display: grid; grid-template-columns: 330px 1fr; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.g-left { border-right: 1px solid var(--line); background: #fff; }
.g-left-h { height: 46px; border-bottom: 1px solid var(--line); padding: 0 10px; display: flex; align-items: flex-end; padding-bottom: 6px; font-size: 11.5px; color: var(--mute); font-weight: 500; background: var(--panel2); }
.g-left-b { overflow: hidden; }
.gl { position: absolute; left: 0; right: 0; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 22px; border-bottom: 1px solid var(--line2); font-size: 12px; cursor: pointer; white-space: nowrap; }
.gl:hover { background: #f8faff; } .gl-n { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.gl.crit .gl-n { color: var(--red); font-weight: 500; } .gl.done .gl-n { color: var(--mute); }
.gl-ws { padding-left: 6px; background: var(--panel2); font-size: 12px; }
.gl .av.xs { margin: 0; }
.g-right { overflow: auto; position: relative; }
.g-scale { height: 46px; position: sticky; top: 0; background: var(--panel2); border-bottom: 1px solid var(--line); z-index: 3; }
.gs-m { position: absolute; top: 0; height: 28px; border-left: 1px solid var(--line); font-size: 11px; color: var(--ink2); padding: 6px 5px; overflow: hidden; white-space: nowrap; }
.gs-m.yr { border-left-color: #b7bdc7; font-weight: 600; }
.gs-w { position: absolute; top: 28px; font-size: 9.5px; color: var(--mute2); transform: translateX(-50%); }
.g-body { position: relative; }
.gvl { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line2); } .gvl.yr { border-left-color: #d6dae0; }
.gtoday { position: absolute; top: 0; bottom: 0; border-left: 2px solid #e5484d; z-index: 2; pointer-events: none; }
.gtoday span { position: absolute; top: 2px; left: 3px; font-size: 9.5px; color: #e5484d; font-weight: 600; background: rgba(255,255,255,.85); padding: 0 2px; }
.g-svg { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }
.garr { fill: none; stroke: #a7b0bf; stroke-width: 1.1; } .garr.crit { stroke: #d64545; stroke-width: 1.4; }
.ah { fill: #a7b0bf; } .ahc { fill: #d64545; }
.gbar { position: absolute; height: 16px; border-radius: 4px; background: #6f8fe6; z-index: 2; overflow: hidden; display: flex; align-items: center; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.gbar.crit { background: #d64545; } .gbar.late { background: #e58a00; } .gbar.done { background: #1f9e6e; }
.gbar.drag { cursor: grab; } .gbar.drag:active { cursor: grabbing; }
.gbar[data-shift]::after { content: attr(data-shift); position: absolute; right: 4px; font-size: 10px; color: #fff; font-weight: 700; }
.gprog { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,255,255,.28); }
.gh-r { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; cursor: ew-resize; background: rgba(0,0,0,.12); }
.gbl { position: relative; color: #fff; font-size: 10.5px; padding: 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; pointer-events: none; }
.gbl-out { position: absolute; font-size: 10.5px; color: var(--ink2); white-space: nowrap; z-index: 2; pointer-events: none; }
.gfc { position: absolute; height: 16px; border-radius: 4px; border: 1.5px dashed #e58a00; background: repeating-linear-gradient(45deg, rgba(229,138,0,.08), rgba(229,138,0,.08) 4px, transparent 4px, transparent 8px); z-index: 1; }
.gbase { position: absolute; height: 3px; background: #9aa1ad; border-radius: 2px; z-index: 1; opacity: .8; }
.gbar-sum { position: absolute; height: 5px; border-radius: 2px; opacity: .45; z-index: 1; }
.gms { position: absolute; width: 12px; height: 12px; transform: rotate(45deg); z-index: 3; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.gms.c-green { background: #1f9e6e; } .gms.c-teal { background: var(--teal); } .gms.c-amber { background: #e5a000; } .gms.c-red { background: #d64545; }
.gms.ghost { background: transparent; border: 2px solid #8e96a3; box-shadow: none; cursor: default; }

/* ---------- Modules ---------- */
.xc { display: flex; align-items: center; gap: 10px; }
.xc-i { flex: 1; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: var(--panel2); } .xc-i b { font-size: 15px; display: block; margin: 2px 0; }
.xc-i.ok { background: var(--green-bg); border-color: #bfe6d4; } .xc-arrow { text-align: center; color: var(--mute); }
.stack { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--line2); }
.stk { height: 100%; border-right: 2px solid #fff; } .stk.gap { background: repeating-linear-gradient(45deg, #f5c6c6, #f5c6c6 5px, #fde8e8 5px, #fde8e8 10px); }
.close { padding: 4px 0 6px; } .close b { display: block; font-size: 14px; margin: 3px 0 8px; } .close.ok b { color: var(--green); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stg { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: #fff; border-top: 3px solid var(--line); }
.stg.done { border-top-color: #1f9e6e; } .stg.active { border-top-color: var(--acc); } .stg.todo { border-top-color: #cfd4dc; }
.stg-n { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.rd-hero { display: grid; grid-template-columns: auto 1fr 200px; gap: 20px; padding: 16px; align-items: center; }
.rd-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 10px; }
.rd-cat { display: grid; grid-template-columns: 140px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; }
.rd-legend { display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line2); padding-left: 16px; }
.blk-card { padding: 10px 14px; margin-bottom: 8px; } .blk-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.blk-sub { font-size: 12px; padding: 3px 0 3px 14px; }
.matrix { display: inline-flex; flex-direction: column; gap: 3px; position: relative; padding-left: 20px; }
.mx-row { display: flex; gap: 3px; } .mx-l { width: 18px; font-size: 11px; color: var(--mute); display: grid; place-items: center; }
.mx-c { width: 72px; height: 50px; border-radius: 5px; display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; align-content: flex-start; }
.mx-r { font-size: 10px; background: #fff; color: var(--ink); padding: 0 4px; border-radius: 3px; font-weight: 600; box-shadow: var(--sh); }
.mx-x { width: 72px; text-align: center; font-size: 11px; color: var(--mute); } .mx-xl { text-align: center; font-size: 11px; color: var(--mute); margin-left: 21px; }
.mx-y { position: absolute; left: -32px; top: 120px; transform: rotate(-90deg); font-size: 11px; color: var(--mute); }
.docs-l { display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.dtree { display: flex; flex-direction: column; gap: 1px; }
.dt { display: flex; justify-content: space-between; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 12.5px; color: var(--ink2); }
.dt span { color: var(--mute2); font-size: 11px; } .dt:hover { background: #fff; } .dt.on { background: #fff; color: var(--acc); font-weight: 500; box-shadow: var(--sh); }
.dropzone { border: 1.5px dashed #c3c9d3; border-radius: var(--r); padding: 12px; text-align: center; color: var(--mute); margin-bottom: 12px; background: #fff; }
.dropzone.over { border-color: var(--acc); background: var(--acc2); }
.ttable { margin-bottom: 10px; }

/* ---------- Reports ---------- */
.rep-l { display: grid; grid-template-columns: 260px 1fr; gap: 16px; }
.rep-list { display: flex; flex-direction: column; gap: 4px; }
.rep-i { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.rep-i:hover { border-color: #cdd3dc; } .rep-i.on { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc2); }
.rep-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 30px; }
.report h1 { font-size: 20px; margin: 4px 0; } .report h2 { font-size: 13.5px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.rp-h { margin-bottom: 14px; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.rp-kpis > div { border: 1px solid var(--line); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; } .rp-kpis span { font-size: 11px; color: var(--mute); } .rp-kpis b { font-size: 14px; }
table.rt { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.rt th { text-align: left; background: var(--panel2); padding: 5px 6px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink2); }
.rt td { padding: 4px 6px; border-bottom: 1px solid var(--line2); vertical-align: top; }

@media print {
  body.printing .side, body.printing .top, body.printing .no-print, body.printing .drawer, body.printing #toasts { display: none !important; }
  body.printing .app { display: block; height: auto; overflow: visible; }
  body.printing .main, body.printing .content { overflow: visible; padding: 0; }
  body.printing .rep-l { display: block; }
  body.printing .report { border: 0; padding: 0; }
  body.printing .rt tr { page-break-inside: avoid; }
  html, body { background: #fff; height: auto; }
}

/* ---------- Responsive ---------- */
.ov-hero > *, .ov-grid > *, .cols2 > *, .docs-l > *, .rep-l > *, .ready-txt, .rd-h-t { min-width: 0; }
.ready-txt { flex: 1; }
@media (max-width: 1280px) {
  .ov-grid { grid-template-columns: 1fr; }
  .alerts { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
  .app.nav-open .side { transform: none; box-shadow: var(--sh2); }
  .mob { display: inline-grid; }
  .ov-hero, .cols2 { grid-template-columns: 1fr; }
  .search input { width: 180px; }
  .un { display: none; }
  .rd-hero { grid-template-columns: auto 1fr; } .rd-legend { display: none; }
  .gantt { grid-template-columns: 220px 1fr; }
  .rep-l, .docs-l { grid-template-columns: 1fr; }
  .rep-list { flex-direction: row; overflow-x: auto; } .rep-i { min-width: 200px; }
  .dtree { flex-direction: row; overflow-x: auto; } .dt { white-space: nowrap; gap: 6px; }
}
@media (max-width: 680px) {
  .content { padding: 12px 12px 40px; }
  .top { padding: 10px 12px; flex-wrap: wrap; }
  .top-r { width: 100%; } .search { flex: 1; } .search input { width: 100%; }
  .ident-2 { display: none; }
  .ov-ready { flex-direction: column; align-items: stretch; }
  .ov-hero, .ov-grid, .cols2 { grid-template-columns: minmax(0, 1fr); }
  .ready-ring { align-self: center; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; } .span2, .span3 { grid-column: auto; }
  .dgrid, .ms-dates { grid-template-columns: 1fr 1fr; }
  .gantt { grid-template-columns: 140px 1fr; }
  .stages { grid-template-columns: 1fr 1fr; }
  .notif { right: 0; width: calc(100vw - 24px); } .sres { width: calc(100vw - 24px); }
  .rd-hero { grid-template-columns: 1fr; } .rd-cats { grid-template-columns: 1fr; }
  .acts .act, .act { grid-template-columns: 1fr; gap: 0; }
  .rp-kpis { grid-template-columns: 1fr 1fr; }
}

/* ---------- Director view (briefing, areas, items, approvals, email) ---------- */
.nav-h { display: flex; align-items: center; gap: 6px; padding: 14px 10px 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--side-mute); background: none; border: 0; width: 100%; text-align: left; }
.nav-h.toggle { cursor: pointer; } .nav-h.toggle:hover { color: #fff; }
.nav.sub { padding: 6px 10px; font-size: 12.5px; }
.hdot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin: 0 4px 0 4px; }
.hdot.c-red { background: #ef5b5b; } .hdot.c-amber { background: #f0b429; } .hdot.c-green { background: #34c38f; }
.nbadge.blue { background: #2f5bd3; color: #fff; }
.b-wrap { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.b-wrap > * { min-width: 0; }
.b-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b-head h1 { font-size: 21px; } .b-sub { color: var(--mute); font-size: 12.5px; margin-top: 2px; max-width: 760px; }
.b-crumb { font-size: 12.5px; color: var(--mute); margin-bottom: -6px; } .b-crumb a { display: inline-flex; align-items: center; gap: 3px; }
.b-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.b-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--sh); min-width: 0; }
.b-card.accent { border-color: #c9d6f7; box-shadow: 0 0 0 3px #f1f5fe; }
.b-card-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.b-card-h h3 { font-size: 14px; } .b-card-h .btn { margin-left: auto; }
.b-meta { font-size: 11.5px; color: var(--mute); }
.b-edited { font-size: 11px; color: var(--violet); background: var(--violet-bg); border-radius: 8px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.b-edit { border: 0; background: none; color: var(--mute2); cursor: pointer; padding: 0 3px; margin-left: 4px; vertical-align: 1px; opacity: .55; }
.b-edit:hover { color: var(--acc); opacity: 1; }
li:hover > div > .b-edit, .b-up:hover .b-edit, .b-sum:hover .b-edit, .b-hist:hover .b-edit { opacity: 1; }
.b-link { color: var(--acc); }
.b-brief .b-card-h { margin-bottom: 4px; }
.b-seg { display: inline-flex; background: var(--grey-bg); border-radius: 8px; padding: 2px; margin-left: auto; }
.b-seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; font-size: 12px; color: var(--mute); cursor: pointer; }
.b-seg button.on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.b-sum { font-size: 15.5px; line-height: 1.6; color: var(--ink); margin: 6px 0 10px; max-width: 900px; }
.b-ups { border-top: 1px solid var(--line2); }
.b-up { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.b-up-t { font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.b-up-s { font-size: 11.5px; color: var(--mute); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
.b-src-i { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); } a.b-src-i:hover { color: var(--acc); }
.b-imp { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.b-tag { display: inline-block; font-size: 10.5px; font-weight: 500; padding: 0 7px; border-radius: 6px; background: var(--grey-bg); color: var(--ink2); margin-right: 7px; vertical-align: 1px; line-height: 17px; }
.b-needs { margin-top: 12px; background: var(--acc2); border-radius: 10px; padding: 10px 14px; color: var(--acc-ink); }
.b-needs.ok { background: var(--green-bg); color: var(--green); display: flex; gap: 6px; align-items: center; }
.b-needs-h { font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.b-needs ul { margin: 0; padding-left: 20px; line-height: 1.7; } .b-needs a { color: var(--acc-ink); text-decoration: underline; text-decoration-color: #9bb2ee; }
.b-due { font-size: 11px; color: var(--mute); } .b-due.soon { color: var(--red); font-weight: 500; }
.b-brief-f { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; } .b-brief-f .b-meta { margin-right: auto; }
.b-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.b-fig { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; color: var(--ink); display: flex; flex-direction: column; gap: 1px; }
.b-fig:hover { border-color: #c4cbd6; } .b-fig span { font-size: 12px; color: var(--mute); } .b-fig b { font-size: 20px; font-weight: 600; } .b-fig b.neg { color: var(--red); } .b-fig small { font-size: 11.5px; color: var(--mute); }
.b-sec-h { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; } .b-sec-h h2 { font-size: 15px; }
.b-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.b-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); display: block; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.b-tile:hover { border-color: #b9c3d3; box-shadow: var(--sh2); }
.b-tile.h-blocked { border-color: #f1b8b8; } .b-tile.h-watch { border-color: #f3dca4; }
.b-tile-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .b-tile-h b { font-size: 14px; font-weight: 600; }
.b-tile-r { display: grid; grid-template-columns: 40px minmax(0, 1fr); font-size: 12.5px; line-height: 1.45; margin-top: 5px; }
.b-tile-r span { color: var(--mute); } .b-tile-r div { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.b-steps { display: flex; gap: 3px; } .b-steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--grey-bg); }
.b-steps i.s-d, .b-st.s-d i { background: #1f9e6e; } .b-steps i.s-n, .b-st.s-n i { background: var(--acc); } .b-steps i.s-r, .b-st.s-r i { background: #d64545; } .b-steps i.s-a, .b-st.s-a i { background: #e5a000; }
.b-stepsL { display: flex; gap: 6px; }
.b-st { flex: 1; min-width: 0; font-size: 12px; } .b-st i { display: block; height: 7px; border-radius: 4px; background: var(--grey-bg); margin-bottom: 6px; }
.b-st span { display: block; font-weight: 500; color: var(--ink2); line-height: 1.3; } .b-st small { color: var(--mute); font-size: 11px; }
.b-st.s-r span { color: var(--red); } .b-st.s-a span { color: var(--amber); }
.b-bul { margin: 0; padding: 0; list-style: none; }
.b-bul li { position: relative; padding: 8px 0 8px 16px; border-bottom: 1px solid var(--line2); } .b-bul li:last-child { border-bottom: 0; }
.b-bul li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink2); }
.b-bul.tight li { padding: 6px 0 6px 16px; } .b-bul.tight li::before { top: 13px; }
.b-bul-t { font-size: 13.5px; line-height: 1.55; }
.b-src { font-size: 11.5px; color: var(--mute); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .b-src a { color: var(--mute); text-decoration: underline; text-decoration-color: var(--line); } .b-src a:hover { color: var(--acc); }
.b-grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.b-grid2 > * { min-width: 0; } .b-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.b-li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line2); color: var(--ink); border-radius: 6px; }
.b-li:hover { background: var(--panel2); } .b-li-m { flex: 1; min-width: 0; }
.b-li-t { font-size: 13px; font-weight: 500; line-height: 1.35; } .b-li-s { font-size: 11.5px; color: var(--mute); margin-top: 1px; }
.b-days { font-size: 11.5px; color: var(--mute); white-space: nowrap; } .b-days.long { color: var(--amber); font-weight: 500; }
.b-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.b-facts > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .b-facts span { font-size: 11.5px; color: var(--mute); } .b-facts b { font-weight: 500; } .b-facts b.neg { color: var(--red); }
.b-facts select { max-width: 100%; }
.b-pend { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 9px 14px; display: flex; gap: 8px; align-items: center; }
.b-hist { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line2); }
.b-hist > b { font-size: 12px; color: var(--mute); font-weight: 500; padding-top: 2px; }
.b-sug { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.b-sug-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; flex-wrap: wrap; } .b-sug-h a { margin-left: auto; font-size: 12px; }
.b-sug-t { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.55; }
.b-sug-on { font-size: 12px; color: var(--mute); }
.b-ch { border-collapse: collapse; font-size: 12.5px; background: var(--panel2); border-radius: 8px; width: 100%; }
.b-ch td { padding: 6px 10px; border-top: 1px solid var(--line2); } .b-ch tr:first-child td { border-top: 0; } .b-ch td:first-child { color: var(--ink2); width: 40%; }
.b-sug-f { display: flex; gap: 8px; flex-wrap: wrap; }
.b-prefs { width: 100%; border-collapse: collapse; font-size: 12.5px; } .b-prefs th { text-align: left; font-weight: 500; color: var(--mute); font-size: 11.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.b-prefs td { padding: 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.b-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.b-note { margin-top: 10px; font-size: 12px; color: var(--mute); background: var(--panel2); border-radius: 8px; padding: 8px 10px; display: flex; gap: 6px; align-items: flex-start; }
.b-mail { background: #fff; border: 1px solid var(--line); border-radius: 12px; max-width: 720px; overflow: hidden; }
.b-mail-h, .b-srcview .b-mail-h { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; background: var(--panel2); }
.b-mail-h span { display: inline-block; width: 70px; color: var(--mute); }
.b-mail-b { padding: 14px 22px; font-size: 13.5px; line-height: 1.6; } .b-mail-b h4 { font-size: 13px; margin: 14px 0 4px; } .b-mail-b ul { margin: 0; padding-left: 18px; }
.b-mail-s { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 6px 0; }
.b-mail-btn { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .b-mail-btn a { font-size: 12px; margin-left: 4px; }
.b-mail-f { padding: 8px 18px; font-size: 11.5px; color: var(--mute); border-top: 1px solid var(--line2); background: var(--panel2); }
.b-srcview .b-mail-h { border: 1px solid var(--line); border-radius: 8px; }
.b-srcbody { white-space: pre-wrap; font-family: var(--f); font-size: 13px; line-height: 1.6; margin: 12px 0 0; padding: 0 4px; }
.b-form2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.b-h4 { font-size: 12.5px; margin: 14px 0 6px; }
.b-steprow { display: grid; grid-template-columns: minmax(0, 1fr) 170px 30px; gap: 6px; margin-bottom: 6px; align-items: center; }
.b-foot { font-size: 11.5px; color: var(--mute); display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.modal .fld { margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 1024px) {
  .b-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .b-head h1 { font-size: 18px; }
  .b-card { padding: 12px; }
  .b-seg { margin-left: 0; width: 100%; } .b-seg button { flex: 1; padding: 5px 4px; font-size: 11.5px; }
  .b-sum { font-size: 14.5px; }
  .b-tiles { grid-template-columns: minmax(0, 1fr); }
  .b-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-stepsL { flex-wrap: wrap; } .b-st { flex: 1 1 30%; }
  .b-form2 { grid-template-columns: minmax(0, 1fr); }
  .b-prefs th:nth-child(4), .b-prefs td:nth-child(4) { display: none; }
  .b-hist { grid-template-columns: 52px minmax(0, 1fr); }
}

/* ---------- Briefing v2: two halves, Needs you, Settings, red flags ---------- */
.b-wrap.wide { max-width: 1280px; }
.b-halves { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.b-half { display: flex; flex-direction: column; }
.b-half .b-card-h { margin-bottom: 4px; }
.b-half-f { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.b-half-f .b-meta { margin-right: auto; max-width: 70%; }
.b-half .b-seg { margin: 2px 0 6px; width: 100%; } .b-half .b-seg button { flex: 1; }
.b-f { padding: 10px 0; border-top: 1px solid var(--line2); position: relative; }
.b-f.pinned { background: linear-gradient(90deg, #f5f8ff, transparent 60%); }
.b-f1 { display: flex; align-items: center; gap: 8px; }
.b-f-t { font-weight: 600; font-size: 13.5px; color: var(--ink); flex: 1; min-width: 0; } a.b-f-t:hover { color: var(--acc); }
.b-f-h { font-size: 12.5px; line-height: 1.5; color: var(--ink2); margin: 3px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-f-m { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 11.5px; color: var(--mute); }
.b-f-m .b-tag { margin-right: 0; }
.b-pin { color: var(--acc); display: inline-flex; gap: 3px; align-items: center; }
.b-ftools { display: inline-flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.b-f:hover .b-ftools, .b-ftools:focus-within { opacity: 1; }
.b-ftools button { border: 0; background: none; color: var(--mute2); cursor: pointer; padding: 2px 3px; border-radius: 4px; } .b-ftools button:hover { color: var(--acc); background: var(--acc2); } .b-ftools button.on { color: var(--acc); }
.b-us { border-top: 1px solid var(--line2); }
.b-u { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.b-u:last-child { border-bottom: 0; }
.b-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--mute2); }
.b-dot.c-red { background: #d64545; } .b-dot.c-amber { background: #e5a000; } .b-dot.c-green { background: #1f9e6e; } .b-dot.c-grey { background: #a7aeb9; }
.b-u-s { font-size: 11.5px; color: var(--mute); margin-bottom: 2px; display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; }
.b-u-t { font-size: 13px; line-height: 1.55; color: var(--ink); } a.b-u-t[href]:hover { color: var(--acc); }
.b-u-m:hover .b-edit { opacity: 1; }
.b-fig.act { border-color: #c9d6f7; background: #f6f9ff; } .b-fig.act b { color: var(--acc-ink); }
.b-mtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.b-mt { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--ink); display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; }
.b-mt:hover { border-color: #b9c3d3; box-shadow: var(--sh2); }
.b-mt b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-mt span { background: none; font-weight: 500; }
.b-mt.h-blocked { border-color: #f1b8b8; } .b-mt.h-watch { border-color: #f3dca4; }
.b-set { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.b-set-r { display: flex; align-items: center; gap: 10px; font-size: 12.5px; } .b-set-r span { width: 40px; color: var(--mute); }
.b-sw.big { font-size: 13.5px; font-weight: 500; }
/* Claude email reviews slider */
.b-rev { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; }
.b-rev-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.b-rev-n { display: flex; align-items: baseline; gap: 6px; min-width: 150px; }
.b-rev-n b { font-size: 30px; font-weight: 650; color: var(--acc-ink, var(--acc)); line-height: 1; }
.b-rev-n span { font-size: 13px; color: var(--mute); }
.b-range { flex: 1; min-width: 200px; max-width: 460px; accent-color: var(--acc); height: 22px; cursor: pointer; }
.b-rev-times { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; align-items: center; }
.b-rev-t { font-size: 12px; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 999px; background: var(--acc2); color: var(--acc-ink, var(--acc)); font-weight: 500; }
.b-rev-st { font-size: 12.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.b-rev-act { font-size: 12px; color: var(--mute); } .b-rev-act a { cursor: pointer; }
.b-rev-week { border-top: 1px solid var(--line2); margin-top: 8px; padding-top: 10px; }
.b-rev-wh { font-size: 12px; color: var(--mute); margin-bottom: 6px; font-weight: 500; }
.b-rev-days { display: flex; flex-wrap: wrap; gap: 8px; }
.b-rev-days label { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--mute); }
.nav-note { font-size: 11px; color: #ffb4b4; padding: 2px 12px 6px 28px; }
.nav.settings { margin-top: 10px; border-top: 1px solid #1f2738; border-radius: 0 0 6px 6px; padding-top: 10px; }
/* Red highlighting of records that need attention in the detailed records */
tr.flagged td { background: #fff1f1 !important; }
tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--red); }
tr.flagged .tname, tr.flagged td.tname, tr.flagged td:nth-child(2) { color: var(--red); font-weight: 600; }
.flagged:not(tr) { background: #fff1f1 !important; box-shadow: inset 3px 0 0 var(--red); color: var(--red); }
.flag-banner { display: flex; gap: 8px; align-items: flex-start; background: #fff1f1; border: 1px solid #f5c2c2; color: #9b2c2c; border-radius: 10px; padding: 9px 14px; margin-bottom: 14px; font-size: 12.5px; line-height: 1.5; }
.flag-banner .ic { margin-top: 2px; color: var(--red); }
@media (max-width: 1180px) {
  .b-mtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .b-halves { grid-template-columns: minmax(0, 1fr); }
  .b-halves .b-brief { order: -1; }
  .b-ftools { opacity: 1; }
}
@media (max-width: 680px) {
  .b-mtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-half-f .b-meta { max-width: 100%; }
}
.tab-flag { margin-left: 6px; background: var(--red); color: #fff; border-radius: 9px; font-size: 10.5px; padding: 0 6px; font-weight: 600; }
.flag-banner a { color: #9b2c2c; text-decoration: underline; font-weight: 500; }

@media (max-width: 680px) { .reg-h { flex-wrap: wrap; gap: 8px; } .reg-h .row { flex-wrap: wrap; } }
@media (max-width: 1024px) { .rep-l, .docs-l { grid-template-columns: minmax(0, 1fr); } .rep-list, .dtree { min-width: 0; } }
@media (max-width: 1024px) { .report { overflow-x: auto; min-width: 0; } }

/* Correct something */
.b-fix-list { margin-top: 10px; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.b-fix { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel2); }
.b-fix-w { font-size: 11.5px; color: var(--mute); margin-bottom: 4px; }
.b-fix textarea, .b-fix select { width: 100%; background: #fff; }
@media (max-width: 680px) { .fixbtn span { display: none; } }
/* Flexibility: key figures editor, add area tile */
.b-figs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.b-figs-w { position: relative; }
.b-figs-edit { position: absolute; right: 0; top: -22px; border: 0; background: none; color: var(--mute); font-size: 11.5px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.b-figs-edit:hover { color: var(--acc); }
.b-figrow { display: grid; grid-template-columns: 210px 1fr 1fr 1fr 60px 96px; gap: 6px; align-items: center; margin-bottom: 6px; }
.b-figrow .b-figcalc { grid-column: span 2; font-size: 12px; color: var(--mute); background: var(--panel2); border-radius: 6px; padding: 7px 9px; }
.b-figbtns { display: inline-flex; gap: 2px; }
.b-mt-add { border-style: dashed; color: var(--mute); cursor: pointer; align-items: center; justify-content: center; flex-direction: row; gap: 6px; font: inherit; font-size: 12.5px; }
.b-mt-add:hover { color: var(--acc); border-color: var(--acc); }
.b-wrap.wide > .b-figs-w { margin-top: 18px; }
@media (max-width: 1024px) { .b-figrow { grid-template-columns: 1fr 1fr; } .b-figrow .b-figcalc { grid-column: span 2; } }
/* Shared mode: sign-in and first-run screens */
.auth { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: 20px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; max-width: 520px; width: 100%; box-shadow: var(--sh2); display: flex; flex-direction: column; gap: 12px; }
.auth-card h2 { font-size: 19px; } .auth-card h3 { font-size: 13.5px; margin-top: 6px; }
.auth-logo { width: 40px; height: 40px; border-radius: 9px; background: linear-gradient(135deg, #4c74e8, #2a49b0); color: #fff; font-weight: 700; display: grid; place-items: center; }
.auth-steps { margin: 0; padding-left: 20px; line-height: 1.6; }
.auth-opt { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.auth-card .btn { align-self: flex-start; }