/* ── Octa Reports — application design system ───────────────────────────────
   Brand source of truth: /p1b-tokens.css (--p1b-green #2dad14, --p1b-green-dk
   #1f7a0e, Barlow Condensed headings). This file styles the APPLICATION only;
   the report document is styled by /lib/report-document.css (approved). */
:root {
  --oc-green: #2dad14; --oc-green-dk: #1f7a0e; --oc-green-bg: #eef7ea; --oc-green-line: #cfe6c6;
  --oc-ink: #16201a; --oc-text: #273029; --oc-muted: #6b746e; --oc-faint: #9aa39d;
  --oc-bg: #f3f5f2; --oc-panel: #ffffff; --oc-line: #dfe5df; --oc-line-strong: #c4ccc4;
  --oc-amber: #b45f06; --oc-amber-bg: #fff4e5; --oc-red: #b3261e; --oc-red-bg: #fdecea; --oc-blue: #1f4e8c; --oc-blue-bg: #e8f0fb;
  --oc-radius: 6px; --oc-shadow: 0 1px 2px rgba(20,30,20,.06), 0 2px 8px rgba(20,30,20,.05);
  --oc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --oc-head: "Barlow Condensed", Arial, sans-serif;
  --oc-sidebar-w: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--oc-font); font-size: 13.5px; line-height: 1.5; color: var(--oc-text); background: var(--oc-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--oc-green-dk); }
button, input, select, textarea { font: inherit; color: inherit; }
/* resets against the layered v1 stylesheet (input/select/textarea { width:100% } etc.) */
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; margin: 0; border: none; box-shadow: none; }
input[type="file"] { padding: 6px; }
.check > span { flex: 1; text-align: left; }
/* App heading reset — not inside the report sheet, where the approved document stylesheet owns heading spacing (it must match the PDF). */
:where(h1, h2, h3, h4):where(:not(.report-paper *)) { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

/* Shell */
.shell { display: grid; grid-template-columns: var(--oc-sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: #142a17; color: #d8e6d6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-logo { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.brand-name { font-family: var(--oc-head); font-size: 19px; font-weight: 700; line-height: 1.05; letter-spacing: .01em; }
.brand-sub { font-size: 10.5px; color: #93ad92; margin-top: 2px; }
.nav { display: flex; flex-direction: column; padding: 10px 10px; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; color: #c9d9c7; text-decoration: none; font-size: 13px; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(45,173,20,.22); color: #fff; }
.nav a.nav-primary { color: #fff; background: var(--oc-green); margin: 4px 0 8px; font-weight: 600; }
.nav a.nav-primary:hover { background: #269a10; }
.nav-ic { width: 18px; text-align: center; opacity: .85; font-size: 14px; }
.nav-count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.14); padding: 1px 7px; border-radius: 10px; }
.nav-count:empty { display: none; }
.nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 8px 4px; }
.sidebar-foot { margin-top: auto; padding: 12px 16px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.conn { display: flex; align-items: center; gap: 7px; color: #a9bfa7; margin-bottom: 8px; }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: #888; }
.conn.ok .dot { background: #46d12a; } .conn.err .dot { background: #e5533d; }
.me { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me .me-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .me-role { color: #93ad92; font-size: 11px; }
.me button { background: none; border: 1px solid rgba(255,255,255,.2); color: #d8e6d6; border-radius: 4px; padding: 3px 9px; font-size: 11.5px; cursor: pointer; }
.me button:hover { border-color: #fff; color: #fff; }
.sidebar-backdrop { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 24px 12px; background: var(--oc-panel); border-bottom: 1px solid var(--oc-line); position: sticky; top: 0; z-index: 20; }
.topbar-title { flex: 1; min-width: 0; }
.topbar h1 { font-family: var(--oc-head); font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--oc-ink); }
.crumbs { font-size: 11.5px; color: var(--oc-muted); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--oc-muted); text-decoration: none; } .crumbs a:hover { color: var(--oc-green-dk); text-decoration: underline; }
.crumbs:empty { display: none; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.content { padding: 20px 24px 40px; }
.hamburger { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 5px; border: 1px solid var(--oc-line-strong); background: #fff; color: var(--oc-text); font-weight: 600; font-size: 13px; cursor: pointer; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--oc-green-dk); color: var(--oc-green-dk); background: #fafdf9; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--oc-green); border-color: var(--oc-green); color: #fff; }
.btn-primary:hover { background: var(--oc-green-dk); border-color: var(--oc-green-dk); color: #fff; }
.btn-danger { color: var(--oc-red); border-color: #e4b7b3; } .btn-danger:hover { background: var(--oc-red-bg); border-color: var(--oc-red); color: var(--oc-red); }
.btn-ghost { border-color: transparent; background: transparent; } .btn-ghost:hover { background: var(--oc-green-bg); border-color: transparent; }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn-xs { padding: 2px 7px; font-size: 11.5px; }
.icon-btn { border: 1px solid transparent; background: transparent; border-radius: 5px; padding: 5px 7px; cursor: pointer; color: var(--oc-muted); line-height: 1; }
.icon-btn:hover { background: var(--oc-green-bg); color: var(--oc-green-dk); }
.icon-btn:disabled { opacity: .4; cursor: default; background: none; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: 5px 0 0 5px; margin-left: 0; } .btn-group .btn:last-child { border-radius: 0 5px 5px 0; }
.btn-group .btn.is-on { background: var(--oc-green-bg); color: var(--oc-green-dk); border-color: var(--oc-green-dk); position: relative; z-index: 1; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label, .lbl { font-size: 11px; font-weight: 700; color: var(--oc-muted); text-transform: uppercase; letter-spacing: .05em; }
.input, select.input, textarea.input { width: 100%; padding: 7px 10px; border: 1px solid var(--oc-line-strong); border-radius: 5px; background: #fff; font-size: 13px; outline: none; }
.input:focus { border-color: var(--oc-green); box-shadow: 0 0 0 3px rgba(45,173,20,.15); }
textarea.input { min-height: 84px; resize: vertical; font-family: inherit; }
.help { font-size: 11.5px; color: var(--oc-muted); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; padding: 6px 0; }
.check input { margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--oc-line-strong); background: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--oc-green); } .chip.is-on { background: var(--oc-green-bg); border-color: var(--oc-green); color: var(--oc-green-dk); font-weight: 600; }

/* Panels, tables, badges */
.panel { background: var(--oc-panel); border: 1px solid var(--oc-line); border-radius: var(--oc-radius); box-shadow: var(--oc-shadow); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--oc-line); }
.panel-h h2, .panel-h h3 { font-size: 13px; font-weight: 700; color: var(--oc-ink); text-transform: uppercase; letter-spacing: .04em; }
.panel-b { padding: 14px; }
.panel-f { padding: 10px 14px; border-top: 1px solid var(--oc-line); display: flex; gap: 8px; justify-content: flex-end; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-main { grid-template-columns: 2fr 1fr; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--oc-line); border-radius: var(--oc-radius); padding: 10px 12px; text-decoration: none; color: inherit; display: block; }
.kpi:hover { border-color: var(--oc-green); }
.kpi .k-label { font-size: 11px; color: var(--oc-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.kpi .k-value { font-family: var(--oc-head); font-size: 26px; font-weight: 700; color: var(--oc-ink); line-height: 1.1; margin-top: 2px; }
.kpi .k-sub { font-size: 11px; color: var(--oc-muted); }
.kpi.warn .k-value { color: var(--oc-amber); } .kpi.bad .k-value { color: var(--oc-red); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--oc-muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--oc-line); background: #fafbfa; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--oc-line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.row-link { cursor: pointer; } .tbl tr.row-link:hover td { background: #f7faf6; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .muted, .muted { color: var(--oc-muted); } .small { font-size: 12px; } .tiny { font-size: 11px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.badge-draft { background: #f1f3f0; color: #4a544c; border-color: #dfe5df; }
.badge-in_review { background: var(--oc-amber-bg); color: var(--oc-amber); border-color: #f1d9b5; }
.badge-ready { background: var(--oc-blue-bg); color: var(--oc-blue); border-color: #c5d6ef; }
.badge-final { background: var(--oc-green-bg); color: var(--oc-green-dk); border-color: var(--oc-green-line); }
.badge-type { background: #fff; color: var(--oc-text); border-color: var(--oc-line-strong); font-weight: 600; }
.badge-ok { background: var(--oc-green-bg); color: var(--oc-green-dk); } .badge-err { background: var(--oc-red-bg); color: var(--oc-red); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .input { width: auto; }
.toolbar .spacer { flex: 1; }
.empty { padding: 36px 20px; text-align: center; color: var(--oc-muted); }
.empty h3 { color: var(--oc-text); font-size: 15px; margin-bottom: 4px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--oc-muted); padding: 20px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--oc-line-strong); border-top-color: var(--oc-green); border-radius: 50%; animation: spin .8s linear infinite; flex: 0 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { padding: 10px 12px; border-radius: 5px; font-size: 13px; border: 1px solid; margin-bottom: 12px; }
.alert-err { background: var(--oc-red-bg); border-color: #efc1bd; color: var(--oc-red); }
.alert-warn { background: var(--oc-amber-bg); border-color: #f1d9b5; color: var(--oc-amber); }
.alert-ok { background: var(--oc-green-bg); border-color: var(--oc-green-line); color: var(--oc-green-dk); }
.alert-info { background: var(--oc-blue-bg); border-color: #c5d6ef; color: var(--oc-blue); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 12.5px; }
.kv dt { color: var(--oc-muted); } .kv dd { margin: 0; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--oc-line); font-size: 12.5px; }
.list-item:last-child { border-bottom: none; }
.list-item .when { color: var(--oc-faint); font-size: 11px; white-space: nowrap; margin-left: auto; }
.ev-ic { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--oc-green-bg); color: var(--oc-green-dk); flex: 0 0 auto; }
.ev-ic.err { background: var(--oc-red-bg); color: var(--oc-red); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 14px; font-size: 12px; color: var(--oc-muted); }

/* Toasts, modals, menus */
.toasts { position: fixed; top: 14px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1b2a1d; color: #fff; padding: 10px 14px; border-radius: 6px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 420px; display: flex; gap: 10px; align-items: center; }
.toast.ok { border-left: 4px solid var(--oc-green); } .toast.err { border-left: 4px solid #e5533d; } .toast.info { border-left: 4px solid #5aa0e8; }
.modal-back { position: fixed; inset: 0; background: rgba(10,20,10,.45); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 8px; width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(1100px, 100%); } .modal.xl { width: min(1400px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--oc-line); }
.modal-h h2 { font-size: 15px; } .modal-b { padding: 16px; overflow: auto; } .modal-f { padding: 12px 16px; border-top: 1px solid var(--oc-line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.modal-f .left { margin-right: auto; font-size: 12px; color: var(--oc-muted); }
.menu { position: absolute; z-index: 400; background: #fff; border: 1px solid var(--oc-line-strong); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14); min-width: 190px; padding: 4px; }
.menu button { display: flex; width: 100%; text-align: left; gap: 8px; align-items: center; padding: 7px 10px; border: none; background: none; border-radius: 4px; cursor: pointer; font-size: 13px; }
.menu button:hover { background: var(--oc-green-bg); } .menu button:disabled { opacity: .5; cursor: default; background: none; }
.menu .menu-sep { height: 1px; background: var(--oc-line); margin: 4px 0; }
.menu .menu-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--oc-muted); padding: 6px 10px 2px; font-weight: 700; }

/* Report type cards / job picker */
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.type-card { border: 1px solid var(--oc-line-strong); border-radius: 6px; padding: 10px 12px; cursor: pointer; background: #fff; }
.type-card:hover { border-color: var(--oc-green); } .type-card.is-on { border-color: var(--oc-green); background: var(--oc-green-bg); box-shadow: inset 0 0 0 1px var(--oc-green); }
.type-card .tc-name { font-weight: 700; font-size: 13.5px; } .type-card .tc-desc { font-size: 11.5px; color: var(--oc-muted); margin-top: 2px; }
.job-list { max-height: 520px; overflow: auto; border: 1px solid var(--oc-line); border-radius: 6px; }
.job-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 12px; border-bottom: 1px solid var(--oc-line); cursor: pointer; font-size: 12.5px; }
.job-row:hover { background: #f7faf6; } .job-row.is-on { background: var(--oc-green-bg); }
.job-row .jr-name { font-weight: 600; } .job-row .jr-meta { color: var(--oc-muted); font-size: 11.5px; }
.steps { display: flex; gap: 4px; margin-bottom: 16px; }
.step { flex: 1; padding: 8px 10px; border-radius: 5px; background: #e9ede8; font-size: 12px; font-weight: 600; color: var(--oc-muted); }
.step.is-on { background: var(--oc-green); color: #fff; } .step.is-done { background: var(--oc-green-bg); color: var(--oc-green-dk); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-cell { position: relative; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; background: #eee; aspect-ratio: 4/3; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell.is-on { border-color: var(--oc-green); } .photo-cell.is-on::after { content: "✓"; position: absolute; top: 4px; right: 4px; background: var(--oc-green); color: #fff; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.photo-cell .pc-cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gen-log { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; background: #fafdf9; border: 1px solid var(--oc-green-line); border-radius: 5px; padding: 10px; max-height: 260px; overflow: auto; white-space: pre-wrap; color: #334; }
.progress-line { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--oc-green-dk); }

/* ── Editor ──────────────────────────────────────────────────────────────── */
.editor { display: grid; grid-template-columns: 240px 1fr 280px; gap: 0; height: calc(100vh - 61px); margin: -20px -24px -40px; }
.ed-left, .ed-right { background: #fff; border-right: 1px solid var(--oc-line); overflow: auto; font-size: 12.5px; }
.ed-right { border-right: none; border-left: 1px solid var(--oc-line); }
.ed-center { background: #e4e8e2; overflow: auto; padding: 24px 28px 80px; }
.ed-panel-h { padding: 10px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--oc-muted); border-bottom: 1px solid var(--oc-line); display: flex; justify-content: space-between; align-items: center; }
.ed-panel-b { padding: 10px 12px; }
.outline a { display: flex; gap: 6px; padding: 5px 8px; border-radius: 4px; text-decoration: none; color: var(--oc-text); font-size: 12.5px; align-items: center; }
.outline a:hover { background: var(--oc-green-bg); } .outline a.is-on { background: var(--oc-green-bg); color: var(--oc-green-dk); font-weight: 600; }
.outline .lock { color: var(--oc-faint); font-size: 10px; margin-left: auto; }
.insert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.insert-grid button { border: 1px solid var(--oc-line-strong); background: #fff; border-radius: 5px; padding: 8px 6px; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.insert-grid button:hover { border-color: var(--oc-green); background: var(--oc-green-bg); } .insert-grid button span { font-size: 16px; }
.ed-topbar { display: flex; align-items: center; gap: 6px; }
.save-state { font-size: 12px; color: var(--oc-muted); min-width: 120px; }
.save-state.saving { color: var(--oc-amber); } .save-state.error { color: var(--oc-red); font-weight: 600; }
/* The on-screen page is a real A4 sheet (210mm) with the PDF's 12mm side margins, so text wraps exactly as it
   does in the export. It never shrinks to fit a narrower column — the column scrolls sideways instead. */
.canvas-wrap { width: calc(210mm + 40px); max-width: none; margin: 0 auto; padding: 0 20px; }
.editor .ed-center { padding-left: 0; padding-right: 0; } /* the gutter lives on .canvas-wrap so it survives horizontal overflow */
.report-paper.canvas { position: relative; margin: 0 auto; width: 210mm; max-width: none; padding: 16mm 12mm 14mm; border: none; box-shadow: 0 1px 2px rgba(20,30,20,.08), 0 10px 30px rgba(20,30,20,.10); }
.final-banner { background: var(--oc-green-bg); border: 1px solid var(--oc-green-line); color: var(--oc-green-dk); padding: 8px 12px; border-radius: 5px; font-size: 12.5px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.preview-frame { width: 100%; height: calc(100vh - 140px); border: 1px solid var(--oc-line); background: #fff; border-radius: 6px; }

/* Canvas interaction */
.canvas .oc-section { position: relative; border-radius: 4px; transition: box-shadow .12s; }
.canvas .oc-section:hover { box-shadow: 0 0 0 1px var(--oc-green-line); }
.canvas .oc-section.is-selected { box-shadow: 0 0 0 1.5px var(--oc-green); }
.canvas .oc-section.is-dragging { opacity: .4; }
.canvas .oc-section.drop-before { box-shadow: 0 -3px 0 0 var(--oc-green); } .canvas .oc-section.drop-after { box-shadow: 0 3px 0 0 var(--oc-green); }
.canvas .oc-block { position: relative; border-radius: 3px; }
.canvas .oc-block:hover { outline: 1px dashed var(--oc-green-line); outline-offset: 2px; }
.canvas .oc-block.is-selected { outline: 1.5px solid var(--oc-green); outline-offset: 2px; }
.canvas [contenteditable="true"] { outline: none; cursor: text; min-height: 1em; }
.canvas [contenteditable="true"]:focus { background: #fbfefa; box-shadow: inset 0 0 0 1px var(--oc-green-line); }
.canvas .oc-type-table td[contenteditable="true"], .canvas .oc-type-table th[contenteditable="true"] { cursor: text; }
.oc-sec-tools { position: absolute; top: -14px; right: 6px; display: none; gap: 2px; background: #fff; border: 1px solid var(--oc-line-strong); border-radius: 5px; padding: 2px; box-shadow: var(--oc-shadow); z-index: 5; font-family: var(--oc-font); }
.canvas .oc-section:hover > .oc-sec-tools, .canvas .oc-section.is-selected > .oc-sec-tools { display: inline-flex; }
.oc-sec-tools button, .oc-blk-tools button { border: none; background: none; padding: 4px 7px; font-size: 11.5px; cursor: pointer; border-radius: 3px; color: var(--oc-text); line-height: 1; white-space: nowrap; }
.oc-sec-tools button:hover, .oc-blk-tools button:hover { background: var(--oc-green-bg); color: var(--oc-green-dk); }
.oc-sec-tools button:disabled, .oc-blk-tools button:disabled { opacity: .35; cursor: default; background: none; }
.oc-sec-tools .drag { cursor: grab; color: var(--oc-faint); }
.oc-blk-tools { position: absolute; top: 2px; right: -4px; transform: translateX(100%); display: none; flex-direction: column; background: #fff; border: 1px solid var(--oc-line-strong); border-radius: 5px; padding: 2px; box-shadow: var(--oc-shadow); z-index: 4; font-family: var(--oc-font); }
.canvas .oc-block:hover > .oc-blk-tools, .canvas .oc-block.is-selected > .oc-blk-tools { display: flex; }
/* Insert handles take no space in the flow (height 0, so block margins collapse exactly as in the PDF);
   the hit area and the button are positioned over the gap. */
.oc-add { position: relative; display: block; height: 0; margin: 0; opacity: 0; transition: opacity .12s; font-family: var(--oc-font); z-index: 3; }
.oc-add::after { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 14px; }
.oc-add:hover, .oc-add.is-open { opacity: 1; }
.oc-add::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed var(--oc-green); }
.oc-add button { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); z-index: 1; background: #fff; border: 1px solid var(--oc-green); color: var(--oc-green-dk); border-radius: 10px; font-size: 11px; padding: 0 9px; height: 16px; line-height: 14px; cursor: pointer; }
.canvas .oc-section.is-locked > .oc-sec-tools .only-unlocked { display: none; }
.canvas .oc-photo { cursor: pointer; } .canvas .oc-photo.is-selected { outline: 2px solid var(--oc-green); }
.canvas .oc-photo .oc-photo-x { position: absolute; top: 4px; right: 4px; background: rgba(179,38,30,.9); color: #fff; border: none; border-radius: 3px; font-size: 11px; padding: 2px 6px; cursor: pointer; display: none; font-family: var(--oc-font); }
.canvas .oc-photo:hover .oc-photo-x { display: block; }
.canvas .oc-figure.is-selected { outline: 2px solid var(--oc-green); outline-offset: 2px; }
.canvas .oc-pagebreak { border-top: 2px dashed #bbb; margin: 10px 0; position: relative; }
.canvas .oc-pagebreak::after { content: "Page break"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: #e4e8e2; color: #777; font-size: 10px; padding: 0 6px; font-family: var(--oc-font); }
.sel-bar { position: absolute; z-index: 60; background: #1b2a1d; color: #fff; border-radius: 6px; padding: 3px; display: flex; gap: 1px; box-shadow: 0 6px 20px rgba(0,0,0,.3); font-family: var(--oc-font); }
.sel-bar button { background: none; border: none; color: #fff; padding: 5px 8px; border-radius: 4px; cursor: pointer; font-size: 12.5px; line-height: 1; }
.sel-bar button:hover { background: rgba(255,255,255,.15); } .sel-bar button.is-on { background: var(--oc-green); }
.sel-bar .sep { width: 1px; background: rgba(255,255,255,.2); margin: 2px 3px; }
.sel-bar .ai { color: #8ff07a; font-weight: 700; }
.prop-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.prop-row label { font-size: 11px; font-weight: 700; color: var(--oc-muted); text-transform: uppercase; letter-spacing: .05em; }
.range { width: 100%; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp > div { border: 1px solid var(--oc-line); border-radius: 6px; padding: 10px 12px; font-size: 12.5px; max-height: 50vh; overflow: auto; background: #fff; }
.cmp h4 { font-size: 11px; text-transform: uppercase; color: var(--oc-muted); letter-spacing: .05em; margin-bottom: 6px; }
.cmp .suggested { border-color: var(--oc-green); }
.cmp .report-paper { border: none; padding: 0; box-shadow: none; font-size: 12.5px; }
.vlist .v-item { padding: 10px 12px; border-bottom: 1px solid var(--oc-line); }
.vlist .v-item.is-current { background: var(--oc-green-bg); }
.vlist .v-head { display: flex; justify-content: space-between; font-weight: 700; font-size: 12.5px; }
.vlist .v-meta { font-size: 11.5px; color: var(--oc-muted); } .vlist .v-sum { font-size: 12px; margin: 3px 0 6px; }
.vlist .v-actions { display: flex; gap: 4px; }
.diff del { background: #fde6e4; color: #8a1d16; text-decoration: line-through; } .diff ins { background: #e3f6dc; color: #1f6b10; text-decoration: none; }
.diff-sec { margin-bottom: 14px; } .diff-sec h4 { font-size: 12.5px; margin-bottom: 4px; } .diff-blk { padding: 6px 8px; border-left: 3px solid var(--oc-line); margin-bottom: 4px; font-size: 12.5px; white-space: pre-wrap; }
.diff-blk.added { border-color: var(--oc-green); } .diff-blk.removed { border-color: var(--oc-red); }

@media (max-width: 1100px) { .editor { grid-template-columns: 200px 1fr; } .ed-right { position: fixed; right: 0; top: 61px; bottom: 0; width: 280px; z-index: 30; transform: translateX(100%); transition: transform .15s; } .ed-right.is-open { transform: none; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--oc-sidebar-w); z-index: 100; transform: translateX(-100%); transition: transform .15s; }
  .sidebar.is-open { transform: none; } .sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; }
  .hamburger { display: inline-block; } .content { padding: 14px 16px 40px; } .topbar { padding: 10px 16px; } .topbar h1 { font-size: 20px; }
  .grid-2, .grid-3, .grid-main { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; height: auto; margin: -14px -16px -40px; } .ed-left { display: none; } .ed-center { padding: 12px; }
  .ellipsis { max-width: 160px; }
}

/* v2 workspace — P1B green, quiet surfaces and a consistent application scale. */
:root { --oc-bg:#f6f7f8; --oc-ink:#18221d; --oc-text:#344039; --oc-muted:#748078; --oc-line:#e5e9e6; --oc-line-strong:#d5dcd7; --oc-radius:10px; --oc-shadow:0 2px 3px #18221d03; --oc-sidebar-w:238px; --oc-head:var(--oc-font); }
body { font-size:13px; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button,a { transition:background .15s,color .15s,border-color .15s,box-shadow .15s; }
:focus-visible { outline:3px solid #2dad1460; outline-offset:3px; }
.skip-link { position:fixed; left:16px; top:-60px; z-index:2000; padding:12px; background:white; }
.skip-link:focus { top:12px; }
.sidebar { background:#fff; color:var(--oc-text); border-right:1px solid var(--oc-line); padding:0 12px; }
.brand { padding:27px 10px 25px; border:0; gap:11px; color:var(--oc-ink); }
.brand-logo { width:39px; height:39px; padding:0; }
.brand-name { font-family:var(--oc-font); font-size:19px; letter-spacing:-.7px; }
.brand-sub { color:var(--oc-muted); font-size:9px; margin-top:5px; }
.workspace-label { margin:0 10px 20px; padding:11px 0; border-top:1px solid var(--oc-line); border-bottom:1px solid var(--oc-line); font-size:9px; letter-spacing:1.2px; font-weight:700; color:var(--oc-muted); display:flex; justify-content:space-between; align-items:center; }
.workspace-label span { color:var(--oc-green-dk); background:var(--oc-green-bg); border:1px solid var(--oc-green-line); padding:1px 5px; border-radius:4px; font-size:8px; }
.nav { padding:0; gap:5px; }
.nav a { color:#617067; padding:11px 13px; font-size:12px; border-radius:7px; gap:12px; }
.nav a:hover { color:var(--oc-ink); background:#f5f7f5; }
.nav a.active { color:var(--oc-green-dk); background:#edf6e9; font-weight:650; box-shadow:inset 3px 0 var(--oc-green); }
.nav a.nav-primary { order:-1; margin:0 0 19px; padding:12px; justify-content:center; background:var(--oc-green); color:#fff; box-shadow:0 2px 3px #2dad1418; }
.nav a.nav-primary.active { background:var(--oc-green-dk); }
.nav-ic { width:18px; height:18px; opacity:1; display:flex; }
.nav-count { background:#dcecd5; color:var(--oc-green-dk); font-size:10px; }
.nav-sep { background:var(--oc-line); margin:20px 10px 9px; }
.nav-label { font-size:9px; font-weight:700; letter-spacing:1.2px; color:#8b968e; padding:0 13px 7px; }
.sidebar-foot { padding:18px 4px; border-color:var(--oc-line); }
.conn { font-size:10px; color:var(--oc-muted); padding:0 8px 16px; margin-bottom:14px; border-bottom:1px solid var(--oc-line); }
.conn .dot { width:6px; height:6px; }.conn.ok .dot { background:var(--oc-green); box-shadow:0 0 0 3px #2dad1412; }
.me { gap:8px; }.me-details { min-width:0; flex:1; }.me .me-name { color:var(--oc-ink); font-size:11px; }.me .me-role { color:var(--oc-muted); font-size:10px; }
.avatar { width:32px; height:32px; display:grid; place-items:center; background:#edf0ec; color:#52634f; border:1px solid #dfe5dc; border-radius:50%; font-size:10px; font-weight:700; }
.me button { color:#79867d; padding:5px; border:0; }.me button:hover { background:#edf6e9; color:var(--oc-green-dk); }.me button .icon { width:16px; height:16px; }
.topbar { min-height:78px; padding:16px 32px; gap:12px; }.topbar h1 { font-family:var(--oc-font); font-size:17px; letter-spacing:-.35px; line-height:1.3; }.crumbs { font-size:10px; margin-bottom:4px; }
.content { padding:30px 32px 40px; max-width:1760px; width:100%; margin:0 auto; }
.page-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:26px; }.eyebrow { font-size:9px; color:var(--oc-muted); letter-spacing:1.5px; font-weight:700; margin-bottom:9px; }.page-intro h2 { font-size:27px; font-weight:650; letter-spacing:-1px; line-height:1.25; }.page-intro p { color:var(--oc-muted); margin:8px 0 0; font-size:12px; }.period-label { display:flex; align-items:center; gap:8px; border:1px solid var(--oc-line); background:white; padding:8px 12px; border-radius:6px; font-size:11px; white-space:nowrap; }.period-label .icon { width:14px; height:14px; }
.btn { padding:10px 14px; border-radius:6px; font-size:11px; font-weight:600; box-shadow:0 1px 2px #18221d05; gap:7px; }.btn .icon { width:15px; height:15px; }.btn-primary { background:var(--oc-green); border-color:var(--oc-green); }.btn-sm { padding:7px 10px; font-size:10px; }.btn-xs { padding:6px 9px; font-size:10px; }.icon-btn { display:inline-flex; align-items:center; justify-content:center; min-width:30px; min-height:30px; }.icon-btn .icon { width:16px; height:16px; }
.kpis { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:18px; }.kpi { padding:21px 22px 16px; box-shadow:var(--oc-shadow); }.kpi:hover { box-shadow:0 4px 12px #18221d06; }.k-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }.kpi .k-label { font-size:11px; text-transform:none; letter-spacing:0; font-weight:500; }.metric-icon { width:17px; height:17px; color:#81917f; }.kpi .k-value { font-family:var(--oc-font); font-size:36px; font-weight:600; letter-spacing:-1.5px; margin:17px 0 15px; line-height:1; font-variant-numeric:tabular-nums; }.kpi .k-sub { display:flex; align-items:center; justify-content:space-between; font-size:10px; border-top:1px solid #f0f2ef; padding-top:12px; }.k-sub .icon { width:13px; height:13px; }
.workflow-strip { display:flex; flex-wrap:wrap; align-items:center; gap:22px; padding:14px 18px; background:#edf3eb; border:1px solid #e0eadc; border-radius:8px; margin-bottom:26px; font-size:11px; }.workflow-title { display:flex; gap:8px; align-items:center; font-weight:600; margin-right:auto; color:#41523e; }.workflow-strip a { text-decoration:none; color:#687764; }.workflow-strip strong { color:#2e4229; font-weight:650; margin-right:3px; }
.grid-main { grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr); }.grid > * { min-width:0; }.panel { overflow:hidden; }.panel-h { padding:18px 20px; min-height:64px; }.panel-h h2 { font-size:13px; font-weight:650; letter-spacing:-.2px; }.panel-caption { margin:4px 0 0; color:var(--oc-muted); font-size:10px; }.panel-b { padding:20px; }.panel-f { padding:16px 20px; }.table-scroll { overflow-x:auto; }.tbl th { background:#fafbfa; font-size:9px; letter-spacing:.7px; padding:12px 16px; color:#859087; font-weight:600; }.tbl td { padding:16px; font-size:11px; border-color:#eef1ee; }.tbl td strong { font-weight:600; color:var(--oc-ink); }.tbl .tiny { margin-top:4px; font-size:10px; }.tbl a:not(.btn) { text-decoration:none; }.tbl .small { font-size:11px; }.badge { font-size:9px; padding:4px 8px; border-radius:5px; font-weight:500; white-space:nowrap; }.badge-type { background:#f4f5f6; color:#667269; border:1px solid #e8ece9; }.badge-draft { background:#fff5e8; color:#a67426; }.badge-in_review { background:#eef2fa; color:#526a9b; }.badge-ready,.badge-final { background:#edf7e9; color:#488337; }
.list-item { padding:14px 0; font-size:11px; gap:11px; }.list-item .when { font-size:9px; }.ev-ic { width:28px; height:28px; border:1px solid #e2e9de; background:#f4f8f1; border-radius:7px; }.ev-ic .icon { width:13px; height:13px; }.list-item .tiny { font-size:10px; margin-top:4px; }.list-item a { text-decoration:none; }.operations-strip { display:flex; gap:18px; align-items:center; flex-wrap:wrap; padding:20px 2px; margin-top:8px; color:var(--oc-muted); font-size:10px; }.operations-strip .icon { width:14px; height:14px; }.operations-strip strong { font-weight:500; margin-right:auto; }.operations-strip a { color:var(--oc-muted); text-decoration:none; }
.toolbar { padding:16px; background:white; border:1px solid var(--oc-line); border-radius:9px; gap:9px; margin-bottom:18px; }.toolbar .input { font-size:11px; min-height:35px; }.input,select.input,textarea.input { padding:10px 12px; font-size:12px; border-radius:6px; border-color:#dce3dd; }.field { gap:7px; margin-bottom:18px; }.field label,.lbl,.prop-row label { text-transform:none; letter-spacing:0; font-size:11px; font-weight:600; color:#59675e; }input[type=checkbox],input[type=radio] { accent-color:var(--oc-green); }.help { line-height:1.65; }.empty { padding:48px 24px; font-size:12px; background:#fdfefd; }.loading { padding:28px; font-size:12px; }.pager:empty { display:none; }.pager { border-top:1px solid var(--oc-line); padding:14px 18px; }
.steps { background:white; border:1px solid var(--oc-line); border-radius:9px; padding:8px; gap:8px; margin-bottom:24px; }.step { background:transparent; padding:14px 18px; font-size:12px; border-radius:6px; }.step.is-on { background:#edf6e9; color:var(--oc-green-dk); box-shadow:inset 0 -2px var(--oc-green); }.step.is-done { background:#f6f9f4; }.type-cards { gap:14px; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); }.type-card { padding:22px; border-color:var(--oc-line); border-radius:8px; min-height:118px; }.type-card .tc-name { font-size:13px; }.type-card .tc-desc { font-size:11px; line-height:1.65; margin-top:8px; }.job-row { padding:17px 18px; }.job-row .jr-name { margin-bottom:5px; }.job-row .jr-meta { font-size:11px; }.chip { border-radius:5px; padding:6px 10px; font-size:11px; }
.editor { margin:-30px -32px -40px; height:calc(100vh - 78px); grid-template-columns:210px minmax(0,1fr) 260px; }.ed-center { background:#edf0ed; padding:32px 28px 80px; }.ed-panel-h { padding:17px 16px; font-size:10px; letter-spacing:.7px; }.ed-panel-b { padding:16px; }.outline a { padding:9px 10px; font-size:11px; gap:8px; }.insert-grid button { border-color:var(--oc-line); padding:12px 6px; border-radius:6px; font-size:10px; gap:8px; }.insert-grid button .icon { width:17px; height:17px; }.save-state { font-size:10px; min-width:90px; }.oc-sec-tools .icon,.oc-blk-tools .icon { width:12px; height:12px; }.oc-add .icon { width:10px; height:10px; }.sel-bar .icon { width:13px; height:13px; }.modal { border-radius:12px; box-shadow:0 24px 80px #15211930; }.modal-back { background:#14221966; backdrop-filter:blur(3px); }.modal-h,.modal-f { padding:18px 22px; }.modal-b { padding:22px; }.menu { border-color:var(--oc-line); padding:6px; border-radius:8px; }.menu button { font-size:12px; padding:10px; }.menu .icon { width:15px; height:15px; }
body[data-page=jobs] #list,body[data-page=activity] #list { overflow-x:auto; }
@media(min-width:1450px) { .content { padding:36px 40px 40px; }.editor { margin:-36px -40px -40px; } }
@media(max-width:1200px) { .grid-main { grid-template-columns:1fr; }.editor { grid-template-columns:190px minmax(0,1fr); }.ed-right { position:fixed; top:78px; bottom:0; right:0; width:280px; z-index:30; transform:translateX(100%); }.ed-right.is-open { transform:none; }.kpi { padding:18px; }.topbar-actions { gap:5px; } }
@media(max-width:900px) { .sidebar { padding:0 12px; }.hamburger { display:inline-flex; }.content { padding:24px 20px 40px; }.topbar { padding:14px 20px; }.editor { margin:-24px -20px -40px; grid-template-columns:1fr; height:auto; }.ed-center { padding:20px; }.kpis { gap:10px; }.kpi .k-value { font-size:30px; }.grid-2,.grid-3 { grid-template-columns:1fr; } }
@media(max-width:600px) { .content { padding:22px 14px 32px; }.topbar { padding:12px 14px; flex-wrap:wrap; min-height:70px; }.topbar h1 { font-size:15px; }.topbar-actions { max-width:100%; }.page-intro { align-items:flex-start; }.page-intro h2 { font-size:23px; }.period-label { display:none; }.kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.kpi { padding:16px; }.kpi .k-label { font-size:10px; }.kpi .k-sub { font-size:9px; }.workflow-strip { gap:12px 18px; }.workflow-title { flex-basis:100%; }.panel-h { padding:16px; flex-wrap:wrap; }.panel-h .input { max-width:100%; }.toolbar .input { flex:1; min-width:0!important; max-width:100%; }.toolbar input[type=search],.toolbar input:not([type]) { flex-basis:100%; }.steps { gap:2px; padding:5px; }.step { padding:10px 6px; font-size:10px; }.editor { margin:-22px -14px -32px; }.cmp { grid-template-columns:1fr; }.modal-back { padding:10px; }.modal { max-height:calc(100dvh - 20px); }.operations-strip { gap:12px; }.operations-strip strong { flex-basis:80%; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
/* Keep application headings independent of the printed report typography. */
.panel-h h2 { text-transform:none; font-family:var(--oc-font); }
.hamburger { display:none; }
body[data-page=dashboard] .table-scroll .tbl th:nth-child(3),body[data-page=dashboard] .table-scroll .tbl td:nth-child(3),body[data-page=dashboard] .table-scroll .tbl th:nth-child(6),body[data-page=dashboard] .table-scroll .tbl td:nth-child(6) { display:none; }
body[data-page=dashboard] .panel:has(>table),body[data-page=users] .panel { overflow-x:auto; }
.ed-topbar { flex-wrap:wrap; justify-content:flex-end; }
@media(max-width:900px) { .hamburger { display:inline-flex; } }
@media(max-width:600px) { .toolbar .input { flex:1 1 135px; width:calc(50% - 9px); }.toolbar input:not([type]) { flex:1 1 100%; width:100%; }.toolbar .spacer { display:none; }.sidebar { overflow-y:auto; }.sidebar-foot { margin-top:24px; }.type-cards { grid-template-columns:1fr; } }

/* P1B product identity: forest navigation, warm paper, and semantic colour. */
:root { --oc-bg:#f4f6ef; --oc-ink:#203523; --oc-text:#3d4d3e; --oc-muted:#7b8978; --oc-line:#e1e7da; --oc-line-strong:#cfd9c7; }
.sidebar { background:#183a21; color:#bbd1b0; border-right:0; padding:0 14px; }.brand { color:white; padding:28px 8px; }.brand-logo { width:35px; height:35px; background:#f4f7ec; padding:3px; border-radius:7px; }.brand-name { font-size:21px; letter-spacing:-1px; }.brand-slash { color:#779c66; padding:0 4px; font-weight:300; }.brand-product { font-weight:400; font-size:18px; }.brand-sub { color:#8dac7f; font-size:8px; }.workspace-label { color:#92b184; border-color:#385539; font-size:8px; padding:13px 0; margin-bottom:22px; }.workspace-label span { background:#294d28; border-color:#4a7040; color:#bfdba1; }.nav a { color:#a8c19b; font-size:12px; padding:12px; }.nav a:hover { background:#244a2a; color:#edf5e5; }.nav a.active { background:#315b2a; box-shadow:inset 3px 0 #8cd45f; color:#e5f4cf; }.nav a.nav-primary { background:#2dad14; box-shadow:0 3px 0 #102a14; border:1px solid #4db437; margin-bottom:22px; color:#fff; }.nav a.nav-primary:hover { background:#38ba1d; }.nav a.nav-primary.active { background:#2dad14; color:white; }.nav-ic .icon { width:19px; height:19px; }.nav-count { background:#48693a; color:#d9edbd; border-radius:5px; }.nav-sep { background:#385339; }.nav-label { color:#6d9360; }.sidebar-foot { border-color:#385339; }.conn { color:#91b17f; border-color:#385339; }.me .me-name { color:#dcebd2; }.me .me-role { color:#81a270; }.avatar { background:#385b2e; border:1px solid #527341; color:#c0dca9; border-radius:8px; }.me button { color:#93b180; }.me button:hover { color:white; background:#31532a; }.topbar { background:#fffefa; border-bottom-color:#e1e7da; }.page-icon { display:grid; place-items:center; width:35px; height:35px; border:1px solid #dce8cf; background:#eff5e6; border-radius:8px; color:#598641; }.page-icon .icon { width:18px; height:18px; }.topbar h1 { font-weight:650; }.page-intro h2 { font-size:30px; letter-spacing:-1.3px; color:#243d26; }.page-intro .eyebrow { color:#64884e; font:9px ui-monospace,SFMono-Regular,monospace; letter-spacing:1.6px; }.page-intro .eyebrow::before { content:''; display:inline-block; width:7px; height:7px; margin-right:8px; background:#2dad14; }.period-label { background:#fffef7; border-color:#dbe3d2; color:#788d69; }
.kpi { border-color:#dce5d1; border-radius:9px; background:#fffefa; position:relative; }.kpi:first-child { background:#eaf2df; border-color:#d5e2c4; }.kpi:nth-child(2) { background:#fff7e8; border-color:#efe2c6; }.kpi:nth-child(3) { background:#edf2f6; border-color:#dbe4ed; }.kpi:nth-child(4) { background:#183a21; border-color:#183a21; }.kpi:nth-child(4) .k-label { color:#a9c49a; }.kpi:nth-child(4) .k-value { color:#edf6e1; }.kpi:nth-child(4) .k-sub { color:#a9c49a; border-color:#365631; }.kpi .k-label { color:#637657; font-size:11px; }.kpi .k-value { font-size:38px; font-weight:550; color:#274127; }.kpi .k-sub { border-color:#d8e3cc; color:#7c8c70; }.kpi:nth-child(2) .k-label,.kpi:nth-child(2) .k-sub { color:#a48b57; }.kpi:nth-child(2) .k-value { color:#7e602a; }.kpi:nth-child(2) .k-sub { border-color:#efe2c5; }.kpi:nth-child(3) .k-label,.kpi:nth-child(3) .k-sub { color:#768aa0; }.kpi:nth-child(3) .k-value { color:#476680; }.kpi:nth-child(3) .k-sub { border-color:#dbe3ea; }.metric-symbol { width:30px; height:30px; display:grid; place-items:center; border-radius:7px; background:#dae8c8; color:#628646; border:1px solid #cbdcb5; }.metric-symbol .icon { width:17px; height:17px; }.kpi:nth-child(2) .metric-symbol { background:#f8e6be; border-color:#f0dca8; color:#a57c36; }.kpi:nth-child(3) .metric-symbol { background:#dce7f0; border-color:#cddce8; color:#6285a1; }.kpi:nth-child(4) .metric-symbol { background:#34562b; border-color:#456938; color:#bad993; }
.workflow-strip { background:#fffef9; border-color:#dce5d0; border-left:3px solid #739d52; }.workflow-title { color:#506c3a; }.workflow-title>.icon { color:#699348; }.panel { background:#fffefa; border-color:#e0e6d8; }.panel-h { background:#fffefa; }.panel-h h2 { display:flex; align-items:center; gap:9px; color:#3e5730; }.panel-h h2::before { content:''; display:inline-block; width:17px; height:17px; background:#729b54; mask:url('/app/icons/file.svg') center/contain no-repeat; -webkit-mask:url('/app/icons/file.svg') center/contain no-repeat; }.panel-h h2:has(.icon)::before { display:none; }body[data-page=settings] .panel-h h2::before { mask-image:url('/app/icons/settings.svg'); -webkit-mask-image:url('/app/icons/settings.svg'); }body[data-page=jobs] .panel-h h2::before { mask-image:url('/app/icons/building.svg'); -webkit-mask-image:url('/app/icons/building.svg'); }.tbl th { background:#f6f8f0; color:#7b8d6b; border-color:#e6ebde; }.tbl td { border-color:#edf0e6; }.tbl tr.row-link:hover td { background:#f2f7e9; }.btn { border-color:#d4dfc9; background:#fffef9; color:#526c40; }.btn-primary { background:#2dad14; border-color:#2aa611; color:#fff; }.btn-primary:hover { background:#268f13; color:#fff; }.badge-in_review { color:#547799; background:#e5eef6; }.badge-draft { color:#9a742f; background:#fcf0cf; }.badge-final,.badge-ready { color:#548132; background:#e6f2d9; }.badge-type { background:#f1f4e9; color:#7b8b6a; border-color:#e3e9d8; }.ev-ic { background:#edf5df; border-color:#d9e7c5; color:#729c4b; }.toolbar { background:#fffefa; }.type-card { position:relative; padding-top:52px; border-color:#dce5d2; background:#fffefa; }.type-card::before { content:''; position:absolute; top:18px; left:22px; width:20px; height:20px; background:#80a75b; mask:url('/app/icons/file.svg') center/contain no-repeat; -webkit-mask:url('/app/icons/file.svg') center/contain no-repeat; }.type-card:nth-child(2)::before { background:#9d8b55; mask-image:url('/app/icons/clock.svg'); -webkit-mask-image:url('/app/icons/clock.svg'); }.type-card:nth-child(3)::before { background:#5f8aaf; mask-image:url('/app/icons/check.svg'); -webkit-mask-image:url('/app/icons/check.svg'); }.type-card.is-on { background:#edf5e3; }.type-card.is-on::after { content:''; position:absolute; top:20px; right:20px; width:16px; height:16px; background:#2dad14; mask:url('/app/icons/check.svg') center/contain no-repeat; -webkit-mask:url('/app/icons/check.svg') center/contain no-repeat; }.steps { background:#fffefa; }.step.is-on { background:#e8f2dc; }.job-row { background:#fffefa; }.job-row:hover { background:#f0f7e7; }.ed-center { background:#e4eadc; }.ed-left,.ed-right { background:#fffefa; }.ed-panel-h { background:#f5f8ed; color:#718a5b; }.insert-grid button { background:#fafcf5; color:#668448; border-color:#dce6d1; }
@media(max-width:600px) { .page-icon { width:30px; height:30px; }.topbar { gap:8px; }.page-intro h2 { font-size:25px; }.kpi .k-value { font-size:32px; }.metric-symbol { width:26px; height:26px; }.kpi .k-label { font-size:10px; }.sidebar-foot { margin-top:auto; } }
.sidebar { overflow-y:auto; scrollbar-width:thin; scrollbar-color:#48693a #183a21; }.panel-h h2>.icon { width:17px; height:17px; color:#729b54; }
@media(max-height:800px) and (min-width:901px) { .brand { padding:22px 8px; }.workspace-label { margin-bottom:14px; padding:10px 0; }.nav { gap:3px; }.nav a { padding:10px 12px; }.nav a.nav-primary { margin-bottom:14px; }.nav-sep { margin-top:13px; }.sidebar-foot { padding-top:14px; }.conn { padding-bottom:10px; margin-bottom:10px; } }

/* ── Charts (dataviz method; palette validated with the skill's validate_palette.js on #ffffff) ──
   categorical: #1f7a0e / #2a78d6 / #eb6834 (all checks pass); ordinal green ramp (4 steps, all checks pass). Cards match the desk panels. */
:root { --viz-1: #1f7a0e; --viz-2: #2a78d6; --viz-3: #eb6834; --viz-grid: #e6ebe1; --viz-axis: #d0d9c9; --viz-track: #f0f3ea; --viz-text: #85927c; --viz-ink: #274127; }
.viz { background: #fffef9; border: 1px solid #dae3cf; border-radius: 12px; padding: 18px 20px 14px; min-width: 0; display: flex; flex-direction: column; }
.viz-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.viz-title { font-weight: 600; font-size: 12px; color: var(--viz-ink); } .viz-sub { font-size: 10px; color: var(--viz-text); margin-top: 2px; }
.viz-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.viz-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 10px; color: var(--viz-text); } .viz-legend-i { display: inline-flex; align-items: center; gap: 6px; }
.viz-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; } .viz-key { width: 10px; height: 3px; border-radius: 2px; display: inline-block; } .viz-key-line { width: 14px; height: 2px; }
.viz-table-btn { border: 1px solid #dae3cf; background: #fff; border-radius: 5px; font-size: 10px; padding: 3px 9px; cursor: pointer; color: var(--viz-text); } .viz-table-btn:hover { border-color: var(--oc-green-dk); color: var(--oc-green-dk); }
.viz-fig { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.viz-fig-value { font-size: 34px; font-weight: 550; letter-spacing: -1.4px; line-height: 1; color: var(--viz-ink); }
.viz-fig-label { font-size: 10px; color: var(--viz-text); }
.viz-delta { display: inline-flex; align-items: baseline; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: #eef3e8; color: #4f6a3f; }
.viz-delta small { font-weight: 500; font-size: 9px; color: var(--viz-text); } .viz-delta.up { background: #e3f3d8; color: #2a6a16; } .viz-delta.down { background: #fbeae6; color: #9a3a2c; }
.viz-body { margin-top: 10px; } .viz-body svg { display: block; overflow: visible; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; } .viz-axis { stroke: var(--viz-axis); stroke-width: 1; } .viz-track { fill: var(--viz-track); }
.viz-cross { stroke: #b9c6ae; stroke-width: 1; }
.viz-tick, .viz-cat { font-size: 10px; fill: var(--viz-text); font-family: var(--oc-font); font-variant-numeric: tabular-nums; } .viz-cat { font-size: 11px; fill: var(--viz-ink); }
.viz-val { font-size: 11px; fill: var(--viz-ink); font-weight: 600; font-family: var(--oc-font); font-variant-numeric: tabular-nums; }
.viz-empty-t { font-size: 11px; fill: #a7b39b; font-family: var(--oc-font); }
.viz-hit { cursor: default; outline: none; } .viz-hit.is-hover, .viz-hit:focus-visible { fill: rgba(31,122,14,.05); }
.viz-table .viz-tbl { font-size: 11px; } .viz-table { max-height: 240px; overflow: auto; margin-top: 8px; }
.viz-tip { position: fixed; z-index: 900; background: #1b2a1d; color: #fff; border-radius: 7px; padding: 9px 11px; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; min-width: 150px; }
.viz-tip-h { font-size: 10px; color: #b8c9b6; margin-bottom: 5px; letter-spacing: .3px; } .viz-tip-r { display: flex; align-items: center; gap: 7px; padding: 2px 0; } .viz-tip-r strong { font-variant-numeric: tabular-nums; min-width: 28px; } .viz-lbl { color: #cfdccd; }
.viz-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; } .viz-grid-3 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.range-row { display: flex; gap: 12px; align-items: center; margin: 6px 0 16px; flex-wrap: wrap; }
.range-row .btn-group .btn { font-size: 10px; padding: 6px 11px; background: #fffef9; border-color: #dae3cf; } .range-row .btn-group .btn.is-on { background: #e3f3d8; border-color: #9cc784; color: #2a6a16; }
.focus-links .focus-alert { color: #9a3a2c; }
@media (max-width: 900px) { .viz-grid-2, .viz-grid-3 { grid-template-columns: 1fr; } }

/* ── Operations visuals (desk-styled, bespoke) — palette validated with the dataviz validator ── */
:root { --viz-heat-1: #7cc25f; --viz-heat-2: #45ac2e; --viz-heat-3: #2a8f17; --viz-heat-4: #1b6b0c; --viz-dark-1: #e2f2d3; --viz-dark-2: #b3dd9a; --viz-dark-3: #84c862; --viz-dark-4: #5aae3c; --viz-other: #9aa39d; --viz-4: #4a3aa7; }
.ops-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.ops-grid.is-even { grid-template-columns: 1fr 1fr; }
.ops-card { position: relative; isolation: isolate; border: 1px solid #dae3cf; border-radius: 12px; background: #fffef9; padding: 20px 22px 18px; display: flex; flex-direction: column; min-width: 0; }
.ops-card.is-dark { background: #203e28; border-color: #27472a; color: #e9f3dc; overflow: hidden; }
.ops-card.is-dark::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#aecb9310 1px, transparent 1px), linear-gradient(90deg, #aecb9310 1px, transparent 1px); background-size: 32px 32px; }
.ops-caption { display: flex; justify-content: space-between; align-items: center; font: 8px ui-monospace, SFMono-Regular, monospace; letter-spacing: 1.4px; color: #71875d; }
.ops-card.is-dark .ops-caption { color: #96b980; }
.ops-table-btn { border: 1px solid #dae3cf; background: #fff; border-radius: 5px; font: 600 9px var(--oc-font); letter-spacing: .4px; padding: 3px 9px; cursor: pointer; color: #85927c; } .ops-table-btn:hover { border-color: var(--oc-green-dk); color: var(--oc-green-dk); }
.ops-card.is-dark .ops-table-btn { background: #2a4b31; border-color: #3b5f41; color: #cfe3bf; }
.ops-head { margin-top: 14px; } .ops-title { font-size: 15px; font-weight: 600; letter-spacing: -.3px; color: #243f29; } .ops-sub { font-size: 10px; color: #85927c; margin-top: 3px; }
.ops-card.is-dark .ops-title { color: #e9f3dc; } .ops-card.is-dark .ops-sub { color: #a9c49a; }
.ops-fig { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 4px; flex-wrap: wrap; }
.ops-fig-value { font-size: 44px; font-weight: 500; letter-spacing: -2.2px; line-height: 1; color: #355332; } .ops-card.is-dark .ops-fig-value { color: #f1f8e8; }
.ops-fig-label { font-size: 10px; color: #85927c; } .ops-card.is-dark .ops-fig-label { color: #a9c49a; }
.ops-card.is-dark .viz-delta { background: #2f5537; color: #cfe8bb; } .ops-card.is-dark .viz-delta small { color: #9bb98b; }
.ops-body { margin-top: 14px; } .ops-table { margin-top: 10px; max-height: 240px; overflow: auto; } .ops-tbl { font-size: 11px; } .ops-card.is-dark .ops-tbl, .ops-card.is-dark .ops-tbl th { color: #e9f3dc; background: transparent; }
.ops-foot { border-top: 1px solid #e5eadb; margin-top: 14px; padding-top: 11px; font-size: 9px; color: #96a185; display: flex; gap: 6px; align-items: center; } .ops-foot a { margin-left: auto; color: #648046; text-decoration: none; }
.ops-card.is-dark .ops-foot { border-color: #365631; color: #a9c49a; } .ops-card.is-dark .ops-foot a { color: #cfe8bb; }
.ops-tick { font: 9.5px var(--oc-font); fill: #85927c; }
.ops-cell { transition: transform .12s; cursor: default; outline: none; } .ops-cell:hover, .ops-cell:focus-visible { stroke: #243f29; stroke-width: 1.5; }
.ops-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; font-size: 9px; color: #85927c; } .ops-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; } .ops-legend span { margin: 0 4px; }
.ops-stages { display: flex; flex-direction: column; margin-top: 2px; }
.ops-stage { display: grid; grid-template-columns: 24px 92px 1fr 40px 40px; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #2f5537; text-decoration: none; color: #e9f3dc; font-size: 11px; }
.ops-stage:last-child { border-bottom: 0; } .ops-stage:hover .ops-stage-l { color: #fff; }
.ops-stage-i { font: 8px ui-monospace, monospace; color: #8aa878; letter-spacing: 1px; } .ops-stage-l { color: #cfe3bf; }
.ops-stage-bar { height: 8px; background: #2c4d33; border-radius: 4px; overflow: hidden; } .ops-stage-bar i { display: block; height: 100%; border-radius: 4px; }
.ops-stage-n { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: #f1f8e8; } .ops-stage-p { text-align: right; font-size: 9px; color: #8aa878; font-variant-numeric: tabular-nums; }
.ops-segbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--viz-track); gap: 2px; } .ops-segbar span { display: block; height: 100%; min-width: 0; outline: none; } .ops-segbar span:focus-visible { outline: 2px solid #243f29; }
.ops-seglegend { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; margin-top: 12px; font-size: 10.5px; color: #4b5c45; }
.ops-seglegend span { display: flex; align-items: center; gap: 7px; } .ops-seglegend i { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; } .ops-seglegend strong { margin-left: auto; font-variant-numeric: tabular-nums; color: #243f29; } .ops-seglegend small { font-size: 9px; color: #96a185; width: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.ops-meter { margin-top: 18px; border-top: 1px solid #e5eadb; padding-top: 14px; }
.ops-meter-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; color: #4b5c45; } .ops-meter-h strong { font-size: 14px; color: #243f29; font-variant-numeric: tabular-nums; } .ops-meter-h small { font-size: 9px; color: #96a185; font-weight: 500; }
.ops-meter-track { height: 10px; border-radius: 5px; background: #e3f0d6; margin-top: 8px; overflow: hidden; } .ops-meter-track i { display: block; height: 100%; background: var(--viz-1); border-radius: 5px; }
.ops-meter-note { font-size: 9px; color: #96a185; margin-top: 6px; }
.ops-mix { display: flex; flex-direction: column; } .ops-mix-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(60px, 1.2fr) 36px 34px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf0e6; text-decoration: none; color: #4b5c45; font-size: 11px; }
.ops-mix-row:last-child { border-bottom: 0; } a.ops-mix-row:hover .ops-mix-l { color: var(--oc-green-dk); }
.ops-mix-bar { height: 8px; background: var(--viz-track); border-radius: 4px; overflow: hidden; } .ops-mix-bar i { display: block; height: 100%; background: var(--viz-1); border-radius: 4px; }
.ops-mix-row strong { text-align: right; font-variant-numeric: tabular-nums; color: #243f29; } .ops-mix-row small { text-align: right; font-size: 9px; color: #96a185; font-variant-numeric: tabular-nums; }
.ops-empty { font-size: 11px; color: #a7b39b; padding: 12px 0; }
.ops-trend { margin-top: 16px; border-top: 1px solid #e5eadb; padding-top: 12px; } .ops-trend-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; color: #4b5c45; margin-bottom: 4px; } .ops-trend-h strong { font-size: 14px; color: #243f29; } .ops-trend-h small { font-size: 9px; color: #96a185; margin-left: 5px; font-weight: 500; }
.ops-trend svg { display: block; overflow: visible; }
.ops-period { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; } .ops-period .section-caption { font-size: 8px; }
@media (max-width: 1000px) { .ops-grid, .ops-grid.is-even { grid-template-columns: 1fr; } }

/* ── Editor toolbar polish ── */
.ed-topbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ed-group { display: inline-flex; align-items: center; gap: 6px; }
.ed-topbar .icon-btn .icon { width: 16px; height: 16px; }
.btn-tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; font-size: 11.5px; } .btn-tool .icon { width: 14px; height: 14px; }
.btn-tool.btn-primary .icon { filter: brightness(0) invert(1); } .btn-tool .icon-down { width: 11px; height: 11px; margin-left: -1px; }
.seg { display: inline-flex; background: #eef2ea; border: 1px solid #dae3cf; border-radius: 7px; padding: 3px; gap: 2px; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; border-radius: 5px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; color: #647953; cursor: pointer; }
.seg-btn .icon { width: 14px; height: 14px; } .seg-btn:hover { color: var(--oc-green-dk); } .seg-btn.is-on { background: #fff; color: var(--oc-green-dk); box-shadow: 0 1px 2px rgba(20,30,20,.12); }
.status-pick { position: relative; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--oc-line-strong); border-radius: 7px; padding: 0 9px 0 10px; height: 32px; background: #fff; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.status-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.status-pick:focus-within { box-shadow: 0 0 0 3px rgba(45,173,20,.18); }
.status-pick .status-text { padding-right: 18px; }
.status-pick .icon-down { width: 11px; height: 11px; position: absolute; right: 8px; pointer-events: none; }
.status-pick .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa39d; }
.status-pick.is-draft { background: #f4f6f2; color: #4a544c; } .status-pick.is-draft .status-dot { background: #a9b3a9; }
.status-pick.is-in_review { background: var(--oc-amber-bg); border-color: #f1d9b5; color: var(--oc-amber); } .status-pick.is-in_review .status-dot { background: #d9a441; }
.status-pick.is-ready { background: var(--oc-blue-bg); border-color: #c5d6ef; color: var(--oc-blue); } .status-pick.is-ready .status-dot { background: #3c6fb5; }
.status-pick.is-final { background: var(--oc-green-bg); border-color: var(--oc-green-line); color: var(--oc-green-dk); } .status-pick.is-final .status-dot { background: #2dad14; }
.save-state { font-size: 11.5px; margin-left: 4px; }

/* ── Canvas: editable headings keep their green bar while focused ── */
.canvas h2.oc-section-title[contenteditable="true"]:focus, .canvas .oc-section-title[contenteditable="true"]:focus, .canvas .p1b-secbar[contenteditable="true"]:focus { background: #1f7a0e !important; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 0 0 2px var(--oc-green); }
.canvas .finding-callout[contenteditable="true"]:focus { background: #f0f9f1; }

/* ── Loader: block loaders are centred with a two-tone ring; inline span.loading stays inline ── */
div.loading { flex-direction: column; justify-content: center; gap: 10px; min-height: 220px; text-align: center; }
#content > div.loading, .loading-page { min-height: min(60vh, 520px); }
.loader-ring { position: relative; width: 44px; height: 44px; }
.loader-ring i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.loader-ring i:first-child { border-top-color: var(--oc-green); border-right-color: var(--oc-green); animation: spin 1s cubic-bezier(.5,.1,.4,.9) infinite; }
.loader-ring i:last-child { inset: 8px; border-bottom-color: #9cc784; animation: spin 1.4s linear infinite reverse; }
.loading-t { font-size: 13px; font-weight: 600; color: var(--oc-ink); } .loading-s { font-size: 11px; color: var(--oc-muted); margin-top: -6px; }

/* ── Wizard stepper ── */
.wz { display: flex; gap: 0; background: #fffef9; border: 1px solid #dae3cf; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; }
.wz-step { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; position: relative; }
.wz-step:last-child { flex: 0 0 auto; } /* no trailing connector, so the last step sits at the right edge and the lines share the space evenly */
.wz-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef2ea; color: #85927c; font-size: 12px; font-weight: 700; flex: 0 0 auto; border: 1px solid #dae3cf; }
.wz-dot .icon { width: 15px; height: 15px; }
.wz-step.is-on .wz-dot { background: var(--oc-green); border-color: var(--oc-green); color: #fff; box-shadow: 0 0 0 4px #2dad1420; } .wz-step.is-on .wz-dot .icon { filter: brightness(0) invert(1); }
.wz-step.is-done .wz-dot { background: #e3f3d8; border-color: #b7dca3; color: var(--oc-green-dk); }
.wz-step.is-link { cursor: pointer; border-radius: 8px; } .wz-step.is-link:hover .wz-dot { background: var(--oc-green); border-color: var(--oc-green); color: #fff; } .wz-step.is-link:hover .wz-dot .icon { filter: brightness(0) invert(1); } .wz-step.is-link:hover .wz-label { color: var(--oc-green-dk); text-decoration: underline; text-underline-offset: 3px; } .wz-step.is-link:focus-visible { outline: 2px solid var(--oc-green); outline-offset: 2px; }
.wz-text { min-width: 0; } .wz-label { font-size: 12px; font-weight: 600; color: #85927c; white-space: nowrap; } .wz-n { font: 9px ui-monospace, monospace; letter-spacing: 1px; margin-right: 7px; color: #a7b39b; }
.wz-step.is-on .wz-label, .wz-step.is-done .wz-label { color: #243f29; } .wz-step.is-on .wz-n { color: var(--oc-green-dk); }
.wz-hint { font-size: 10px; color: #96a185; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-line { flex: 1; height: 1px; background: #dde6d1; margin: 0 14px; min-width: 16px; } .wz-step.is-done .wz-line { background: #b7dca3; }
.wz-intro { display: flex; gap: 12px; align-items: flex-start; background: #f4f8f1; border: 1px solid #dae3cf; border-left: 3px solid var(--oc-green); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.wz-intro-ic { width: 30px; height: 30px; border-radius: 7px; background: #dae8c8; display: grid; place-items: center; flex: 0 0 auto; } .wz-intro-ic .icon { width: 15px; height: 15px; }
.wz-intro-t { font-size: 13px; font-weight: 600; color: #243f29; } .wz-intro-x { font-size: 11.5px; color: #647953; margin-top: 2px; line-height: 1.5; }
.jt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.jt-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--oc-line-strong); border-radius: 8px; padding: 10px 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; }
.jt-card:hover { border-color: var(--oc-green); } .jt-card.is-on { border-color: var(--oc-green); background: var(--oc-green-bg); box-shadow: inset 0 0 0 1px var(--oc-green); }
.jt-card .jt-ic { width: 28px; height: 28px; border-radius: 6px; background: #eef2ea; display: grid; place-items: center; flex: 0 0 auto; } .jt-card .jt-ic .icon { width: 14px; height: 14px; } .jt-card.is-on .jt-ic { background: #dae8c8; }
.jt-card strong { display: block; font-size: 12.5px; color: #243f29; } .jt-card small { display: block; font-size: 10.5px; color: var(--oc-muted); margin-top: 1px; }
.gen-phases { display: flex; flex-direction: column; gap: 0; margin: 6px 0 14px; }
.gen-phase { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0e6; font-size: 12.5px; color: #96a185; }
.gen-phase:last-child { border-bottom: 0; } .gen-phase .gp-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #dae3cf; display: grid; place-items: center; font-size: 10px; flex: 0 0 auto; background: #fff; }
.gen-phase.is-on { color: #243f29; font-weight: 600; } .gen-phase.is-on .gp-dot { border-color: var(--oc-green); } .gen-phase.is-on .gp-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--oc-line-strong); border-top-color: var(--oc-green); animation: spin .8s linear infinite; }
.gen-phase.is-done { color: #4f6a3f; } .gen-phase.is-done .gp-dot { background: #e3f3d8; border-color: #b7dca3; } .gen-phase.is-done .gp-dot .icon { width: 11px; height: 11px; }
.gen-phase .gp-msg { margin-left: auto; font-size: 11px; color: #85927c; font-weight: 500; max-width: 55%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-h .ph-ic { width: 26px; height: 26px; border-radius: 6px; background: #eef2ea; display: inline-grid; place-items: center; margin-right: 8px; vertical-align: middle; } .panel-h .ph-ic .icon { width: 13px; height: 13px; }
@media (max-width: 900px) { .wz { flex-wrap: wrap; gap: 10px; } .wz-line { display: none; } .jt-cards { grid-template-columns: 1fr; } }

/* ── Photo open controls (editor canvas + final preview) ── */
.canvas .oc-photo .oc-photo-open, .canvas .oc-figure .oc-photo-open { position: absolute; top: 4px; left: 4px; background: rgba(27,42,29,.85); color: #fff; border: none; border-radius: 3px; font: 600 11px var(--oc-font); padding: 2px 7px; cursor: pointer; display: none; }
.canvas .oc-photo:hover .oc-photo-open, .canvas .oc-figure:hover .oc-photo-open { display: block; }
.pv-photos { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 10px; background: #fffef9; border: 1px solid #dae3cf; border-radius: 8px; }
.pv-photos-l { font-size: 11px; font-weight: 600; color: #647953; margin-right: 4px; }
.pv-thumb { display: block; width: 56px; height: 42px; border-radius: 4px; overflow: hidden; border: 1px solid #dae3cf; background: #eee; } .pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .pv-thumb:hover { border-color: var(--oc-green); box-shadow: 0 0 0 2px #2dad1433; }
.preview-frame { height: calc(100vh - 215px); }

/* ─── Settings tabs ─── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid #dae3cf; margin: 4px 0 18px; overflow-x: auto; }
.tab-btn { display: inline-flex; align-items: center; gap: 7px; border: none; background: transparent; padding: 10px 14px 11px; margin-bottom: -1px; font-size: 12.5px; font-weight: 600; color: #647953; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab-btn .icon { width: 15px; height: 15px; } .tab-btn:hover { color: var(--oc-green-dk); background: #f3f6ef; border-radius: 6px 6px 0 0; }
.tab-btn.is-on { color: var(--oc-green-dk); border-bottom-color: var(--oc-green); }
.tab-note { font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #eef2ea; color: #647953; } .tab-note:empty { display: none; }
.tab-note.is-ok { background: #e2f2d3; color: #1b6b0c; } .tab-note.is-warn { background: #fdecd9; color: #a24a0c; }
.tab-pane { display: none; } .tab-pane.is-on { display: block; animation: fadeUp .18s ease; }
.tab-pane > .panel { max-width: 920px; }
.account-grid { align-items: stretch; } .account-grid > .panel { max-width: none; }

/* ─── Sessions + sign-in map ─── */
.sess-panel { overflow: hidden; display: flex; flex-direction: column; }
.sess-map-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 220px; border-bottom: 1px solid var(--oc-line); background: #e8efe2; }
.sess-map { flex: 1; min-height: 200px; width: 100%; background: #e8efe2; }
.sess-map.is-empty { flex: 1; min-height: 120px; background: repeating-linear-gradient(45deg, #e8efe2 0 10px, #e2eadb 10px 20px); }
.sess-map-note { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 12px; color: #4d6342; background: #fbfdf8; border-top: 1px solid var(--oc-line); }
.sess-map-note .icon { width: 14px; height: 14px; color: var(--oc-green-dk); } .sess-map.is-empty + .sess-map-note { border-top: none; }
.sess-pin { background: none; border: none; } .sess-pin-dot { position: absolute; inset: 4px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.3); }
.sess-pin-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--pin); opacity: .55; animation: sessPulse 1.8s ease-out infinite; }
@keyframes sessPulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
.leaflet-container { font: inherit; } .leaflet-control-attribution { font-size: 9px; background: rgba(255,255,255,.7); }
.sess-list { display: flex; flex-direction: column; }
.sess-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--oc-line); font-size: 12.5px; }
.sess-item:last-child { border-bottom: none; } .sess-item > .icon { width: 22px; height: 22px; color: #647953; }
.sess-item.is-current > .icon { color: var(--oc-green-dk); } .sess-main { flex: 1; min-width: 0; } .sess-title { font-weight: 600; color: var(--oc-ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sess-item .btn .icon { width: 13px; height: 13px; margin-right: 4px; }
.sess-panel > .panel-b { flex: 0 0 auto; }
@media (max-width: 1100px) { .account-grid { grid-template-columns: 1fr; } }

/* ─── Octa assistant (AI mode) ─── */
.editor.is-ai { grid-template-columns: 210px minmax(0, 1fr) 380px; }
.ai { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ai .ed-panel-h > span { display: inline-flex; align-items: center; gap: 6px; } .ai .ed-panel-h .icon-sparkle { width: 14px; height: 14px; color: var(--oc-green); }
.ai-log { flex: 1; overflow: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; background: #fbfcf9; }
.ai-msg { display: flex; flex-direction: column; max-width: 92%; } .ai-msg.is-user { align-self: flex-end; align-items: flex-end; } .ai-msg.is-asst { align-self: flex-start; }
.ai-bub { padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.ai-msg.is-user .ai-bub { background: var(--oc-green); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg.is-asst .ai-bub { background: #fff; border: 1px solid #dae3cf; color: var(--oc-ink); border-bottom-left-radius: 4px; }
.ai-meta { font-size: 10.5px; color: #96a185; margin-top: 4px; padding: 0 4px; } .ai-undo { border: none; background: none; color: var(--oc-green-dk); font-weight: 600; cursor: pointer; font-size: 10.5px; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.ai-err { color: var(--oc-red); }
.ai-changes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; } .ai-chip { font-size: 10.5px; background: #e3f3d8; color: var(--oc-green-dk); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ai-empty { margin: auto 0; text-align: center; padding: 10px 6px; } .ai-empty > .icon { width: 30px; height: 30px; color: var(--oc-green); }
.ai-empty-t { font-size: 13.5px; font-weight: 700; color: #243f29; margin-top: 8px; } .ai-empty-x { font-size: 12px; color: #647953; line-height: 1.55; margin: 6px 0 14px; }
.ai-suggest { display: flex; flex-direction: column; gap: 6px; } .ai-sug { text-align: left; border: 1px solid #dae3cf; background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #2f4a33; cursor: pointer; } .ai-sug:hover { border-color: var(--oc-green); background: #f4f9f0; }
.ai-work { border-top: 1px solid var(--oc-line); background: #f4f8f1; padding: 9px 12px; font-size: 11.5px; } .ai-work-h { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #243f29; } .ai-work .spinner { width: 13px; height: 13px; border-width: 2px; }
.ai-steps { list-style: none; margin: 6px 0 0; padding: 0; color: #647953; } .ai-steps li { padding: 2px 0 2px 16px; position: relative; } .ai-steps li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--oc-green); } .ai-steps li.is-warn { color: #a24a0c; } .ai-steps li.is-warn::before { background: #eb6834; }
.ai-form { border-top: 1px solid var(--oc-line); padding: 10px 12px; background: #fff; } .ai-form textarea { resize: vertical; min-height: 54px; font-size: 12.5px; }
.ai-form-f { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; } .ai-form-f .btn .icon { width: 13px; height: 13px; margin-right: 4px; }
.canvas .ai-changed { outline: 2px solid #2dad14; outline-offset: 4px; border-radius: 3px; background: #effaea; transition: background 1.2s, outline-color 1.2s; animation: aiFlash .5s ease; }
@keyframes aiFlash { from { outline-color: transparent; background: #fff; } }

/* ─── Collapsible left rail ─── */
.ed-left { position: relative; }
.rail-strip { display: none; }
.editor.rail-hidden { grid-template-columns: 44px minmax(0, 1fr) 220px; }
.editor.rail-hidden.is-ai { grid-template-columns: 44px minmax(0, 1fr) 380px; }
.editor.rail-hidden .ed-left > :not(.rail-strip) { display: none; }
.editor.rail-hidden .rail-strip { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 0; height: 100%; }
.rail-strip .icon-btn .icon { width: 16px; height: 16px; }
.rail-strip-l { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oc-muted); user-select: none; pointer-events: none; }
#railHide .icon, #railShow .icon { width: 15px; height: 15px; }

/* AI mode: left strip with Document / Octa tabs; right column shows one of them */
.editor.is-ai { grid-template-columns: 44px minmax(0, 1fr) 380px; }
.editor.is-ai .ed-left > .rail-body { display: none; } .editor.is-ai .rail-strip { display: flex; }
.editor:not(.is-ai) #railOcta { display: none; }
.rail-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 34px; padding: 8px 0 10px; border: none; background: transparent; border-radius: 8px; color: #647953; cursor: pointer; }
.rail-tab .icon { width: 16px; height: 16px; } .rail-tab:hover { background: #f3f6ef; color: var(--oc-green-dk); } .rail-tab:hover .rail-strip-l { color: var(--oc-green-dk); }
.rail-tab.is-on { background: var(--oc-green-bg); color: var(--oc-green-dk); } .rail-tab.is-on .rail-strip-l { color: var(--oc-green-dk); }
.ai-dock { height: 100%; min-height: 0; display: flex; flex-direction: column; } .ai-dock[hidden] { display: none; }
#docDock .rail-body { overflow: auto; }
#docDock #railHide { display: none; }

/* Final preview: no document panel (nothing to select or insert into a PDF); the preview takes the width. */
.editor.is-preview { grid-template-columns: 0 minmax(0, 1fr) 220px; }
.editor .ed-left { grid-column: 1; } .editor .ed-center { grid-column: 2; } .editor .ed-right { grid-column: 3; } /* explicit placement so a hidden pane never shifts the others */
.editor.is-preview .ed-left { display: none; }
.editor.is-preview .ed-center { padding: 20px 28px 40px; }
.preview-frame { width: 100%; }

/* Cramped window (sheet would not fit beside the document panel): the panel is a strip, and when opened it
   floats over the page so the sheet never moves or gets clipped. */
.editor { position: relative; }
.editor.is-cramped:not(.is-ai):not(.is-preview) { grid-template-columns: 44px minmax(0, 1fr) 220px; }
.editor.is-cramped:not(.is-ai):not(.is-preview) .rail-strip { display: flex; }
.editor.is-cramped:not(.is-ai):not(.is-preview):not(.rail-hidden) .ed-left { position: absolute; left: 0; top: 0; bottom: 0; width: 244px; z-index: 30; box-shadow: 8px 0 28px rgba(20,30,20,.16); border-right: 1px solid var(--oc-line); }
.editor.is-cramped:not(.is-ai):not(.is-preview):not(.rail-hidden) .rail-strip { display: none; }

/* Edit layout: 200px document panel + 220px report rail leaves room for the A4 sheet (834px with gutters) from ~1500px windows up. */
.editor { grid-template-columns: 200px minmax(0, 1fr) 220px; }
.ed-left .ed-panel-b, .ed-right .ed-panel-b { padding: 12px; }
.insert-grid { gap: 6px; } .insert-grid button { padding: 10px 4px; font-size: 10px; }
/* Activity filters */
.act-tools { flex-wrap: wrap; gap: 8px; } .act-tools .search-wrap { position: relative; flex: 1 1 240px; min-width: 200px; } .act-tools .search-wrap .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--oc-muted); pointer-events: none; }
.act-tools .search-wrap .input { padding-left: 30px; } .act-tools select.input { width: auto; max-width: 200px; }
.act-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } #list.is-loading { opacity: .55; transition: opacity .15s; }

.sess-more { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--oc-line); margin-top: 4px; }
.sess-list .sess-item:last-child { border-bottom: none; }

/* ─── Page guides on the editor sheet ─── */
.canvas .oc-page-start { margin-top: var(--pg-gap) !important; position: relative; }
.canvas .oc-page-start::before { content: ''; position: absolute; left: -12mm; right: -12mm; top: calc(-1 * var(--pg-gap) + var(--pg-band)); height: 26px; background: #e4e8e2; box-shadow: inset 0 8px 10px -8px rgba(20,30,20,.25), inset 0 -8px 10px -8px rgba(20,30,20,.25); pointer-events: none; z-index: 2; }
.canvas .oc-page-start::after { content: attr(data-page); position: absolute; right: 0; top: calc(-1 * var(--pg-gap) + var(--pg-band) + 30px); font: 600 10px var(--oc-font); letter-spacing: .04em; color: #96a185; text-transform: uppercase; pointer-events: none; z-index: 2; }
.canvas .oc-page-end { position: relative; pointer-events: none; }
.canvas .oc-page-end::after { content: attr(data-page); position: absolute; right: 0; bottom: 0; font: 600 10px var(--oc-font); letter-spacing: .04em; color: #b4bfa9; text-transform: uppercase; }
.editor.is-ai .canvas .oc-page-start::before, .editor.is-ai .canvas .oc-page-end { }
/* ─── Document forms: steps, upload zone, file card ─── */
.fstep { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 10px; } .fstep:first-child { margin-top: 0; }
.fstep-n { width: 22px; height: 22px; border-radius: 50%; background: var(--oc-green); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.fstep-t { font-size: 13px; font-weight: 700; color: #243f29; } .fstep-h { font-size: 11.5px; color: var(--oc-muted); margin-top: 1px; }
.drop { border: 1.5px dashed #c5d3bb; border-radius: 10px; background: #fbfdf8; padding: 22px 16px; cursor: pointer; transition: border-color .12s, background .12s; outline: none; }
.drop:hover, .drop:focus-visible { border-color: var(--oc-green); background: #f4f9f0; } .drop.is-over { border-color: var(--oc-green); background: #e9f5e2; border-style: solid; }
.drop.has-file { cursor: default; border-style: solid; border-color: #b7dca3; background: #f6fbf2; padding: 12px 14px; }
.drop-idle { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.drop-ic { width: 40px; height: 40px; border-radius: 10px; background: #e3f3d8; display: grid; place-items: center; margin-bottom: 2px; } .drop-ic .icon { width: 18px; height: 18px; color: var(--oc-green-dk); }
.drop-t { font-size: 13px; font-weight: 600; color: #243f29; } .drop-link { color: var(--oc-green-dk); text-decoration: underline; text-underline-offset: 2px; } .drop-h { font-size: 11px; color: var(--oc-muted); }
.file-card { display: flex; align-items: center; gap: 12px; } .file-ic { width: 36px; height: 36px; border-radius: 8px; background: #e3f3d8; display: grid; place-items: center; flex: 0 0 auto; } .file-ic .icon { width: 17px; height: 17px; color: var(--oc-green-dk); }
.file-main { flex: 1; min-width: 0; } .file-name { font-size: 13px; font-weight: 600; color: #243f29; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-meta { font-size: 11.5px; color: var(--oc-muted); margin-top: 1px; }
.type-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.jt-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jt-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.jt-cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .jt-cards.cols-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1300px) { .jt-cards.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .jt-cards.cols-4, .jt-cards.cols-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt-check { display: flex; gap: 10px; align-items: center; border: 1px solid var(--oc-line-strong); border-radius: 8px; padding: 10px 12px; background: #fff; cursor: pointer; }
.opt-check:has(input:checked) { border-color: var(--oc-green); background: var(--oc-green-bg); } .opt-check strong { display: block; font-size: 12.5px; color: #243f29; } .opt-check small { display: block; font-size: 10.5px; color: var(--oc-muted); margin-top: 1px; }
/* ─── Estimate summary: ranked category bars + totals card ─── */
.est-summary { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.cat-bars { display: flex; flex-direction: column; gap: 6px; }
.cat-bars-h, .cat-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 96px 48px; gap: 12px; align-items: center; }
.cat-bars-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--oc-muted); padding: 0 0 6px; border-bottom: 1px solid var(--oc-line); }
.cat-bars-h .num, .cat-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.cat-row { padding: 5px 0; } .cat-name { font-size: 12.5px; color: var(--oc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-bar { height: 10px; background: #eef2ea; border-radius: 4px; overflow: hidden; } .cat-bar span { display: block; height: 100%; background: linear-gradient(90deg, #3ea82a, #2a9015); border-radius: 4px; min-width: 2px; }
.cat-amt { font-size: 12.5px; font-weight: 600; color: var(--oc-ink); } .cat-pct { font-size: 11.5px; color: var(--oc-muted); }
.est-totals { background: #f6faf2; border: 1px solid #dae3cf; border-radius: 10px; padding: 14px 16px; }
.est-totals .kv { grid-template-columns: 1fr max-content; gap: 8px 16px; font-size: 13px; } .est-totals dd.num { text-align: right; font-variant-numeric: tabular-nums; }
.est-totals .tot { font-size: 15px; font-weight: 700; color: var(--oc-green-dk); border-top: 1px solid #cfe0c2; padding-top: 10px; margin-top: 2px; }
@media (max-width: 1100px) { .est-summary { grid-template-columns: 1fr; } .cat-bars-h, .cat-row { grid-template-columns: 140px minmax(0, 1fr) 90px 44px; } }

/* ─── Job page ─── */
.job-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.job-actions a.jt-card { text-decoration: none; color: inherit; } .job-actions .jt-card:hover { background: #f4f9f0; }
.job-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.job-fact { display: flex; gap: 10px; align-items: center; border: 1px solid var(--oc-line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.job-fact > .icon { width: 18px; height: 18px; color: var(--oc-green-dk); flex: 0 0 auto; } .job-fact strong { display: block; font-size: 16px; color: #243f29; line-height: 1.1; } .job-fact small { font-size: 10.5px; color: var(--oc-muted); }

.pc-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(20,30,20,.65); color: #fff; font-size: 14px; line-height: 20px; cursor: pointer; display: none; } .photo-cell:hover .pc-x { display: block; }
#pup .icon { width: 12px; height: 12px; margin-right: 4px; }
.canvas .oc-page-cut { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed #b4bfa9; pointer-events: none; z-index: 2; }
.canvas .oc-page-cut::after { content: attr(data-page); position: absolute; right: 12mm; top: 3px; font: 600 10px var(--oc-font); letter-spacing: .04em; color: #96a185; text-transform: uppercase; background: rgba(255,255,255,.85); padding: 0 4px; }
/* In-text page gap: a non-editable block spacer inside a paragraph/list item, painted like the gap between sheets */
.canvas .oc-pg-split { display: block; height: var(--pg-gap); position: relative; pointer-events: none; user-select: none; }
.canvas .oc-pg-split::before { content: ''; position: absolute; left: -12mm; right: -12mm; top: var(--pg-band); height: 26px; background: #e4e8e2; box-shadow: inset 0 8px 10px -8px rgba(20,30,20,.25), inset 0 -8px 10px -8px rgba(20,30,20,.25); }
.canvas .oc-pg-split::after { content: attr(data-page); position: absolute; right: 0; top: calc(var(--pg-band) + 30px); font: 600 10px var(--oc-font); letter-spacing: .04em; color: #96a185; text-transform: uppercase; }
/* Email delivery */
.nav-count-warn:not(:empty) { background: #fde6e4; color: var(--oc-red); }
.seg-n:not(:empty) { margin-left: 6px; font-size: 10px; background: rgba(0,0,0,.06); border-radius: 999px; padding: 1px 6px; }
.tbl tr.row-failed td:first-child { box-shadow: inset 3px 0 0 var(--oc-red); }
/* Estimate line items: rows align to the input's row; notes sit under the description without shifting it */
#lines tbody tr.line-row td { vertical-align: top; }
#lines .lt { display: flex; align-items: center; min-height: var(--line-input-h, 28px); }
#lines .line-note { margin-top: 4px; line-height: 1.4; }
#lines tbody tr.line-row td:first-child .lt { white-space: nowrap; }
/* Estimate categories: header with subtotal + add-here, per-line category select and trade input */
#lines tr.cat-head td { background: #f3f5f2; padding: 8px 16px; }
.cat-head-in { display: flex; align-items: center; gap: 12px; } .cat-head-n { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--oc-green-dk); }
.cat-head-s { font-size: 11px; color: var(--oc-muted); font-variant-numeric: tabular-nums; }
#lines .line-cat { width: 190px; padding: 4px 6px; font-size: 11px; color: #59675e; } #lines .line-trade { width: 120px; padding: 4px 6px; font-size: 11px; }
.cat-head-in [data-addcat] { margin-left: auto; }

/* ─── Centred empty states (icon + title + help + action) ─── */
.panel:has(> .empty-state) { display: flex; flex-direction: column; }
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 36px 20px !important; text-align: center; background: transparent !important; min-height: 180px; }
.panel-b:has(> .empty-state) { display: flex; flex-direction: column; flex: 1; }
.empty-ic { width: 44px; height: 44px; border-radius: 12px; background: #e9f3df; display: grid; place-items: center; margin-bottom: 4px; } .empty-ic .icon { width: 20px; height: 20px; color: var(--oc-green-dk); }
.empty-t { font-size: 13.5px; font-weight: 650; color: #243f29; } .empty-x { font-size: 12px; color: var(--oc-muted); max-width: 320px; line-height: 1.5; } .empty-a { margin-top: 8px; }
/* Toolbars: every control (inputs, selects, date pickers, buttons) shares one height */
.toolbar { align-items: center; }
.toolbar .input, .toolbar select.input, .toolbar input[type=date].input, .toolbar .search-wrap .input, .toolbar > .btn, .toolbar > a.btn, .toolbar .btn { height: 36px; min-height: 36px; box-sizing: border-box; }
.toolbar .btn { display: inline-flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }

.toolbar .seg { height: 36px; box-sizing: border-box; align-items: stretch; } .toolbar .seg .seg-btn { padding-top: 0; padding-bottom: 0; }

/* Toned option cards (priority scale): the icon chip carries the tone in both states; selection stays the green outline */
.jt-card[class*="tone-"] .jt-ic, .jt-card[class*="tone-"].is-on .jt-ic { background: var(--tone-bg); } .jt-card[class*="tone-"] .jt-ic .icon { color: var(--tone-fg); width: 15px; height: 15px; }
.jt-card.tone-red { --tone-bg: #fde6e4; --tone-fg: #b3261e; } .jt-card.tone-orange { --tone-bg: #fdecd9; --tone-fg: #c2570c; } .jt-card.tone-amber { --tone-bg: #fff3d0; --tone-fg: #946200; }
.jt-card.tone-blue { --tone-bg: #e3eefb; --tone-fg: #2a5fa8; } .jt-card.tone-green { --tone-bg: #e1f2d6; --tone-fg: #1f7a0e; }
.jt-card[class*="tone-"].is-on { background: #f7fbf4; }

/* Row actions: Open + a "more" menu on every documents table */
.row-actions { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.row-more { width: 28px; height: 28px; border: 1px solid var(--oc-line-strong); border-radius: 6px; background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: #59675e; }
.row-more:hover { border-color: var(--oc-green); color: var(--oc-green-dk); background: #f4f9f0; } .row-more .icon { width: 15px; height: 15px; }
.tbl td:last-child:has(.row-actions) { text-align: right; width: 1%; }
.menu button.is-danger { color: var(--oc-red); } .menu button.is-danger:hover { background: #fde6e4; }

/* ─── Confirmation dialog ─── */
.cf-back { background: rgba(20, 34, 25, .42); backdrop-filter: blur(3px); }
.cf { width: min(420px, 100%); background: #fffefa; border: 1px solid #dfe7d6; border-radius: 16px; padding: 22px 22px 14px; box-shadow: 0 1px 0 #fff inset, 0 24px 70px rgba(15, 30, 20, .28); animation: cfIn .16s cubic-bezier(.2, .9, .3, 1.2); }
/* Entrance moves and scales only — never opacity — so a popup is fully visible even if the animation has not ticked yet. */
@keyframes cfIn { from { transform: translateY(8px) scale(.97); } }
.cf-top { display: flex; gap: 14px; align-items: flex-start; }
.cf-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: #e3f3d8; box-shadow: 0 0 0 5px #e3f3d855; } .cf-ic .icon { width: 19px; height: 19px; color: var(--oc-green-dk); }
.cf.is-danger .cf-ic { background: #fde6e4; box-shadow: 0 0 0 5px #fde6e466; } .cf.is-danger .cf-ic .icon { color: #b3261e; }
.cf-head { min-width: 0; flex: 1; padding-top: 1px; } .cf-head h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; color: #203523; margin: 0; }
.cf-subject { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin-top: 8px; padding: 6px 10px; border: 1px solid #dfe7d6; border-radius: 8px; background: #f6f9f2; font-size: 12px; font-weight: 600; color: #344a35; }
.cf-subject .icon { width: 13px; height: 13px; color: #6f8a5f; flex: 0 0 auto; } .cf-subject span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-x { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: #5d6d5c; }
.cf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cf-actions .btn { height: 40px; justify-content: center; font-size: 12.5px; font-weight: 650; border-radius: 10px; display: inline-flex; align-items: center; }
.cf-no { background: #fff; border-color: #d9e2cf; color: #344a35; } .cf-no:hover { background: #f4f8ef; border-color: #b9cba9; }
.cf-danger { background: #c0352b; border: 1px solid #a82a21; color: #fff; box-shadow: 0 1px 0 #ffffff40 inset, 0 2px 6px #c0352b40; } .cf-danger:hover { background: #a82a21; }
.cf-actions .btn:focus-visible { outline: 2px solid #2dad14; outline-offset: 2px; } .cf-danger:focus-visible { outline-color: #c0352b; }
.cf-keys { margin-top: 12px; text-align: center; font-size: 10.5px; color: #98a591; } .cf-keys kbd { font: 10px ui-monospace, monospace; border: 1px solid #dfe7d6; border-radius: 4px; padding: 1px 5px; background: #fff; color: #6d7c68; }

/* ═══ Colour tones ═══════════════════════════════════════════════════════════
   One meaning, one colour. Each tone sets --t-bg / --t-fg / --t-bd / --t-dot; pills, chips and icon chips read them. */
.tone-green  { --t-bg: #e3f3d8; --t-fg: #1f6b12; --t-bd: #c4e2b1; --t-dot: #2dad14; }
.tone-blue   { --t-bg: #e1edfb; --t-fg: #24589c; --t-bd: #c2d8f3; --t-dot: #2a78d6; }
.tone-amber  { --t-bg: #fdf0cc; --t-fg: #7d5a05; --t-bd: #f0dc9c; --t-dot: #d99a0b; }
.tone-orange { --t-bg: #fde8d6; --t-fg: #a8480a; --t-bd: #f5cfae; --t-dot: #eb6834; }
.tone-red    { --t-bg: #fde4e1; --t-fg: #a8261d; --t-bd: #f3c4bf; --t-dot: #d0392e; }
.tone-violet { --t-bg: #ece6fa; --t-fg: #5a3fa6; --t-bd: #d6caf2; --t-dot: #7a5cd0; }
.tone-teal   { --t-bg: #d9f1ee; --t-fg: #0f6b63; --t-bd: #b4dfd9; --t-dot: #1a9c90; }
.tone-slate  { --t-bg: #e9edf0; --t-fg: #47586a; --t-bd: #d3dbe2; --t-dot: #7b8b9b; }
.tone-pink   { --t-bg: #fbe3ef; --t-fg: #9c2d6a; --t-bd: #f2c4dc; --t-dot: #d0508f; }

/* Pills */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .01em; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; line-height: 1.5; vertical-align: middle; }
.badge[class*="tone-"] { background: var(--t-bg); color: var(--t-fg); border-color: var(--t-bd); }
.b-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; display: inline-block; }
/* Status: the same four colours in tables, the editor pill and menus */
.badge-draft     { background: #fdf0cc; color: #7d5a05; border-color: #f0dc9c; } .badge-draft .b-dot { background: #d99a0b; }
.badge-in_review { background: #ece6fa; color: #5a3fa6; border-color: #d6caf2; } .badge-in_review .b-dot { background: #7a5cd0; }
.badge-ready     { background: #e1edfb; color: #24589c; border-color: #c2d8f3; } .badge-ready .b-dot { background: #2a78d6; }
.badge-final     { background: #1f7a0e; color: #fff; border-color: #1f7a0e; } .badge-final .b-dot { background: #c7e4a4; }
.badge-ok  { background: #e3f3d8; color: #1f6b12; border-color: #c4e2b1; } .badge-err { background: #fde4e1; color: #a8261d; border-color: #f3c4bf; }
.badge-type { background: #e9edf0; color: #47586a; border-color: #d3dbe2; }
.status-pick.is-draft     { background: #fdf0cc; border-color: #f0dc9c; color: #7d5a05; } .status-pick.is-draft .status-dot { background: #d99a0b; }
.status-pick.is-in_review { background: #ece6fa; border-color: #d6caf2; color: #5a3fa6; } .status-pick.is-in_review .status-dot { background: #7a5cd0; }
.status-pick.is-ready     { background: #e1edfb; border-color: #c2d8f3; color: #24589c; } .status-pick.is-ready .status-dot { background: #2a78d6; }
.status-pick.is-final     { background: #1f7a0e; border-color: #1f7a0e; color: #fff; } .status-pick.is-final .status-dot { background: #c7e4a4; } .status-pick.is-final .icon { color: #fff; }
/* Toned filter chips (job categories): neutral until selected, with the tone on the dot */
.chip.chip-tone { display: inline-flex; align-items: center; gap: 6px; } .chip.chip-tone .b-dot { background: var(--t-dot); width: 7px; height: 7px; }
.chip.chip-tone.is-on { background: var(--t-bg); border-color: var(--t-dot); color: var(--t-fg); } .chip.chip-tone.is-on .muted { color: var(--t-fg); opacity: .75; }
/* Icon chips in activity lists */
.ev-ic[class*="tone-"] { background: var(--t-bg); color: var(--t-fg); border-color: var(--t-bd); }
/* Assistant change chips, tab notes */
.ai-chip[class*="tone-"] { background: var(--t-bg); color: var(--t-fg); }
.tbl .tiny .badge { font-size: 9px; padding: 1px 7px; margin-right: 4px; }

/* ═══ Dialogs: one treatment for every popup ════════════════════════════════ */
.modal-back { background: rgba(20, 34, 25, .42); backdrop-filter: blur(3px); padding: 24px; }
.modal { background: #fffefa; border: 1px solid #dfe7d6; border-radius: 16px; box-shadow: 0 1px 0 #fff inset, 0 24px 70px rgba(15, 30, 20, .28); overflow: hidden; animation: cfIn .16s cubic-bezier(.2, .9, .3, 1.2); width: min(560px, 100%); max-height: calc(100vh - 48px); }
.modal.wide { width: min(1040px, 100%); } .modal.xl { width: min(1360px, 100%); }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: none; justify-content: flex-start; }
.modal-ic { width: 36px; height: 36px; border-radius: 10px; background: #e3f3d8; box-shadow: 0 0 0 4px #e3f3d855; display: grid; place-items: center; flex: 0 0 auto; } .modal-ic .icon { width: 17px; height: 17px; color: var(--oc-green-dk); }
.modal-tt { flex: 1; min-width: 0; } .modal-h h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; color: #203523; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-sub { font-size: 11.5px; color: #7b8978; margin-top: 2px; }
.modal-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; color: #7b8978; cursor: pointer; flex: 0 0 auto; } .modal-x:hover { background: #f1f5ec; border-color: #dfe7d6; color: #203523; } .modal-x .icon { width: 14px; height: 14px; }
.modal-b { padding: 4px 20px 18px; overflow: auto; font-size: 12.5px; color: #3d4d3e; } .modal-b > p:first-child { margin-top: 0; }
.modal-b .field:last-child { margin-bottom: 0; }
.modal-f { padding: 14px 20px; border-top: 1px solid #e6ecdd; background: #f8faf4; display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.modal-f .btn { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 12.5px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; }
.modal-f .btn-primary { box-shadow: 0 1px 0 #ffffff40 inset, 0 2px 6px #2dad1440; }
.modal-f .btn-danger { background: #c0352b; border-color: #a82a21; color: #fff; } .modal-f .btn-danger:hover { background: #a82a21; color: #fff; }
.modal-f .left { margin-right: auto; font-size: 12px; color: var(--oc-muted); display: inline-flex; align-items: center; }
.modal .tbl th { background: #f6f9f2; } .modal .toolbar { background: #f8faf4; border-color: #e6ecdd; border-radius: 10px; padding: 10px; }
.modal .btn:focus-visible, .modal .input:focus-visible { outline: 2px solid #2dad14; outline-offset: 2px; }

/* Menus share the card look */
.menu { background: #fffefa; border: 1px solid #dfe7d6; border-radius: 12px; padding: 6px; box-shadow: 0 16px 44px rgba(15, 30, 20, .2); animation: cfIn .12s ease-out; min-width: 200px; }
.menu button { border-radius: 8px; color: #2f4130; } .menu button:hover:not(:disabled) { background: #eef5e7; } .menu button .icon { color: #6f8a5f; } .menu button.is-danger .icon { color: var(--oc-red); }
.menu-head { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a9784; padding: 8px 10px 4px; } .menu-sep { height: 1px; background: #e6ecdd; margin: 5px 4px; }

/* Toasts: light card with a tone icon */
.toast { background: #fffefa; color: #203523; border: 1px solid #dfe7d6; border-left: none !important; border-radius: 12px; padding: 10px 14px 10px 10px; font-size: 12.5px; font-weight: 500; box-shadow: 0 12px 34px rgba(15, 30, 20, .18); display: flex; gap: 10px; align-items: center; max-width: 420px; animation: cfIn .16s ease-out; }
.toast-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; background: #e1edfb; } .toast-ic .icon { width: 14px; height: 14px; color: #24589c; }
.toast.ok .toast-ic { background: #e3f3d8; } .toast.ok .toast-ic .icon { color: #1f6b12; } .toast.err { border-color: #f3c4bf; } .toast.err .toast-ic { background: #fde4e1; } .toast.err .toast-ic .icon { color: #a8261d; }
@media (prefers-reduced-motion: reduce) { .modal, .cf, .menu, .toast { animation: none; } }

.menu .b-dot { width: 9px; height: 9px; margin: 0 3px; } .b-dot.st-draft { background: #d99a0b; } .b-dot.st-in_review { background: #7a5cd0; } .b-dot.st-ready { background: #2a78d6; } .b-dot.st-final { background: #1f7a0e; }

/* Category tags (report / loss / estimate type) are squared tags; statuses are round pills with a dot — shape tells the two apart even when hues are close. */
.badge[class*="tone-"] { border-radius: 6px; padding: 3px 8px; }
/* The layered v1 stylesheet hides .toast until it gets .is-show (opacity 0, shifted right). The app never adds that
   class, so toasts were invisible. State the visible values explicitly here. */
.toast { opacity: 1; transform: none; pointer-events: auto; min-width: 0; transition: opacity .3s; }
.toasts { pointer-events: none; top: 86px; }
.tbl .ev-ic { vertical-align: middle; }

/* ═══ Octa palette ════════════════════════════════════════════════════════════
   Tones drawn from the product's own identity (forest, lime, cream) and the trade it serves, replacing stock pastels:
   Fern, Lagoon, Marigold, Terracotta, Ember, Plum, Spruce, Slate, Berry. --t-dot is the vivid accent. */
.tone-green  { --t-bg: #d8f0c4; --t-fg: #1c5a0f; --t-bd: #b9dea0; --t-dot: #2dad14; }  /* Fern */
.tone-blue   { --t-bg: #cfe6f7; --t-fg: #124a7c; --t-bd: #a9d0ee; --t-dot: #1b84d6; }  /* Lagoon */
.tone-amber  { --t-bg: #ffe9a8; --t-fg: #6b4a00; --t-bd: #f3d476; --t-dot: #f0a800; }  /* Marigold */
.tone-orange { --t-bg: #ffd9c2; --t-fg: #8a3508; --t-bd: #f6b996; --t-dot: #e8622a; }  /* Terracotta */
.tone-red    { --t-bg: #ffd3cd; --t-fg: #8f1d14; --t-bd: #f5aea5; --t-dot: #dc3a2c; }  /* Ember */
.tone-violet { --t-bg: #e6d9fb; --t-fg: #4b2a94; --t-bd: #cdb8f5; --t-dot: #7c4ddb; }  /* Plum */
.tone-teal   { --t-bg: #c9efe6; --t-fg: #0b5c52; --t-bd: #9fdccf; --t-dot: #12a594; }  /* Spruce */
.tone-slate  { --t-bg: #e2e8ec; --t-fg: #3d4f60; --t-bd: #c8d3db; --t-dot: #6d8296; }  /* Slate */
.tone-pink   { --t-bg: #fbd5e8; --t-fg: #8a1d59; --t-bd: #f3aecf; --t-dot: #d9408c; }  /* Berry */

/* Category tags: a tab with a vivid spine in the tone's accent */
.badge[class*="tone-"] { position: relative; overflow: hidden; background: var(--t-bg); color: var(--t-fg); border: none; border-radius: 6px; padding: 4px 9px 4px 13px; font-size: 10px; font-weight: 650; letter-spacing: .015em; box-shadow: inset 0 0 0 1px var(--t-bd); }
.badge[class*="tone-"]::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--t-dot); }
.tbl .tiny .badge[class*="tone-"] { padding: 2px 7px 2px 11px; font-size: 9px; }

/* Status pills: a four-step stage meter + label; Final wears the sidebar's forest and lime */
.badge-status { gap: 7px; padding: 4px 11px 4px 9px; font-size: 10px; font-weight: 650; border-radius: 999px; border: none; }
.st-m { display: inline-flex; gap: 2px; align-items: center; } .st-m b { width: 4px; height: 9px; border-radius: 1.5px; background: currentColor; opacity: .22; display: block; }
.badge-draft .st-m b:nth-child(-n+1), .badge-in_review .st-m b:nth-child(-n+2), .badge-ready .st-m b:nth-child(-n+3), .badge-final .st-m b { opacity: 1; background: var(--s-acc); }
.badge-draft     { --s-acc: #f0a800; background: #ffe9a8; color: #6b4a00; box-shadow: inset 0 0 0 1px #f3d476; }
.badge-in_review { --s-acc: #7c4ddb; background: #e6d9fb; color: #4b2a94; box-shadow: inset 0 0 0 1px #cdb8f5; }
.badge-ready     { --s-acc: #1b84d6; background: #cfe6f7; color: #124a7c; box-shadow: inset 0 0 0 1px #a9d0ee; }
.badge-final     { --s-acc: #8fd15f; background: #183a21; color: #d6efb6; box-shadow: none; }
.badge-ok  { background: #d8f0c4; color: #1c5a0f; border-color: #b9dea0; } .badge-err { background: #ffd3cd; color: #8f1d14; border-color: #f5aea5; }
/* Editor status pill + menu dots follow the same four colours */
.status-pick.is-draft     { background: #ffe9a8; border-color: #f3d476; color: #6b4a00; } .status-pick.is-draft .status-dot { background: #f0a800; }
.status-pick.is-in_review { background: #e6d9fb; border-color: #cdb8f5; color: #4b2a94; } .status-pick.is-in_review .status-dot { background: #7c4ddb; }
.status-pick.is-ready     { background: #cfe6f7; border-color: #a9d0ee; color: #124a7c; } .status-pick.is-ready .status-dot { background: #1b84d6; }
.status-pick.is-final     { background: #183a21; border-color: #183a21; color: #d6efb6; } .status-pick.is-final .status-dot { background: #8fd15f; } .status-pick.is-final .icon { color: #d6efb6; }
.b-dot.st-draft { background: #f0a800; } .b-dot.st-in_review { background: #7c4ddb; } .b-dot.st-ready { background: #1b84d6; } .b-dot.st-final { background: #183a21; }
/* Priority cards and toasts use the same palette */
.jt-card.tone-red { --tone-bg: #ffd3cd; --tone-fg: #8f1d14; } .jt-card.tone-orange { --tone-bg: #ffd9c2; --tone-fg: #8a3508; } .jt-card.tone-amber { --tone-bg: #ffe9a8; --tone-fg: #6b4a00; } .jt-card.tone-blue { --tone-bg: #cfe6f7; --tone-fg: #124a7c; } .jt-card.tone-green { --tone-bg: #d8f0c4; --tone-fg: #1c5a0f; }
.toast-ic { background: #cfe6f7; } .toast-ic .icon { color: #124a7c; } .toast.ok .toast-ic { background: #d8f0c4; } .toast.ok .toast-ic .icon { color: #1c5a0f; } .toast.err .toast-ic { background: #ffd3cd; } .toast.err .toast-ic .icon { color: #8f1d14; }
/* Row "Open" button: clear outline so it reads as a button on tinted rows */
.row-actions .btn { background: #fffefa; border: 1px solid #cfdcc2; color: #243f29; } .row-actions .btn:hover { border-color: var(--oc-green); background: #f1f8ea; }

/* Theme-independent fixes */
.skeleton { background: linear-gradient(100deg, #e9eee2 20%, #f5f7f1 45%, #e9eee2 70%); }
.desk-summary .skeleton { background: linear-gradient(100deg, #2b4c31 20%, #3a6140 45%, #2b4c31 70%); background-size: 220% 100%; }
.dashboard-lower .btn-xs:not(.btn-primary):not(.btn-danger) { background: #fffefa; border-color: #cfdcc2; color: #243f29; }
.tbl .row-actions a.btn, .row-actions a.btn.btn-xs, .dashboard-lower .row-actions a.btn.btn-xs { background: #183a21; border-color: #183a21; color: #d6efb6; }
.tbl .row-actions a.btn:hover, .row-actions a.btn.btn-xs:hover { background: #24502d; border-color: #24502d; color: #fff; }
/* Top-bar search: compact, same height as the Create report button */
.topbar .workspace-search { width: 230px; height: 38px; padding: 0 10px; gap: 8px; box-sizing: border-box; }
.topbar .workspace-search > .icon { width: 14px; height: 14px; } .topbar .workspace-search input { font-size: 12px; } .topbar .workspace-search kbd { font-size: 9px; padding: 0 4px; }
.topbar .topbar-actions .btn, .topbar > .btn { height: 38px; box-sizing: border-box; }
/* ─── Estimate: pricing basis ─── */
.basis-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.basis-fact { display: flex; gap: 10px; align-items: center; border: 1px solid var(--oc-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.basis-fact .jt-ic { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center; background: var(--t-bg); } .basis-fact .jt-ic .icon { width: 15px; height: 15px; color: var(--t-fg); }
.basis-fact strong { display: block; font-size: 13px; color: #203523; } .basis-fact small { display: block; font-size: 11px; color: var(--oc-muted); margin-top: 1px; }
.basis-mode { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--t-bg); color: var(--t-fg); border: 1px solid var(--t-bd); }
.basis-mode .jt-ic { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; display: grid; place-items: center; background: var(--t-dot); } .basis-mode .jt-ic .icon { width: 14px; height: 14px; color: #fff; }
.basis-mode strong { display: block; font-size: 13px; } .basis-mode .small { margin-top: 2px; color: inherit; opacity: .9; }
.room-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.room-card { border: 1px solid var(--oc-line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.room-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .room-card-h strong { font-size: 13.5px; color: #203523; }
.room-dims { font-size: 11.5px; color: var(--oc-muted); margin: 3px 0 10px; font-variant-numeric: tabular-nums; }
.room-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid var(--oc-line); padding-top: 10px; }
.room-stats b { display: block; font-size: 15px; font-weight: 700; color: #203523; font-variant-numeric: tabular-nums; line-height: 1.1; } .room-stats small { display: block; font-size: 10px; color: var(--oc-muted); margin-top: 2px; }
@media (max-width: 900px) { .basis-facts { grid-template-columns: 1fr; } }
/* Editor / estimate top bars: every control is 34px tall */
.ed-topbar .btn, .ed-topbar .btn-tool, .ed-topbar .status-pick, .ed-topbar .icon-btn, .ed-topbar .seg { height: 34px; min-height: 34px; box-sizing: border-box; }
.ed-topbar .icon-btn { width: 34px; border: 1px solid #2f5634; border-radius: 7px; color: #183a21; background: #fffefa; } .ed-topbar .icon-btn:hover { background: #183a21; color: #d6efb6; }
.ed-topbar .seg { padding: 2px; } .ed-topbar .seg .seg-btn { height: 28px; }

/* ── Octa loader: the workspace mark (2×2 tiles) pulsing tile by tile. Used by loader() for every
   block loader, by the first-paint splash in index.html, and as .octa-loader.is-sm inline. ── */
.octa-loader { width: 40px; height: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transform: rotate(-8deg); flex: 0 0 auto; }
.octa-loader i { display: block; background: #91c768; border-radius: 4px; animation: octaTile 1.25s cubic-bezier(.45,.05,.4,1) infinite; transform-origin: center; }
.octa-loader i:nth-child(1) { animation-delay: 0s; } .octa-loader i:nth-child(2) { animation-delay: .16s; }
.octa-loader i:nth-child(4) { animation-delay: .32s; background: #2dad14; } .octa-loader i:nth-child(3) { animation-delay: .48s; }
.octa-loader.is-sm { width: 18px; height: 18px; gap: 2px; } .octa-loader.is-sm i { border-radius: 2px; }
.octa-loader.is-lg { width: 64px; height: 64px; gap: 6px; } .octa-loader.is-lg i { border-radius: 7px; }
@keyframes octaTile { 0%, 100% { transform: scale(.55); opacity: .35; } 35%, 55% { transform: scale(1); opacity: 1; } }
.loading-t { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .octa-loader i { animation: none; opacity: 1; transform: none; } }

/* ── First-paint splash: forest field with the animated mark; removed by main.js once the shell is drawn. ── */
#splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #183523; color: #d6efb6; transition: opacity .32s ease; }
#splash.is-out { opacity: 0; pointer-events: none; }
#splash .splash-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
#splash .splash-name b { color: #91c768; font-weight: 700; } #splash .splash-name small { font-size: 18px; font-weight: 600; color: #d6efb6; }
#splash .splash-sub { font-size: 11px; color: #96ae88; letter-spacing: .08em; text-transform: uppercase; margin-top: -8px; }

/* ── Page transitions: setPage swaps in a fresh #content, which eases in; lists fade while reloading. ── */
#content { animation: pageIn .26s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#content > div.loading, #content > .loading-page { animation: pageIn .4s ease .12s both; }
/* Thin navigation progress bar along the top edge while a page is fetching. */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #2dad14, #91c768); z-index: 1200; opacity: 0; pointer-events: none; border-radius: 0 3px 3px 0; }
html.is-nav .nav-progress { opacity: 1; width: 72%; transition: width 1.4s cubic-bezier(.1,.6,.3,1); }
html.nav-done .nav-progress { opacity: 0; width: 100%; transition: width .18s ease-out, opacity .3s ease .18s; }
@media (prefers-reduced-motion: reduce) { #content, #content > div.loading { animation: none; } #splash { transition: none; } }

/* ── Top-bar icon button hover: both themes solid forest so the dots never vanish into a pale fill. ── */
.ed-topbar .icon-btn:hover, .ed-topbar .icon-btn:focus-visible, .ed-topbar .icon-btn[aria-expanded="true"] { background: #183a21; border-color: #183a21; color: #d6efb6; }
.ed-topbar .icon-btn:hover .icon { color: #d6efb6; }
/* Cross-fade: the outgoing page is parked absolutely over the incoming one and fades away (main.js setPage). */
.main { position: relative; }
.content-ghost { pointer-events: none; z-index: 2; animation: ghostOut .2s ease-out both; }
@keyframes ghostOut { from { opacity: 1; } to { opacity: 0; } }
#content { animation-duration: .3s; }
/* Top bar title: crumbs and the heading stay on one line and ellipsise instead of wrapping into the search. */
.topbar-title { flex: 1 1 auto; min-width: 160px; }
.crumbs { white-space: nowrap; overflow: hidden; min-width: 0; }
.crumbs a, .crumbs > span { display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; min-width: 0; vertical-align: bottom; }
.topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
