/* CMI TimePay Central 2.13 interface styles. A product of Carolina Management Institute, LLC.
   One stylesheet: design tokens (light and dark), the layout (navy rail, top bar, menu bar),
   then components and pages. Consolidated from earlier layered styles; every screen was checked
   element by element to render the same. */
:root { --ink-2: #33415f; --track: #1c6e8c; --track-soft: #d6e9f0; --focus: #2b6cd4; --on-ink: #ffffff; --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif; color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink-2: #c3d3f4; --track: #5bb6d6; --track-soft: #1d3644; --on-ink: #10172a; --focus: #7aa7ff; color-scheme: dark; }
}
:root[data-theme="dark"] { --ink-2: #c3d3f4; --track: #5bb6d6; --track-soft: #1d3644; --on-ink: #10172a; --focus: #7aa7ff; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.num, td.n, .stat b, .money { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 19px; line-height: 1.3; }
h3 { font-size: 16px; }
p { margin: 0 0 .6em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.brand { border-bottom: 1px solid var(--rule); }
.brand b { display: block; font: 600 17px/1.2 var(--font-display); }
.brand span { font-size: 12.5px; }
.nav { display: flex; flex-direction: column; flex: 1; overflow: auto; }
.nav a { display: flex; align-items: center; gap: 10px; border-radius: var(--r-sm); text-decoration: none; }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nav a[aria-current="page"] svg { opacity: 1; }
.nav .count { margin-left: auto; border-radius: 999px; font-size: 12px; padding: 0 7px; font-weight: 600; }
.who { border-top: 1px solid var(--rule); padding: 14px 16px; font-size: 13px; }
.who b { display: block; font-size: 14px; }
.who .row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.main { min-width: 0; }
.topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.topline p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) {
  .rail.open { transform: none; }
}
.banner { border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--rule); background: var(--panel); display: flex; gap: 12px; align-items: flex-start; }
.banner.important { background: var(--warn-soft); border-color: transparent; }
.banner b { display: block; }
.panel { background: var(--panel); }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.grid2 > .panel + .panel, .grid2 > * + * { margin-top: 0; }
.panel h2 { margin-bottom: 4px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1050px) {
  .grid2 { grid-template-columns: 1fr; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px/1 var(--font); padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--panel); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--sunk); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.link { border: 0; background: none; padding: 4px 2px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--text); min-width: 0; }
label.f > span.hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input, select, textarea { font: 15px/1.3 var(--font); color: var(--text); background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 9px 11px; width: 100%; min-width: 0; }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields .wide { grid-column: 1 / -1; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters label.f { min-width: 160px; flex: 1 1 160px; max-width: 260px; }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: var(--r-sm); overflow: hidden; background: var(--panel); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; font: 500 14px var(--font); color: var(--text); cursor: pointer; border-right: 1px solid var(--rule); }
.seg button:last-child { border-right: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: 500 14.5px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { font-weight: 600; }
.tabs .count { background: var(--warn); color: #fff; border-radius: 999px; font-size: 11.5px; padding: 0 6px; margin-left: 4px; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 500; }
.callout { border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; background: var(--sunk); }
.callout.bad { background: var(--bad-soft); color: var(--bad); }
.callout.ok { background: var(--ok-soft); color: var(--ok); }
.callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 12.5px; position: sticky; top: 0; white-space: nowrap; }
td.n, th.n { text-align: right; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
tr.voided td { color: var(--muted); text-decoration: line-through; }
tfoot td { font-weight: 600; background: var(--sunk); border-top: 1px solid var(--rule-2); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.ink { background: var(--track-soft); color: var(--track); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); margin-bottom: 16px; overflow: hidden; }
.stat { padding: 16px 18px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: 0; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat b { display: block; font: 600 26px/1.15 var(--font-display); margin-top: 4px; color: var(--text); }
.stat small { color: var(--muted); font-size: 12.5px; }
.stat.attention b { color: var(--warn); }
.chart { width: 100%; height: auto; display: block; }
.chart .bar:not([fill]) { fill: var(--track); }
.chart .bar.dim { fill: var(--rule-2); }
.chart .bar.open { opacity: .5; }
.chart text { fill: var(--muted); font: 11.5px var(--font); }
.chart .val { fill: var(--text); font-weight: 600; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .today { stroke: var(--text); stroke-width: 2; }
.entry-sum { display: flex; gap: 28px; align-items: baseline; padding: 14px 0 4px; border-top: 1px dashed var(--rule-2); margin-top: 18px; flex-wrap: wrap; }
.entry-sum div span { display: block; font-size: 12.5px; color: var(--muted); }
.entry-sum div b { font: 600 28px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.entry-sum .btn { margin-left: auto; padding: 12px 22px; font-size: 15px; }
.list { display: flex; flex-direction: column; }
.item { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.item:last-child { border-bottom: 0; }
.item .t { font-weight: 600; }
.item .s { color: var(--muted); font-size: 13.5px; grid-column: 1; }
.item .r { grid-row: 1 / span 2; grid-column: 2; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.req { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; }
.req + .req { margin-top: 12px; }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--panel); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.wide { width: min(780px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(15, 22, 38, .45); }
dialog .d-body { padding: 22px 24px 8px; max-height: calc(100vh - 160px); overflow: auto; }
dialog .d-body h2 { margin-bottom: 6px; }
dialog .d-foot { padding: 14px 24px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--panel); padding: 11px 18px; border-radius: 8px; font-weight: 500; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); color: #fff; }
.auth { display: grid; }
.auth-side { justify-content: space-between; }
.auth-side p { opacity: .85; }
.auth-main { place-items: center; }
.auth-form h2 { margin-bottom: 6px; }
.auth-form .fields { grid-template-columns: 1fr; margin: 20px 0; }
.auth-form .btn.primary { width: 100%; padding: 13px; font-size: 15px; }
.secret { font: 600 20px/1.4 Consolas, "Cascadia Mono", monospace; letter-spacing: .06em; background: var(--sunk); padding: 12px 14px; border-radius: var(--r-sm); word-break: break-all; user-select: all; }
.code-input { font: 600 26px/1 Consolas, "Cascadia Mono", monospace; letter-spacing: .4em; text-align: center; }
.steps-list { padding-left: 20px; margin: 10px 0; }
.steps-list li { margin-bottom: 6px; }
.pw-meter { height: 6px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.pw-meter i { display: block; height: 100%; transition: width .2s; }
@media print {
  @page { size: letter landscape; margin: 0.35in 0.4in 0.45in;
    @bottom-left { content: "Confidential: contains employee pay information"; font: 7pt sans-serif; color: #666; }
    @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 7pt sans-serif; color: #666; } }
  body { color: #000; font-size: 10pt; }
  .rail, .no-print, .toast, .banner { display: none !important; }
  .panel, .tablewrap { border: 0; padding: 0; }
  th { background: #1f2a44 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  th, td { padding: 3px 5px; border: 1px solid #999; font-size: 8.5pt; }
  .confidential { color: #a00; font-weight: 700; margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
:root { --rail-a: #1e2a5a; --rail-b: #3b2d7a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --rail-a: #121a38; --rail-b: #26194d; }
}
:root[data-theme="dark"] { --rail-a: #121a38; --rail-b: #26194d; }
.rail { color: #fff; }
@media (min-width: 861px) {
  .shell::before { content: ""; position: fixed; inset: 0 auto 0 0; z-index: -1; }
}
.brand { border-bottom-color: rgba(255,255,255,.12); }
.brand b { color: #fff; }
.brand span { color: rgba(255,255,255,.7); }
.nav a { font-weight: 500; }
.nav a[aria-current="page"] .count { background: #fff; color: var(--c); }
.who { border-top-color: rgba(255,255,255,.12); color: #fff; }
.who .muted { color: rgba(255,255,255,.7); }
.who .btn { color: #fff; }
.title-wrap { display: flex; gap: 14px; align-items: flex-start; }
.title-ico { place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; margin-top: 2px; }
.title-ico svg { width: 24px; height: 24px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
input:focus, select:focus, textarea:focus { outline-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); }
.stats.tiles { border: 0; background: none; overflow: visible; }
.stat.tile { border: 0; position: relative; padding: 16px 18px 16px 18px; }
.loc-name { display: flex; align-items: center; gap: 10px; }
.loc-name::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--lc); flex: none; }
.req { border-left: 5px solid var(--rc, var(--accent)); }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input.has-eye { padding-right: 92px; }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 6px; padding: 6px 10px; font: 600 13px var(--font); cursor: pointer; }
.pw-eye svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat.tile { padding-right: 58px; }
.auth-form [role=alert]:not(:empty) { margin-bottom: 12px; }
.cards { display: grid; gap: 12px; }
.card { background: var(--panel); border-radius: var(--r); border: 1px solid var(--rule); padding: 14px 16px; text-align: left; font: inherit; color: inherit; }
.loc-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; padding: 2px 9px 2px 7px; border-radius: 999px; color: color-mix(in srgb, var(--lc) 62%, var(--text)); background: color-mix(in srgb, var(--lc) 12%, var(--panel)); white-space: nowrap; }
.loc-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lc); }
td.nw { white-space: nowrap; }
.btn.hist { color: #b45309; border-color: color-mix(in srgb, #e07b00 45%, var(--rule-2)); background: color-mix(in srgb, #e07b00 8%, var(--panel)); }
.item.voided .t, .item.voided .s { text-decoration: line-through; color: var(--muted); }
.item .r .btns { justify-content: flex-end; }
.hist { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule-2); }
.hist-item { position: relative; padding: 0 0 18px 6px; }
.hist-item::before { content: ""; position: absolute; left: -26px; top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--panel); background: var(--hc); }
.hist-item.created { --hc: #16a34a; }
.hist-item.edited { --hc: #e07b00; }
.hist-item.deleted { --hc: #dc2626; }
.hist-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.hist-head b { color: var(--hc); }
.hist-table { width: auto; min-width: 60%; font-size: 13.5px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.hist-table th, .hist-table td { padding: 5px 10px; }
.hist-table td.from { color: var(--bad); text-decoration: line-through; }
.hist-table td.to { color: var(--ok); font-weight: 600; }
.entry-fields { grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr); }
@media (max-width: 1100px) {
  .entry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.round-hint { font-weight: 500; font-size: 12.5px; color: var(--accent); min-height: 17px; }
.rule-note { margin: 0 0 16px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--text); }
.callout.bad ul { margin: 6px 0 0; }
input[type=time] { font-variant-numeric: tabular-nums; }
.hub { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.hub-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 8px; box-shadow: 0 1px 2px rgba(30, 40, 90, .04), 0 8px 24px -16px rgba(30, 40, 90, .18); }
.hub-link { display: flex; gap: 11px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); }
.hub-link:hover { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.hub-link b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.hub-link small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.hub-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; flex: none; }
.hub-ico svg { width: 17px; height: 17px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-body > * + * { margin-top: 16px; }
.hub-body > .grid2 > * + * { margin-top: 0; }
.hub-body .stats.tiles { margin-bottom: 0; }
@media (max-width: 1050px) {
  .hub { grid-template-columns: 1fr; }
  .hub-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .hub-link { flex: none; }
  .hub-link small { display: none; }
}
button.stat.tile { font: inherit; text-align: left; cursor: pointer; color: inherit; }
button.stat.tile:hover { filter: brightness(.98); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--t) 45%, transparent); }
.health { display: flex; gap: 18px; align-items: center; --h: #64748b; background: linear-gradient(120deg, color-mix(in srgb, var(--h) 14%, var(--panel)), var(--panel) 70%); border-left: 6px solid var(--h); }
.health.st-ok { --h: #16a34a; }
.health.st-attention { --h: #d97706; }
.health.st-problem { --h: #dc2626; }
.health-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--h); flex: none; box-shadow: 0 10px 22px -12px var(--h); }
.health-badge svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.health-text { flex: 1; min-width: 0; }
.health-text h2 { color: color-mix(in srgb, var(--h) 70%, var(--text)); }
.health-text h2::before { display: none; }
.health-text p { margin: 2px 0 0; }
@media (max-width: 700px) {
  .health { flex-wrap: wrap; }
}
.task-grid { display: grid; gap: 12px; }
.task-grid.one { grid-template-columns: 1fr; }
.task { --k: #64748b; background: var(--panel); border: 1px solid color-mix(in srgb, var(--k) 25%, var(--rule)); border-top: 4px solid var(--k); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.task.st-ok { --k: #16a34a; }
.task.st-fixed { --k: #2563eb; }
.task.st-info { --k: #0891b2; }
.task.st-attention { --k: #d97706; background: color-mix(in srgb, #d97706 5%, var(--panel)); }
.task.st-problem { --k: #dc2626; background: color-mix(in srgb, #dc2626 5%, var(--panel)); }
.task.st-skipped { --k: #94a3b8; }
.task header { display: flex; align-items: center; gap: 10px; }
.task header b { flex: 1; font-size: 15px; }
.task-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--k); flex: none; }
.task-ico svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.task p { margin: 0; font-size: 13.5px; }
.task-items { margin: 2px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.task-items li { margin-bottom: 2px; }
.task details summary { font-size: 13px; cursor: pointer; color: var(--accent); }
.task footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.job-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.job-list li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 13.5px; }
.job-list b { color: color-mix(in srgb, var(--accent) 70%, var(--text)); }
.job-list span { color: var(--muted); }
@media (max-width: 600px) {
  .job-list li { grid-template-columns: 1fr; gap: 0; }
}
.hub > * { min-width: 0; }
.task-grid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
@media (max-width: 700px) {
  .health > .btn { width: 100%; }
  .health-badge { width: 44px; height: 44px; }
}
.auth-side h1 { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth .pw-eye { --accent: #9db7ee; }
}
.auth-licensed { font-weight: 600; letter-spacing: .02em; opacity: .9; }
.auth-foot p { opacity: .85; }
.auth-copy { opacity: .7 !important; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.auth-main-foot { margin-top: 32px; text-align: center; }
@media (min-width: 861px) {
  .auth-main-foot { display: none; }
}
.linkish { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.brand-logo { flex: none; }
.rail-legal { padding: 10px 16px 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,.62); display: flex; flex-direction: column; }
.rail-legal span:first-child { color: rgba(255,255,255,.85); font-weight: 600; }
.rail-legal .linkish { color: rgba(255,255,255,.75); }
.legal p { margin: 0 0 10px; }
.logo-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 132px; height: 132px; border: 1px dashed var(--rule-2); border-radius: 12px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.logo-preview img { max-width: 116px; max-height: 116px; }
@media print {
  .rail-legal { display: none; }
}
.fields.one { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-period { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.dash-period .f { min-width: 220px; }
.dash-tiles { margin-bottom: 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid > * { min-width: 0; }
.dash-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
.dash-card { --dc: var(--accent, #5b5bd6); margin: 0; }
.dash-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dash-sub { color: var(--muted); font-size: 13px; }
.dash-empty { color: var(--muted); font-size: 14px; padding: 14px; background: var(--sunk); border-radius: var(--r-sm); text-align: center; }
.dash-table { max-height: 340px; overflow: auto; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.dash-table table { margin: 0; }
.dash-table thead th { position: sticky; top: 0; background: var(--sunk); z-index: 1; }
.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.progress-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; border: 1px solid var(--rule); }
.progress-bar i { display: block; height: 100%; background: var(--pc); border-radius: 999px; transition: width .4s; }
.progress > span, .progress > b { font-size: 13px; white-space: nowrap; }
.dept-list { display: grid; gap: 8px; }
.dept-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sunk); border-left: 4px solid var(--lc, var(--rule-2)); }
.dept-row > * { min-width: 0; }
@media (max-width: 560px) {
  .dept-row { grid-template-columns: minmax(0, 1fr) auto; }
}
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-sm); background: var(--sunk); font-size: 14px; }
.checklist li > i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; font-style: normal; color: #fff; background: var(--warn); }
.checklist li.ok > i { background: var(--ok); }
.checklist li > span { display: flex; flex-direction: column; min-width: 0; }
.checklist li small { color: var(--muted); font-size: 12.5px; }
.dash-card .chart { display: block; width: 100%; max-height: 240px; }
.health-mini { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.health-num b { display: block; font: 600 30px/1 var(--font-display); }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.strong { font-weight: 600; }
.f-lbl { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.tc-filters, .report-filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-bottom: 16px; }
.tc-filters > .f, .report-filters > .f { min-width: 180px; margin: 0; }
.tc-filters > .f:first-child { min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.range-box { display: flex; gap: 12px; flex-wrap: wrap; }
.range-box[hidden], .tc-filters [hidden], .report-filters [hidden] { display: none !important; }
.tc-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; background: var(--sunk); border-radius: var(--r-sm); margin-bottom: 12px; }
.tc-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-nav { align-items: center; }
.tc-table td { vertical-align: top; }
.tc-acts { flex-wrap: nowrap; gap: 6px; }
.written { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.totals-bar { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: var(--sunk); }
.totals-bar > div { flex: 1 1 140px; padding: 10px 16px; border-right: 1px solid var(--rule); }
.totals-bar > div:last-child { border-right: 0; }
.totals-bar b { display: block; font: 600 20px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.totals-bar span { font-size: 12.5px; color: var(--muted); }
.signoff-box { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); border: 2px solid var(--warn); background: var(--warn-soft); }
.signoff-box h3 { margin-bottom: 6px; }
.signoff-box .check { font-weight: 600; }
.signoff-box .btns input { flex: 1 1 220px; max-width: 360px; }
.signoff-box.done { border-color: var(--ok); background: var(--ok-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.signoff-box.backup { border: 1px solid var(--rule); background: var(--panel); }
.signoff-box.backup h3 { font-size: 15px; }
.signoff-box.done.was-backup { border-color: var(--warn); background: var(--warn-soft); }
.period-dates { display: flex; flex-direction: column; gap: 4px; padding: 6px 12px; border: 0; border-radius: var(--r-sm); background: var(--sunk); min-height: 42px; justify-content: center; }
.period-dates b { font-variant-numeric: tabular-nums; }
.period-dates .pill { align-self: flex-start; }
.report-exports { padding-top: 12px; border-top: 1px solid var(--rule); align-items: center; }
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 18px 0 12px; }
.report-head .report-sum { margin: 0; min-width: min(100%, 480px); }
.report-table tr.rk-group td { background: var(--track-soft); font-weight: 700; color: var(--text); border-top: 2px solid var(--track); }
.report-table tr.rk-sub td { background: var(--sunk); font-weight: 600; font-style: italic; }
.report-table tr.rk-total td { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.sig-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 36px 0 12px; }
.sig-lines > div { border-top: 1.5px solid var(--text); padding-top: 6px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .sig-lines { grid-template-columns: 1fr; }
}
.dash-grid .span2 .dept-list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.auth { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: 100dvh; }
.auth-side { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: 32px; }
.auth-brand { margin: auto 0; display: flex; flex-direction: column; width: 100%; }
.auth-side h1 { font: 700 clamp(32px, 3.6vw, 56px)/1.08 var(--font-display); max-width: none; letter-spacing: -.01em; margin: 0; }
.auth-side p { max-width: none; }
.auth-licensed { margin: 6px 0 0; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 13px; }
.auth-logo-wrap { display: flex; align-items: center; justify-content: center; background: #fff; max-width: 100%; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.auth-logo { display: block; height: auto; object-fit: contain; }
.auth-foot { max-width: none; width: 100%; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: 12.5px; line-height: 1.45; }
.auth-foot p { margin: 0 0 4px; }
.auth-foot .linkish { color: inherit; }
.auth-main { padding: clamp(24px, 4vw, 64px); background: var(--page); }
.auth-form { max-width: 480px; width: 100%; background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(24px, 3vw, 44px); box-shadow: var(--shadow); }
.auth-form h2 { font-size: clamp(24px, 2vw, 30px); }
.auth-btns { display: flex; gap: 10px; }
.auth-btns .btn { flex: 1; padding: 13px; font-size: 15px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 24px 20px; gap: 16px; }
  .auth-brand { margin: 0; }
  .auth-side h1 { font-size: 28px; }
  .auth-foot { display: none; }
  .auth-main { padding: 20px 16px 28px; align-items: stretch; }
  .auth-form { max-width: none; }
}
.brand-logo { display: block; height: auto; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px 10px; }
.report-table tr.rk-section td { background: var(--ink); color: var(--on-ink); font-weight: 700; border-top: 10px solid var(--panel); }
.report-table tr.rk-dsum td { background: var(--sunk); font-weight: 600; }
.lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lockup-mark { width: 36px; height: 36px; flex: none; border-radius: 9px; box-shadow: 0 2px 8px -2px rgba(0,0,0,.35); }
.lockup-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lockup-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #34d399; }
.lockup-name { font: 700 17px/1.15 var(--font-display); letter-spacing: -.005em; }
.lockup-sub { font-size: 12px; opacity: .72; margin-top: 2px; }
.brand .lockup-name { color: #fff; }
.brand .lockup-sub { color: rgba(255,255,255,.72); }
.lockup-dialog { margin-bottom: 14px; }
.lockup-dialog .lockup-mark { width: 44px; height: 44px; }
.lockup-dialog .lockup-name { font-size: 20px; color: var(--text); }
.auth-product { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 20px); margin: 0; }
.auth-mark { width: clamp(56px, 5.2vw, 84px); height: clamp(56px, 5.2vw, 84px); flex: none; border-radius: 18px; box-shadow: 0 10px 28px -12px rgba(0,0,0,.6); outline: 1px solid rgba(255,255,255,.18); }
.auth-product-text { display: flex; flex-direction: column; line-height: 1.02; }
.auth-eyebrow { font-size: clamp(13px, 1.05vw, 16px); font-weight: 700; letter-spacing: .2em; color: #34d399; margin-bottom: 4px; }
@media (max-width: 860px) {
  .auth-mark { width: 48px; height: 48px; border-radius: 12px; }
}
.auth-brand { align-items: center; text-align: center; gap: 18px; }
.auth-product { justify-content: center; text-align: left; }
.auth-logo-wrap { width: min(100%, 520px); padding: clamp(16px, 2vw, 30px) clamp(20px, 2.6vw, 40px); margin: 0 0 14px; border-radius: 20px; }
.auth-logo { width: 100%; max-width: 100%; max-height: clamp(110px, 24vh, 240px); }
@media (max-width: 860px) {
  .auth-logo-wrap { width: min(100%, 360px); }
  .auth-logo { max-height: 96px; }
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.brand-logo { align-self: center; width: auto; max-width: 100%; max-height: 92px; margin: 0; }
.lockup .lockup-eyebrow, .brand .lockup-eyebrow, .auth-side .auth-eyebrow { color: #34d399; }
.brand .lockup { align-self: stretch; justify-content: flex-start; gap: 10px; }
.brand .lockup-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand .lockup-text { align-items: flex-start; text-align: left; }
:root { --r: 14px; --r-sm: 8px; }
.brand { padding: 22px 20px 18px; }
.nav { padding: 12px 12px; gap: 4px; }
.nav a { padding: 10px 12px; font-size: 15px; }
.brand .lockup { padding-left: 4px; }
.who, .rail-legal { padding-left: 20px; padding-right: 20px; }
.panel { border-radius: var(--r); padding: 20px 22px; }
.panel-head h2, .panel > h2, .dash-card-head h2 { font: 600 18px/1.3 var(--font-display); color: var(--text); display: flex; align-items: center; gap: 10px; }
.panel-head h2::before, .panel > h2::before, .dash-card-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; flex: none; }
.dash-card { padding: 20px 22px; }
.dash-card-head { margin-bottom: 14px; }
.dash-sub { margin-top: 4px; }
.dash-grid { align-items: stretch; gap: 18px; }
.dash-card { display: flex; flex-direction: column; height: 100%; }
.dash-card > .btns:last-child { margin-top: auto; padding-top: 12px; }
.dash-card > .dash-empty { flex: 1 1 auto; display: grid; place-items: center; min-height: 96px; margin: 0; }
.dash-card > .dash-table { flex: 1 1 auto; }
.stats.tiles { grid-auto-rows: 1fr; align-items: stretch; gap: 14px; }
.stat.tile { height: 100%; border-radius: var(--r); }
.dept-list { align-items: stretch; }
.dept-list > * { height: 100%; }
.topline h1, .dash-top h1 { font: 650 28px/1.2 var(--font-display); letter-spacing: -.015em; }
.auth-forgot { justify-self: end; margin-top: -4px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.auth-back { display: block; margin: 14px auto 0; }
.auth-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.auth-done .btn { margin-top: 8px; width: 100%; }
.auth-done-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; background: #16a34a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth .auth-forgot { color: #9db7ee; }
}
:root[data-theme="dark"] .auth .auth-forgot { color: #9db7ee; }
.dash-grid > .panel + .panel { margin-top: 0; }
.dash-card > .dash-fill { flex: 1 1 auto; display: flex; flex-direction: column; }
.dash-fill > .dash-empty { flex: 1 1 auto; display: grid; place-items: center; min-height: 96px; margin: 0; }
.dash-table td.nw, .dash-table .pill { white-space: nowrap; }
:root { --accent: #0b7a68; --accent-hover: #08665a; --accent-soft: #e5f3f0; --accent-ink: #075e52; --rail: #14213d; --rail-2: #1b2a4a; --rail-text: rgba(255,255,255,.86); --rail-muted: rgba(255,255,255,.58); --rail-line: rgba(255,255,255,.1); --page: #f4f6f9; --panel: #ffffff; --sunk: #f1f4f8; --rule: #e1e6ed; --rule-2: #cfd6e0; --text: #172033; --muted: #5d6879; --ink: #14213d; --ok: #12703f; --ok-soft: #e4f4ea; --warn: #a15c07; --warn-soft: #fcf1de; --bad: #b42318; --bad-soft: #fde8e6; --brand-green: #34d399; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #3cc3a8; --accent-hover: #5fd3bb; --accent-soft: #15302c; --accent-ink: #7fe0cb; --rail: #0d1526; --rail-2: #121c31; --page: #0f1522; --panel: #171f2e; --sunk: #131a27; --rule: #263044; --rule-2: #344058; --text: #e6eaf1; --muted: #9aa5b8; --ink: #9db7ee; --ok: #4cc38a; --ok-soft: #14301f; --warn: #e3a64a; --warn-soft: #34260f; --bad: #f08a80; --bad-soft: #3a1b19; --shadow: 0 1px 2px rgba(0,0,0,.35); }
}
:root[data-theme="dark"] { --accent: #3cc3a8; --accent-hover: #5fd3bb; --accent-soft: #15302c; --accent-ink: #7fe0cb; --rail: #0d1526; --rail-2: #121c31; --page: #0f1522; --panel: #171f2e; --sunk: #131a27; --rule: #263044; --rule-2: #344058; --text: #e6eaf1; --muted: #9aa5b8; --ink: #9db7ee; --ok: #4cc38a; --ok-soft: #14301f; --warn: #e3a64a; --warn-soft: #34260f; --bad: #f08a80; --bad-soft: #3a1b19; --shadow: 0 1px 2px rgba(0,0,0,.35); }
body { background: var(--page); }
.rail, .shell::before { background: var(--rail); }
@media (min-width: 861px) {
  .shell::before { width: var(--rail-w); }
}
.brand, .who, .rail-legal { border-color: var(--rail-line); }
.nav a { color: var(--rail-text); position: relative; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 3px 3px 0; background: var(--brand-green); }
.nav .count { background: #f5b544; color: #2a1a00; }
.who .btn { background: transparent; border-color: rgba(255,255,255,.28); }
.who .btn:hover { background: rgba(255,255,255,.1); }
.title-ico { background: var(--accent-soft); box-shadow: none; }
.title-ico svg { stroke: var(--accent); }
.panel, .dash-card { border: 1px solid var(--rule); box-shadow: var(--shadow); }
.panel-head h2::before, .panel > h2::before, .dash-card-head h2::before { background: var(--accent); }
th { background: var(--sunk); color: var(--muted); font-weight: 600; }
.btn.primary, .auth-main .btn.primary { border: 1px solid var(--accent); filter: none; }
.btn.primary:hover, .auth-main .btn.primary:hover { filter: none; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent-ink); }
.hub-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 3px 0 0 var(--accent); }
.hub-link[aria-current="page"] small { color: var(--muted); }
.hub-link[aria-current="page"] .hub-ico { background: var(--panel); }
.hub-link[aria-current="page"] .hub-ico svg { stroke: var(--accent); }
.hub-ico { background: var(--sunk); }
.pw-eye, .auth .pw-eye { --accent: #0b7a68; }
a, .linkish { color: var(--accent-ink); }
.auth .auth-forgot { color: var(--accent); }
.stat.tile { background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); }
.stat.tile span { color: var(--muted); font-weight: 600; }
.stat.tile b { color: var(--text); }
.stat.tile.attention { box-shadow: inset 0 0 0 1px var(--warn), inset 4px 0 0 var(--warn), var(--shadow); }
.stat.tile.attention b { color: var(--warn); }
.stats:not(.tiles) .stat b { color: var(--text); }
.entry-sum div b { color: var(--accent); }
.auth-side { background: linear-gradient(165deg, #14213d 0%, #1b2d52 100%); color: #fff; }
:root { --action: #14213d; --action-hover: #23365f; --action-text: #ffffff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --action: #3a5490; --action-hover: #4a66a8; --action-text: #ffffff; }
}
:root[data-theme="dark"] { --action: #3a5490; --action-hover: #4a66a8; --action-text: #ffffff; }
.btn.primary, .auth-main .btn.primary, :root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .auth-main .btn.primary { background: var(--action); border-color: var(--action); color: var(--action-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .auth-main .btn.primary { background: var(--action); border-color: var(--action); color: var(--action-text); }
}
.btn.primary:hover, .auth-main .btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.seg button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: var(--action-text); }
@media (min-width: 900px) {
  .stats.tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .stats.tiles .stat.tile { padding: 14px 14px; }
  .stats.tiles .stat.tile b { font-size: 24px; }
  .stats.tiles .stat.tile small { display: block; }
}
:root { --bar-a: #2e4372; --bar-b: #14213d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bar-a: #6f8cc9; --bar-b: #3a5490; }
}
:root[data-theme="dark"] { --bar-a: #6f8cc9; --bar-b: #3a5490; }
.folder-now { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 12px; padding: 10px 12px; background: var(--sunk); border-radius: var(--r-sm); word-break: break-all; }
.fp-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fp-path { flex: 1; min-width: 0; font-size: 14px; word-break: break-all; }
.fp-list { border: 1px solid var(--rule); border-radius: var(--r-sm); max-height: 300px; overflow: auto; margin-bottom: 12px; background: var(--panel); }
.fp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fp-item:last-child { border-bottom: 0; }
.fp-item:hover, .fp-item:focus-visible { background: var(--accent-soft); }
.fp-ico { width: 20px; text-align: center; }
.lic-meter { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--sunk); }
.lic-nums { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.lic-nums b { font: 650 20px/1 var(--font-display); }
.lic-free { margin-left: auto; font-weight: 600; color: var(--ok); font-size: 13.5px; }
.lic-meter .progress-bar { height: 8px; }
.lic-meter .progress-bar i { background: var(--action, #14213d); }
.lic-meter.full .lic-free { color: var(--bad); }
.lic-meter.full .progress-bar i { background: var(--bad); }
table.kv td { padding: 6px 12px 6px 0; border: 0; }
table.kv td:first-child { width: 170px; }
.lic-meter .progress-bar { background: var(--panel); }
.name-fields { grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(90px, .7fr) minmax(110px, .9fr); }
@media (max-width: 700px) {
  .name-fields { grid-template-columns: 1fr 1fr; }
}
.name-preview { margin: 6px 0 12px; min-height: 18px; }
.mi-input { text-transform: uppercase; }
.pw-eye, .auth .pw-eye { background: color-mix(in srgb, var(--action) 10%, var(--panel)); color: var(--action); }
.pw-eye:hover, .auth .pw-eye:hover { background: color-mix(in srgb, var(--action) 18%, var(--panel)); }
.pw-eye[aria-pressed="true"], .auth .pw-eye[aria-pressed="true"] { background: var(--action); color: var(--action-text); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pw-eye:not([aria-pressed="true"]) { color: #b9c8ec; background: color-mix(in srgb, var(--action) 35%, var(--panel)); }
}
:root[data-theme="dark"] .pw-eye:not([aria-pressed="true"]) { color: #b9c8ec; background: color-mix(in srgb, var(--action) 35%, var(--panel)); }
:root { --rail-w: 76px; --shadow-lg: 0 12px 32px -8px rgba(16,24,40,.18), 0 4px 8px -4px rgba(16,24,40,.06); --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); --ease: cubic-bezier(.2,.7,.2,1); }
:root[data-theme="dark"] { --shadow-lg: 0 16px 40px rgba(0,0,0,.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --shadow-lg: 0 16px 40px rgba(0,0,0,.5); }
}
.rail { transform: none !important; transition: none; inset: auto; box-shadow: none; }
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; background: none; }
.shell::before { display: none !important; }
.rail { position: sticky; top: 0; height: 100vh; width: var(--rail-w); background: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 14px 0 12px; gap: 10px; border: 0; z-index: 20; }
.rail-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 6px; }
.rail-logo { width: 40px; height: 40px; }
.spaces { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0 8px; flex: 1; overflow: auto; }
.space { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; border-radius: 10px; color: var(--rail-text); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .01em; text-align: center; }
.space i { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 9px; }
.space svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.space:hover { background: rgba(255,255,255,.06); color: #fff; }
.space[aria-current="page"] { color: #fff; }
.space[aria-current="page"] i { background: rgba(255,255,255,.14); }
.space[aria-current="page"] svg { stroke: var(--brand-green); opacity: 1; }
.space[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 12px; height: 26px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand-green); }
.rail-foot { padding-bottom: 2px; }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 999px; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: #2b3b61; color: #fff; font: 600 13px/1 var(--font); text-transform: uppercase; letter-spacing: .02em; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 11.5px; background: var(--sunk); color: var(--muted); }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.rail .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.avatar-btn:hover .avatar { box-shadow: 0 0 0 2px var(--brand-green); }
.ann-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.work { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 15; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top-l, .top-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-mark, .top-av { display: none; }
.top-logo { width: 30px; height: 30px; }
.crumb { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ann-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 360px; border: 1px solid var(--rule); background: var(--panel); border-radius: 999px; padding: 4px 11px; font: 500 12.5px var(--font); color: var(--muted); cursor: pointer; }
.ann-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; min-width: 220px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); color: var(--faint); font: 400 13.5px var(--font); cursor: pointer; }
.search-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-btn span { flex: 1; text-align: left; }
.search-btn kbd { font: 600 11px var(--font); color: var(--muted); background: var(--sunk); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; }
.search-btn:hover { border-color: var(--rule-2); }
.page-tabs { display: none; }
.main { padding: 8px 28px 64px; max-width: 1280px; width: 100%; }
.banner.important { display: flex; justify-content: space-between; align-items: center; }
.av-menu { position: fixed; z-index: 60; width: 300px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.av-who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.av-who > div { display: flex; flex-direction: column; min-width: 0; }
.av-who .small { overflow: hidden; text-overflow: ellipsis; }
.av-menu > a, .av-menu > button { display: block; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font: 500 14px var(--font); border: 0; background: none; cursor: pointer; }
.av-menu > a:hover, .av-menu > button:hover { background: var(--sunk); }
.av-theme { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.av-theme .seg button { padding: 5px 10px; font-size: 12.5px; }
.av-menu .rail-legal { border-top: 1px solid var(--rule); color: var(--muted); padding: 10px; margin-top: 4px; font-size: 11.5px; }
.av-menu .rail-legal span:first-child { color: var(--text); }
.av-ver { padding: 0 10px 6px; }
.av-signout { color: var(--bad) !important; }
dialog.palette { width: min(620px, calc(100vw - 24px)); margin-top: 12vh; border-radius: 14px; padding: 0; }
dialog.palette::backdrop { background: rgba(16, 24, 40, .35); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.pal-in svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; flex: none; }
.pal-in input { border: 0; outline: 0 !important; font-size: 16px; padding: 6px 0; background: none; }
.pal-list { max-height: 50vh; overflow: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--text) !important; text-decoration: none; }
.pal-item i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sunk); }
.pal-item svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pal-item span { flex: 1; font-weight: 500; }
.pal-item[aria-selected="true"], .pal-item:hover { background: var(--accent-soft); }
.pal-foot { border-top: 1px solid var(--rule); padding: 8px 16px; }
.top-brand { font: 600 15px/1 var(--font-display, var(--font)); color: var(--text); white-space: nowrap; }
.top-brand .cmi { color: var(--brand-green); font-weight: 800; }
:root:not([data-theme="dark"]) .top-brand .cmi { color: #0b7a68; }
.hub-ico svg { stroke: currentColor; }
.has-bar .hub { grid-template-columns: minmax(0, 1fr); }
.has-bar .hub-nav { display: none; }
@media (max-width: 1100px) {
  .page-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px 28px 2px; scrollbar-width: none; }
  .page-tabs::-webkit-scrollbar { display: none; }
  .page-tabs a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--panel); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; }
  .page-tabs a[aria-current="page"] { background: var(--text); color: var(--panel); border-color: var(--text); }
  .page-tabs .count { font-size: 11px; background: var(--warn); color: #fff; border-radius: 999px; padding: 0 6px; }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .rail { position: fixed; inset: auto 0 0 0; top: auto; width: 100%; height: calc(62px + env(safe-area-inset-bottom)); flex-direction: row; padding: 0 4px env(safe-area-inset-bottom); gap: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .rail-mark, .rail-foot { display: none; }
  .spaces { flex-direction: row; padding: 0; gap: 0; justify-content: space-around; overflow: hidden; }
  .space { flex: 1 1 0; min-width: 0; padding: 7px 0 6px; font-size: 10.5px; border-radius: 0; }
  .space span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .space i { height: 26px; width: 40px; border-radius: 999px; }
  .space[aria-current="page"]::before { display: none; }
  .topbar { padding: 0 14px; height: 54px; }
  .top-mark, .top-av { display: inline-grid; }
  .top-av .avatar { width: 32px; height: 32px; font-size: 12px; }
  .search-btn { min-width: 0; width: 36px; padding: 0; justify-content: center; }
  .search-btn span, .search-btn kbd { display: none; }
  .ann-chip { display: none; }
  .crumb { font-size: 15px; color: var(--text); }
  .page-tabs { padding: 6px 14px 2px; }
  .main { padding: 6px 14px calc(90px + env(safe-area-inset-bottom)); }
  .topline { flex-direction: column; align-items: stretch; }
  .topline h1 { font-size: 21px; }
  .av-menu { width: calc(100vw - 24px); }
  .top-brand, .top-org { display: none; }
}
@media print {
  .rail, .topbar, .page-tabs, .top-stack, .menubar { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
}
@media (min-width: 821px) {
  .shell { background: linear-gradient(to right, var(--rail) 0 var(--rail-w), transparent var(--rail-w)); }
}
@media (max-width: 820px) {
  .rail { box-shadow: 0 -4px 16px rgba(16,24,40,.12); }
}
.top-org { max-height: 30px; max-width: 160px; object-fit: contain; }
.space .sp-short { display: none; }
@media (max-width: 820px) {
  .space .sp-long { display: none; }
  .space .sp-short { display: inline; }
}
.top-stack { position: sticky; top: 0; z-index: 15; border-bottom: 1px solid var(--rule); }
.top-stack .topbar { position: static; background: transparent; backdrop-filter: none; }
.has-bar .top-stack .topbar { height: 52px; }
.has-bar .crumb { font: 600 16px/1.2 var(--font-display); color: var(--text); }
.menubar { display: flex; align-items: stretch; gap: 2px; padding: 0 20px; height: 44px; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.menubar::-webkit-scrollbar { display: none; }
.mb-item { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; white-space: nowrap; font: 500 13.5px var(--font); color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 0; }
.mb-item:hover { color: var(--text); }
.mb-item[aria-current="page"] { color: var(--text); font-weight: 600; }
.mb-item[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2.5px; border-radius: 2px 2px 0 0; background: var(--accent); }
.mb-item .count { font-size: 11px; background: var(--warn); color: #fff; border-radius: 999px; padding: 0 6px; font-weight: 600; }
.has-bar .main { padding-top: 18px; }
@media (min-width: 821px) {
  .page-tabs { display: none !important; }
}
@media (max-width: 820px) {
  .menubar { display: none; }
  .top-stack { border-bottom: 0; }
}
@media print {
  .top-stack, .menubar { display: none !important; }
}
td.n, th.n, .tile b, .num, .n { font-variant-numeric: tabular-nums; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.top-stack { background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top-r { display: flex; align-items: center; gap: 8px; }
.qn-btn { height: 36px; padding: 0 14px 0 10px; border-radius: 10px; gap: 6px; }
.qn-plus { font-size: 18px; line-height: 1; font-weight: 500; margin-top: -1px; }
.qn-menu { width: 280px; }
.qn-h { padding: 6px 10px 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.qn-item { display: flex !important; align-items: center; gap: 10px; }
.qn-item i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--sunk); color: var(--muted); flex: none; }
.qn-item i svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qn-item span { display: flex; flex-direction: column; line-height: 1.25; }
.qn-item small { font-size: 12px; font-weight: 400; }
.qn-item:hover i, .qn-item:focus i { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
@media (max-width: 820px) {
  .qn-l { display: none; }
  .qn-btn { padding: 0 11px; }
}
@media (prefers-reduced-motion: no-preference) {
  .page > :not(.skel) { animation: pg-in .22s var(--ease) both; }
  @keyframes pg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.skel { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.sk { border-radius: 10px; background: linear-gradient(90deg, var(--sunk) 0%, color-mix(in srgb, var(--sunk) 55%, var(--panel)) 50%, var(--sunk) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: sk 1.3s linear infinite; }
  @keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
}
.sk-h { height: 28px; width: 240px; }
.sk-p { height: 14px; width: 420px; max-width: 80%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sk-card { height: 92px; }
.sk-block { height: 280px; }
.skel:has(+ *) { display: none; }
:root[data-density="compact"] .panel { padding: 14px 16px; }
:root[data-density="compact"] .stack { gap: 10px; }
:root[data-density="compact"] .topline { margin: 4px 0 12px; }
:root[data-density="compact"] .topline h1 { font-size: 21px; }
:root[data-density="compact"] .btn { padding: 7px 12px; }
td .pill { vertical-align: 1px; }
html { scroll-padding-top: 112px; }
@media (max-width: 820px) {
  html { scroll-padding-top: 110px; scroll-padding-bottom: 80px; }
}
.av-menu .rail-legal .linkish { color: var(--accent-ink); }
.title-ico { display: none; }
@media (min-width: 821px) {
  .crumb { display: none; }
}
.gs { margin-bottom: 18px; }
.gs-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.gs-head > div:nth-child(2) { flex: 1; }
.gs-count { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--font); color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 3px var(--accent); }
.gs-steps { list-style: none; margin: 0; padding: 0; }
.gs-step { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-top: 1px solid var(--rule); }
.gs-step .gs-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gs-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font); background: var(--sunk); color: var(--muted); border: 1px solid var(--rule); }
.gs-step.done .gs-n { background: #e3f4ea; color: #157a4a; border-color: #b7e2c7; }
.gs-step.done .gs-text b { color: var(--muted); }
.gs-step.next { background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 10px; }
.gs-step.next .gs-n { background: var(--action, var(--accent)); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .gs-step.done .gs-n { background: #12352a; color: #6fd3a0; border-color: #1f5a43; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-step.done .gs-n { background: #12352a; color: #6fd3a0; border-color: #1f5a43; } }
@media (max-width: 700px) { .gs-step { flex-wrap: wrap; } .gs-step > .btn, .gs-step > .pill { margin-left: 42px; } }
/* ---------- 2.15: full-size menu (sidebar) ---------- */
:root { --side-w: 272px; }
.side { display: none; }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (min-width: 821px) {
  .shell.wide { grid-template-columns: var(--side-w) minmax(0, 1fr); background: linear-gradient(to right, var(--rail) 0 var(--side-w), transparent var(--side-w)); }
  .shell.wide .rail, .shell.wide .menubar { display: none; }
  .shell.wide .top-brand, .shell.wide .top-org { display: none; }
  .shell.wide.has-bar .top-stack .topbar { height: 60px; }
  .shell.wide .top-stack { border-bottom: 1px solid var(--rule); }
  .shell.wide .side { display: flex; }
}
.side { position: sticky; top: 0; height: 100vh; width: var(--side-w); flex-direction: column; background: var(--rail); color: var(--rail-text); z-index: 20; padding: 14px 14px 12px; gap: 12px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 2px 6px; }
.side-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.side-mark { width: 40px; height: 40px; flex: none; }
.side-name { display: flex; flex-direction: column; line-height: 1.1; }
.side-name .cmi { color: var(--brand-green); font: 800 11.5px/1 var(--font); letter-spacing: .14em; }
.side-name span { font: 700 17px/1.2 var(--font-display, var(--font)); color: #fff; white-space: nowrap; }
.side-org { align-self: center; display: grid; place-items: center; width: max-content; max-width: 100%; background: #fff; border-radius: 12px; padding: 10px; margin: 2px 0; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.side-org-logo { display: block; width: auto; height: auto; max-width: 168px; max-height: 48px; object-fit: contain; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; margin: 0 -4px; padding: 2px 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-label { font: 700 11px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--rail-muted); padding: 4px 12px 8px; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--rail-text); text-decoration: none; font: 500 15px/1.2 var(--font); }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-ico { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.side-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.side-link[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.side-link[aria-current="page"] .side-ico svg { stroke: var(--brand-green); opacity: 1; }
.side-link[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 3px 3px 0; background: var(--brand-green); }
.side-hub.open .side-parent { background: rgba(255,255,255,.08); }
.side-sub { display: flex; flex-direction: column; gap: 1px; margin: 4px 0 6px 23px; padding-left: 12px; border-left: 1px solid var(--rail-line); }
.side-sub a { padding: 6px 10px; border-radius: 8px; color: var(--rail-muted); text-decoration: none; font: 500 14px/1.25 var(--font); }
.side-sub a:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-sub a[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255,255,255,.1); }
.side-user { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 1px solid var(--rail-line); border-radius: 12px; background: rgba(255,255,255,.04); color: #fff; cursor: pointer; text-align: left; font: inherit; }
.side-user:hover { background: rgba(255,255,255,.09); }
.side-user .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.side-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-who b { font: 600 14px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-who small { font-size: 12px; color: var(--rail-muted); }
.side-more { color: var(--rail-muted); font-size: 18px; }
@media print { .side { display: none !important; } .shell.wide { display: block; background: none; } }

/* 2.16.1: bars that scroll sideways (tabs, menu bars, settings lists on phones) never show a
   vertical scroll bar or its up/down arrows; they still scroll sideways by touch or trackpad */
.tabs, .menubar, .page-tabs, .hub-nav, .spaces, .tablewrap:not(.dash-table) { overflow-y: hidden; }
.tabs, .menubar, .page-tabs, .hub-nav, .spaces { scrollbar-width: none; -ms-overflow-style: none; }
.tabs::-webkit-scrollbar, .menubar::-webkit-scrollbar, .page-tabs::-webkit-scrollbar, .hub-nav::-webkit-scrollbar, .spaces::-webkit-scrollbar { display: none; width: 0; height: 0; }
.side-nav::-webkit-scrollbar-button { display: none; }
/* 2.16.2: Manager and Payroll Admin signature lines appear only on paper (print, PDF, Excel), not on screen */
@media screen { .sig-lines { display: none; } }
/* 2.16.3: in print the signature lines and note stay together, on the same page as the end of the report */
@media print {
  .report-end { break-inside: avoid; break-before: avoid; page-break-inside: avoid; }
  .report-table tbody tr { break-inside: avoid; }
  .report-table tbody tr:nth-last-child(-n+3) { break-after: avoid; page-break-after: avoid; }
}
@media print {
  .print-fixed { table-layout: fixed; width: 100%; }
  .report-tail-wrap { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; margin-top: -1px; }
}
/* printing the Reporting screen: only the report (title, totals, table, signatures); no filters,
   buttons or tab bar, and no blank page after the signatures */
@media print {
  .report-panel, .report-exports, .page > .topline, .report-head + .tabs { display: none !important; }
  html, body, .shell, .work, .page { min-height: 0 !important; height: auto !important; }
  .main { padding: 0 !important; margin: 0 !important; }
  .report-end > p:last-child { margin-bottom: 0; }
}
@media print { .report-end { display: inline-block; width: 100%; vertical-align: top; } }
@media print { .report-table tbody.rblock { break-inside: avoid; page-break-inside: avoid; } }
/* report blocks are separate table bodies; only the table's very last row drops its bottom border */
.report-table tbody:not(:last-child) tr:last-child td { border-bottom: 1px solid var(--rule); }
@media print {
  .report-table tr.rblock-row { break-inside: avoid; page-break-inside: avoid; }
  .report-table tr.rblock-row > td { padding: 0; border: 0; }
  .report-inner { margin: 0; width: 100%; border-collapse: collapse; }
  .report-inner tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
}
@media print { .rblock-box { display: inline-block; width: 100%; vertical-align: top; } }
@media print { .report-table, .report-table * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- 2.19: Messages ---------- */
.msg-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font: 700 11.5px/1 var(--font); }
.msg-badge[hidden] { display: none; }
.side-solo { padding-bottom: 2px; }
.side-link .side-badge { margin-left: auto; }
.space .msg-badge.dot-count, .bell-btn .msg-badge.dot-count { position: absolute; top: 2px; right: 8px; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 5px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 36px; padding: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); color: var(--muted); cursor: pointer; }
.icon-btn:hover { border-color: var(--rule-2); color: var(--ink); }
.icon-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell-btn { position: relative; }
.bell-btn .msg-badge.dot-count { top: -6px; right: -6px; }
.bell-menu { width: 380px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.bell-head a { font-size: 13px; }
.bell-list { max-height: 360px; overflow-y: auto; }
.bell-empty { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; text-align: center; }
.bell-foot { padding: 10px 14px; border-top: 1px solid var(--rule); display: flex; justify-content: flex-end; }
.msg-notice { align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--rule)); }
.msg-card.quiet { display: none; }
.msg-card { margin-bottom: 18px; }
.msg-card-list { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }

.conv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--rule); background: var(--panel); }
.conv-row:last-child { border-bottom: 0; }
.conv-row:hover { background: var(--sunk); }
.conv-row[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.conv-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-who { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.conv-subj { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-snip { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.conv-row.unread .conv-who, .conv-row.unread .conv-subj { font-weight: 700; }
.conv-row.unread .conv-time { color: var(--accent-ink); font-weight: 600; }
.conv-dot { align-self: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 11.5px var(--font); }

.msg-app { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); height: calc(100vh - 210px); min-height: 460px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.conv-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--rule); }
.conv-tools { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--rule); }
.conv-tools .seg { align-self: flex-start; }
.conv-list { flex: 1; overflow-y: auto; }
.conv-list .empty { padding: 36px 16px; }
.conv-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.conv-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 24px; max-width: 360px; }
.conv-empty-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 6px; }
.conv-empty-ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.conv-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.conv-title { flex: 1; min-width: 0; }
.conv-title h2 { font-size: 17px; margin: 0 0 6px; overflow-wrap: anywhere; }
.conv-back { display: none; }
.people-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.person-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--rule); font-size: 12.5px; }
.person-chip.me { background: var(--accent-soft); }
.thread { flex: 1; overflow-y: auto; padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 2px; background: var(--page); }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.bubble-row { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; }
.bubble-row.cont { margin-top: 2px; }
.bubble-row.mine { flex-direction: row-reverse; }
.bubble-wrap { display: flex; flex-direction: column; max-width: min(72%, 640px); }
.bubble-row.mine .bubble-wrap { align-items: flex-end; }
.bubble-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--muted); margin: 0 4px 3px; }
.bubble-meta b { color: var(--text); font-size: 12.5px; }
.bubble-role, .chip-role { color: var(--muted); font-size: 11.5px; }
.conv-role { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.bubble { white-space: pre-wrap; overflow-wrap: anywhere; padding: 9px 13px; border-radius: 16px; border-bottom-left-radius: 6px; background: var(--panel); border: 1px solid var(--rule); font-size: 14.5px; line-height: 1.45; }
.bubble-row.mine .bubble { background: var(--action, var(--rail)); color: #fff; border-color: transparent; border-radius: 16px; border-bottom-right-radius: 6px; }
.seen { font-size: 11.5px; color: var(--muted); margin: 4px 4px 0; }
.composer { border-top: 1px solid var(--rule); padding: 12px 14px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.composer-input { resize: none; min-height: 44px; max-height: 220px; width: 100%; }
.composer-bar { display: flex; align-items: center; gap: 12px; }
.composer-bar > :first-child { flex: 1; }
.compose .to-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--panel); }
.to-chips { display: contents; }
.to-box input { flex: 1; min-width: 160px; border: 0 !important; outline: 0; box-shadow: none !important; padding: 4px; }
.to-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.to-chip.group { background: color-mix(in srgb, var(--rail) 12%, var(--panel)); color: var(--text); }
.to-chip button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; color: inherit; }
.to-sugg { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 9px; margin-top: 6px; font-weight: 400; }
.to-opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; background: var(--panel); text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.to-opt:hover, .to-opt:focus-visible { background: var(--sunk); }
.compose textarea { min-height: 140px; }
@media (max-width: 820px) {
  .msg-app { grid-template-columns: 1fr; height: calc(100vh - 230px); }
  .msg-app.has-conv .conv-side { display: none; }
  .msg-app:not(.has-conv) .conv-pane { display: none; }
  .conv-back { display: inline-flex; }
  .conv-head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "back btns" "title title"; gap: 10px; padding: 12px 14px; }
  .conv-head .conv-back { grid-area: back; justify-self: start; }
  .conv-head .btns { grid-area: btns; justify-self: end; }
  .conv-head .conv-title { grid-area: title; }
  .msg-open .topline { display: none; }
  .bubble-wrap { max-width: 85%; }
}
@media print { .msg-app { height: auto; } }

/* 2.19.3: printed reports use the whole page and repeat the report heading on every page.
   - the report heading is the first header row of the table, so the browser repeats it on each page
   - scrolling containers can't break across pages (Chrome moved the whole table to page 2): let them flow
   - white paper, no app background, card padding or shadows */
@media screen { .report-table .print-head { display: none; } }
@media print {
  html, body, .shell, .work, .main, .page, .panel, .tablewrap { background: #fff !important; box-shadow: none !important; }
  .tablewrap { overflow: visible !important; border: 0 !important; border-radius: 0 !important; }
  .page { padding: 0 !important; max-width: none !important; }
  .report-head { margin: 0 0 8px; }
  .report-head > div:first-child { display: none; } /* the title and filters print in the repeated heading */
  .report-head .report-sum { min-width: 0; }
  .report-table { width: 100%; }
  .report-table thead { display: table-header-group; }
  .report-table .print-head th { background: #fff !important; color: #111 !important; border: 0 !important; border-bottom: 1.5px solid #1f2a44 !important; padding: 0 0 6px !important; text-align: left; font-weight: 400; }
  .ph-top { display: flex; justify-content: space-between; font-size: 7.5pt; color: #555; letter-spacing: .04em; }
  .ph-org { font-weight: 700; }
  .ph-title { font: 700 13pt/1.25 var(--font-display, sans-serif); color: #111; margin-top: 2px; }
  .ph-filters { font-size: 8pt; color: #555; margin-top: 1px; }
  .report-table .print-head + tr th { border-top: 0; }
}
@media print {
  /* every report block is wrapped as its own one-row body for print; the "keep the last rows with the
     signatures" rule must not chain all of them together (that pushed the table to page 2) */
  .report-table tbody.rblock-holder > tr { break-after: auto !important; page-break-after: auto !important; }
  .report-head { display: none !important; } /* title, filters and totals print in the heading repeated on every page */
  .ph-mid { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 2px; }
  .ph-mid .ph-title { margin-top: 0; }
  .ph-totals { font-size: 9.5pt; font-weight: 700; color: #111; white-space: nowrap; }
}

/* 2.19.5: deleting messages */
.bubble-line { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.bubble-row.mine .bubble-line { flex-direction: row-reverse; }
.msg-del { border: 0; background: none; color: var(--muted); font: 500 12px var(--font); padding: 4px 6px; border-radius: 6px; cursor: pointer; opacity: 0; transition: opacity .15s; flex: none; }
.bubble-line:hover .msg-del, .msg-del:focus-visible { opacity: 1; }
.msg-del:hover { color: var(--bad); background: var(--bad-soft); }
@media (hover: none) { .msg-del { opacity: 1; } }
@media print { .msg-del { display: none; } }
/* 2.19.7: App updates — an uploaded update waiting to install */
.upd-ready { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; color: var(--text); }
.upd-ready p { margin: 4px 0 0; }
.upd-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 2.19.10: Process Payroll wage-law review */
.wage-review { margin-bottom: 12px; }
.wage-review ul { margin: 8px 0 10px; padding-left: 20px; color: var(--text); }
.wage-review li { margin: 4px 0; }
.wage-review .check { color: var(--text); font-weight: 600; }

/* 2.19.11: Payroll Settings and Administration sections as a header menu */
.hub { grid-template-columns: minmax(0, 1fr) !important; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 22px; padding: 6px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(30, 40, 90, .04), 0 8px 24px -16px rgba(30, 40, 90, .18); }
.hub-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font: 500 14px/1.2 var(--font); white-space: nowrap; }
.hub-tab:hover { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.hub-tab-ico { display: grid; place-items: center; width: 18px; height: 18px; color: var(--muted); }
.hub-tab-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-tab[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.hub-tab[aria-current="page"] .hub-tab-ico { color: var(--accent); }
@media (max-width: 820px) { .hub-tabs { display: none; } }
@media print { .hub-tabs { display: none !important; } }

[data-key][hidden] { display: none !important; }

/* 2.19.11b: header menu in one row: categories with drop-downs */
.hub-tabs { flex-wrap: nowrap; }
.hub-row { display: flex; gap: 4px; align-items: center; min-width: 0; flex-wrap: nowrap; }
.hub-cat { position: relative; }
.hub-cat-btn { border: 0; background: none; cursor: pointer; }
.hub-cat-btn.here { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.hub-cat-btn.here .hub-tab-ico { color: var(--accent); }
.hub-cat-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.hub-cat-cur { font-weight: 500; color: var(--muted); }
.hub-cat-cur::before { content: "› "; }
.hub-caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; opacity: .7; }
.hub-cat-btn[aria-expanded="true"] .hub-caret { transform: translateY(1px) rotate(-135deg); }
.hub-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: 340px; display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 12px 32px -12px rgba(30, 40, 90, .35); }
.hub-menu[hidden] { display: none; }
.hub-menu a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.hub-menu a:hover, .hub-menu a:focus-visible { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.hub-menu a .hub-tab-ico { margin-top: 1px; }
.hub-menu b { display: block; font: 600 14px/1.25 var(--font); }
.hub-menu small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.hub-menu a[aria-current="page"] { background: var(--accent-soft); }
.hub-menu a[aria-current="page"] b { color: var(--accent-ink); }
.hub-tabs { position: relative; z-index: 30; }
.hub-cat:last-child .hub-menu { left: auto; right: 0; }
@media (max-width: 1100px) { .hub-cat-cur { display: none; } .hub-tab { padding: 8px 10px; } .hub-menu { width: 300px; } }
@media (max-width: 900px) { .hub-row > .hub-tab .hub-tab-ico, .hub-cat-btn .hub-tab-ico { display: none; } }

/* 2.19.12: Sign out under the name and role in the menu panel */
.side-user-card { border: 1px solid var(--rail-line); border-radius: 12px; background: rgba(255,255,255,.04); padding: 4px; }
.side-user-card .side-user { border: 0; background: none; padding: 6px; border-radius: 9px; }
.side-user-card .side-user:hover { background: rgba(255,255,255,.07); }
.side-signout { display: flex; align-items: center; gap: 8px; width: calc(100% - 8px); margin: 0 4px 4px; padding: 7px 8px 7px 49px; border: 0; border-radius: 8px;
  background: none; color: var(--rail-muted); font: 500 13px/1.2 var(--font); cursor: pointer; text-align: left; }
.side-signout:hover, .side-signout:focus-visible { background: rgba(255,255,255,.07); color: #fff; }
.side-signout-ico { display: grid; place-items: center; width: 15px; height: 15px; }
.side-signout-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 2.19.16: System Admin streamlining */
.health-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.health-list li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.health-list li span:not(.pill) { color: var(--muted); flex: 1 1 260px; min-width: 0; }
.health-list a { font-weight: 600; white-space: nowrap; }
.job-details { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.job-details summary { cursor: pointer; font-weight: 600; color: var(--accent-ink); }
.job-details[hidden] { display: none; }
.job-details > p { margin: 8px 0; }
.task-grid { align-items: start; }

/* 2.20: demo company sign-in */
.demo-pick h3 { font: 600 14px/1.3 var(--font); margin: 4px 0 10px; color: var(--muted); }
.demo-list { display: grid; gap: 8px; }
.demo-acct { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px;
  background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.demo-acct:hover, .demo-acct:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.demo-acct b { font-size: 14.5px; }
.demo-acct span { font-size: 13px; color: var(--muted); }
.demo-pick .small { margin-top: 12px; }
