/* ── Level 1: calmer visual layer (James approved the mockup 2026-11-12) ─────────────────────────────
   ADDITIVE ONLY: no existing rule or markup was changed. Every rule here starts with html.lv1, so
   removing class="lv1" from <html> (or the <link> to this file) restores the previous look exactly.
   1 warm neutral palette · 2 brand colour kept for the logo, links and focus · 3 serif for page titles
   and big figures · 4 hairline borders, no token shadows · 5 headings in normal case · 6 calmer
   status colours. Same words, same layout, same behaviour. */
html.lv1{
  --bg:#faf9f5;--surface:#ffffff;--border:#e6e3d9;--border2:#efede6;
  --text:#1f1e1b;--text2:#55534d;--text3:#8c8a83;
  --red:#a8402c;--red-bg:#fbf1ee;--red-b:#efd3cb;--amber:#9c6a12;--amber-bg:#fbf5e8;--amber-b:#eedcb3;
  --sh:none;--sh2:none;
  --l-serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --l-hover:#f5f3ec;--l-sel:#ece9df;
}
html.lv1,html.lv1 body{background:var(--bg);color:var(--text)}
html.lv1 body{-webkit-font-smoothing:antialiased}

/* Shell: sidebar, top bar, page background */
html.lv1 .sidebar{background:#f6f5f0;border-right:1px solid var(--border)}
html.lv1 .sb-logo{border-bottom:none}
html.lv1 .logo-text{font-weight:600;letter-spacing:-.2px;color:var(--text)}
html.lv1 .logo-ent,html.lv1 .nav-tag,html.lv1 .fx-pbadge{background:transparent!important;color:var(--text3)!important;border:1px solid var(--border)!important;font-weight:500!important;letter-spacing:.04em!important}
html.lv1 .sb-label{text-transform:none;letter-spacing:0;font-size:12px;font-weight:500;color:var(--text3)}
html.lv1 .nav-item,html.lv1 .sb-more{color:var(--text2);font-weight:400}
html.lv1 .nav-item svg{opacity:.5}
html.lv1 .nav-item:hover,html.lv1 .sb-more:hover{background:var(--l-hover);color:var(--text)}
html.lv1 .nav-item.active{background:var(--l-sel);color:var(--text);font-weight:500}
html.lv1 .nav-item.active svg{opacity:.85}
html.lv1 .sb-more.has-active{color:var(--text);font-weight:500}
html.lv1 .sb-bottom{border-top:1px solid var(--border)}
html.lv1 .topbar{background:var(--bg);border-bottom:1px solid var(--border2)}
html.lv1 .tb-title{font-weight:500;color:var(--text2)}
html.lv1 .content{background:var(--bg)}

/* Plain buttons: one neutral style (main-action and coloured buttons keep their own look) */
html.lv1 .btn:not(.btn-primary):not(.btn-soft-main):not(.btn-danger){background:var(--surface);border-color:var(--border);color:var(--text);font-weight:500}
html.lv1 .btn:not(.btn-primary):not(.btn-soft-main):not(.btn-danger):hover{border-color:#cfcbbf;color:var(--text)}

/* Page titles: serif, regular weight */
html.lv1 .ph-title,html.lv1 .mt-title{font-family:var(--l-serif);font-weight:400;font-size:30px;letter-spacing:-.01em;line-height:1.18;color:var(--text)}
html.lv1 .ph-sub,html.lv1 .mt-sub{color:var(--text2)}
/* Other screen titles: serif, regular weight, each keeps its own size */
html.lv1 .db-greet-h,html.lv1 .cr-header-title,html.lv1 .dd-h1,html.lv1 .la-title{font-family:var(--l-serif);font-weight:400;letter-spacing:-.01em}
html.lv1 #screen-assistant .la-title,html.lv1 #screen-legal-assistant .la-title,html.lv1 #screen-duediligence .dd-h1{font-family:var(--l-serif)!important;font-weight:400!important;letter-spacing:-.01em}   /* these titles carry ID-level / !important rules */
/* Section headings that were in capitals: normal case */
html.lv1 .set-collapse-hd,html.lv1 .repo-sec-lbl,html.lv1 .ga-stagehead,html.lv1 .ob-postaccept-h{text-transform:none;letter-spacing:0}

/* ── GovernanceApp: brand blue (--blue / --ga-blue) is left exactly as it is ── */

/* ── Level 3 named colours (Dashboard + Firm Intelligence), warm values ── */
html.lv1{--hover:#f5f3ec;--st-prog:#3b6fb6;--st-done:#3f7d57;--st-fail:#b4533f;--st-mute:#dedad0}
/* one heading and figure style on both screens: serif, regular weight */
html.lv1 .db-sec-t{font-family:var(--l-serif);font-size:20px;font-weight:400;letter-spacing:0;color:var(--text)}
html.lv1 .db-side-h{font-family:var(--l-serif);font-size:18px;font-weight:400;color:var(--text)}
html.lv1 .fi-kpi-n,html.lv1 .fi-health-pct,html.lv1 .fi-obtile-n,html.lv1 .fi-rec-pct,html.lv1 .fi-rectile-n,html.lv1 .fx-tile-n{font-family:var(--l-serif);font-weight:400;letter-spacing:-.01em}
html.lv1 .fi-kpi-l,html.lv1 .fi-rectile-l,html.lv1 .fx-tile-l{font-weight:500}
html.lv1 .fi-health-cap{text-transform:none;letter-spacing:0}
html.lv1 .fx-tile-go{font-weight:500}
/* Recorder (James 2026-11-13): recording is a formal act, so while it runs it must be unmistakable — the full red of
   before Level 1 for "Recording", its dot and the Stop & Continue button (solid red again), and the clock in red too. */
html.lv1 #mtLiveArea{--red:#dc2626}
html.lv1 #mtClock{color:#dc2626}
html.lv1 .btn.mt-btn-danger:not(.btn-primary):not(.btn-soft-main){background:#dc2626;border-color:#dc2626;color:#fff;font-weight:600}
html.lv1 .btn.mt-btn-danger:not(.btn-primary):not(.btn-soft-main):hover{background:#b91c1c;border-color:#b91c1c;color:#fff}
/* Firm Intelligence "Partner" tag (James 2026-11-13): same size and grey outline as ContractApp's .nav-tag — it was typed with its own blue inline colours, so Level 1 never reached it */
html.lv1 .fx-pbadge{font-size:9px!important;padding:1px 5px!important;border-radius:4px!important}

/* Column lines (James 2026-11-13, after Claude for Legal): every data table gets a light vertical line between columns, as well as the row lines */
html.lv1 :is(.tbl,.fiv-tbl,.fx-tbl,.db-tbl,.cl-tbl,.la-tablewrap table) :is(th,td):not(:last-child){border-right:1px solid var(--border)}
/* Column lines on lists built as rows (James 2026-11-21, same as ContractApp): each column is a cell (.cl-c) of fixed
   width, stretched to the full row height so its line joins the row lines. :where() keeps them at zero weight. */
.fi-wl-lead{display:flex;align-items:center;gap:15px;flex-shrink:0}
html.lv1 .fi-wl-row{--cl-py:15px;--cl-gap:15px}
html.lv1 .db-ov-row{--cl-py:9px;--cl-gap:10px}
html.lv1 .db-ov-head{--cl-py:5px;--cl-gap:10px}
html.lv1 .db-metric-row{--cl-py:10px;--cl-gap:12px}
html.lv1 .db-metric-head{--cl-py:6px;--cl-gap:12px}
@media (min-width:701px){
  html.lv1 .cl-row.cl-row{align-items:stretch!important;padding-top:0!important;padding-bottom:0!important}
  :where(html.lv1 .cl-row)>:where(.cl-c){display:flex;align-items:center;padding-top:var(--cl-py,12px);padding-bottom:var(--cl-py,12px);box-sizing:border-box}
  :where(html.lv1 .cl-row)>:where(.cl-col){flex-direction:column;align-items:stretch;justify-content:center}
  :where(html.lv1 .cl-row)>:where(.cl-end){justify-content:flex-end}
  html.lv1 .cl-row>.cl-c:not(:last-child){border-right:1px solid var(--border);padding-right:var(--cl-gap,14px)}
}
/* Tick-box columns (James 2026-11-21: the boxes touched the column line). A cell holding only a tick box is 44px wide, has no
   side padding and centres the box, so it sits clear of both lines in every table. */
table :is(th,td):has(> input[type=checkbox]:only-child){width:44px!important;min-width:44px;padding-left:0!important;padding-right:0!important;text-align:center!important}
table :is(th,td):has(> input[type=checkbox]:only-child) > input[type=checkbox]{margin:0;vertical-align:middle}
