/* PPMS layout (owner-approved 2026-11-11, redesign 2026-11-11 evening): dark and light theme, side menu with the
   project "title block", phone bar. Loaded after ppms.css; every colour comes from the theme variables below.
   Chart palettes validated (dataviz validator) on both surfaces: dark #7474f5 #d8663a #1fae80 #b06af0,
   light #4f4fdc #d9622e #0f9a6c #9b4fe0. */

@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ------------------------------------------------------------------------------------------------ themes */
html { color-scheme: light; }
body.v2 {
  --bg: #f3f4fa; --surface: #ffffff; --surface-2: #f6f7fc; --surface-3: #eceef7;
  --line: #e3e5f0; --line-strong: #cfd2e3; --ink: #17172b; --quiet: #666985;
  --accent: #5b5bd6; --accent-2: #8b5cf6; --accent-ink: #fff; --link: #4747c9;
  --ok: #0b8a60; --warn: #a96300; --err: #c92f36; --signal: #f5b800;
  --tint-ok: rgba(15,154,108,.12); --tint-warn: rgba(245,170,0,.18); --tint-err: rgba(208,53,59,.11);
  --tint-info: rgba(91,91,214,.10); --tint-hover: rgba(91,91,214,.05);
  --side-bg: #ffffff; --side-ink: #45475f; --side-quiet: #8a8ca6; --side-active: rgba(91,91,214,.11);
  --side-active-ink: #3d3dbd; --side-line: #ececf4;
  --c1: #4f4fdc; --c2: #d9622e; --c3: #0f9a6c; --c4: #9b4fe0; --c-out: #d99a06;
  --grid: #e9eaf3; --axis: #7a7d96; --area: rgba(79,79,220,.16);
  --shadow: 0 1px 2px rgba(20,20,60,.04), 0 8px 24px rgba(20,20,60,.05);
  --radius: 16px; --radius-s: 10px; --side-w: 244px;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body.v2 {
  --bg: #0c0b1d; --surface: #15142b; --surface-2: #1b1a34; --surface-3: #24233f;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.16); --ink: #ecebf7; --quiet: #9b9aba;
  --accent: #7474f5; --accent-2: #a78bfa; --accent-ink: #fff; --link: #a5a4ff;
  --ok: #3fd39f; --warn: #fbbf24; --err: #fb7185; --signal: #f5b800;
  --tint-ok: rgba(52,211,153,.13); --tint-warn: rgba(251,191,36,.14); --tint-err: rgba(251,113,133,.13);
  --tint-info: rgba(116,116,245,.15); --tint-hover: rgba(255,255,255,.03);
  --side-bg: #100f23; --side-ink: #b9b8d6; --side-quiet: #7f7ea0; --side-active: rgba(116,116,245,.18);
  --side-active-ink: #ffffff; --side-line: rgba(255,255,255,.06);
  --c1: #7474f5; --c2: #d8663a; --c3: #1fae80; --c4: #b06af0; --c-out: #e3a008;
  --grid: rgba(255,255,255,.06); --axis: #8786a8; --area: rgba(116,116,245,.22);
  --shadow: 0 0 0 1px rgba(255,255,255,.015), 0 12px 32px rgba(0,0,0,.35);
}

/* ------------------------------------------------------------------------------------------------ shell */
body.v2 a { color: var(--link); }
body.v2 .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
body.v2 .main { min-width: 0; }
body.v2 .page { max-width: 1280px; margin: 0; padding: 26px 34px 56px; }
body.v2 .page.wide { max-width: none; }
body.v2 h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 16px; }
body.v2 h2 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; margin: 28px 0 12px; }
body.v2 h3 { font-size: 15px; font-weight: 700; }
body.v2 .muted { color: var(--quiet); }

body.v2 .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side-bg); color: var(--side-ink);
  border-right: 1px solid var(--side-line); display: flex; flex-direction: column; padding: 16px 12px 14px; }
body.v2 .side a { color: var(--side-ink); text-decoration: none; }
body.v2 .side-brand { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 800; font-size: 17px;
  letter-spacing: .02em; padding: 4px 10px 16px; }
body.v2 .side-brand::before { content: ""; width: 26px; height: 22px; flex: none;
  background: radial-gradient(circle at 30% 50%, var(--accent) 0 9px, transparent 10px),
              radial-gradient(circle at 70% 50%, var(--accent-2) 0 9px, transparent 10px); opacity: .95; }
body.v2 .side hr { border: 0; border-top: 1px solid var(--side-line); margin: 12px 6px; }
body.v2 .titleblock { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin: 0 2px 12px; padding: 12px 12px 11px;
  border-radius: 14px; background: linear-gradient(135deg, var(--tint-info), transparent 70%), var(--surface-2);
  border: 1px solid var(--side-line); }
body.v2 .titleblock:hover { border-color: var(--line-strong); }
body.v2 .tb-no { grid-column: 1; grid-row: 1; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
body.v2 .tb-status { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--quiet); }
body.v2 .tb-status.s-active { background: var(--tint-ok); color: var(--ok); }
body.v2 .tb-status.s-on_hold { background: var(--tint-warn); color: var(--warn); }
body.v2 .tb-name { grid-row: 2; grid-column: 1 / -1; font-size: 12.5px; color: var(--quiet); line-height: 1.3; }
body.v2 .side-nav { display: flex; flex-direction: column; gap: 2px; }
body.v2 .side-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; font-size: 14px;
  line-height: 1.25; font-weight: 500; transition: background .12s, color .12s; }
body.v2 .side-nav a:hover { background: var(--tint-hover); color: var(--ink); }
body.v2 .side-nav a.on { background: var(--side-active); color: var(--side-active-ink); font-weight: 650; }
body.v2 .side-nav a.on .ico { color: var(--accent); }
body.v2 .side-nav span { flex: 1; }
body.v2 .side-global a { font-size: 13.5px; }
body.v2 .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.v2 .due { background: var(--signal); color: #2b2200; font-size: 11.5px; font-weight: 800; min-width: 20px; padding: 1px 6px;
  border-radius: 999px; text-align: center; }
body.v2 .side-foot { margin-top: auto; padding: 14px 8px 2px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 13px; }
body.v2 .side-user { flex-basis: 100%; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
body.v2 .side-foot button.link { color: var(--side-quiet); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
body.v2 .theme-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
body.v2 .theme-btn .ico { width: 15px; height: 15px; }
body.v2 .phonetop, body.v2 .phonebar, body.v2 .scrim { display: none; }

/* ------------------------------------------------------------------------------------------------ surfaces */
body.v2 .card, body.v2 .panel, body.v2 .stat, body.v2 .kpi, body.v2 .pcard, body.v2 .hour-day {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
body.v2 .card { padding: 18px 20px; }
body.v2 .stat { padding: 14px 16px; }
body.v2 .stat .v { font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
body.v2 .stat .v.neg { color: var(--err); }
body.v2 .stat .k { color: var(--quiet); font-size: 12.5px; }
body.v2 .stats { gap: 12px; }
body.v2 details.card > summary { cursor: pointer; }

body.v2 table { background: transparent; color: var(--ink); }
body.v2 .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
body.v2 th { background: var(--surface-2); color: var(--quiet); font-weight: 650; font-size: 12.5px; letter-spacing: .01em; border-bottom: 1px solid var(--line); }
body.v2 td { font-size: 14px; border-bottom: 1px solid var(--line); }
body.v2 tbody tr:last-child td { border-bottom: 0; }
body.v2 tbody tr:hover td { background: var(--tint-hover); }
body.v2 tfoot th { background: var(--surface-2); }
body.v2 .tree-node > td, body.v2 tr.boq-node td { background: var(--surface-2); }
body.v2 .tree-node.lvl-zone > td { background: transparent; }
body.v2 tr.boq-full td { background: var(--tint-ok); }
body.v2 tr.boq-over td, body.v2 tr.row-error td { background: var(--tint-err); }
body.v2 tr.boq-above td { background: var(--tint-info); }
body.v2 tr.changed td, body.v2 tr.line-assigned td { background: var(--tint-warn); }
body.v2 tr.line-done td { background: var(--tint-ok); }
body.v2 tr.day-sep td { background: var(--surface-2); }
body.v2 table.timesheet .wk { background: var(--surface-2); }
body.v2 .n.neg { color: var(--err); }
body.v2 .day-block { border-top: 1px solid var(--line); }

body.v2 .btn, body.v2 button.btn, body.v2 input[type=submit] { border-radius: var(--radius-s); font-weight: 650; padding: 9px 16px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(91,91,214,.25); transition: filter .12s, transform .12s; }
body.v2 .btn:hover { filter: brightness(1.07); opacity: 1; text-decoration: none; }
body.v2 .btn:active { transform: translateY(1px); }
body.v2 .btn.secondary { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
body.v2 .btn.danger { background: var(--err); box-shadow: none; }
body.v2 .btn.small { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
body.v2 .btn:focus-visible, body.v2 a:focus-visible, body.v2 button:focus-visible, body.v2 input:focus-visible,
body.v2 select:focus-visible, body.v2 summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

body.v2 input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=hidden]):not([type=submit]),
body.v2 select, body.v2 textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 7px 10px; }
body.v2 input::placeholder, body.v2 textarea::placeholder { color: var(--quiet); opacity: .8; }
body.v2 input:disabled, body.v2 select:disabled { opacity: .6; }
body.v2 input[type=radio], body.v2 input[type=checkbox] { accent-color: var(--accent); }
body.v2 .field label { color: var(--ink); }
body.v2 .help { color: var(--quiet); }
body.v2 .error { color: var(--err); }

body.v2 .msg { background: var(--tint-info); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; }
body.v2 .msg-success { background: var(--tint-ok); border-left-color: var(--ok); }
body.v2 .msg-error { background: var(--tint-err); border-left-color: var(--err); }
body.v2 .msg-warning { background: var(--tint-warn); border-left-color: var(--signal); }
body.v2 .banner { margin: 0; border-radius: 0; }
body.v2 .testbanner { background: var(--signal); color: #231c00; border-bottom: 0; }

body.v2 .badge { border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--quiet); }
body.v2 .badge.ok, body.v2 .badge.active, body.v2 .badge.approved, body.v2 .badge.confirmed { background: var(--tint-ok); color: var(--ok); }
body.v2 .badge.error, body.v2 .badge.rejected { background: var(--tint-err); color: var(--err); }
body.v2 .badge.warning, body.v2 .badge.submitted, body.v2 .badge.pm_review, body.v2 .badge.admin_review, body.v2 .badge.pm_approved,
body.v2 .badge.draft, body.v2 .badge.proposed, body.v2 .badge.previewed, body.v2 .badge.on_hold, body.v2 .badge.returned { background: var(--tint-warn); color: var(--warn); }
body.v2 .badge.locked { background: var(--tint-info); color: var(--link); }
body.v2 .steps li { background: var(--surface-3); color: var(--quiet); }
body.v2 .steps li.on { background: var(--accent); color: #fff; }
body.v2 code.link { background: var(--surface-2); color: var(--ink); }
body.v2 .chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink); text-decoration: none; }
body.v2 .chip.s-locked { background: var(--tint-info); color: var(--link); }
body.v2 .chip.s-submitted, body.v2 .chip.s-pm_approved, body.v2 .chip.warn { background: var(--tint-warn); color: var(--warn); }
body.v2 .nowrap { white-space: nowrap; }
body.v2 .grow { flex: 1; }
body.v2 .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.v2 ul.plain { list-style: none; padding: 0; margin: 6px 0; font-size: 13.5px; }
body.v2 ul.plain li { padding: 3px 0; }
body.v2 details.more > summary { cursor: pointer; color: var(--link); font-size: 13px; font-weight: 600; padding: 6px 2px; list-style: none; }
body.v2 details.more > summary::-webkit-details-marker { display: none; }
body.v2 details.more > summary::before { content: "▸ "; }
body.v2 details.more[open] > summary::before { content: "▾ "; }
/* the side menu already lists the project sections */
body.v2.has-shell .project-links { display: none; }

/* segmented switch (week / month, plan / hours worked) */
body.v2 .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin: 0; background: var(--surface); }
body.v2 .seg label { position: relative; }
body.v2 .seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
body.v2 .seg span { display: block; padding: 5px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--quiet); }
body.v2 .seg input:checked + span, body.v2 .seg a[aria-selected=true] span { background: var(--accent); color: #fff; }
body.v2 .seg a { text-decoration: none; }
body.v2 .seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }

/* ------------------------------------------------------------------------------------------------ dashboard */
body.v2 .dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
body.v2 .dash-head h1 { margin: 0; }
body.v2 .dash-date { margin: 2px 0 0; font-size: 13px; text-transform: capitalize; }
body.v2 .dash-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
body.v2 .dash-choices .sel { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--quiet); }
body.v2 .dash-choices select { border-radius: 12px; background: var(--surface); max-width: 260px; padding: 7px 12px; }
body.v2 .dash-choices .clear { font-size: 13px; }
body.v2 .panel { padding: 16px 18px 14px; min-width: 0; }
body.v2 .panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-bottom: 8px; }
body.v2 .panel-head h2 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
body.v2 .round { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  color: var(--ink); text-decoration: none; font-size: 14px; }
body.v2 .round:hover { background: var(--tint-hover); text-decoration: none; }
body.v2 .count { font-weight: 500; color: var(--quiet); font-size: 13px; }
body.v2 .all-clear { margin: 0 0 14px; color: var(--ok); font-size: 14px; font-weight: 600; }

body.v2 .actions { margin-bottom: 16px; }
body.v2 .action-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 6px 14px; }
body.v2 .action-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px;
  color: var(--ink); text-decoration: none; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
body.v2 .action-list a:hover { border-color: var(--line-strong); }
body.v2 .action-list .ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--tint-info); color: var(--accent); }
body.v2 .action-list .a-budget .ico { background: var(--tint-warn); color: var(--warn); }
body.v2 .a-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 550; }
body.v2 .a-project { font-size: 12px; color: var(--quiet); }
body.v2 .a-go { font-size: 12.5px; color: var(--link); font-weight: 700; }

body.v2 .dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
body.v2 .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.v2 .kpi { display: flex; flex-direction: column; padding: 16px 18px; min-height: 132px; }
body.v2 .kpi header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
body.v2 .kpi header .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--quiet); }
body.v2 .kpi-v { font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin-top: auto; padding-top: 10px; }
body.v2 .kpi-v.low { color: var(--err); }
body.v2 .kpi-s { margin: 6px 0 0; font-size: 12.5px; color: var(--quiet); }
body.v2 .tr { font-weight: 700; }
body.v2 .tr.up { color: var(--ok); } body.v2 .tr.down { color: var(--err); }

/* charts */
body.v2 .chart-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
body.v2 .chart-tabs button { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 6px 12px; border-radius: 10px; color: var(--quiet); cursor: pointer; }
body.v2 .chart-tabs button[aria-selected=true] { background: var(--surface-3); color: var(--ink); }
body.v2 .chart-card { position: relative; margin: 0; border: 0; padding: 0; background: none; box-shadow: none; }
body.v2 section.chart-card { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px 12px; box-shadow: var(--shadow); }
body.v2 svg.chart { width: 100%; height: auto; display: block; touch-action: pan-y; overflow: visible; }
body.v2 svg .grid { stroke: var(--grid); stroke-width: 1; }
body.v2 svg .baseline { stroke: var(--line-strong); stroke-width: 1; }
body.v2 svg .axis { fill: var(--axis); font-size: 12px; font-family: inherit; }
body.v2 svg .axis.strong { fill: var(--quiet); font-weight: 700; }
body.v2 svg .stop-earned.s-top { stop-color: var(--accent-2); } body.v2 svg .stop-earned.s-bottom { stop-color: var(--c1); }
body.v2 svg .stop-area.s-top { stop-color: var(--c1); stop-opacity: .32; } body.v2 svg .stop-area.s-bottom { stop-color: var(--c1); stop-opacity: 0; }
body.v2 svg .m-earned-bar { opacity: .78; } body.v2 svg .m-earned-bar.now { opacity: 1; }
body.v2 svg .hatch-bg { fill: color-mix(in srgb, var(--c2) 14%, transparent); }
body.v2 svg .hatch { stroke: var(--c2); stroke-width: 2; } body.v2 svg .hatch.amber { stroke: var(--c-out); }
body.v2 svg .m-hours-bar { stroke: var(--c2); stroke-width: 1; }
body.v2 svg .m-target { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
body.v2 svg .m-budget { stroke: var(--quiet); stroke-width: 1.5; stroke-dasharray: 5 5; }
body.v2 svg .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
body.v2 svg .m-earned.line { stroke: var(--c1); } body.v2 svg .m-planned.line { stroke: var(--c3); stroke-width: 2; }
body.v2 svg .dot { stroke: var(--surface); stroke-width: 2.5; } body.v2 svg .m-earned.dot { fill: var(--c1); } body.v2 svg .m-planned.dot { fill: var(--c3); }
body.v2 .hover-band { fill: var(--ink); opacity: 0; fill-opacity: .05; pointer-events: none; transition: opacity .08s; }
body.v2 .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--quiet); margin: 0 0 6px; }
body.v2 .legend i, body.v2 .tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
body.v2 .k-earned, body.v2 .k-prod { background: linear-gradient(var(--accent-2), var(--c1)); }
body.v2 .k-hours { background: repeating-linear-gradient(45deg, var(--c2) 0 2px, transparent 2px 5px); box-shadow: inset 0 0 0 1px var(--c2); }
body.v2 .k-planned { background: var(--c3); }
body.v2 .k-target { background: var(--ink); height: 3px !important; }
body.v2 .legend i.tick { width: 14px; height: 3px; background: var(--ink); border-radius: 2px; }
body.v2 .legend i.dash { width: 16px; height: 0; border-top: 2px dashed var(--quiet); border-radius: 0; }
body.v2 .tip { position: absolute; top: 34px; z-index: 3; min-width: 190px; pointer-events: none; color: var(--ink);
  background: color-mix(in srgb, var(--surface-3) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); padding: 10px 12px; font-size: 13px; }
body.v2 .tip strong { margin-right: 4px; } body.v2 .tip small { color: var(--quiet); }
body.v2 .tip-row { display: flex; align-items: center; margin-top: 4px; color: var(--quiet); }
body.v2 .tip-row b { margin-left: auto; padding-left: 14px; color: var(--ink); }
body.v2 .chart-table { margin-top: 8px; }
body.v2 .chart-table > summary { cursor: pointer; font-size: 13px; color: var(--link); }

/* budget donut */
body.v2 .budget-body { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(140px, 1fr) minmax(170px, 1.25fr); gap: 12px 18px; align-items: center; }
body.v2 .budget-facts, body.v2 .budget-legend { list-style: none; margin: 0; padding: 0; }
body.v2 .budget-facts li { display: flex; flex-direction: column; margin-bottom: 12px; }
body.v2 .budget-facts b { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
body.v2 .budget-facts b.neg { color: var(--err); }
body.v2 .budget-facts span { font-size: 12.5px; color: var(--quiet); }
body.v2 svg.donut { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto; }
body.v2 svg.donut .ring-bg { stroke: var(--surface-3); }
body.v2 svg.donut .seg.c1 { stroke: var(--c1); } body.v2 svg.donut .seg.c3 { stroke: var(--c3); }
body.v2 svg.donut .seg.c4 { stroke: var(--c4); } body.v2 svg.donut .seg.c-out { stroke: var(--c-out); opacity: .9; }
body.v2 svg.donut .donut-v { fill: var(--ink); font-size: 26px; font-weight: 800; font-family: inherit; }
body.v2 svg.donut .donut-k { fill: var(--quiet); font-size: 12px; font-family: inherit; }
body.v2 .budget-legend li { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
body.v2 .budget-legend i { width: 4px; height: 26px; border-radius: 2px; background: var(--surface-3); }
body.v2 .budget-legend i.c1 { background: var(--c1); } body.v2 .budget-legend i.c3 { background: var(--c3); }
body.v2 .budget-legend i.c4 { background: var(--c4); }
body.v2 .budget-legend i.c-out { background: repeating-linear-gradient(45deg, var(--c-out) 0 3px, transparent 3px 6px); }
body.v2 .budget-legend span { color: var(--quiet); line-height: 1.25; }
body.v2 .budget-legend b { font-weight: 700; padding-right: 2px; }
body.v2 .budget-legend li.total { border-top: 1px solid var(--line); margin-top: 2px; }
body.v2 .budget-legend li.total span, body.v2 .budget-legend li.total b { color: var(--ink); font-weight: 800; }
body.v2 .budget-legend li.outside { opacity: .9; }

/* projects as cards */
body.v2 .dash-section { margin: 24px 0 16px; }
body.v2 .dash-section h2 { display: flex; align-items: center; gap: 8px; }
body.v2 .pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
body.v2 .pcard { display: flex; flex-direction: column; gap: 9px; padding: 16px 16px 12px; transition: border-color .12s, transform .12s; }
body.v2 .pcard:hover { border-color: var(--line-strong); }
body.v2 .pcard.over { box-shadow: inset 4px 0 0 var(--signal), var(--shadow); }
body.v2 .pcard header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
body.v2 .pc-title { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.3; flex: 1; min-width: 0; text-decoration: none; }
body.v2 .pc-title b { color: var(--link); margin-right: 4px; }
body.v2 .pc-progress { display: flex; align-items: center; gap: 10px; }
body.v2 .pc-progress .bar { flex: 1; height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
body.v2 .pc-progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c1), var(--accent-2)); border-radius: 999px; }
body.v2 .pc-pct { font-weight: 800; font-size: 15px; min-width: 56px; text-align: right; }
body.v2 .pc-sub { margin: -4px 0 0; font-size: 12.5px; color: var(--quiet); }
body.v2 .over-link { color: var(--warn); font-weight: 700; }
body.v2 .pc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; border-top: 1px solid var(--line); padding-top: 9px; }
body.v2 .pc-figs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; padding-top: 0; }
body.v2 .pc-figs dt { font-size: 11.5px; color: var(--quiet); }
body.v2 .pc-figs dd { margin: 0; font-size: 18px; font-weight: 750; }
body.v2 .pc-figs dd small { font-size: 12px; font-weight: 500; color: var(--quiet); }
body.v2 .pc-figs dd.neg { color: var(--err); }
body.v2 .pcard footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 4px; }
body.v2 .pc-focus { margin-left: auto; font-size: 12.5px; font-weight: 600; }
body.v2 details.all-projects > summary { list-style: none; cursor: pointer; }
body.v2 details.all-projects > summary::-webkit-details-marker { display: none; }
body.v2 details.all-projects > summary h2::after { content: "▸"; color: var(--quiet); font-weight: 400; }
body.v2 details.all-projects[open] > summary h2::after { content: "▾"; }

/* ------------------------------------------------------------------------------------------------ pages */
body.v2 .page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.v2 .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 14px; }
body.v2 .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.v2 .tiles.small { grid-template-columns: repeat(3, minmax(0, 170px)); margin-bottom: 14px; }
body.v2 .tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
body.v2 .tile .k { font-size: 12.5px; color: var(--quiet); }
body.v2 .tile .v { font-size: 21px; font-weight: 750; }
body.v2 .summary-bar { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
body.v2 .summary-bar > div { display: flex; flex-direction: column; }
body.v2 .summary-bar strong { font-size: 1.2rem; font-weight: 800; }
body.v2 [data-sticky] { position: sticky; top: 0; z-index: 5; }
body.v2 input.num { width: 7.5em; text-align: right; }
body.v2 table.opening td { vertical-align: middle; }
body.v2 table.hours-grid { font-size: 12.5px; }
body.v2 table.hours-grid td.cell { min-width: 54px; vertical-align: middle; padding: 4px; text-align: center; }
body.v2 table.hours-grid input.h { width: 40px; text-align: center; padding: 3px 2px; font-size: 12px; border-radius: 5px; min-height: 0; }
body.v2 table.hours-grid .rep { display: block; font-size: 11.5px; color: var(--quiet); }
body.v2 table.hours-grid .rep-v { font-weight: 750; margin-right: 4px; }
body.v2 table.hours-grid th.today, body.v2 table.hours-grid td.today { box-shadow: inset 0 3px 0 var(--accent); }
body.v2 td.cell.s-done { background: var(--tint-ok); } body.v2 td.cell.s-short { background: var(--tint-warn); }
body.v2 td.cell.s-waiting { background: var(--tint-info); } body.v2 td.cell.s-missing { background: var(--tint-err); }
body.v2 .legend-row { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--quiet); }
body.v2 .dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; }
body.v2 .dot.s-done { background: var(--ok); } body.v2 .dot.s-short { background: var(--warn); }
body.v2 .dot.s-waiting { background: var(--accent); } body.v2 .dot.s-missing { background: var(--err); }
body.v2 .hour-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 18px; }
body.v2 .hour-day { padding: 14px 16px; }
body.v2 .hour-day.today { border-color: var(--accent); }
body.v2 .hour-day header { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
body.v2 .hd-plan { margin: 6px 0; }
body.v2 .qr svg { background: #fff; padding: 6px; border-radius: 8px; }
body.v2 .narrow { max-width: 440px; }

/* ------------------------------------------------------------------------------------------------ phone */
@media (max-width: 1100px) {
  body.v2 .dgrid { grid-template-columns: 1fr; }
  body.v2 .budget-body { grid-template-columns: 1fr 1fr; }
  body.v2 .budget-body .donut { grid-row: span 2; }
}
@media (max-width: 860px) {
  body.v2 .shell { display: block; }
  body.v2 .side { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: min(84vw, 300px); transform: translateX(-102%); transition: transform .18s ease-out; }
  body.v2.menu-open .side { transform: none; }
  body.v2.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(5,5,20,.55); }
  body.v2 .phonetop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; background: var(--side-bg);
    border-bottom: 1px solid var(--side-line); color: var(--ink); padding: 10px 14px; }
  body.v2 .phonetop .brand { color: var(--ink); font-weight: 800; letter-spacing: .02em; text-decoration: none; }
  body.v2 .phonetop-project { color: var(--quiet); font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
  body.v2 .phonetop .theme-btn { margin-left: auto; padding: 5px 8px; }
  body.v2 .page { padding: 16px 12px 96px; }
  body.v2 h1 { font-size: 22px; }
  body.v2 .phonebar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    background: var(--side-bg); border-top: 1px solid var(--side-line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  body.v2 .phonebar a, body.v2 .phonebar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; min-height: 52px; font: inherit; font-size: 11px; color: var(--quiet); background: none; border: 0; text-decoration: none; text-align: center; }
  body.v2 .phonebar .ico { width: 22px; height: 22px; }
  body.v2 .phonebar .on { color: var(--accent); font-weight: 700; }
  body.v2 .phonebar span { line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  body.v2 .phonebar .due { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10px; padding: 0 5px; min-width: 16px; }
  body.v2 .btn, body.v2 button.btn { min-height: 44px; padding: 10px 16px; }
  body.v2 .btn.small { min-height: 38px; padding: 8px 12px; font-size: 14px; }
  body.v2 .field input, body.v2 .field select, body.v2 .field textarea { min-height: 44px; font-size: 16px; }
  body.v2 td input, body.v2 td select { min-height: 40px; font-size: 16px; }
  body.v2 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.v2 .stat .v { font-size: 19px; }
  body.v2 .dash-choices { width: 100%; }
  body.v2 .dash-choices .sel { flex: 1 1 100%; }
  body.v2 .dash-choices select { flex: 1; max-width: none; min-height: 42px; }
  body.v2 .kpis { gap: 10px; }
  body.v2 .kpi { min-height: 112px; padding: 13px 14px; }
  body.v2 .kpi-v { font-size: 26px; }
  body.v2 .kpi header .ico { width: 28px; height: 28px; padding: 6px; }
  body.v2 .budget-body { grid-template-columns: 1fr; }
  body.v2 .budget-body .donut { grid-row: auto; max-width: 200px; }
  body.v2 .chart-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.v2 .chart-tabs button { white-space: nowrap; font-size: 13px; }
  body.v2 .chart-card { overflow-x: auto; }
  body.v2 .chart-card svg.chart { min-width: 460px; }
  body.v2 .action-list { grid-template-columns: 1fr; }
  body.v2 .action-list a { grid-template-columns: 30px minmax(0, 1fr) auto; }
  body.v2 .a-go { display: none; }
  body.v2 .a-text { white-space: normal; }
  body.v2 .pc-figs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 .tiles.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* ordinary tables become one card per row */
  body.v2 .table-wrap { border: 0; background: none; box-shadow: none; overflow: visible; }
  body.v2 table.stack, body.v2 table.stack tbody { display: block; background: none; }
  body.v2 table.stack thead { display: none; }
  body.v2 table.stack tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; padding: 8px 12px; }
  body.v2 table.stack tr.one, body.v2 table.stack tr.day-sep { background: var(--surface-2); }
  body.v2 table.stack td, body.v2 table.stack th { display: block; border: 0; padding: 4px 0; text-align: right; white-space: normal; background: none; overflow: hidden; }
  body.v2 table.stack td::before, body.v2 table.stack th::before { content: attr(data-label); float: left; color: var(--quiet); font-size: 13px;
    font-weight: 500; text-align: left; max-width: 48%; margin-right: 12px; }
  body.v2 table.stack td:not([data-label])::before, body.v2 table.stack td[data-label=""]::before, body.v2 table.stack tr.one td::before { content: none; }
  body.v2 table.stack td:first-child { font-weight: 650; }
  body.v2 table.stack tr.one td { display: block; text-align: left; }
  body.v2 table.stack td form { display: inline-block; margin: 2px 0 2px 6px; }
  body.v2 table.keep { display: table; }
  body.v2 .table-wrap:has(table.keep) { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { body.v2 .side, body.v2 .btn, body.v2 .pcard { transition: none; } }

/* pages without the menu (log in, code, invitation): the card in the middle of the screen (2026-11-11) */
body.v2:not(.has-shell) .page { max-width: none; margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 32px 16px; }
body.v2:not(.has-shell) .page > .msg { width: 100%; max-width: 440px; }
body.v2:not(.has-shell) .narrow { width: 100%; max-width: 440px; margin: 0; padding: 28px 28px 22px; }
body.v2:not(.has-shell) .page::before { content: "PPMS"; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px;
  letter-spacing: .03em; margin-bottom: 18px; color: var(--ink); }
body.v2:not(.has-shell) .narrow .btn { width: 100%; justify-content: center; text-align: center; }
body.v2:not(.has-shell) .narrow .field input { width: 100%; }
/* division report */
body.v2 .page-head > div { flex: 1 1 420px; } body.v2 .page-head > div > p { max-width: 80ch; }
body.v2 .report-filters { margin: 16px 0 18px; display: flex; flex-direction: column; gap: 12px; }
body.v2 .rf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
body.v2 .rf-k { font-size: 12.5px; color: var(--quiet); }
body.v2 .report-filters .sel { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--quiet); }
body.v2 label.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
body.v2 .rf-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 14px; margin-top: 8px; }
body.v2 .report-block h2 { display: flex; gap: 8px; align-items: center; }
body.v2 table.report-table tr.r-month td { background: var(--surface-2); font-weight: 700; }
body.v2 table.report-table tr.r-week td:first-child { padding-left: 26px; color: var(--quiet); }

/* ------------------------------------------------------------------------------------- tools & equipment */
body.v2 .subtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
body.v2 .subtabs a { padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--quiet); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body.v2 .subtabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--accent); }
body.v2 .tpending { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
body.v2 .tcounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-bottom: 14px; }
body.v2 .tc { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; color: var(--ink); }
body.v2 .tc b { font-size: 22px; font-weight: 800; }
body.v2 .tc .k { font-size: 12px; }
body.v2 .tc.total { background: linear-gradient(135deg, var(--tint-info), transparent), var(--surface); }
body.v2 .tc.zero { opacity: .55; }
body.v2 .tc:hover { border-color: var(--line-strong); text-decoration: none; }
body.v2 .tstat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
body.v2 .tstat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--quiet); flex: none; }
body.v2 .tstat.t-available::before { background: var(--ok); } body.v2 .tstat.t-issued::before { background: var(--accent); }
body.v2 .tstat.t-awaiting_signature::before, body.v2 .tstat.t-return_pending::before, body.v2 .tstat.t-reserved::before { background: var(--signal); }
body.v2 .tstat.t-in_transit::before { background: var(--c4); } body.v2 .tstat.t-in_repair::before { background: var(--c3); }
body.v2 .tstat.t-overdue::before, body.v2 .tstat.t-missing::before, body.v2 .tstat.t-damaged::before { background: var(--err); }
body.v2 .tstat.t-written_off { color: var(--quiet); }
body.v2 .tfilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; padding: 12px; }
body.v2 .tfilters input[type=search] { flex: 1; min-width: 200px; }
body.v2 .tlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
body.v2 .tlist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
body.v2 .tlist a span:not(.btn) { grid-column: 1; font-size: 12.5px; color: var(--quiet); }
body.v2 .tlist a .btn { grid-row: 1 / span 2; grid-column: 2; }
body.v2 .tlist li.unread a { border-left: 4px solid var(--signal); }
body.v2 .tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
body.v2 .tcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
body.v2 .tcard.overdue { box-shadow: inset 4px 0 0 var(--err); }
body.v2 .tcard header { display: flex; flex-direction: column; }
body.v2 .tcard p { margin: 6px 0; font-size: 13.5px; }
body.v2 dl.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin: 0; }
body.v2 dl.kv dt { font-size: 12px; color: var(--quiet); }
body.v2 dl.kv dd { margin: 2px 0 0; }
body.v2 .photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body.v2 .photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
body.v2 .tool-photo { max-width: 100%; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 12px; }
body.v2 img.sig { max-width: 280px; background: #fff; border-radius: 8px; margin-top: 6px; }
body.v2 .narrowish { max-width: 640px; }
body.v2 .tgrid { margin-bottom: 8px; }
body.v2 .sign-wrap { max-width: 720px; }
body.v2 .declaration { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
body.v2 .pad-wrap { position: relative; }
body.v2 #pad { width: 100%; height: 240px; display: block; background: #fff; border-radius: 14px; border: 2px dashed var(--line-strong); touch-action: none; cursor: crosshair; }
body.v2 .pad-clear { position: absolute; right: 8px; top: 8px; }
body.v2 .sign-actions .btn { width: 100%; min-height: 52px; font-size: 16px; }
@media (max-width: 860px) {
  body.v2 .subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.v2 .subtabs a { white-space: nowrap; }
  body.v2 .tcounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.v2 #pad { height: 220px; }
}
/* tools: tile labels wrap from the dot; wide status tables scroll */
body.v2 .tc .tstat { align-items: flex-start; font-size: 12px; line-height: 1.35; }
body.v2 .tc .tstat::before { margin-top: 4px; }
body.v2 .tc b { margin-top: auto; }
body.v2 .table-wrap.scroll { overflow-x: auto; }
body.v2 .table-wrap.scroll th, body.v2 .table-wrap.scroll td { white-space: nowrap; }
/* timesheet: compact month grid (2026-11-15) */
body.v2 table.timesheet { font-size: 12.5px; }
body.v2 table.timesheet th, body.v2 table.timesheet td { padding: 5px 4px; }
body.v2 table.timesheet th.d, body.v2 table.timesheet td.d { width: 31px; min-width: 31px; max-width: 31px; padding-left: 1px; padding-right: 1px; text-align: center; font-variant-numeric: tabular-nums; }
body.v2 table.timesheet th.d small { display: block; font-size: 10px; color: var(--quiet); font-weight: 500; }
body.v2 table.timesheet td.nm { white-space: nowrap; font-weight: 600; padding-left: 8px; }
body.v2 table.timesheet td.org { white-space: nowrap; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
body.v2 table.timesheet td.d input { width: 29px; padding: 3px 1px; font-size: 12px; text-align: center; border-radius: 5px; min-height: 0; }
body.v2 table.timesheet .tot { padding-right: 8px; white-space: nowrap; }
body.v2 table.timesheet tbody tr:last-child th { font-size: 11.5px; }
/* division report: one block per month, like the owner's Excel (2026-11-15) */
body.v2 .mrep { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 16px; overflow: hidden; }
body.v2 .mrep-head { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
body.v2 .mrep-head h3 { margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; }
body.v2 .mrep-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
body.v2 .mrep-body > .table-wrap { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
body.v2 table.mrep-t { font-variant-numeric: tabular-nums; }
body.v2 table.mrep-t th small { display: block; font-size: 10.5px; font-weight: 500; color: var(--quiet); }
body.v2 table.mrep-t tbody th { text-align: left; white-space: nowrap; font-weight: 600; }
body.v2 table.mrep-t .tot { background: var(--surface-2); font-weight: 700; }
body.v2 table.mrep-t tr.r-plan td { background: var(--tint-ok); }
body.v2 table.mrep-t tr.r-plan td.tot { background: var(--surface-2); }
body.v2 table.mrep-t tr.r-productivity, body.v2 table.mrep-t tr.r-fulfilment { color: var(--muted); }
body.v2 .mrep-side { margin: 0; padding: 14px 16px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
body.v2 .mrep-side > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
body.v2 .mrep-side dt { color: var(--muted); font-size: 12.5px; }
body.v2 .mrep-side dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.v2 .mrep-side dd small { font-weight: 500; color: var(--muted); margin-left: 4px; }
body.v2 .mrep-side .ms-budget dd { font-size: 18px; }
body.v2 .mrep-side .ms-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface-2); margin-top: 4px; }
body.v2 .mrep-side .ms-bar .done { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
body.v2 .mrep-side .ms-bar .plan { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); }
@media (max-width: 900px) { body.v2 .mrep-body { grid-template-columns: 1fr; } body.v2 .mrep-side { border-left: 0; border-top: 1px solid var(--line); } }
body.v2 .badge.unplanned { background: var(--tint-info); color: var(--text); border: 1px dashed var(--accent); }
/* drawings (2026-11-15) */
body.v2 .dwg-upload { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 14px; margin-top: 10px; }
body.v2 .dwg-upload label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
body.v2 .dwg-upload .wide { grid-column: 1 / -1; margin: 0; }
body.v2 .dwg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
body.v2 .dwg-card { display: grid; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); color: var(--text); text-decoration: none; }
body.v2 .dwg-card:hover { border-color: var(--accent); }
body.v2 .dwg-thumb { display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
body.v2 .dwg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.v2 .dwg-meta { padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
body.v2 .dwg-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
body.v2 .dwg-tools [data-label] { flex: 1 1 200px; max-width: 320px; }
body.v2 .dwg-tools [aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
body.v2 .dwg-scroll { overflow: auto; max-height: 78vh; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
body.v2 .dwg-stage { position: relative; width: 100%; }
body.v2 .dwg-stage img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
body.v2 .dwg-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
body.v2 .dwg[data-edit="1"] .dwg-stage svg { cursor: crosshair; }
body.v2 .dwg.dwg-moving .dwg-stage svg { cursor: grab; }
body.v2 .dwg-area { fill: rgba(229, 72, 77, .18); stroke: #e5484d; }
body.v2 .dwg-area.draft { stroke-dasharray: 12 8; }
body.v2 .dwg-pin { fill: #e5484d; stroke: #fff; }
body.v2 .dwg-num { fill: #fff; font-weight: 800; text-anchor: middle; dominant-baseline: central; font-family: inherit; pointer-events: none; }
body.v2 .dwg-list { margin: 10px 0 0; padding-left: 22px; font-size: 14px; }
/* help (2026-11-15) */
body.v2 .help { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 12px; }
body.v2 .help-toc { position: sticky; top: 16px; font-size: 13.5px; }
body.v2 .help-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
body.v2 .help-topic { border-bottom: 1px solid var(--line); padding: 4px 0 22px; margin-bottom: 18px; max-width: 900px; }
body.v2 .help-topic h2 { font-size: 18px; margin: 0 0 10px; }
body.v2 .help-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.55; max-width: 75ch; }
body.v2 .help-shot { margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
body.v2 .help-shot img { display: block; width: 100%; height: auto; }
body.v2 .help-faq { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 14px; margin: 8px 0; background: var(--surface); }
body.v2 .help-faq summary { cursor: pointer; font-weight: 600; }
body.v2 .help-faq ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.55; }
@media (max-width: 900px) { body.v2 .help { grid-template-columns: 1fr; } body.v2 .help-toc { position: static; } }
