/* ==========================================================================
   DocuStacker — Workspace design system (v2 exploration)
   --------------------------------------------------------------------------
   Self-contained: nothing here depends on /css or /screens.
   Palette and typography are the supplied DocuStacker system; the only
   addition is --ih-surface-2 for light mode (dark mode already defines it)
   plus a few derived aliases below the palette.
   ========================================================================== */

/* SEC-4 (2026-11-19): Manrope is self-hosted (public/css/app/fonts.css, linked by
   each layout before this file). The design's Google Fonts @import is removed. */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;

  --ih-ink:            #1c1a22;
  --ih-ink-soft:        #5c5768;
  --ih-ink-faint:       #948da2;

  --ih-primary:         #40315f;
  --ih-primary-600:     #2f2448;
  --ih-primary-100:     #ece8f5;
  --ih-primary-50:      #f5f3fa;

  --ih-accent:          #e2823f;
  --ih-accent-100:      #fbe9d9;

  --ih-bg:              #faf9f6;
  --ih-surface:         #ffffff;
  --ih-surface-2:       #f6f4ee; /* added: light counterpart of the dark-mode token */
  --ih-border:          #e8e4da;
  --ih-border-strong:   #d7d1c2;

  --ih-focus-ring:      rgba(64, 49, 95, 0.28);
  --ih-focus-ring-soft: rgba(64, 49, 95, 0.14);
  --ih-focus-border:    color-mix(in srgb, var(--ih-primary) 45%, var(--ih-border));

  --ih-danger:          #c1443c;
  --ih-danger-50:       #fbebe9;

  --ih-success:         #1f9d63;
  --ih-success-100:     #e4f7ee;

  --ih-radius-lg:       12px; /* 2026-11-30: was 16px */
  --ih-radius-md:       12px; /* 2026-11-30: was 16px */
  --ih-radius-sm:       10px;

  --ih-shadow-sm:       0 1px 2px rgba(28, 26, 34, 0.04);
  --ih-shadow-md:       0 8px 24px rgba(28, 26, 34, 0.08);
  --ih-shadow-lg:       0 20px 48px rgba(28, 26, 34, 0.12);

  --ih-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Derived aliases (no new colours) */
  /* The dashboard's two soft pastels, used sparingly for hierarchy.
     Periwinkle (from the logo) = where you work: selection, identity, navigation.
     Apricot (the warm accent)  = what is new or needs a look: warnings, counts. */
  --periwinkle:         #eef0fb;
  --periwinkle-line:    #dadff4;
  --periwinkle-ink:     #3f3a78;
  --apricot:            #fdf1e6;
  --apricot-line:       #f5dcc6;
  --apricot-ink:        #8a4f24;
  --ds-hover:           var(--ih-surface-2);  /* neutral hover, never tinted */
  --ds-warn:            var(--apricot-ink);
  --ds-warn-bg:         var(--apricot);
  --ds-wrap:            1170px;
  --ds-gutter:          24px;
  --ds-gutter:          32px;
  --ds-mast-h:          60px;
  --ds-nav-h:           48px;
  --ds-ease:            cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --ih-ink:            #eae7f2;
  --ih-ink-soft:       #a9a4ba;
  --ih-ink-faint:      #746f83;

  --ih-primary:         #9184bd;
  --ih-primary-600:     #a496cd;
  --ih-primary-100:     #2c2740;
  --ih-primary-50:      #221e30;

  --ih-accent:          #e2965f;
  --ih-accent-100:      #3a2a1e;

  --ih-bg:              #1a1822;
  --ih-surface:         #242030;
  --ih-surface-2:       #1f1c28;

  --ih-border:          #34303e;
  --ih-border-strong:   #47414f;

  --ih-focus-ring:      rgba(145, 132, 189, 0.32);
  --ih-focus-ring-soft: rgba(145, 132, 189, 0.18);

  --ih-danger:          #de7970;
  --ih-danger-50:       #392422;

  --ih-success:         #4fbf8a;
  --ih-success-100:     #1c3328;

  --ih-shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.28);
  --ih-shadow-md:       0 8px 24px rgba(0, 0, 0, 0.36);
  --ih-shadow-lg:       0 20px 48px rgba(0, 0, 0, 0.46);

  --periwinkle:         #272a43;
  --periwinkle-line:    #3a3e60;
  --periwinkle-ink:     #c3c6ee;
  --apricot:            #33271e;
  --apricot-line:       #4b392b;
  --apricot-ink:        #edc09c;
}

html, body { height: 100%; }

body {
  font-family: var(--ih-font);
  background: var(--ih-bg);
  color: var(--ih-ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ih-focus-border); outline-offset: 2px; border-radius: 6px; }
.no-ring:focus-visible { outline: none; } /* focus given back after a dialog opened with the mouse (ds.js) */

.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 13px; height: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.only-sm { display: none; }
.show-sm-inline { display: none !important; }
.soft { color: var(--ih-ink-soft); }
.faint { color: var(--ih-ink-faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.link { color: var(--ih-primary); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: 100%; max-width: var(--ds-wrap); margin: 0 auto; padding: 0 var(--ds-gutter); }

/* --------------------------------------------------------------------------
   Header: masthead (identity) + appnav (work areas)
   -------------------------------------------------------------------------- */

.header { position: sticky; top: 0; z-index: 40; background: var(--ih-surface); border-bottom: 1px solid var(--ih-border); }
.mast { display: flex; align-items: center; gap: 14px; height: var(--ds-mast-h); }

.mark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mark-glyph { width: 28px; height: 28px; display: grid; place-items: center; }
.mark-glyph img { width: 24px; height: auto; }
.mark-word { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
html[data-theme="dark"] .mark-glyph { background: #fff; border-radius: 8px; }

.path-sep { width: 1px; height: 22px; background: var(--ih-border-strong); transform: skewX(-18deg); flex-shrink: 0; }

/* Business switcher — part of the identity path */
.biz { position: relative; }
.biz-btn { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 6px; border-radius: var(--ih-radius-sm); transition: background-color 0.15s; }
.biz-btn:hover, .biz.is-open .biz-btn { background: var(--ds-hover); }
.biz-mono { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ih-primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
html[data-theme="dark"] .biz-mono { color: var(--ih-bg); }
.biz-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.biz-role { font-size: 12px; color: var(--ih-ink-faint); font-weight: 600; }
.biz-btn .i { color: var(--ih-ink-faint); }

.mast-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(380px, 100%);
  height: 38px;
  margin-left: auto;
  padding: 0 8px 0 12px;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius-sm);
  background: var(--ih-bg);
  color: var(--ih-ink-faint);
  font-size: 13px;
  text-align: left;
  transition: border-color 0.15s;
}
.mast-search:hover { border-color: var(--ih-border-strong); }
.mast-search > span:not(.kbd) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border: 1px solid var(--ih-border-strong); border-radius: 5px; background: var(--ih-surface); font-size: 11px; font-weight: 700; color: var(--ih-ink-faint); }

.mast-tools { display: flex; align-items: center; gap: 2px; }
.tool { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--ih-radius-sm); color: var(--ih-ink-soft); transition: background-color 0.15s, color 0.15s; }
.tool:hover, .is-open > .tool { background: var(--ds-hover); color: var(--ih-ink); }
.tool .pip { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ih-accent); box-shadow: 0 0 0 2px var(--ih-surface); }
.me { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; border-radius: 50%; background: var(--periwinkle); color: var(--periwinkle-ink); font-size: 12px; font-weight: 800; }

.appnav { display: flex; align-items: stretch; gap: 4px; height: var(--ds-nav-h); }
.appnav-group { display: flex; align-items: stretch; gap: 4px; }
.appnav-group.is-end { margin-left: auto; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-item > .pop { top: calc(100% + 4px); }
.nav-a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ih-ink-soft);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-a:hover { color: var(--ih-ink); }
.nav-a[aria-current="page"] { color: var(--ih-ink); }
.nav-a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ih-primary); }
.nav-a .i { color: var(--ih-ink-faint); }
.nav-a .caret { width: 14px; height: 14px; }
.nav-count { font-size: 11px; font-weight: 800; color: var(--ih-accent); display: inline-flex; align-items: center; gap: 4px; }
.nav-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.appnav-divider { width: 1px; margin: 14px 6px; background: var(--ih-border); }

/* --------------------------------------------------------------------------
   Menus / popovers
   -------------------------------------------------------------------------- */

.pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 240px;
  padding: 6px;
  background: var(--ih-surface);
  border: 1px solid var(--ih-border);
  border-radius: 12px;
  box-shadow: var(--ih-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.14s, transform 0.14s var(--ds-ease), visibility 0.14s;
}
.pop.is-right { left: auto; right: 0; }
[data-pop].is-open > .pop { opacity: 1; visibility: visible; transform: none; }
.pop-label { padding: 8px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ih-ink-faint); }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; text-align: left; color: var(--ih-ink); }
.pop-item:hover, .pop-item:focus-visible { background: var(--ds-hover); outline: none; }
.pop-item .i { color: var(--ih-ink-faint); }
.pop-item small { display: block; font-size: 12px; font-weight: 500; color: var(--ih-ink-faint); }
.pop-item .tick { margin-left: auto; color: var(--ih-primary); }
.pop-item.is-danger, .pop-item.is-danger .i { color: var(--ih-danger); }
.pop-sep { height: 1px; margin: 6px -6px; background: var(--ih-border); }
.pop-head { padding: 10px 10px 8px; }
.pop-head strong { display: block; }
.pop-head span { font-size: 13px; color: var(--ih-ink-faint); }

.biz .pop { min-width: 320px; }
.biz-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 10px; text-align: left; }
.biz-option:hover { background: var(--ds-hover); }
.biz-option .biz-mono { width: 34px; height: 34px; border-radius: 9px; }
.biz-option .biz-mono.is-quiet { background: var(--periwinkle); color: var(--periwinkle-ink); }
.biz-option .trunc { flex: 1; }
.biz-option .trunc strong { display: block; font-size: 14px; color: var(--ih-ink); }
.biz-option .trunc span { display: block; font-size: 12px; color: var(--ih-ink-faint); }
.biz-option .tick { margin-left: auto; color: var(--ih-primary); }
.biz-note { margin: 4px 10px 8px; padding: 8px 10px; border-radius: 8px; background: var(--ih-surface-2); font-size: 12px; color: var(--ih-ink-soft); }

.notif-pop { width: 380px; padding: 0; }
.notif-pop .pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--ih-border); }
.notif-row { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ih-border); }
.notif-row:hover { background: var(--ih-surface-2); }
.notif-row p { font-size: 13px; color: var(--ih-ink-soft); }
.notif-row strong { display: block; font-size: 13px; color: var(--ih-ink); }
.notif-row time { font-size: 12px; color: var(--ih-ink-faint); }
/* T20: the bell's list is real now: read rows are quieter, an empty list says so, Mark all read is a form */
.notif-row { text-decoration: none; }
.notif-row.is-read strong { font-weight: 600; color: var(--ih-ink-soft); }
.notif-row.is-read .state { opacity: .35; }
.notif-empty { padding: 16px 14px; font-size: 13px; color: var(--ih-ink-faint); border-bottom: 1px solid var(--ih-border); }
.notif-pop .pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notif-pop .pop-head form { display: inline; }
.notif-foot { padding: 10px 14px; text-align: center; font-size: 13px; }

/* --------------------------------------------------------------------------
   Buttons & inputs
   -------------------------------------------------------------------------- */

.b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--ih-radius-sm);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.b .i { width: 16px; height: 16px; }
.b-primary { background: var(--ih-primary); color: #fff; }
.b-primary:hover { background: var(--ih-primary-600); }
html[data-theme="dark"] .b-primary { color: var(--ih-bg); }
.b-line { background: var(--ih-surface); border-color: var(--ih-border-strong); color: var(--ih-ink); }
.b-line:hover { border-color: var(--ih-focus-border); background: var(--ds-hover); }
.b-quiet { color: var(--ih-ink-soft); }
.b-quiet:hover { background: var(--ds-hover); color: var(--ih-ink); }
.b-danger { background: var(--ih-danger); color: #fff; }
.b-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.b-icon { width: 38px; padding: 0; }
.b-icon.b-sm { width: 32px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 700; }
.hint { font-size: 12px; color: var(--ih-ink-faint); }
.inp, .sel {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ih-border-strong);
  border-radius: var(--ih-radius-sm);
  background: var(--ih-surface);
  font-size: 14px;
  color: var(--ih-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.inp::placeholder { color: var(--ih-ink-faint); }
.inp:focus, .sel:focus { outline: none; border-color: var(--ih-focus-border); box-shadow: 0 0 0 4px var(--ih-focus-ring-soft); }
.sel { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23948da2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.inp-sm, .sel.inp-sm { height: 34px; font-size: 13px; }
.search-inp { position: relative; display: flex; align-items: center; }
.search-inp .i { position: absolute; left: 11px; color: var(--ih-ink-faint); width: 16px; height: 16px; pointer-events: none; }
.search-inp .inp { padding-left: 34px; }

.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; gap: 2px; border: 1px solid var(--ih-border); border-radius: var(--ih-radius-sm); background: var(--ih-surface); }
.seg button { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--ih-ink-soft); }
.seg button[aria-pressed="true"] { background: var(--periwinkle); color: var(--periwinkle-ink); }
.seg .n { font-weight: 800; color: var(--ih-ink-faint); }
.seg button[aria-pressed="true"] .n { color: var(--ih-primary); }

.check { width: 16px; height: 16px; accent-color: var(--ih-primary); cursor: pointer; }

/* --------------------------------------------------------------------------
   Page scaffolding
   -------------------------------------------------------------------------- */

.page { padding: 36px 0 72px; }
.page-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ih-ink-faint); }
.h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.lede { margin-top: 6px; font-size: 15px; color: var(--ih-ink-soft); max-width: 640px; }
.lede strong { color: var(--ih-ink); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ih-ink-faint); margin-bottom: 14px; }
.crumbs a { color: var(--ih-ink-soft); font-weight: 600; }
.crumbs a:hover { color: var(--ih-primary); }
.crumbs .i { width: 12px; height: 12px; }

.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.section-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.section-head .meta { font-size: 13px; color: var(--ih-ink-faint); }

.panel { background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); }
.panel-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--ih-border); font-size: 13px; color: var(--ih-ink-faint); }

/* Overview line — metrics set into the canvas, divided by rules */
.overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ih-border-strong); border-bottom: 1px solid var(--ih-border); }
.ov { display: block; padding: 18px 24px 20px 0; transition: background-color 0.15s; }
.ov + .ov { padding-left: 24px; border-left: 1px solid var(--ih-border); }
a.ov:hover .ov-value { color: var(--ih-primary); }
.ov-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ih-ink-soft); }
.ov-value { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; transition: color 0.15s; }
.ov-note { margin-top: 8px; font-size: 12px; color: var(--ih-ink-faint); }
.ov-note b { color: var(--ih-ink-soft); font-weight: 700; }
.ov-flag { width: 7px; height: 7px; border-radius: 50%; background: var(--ih-accent); }

/* --------------------------------------------------------------------------
   Document-management vocabulary
   -------------------------------------------------------------------------- */

/* Document glyph: a sheet with a folded corner and a type label */
.doc {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 28px;
  height: 34px;
  padding: 0 0 5px 4px;
  border: 1px solid var(--ih-border-strong);
  border-radius: 4px 9px 4px 4px;
  background:
    linear-gradient(225deg, var(--ih-surface-2) 0 7px, transparent 7px) top right / 9px 9px no-repeat,
    var(--ih-surface);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ih-ink-soft);
}
.doc::before { content: ""; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-left: 1px solid var(--ih-border-strong); border-bottom: 1px solid var(--ih-border-strong); border-bottom-left-radius: 3px; background: var(--ih-bg); }
.doc::after { content: ""; position: absolute; left: 5px; right: 7px; top: 11px; height: 7px; background: repeating-linear-gradient(to bottom, var(--ih-border) 0 1.5px, transparent 1.5px 3.5px); }
.doc[data-type="pdf"] { color: var(--ih-danger); }
.doc[data-type="doc"] { color: var(--ih-primary); }
.doc[data-type="jpg"], .doc[data-type="png"] { color: var(--ih-success); }
.doc[data-type="xls"] { color: var(--ih-success); }
.doc-lg { width: 40px; height: 48px; font-size: 9px; padding: 0 0 7px 6px; }
.doc-lg::after { top: 15px; left: 7px; right: 10px; height: 11px; }

/* Folder glyph: tab + body in brand tint */
.fold { position: relative; flex-shrink: 0; width: 22px; height: 17px; margin-top: 3px; border-radius: 3px 4px 4px 4px; background: var(--periwinkle); border: 1px solid color-mix(in srgb, var(--ih-primary) 22%, var(--ih-border)); }
.fold::before { content: ""; position: absolute; left: -1px; top: -5px; width: 10px; height: 5px; border-radius: 3px 4px 0 0; background: inherit; border: inherit; border-bottom: 0; }
.fold.is-open { background: var(--ds-hover); }
.fold-lg { width: 34px; height: 26px; margin-top: 6px; border-radius: 4px 6px 6px 6px; }
.fold-lg::before { top: -7px; width: 15px; height: 7px; }

/* Status: restrained dot + words */
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ih-ink-soft); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ih-border-strong); flex-shrink: 0; }
.state.is-active::before { background: var(--ih-success); }
.state.is-expiring { color: var(--apricot-ink); }
.state.is-expiring::before { background: var(--ih-accent); }
.state.is-expired { color: var(--ih-danger); }
.state.is-expired::before { background: var(--ih-danger); }
.state.is-missing::before { background: transparent; border: 1.5px dashed var(--ih-ink-faint); width: 6px; height: 6px; }
.state.is-archived::before { background: var(--ih-ink-faint); }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ih-surface-2); border: 1px solid var(--ih-border); font-size: 12px; font-weight: 700; color: var(--ih-ink-soft); white-space: nowrap; }
.tag .i { width: 12px; height: 12px; }
.tag.is-primary { background: var(--periwinkle); border-color: var(--periwinkle-line); color: var(--periwinkle-ink); }
.tag.is-warn { background: var(--ds-warn-bg); border-color: transparent; color: var(--apricot-ink); }
.tag.is-danger { background: var(--ih-danger-50); border-color: transparent; color: var(--ih-danger); }
.tag.is-success { background: var(--ih-success-100); border-color: transparent; color: var(--ih-success); }

.mono { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--periwinkle); border: 1px solid var(--periwinkle-line); color: var(--periwinkle-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.mono-sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.mono-xl { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.mono.is-person { border-radius: 50%; }

/* Required-documents completeness */
.fill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ih-ink-soft); }
.fill-bar { display: inline-flex; gap: 2px; }
.fill-bar i { width: 6px; height: 12px; border-radius: 2px; background: var(--ih-border); }
.fill-bar i.on { background: var(--ih-primary); }
.fill-bar i.gap { background: transparent; border: 1px dashed var(--ih-ink-faint); }

/* Calendar leaf for dates */
.leaf { display: inline-flex; flex-direction: column; align-items: center; width: 40px; flex-shrink: 0; border: 1px solid var(--ih-border); border-radius: 8px; overflow: hidden; background: var(--ih-surface); line-height: 1.1; }
.leaf small { width: 100%; padding: 2px 0; background: var(--ih-surface-2); border-bottom: 1px solid var(--ih-border); font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ih-ink-faint); text-align: center; }
.leaf strong { padding: 3px 0 4px; font-size: 15px; font-weight: 800; }
.leaf.is-expired { border-color: color-mix(in srgb, var(--ih-danger) 35%, var(--ih-border)); }
.leaf.is-expired small { background: var(--ih-danger-50); color: var(--ih-danger); }
.leaf.is-expiring small { background: var(--ds-warn-bg); color: var(--apricot-ink); }

/* --------------------------------------------------------------------------
   Tables — hairline rows, built for long lists
   -------------------------------------------------------------------------- */

.tbl-wrap { overflow: visible; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { position: sticky; top: 0; padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--ih-ink-faint); background: var(--ih-surface); border-bottom: 1px solid var(--ih-border); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--ih-border); vertical-align: middle; font-size: 14px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color 0.12s; }
.tbl tbody tr:hover { background: var(--ih-surface-2); }
.tbl tbody tr.is-selected { background: var(--periwinkle); }
.tbl .r { text-align: right; }
.tbl .w1 { width: 1%; white-space: nowrap; }
.tbl-group td { padding: 14px 16px 6px; background: transparent; border-bottom: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); }
.tbl-group td span { letter-spacing: 0; text-transform: none; font-weight: 600; margin-left: 6px; }
.tbl tbody tr.tbl-group:hover { background: transparent; }
.tbl-dense td { padding-top: 9px; padding-bottom: 9px; }
.sort { display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
.sort:hover { color: var(--ih-ink); }
.sort .i { width: 12px; height: 12px; }

.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-text { min-width: 0; }
.who-text strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text a strong:hover, a.who-text:hover strong { color: var(--ih-primary); }
.who-text span { display: block; font-size: 12px; color: var(--ih-ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--ih-border); }
.toolbar .search-inp { flex: 1; min-width: 220px; max-width: 360px; }
.toolbar .spacer { flex: 1; }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { min-width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ih-ink-soft); }
.pager button:hover { background: var(--ds-hover); }
.pager button[aria-current="page"] { background: var(--periwinkle); color: var(--periwinkle-ink); }
/* T19 rev 1 (owner 2026-11-25: "pagination same for all site as on the client page"):
   the Clients list pager (app/Views/partials/pager.php), for every list. */
.pager a, .pager .is-off { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ih-ink-soft); text-decoration: none; }
.pager a:hover { background: var(--ds-hover); }
.pager a[aria-current="page"] { background: var(--periwinkle); color: var(--periwinkle-ink); }
.pager .is-off { opacity: .35; }

/* --------------------------------------------------------------------------
   Activity stream
   -------------------------------------------------------------------------- */

.stream-day { padding: 16px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); }
.stream-day:first-child { padding-top: 0; }
.stream-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 8px 0; }
.stream-item time { font-size: 12px; font-weight: 700; color: var(--ih-ink-faint); padding-top: 1px; font-variant-numeric: tabular-nums; }
.stream-item p { font-size: 13px; color: var(--ih-ink-soft); line-height: 1.45; }
.stream-item p strong { color: var(--ih-ink); font-weight: 700; }
.stream-item p a { color: var(--ih-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ih-border-strong); text-underline-offset: 3px; }
.stream-item p a:hover { text-decoration-color: var(--ih-primary); color: var(--ih-primary); }

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ih-border); overflow-x: auto; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--ih-ink-soft); white-space: nowrap; }
.tab:hover { color: var(--ih-ink); }
.tab[aria-selected="true"] { color: var(--ih-ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ih-primary); border-radius: 2px 2px 0 0; }
.tab .n { font-size: 12px; font-weight: 700; color: var(--ih-ink-faint); }

/* --------------------------------------------------------------------------
   Folder tree — signature component
   -------------------------------------------------------------------------- */

.tree { font-size: 14px; user-select: none; }
.tree ul { position: relative; margin-left: 14px; padding-left: 8px; }
.tree ul::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 14px; width: 1px; background: var(--ih-border); }
.t-item:not(.is-open) > ul { display: none; }
.t-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 6px 0 2px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.12s;
}
.tree ul .t-row::before { content: ""; position: absolute; left: -8px; top: 50%; width: 8px; height: 1px; background: var(--ih-border); }
.t-row:hover { background: var(--ih-surface-2); }
.t-row.is-selected { background: var(--periwinkle); }
.t-row.is-selected .t-name { color: var(--ih-primary); font-weight: 800; }
.t-row.is-drop { outline: 1.5px dashed var(--ih-primary); outline-offset: -2px; }
.t-caret { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: var(--ih-ink-faint); flex-shrink: 0; }
.t-caret .i { width: 12px; height: 12px; transition: transform 0.15s var(--ds-ease); }
.t-item.is-open > .t-row .t-caret .i { transform: rotate(90deg); }
.t-caret.is-leaf { visibility: hidden; }
.t-caret:hover { background: var(--ih-border); color: var(--ih-ink); }
.t-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.t-count { font-size: 12px; font-weight: 700; color: var(--ih-ink-faint); font-variant-numeric: tabular-nums; }
.t-flag { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.t-flag.is-expiring { background: var(--ih-accent); }
.t-flag.is-expired { background: var(--ih-danger); }
.t-flag.is-missing { border: 1.5px dashed var(--ih-ink-faint); width: 7px; height: 7px; }
.t-more { position: absolute; right: 4px; top: 5px; opacity: 0; }
.t-row:hover .t-more, .t-row:focus-within .t-more, .t-more.is-open { opacity: 1; }
.t-row:hover .t-count, .t-row:focus-within .t-count, .t-row:has(.t-more.is-open) .t-count { visibility: hidden; }
.t-row { padding-right: 8px; }
.t-more > .tool { width: 26px; height: 26px; }
.t-edit { flex: 1; min-width: 0; height: 28px; padding: 0 8px; border: 1px solid var(--ih-focus-border); border-radius: 7px; background: var(--ih-surface); box-shadow: 0 0 0 3px var(--ih-focus-ring-soft); font-weight: 700; font-size: 14px; }
.t-edit:focus { outline: none; }

/* --------------------------------------------------------------------------
   Workspace (tree + content) — used by documents and client detail
   -------------------------------------------------------------------------- */

.ws { display: grid; grid-template-columns: 316px minmax(0, 1fr); min-height: 620px; }
.ws-side { padding: 14px 10px 14px 14px; border-right: 1px solid var(--ih-border); }
.ws-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px 6px; }
.ws-side-head h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); }
.ws-main { min-width: 0; display: flex; flex-direction: column; }
.ws-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--ih-border); }
.ws-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.ws-head .crumbs { margin-bottom: 4px; }
.ws-head .actions { margin-left: auto; }
.rules { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--ih-ink-soft); }
.rules span { display: inline-flex; align-items: center; gap: 6px; }
.rules .i { width: 14px; height: 14px; color: var(--ih-ink-faint); }

.subfolders { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px 4px; }
.subfolder { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--ih-border); border-radius: 10px; background: var(--ih-surface); font-size: 13px; font-weight: 700; transition: border-color 0.15s, background-color 0.15s; }
.subfolder:hover { border-color: var(--ih-focus-border); background: var(--ds-hover); }
.subfolder .fold { margin-top: 2px; width: 18px; height: 14px; }
.subfolder .fold::before { width: 8px; height: 4px; top: -4px; }
.subfolder small { font-weight: 600; color: var(--ih-ink-faint); }

.dropline { margin: 14px 22px 20px; padding: 12px; border: 1.5px dashed var(--ih-border-strong); border-radius: 12px; text-align: center; font-size: 13px; color: var(--ih-ink-faint); }
.dropline strong { color: var(--ih-primary); }
.ws-main.is-drag { background: var(--periwinkle); }

/* --------------------------------------------------------------------------
   Client identity
   -------------------------------------------------------------------------- */

.identity { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.identity-main { flex: 1; min-width: 280px; }
.identity h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.identity .company { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--ih-ink-soft); }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 13px; color: var(--ih-ink-soft); }
.contacts > * { display: inline-flex; align-items: center; gap: 7px; }
.contacts a:hover { color: var(--ih-primary); }
.contacts .i { width: 15px; height: 15px; color: var(--ih-ink-faint); }

.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--ih-border-strong); }
.fact { padding: 14px 20px 14px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--ih-border); }
.fact dt { font-size: 12px; font-weight: 700; color: var(--ih-ink-faint); }
.fact dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.fact dd small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--ih-ink-soft); }

.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--ih-border); font-size: 14px; }
.kv dt { color: var(--ih-ink-faint); font-weight: 600; }
.kv dd { margin: 0; }

/* --------------------------------------------------------------------------
   Dashboard specifics
   -------------------------------------------------------------------------- */

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; margin-top: 36px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 36px; }

.quick { display: grid; gap: 2px; }
.quick a, .quick button { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; text-align: left; transition: background-color 0.15s; }
.quick a:hover, .quick button:hover { background: var(--ih-surface); box-shadow: inset 0 0 0 1px var(--ih-border); }
.quick .q-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--periwinkle); color: var(--periwinkle-ink); }
.quick .q-icon .i { width: 16px; height: 16px; }
.quick .kbd { margin-left: auto; }
.quick small { display: block; font-size: 12px; font-weight: 500; color: var(--ih-ink-faint); }

.health-figure { display: flex; align-items: baseline; gap: 10px; }
.health-figure strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.health-figure span { font-size: 13px; color: var(--ih-ink-soft); }
.health-bar { display: flex; gap: 2px; height: 8px; margin-top: 16px; }
.health-bar i { display: block; height: 100%; border-radius: 2px; min-width: 4px; }
.health-bar i:first-child { border-radius: 4px 2px 2px 4px; }
.health-bar i:last-child { border-radius: 2px 4px 4px 2px; }
.health-legend { margin-top: 14px; display: grid; gap: 8px; }
.health-legend li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.health-legend b { font-variant-numeric: tabular-nums; }
.gaps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ih-border); font-size: 13px; }
.gaps li:first-child { padding-top: 0; }
.gaps li:last-child { border-bottom: 0; }
.gaps .fold { margin-top: 0; }

/* --------------------------------------------------------------------------
   Overlays: modal, palette, toast
   -------------------------------------------------------------------------- */

.scrim { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(28, 26, 34, 0.38); opacity: 0; visibility: hidden; transition: opacity 0.18s, visibility 0.18s; }
.scrim.is-open { opacity: 1; visibility: visible; }
.dialog { width: 100%; max-width: 520px; background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); box-shadow: var(--ih-shadow-lg); transform: translateY(6px); transition: transform 0.2s var(--ds-ease); }
.scrim.is-open .dialog { transform: none; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.dialog-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.dialog-head p { margin-top: 4px; font-size: 14px; color: var(--ih-ink-soft); }
.dialog-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--ih-border); }

.palette { max-width: 620px; overflow: hidden; }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--ih-border); }
.palette-in input { flex: 1; height: 54px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.palette-in .i { color: var(--ih-ink-faint); }
.palette-list { max-height: 400px; overflow-y: auto; padding: 6px; }
.palette-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ih-ink-faint); }
.palette-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.palette-row:hover, .palette-row.is-active { background: var(--ds-hover); }
.palette-row mark { background: none; color: var(--ih-primary); font-weight: 800; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--ih-border); font-size: 12px; color: var(--ih-ink-faint); background: var(--ih-surface-2); }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 14px; border-radius: 12px; background: var(--ih-ink); color: var(--ih-bg); font-size: 13px; font-weight: 600; box-shadow: var(--ih-shadow-lg); animation: toast-in 0.25s var(--ds-ease); }
.toast .i { color: var(--ih-accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.empty { padding: 56px 24px; text-align: center; }
.empty .fold-lg, .empty .doc-lg { margin: 0 auto 16px; }
.empty h3 { font-size: 17px; font-weight: 800; }
.empty p { max-width: 420px; margin: 6px auto 0; font-size: 14px; color: var(--ih-ink-soft); }
.empty .actions { justify-content: center; margin-top: 18px; }

/* Version switch (design exploration only) */
.explore { position: fixed; left: 16px; bottom: 16px; z-index: 300; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ih-surface); border: 1px solid var(--ih-border); box-shadow: var(--ih-shadow-md); font-size: 12px; font-weight: 700; }
.explore a, .explore button { padding: 6px 10px; border-radius: 8px; color: var(--ih-ink-soft); white-space: nowrap; flex-shrink: 0; }
.explore { max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.dash.is-stacked { grid-template-columns: minmax(0, 1fr); }
.dash.is-stacked .dash-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.explore a:hover, .explore button:hover { background: var(--ds-hover); color: var(--ih-ink); }

/* --------------------------------------------------------------------------
   Forms: textarea, checks, radios, switches, validation, password
   -------------------------------------------------------------------------- */

.txt { width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--ih-border-strong); border-radius: var(--ih-radius-sm); background: var(--ih-surface); font-size: 14px; line-height: 1.5; resize: vertical; }
.txt:focus { outline: none; border-color: var(--ih-focus-border); box-shadow: 0 0 0 4px var(--ih-focus-ring-soft); }
.opt { font-weight: 500; color: var(--ih-ink-faint); margin-left: 6px; }
.req { color: var(--ih-danger); margin-left: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid2 .full { grid-column: 1 / -1; }
.is-invalid .inp, .inp.is-invalid { border-color: var(--ih-danger); }
.err { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ih-danger); }
.err .i { width: 13px; height: 13px; }

.opt-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.opt-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ih-primary); flex-shrink: 0; }
.opt-row small { display: block; font-size: 12px; color: var(--ih-ink-faint); }


.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; border-radius: 2px; background: var(--ih-border); }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: var(--ih-danger); }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: var(--ih-accent); }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: var(--ih-primary); }
.pw-meter[data-level="4"] i { background: var(--ih-success); }
.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12px; color: var(--ih-ink-faint); }
.pw-rules li { display: flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.pw-rules li.is-met { color: var(--ih-success); }
.pw-rules li.is-met::before { background: currentColor; }
.inp-wrap { position: relative; }
.inp-wrap .inp { padding-right: 44px; }
.inp-wrap .tool { position: absolute; right: 3px; top: 3px; width: 32px; height: 32px; }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--ih-border-strong); border-radius: 12px; background: var(--ih-surface-2); text-align: center; font-size: 13px; color: var(--ih-ink-soft); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.dropzone:hover { border-color: var(--ih-focus-border); background: var(--ds-hover); }
.dropzone strong { color: var(--ih-primary); }

/* Choice cards */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--ih-border-strong); border-radius: 12px; background: var(--ih-surface); cursor: pointer; font-size: 14px; transition: border-color 0.15s, background-color 0.15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { font-weight: 700; }
.choice small { font-size: 12px; color: var(--ih-ink-faint); }
.choice:hover { border-color: var(--ih-focus-border); }
.choice:has(input:checked) { border-color: var(--ih-focus-border); background: var(--periwinkle); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--ih-focus-ring-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--ih-border-strong); border-radius: 8px; background: var(--ih-surface); font-size: 13px; font-weight: 700; color: var(--ih-ink-soft); cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--periwinkle-line); background: var(--periwinkle); color: var(--periwinkle-ink); }

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ih-border); background: var(--ih-surface); font-size: 13px; color: var(--ih-ink-soft); }
.notice > .i { margin-top: 1px; color: var(--ih-primary); }
.notice strong { display: block; color: var(--ih-ink); font-size: 14px; }
.notice .actions { margin-left: auto; }
.notice.is-info { background: var(--periwinkle); border-color: var(--periwinkle-line); }
.notice.is-warn { background: var(--ds-warn-bg); border-color: transparent; }
.notice.is-warn > .i { color: var(--ih-accent); }
.notice.is-danger { background: var(--ih-danger-50); border-color: transparent; }
.notice.is-danger > .i { color: var(--ih-danger); }
.notice.is-success { background: var(--ih-success-100); border-color: transparent; }
.notice.is-success > .i { color: var(--ih-success); }

/* --------------------------------------------------------------------------
   Side sheet (drawer) — a scrim variant
   -------------------------------------------------------------------------- */

.scrim.is-side { justify-content: flex-end; align-items: stretch; padding: 0; }
.sheet { display: flex; flex-direction: column; width: min(520px, 100%); height: 100%; background: var(--ih-surface); border-left: 1px solid var(--ih-border); box-shadow: var(--ih-shadow-lg); transform: translateX(16px); transition: transform 0.22s var(--ds-ease); }
.scrim.is-open .sheet { transform: none; }
.sheet .dialog-head { padding-bottom: 16px; border-bottom: 1px solid var(--ih-border); }
.sheet .dialog-body { flex: 1; overflow-y: auto; }

/* --------------------------------------------------------------------------
   Sub-navigation (area tabs under a page title)
   -------------------------------------------------------------------------- */

.subnav { display: flex; gap: 2px; margin: -8px 0 28px; border-bottom: 1px solid var(--ih-border); overflow-x: auto; }
.subnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--ih-ink-soft); white-space: nowrap; }
.subnav a:hover { color: var(--ih-ink); }
.subnav a[aria-current="page"] { color: var(--ih-ink); }
.subnav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--ih-primary); border-radius: 2px 2px 0 0; }
.subnav .n { font-size: 12px; color: var(--ih-ink-faint); }
.subnav .n.is-warn { color: var(--ih-accent); }

/* --------------------------------------------------------------------------
   Side-listed layout (settings, profile form)
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.split-nav { position: sticky; top: calc(var(--ds-mast-h) + var(--ds-nav-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.split-nav .grp { padding: 14px 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ih-ink-faint); }
.split-nav .grp:first-child { padding-top: 0; }
.split-nav a { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ih-ink-soft); }
.split-nav a:hover { background: var(--ih-surface); color: var(--ih-ink); }
.split-nav a[aria-current="page"], .split-nav a.is-active { background: var(--periwinkle); color: var(--periwinkle-ink); font-weight: 700; }
.block { padding: 28px 0; border-top: 1px solid var(--ih-border); scroll-margin-top: 130px; }
.block:first-child { padding-top: 0; border-top: 0; }
.block-head { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; }
.block-head h2 { font-size: 16px; font-weight: 800; }
.block-head p { margin-top: 4px; font-size: 13px; color: var(--ih-ink-faint); }
.block-body { display: flex; flex-direction: column; gap: 16px; }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; padding: 14px 0; border-top: 1px solid var(--ih-border); background: color-mix(in srgb, var(--ih-bg) 92%, transparent); backdrop-filter: blur(6px); }
.savebar .hint { margin-right: auto; }

/* --------------------------------------------------------------------------
   Grouped list rows (notifications, expiry, search)
   -------------------------------------------------------------------------- */

.lrow { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--ih-border); }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--ih-surface-2); }
.lrow-main { flex: 1; min-width: 0; }
.lrow-title { font-size: 14px; font-weight: 700; }
.lrow-title a:hover { color: var(--ih-primary); }
.lrow-text { margin-top: 2px; font-size: 13px; color: var(--ih-ink-soft); }
.lrow-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--ih-ink-faint); }
.lrow-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lrow-meta .i { width: 12px; height: 12px; }
.lrow-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lrow.is-unread .lrow-title::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--ih-primary); vertical-align: 2px; }
.lrow.is-read .lrow-title { font-weight: 600; color: var(--ih-ink-soft); }
.lgroup { padding: 10px 18px; background: var(--ih-surface-2); border-bottom: 1px solid var(--ih-border); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); display: flex; justify-content: space-between; }
.lgroup span { letter-spacing: 0; text-transform: none; font-weight: 600; }
.lgroup.is-danger { color: var(--ih-danger); }
.lgroup.is-warn { color: var(--apricot-ink); }
.ico { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--ih-surface-2); border: 1px solid var(--ih-border); color: var(--ih-ink-soft); }
.ico .i { width: 16px; height: 16px; }
.ico.is-danger { background: var(--ih-danger-50); border-color: transparent; color: var(--ih-danger); }
.ico.is-warn { background: var(--ds-warn-bg); border-color: transparent; color: var(--apricot-ink); }
.ico.is-primary { background: var(--periwinkle); border-color: var(--periwinkle-line); color: var(--periwinkle-ink); }
.ico.is-success { background: var(--ih-success-100); border-color: transparent; color: var(--ih-success); }
mark.hit { background: var(--periwinkle); color: var(--periwinkle-ink); border-radius: 3px; padding: 0 1px; }

/* --------------------------------------------------------------------------
   Document viewer, versions, notes
   -------------------------------------------------------------------------- */

.viewer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.viewer { border: 1px solid var(--ih-border); border-radius: var(--ih-radius-lg); background: var(--ih-surface-2); overflow: hidden; }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--ih-border); background: var(--ih-surface); font-size: 13px; color: var(--ih-ink-soft); }
.viewer-bar .spacer { flex: 1; }
.viewer-stage { display: flex; justify-content: center; padding: 40px 24px; min-height: 620px; }
.sheet-page { width: 100%; max-width: 500px; aspect-ratio: 1 / 1.414; padding: 44px 46px; background: #fff; border-radius: 3px; box-shadow: 0 2px 4px rgba(28, 26, 34, 0.06), 0 12px 32px rgba(28, 26, 34, 0.1); display: flex; flex-direction: column; gap: 14px; }
.sheet-page .band { height: 42px; border-radius: 4px; background: #dadff4; }
.sheet-page .photo { width: 92px; height: 116px; border-radius: 4px; background: #f6f4ee; }
.sheet-page .ln { height: 8px; border-radius: 4px; background: #e8e4da; }
.sheet-page .mrz { margin-top: auto; height: 32px; background: repeating-linear-gradient(90deg, #d7d1c2 0 6px, transparent 6px 9px); border-radius: 3px; }
.side-stack { display: flex; flex-direction: column; gap: 32px; }
.version { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ih-border); }
.version:first-child { padding-top: 0; }
.version:last-child { border-bottom: 0; }
.v-badge { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--ih-border); font-size: 12px; font-weight: 800; color: var(--ih-ink-soft); }
.version.is-current .v-badge { background: var(--ih-primary); border-color: var(--ih-primary); color: #fff; }
html[data-theme="dark"] .version.is-current .v-badge { color: var(--ih-bg); }
.version .who-text p { margin-top: 3px; font-size: 13px; color: var(--ih-ink-soft); }
.note { padding: 12px 14px; border-left: 3px solid var(--periwinkle-line); background: var(--ih-surface); border-radius: 0 10px 10px 0; font-size: 13px; }
.note small { display: block; margin-top: 6px; color: var(--ih-ink-faint); }
.masked { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--ih-surface-2); border: 1px solid var(--ih-border); color: var(--ih-ink-soft); }

/* --------------------------------------------------------------------------
   Audit diff
   -------------------------------------------------------------------------- */

.diff { border: 1px solid var(--ih-border); border-radius: 12px; overflow: hidden; font-size: 13px; }
.diff > div { display: grid; grid-template-columns: 110px 1fr 1fr; border-bottom: 1px solid var(--ih-border); }
.diff > div:last-child { border-bottom: 0; }
.diff > div > * { padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.diff .h { background: var(--ih-surface-2); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); }
.diff .was { background: var(--ih-danger-50); color: var(--ih-danger); text-decoration: line-through; }
.diff .now { background: var(--ih-success-100); color: var(--ih-success); }

/* --------------------------------------------------------------------------
   Permissions matrix, email chips, role options
   -------------------------------------------------------------------------- */

.perm th:not(:first-child), .perm td:not(:first-child) { text-align: center; width: 120px; }
.perm .pg td { padding: 14px 16px 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); border-bottom: 0; }
.perm tbody tr.pg:hover { background: transparent; }
.perm .yes { color: var(--ih-primary); }
.perm .no { color: var(--ih-border-strong); }
.perm .pn strong { display: block; font-size: 14px; }
.perm .pn span { font-size: 12px; color: var(--ih-ink-faint); }

.emails { display: flex; flex-wrap: wrap; gap: 6px; min-height: 42px; padding: 5px; border: 1px solid var(--ih-border-strong); border-radius: var(--ih-radius-sm); background: var(--ih-surface); cursor: text; }
.emails:focus-within { border-color: var(--ih-focus-border); box-shadow: 0 0 0 4px var(--ih-focus-ring-soft); }
.emails.is-bad { border-color: var(--ih-danger); }
.emails input { flex: 1; min-width: 160px; border: 0; outline: 0; background: transparent; font-size: 14px; padding: 4px 6px; }
.em { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 10px; border-radius: 7px; background: var(--periwinkle); border: 1px solid var(--periwinkle-line); font-size: 13px; font-weight: 600; color: var(--periwinkle-ink); }
.em.is-bad { background: var(--ih-danger-50); border-color: transparent; color: var(--ih-danger); }
.em button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; }
.em .i { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   Form builder
   -------------------------------------------------------------------------- */

.fb { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.fb-rail { position: sticky; top: calc(var(--ds-mast-h) + var(--ds-nav-h) + 20px); max-height: calc(100vh - 150px); overflow-y: auto; }
.fb-rail h3 { padding: 12px 4px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ih-ink-faint); }
.fb-rail h3:first-child { padding-top: 0; }
.fb-type { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; text-align: left; color: var(--ih-ink); cursor: grab; }
.fb-type:hover { background: var(--ih-surface); box-shadow: inset 0 0 0 1px var(--ih-border); }
.fb-type .ico { width: 28px; height: 28px; border-radius: 8px; }
.fb-type .ico .i { width: 14px; height: 14px; }
.fb-type .add { margin-left: auto; color: var(--ih-ink-faint); width: 14px; height: 14px; }
.fb-paper { padding: 36px 40px; min-height: 560px; }
.fb-title { width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 4px 8px; margin-left: -8px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.fb-desc { width: 100%; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 4px 8px; margin-left: -8px; font-size: 14px; color: var(--ih-ink-soft); resize: none; }
.fb-title:hover, .fb-desc:hover { border-color: var(--ih-border); }
.fb-title:focus, .fb-desc:focus { outline: none; border-color: var(--ih-focus-border); box-shadow: 0 0 0 4px var(--ih-focus-ring-soft); }
.fb-head { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--ih-border); }
.fq { position: relative; display: flex; gap: 10px; margin: 0 -14px 6px; padding: 12px 14px 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.fq:hover { background: var(--ih-surface-2); }
.fq.is-selected { border-color: var(--ih-primary); background: var(--periwinkle); }
.fq.is-dragging { opacity: 0.4; }
.fq.drop-before { box-shadow: 0 -2px 0 var(--ih-primary); }
.fq.drop-after { box-shadow: 0 2px 0 var(--ih-primary); }
.fq-grip { color: var(--ih-border-strong); cursor: grab; padding-top: 2px; }
.fq:hover .fq-grip, .fq.is-selected .fq-grip { color: var(--ih-ink-faint); }
.fq-body { flex: 1; min-width: 0; pointer-events: none; }
.fq-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; opacity: 0; }
.fq:hover .fq-tools, .fq.is-selected .fq-tools { opacity: 1; }
.fq-tools .tool { width: 28px; height: 28px; background: var(--ih-surface); }
.fq-type { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); }
.fq-type .i { width: 12px; height: 12px; }
.fq-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.fq-help { display: block; margin-top: 6px; font-size: 12px; color: var(--ih-ink-faint); }
.fq-section { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.fq-opts { display: flex; flex-direction: column; gap: 8px; }
.fq-addr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fq-addr .full { grid-column: 1 / -1; }
.sigpad { position: relative; height: 110px; border: 1.5px dashed var(--ih-border-strong); border-radius: 12px; background: var(--ih-surface-2); display: grid; place-items: center; color: var(--ih-ink-faint); font-size: 13px; }
.sigpad::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 26px; border-bottom: 1px solid var(--ih-border-strong); }
.fb-end { padding: 16px; border: 1.5px dashed var(--ih-border-strong); border-radius: 12px; text-align: center; font-size: 13px; color: var(--ih-ink-faint); }
.fb-end.is-over { border-color: var(--ih-primary); background: var(--periwinkle); color: var(--periwinkle-ink); }
.fb-props { position: sticky; top: calc(var(--ds-mast-h) + var(--ds-nav-h) + 20px); max-height: calc(100vh - 150px); overflow-y: auto; }
.fb-props .dialog-body { gap: 16px; }
.opt-edit { display: flex; align-items: center; gap: 6px; }
.opt-edit + .opt-edit { margin-top: 6px; }
.preview-wrap { max-width: 700px; margin: 0 auto; transition: max-width 0.25s var(--ds-ease); }
.preview-wrap.is-mobile { max-width: 390px; }
.preview-wrap .fb-paper { padding: 36px 40px; }
.preview-wrap.is-mobile .fb-paper { padding: 22px; }
.preview-wrap.is-mobile .fq-addr { grid-template-columns: 1fr; }
.pq + .pq { margin-top: 22px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ih-ink-faint); }
.save-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ih-success); }
.save-state.is-dirty .dot { background: var(--ih-accent); }

.answer { padding: 12px 0; border-bottom: 1px solid var(--ih-border); }
.answer:last-child { border-bottom: 0; }
.answer dt { font-size: 12px; font-weight: 700; color: var(--ih-ink-faint); }
.answer dd { margin-top: 3px; font-size: 14px; }
.sig-img { width: 220px; height: 60px; border-bottom: 1px solid var(--ih-border-strong); font-family: 'Segoe Script', 'Brush Script MT', cursive; font-size: 28px; color: var(--ih-primary); display: flex; align-items: flex-end; padding: 0 6px 2px; }

/* --------------------------------------------------------------------------
   Folder rules editor
   -------------------------------------------------------------------------- */

.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.rules-panel { position: sticky; top: calc(var(--ds-mast-h) + var(--ds-nav-h) + 20px); }
.rule-summary { padding: 12px 14px; border-radius: 12px; background: var(--ih-surface-2); border: 1px solid var(--ih-border); font-size: 13px; color: var(--ih-ink-soft); }
.rule-summary strong { color: var(--ih-ink); }
.t-rule { font-size: 11px; font-weight: 700; color: var(--ih-ink-faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.t-rule .i { width: 12px; height: 12px; }
.t-rule.is-req { color: var(--apricot-ink); }
.t-grip { color: var(--ih-border-strong); cursor: grab; }
.t-grip .i, .fq-grip .i { transform: rotate(90deg); }
.rules-panel .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-row:hover .t-grip { color: var(--ih-ink-faint); }
.t-row.drop-before { box-shadow: inset 0 2px 0 var(--ih-primary); }
.t-row.drop-after { box-shadow: inset 0 -2px 0 var(--ih-primary); }
.t-row.drop-inside { background: var(--periwinkle); outline: 1.5px dashed var(--ih-primary); outline-offset: -2px; }

/* --------------------------------------------------------------------------
   Sign-in screens
   -------------------------------------------------------------------------- */

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; padding: 32px 48px; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .h1 { font-size: 28px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.auth-card .notice { margin-top: 20px; }
.auth-alt { margin-top: 22px; font-size: 14px; color: var(--ih-ink-soft); text-align: center; }
.auth-foot { font-size: 12px; color: var(--ih-ink-faint); }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(32px, 5vw, 72px); background: var(--ih-primary-600); color: rgba(255, 255, 255, 0.92); overflow: hidden; }
html[data-theme="dark"] .auth-aside { background: var(--ih-surface-2); }
.auth-aside h2 { max-width: 440px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: #fff; }
html[data-theme="dark"] .auth-aside h2 { color: var(--ih-ink); }
.auth-aside > p { max-width: 420px; margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.74); }
.auth-stack { position: relative; margin-top: 44px; max-width: 420px; }
.auth-stack .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: -1px; background: #fff; border: 1px solid #e8e4da; font-size: 13px; color: #1c1a22; }
.auth-stack .row:first-child { border-radius: 12px 12px 0 0; }
.auth-stack .row:last-child { border-radius: 0 0 12px 12px; }
.auth-stack .row .state { margin-left: auto; }
.auth-stack .row .doc { background: #fff; }
.auth-stack .row .doc::before { background: #eef0fb; }
.auth-points { margin-top: 36px; display: grid; gap: 12px; max-width: 420px; font-size: 14px; color: rgba(255, 255, 255, 0.74); }
.auth-points li { display: flex; gap: 10px; }
.auth-points .i { color: var(--ih-accent); margin-top: 2px; }
html[data-theme="dark"] .auth-aside > p, html[data-theme="dark"] .auth-points { color: var(--ih-ink-soft); }
.center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 32px 16px; }
.center-card { width: 100%; max-width: 560px; margin-top: 48px; }

/* Error pages */
.oops { max-width: 560px; margin: 40px auto; text-align: center; }
.oops .code { font-size: 12px; }
.oops h1 { margin-top: 14px; }
.oops p { margin-top: 10px; font-size: 15px; color: var(--ih-ink-soft); }
.oops .actions { justify-content: center; margin-top: 22px; }

/* Design-review state switch */
.explore .st { padding: 6px 10px; border-radius: 8px; color: var(--ih-ink-soft); text-transform: capitalize; }
.explore .st[aria-pressed="true"] { background: var(--periwinkle); color: var(--periwinkle-ink); }
.explore .sep { width: 1px; height: 18px; background: var(--ih-border); margin: 0 2px; }

/* Components page */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { border: 1px solid var(--ih-border); border-radius: 12px; overflow: hidden; background: var(--ih-surface); font-size: 12px; }
.swatch i { display: block; height: 52px; }
.swatch span { display: block; padding: 8px 10px; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

@media (max-width: 1180px) {
  .fb { grid-template-columns: minmax(0, 1fr) 300px; }
  .fb-rail { grid-column: 1 / -1; position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; }
  .fb-rail h3 { width: 100%; padding: 6px 4px 0; }
  .fb-type { width: auto; border: 1px solid var(--ih-border); background: var(--ih-surface); }
  .viewer-grid, .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .rules-panel { position: static; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split-nav { position: static; flex-direction: row; overflow-x: auto; }
  .split-nav .grp { display: none; }
  .split-nav a { white-space: nowrap; }
  .block-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .fb { grid-template-columns: minmax(0, 1fr); }
  .fb-props { position: static; max-height: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
}
@media (max-width: 720px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .auth-main { padding: 24px 20px; }
  .fb-paper { padding: 22px; }
  .lrow { flex-wrap: wrap; }
  .lrow-side { width: 100%; padding-left: 48px; }
  .perm th:not(:first-child), .perm td:not(:first-child) { width: 64px; }
  .pw-rules { grid-template-columns: 1fr; }
  .diff > div { grid-template-columns: 80px 1fr 1fr; }
}




/* --------------------------------------------------------------------------
   Dashboard (dense workspace layout)
   -------------------------------------------------------------------------- */

.dh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dh h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.dh-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 13px; color: var(--ih-ink-soft); }
.dh-ctx .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ih-border-strong); }
.dh-ctx strong { color: var(--ih-ink); font-weight: 700; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 12px; }
.kpi { display: block; padding: 14px 18px 15px; transition: background-color 0.15s; }
.kpi + .kpi { border-left: 1px solid var(--ih-border); }
a.kpi:hover { background: var(--ds-hover); }
.kpi:first-child { border-radius: 12px 0 0 12px; }
.kpi:last-child { border-radius: 0 12px 12px 0; }
.kpi-l { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ih-ink-soft); }
.kpi-l .dot { width: 6px; height: 6px; border-radius: 50%; }
.kpi-v { margin-top: 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-n { margin-top: 2px; font-size: 12px; color: var(--ih-ink-faint); }
.kpi-n b { color: var(--ih-ink-soft); font-weight: 700; }

.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; margin-top: 18px; align-items: start; }
.dcol { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.box { background: var(--ih-surface); border: 1px solid var(--ih-border); border-radius: 12px; min-width: 0; }
.box-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 11px 16px; border-bottom: 1px solid var(--ih-border); }
.box-h h2 { font-size: 14px; font-weight: 800; letter-spacing: -0.005em; }
.box-h .meta { font-size: 12px; color: var(--ih-ink-faint); }
.box-h .push { margin-left: auto; }
.box-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--ih-border); font-size: 12px; color: var(--ih-ink-faint); }
.box .seg { padding: 2px; }
.box .seg button { height: 24px; padding: 0 8px; font-size: 12px; }

.tbl-d th { padding: 8px 14px; font-size: 11px; letter-spacing: 0.02em; }
.tbl-d td { padding: 8px 14px; font-size: 13px; }
.tbl-d .who { gap: 10px; }
.tbl-d .who-text strong { font-size: 13px; }
.tbl-d .who-text span { font-size: 11.5px; }
.tbl-d .doc { width: 24px; height: 29px; font-size: 6.5px; padding: 0 0 4px 3px; }
.tbl-d .doc::after { top: 9px; height: 6px; }
.tbl-d .mono { width: 28px; height: 28px; border-radius: 8px; font-size: 10.5px; }
.tbl-d .state { font-size: 12px; }

.act { padding: 4px 16px 6px; }
.act-day { padding: 10px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ih-ink-faint); }
.act-i { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 6px 0; font-size: 12.5px; line-height: 1.45; color: var(--ih-ink-soft); }
.act-i time { font-size: 11.5px; font-weight: 700; color: var(--ih-ink-faint); font-variant-numeric: tabular-nums; padding-top: 1px; }
.act-i strong { color: var(--ih-ink); font-weight: 700; }
.act-i a { color: var(--ih-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ih-border-strong); text-underline-offset: 2px; }
.act-i a:hover { color: var(--ih-primary); }

.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 12px; }
.qa a, .qa button { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--ih-border); border-radius: 9px; background: var(--ih-surface); font-size: 13px; font-weight: 700; text-align: left; color: var(--ih-ink); transition: border-color 0.15s, background-color 0.15s; }
.qa a:hover, .qa button:hover { border-color: var(--ih-focus-border); background: var(--ds-hover); }
.qa .i { width: 15px; height: 15px; color: var(--ih-primary); }

.gap-l li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--ih-border); font-size: 13px; }
.gap-l li:last-child { border-bottom: 0; }
.gap-l .fold { margin-top: 2px; width: 18px; height: 14px; }
.gap-l .fold::before { width: 8px; height: 4px; top: -4px; }
.gap-l span.t { flex: 1; min-width: 0; }
.gap-l span.t small { display: block; font-size: 11.5px; color: var(--ih-ink-faint); }

.health { padding: 12px 16px 14px; }
.health .health-bar { margin-top: 8px; height: 6px; }
.health-row { display: flex; justify-content: space-between; font-size: 12px; margin-top: 8px; color: var(--ih-ink-soft); }
.health-row b { color: var(--ih-ink); font-variant-numeric: tabular-nums; }

.fband { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fb-item { display: flex; gap: 12px; padding: 14px 16px; transition: background-color 0.15s; }
.fb-item + .fb-item { border-left: 1px solid var(--ih-border); }
.fb-item:hover { background: var(--ih-surface-2); }
.fb-item strong { display: block; font-size: 13px; }
.fb-item .n { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fb-item small { display: block; font-size: 11.5px; color: var(--ih-ink-faint); }
.fb-item .state { font-size: 11.5px; margin-top: 4px; }

@media (max-width: 1100px) {
  .mast-search { width: 240px; }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(4) { border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--ih-border); }
  .kpi, .kpi:first-child, .kpi:last-child { border-radius: 0; }
  .fband { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fb-item:nth-child(4) { border-left: 0; }
  .fb-item:nth-child(n+4) { border-top: 1px solid var(--ih-border); }
}
@media (max-width: 720px) {
  body[data-page] .wrap { padding: 0 16px; }
  body[data-page] .header .wrap { padding: 0 12px; }
  .mast { margin: 0 -12px; padding: 0 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(n) { border-left: 0; border-top: 1px solid var(--ih-border); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--ih-border); }
  .fband { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-item:nth-child(n) { border-left: 0; border-top: 1px solid var(--ih-border); }
  .fb-item:nth-child(-n+2) { border-top: 0; }
  .fb-item:nth-child(even) { border-left: 1px solid var(--ih-border); }
  .tbl-d .hide-md { display: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dash-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .mast-search { width: 280px; }
}
@media (max-width: 960px) {
  :root { --ds-gutter: 20px; }
  .tbl-wrap { overflow-x: auto; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov:nth-child(3) { padding-left: 0; border-left: 0; }
  .ov:nth-child(n+3) { border-top: 1px solid var(--ih-border); }
  .ws { grid-template-columns: minmax(0, 1fr); }
  .ws-side { border-right: 0; border-bottom: 1px solid var(--ih-border); }
  .ws-side .tree { max-height: 260px; overflow-y: auto; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(4) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--ih-border); }
  .appnav { overflow-x: auto; scrollbar-width: none; }
  .appnav-group.is-end { margin-left: 0; }
  .biz-role { display: none; }
}
@media (max-width: 720px) {
  .mast-search { width: 38px; padding: 0; justify-content: center; margin-left: auto; background: transparent; border-color: transparent; }
  .mast-search > span, .mast-search .kbd { display: none; }
  .mark-word, .path-sep.is-hide-sm { display: none; }
  .biz-name { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mast { gap: 8px; }
  .biz-btn { padding: 0 6px 0 4px; gap: 8px; }
  .mast-tools { gap: 0; }
  .me { margin-left: 2px; }
  .tool.is-hide-sm { display: none; }
  .only-sm { display: block; }
  .show-sm-inline { display: block !important; }
  .h1 { font-size: 24px; }
  .page { padding-top: 24px; }
  .dash-side, .dash.is-stacked .dash-side { grid-template-columns: minmax(0, 1fr); }
  .ov { padding-right: 12px; }
  .ov + .ov { padding-left: 16px; }
  .ov-value { font-size: 28px; }
  .hide-sm { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(n) { padding-left: 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ih-border); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--ih-border); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { padding-bottom: 0; border-bottom: 0; }
  .notif-pop { width: calc(100vw - 32px); }
  .biz .pop { min-width: 0; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ==========================================================================
   v3 — calm, breathable layer (matches dashboard.html)
   Spacing scale: 8 · 12 · 16 · 24 · 32 · 40 · 48
   ========================================================================== */

:root { --ds-gutter: 24px; --on-primary: #fff; }
html[data-theme="dark"] { --on-primary: var(--ih-bg); }
.wrap { max-width: var(--ds-wrap); padding: 0 var(--ds-gutter); }

/* Header row 1 */
.header { position: sticky; top: 0; z-index: 40; background: var(--ih-surface); border-bottom: 1px solid var(--ih-border); }
.bar1-in { display: flex; align-items: center; gap: 8px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand-logo { display: block; height: 38px; width: auto; }
.brand-dark { display: none; align-items: center; gap: 12px; font-size: 20px; }
.brand-dark img { width: 38px; height: 38px; padding: 4px; border-radius: 10px; background: #fff; object-fit: contain; }
/* The wordmark artwork is dark, so dark mode shows the mark on a light chip with live text. */
html[data-theme="dark"] .brand-logo { display: none; }
html[data-theme="dark"] .brand-dark { display: inline-flex; }
.round { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--ih-ink-soft); }
.round:hover, .is-open > .round { background: var(--ds-hover); color: var(--ih-ink); }
.round .pip { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ih-accent); box-shadow: 0 0 0 2px var(--ih-surface); }
.me-pill { display: flex; align-items: center; gap: 8px; height: 38px; margin-left: 8px; padding: 0 16px 0 4px; border: 1px solid var(--ih-border); border-radius: 999px; font-size: 13px; font-weight: 700; }
.me-pill span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--periwinkle); color: var(--periwinkle-ink); font-size: 11px; font-weight: 800; }

/* Header row 2: profile + areas */
.bar2 { border-top: 1px solid var(--ih-border); background: var(--ih-bg); }
.bar2-in { display: flex; align-items: center; gap: 24px; min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
.biz-btn { height: 40px; gap: 12px; padding: 0 12px 0 4px; border: 1px solid var(--ih-border); border-radius: 999px; background: var(--ih-surface); }
.biz-btn:hover, .biz.is-open .biz-btn { background: var(--ih-surface); border-color: var(--ih-border-strong); }
.biz-btn .biz-mono { width: 32px; height: 32px; border-radius: 50%; }
.biz-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.biz-name { font-size: 13.5px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ps { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ih-ink-faint); }
.ps::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.ps.ok { color: var(--ih-success); }
.ps.ok::before { background: currentColor; }
.biz-mono.is-idle { background: transparent; color: var(--ih-ink-faint); border: 1.5px dashed var(--ih-border-strong); }
.biz-option .go { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--ih-primary); white-space: nowrap; }
.biz .pop { min-width: 340px; padding: 8px; }
.biz-option { padding: 12px; gap: 12px; }
.pills { display: flex; align-items: center; gap: 8px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ih-ink-soft); white-space: nowrap; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.pill .i { color: var(--ih-ink-faint); }
.pill:hover { background: var(--ih-surface); border-color: var(--ih-border); color: var(--ih-ink); }
.pill[aria-current="page"] { background: var(--ih-surface); border-color: var(--ih-border-strong); color: var(--ih-primary); box-shadow: var(--ih-shadow-sm); }
.pill[aria-current="page"] .i { color: var(--ih-primary); }
.pill-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--apricot); color: var(--apricot-ink); font-size: 11px; font-weight: 800; line-height: 20px; text-align: center; }

/* Popovers */
.pop { padding: 8px; border-radius: 14px; }
.pop-item { padding: 10px 12px; }
.pop-head { padding: 12px; }

/* Buttons: pill-shaped like the home page */
.b { height: 38px; padding: 0 18px; border-radius: 999px; font-size: 13px; }
.b-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.b-icon { width: 38px; padding: 0; }
.b-icon.b-sm { width: 32px; }
.b-primary { color: var(--on-primary); }

/* Page rhythm */
.page { padding: 40px 0 72px; }
.page-top { margin-bottom: 32px; gap: 24px; }
.h1 { font-size: 22px; letter-spacing: -0.02em; }
.lede { margin-top: 8px; font-size: 14px; }
.eyebrow + .h1 { margin-top: 8px !important; }
.crumbs { margin-bottom: 16px; gap: 8px; }
.actions { gap: 12px; }
.section { margin-top: 48px; }
.section-head { padding-bottom: 16px; gap: 16px; }
.section-head h2 { font-size: 15px; }
.subnav { margin: -8px 0 32px; gap: 8px; border-bottom: 0; }
.subnav a { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; font-size: 13px; }
.subnav a:hover { background: var(--ih-surface); border-color: var(--ih-border); }
.subnav a[aria-current="page"] { background: var(--ih-surface); border-color: var(--ih-border-strong); color: var(--ih-primary); }
.subnav a[aria-current="page"]::after { display: none; }
.tabs { gap: 8px; border-bottom: 0; }
.tab { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; font-size: 13px; }
.tab:hover { background: var(--ih-surface); border-color: var(--ih-border); }
.tab[aria-selected="true"] { background: var(--ih-surface); border-color: var(--ih-border-strong); color: var(--ih-primary); }
.tab[aria-selected="true"]::after { display: none; }

/* Panels */
.panel { border-radius: 16px; }
.panel-foot { padding: 16px 24px; }
.toolbar { padding: 16px 24px; gap: 12px; }
.seg { padding: 4px; gap: 4px; border-radius: 999px; }
.seg button { height: 30px; padding: 0 14px; border-radius: 999px; }
.inp, .sel { height: 40px; }
.inp-sm, .sel.inp-sm { height: 36px; }
.search-inp .inp { border-radius: 999px; }
.sel.inp-sm { border-radius: 999px; }

/* Overview figures become small stat boxes */
.overview { border: 0; gap: 16px; }
.ov, .ov + .ov { padding: 20px 24px; border: 1px solid var(--ih-border); border-radius: 12px; background: var(--ih-surface); }
.ov:nth-child(n) { border-left: 1px solid var(--ih-border); border-top: 1px solid var(--ih-border); }
a.ov:hover { border-color: var(--ih-focus-border); }
.ov-value { margin-top: 8px; font-size: 26px; }
.ov-note { margin-top: 8px; }
.facts { gap: 16px; border-top: 0; margin-top: 32px; }
.fact, .fact + .fact { padding: 16px 20px; border: 1px solid var(--ih-border); border-radius: 12px; background: var(--ih-surface); }
.fact:nth-child(n) { border-left: 1px solid var(--ih-border); border-top: 1px solid var(--ih-border); }
.fact dd { margin-top: 8px; }

/* Tables and lists: taller rows */
.tbl th { padding: 14px 20px; }
.tbl td { padding: 16px 20px; }
.tbl-group td { padding: 20px 20px 8px; }
.who { gap: 14px; }
.who-text span { margin-top: 2px; }
.tbl-d th { padding: 12px 20px; }
.tbl-d td { padding: 14px 20px; }
.lrow { padding: 20px 24px; gap: 16px; }
.lrow-text { margin-top: 4px; }
.lrow-meta { margin-top: 8px; }
.lgroup { padding: 12px 24px; }
.stream-item { padding: 12px 0; gap: 12px; }
.stream-day { padding: 24px 0 8px; }
.gaps li { padding: 14px 0; }
.kv dt, .kv dd { padding: 16px 0; }
.answer { padding: 16px 0; }
.version { padding: 16px 0; }

/* Workspace (tree + content) */
.ws-side { padding: 24px 16px 24px 20px; }
.ws-side-head { padding: 0 4px 16px 8px; }
.ws-head { padding: 24px; gap: 16px; }
.rules { margin-top: 12px; gap: 8px 20px; }
.subfolders { padding: 24px 24px 8px; gap: 12px; }
.dropline { margin: 24px; }
.t-row { height: 40px; }

/* Dashboard (old dense version keeps working, just calmer) */
.kpis { gap: 0; }
.kpi { padding: 20px 24px; }
.dgrid { gap: 24px; margin-top: 24px; }
.box-h { padding: 16px 24px; }
.box-f { padding: 14px 24px; }
.dash { gap: 40px; margin-top: 40px; }
.dash-side { gap: 40px; }

/* Settings / forms */
.split { gap: 48px; }
.block { padding: 40px 0; }
.block-head { gap: 40px; }
.block-body { gap: 24px; }
.grid2 { gap: 24px; }
.field { gap: 8px; }
.savebar { padding: 16px 0; gap: 12px; }
.split-nav a { padding: 10px 14px; border-radius: 999px; }
.split-nav { gap: 4px; }

/* Dialogs and sheets */
.dialog-head { padding: 24px 24px 0; }
.dialog-body { padding: 24px; gap: 20px; }
.dialog-foot { padding: 16px 24px; gap: 12px; }
.sheet .dialog-head { padding-bottom: 20px; }
.notice { padding: 16px 20px; gap: 14px; }

/* Builders */
.fb { gap: 24px; }
.fb-paper { padding: 40px 48px; }
.fq { margin: 0 -16px 12px; padding: 16px; }
.rules-grid { gap: 24px; }

/* Design-review switch sits clear of content */
.explore { padding: 6px; }

/* Responsive */
@media (max-width: 1100px) {
  .bar2-in { flex-wrap: wrap; gap: 12px; }
  .pills { margin-left: 0; width: 100%; }
}
@media (max-width: 720px) {
  :root { --ds-gutter: 16px; }
  .bar1-in { height: 64px; }
  .me-pill b, .hide-xs { display: none; }
  .me-pill { padding: 0 4px; }
  .page { padding: 24px 0 56px; }
  .page-top { margin-bottom: 24px; }
  .biz-name { max-width: 170px; }
  .overview, .facts { gap: 12px; }
  .ov, .ov + .ov, .fact, .fact + .fact { padding: 16px; }
  .tbl th, .tbl td { padding: 12px 14px; }
  .lrow { padding: 16px; }
  .fb-paper { padding: 24px; }
  .biz .pop { min-width: 0; width: calc(100vw - 32px); }
}

/* v3 fit fixes */
.pills { gap: 4px; }
.pill { padding: 0 12px; gap: 6px; }
.bar2-in { gap: 16px; }
.tbl th, .tbl td { padding-left: 12px; padding-right: 12px; }
.tbl th:first-child, .tbl td:first-child { padding-left: 24px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 24px; }
.tbl-group td { padding-left: 24px !important; }
.tbl .num, .tbl td .num { white-space: nowrap; }
@media (max-width: 720px) {
  .tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
}
.biz-option .trunc span.ps { display: inline-flex; margin: 0; }
.biz-option .trunc > span { margin-top: 2px; }
.biz-option .trunc span.ps.ok { color: var(--ih-success); }

/* --------------------------------------------------------------------------
   Dashboard alignment — the dashboard is the reference; these bring the
   shared pieces level with it.
   -------------------------------------------------------------------------- */
/* Cards carry the same soft lift as the dashboard's. */
.panel { box-shadow: var(--ih-shadow-sm); }
/* Page header: title, one supporting line, primary action. */
.h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.lede { font-size: 14.5px; }
/* Counts that ask for attention use the apricot pill everywhere. */
.pill-n { border: 1px solid var(--apricot-line); background: var(--ih-surface); }
/* Table rows hover on the neutral page tone, as dashboard rows do. */
.tbl tbody tr:hover { background: var(--ih-bg); }
.tbl tbody tr.is-selected, .tbl tbody tr.is-selected:hover { background: var(--periwinkle); }

/* --------------------------------------------------------------------------
   Top bar navigation — same bar as the workspace home: logo, then Clients,
   Documents and Menu (a page listing every section). No second row.
   -------------------------------------------------------------------------- */
.header { background: color-mix(in srgb, var(--ih-bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bar1-in { gap: 6px; height: 68px; }
.brand { margin-right: 0; }
.brand-logo { height: 34px; }
.bar1-in > [data-search] { margin-left: auto; }
.bar1-in { position: relative; }
.topnav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; }
.topnav a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ih-ink-soft); white-space: nowrap; transition: background-color .15s, color .15s; }
.topnav a .i { color: var(--ih-ink-faint); transition: color .15s; }
.topnav a:hover { background: var(--ds-hover); color: var(--ih-ink); }
.topnav a[aria-current="page"] { background: var(--periwinkle); color: var(--periwinkle-ink); }
.topnav a[aria-current="page"] .i, .topnav a:hover .i { color: currentColor; }
@media (max-width: 860px) { .topnav { position: static; transform: none; margin-left: 10px; gap: 2px; } .topnav a { padding: 0 11px; } }
@media (max-width: 760px) {
  .topnav { margin-left: 10px; gap: 2px; }
  .topnav a { width: 40px; padding: 0; justify-content: center; }
  .topnav a > span { display: none; }
}

/* Menu page: every section as a box. */
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.menu-box { position: relative; display: flex; flex-direction: column; min-height: 176px; padding: 26px; border: 1px solid var(--ih-border); border-radius: 20px; background: var(--ih-surface); box-shadow: var(--ih-shadow-sm); transition: border-color .15s, box-shadow .2s, transform .2s; }
.menu-box:hover { border-color: var(--ih-focus-border); box-shadow: var(--ih-shadow-md); transform: translateY(-2px); }
.menu-box .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--periwinkle); color: var(--periwinkle-ink); }
.menu-box .ic .i { width: 22px; height: 22px; stroke-width: 1.6; }
.menu-box.is-warm .ic { background: var(--apricot); color: var(--apricot-ink); }
.menu-box strong { margin-top: 18px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.menu-box > span:not(.ic) { margin-top: 4px; font-size: 14px; color: var(--ih-ink-soft); }
.menu-box em { margin-top: auto; padding-top: 16px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ih-ink); }
.menu-box em.hot { color: var(--apricot-ink); }
.menu-box .arr { position: absolute; top: 28px; right: 26px; color: var(--ih-ink-faint); transition: transform .25s, color .2s; }
.menu-box:hover .arr { color: var(--ih-primary); transform: translateX(4px); }
.menu-also { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--ih-border); font-size: 14px; font-weight: 700; }
.menu-also span { color: var(--ih-ink-soft); font-weight: 500; }
.menu-also a { color: var(--ih-primary); }
.menu-also a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 520px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } .menu-box { min-height: 0; padding: 20px; } .menu-box em { padding-top: 12px; } }

/* --------------------------------------------------------------------------
   Simple pages (<body class="simple">) — the workspace home's manner applied
   to a working page: a big title, one search field, plain text filters, and
   open ruled rows instead of a boxed table. Markup and behaviour unchanged.
   -------------------------------------------------------------------------- */
.simple .page { padding-top: 44px; }
.simple .h1 { font-size: 36px; letter-spacing: -0.035em; line-height: 1.12; }
.simple .lede { margin-top: 10px; font-size: 15px; }
.simple .h1 .tag { letter-spacing: 0; }
.simple .page-top { margin-bottom: 28px; }

/* Filters become plain text with an underline for the current one. */
.simple .seg { padding: 0; gap: 24px; border: 0; border-radius: 0; background: none; }
.simple .seg button { height: 34px; padding: 0; border-radius: 0; font-size: 14px; color: var(--ih-ink-soft); box-shadow: inset 0 -2px 0 transparent; }
.simple .seg button:hover { color: var(--ih-ink); }
.simple .seg button[aria-pressed="true"] { background: none; color: var(--ih-ink); box-shadow: inset 0 -2px 0 var(--ih-primary); }
.simple .section-head { padding-bottom: 20px; }
.simple .section-head .meta { display: none; }
.simple .subnav { margin: -4px 0 28px; gap: 24px; }
.simple .subnav a, .simple .tab { height: 34px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; box-shadow: inset 0 -2px 0 transparent; }
.simple .subnav a:hover, .simple .tab:hover { background: none; color: var(--ih-ink); }
.simple .subnav a[aria-current="page"], .simple .tab[aria-selected="true"] { background: none; color: var(--ih-ink); box-shadow: inset 0 -2px 0 var(--ih-primary); }
.simple .tabs { gap: 24px; margin-top: 36px; }

/* The panel dissolves: content sits on the page. */
.simple .panel { border: 0; border-radius: 0; background: none; box-shadow: none; }
.simple .toolbar { padding: 0 0 8px; border: 0; }
.simple .toolbar .sel, .simple .toolbar .spacer, .simple .toolbar .spacer + * { display: none; }
.simple .toolbar .search-inp { flex: 1; max-width: none; }
.simple .toolbar .search-inp .inp, .simple .big-search .inp { height: 54px; padding-left: 50px; border-radius: 18px; font-size: 16px; background: var(--ih-surface); box-shadow: var(--ih-shadow-sm); }
.simple .toolbar .search-inp .i, .simple .big-search .i { left: 19px; width: 20px; height: 20px; }
.simple .toolbar[data-bulk] { padding: 10px 16px; margin-top: 8px; border-radius: 12px; }

.simple .big-search { margin-bottom: 24px; }
.simple .big-search .search-inp { display: flex; }
.simple .big-search .inp { width: 100%; }

/* Rows: no header band, hairlines, room to breathe. */
.simple .tbl thead th { position: static; padding-top: 18px; padding-bottom: 10px; background: none; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ih-ink-soft); border-bottom-color: var(--ih-border-strong); }
.simple .tbl td { padding-top: 18px; padding-bottom: 18px; }
.simple .tbl th:first-child, .simple .tbl td:first-child { padding-left: 8px; }
.simple .tbl th:last-child, .simple .tbl td:last-child { padding-right: 8px; }
.simple .tbl tbody tr:hover { background: var(--ih-surface); }
.simple .who-text strong { font-size: 16px; letter-spacing: -0.01em; }
.simple .who-text span { font-size: 13px; color: var(--ih-ink-soft); }
.simple .panel-foot { padding: 20px 8px 0; border-top: 0; }

/* Clients list: name, email, documents, next expiry, status. The rest is one click away. */
.simple .tbl-clients th:nth-child(1), .simple .tbl-clients td:nth-child(1),
.simple .tbl-clients th:nth-child(3), .simple .tbl-clients td:nth-child(3),
.simple .tbl-clients th:nth-child(6), .simple .tbl-clients td:nth-child(6) { display: none; }
/* Even columns: fixed shares of the width, everything left-aligned with the
   same gutter, so no two columns sit closer together than the rest. */
@media (min-width: 761px) {
  .simple .tbl-clients { table-layout: fixed; }
  .simple .tbl-clients th, .simple .tbl-clients td { padding-left: 8px; padding-right: 24px; text-align: left; }
  .simple .tbl-clients th:nth-child(2) { width: 29%; }
  .simple .tbl-clients th:nth-child(4) { width: 27%; }
  .simple .tbl-clients th:nth-child(5) { width: 10%; }
  .simple .tbl-clients th:nth-child(7) { width: 15%; }
  .simple .tbl-clients th:nth-child(8) { width: auto; }
  .simple .tbl-clients th:nth-child(9) { width: 56px; }
  .simple .tbl-clients td:nth-child(4) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .simple .tbl-clients th:last-child, .simple .tbl-clients td:last-child { padding-right: 8px; text-align: right; }
}
/* The contact cell also holds the phone number; this list shows the email only. */
.simple .tbl-clients td:nth-child(4) br, .simple .tbl-clients td:nth-child(4) .xs { display: none; }
.simple .tbl-clients td:nth-child(4) .small { font-size: 14px; color: var(--ih-ink-soft); }
.simple .tbl-clients .mono { width: 42px; height: 42px; border-radius: 50%; border: 0; font-size: 13px; }

/* Client page: facts become one quiet line of figures, not five boxes. */
.simple .crumbs { margin-bottom: 24px; }
.simple .facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ih-border); }
.simple .fact, .simple .fact + .fact, .simple .fact:nth-child(n) { display: flex; flex-direction: column-reverse; padding: 0; border: 0; border-radius: 0; background: none; }
.simple .fact dt { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--ih-ink-soft); }
.simple .fact dd { margin: 0; font-size: 24px; letter-spacing: -0.03em; }

/* Folder workspace: tree and list side by side, no frame. */
.simple .ws { grid-template-columns: 264px minmax(0, 1fr); gap: 48px; min-height: 0; padding-top: 28px; }
.simple .ws-side { padding: 0; border-right: 0; }
.simple .ws-side-head { padding: 0 4px 12px 8px; }
.simple .ws-head { padding: 0 0 20px; border-bottom: 0; }
.simple .ws-head h2 { font-size: 24px; letter-spacing: -0.03em; }
.simple .subfolders { padding: 0 0 12px; }
.simple .t-row { height: 42px; border-radius: 10px; }
.simple .ws .tbl thead th { padding-top: 0; }

@media (max-width: 900px) {
  .simple .ws { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .simple .h1 { font-size: 28px; }
  .simple .seg, .simple .subnav, .simple .tabs { gap: 20px; }
}

/* --------------------------------------------------------------------------
   Same frame as the workspace home, so the header does not shift when moving
   between Home and inner pages: identical page width, gutters, bar height
   and logo size at every breakpoint.
   -------------------------------------------------------------------------- */
:root { --ds-wrap: 1240px; --ds-gutter: 32px; }
@media (max-width: 640px) {
  :root { --ds-gutter: 18px; }
  .bar1-in { height: 60px; }
  .brand-logo { height: 28px; }
}

/* Back link: replaces breadcrumbs at the top of detail pages */
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; font-size: 13px; font-weight: 700; color: var(--ih-ink-soft); }
.back-link:hover { color: var(--ih-primary); }
.back-link .i { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Header: Menu dropdown — every section in two columns
   -------------------------------------------------------------------------- */
.tn-menu { position: relative; }
.topnav .tn-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ih-ink-soft); white-space: nowrap; transition: background-color .15s, color .15s; }
.topnav .tn-btn .i { color: var(--ih-ink-faint); transition: color .15s, transform .18s var(--ds-ease); }
.topnav .tn-btn .tn-chev { width: 14px; height: 14px; margin-left: -2px; }
.topnav .tn-btn:hover, .tn-menu.is-open .tn-btn { background: var(--ds-hover); color: var(--ih-ink); }
.topnav .tn-btn[aria-current="page"] { background: var(--periwinkle); color: var(--periwinkle-ink); }
.topnav .tn-btn:hover .i, .topnav .tn-btn[aria-current="page"] .i, .tn-menu.is-open .tn-btn .i { color: currentColor; }
.tn-menu.is-open .tn-chev { transform: rotate(180deg); }
.tn-pop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; width: min(540px, calc(100vw - 24px)); padding: 10px; }
.topnav a.tn-item { display: flex; align-items: center; gap: 12px; height: auto; padding: 9px 10px; border-radius: 10px; font-weight: 400; white-space: normal; color: var(--ih-ink); }
.topnav a.tn-item:hover { background: var(--ds-hover); }
.topnav a.tn-item[aria-current="page"] { background: var(--periwinkle); color: var(--ih-ink); }
.tn-ico { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--periwinkle); color: var(--periwinkle-ink); }
.topnav a.tn-item .tn-ico .i { width: 16px; height: 16px; color: currentColor; }
.topnav a.tn-item[aria-current="page"] .tn-ico { background: var(--ih-surface); }
.tn-item strong { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.tn-item em { padding: 0 6px; border: 1px solid var(--apricot-line, #f5dcc6); border-radius: 999px; background: var(--ih-surface); font-style: normal; font-size: 11px; font-weight: 800; color: var(--apricot-ink); }
.tn-item small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.35; color: var(--ih-ink-faint); }
.topnav a.tn-all { grid-column: 1 / -1; justify-content: center; gap: 6px; height: 38px; margin-top: 6px; border-top: 1px solid var(--ih-border); border-radius: 0 0 8px 8px; font-size: 13px; font-weight: 700; color: var(--ih-ink-soft); }
.topnav a.tn-all:hover { background: none; color: var(--ih-primary); }
.topnav a.tn-all .i { width: 14px; height: 14px; }
@media (max-width: 860px) { .topnav .tn-btn { padding: 0 9px 0 11px; } }
@media (max-width: 600px) {
  .topnav .tn-btn { width: 40px; padding: 0; justify-content: center; }
  .topnav .tn-btn > span, .topnav .tn-btn .tn-chev { display: none; }
  .tn-pop { grid-template-columns: minmax(0, 1fr); position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 80px); overflow-y: auto; }
  .topnav a.tn-item { width: auto; justify-content: flex-start; padding: 9px 10px; }
  .topnav a.tn-item > span { display: block; }
  .topnav a.tn-item > .tn-ico { display: grid; }
  .topnav a.tn-all { width: auto; }
}

/* --------------------------------------------------------------------------
   Header right-hand side — identical to the dashboard's bar (help, notifications,
   account) so the navigation sits in the same place on every page
   -------------------------------------------------------------------------- */
html { scrollbar-gutter: stable; }
.bar1-in { gap: 14px; }
.hd-end { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hd-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: var(--ih-ink-soft); transition: background-color .15s, color .15s; }
.hd-icon:hover { background: var(--ds-hover); color: var(--ih-ink); }
.hd-icon .i { width: 18px; height: 18px; }
.hd-icon .pip { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--ih-accent); box-shadow: 0 0 0 2px var(--ih-bg); }
.hd-bell { position: relative; }
.hd-bell.is-open > .hd-icon { background: var(--ds-hover); color: var(--ih-ink); }
.hd-me-wrap { position: relative; margin-left: 8px; }
.hd-me { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px 0 5px; border: 1px solid var(--ih-border); border-radius: 999px; background: var(--ih-surface); text-align: left; transition: border-color .15s; }
.hd-me:hover, .hd-me[aria-expanded="true"] { border-color: var(--ih-focus-border); }
.hd-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--periwinkle); color: var(--periwinkle-ink); font-size: 11px; font-weight: 800; }
.hd-txt { line-height: 1.25; }
.hd-txt b { display: block; font-size: 13px; font-weight: 700; }
.hd-txt small { display: block; font-size: 11.5px; color: var(--ih-ink-soft); }
.hd-me > .i { width: 14px; height: 14px; color: var(--ih-ink-soft); }
.hd-pop { min-width: 248px; }
@media (max-width: 720px) { .hd-txt, .hd-me > .i { display: none; } .hd-me { padding: 0 5px; } .hd-me-wrap { margin-left: 4px; } }
@media (max-width: 480px) { .hd-end > button.hd-icon { display: none; } }
.notif-row > span:not(.state) { min-width: 0; }
.notif-row > .state { flex: none; }
.notif-row p { overflow-wrap: anywhere; }
/* B5: on phones the notifications panel hung off the bell (which sits left of the avatar), so a near-full-width panel ran off the left edge. Below 720px it is placed against the header bar instead: 12px from each screen edge, any phone width, and it scrolls inside if the screen is short. */
@media (max-width: 720px) {
  .bar1 { position: relative; }
  .hd-bell { position: static; }
  .hd-bell > .notif-pop { left: 12px; right: 12px; width: auto; min-width: 0; max-width: none; top: calc(100% + 4px); max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
}

/* --------------------------------------------------------------------------
   Logo: the DocuStacker icon (assets/images/logo-icon.png) with the wordmark
   in live text, so it always matches the interface type.
   -------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.lg-mark { display: block; flex-shrink: 0; width: auto; height: 42px; }
.lg-word { font-size: 21px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--ih-ink); white-space: nowrap; }
.lg-word b { font-weight: 800; color: #5c4d8c; }
html[data-theme="dark"] .lg-word b { color: var(--ih-primary); }
@media (max-width: 600px) { .lg-mark { width: auto; height: 34px; } .lg-word { font-size: 18px; } }
@media (max-width: 420px) { .lg-word { display: none; } }
.mark:has(.lg-mark) { gap: 5px; }
.mark-glyph { width: auto; height: auto; }
.mark-glyph .lg-mark { width: auto; height: 38px; }
.mark-word { font-size: 18px; }
.mark-word { letter-spacing: -0.03em; }
.mark-word b { font-weight: 800; color: #5c4d8c; }
html[data-theme="dark"] .mark-word b { color: var(--ih-primary); }

/* --------------------------------------------------------------------------
   Tables inside a panel: the heading row's square white background was sitting
   on top of the panel's rounded top corners and cutting them off. The corner
   cells now follow the panel's curve (and the last row follows the bottom one).
   -------------------------------------------------------------------------- */
.panel > .tbl-wrap:first-child .tbl thead th:first-child { border-top-left-radius: calc(var(--ih-radius-lg) - 1px); }
.panel > .tbl-wrap:first-child .tbl thead th:last-child { border-top-right-radius: calc(var(--ih-radius-lg) - 1px); }
.panel > .tbl-wrap:last-child .tbl tbody tr:last-child td { border-bottom: 0; }
.panel > .tbl-wrap:last-child .tbl tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--ih-radius-lg) - 1px); }
.panel > .tbl-wrap:last-child .tbl tbody tr:last-child td:last-child { border-bottom-right-radius: calc(var(--ih-radius-lg) - 1px); }

/* 2026-11-30: profile photos and the business logo in place of initials. */
.mono.has-img, .hd-av.has-img { overflow: hidden; padding: 0; background: #fff; }
.mono.has-img img, .hd-av.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.mono.is-logo img { object-fit: contain; padding: 3px; }
.set-file { position: relative; cursor: pointer; }
.set-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.set-file:focus-within { outline: 2px solid var(--ih-primary); outline-offset: 2px; }
.set-file.is-busy { opacity: .6; pointer-events: none; }

/* 2026-11-30 trial: buttons with 10px corners instead of pills (as in
   InventorysHub). Covers the standard buttons and the page-specific ones. */
.b, body.ds-home .btn, .pay-foot .b, .au .auth-card .b { border-radius: 10px; }
body.ds-home .btn.sm { border-radius: 8px; }
.b-sm { border-radius: 8px; }
body.ds-home .btn.act-btn { border-radius: 999px; } /* Activate account stays a pill (owner) */
/* 2026-11-30 trial: header menu items (Subcontractors, Documents, Menu) and the account button match the 10px buttons */
.topnav a, .topnav .tn-btn, .topnav > .tn-soon, .hd-me { border-radius: 10px; }
.topnav a, .topnav .tn-btn, .topnav > .tn-soon { height: 38px; } /* 2026-11-30: a couple of pixels shorter (was 40px) */

/* 2026-11-30: less rounding across the app (owner: "too rounded").
   Cards, panels and dialogs 12px (token above); these had their own values. */
.panel { border-radius: 12px; }
.pop { border-radius: 12px; }
.menu-box { border-radius: 14px; }
.simple .toolbar .search-inp .inp, .simple .big-search .inp { border-radius: 12px; }
.mono-xl { border-radius: 12px; }
