/* SkyLift HRIS. Light by default, dark by system setting or the toggle. Same validated palette as the Capacity Planner:
   categorical hues for identity, fixed status colours that always come with a label. */
:root {
  color-scheme: light;
  --bg: #f4f4f1; --surface: #fcfcfb; --surface-2: #f6f6f3; --raised: #ffffff;
  --ink: #0f0f0e; --ink-2: #4a4945; --ink-3: #6b6a65; --ink-4: #98968f;
  --line: #e4e3dc; --line-2: #eeede7; --track: #e7e6df; --hover: rgba(15, 15, 14, .045);
  --accent: #2a78d6; --accent-btn: #256abf; --accent-ink: #1c5cab; --accent-soft: #e8f0fb;
  --good: #1f9a3a; --good-ink: #0a6a1c; --good-soft: #e3f4e6; --warn: #f0a30a; --warn-ink: #8a5a00; --warn-soft: #fdf1d8; --bad: #d03b3b; --bad-ink: #b02a2a; --bad-soft: #fbe6e6;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948;
  --navy: #1f2a5c; --navy-2: #2a3670; --navy-ink: #c9cfe6; --gold: #d3a92b;
  --shadow: 0 1px 2px rgba(15, 15, 14, .05), 0 4px 14px rgba(15, 15, 14, .04);
  --shadow-lg: 0 18px 50px rgba(15, 15, 14, .22);
  --r: 12px; --r-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0c; --surface: #1a1a19; --surface-2: #151514; --raised: #20201f;
    --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #a3a29a; --ink-4: #75746d;
    --line: #2c2c2a; --line-2: #242423; --track: #2e2e2c; --hover: rgba(255, 255, 255, .06);
    --accent: #3987e5; --accent-btn: #2a78d6; --accent-ink: #86b6ef; --accent-soft: #172a44;
    --good: #35b24f; --good-ink: #5fd079; --good-soft: #15301b; --warn: #f0a30a; --warn-ink: #f6bd48; --warn-soft: #33270c; --bad: #e66767; --bad-ink: #f08c8c; --bad-soft: #3a1b1b;
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #1e9a1e; --c7: #9085e9; --c8: #e66767;
    --navy: #14193a; --navy-2: #1f2750;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0c; --surface: #1a1a19; --surface-2: #151514; --raised: #20201f;
  --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #a3a29a; --ink-4: #75746d;
  --line: #2c2c2a; --line-2: #242423; --track: #2e2e2c; --hover: rgba(255, 255, 255, .06);
  --accent: #3987e5; --accent-btn: #2a78d6; --accent-ink: #86b6ef; --accent-soft: #172a44;
  --good: #35b24f; --good-ink: #5fd079; --good-soft: #15301b; --warn: #f0a30a; --warn-ink: #f6bd48; --warn-soft: #33270c; --bad: #e66767; --bad-ink: #f08c8c; --bad-soft: #3a1b1b;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #1e9a1e; --c7: #9085e9; --c8: #e66767;
  --navy: #14193a; --navy-2: #1f2750;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
#app { height: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 13.5px; font-weight: 650; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-3); } .faint { color: var(--ink-4); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; } .strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; } .r { text-align: right; } .c { text-align: center; } .nowrap { white-space: nowrap; } .grow { flex: 1; min-width: 0; } .push { margin-left: auto; }
.ic { flex: none; vertical-align: -3px; }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack.lg { gap: 18px; } .stack.sm { gap: 6px; }
.grid { display: grid; gap: 12px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; }

/* shell */
.shell { display: flex; height: 100%; }
.side { width: 226px; flex: none; background: var(--navy); color: var(--navy-ink); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 2px; object-fit: contain; }
.brand b { font-size: 14.5px; font-weight: 650; display: block; line-height: 1.15; }
.brand span { font-size: 11.5px; color: var(--navy-ink); }
.nav-group { padding: 12px 16px 4px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #8e97bd; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 8px; border-radius: 8px; color: var(--navy-ink); font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav a.on { background: rgba(255, 255, 255, .14); color: #fff; }
.nav .cnt { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--bad); color: #fff; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 12px 16px; font-size: 11.5px; color: #8e97bd; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { height: 54px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.btn.menu-btn { display: none; }
.search { position: relative; flex: 1; max-width: 460px; }
.search input { width: 100%; padding: 7px 10px 7px 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.search .ic { position: absolute; left: 10px; top: 10px; color: var(--ink-3); }
.search-results { position: absolute; top: 40px; left: 0; right: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 60; max-height: 380px; overflow: auto; padding: 4px; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 7px; color: var(--ink); }
.search-results a:hover, .search-results a.sel { background: var(--hover); text-decoration: none; }
.view { flex: 1; overflow: auto; padding: 18px 22px 40px; }
.view.flush { padding: 0; overflow: hidden; display: flex; } /* a page that fills the whole area, such as Capacity */
.capframe { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
.view-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.view-head p { color: var(--ink-3); margin-top: 3px; max-width: 74ch; }

/* building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card.flush > .card-head { padding: 12px 14px 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); font-weight: 550; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad-ink); border-color: var(--bad); background: transparent; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.icon { padding: 6px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 550; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); border-color: transparent; color: var(--good-ink); }
.badge.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); }
.badge.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); }
.badge.info { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.notice { padding: 10px 12px; border-radius: 9px; background: var(--accent-soft); color: var(--ink); font-size: 13px; }
.notice.warn { background: var(--warn-soft); } .notice.bad { background: var(--bad-soft); } .notice.good { background: var(--good-soft); }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-3); }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 13px; color: #fff; overflow: hidden; background-size: cover; background-position: center; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; } .avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { padding: 8px 12px; border: 0; background: none; color: var(--ink-3); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.bar { height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar.good i { background: var(--good); }

/* tables */
.table-wrap { overflow: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; font-weight: 600; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th.sortable { cursor: pointer; }
table.t th.sortable:hover { color: var(--ink); }
table.t td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tbody tr:hover td { background: var(--hover); }
table.t td.r, table.t th.r { text-align: right; }
table.t tfoot td { font-weight: 650; background: var(--surface-2); }
.db-wrap { max-height: calc(100vh - 212px); }
.db td { white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.db td.sticky, .db th.sticky { position: sticky; left: 0; z-index: 3; background: var(--surface); }
.db th.sticky { z-index: 4; background: var(--surface-2); }
.db td.sticky2, .db th.sticky2 { position: sticky; left: 72px; z-index: 3; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.db th.sticky2 { z-index: 4; background: var(--surface-2); }
.db td.edit { cursor: cell; }
.db td.edit:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cell-input { width: 100%; min-width: 120px; padding: 3px 5px; border: 1px solid var(--accent); border-radius: 5px; background: var(--raised); }

/* forms */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .field > .lab { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 12px; color: var(--ink-3); }
.inp, select.inp, textarea.inp { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
textarea.inp { min-height: 76px; resize: vertical; }
.inp:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.inp.sm { padding: 4px 7px; font-size: 12.5px; width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 7px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters .inp { width: auto; }
.filters .srch { min-width: 220px; }
.overlay { position: fixed; inset: 0; background: rgba(15, 15, 14, .45); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow: auto; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: 100%; max-width: 620px; display: flex; flex-direction: column; }
.modal.wide { max-width: 860px; } .modal.xl { max-width: 1040px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px 10px; }
.modal-body { padding: 4px 18px 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); }
.err { color: var(--bad-ink); font-size: 13px; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 9px 14px; border-radius: 9px; background: #1f1f1d; color: #fff; box-shadow: var(--shadow-lg); max-width: 560px; }
.toast.bad { background: var(--bad); }

/* sign in */
.auth { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--navy); }
.auth-card { background: var(--surface); width: 100%; max-width: 400px; border-radius: 16px; padding: 26px; box-shadow: var(--shadow-lg); }
.auth-card img { width: 64px; display: block; margin: 0 auto 10px; }
.auth-card h1 { text-align: center; font-size: 19px; margin-bottom: 4px; }
.auth-card p { text-align: center; color: var(--ink-3); margin-bottom: 16px; }

/* dashboard */
.dash-filters { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 12px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dash-filters .grp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-filters .lab { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.dash-filters .inp.sm { padding: 4px 7px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpis .kpi .spark { width: 64px; }
.kpi-go { display: grid; color: inherit; text-decoration: none; border-radius: var(--r, 10px); } .kpi-go:hover { text-decoration: none; }
.kpi-go .kpi { transition: border-color .12s, box-shadow .12s; } .kpi-go:hover .kpi, .kpi-go:focus-visible .kpi { border-color: var(--ink-4); box-shadow: var(--shadow-lg); }
/* Dashboard headline: five figures for today on the first row, four for the period on the second, both full width. */
.kpis-dash { grid-template-columns: repeat(20, minmax(0, 1fr)); } .kpis-dash > :nth-child(-n+5) { grid-column: span 4; } .kpis-dash > :nth-child(n+6) { grid-column: span 5; }
@media (max-width: 1080px) { .kpis-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis-dash > * { grid-column: auto !important; } }
@media (max-width: 560px) { .kpis-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { position: relative; padding: 12px 14px 10px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-height: 104px; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone); }
.kpi-top { display: flex; align-items: center; gap: 7px; }
.kpi-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.kpi-l { font-size: 12.5px; color: var(--ink-3); font-weight: 550; }
.kpi-v { font-size: 27px; font-weight: 680; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); position: relative; z-index: 1; }
.kpi .spark { position: absolute; right: 10px; bottom: 10px; width: 84px; height: 30px; opacity: .9; }
.delta { font-size: 11.5px; font-weight: 650; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.delta.up { background: var(--good-soft); color: var(--good-ink); } .delta.down { background: var(--bad-soft); color: var(--bad-ink); }
.num.up { color: var(--good-ink); font-weight: 600; } .num.down { color: var(--bad-ink); font-weight: 600; }
.dash-row { margin-bottom: 12px; }
.dcard { padding: 13px 14px; display: flex; flex-direction: column; height: 100%; }
.dcard > .card-head { margin-bottom: 8px; }
.span2 > .dcard { height: 100%; }
.attn-list { max-height: 214px; overflow: auto; margin: 0 -4px; }
.attn-list .attn { padding: 6px 4px; border-radius: 6px; align-items: center; }
.attn-list .dot { margin-top: 0; }
h3.mini { font-size: 12px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.donut { display: flex; align-items: center; gap: 14px; }
.donut svg { flex: none; }
.donut-v { font: 680 22px var(--font); fill: var(--ink); }
.donut-l { font: 11px var(--font); fill: var(--ink-3); }
.donut-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.donut-legend > div { display: flex; align-items: center; gap: 7px; }
.donut-legend i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.donut-legend b { font-weight: 650; }
.donut-legend .faint { min-width: 32px; text-align: right; font-size: 11.5px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.metric { padding: 10px 12px; }
.metric .l { font-size: 12px; color: var(--ink-3); font-weight: 550; }
.metric .v { font-size: 20px; font-weight: 680; font-variant-numeric: tabular-nums; margin: 2px 0; }
.metric .d { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11.5px; }
.mini-bar { width: 56px; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; display: inline-block; }
.mini-bar i { display: block; height: 100%; border-radius: 3px; }
table.t td.muted-col { color: var(--ink-2); }
table.heat td { border-bottom-color: var(--surface); }
.detail-card summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.detail-card summary::-webkit-details-marker { display: none; }
.detail-card summary::before { content: "+"; font-weight: 700; color: var(--ink-3); width: 12px; }
.detail-card[open] summary::before { content: "-"; }
.ms { position: relative; display: inline-block; }
.ms-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; max-width: 260px; text-align: left; cursor: pointer; }
.ms-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 550; }
.dash-filters .ms-btn { padding: 4px 8px; }
.ms-pop { position: absolute; z-index: 70; top: calc(100% + 4px); left: 0; min-width: 240px; max-width: 340px; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; }
.ms-find { width: 100%; margin-bottom: 4px; }
.ms-list { max-height: 280px; overflow: auto; display: flex; flex-direction: column; }
.ms-opt { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.ms-opt:hover { background: var(--hover); }
.ms-foot { display: flex; gap: 4px; align-items: center; border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 6px; }
.seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 4px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 550; color: var(--ink-3); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--raised); color: var(--ink); box-shadow: var(--shadow); }
.spark, .ring { display: block; }
.ring-t { font: 680 12.5px var(--font); fill: var(--ink); }
.stat { padding: 14px 16px; }
.stat .v { font-size: 26px; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--ink-3); font-size: 12.5px; }
.stat .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kv { display: grid; grid-template-columns: 1fr auto auto; gap: 0 14px; font-size: 13px; }
.kv > div { padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.attn { display: flex; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; color: var(--ink); }
.attn:hover { text-decoration: none; background: var(--hover); }
.attn:last-child { border-bottom: 0; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 11px var(--font); fill: var(--ink-3); }
.tip { position: fixed; z-index: 90; pointer-events: none; background: #1f1f1d; color: #fff; padding: 6px 9px; border-radius: 7px; font-size: 12px; box-shadow: var(--shadow-lg); white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: -1px; }

/* profile */
.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; }
.fact .k { font-size: 12px; color: var(--ink-3); }
.fact .v { font-weight: 500; overflow-wrap: anywhere; }

/* directory */
.avatar.xs { width: 20px; height: 20px; font-size: 8.5px; } .avatar.lg2 { width: 52px; height: 52px; font-size: 17px; }
.dir-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.dir-tools .srch { min-width: 280px; flex: 0 1 380px; }
.dept-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.chip b { font-weight: 650; color: var(--ink-3); font-size: 11.5px; }
.chip:hover { border-color: var(--ink-4); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chip.on b { color: var(--accent-ink); }
.letters { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 6px; position: sticky; top: -18px; z-index: 5; background: var(--bg); padding: 6px 0; }
.letters button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; font-weight: 650; font-size: 12.5px; color: var(--accent-ink); }
.letters button:hover:not(:disabled) { background: var(--accent-soft); }
.letters button:disabled { color: var(--ink-4); opacity: .5; cursor: default; }
.dir-letter { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; font-size: 18px; font-weight: 700; scroll-margin-top: 40px; }
.dir-letter.dept { font-size: 15px; align-items: center; }
.dir-list { margin-bottom: 4px; }
.dir-row { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 1fr) minmax(190px, 1.2fr) minmax(150px, 1fr) 90px; gap: 14px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line-2); }
.dir-row:last-child { border-bottom: 0; }
.dir-row:hover:not(.dir-head) { background: var(--hover); }
.dir-head { font-size: 11.5px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); padding-top: 7px; padding-bottom: 7px; }
.dr-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.dr-who a.strong { color: var(--ink); }
.dr-dept, .dr-contact, .dr-boss, .dr-mode { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.dept-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 1px 9px 1px 7px; border-radius: 999px; color: var(--ink-2); background: color-mix(in srgb, var(--dept) 13%, transparent); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dept-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dept); flex: none; }
.contact { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; max-width: 100%; color: var(--accent-ink); }
.contact .ic { color: var(--ink-3); }
.reports { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; max-width: 100%; min-width: 0; }
.badge.lead { color: #8a6500; background: color-mix(in srgb, var(--gold) 20%, transparent); border-color: transparent; }
.badge.lead .ic { color: var(--gold); }
.dir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 4px; }
.dcard-person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; border-top: 4px solid var(--dept); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dcard-person a.strong { color: var(--ink); font-size: 14.5px; }
.dp-top { display: flex; gap: 12px; align-items: flex-start; }
.dp-rows { display: flex; flex-direction: column; gap: 5px; padding-top: 9px; border-top: 1px solid var(--line-2); }
.dp-line { display: flex; gap: 8px; align-items: center; font-size: 12.5px; min-width: 0; }
.dp-line .k { width: 72px; flex: none; color: var(--ink-3); font-size: 12px; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.person { display: flex; gap: 11px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); align-items: center; min-width: 0; }
a.person:hover { border-color: var(--accent); text-decoration: none; }

/* checklists */
.onb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.onb-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); position: relative; }
.onb-card:hover { border-color: var(--accent); text-decoration: none; }
.onb-card.risk { border-left: 4px solid var(--bad); }
.onb-top { display: flex; align-items: center; gap: 11px; }
.onb-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.onb-meta span { display: inline-flex; align-items: center; gap: 5px; }
.onb-phases { display: flex; gap: 3px; }
.onb-ph { height: 8px; border-radius: 3px; background: var(--track); overflow: hidden; min-width: 8px; }
.onb-ph i { display: block; height: 100%; background: var(--accent); }
.onb-ph.full i { background: var(--good); }
.onb-ph.late { box-shadow: inset 0 0 0 1.5px var(--bad); }
.onb-next { min-height: 46px; display: flex; flex-direction: column; justify-content: center; padding: 7px 10px; border-radius: 9px; background: var(--surface-2); }
.onb-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cnt-chip { font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.cnt-chip.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); } .cnt-chip.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); }
.bad-ink { color: var(--bad-ink); }
.case-sum { display: grid; grid-template-columns: minmax(270px, 1fr) 2.3fr; gap: 12px; margin-bottom: 12px; }
.case-ring { display: flex; align-items: center; gap: 16px; }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 10px; }
.cs { padding: 10px 12px; border-top: 3px solid var(--line); }
.cs.bad { border-top-color: var(--bad); } .cs.warn { border-top-color: var(--warn); } .cs.good { border-top-color: var(--good); }
.cs .v { font-size: 22px; font-weight: 680; font-variant-numeric: tabular-nums; line-height: 1.15; }
.cs .l { font-size: 12px; color: var(--ink-3); font-weight: 550; }
.cs .d { font-size: 11px; color: var(--ink-4); }
.stepper { display: flex; gap: 0; overflow-x: auto; padding: 14px 12px 12px; border-bottom: 1px solid var(--line-2); }
.step { flex: 1; min-width: 112px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 6px 6px; border-radius: 10px; position: relative; text-align: center; }
.step::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before, .step.now::before, .step.late::before { background: var(--good); }
.step:hover { background: var(--hover); }
.step.on { background: var(--accent-soft); }
.step-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--surface); border: 2px solid var(--line); color: var(--ink-3); }
.step.done .step-dot { background: var(--good); border-color: var(--good); color: #fff; }
.step.now .step-dot { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.step.late .step-dot { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.step-name { font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.step-sub { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.task-ic { display: inline-flex; width: 16px; justify-content: center; }
.task-ic.good { color: var(--good); } .task-ic.warn { color: var(--warn-ink); } .task-ic.bad { color: var(--bad); } .task-ic.info { color: var(--accent); } .task-ic.muted { color: var(--ink-4); }
.task.done .tt { color: var(--ink-3); }
.task.failed { background: color-mix(in srgb, var(--bad-soft) 55%, transparent); }
.task.failed .tt { color: var(--bad-ink); }
.phases { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.phase { flex: 1; min-width: 118px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); text-align: left; }
.phase.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.task { display: grid; grid-template-columns: 26px minmax(0, 1fr) 96px 110px 128px 26px; gap: 8px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.task:hover { background: var(--hover); }
.task.sub .tt { padding-left: 18px; color: var(--ink-2); }
.task.head { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); position: sticky; top: 0; z-index: 2; }
.task input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.sec-title { display: flex; gap: 10px; align-items: center; padding: 10px 12px 6px; font-weight: 650; }
.note-row { padding: 0 12px 8px 46px; }

/* org chart */
:root { --org-line: #9a988f; }
:root[data-theme="dark"] { --org-line: #6c6b65; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --org-line: #6c6b65; } }
.org-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.org-bar .srch { min-width: 220px; }
.org-bar .inp { width: auto; }
.org-edit-note { margin-bottom: 10px; background: var(--accent-soft); }
.org-stage { position: relative; overflow: hidden; height: calc(100vh - 230px); min-height: 460px; background: var(--surface-2); background-image: radial-gradient(circle, color-mix(in srgb, var(--ink-4) 28%, transparent) 1px, transparent 1px); background-size: 22px 22px; border: 1px solid var(--line); border-radius: var(--r); cursor: grab; touch-action: none; user-select: none; }
.org-stage.drag { cursor: grabbing; }
.org-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.org-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 1; }
.oc-dotted { opacity: .8; transition: opacity .15s, stroke-width .15s; }
.oc-dotted.hl { opacity: 1; stroke-width: 3; }
.org-zone { position: absolute; z-index: 0; border-radius: 16px; background: color-mix(in srgb, var(--dept) 7%, var(--surface-2)); border: 1.5px solid color-mix(in srgb, var(--dept) 38%, transparent); }
.org-zone.none { border-style: dashed; background: transparent; }
.org-zone-label { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--dept) 45%, transparent); white-space: nowrap; box-shadow: var(--shadow); }
.org-zone-label::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--dept); }
.org-team { position: absolute; z-index: 0; border: 1.5px dashed color-mix(in srgb, var(--ink-4) 70%, transparent); border-radius: 12px; }
.org-team span { position: absolute; left: 10px; top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.org-card { position: absolute; z-index: 2; width: 236px; height: 84px; display: flex; flex-direction: column; justify-content: space-between; padding: 9px 10px 7px 11px; background: var(--raised); border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); color: var(--ink); overflow: hidden; border-top: 3px solid var(--dept); }
a.org-card:hover, .org-card.editing:hover { border-color: var(--accent); border-top-color: var(--dept); text-decoration: none; box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.org-card.editing { cursor: grab; }
.oc-main { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.oc-main .avatar { width: 34px; height: 34px; font-size: 12px; }
.oc-text { min-width: 0; flex: 1; padding-right: 12px; }
.oc-text b { display: block; font-size: 13px; font-weight: 650; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11.5px; color: var(--ink-3); line-height: 1.3; overflow: hidden; }
.oc-foot { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 10.5px; }
.oc-dept, .oc-team { color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.oc-team { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 0 6px; border-radius: 5px; }
.oc-second { color: var(--c7); border: 1px dashed var(--c7); padding: 0 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; font-weight: 600; }
.oc-tag { font-size: 10px; font-weight: 650; padding: 0 6px; border-radius: 5px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.oc-tag.warn { background: var(--warn-soft); color: var(--warn-ink); } .oc-tag.bad { background: var(--bad-soft); color: var(--bad-ink); } .oc-tag.info { background: var(--accent-soft); color: var(--accent-ink); }
.org-card .star { position: absolute; right: 8px; top: 7px; color: var(--gold); }
.org-card.dim { opacity: .25; }
.org-card.hit { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
.org-card.drop-ok { box-shadow: 0 0 0 3px var(--good), var(--shadow); }
.org-card.drop-bad { box-shadow: 0 0 0 3px var(--bad), var(--shadow); }
.oc-toggle { position: absolute; z-index: 4; height: 19px; min-width: 38px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink-2); font-size: 11px; font-weight: 650; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.oc-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.oc-toggle.folded { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.oc-ghost { position: fixed; z-index: 120; pointer-events: none; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 9px; background: var(--raised); border: 1px solid var(--accent); box-shadow: var(--shadow-lg); font-size: 12.5px; font-weight: 600; }
.org-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 6; }
.org-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.org-wrap.with-key { grid-template-columns: minmax(0, 1fr) 250px; }
.org-key { height: calc(100vh - 230px); min-height: 460px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 12px 12px; font-size: 12px; }
@media (max-width: 1100px) { .org-wrap.with-key { grid-template-columns: minmax(0, 1fr); } .org-key { height: auto; min-height: 0; } }
.k-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.k-head b { font-size: 13px; }
.k-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 4px; }
.k-depts { display: flex; flex-direction: column; gap: 1px; }
.k-dept { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 3px 5px; border-radius: 6px; text-align: left; font-size: 12px; color: var(--ink-2); }
.k-dept:hover { background: var(--hover); }
.k-dept.on { background: var(--accent-soft); color: var(--accent-ink); }
.k-dept i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.k-dept b { font-weight: 650; color: var(--ink-3); }
.k-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink-2); flex-wrap: wrap; }
.k-row svg { flex: none; }
.k-zone { width: 30px; height: 16px; border-radius: 5px; flex: none; background: color-mix(in srgb, var(--c3) 9%, var(--surface-2)); border: 1.5px solid color-mix(in srgb, var(--c3) 40%, transparent); }
.k-team { width: 30px; height: 16px; border-radius: 5px; flex: none; border: 1.5px dashed var(--ink-4); }
.k-star { color: var(--gold); width: 30px; display: inline-flex; justify-content: center; }
.oc-toggle.k-tog { position: static; flex: none; box-shadow: none; }
.k-foot { margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--line-2); color: var(--ink-3); font-size: 11.5px; }

/* career paths */
.cl-card { padding-bottom: 6px; }
.cl-keys { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.cl-keys span { display: inline-flex; align-items: center; gap: 6px; }
.cl-k-role, .cl-k-vac { width: 18px; height: 12px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--raised); display: inline-block; }
.cl-k-vac { border-style: dashed; background: transparent; }
.cl-wrap { overflow-x: auto; padding-bottom: 6px; }
.cl { position: relative; margin: 0 auto; }
.cl-band { position: absolute; left: 0; right: 0; border-radius: 10px; }
.cl-band:nth-child(odd) { background: var(--surface-2); }
.cl-level { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 120px; display: flex; flex-direction: column; }
.cl-level b { font-size: 13px; font-weight: 650; }
.cl-level span { font-size: 11px; color: var(--ink-3); }
.cl-lines { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; overflow: visible; }
.cl-role { position: absolute; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 8px 10px 8px 12px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--dept); overflow: hidden; }
.cl-role b { font-size: 12.5px; font-weight: 650; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-role.vacant { background: transparent; border-style: dashed; border-left-style: solid; border-left-color: color-mix(in srgb, var(--dept) 45%, transparent); box-shadow: none; }
.cl-role.vacant b { color: var(--ink-3); }
.cl-people { display: flex; align-items: center; min-width: 0; }
.cl-people a, .cl-people > span:not(.small) { margin-right: -6px; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px var(--raised); }
.cl-people .small { margin-left: 12px; min-width: 0; }
.cl-matrix td { vertical-align: top; min-width: 150px; }
.off-list { max-height: 520px; overflow: auto; }
.off-list .item { align-items: flex-start; }
.off-list .item .row.wrap { margin-top: 5px; }
.cl-chip { display: flex; align-items: center; gap: 6px; justify-content: space-between; padding: 3px 8px; margin: 2px 0; border-radius: 6px; font-size: 12px; background: color-mix(in srgb, var(--dept) 10%, transparent); border-left: 3px solid var(--dept); }
.cl-chip b { font-size: 11.5px; }
.cl-chip.vacant { background: transparent; color: var(--ink-3); border: 1px dashed var(--line); border-left: 3px solid color-mix(in srgb, var(--dept) 40%, transparent); }

/* choices in dialogs */
.form-sec { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.form-grid > .form-sec:first-child, .form-grid > .notice + .form-sec { border-top: 0; padding-top: 0; margin-top: 2px; }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.choice { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--raised); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; }
.choice b { display: block; font-size: 13px; }
.choice small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.check .help { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.check { align-items: flex-start; }
.check input { margin-top: 3px; }
.btn.danger-ghost { color: var(--bad-ink); }
.btn.danger-ghost:hover { background: var(--bad-soft); }
.row-del { margin-left: auto; color: var(--ink-4); opacity: .55; }
.row-del:hover, .row-del:focus-visible { color: var(--bad-ink); background: var(--bad-soft); opacity: 1; }
tr:hover .row-del { opacity: 1; }
.db td.sticky2 > .row { width: 100%; }

/* sharing and the public form page */
.share-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; }
.share-row { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.inp.share-url { width: 100%; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.pub { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.pub-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pub-brand img { width: 40px; }
.pub-safe { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.pub-safe .ic { margin-top: 2px; color: var(--good); }

/* forms module */
.form-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.q { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.q:last-child { border-bottom: 0; }
.q-head { font-size: 15px; font-weight: 650; padding: 14px 0 4px; }
.q-label { font-weight: 550; margin-bottom: 6px; }
.opts { display: flex; flex-direction: column; gap: 5px; }
.opts label { display: flex; gap: 7px; align-items: flex-start; }
.opts-scroll { max-height: 220px; overflow: auto; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; }
.opts.likert { flex-direction: row; flex-wrap: wrap; gap: 6px; } /* agree to disagree: one row of choices */
.opts.likert label { align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer; }
.opts.likert label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* internal climate */
.up-ink { color: var(--good-ink); } .down-ink { color: var(--bad-ink); }
.kpis-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.findings { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.findings-notes { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.score-bar { width: 120px; height: 7px; border-radius: 999px; background: var(--track); overflow: hidden; } .score-bar i { display: block; height: 100%; background: var(--c1); border-radius: 999px; }
.dist { display: flex; width: 180px; min-width: 120px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--track); gap: 1px; } .dist i { display: block; height: 100%; }
.npsbars { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; align-items: end; }
.npsbar { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; }
.npsbar-col { width: 100%; height: 110px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 4px; }
.npsbar-col i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; min-height: 0; }
.npsbar-n { color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 15px; } .npsbar-l { color: var(--ink-3); }
.move-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); } .move-row:last-child { border-bottom: 0; }
.comments { display: grid; gap: 8px; }
.comment { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-size: 13.5px; } .comment .badge { flex: none; }
/* each group against the company: bars either side of the company figure */
.vs { display: grid; gap: 6px; }
.vs-row { display: grid; grid-template-columns: minmax(120px, 230px) 64px minmax(0, 1fr) 78px; gap: 10px; align-items: center; font-size: 13px; }
.vs-l { display: flex; flex-direction: column; min-width: 0; } .vs-v { text-align: right; } .vs-d { text-align: right; }
.vs-track { position: relative; height: 16px; background: var(--surface-2); border-radius: 4px; }
.vs-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-3); border-radius: 1px; }
.vs-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; } .vs-bar.up { background: var(--good); } .vs-bar.down { background: var(--bad); }
.vs-few { position: absolute; left: 8px; top: 1px; }
.vs-axis { display: grid; grid-template-columns: minmax(120px, 230px) 64px minmax(0, 1fr) 78px; gap: 10px; margin-top: 4px; }
.vs-axis span:nth-child(1) { grid-column: 3; justify-self: start; grid-row: 1; } .vs-axis span:nth-child(2) { grid-column: 3; justify-self: center; grid-row: 1; } .vs-axis span:nth-child(3) { grid-column: 3; justify-self: end; grid-row: 1; }
/* key engagement drivers: answers per statement as clustered columns */
.resp-wrap { overflow-x: auto; padding: 4px 14px 2px; border-bottom: 1px solid var(--line-2); }
.resp-wrap svg { display: block; }
.resp-n { font-size: 10.5px; fill: var(--ink-2); font-variant-numeric: tabular-nums; } .resp-axis { font-size: 10px; fill: var(--ink-4); } .resp-l { font-size: 11px; fill: var(--ink-2); }
.mixbar { display: flex; width: 120px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--track); gap: 1px; } .mixbar i { display: block; height: 100%; }
.comment-tags { display: flex; flex-wrap: wrap; gap: 4px; flex: none; max-width: 46%; }
.score-pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-weight: 650; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.score-pill.good { background: var(--good-soft); color: var(--good-ink); } .score-pill.info { background: var(--accent-soft); color: var(--accent-ink); }
.score-pill.warn { background: var(--warn-soft); color: var(--warn-ink); } .score-pill.bad { background: var(--bad-soft); color: var(--bad-ink); }
.score-pill.big { font-size: 20px; padding: 2px 12px; font-weight: 700; }
.band-key { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 12px; } .band-key .score-pill { font-weight: 550; font-size: 12px; }
.drv-head { align-items: flex-start; gap: 10px 18px; padding-bottom: 10px; } .drv-head h2 { padding-top: 6px; }
.sec-sum { display: flex; flex-wrap: wrap; align-items: stretch; margin-left: auto; row-gap: 8px; }
.sec-fig { display: flex; flex-direction: column; gap: 2px; padding: 0 18px; border-left: 1px solid var(--line); } .sec-fig:first-child { border-left: 0; padding-left: 0; }
.sec-fig-l { font-size: 11.5px; font-weight: 650; color: var(--ink-3); } .sec-fig-v { font-size: 20px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; } .sec-fig-s { font-size: 11.5px; color: var(--ink-3); }
.resp-pill { font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pill-good { fill: var(--good-soft); } .pill-info { fill: var(--accent-soft); } .pill-warn { fill: var(--warn-soft); } .pill-bad { fill: var(--bad-soft); }
.pill-t-good { fill: var(--good-ink); } .pill-t-info { fill: var(--accent-ink); } .pill-t-warn { fill: var(--warn-ink); } .pill-t-bad { fill: var(--bad-ink); }
.kpi-click { cursor: pointer; transition: border-color .12s, box-shadow .12s; } .kpi-click:hover { border-color: var(--ink-4); box-shadow: var(--shadow-lg); }
.kpi-more { margin-left: auto; color: var(--ink-4); display: inline-flex; } .kpi-click:hover .kpi-more, .kpi-click:focus-visible .kpi-more { color: var(--accent-ink); }
.spread { padding-bottom: 4px; }
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-bottom: 6px; }
.sp-stat { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); min-width: 0; }
.sp-stat-l { font-size: 11.5px; font-weight: 650; color: var(--ink-3); } .sp-stat-v { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; } .sp-stat-s { font-size: 11.5px; color: var(--ink-3); }
.sp-h { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin: 16px 0 8px; } .sp-h h3 { font-size: 14px; margin: 0; }
.sp-chart { width: 100%; height: auto; display: block; }
.sp-grid { stroke: var(--line); stroke-width: 1; } .sp-axis { font-size: 10px; fill: var(--ink-4); } .sp-n { font-size: 11px; fill: var(--ink-2); font-weight: 650; } .sp-l { font-size: 11px; fill: var(--ink-3); }
.sp-mark { stroke: var(--ink-3); stroke-dasharray: 4 3; stroke-width: 1; } .sp-mark-l { font-size: 10.5px; fill: var(--ink-3); }
.sp-shares { display: grid; gap: 8px; }
.sp-share { display: grid; grid-template-columns: minmax(110px, 200px) minmax(0, 1fr); gap: 12px; align-items: center; }
.sp-share-l { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.sp-share-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--track); gap: 1px; }
.sp-share-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, .5); overflow: hidden; }
.sp-stmts { display: grid; gap: 8px; }
.sp-stmt { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(120px, 1fr) auto; gap: 12px; align-items: center; font-size: 13px; }
.sp-stmt-v { display: flex; align-items: center; gap: 6px; justify-content: flex-end; white-space: nowrap; }
.sp-groups { display: grid; gap: 8px; }
.sp-group { display: grid; grid-template-columns: minmax(110px, 220px) minmax(0, 1fr) 62px; gap: 12px; align-items: center; font-size: 13px; }
.sp-group-l { display: flex; flex-direction: column; min-width: 0; } .sp-group-v { text-align: right; }
.sp-track { position: relative; height: 14px; border-radius: 4px; background: var(--surface-2); }
.sp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.sp-ref { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.sp-ref-note { margin-top: 6px; } .sp-ref-key { display: inline-block; width: 2px; height: 11px; background: var(--ink); vertical-align: -1px; }
.sp-few { position: absolute; left: 8px; top: -1px; }
.card.issues > .card-head h2 { display: flex; align-items: center; gap: 6px; } .issues-fold { cursor: pointer; } .issues-fold:hover { color: var(--accent-ink); }
.issue-list { list-style: none; margin: 0; padding: 0; }
.issue { display: grid; grid-template-columns: 30px minmax(0, 1fr) 88px; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); } .issue:first-child { border-top: 0; padding-top: 4px; }
.issue-rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--bad-soft); color: var(--bad-ink); }
.issue-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; } .issue-head h3 { font-size: 15.5px; margin: 0; }
.issue-sum { margin: 4px 0 8px; color: var(--ink-2); }
.issue-phrases { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .issue-phrases .chip { cursor: default; }
.issue-quotes { display: grid; gap: 6px; margin-bottom: 10px; }
.issue-quotes blockquote { margin: 0; padding: 7px 11px; border-left: 3px solid var(--c8); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); }
.issue-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-bottom: 8px; } .issue-fact { display: inline-flex; align-items: center; gap: 6px; } .issue-fact .mixbar { width: 64px; }
.issue-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.issue-reach { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding-top: 2px; }
.issue-all { margin-top: 10px; }
.issue-how { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); } .issue-how summary { cursor: pointer; color: var(--ink-2); font-weight: 600; } .issue-how ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.seg-table table.t th { white-space: normal; vertical-align: bottom; line-height: 1.25; padding: 10px 14px; min-width: 74px; }
.seg-table table.t td { padding: 12px 14px; vertical-align: top; }
.seg-table table.t tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.seg-table table.t tfoot th { background: var(--surface-2); border-top: 2px solid var(--line); padding: 12px 14px; vertical-align: top; position: static; }
.seg-name { font-size: 14px; }
.seg-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.seg-n { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; padding-right: 2px; }
.seg-v { display: inline-block; min-width: 62px; text-align: right; padding: 3px 9px; border-radius: 6px; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink); }
.seg-v.hi { background: var(--good-soft); color: var(--good-ink); } .seg-v.lo { background: var(--bad-soft); color: var(--bad-ink); } .seg-v.co { font-weight: 750; }
.seg-d { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding-right: 9px; } .seg-d .small { font-size: 12px; }
/* climate report and dashboard */
.rp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 0; z-index: 5; }
.rp-ctl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.rp-title { margin: 4px 0 12px; } .rp-title h2 { font-size: 19px; margin-bottom: 2px; }
.rp-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; margin: 20px 0 8px; }
.rp-sub { font-size: 13px; color: var(--ink-2); margin: 12px 0 6px; }
.rp-sec { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 14px 6px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.rp-sec:first-of-type { border-top: 0; }
.hl h3 { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.hl-big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.hl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 56px; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line-2); font-size: 13px; } .hl-row > :nth-child(3) { text-align: right; }
td.hm-hi, .hm-key .hm-hi { background: var(--good-soft); } td.hm-lo, .hm-key .hm-lo { background: var(--bad-soft); }
.hm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; } .hm-key span { padding: 1px 7px; border-radius: 5px; color: var(--ink-2); }
.scale { display: flex; gap: 5px; flex-wrap: wrap; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: inline-flex; min-width: 34px; height: 32px; padding: 0 9px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); cursor: pointer; font-size: 13px; }
.scale input:checked + span { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.scale input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.lib { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.folder-list a, .folder-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border-radius: 8px; color: var(--ink-2); border: 0; background: none; text-align: left; font-weight: 500; }
.folder-list button:hover { background: var(--hover); }
.folder-list button.on { background: var(--accent-soft); color: var(--accent-ink); }
.item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.item:last-child { border-bottom: 0; }

/* file viewer: a policy or file opened inside the app */
.modal.viewer { max-width: 1120px; height: 90vh; }
.modal.viewer .modal-head { padding-bottom: 6px; }
.modal.viewer .modal-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.viewer .modal-body { flex: 1; min-height: 0; padding: 0; display: flex; flex-direction: column; }
.viewer-meta { padding: 0 18px 10px; overflow-wrap: anywhere; }
.viewer-stage { flex: 1; min-height: 0; overflow: auto; background: var(--surface-2); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.viewer-frame { display: block; width: 100%; height: 100%; border: 0; border-radius: 0 0 14px 14px; }
.viewer-note { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 30px; text-align: center; color: var(--ink-3); }
.viewer-hint { text-align: center; padding: 10px 12px 0; }
.viewer-pic { display: flex; justify-content: center; padding: 18px; } .viewer-pic img { max-width: 100%; height: auto; box-shadow: var(--shadow); }
.viewer-text { margin: 0; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docwrap { padding-bottom: 28px; }
.docpage { max-width: 816px; margin: 10px auto 0; padding: 56px 64px; background: #fff; color: #1a1a1a; border-radius: 4px; box-shadow: var(--shadow); font: 14.5px/1.55 Calibri, Carlito, "Segoe UI", system-ui, sans-serif; tab-size: 4; }
.docpage .dp { margin: 0 0 8px; min-height: 1.2em; white-space: pre-wrap; overflow-wrap: anywhere; }
.docpage h1.dp { font-size: 24px; } .docpage h2.dp { font-size: 18px; margin-top: 14px; } .docpage h3.dp { font-size: 15.5px; margin-top: 10px; }
.docpage .dmark { display: inline-block; min-width: 1.6em; margin-left: -1.6em; }
.docpage .dtable { overflow-x: auto; margin: 6px 0 12px; }
.docpage table { border-collapse: collapse; width: 100%; }
.docpage td { border: 1px solid #c8c8c8; padding: 4px 7px; vertical-align: top; } .docpage td .dp { margin: 0 0 2px; }
.docpage a { color: #1c5cab; text-decoration: underline; }
.docpage .dimg { max-width: 100%; height: auto; vertical-align: middle; }
.docpage .dheader { margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid #e2e2e2; }
.docpage .dfooter { margin-top: 24px; padding-top: 8px; border-top: 1px solid #e2e2e2; font-size: 12px; color: #555; }
.sheet-tabs { margin: 0; padding: 0 12px; background: var(--surface); }
.sheetbody { padding: 10px 12px 20px; }
.sheetgrid { border-collapse: collapse; background: var(--surface); font-size: 12.5px; }
.sheetgrid th, .sheetgrid td { border: 1px solid var(--line); padding: 3px 7px; vertical-align: top; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 360px; }
.sheetgrid thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--ink-3); font-weight: 600; text-align: center; }
.sheetgrid tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface-2); color: var(--ink-3); font-weight: 500; text-align: right; }
.sheetgrid td.n { text-align: right; font-variant-numeric: tabular-nums; }

/* frameworks: checklist steps with their deadlines */
.fw-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; position: sticky; top: 0; z-index: 5; }
.fw-head, .fw-row { display: grid; grid-template-columns: 54px minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1.2fr) 92px 62px; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line-2); }
.fw-head { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; padding-top: 6px; padding-bottom: 6px; }
.fw-row:last-child { border-bottom: 0; }
.fw-row.sub .fw-title { padding-left: 16px; }
.fw-move { display: flex; gap: 0; }
.fw-title { overflow-wrap: anywhere; }

/* career history on a profile: newest first, the start at the bottom */
.jh-stint { padding: 8px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--ink-3); }
.jh-note { margin: 10px 14px; }
.jh-row { display: grid; grid-template-columns: 92px 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.jh:last-child .jh-row:last-child { border-bottom: 0; }
.jh-date { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.jh-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--ink-4); }
.jh-dot.good { background: var(--good); } .jh-dot.bad { background: var(--bad); } .jh-dot.info { background: var(--accent); } .jh-dot.start { background: var(--surface); border: 2px solid var(--ink-3); }
.jh-what { margin-top: 2px; }
.jh-meta { margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.jh-row.off { opacity: .62; } .jh-row.off .jh-what { text-decoration: line-through; }

@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .side { position: fixed; z-index: 70; top: 0; bottom: 0; left: -240px; transition: left .18s; }
  .side.open { left: 0; box-shadow: var(--shadow-lg); }
  .btn.menu-btn { display: inline-flex; }
  .top .lab { display: none; }
  .view { padding: 16px 16px 40px; }
  .top { padding: 0 16px; }
  .g2, .g3, .g4, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .lib { grid-template-columns: minmax(0, 1fr); }
  .task { grid-template-columns: 26px minmax(0, 1fr) 96px; }
  .task .hide-sm { display: none; }
  .case-sum { grid-template-columns: minmax(0, 1fr); }
  .view-head { flex-direction: column; align-items: stretch; }
  .modal.viewer .lab { display: none; }
  .kpis-sm { grid-template-columns: minmax(0, 1fr); }
  .dist { width: 120px; }
  .rp-tools { position: static; } .comment { flex-direction: column; } .comment-tags { max-width: none; }
  .vs-row { grid-template-columns: minmax(0, 1fr) 54px 64px; } .vs-track { grid-column: 1 / -1; grid-row: 2; } .vs-axis { display: none; }
  .issue { grid-template-columns: 28px minmax(0, 1fr); } .issue-reach { grid-column: 2; flex-direction: row; justify-content: flex-start; gap: 8px; }
  .sec-sum { margin-left: 0; } .sp-share, .sp-stmt, .sp-group { grid-template-columns: minmax(0, 1fr); gap: 4px; } .sp-stmt-v { justify-content: flex-start; }
  .docpage { padding: 28px 22px; }
  .view-head > .row { justify-content: flex-start; }
  .dir-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dir-head { display: none; }
  .jh-row { grid-template-columns: 76px minmax(0, 1fr) auto; } .jh-dot { display: none; }
  .fw-head, .fw-row { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1fr) 62px; } .fw-head .hide-sm, .fw-row .hide-sm { display: none; }
  .org-bar .srch, .dir-tools .srch { min-width: 0; flex: 1 1 100%; }
}
@media print {
  .side, .top, .no-print, .org-tools, .filters { display: none !important; }
  .rp-h { break-after: avoid; } .card.hl, .kpis .card, .grid > .card { break-inside: avoid; } .tabs { display: none; }
  .issue { break-inside: avoid; } .issue-how, .kpi-more { display: none; }
  .view { overflow: visible; padding: 0; }
  body, .card { background: #fff; box-shadow: none; }
  .org-stage { height: auto; overflow: visible; border: 0; }
  body:has(.overlay) .shell { display: none; }
  .overlay { position: static; background: none; padding: 0; display: block; }
  .modal { box-shadow: none; max-width: none; }
  .modal-foot, .modal-head button { display: none; }
}

/* attendance reports */
tr.wash-bad td { background: var(--bad-soft); } tr.wash-warn td { background: var(--warn-soft); } tr.wash-good td { background: var(--good-soft); }
tr.att-total td { background: var(--surface-2); }
.att-bad { color: var(--bad-ink); } .att-good { color: var(--good-ink); } .att-warn { color: var(--warn-ink); }
.att-flags { display: flex; flex-wrap: wrap; gap: 4px; } .att-flags .badge { white-space: normal; }
.att-list { margin-bottom: 14px; } .att-sec-h { margin: 22px 0 10px; }
.att-method { margin: 8px 0 0; padding-left: 18px; } .att-method li { margin-bottom: 6px; }
th.att-cut, td.att-cut { background: var(--surface-2); }
.print-only { display: none; }
@media print {
  .print-only { display: block; } .print-head { font-size: 11px; color: #444; margin-bottom: 10px; }
  .print-break { break-before: page; } .att-list { break-inside: avoid; }
  tr.wash-bad td, tr.wash-warn td, tr.wash-good td, tr.att-total td, .notice, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details.card > summary { display: none; } details.card:not([open]) { display: none; }
}
