/* TaxLabs Monitor — product interface, locally hosted and independent of data states. */
:root {
  --bg: #f2f5ef;
  --paper: #fff;
  --ink: #182338;
  --muted: #617087;
  --line: #dce5dc;
  --nav: #13332d;
  --radius: 16px;
  --shadow: 0 2px 4px #18233802, 0 8px 24px #18233803;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { background: var(--bg); }
a { text-underline-offset: 4px; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .58; }
[hidden] { display: none !important; }
.ui-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { z-index: 100; border-radius: 8px; }
.shell { display: grid; grid-template-columns: 244px minmax(0,1fr); }
.rail {
  z-index: 40; height: 100dvh; padding: 27px 16px 18px;
  background: var(--nav); color: #f2f8f4; border-right: 1px solid #ffffff06; overflow-x: hidden;
}
.brand { gap: 12px; margin: 0 10px 30px; font-size: 18px; line-height: 1.25; letter-spacing: -.6px; font-weight: 720; }
.brand:hover { text-decoration: none; }
.brand-copy { min-width: 0; overflow-wrap: anywhere; }
.brand b { color: #fff; font-weight: 720; }
.brand small { font-size: 9px; letter-spacing: 1.8px; font-weight: 550; color: #bed1c8; margin-top: 6px; }
.mark { width: 40px; height: 40px; border-radius: 12px; background: #c1e8cd; color: #13332d; box-shadow: inset 0 0 0 1px #ffffff30; }
.mark .ui-icon { width: 22px; height: 22px; }
.office-logo { width: 40px; height: 40px; border-radius: 11px; padding: 5px; }
.office-switch { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 0 2px 28px; color: #e5f0ea; background: #ffffff05; border: 1px solid #ffffff13; border-radius: 11px; }
.office-switch:hover { color: #fff; background: #ffffff0b; text-decoration: none; }
.office-switch > .ui-icon { color: #adc9bb; width: 18px; height: 18px; }
.office-switch > .ui-icon:last-child { margin-left: auto; width: 14px; }
.office-switch strong { display: block; font-size: 11px; font-weight: 550; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-switch > div { flex: 1; min-width: 0; }
.office-switch small { display: block; color: #c4d8cd; font-size: 10px; font-weight: 400; }
.rail-label { color: #7e91af; font-size: 9px; font-weight: 650; letter-spacing: 1.6px; margin: 0 14px 12px; }
.rail-nav { display: grid; gap: 3px; }
.rail-nav a { position: relative; display: flex; align-items: center; gap: 12px; color: #deebe4; padding: 9px 13px; border-radius: 9px; font-size: 13px; font-weight: 550; min-height: 40px; }
.rail-nav a > span { display: block; font: inherit; min-width: 0; text-align: left; }
.rail-nav a .ui-icon { color: #adc9bb; width: 19px; height: 19px; }
.rail-nav a:hover { background: #ffffff08; color: #fff; text-decoration: none; }
.rail-nav a[aria-current] { background: #c1e8cd24; box-shadow: none; color: #effff4; }
.rail-nav a[aria-current]::before { content: ""; position: absolute; left: -16px; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: #73e3be; }
.rail-nav a[aria-current] .ui-icon { color: #82e9c5; }
.nav-section { font-size: 9px; font-weight: 650; color: #bed1c8; letter-spacing: 1.25px; margin: 16px 14px 3px; }
.rail-security { display: flex; align-items: center; gap: 10px; font-size: 10px; color: #bed1c8; margin-top: auto; padding: 24px 10px 17px; }
.rail-security .ui-icon { width: 17px; height: 17px; color: #7cbbab; }
.rail-foot { display: flex; align-items: center; gap: 10px; padding: 17px 9px 0; border-color: #ffffff10; margin: 0; }
.rail-foot strong { display: block; font-size: 11px; font-weight: 550; line-height: 1.4; color: #e5f0ea; }
.rail-foot span { font-size: 10px; color: #bed1c8; margin-top: 3px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; background: #f0f3fa; color: #586786; font-size: 13px; font-weight: 700; }
.rail-foot .avatar { margin: 0; background: #ffffff15; color: #e5f0ea; }
.top { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 34px; background: #ffffffed; backdrop-filter: blur(18px); border-bottom-color: var(--line); }
.top-heading { display: flex; align-items: center; gap: 13px; flex: none; }
.portal-name { font-size: 12px; font-weight: 550; color: #6b7890; }
.portal-name strong { color: var(--ink); font-weight: 600; }
.company-location { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.company-location strong { font-variant-numeric: tabular-nums; }
.top-search { display: flex; align-items: center; gap: 9px; width: min(100%,320px); margin: 0 auto; padding: 7px 11px; background: #f6f8fb; border: 1px solid #e8ecf2; border-radius: 9px; color: #8490a3; }
.top-search .ui-icon { width: 16px; height: 16px; }
.top-search input { width: 100%; min-width: 0; padding: 3px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.top-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px #145c4912; }
.top-search input::placeholder { color: #7c889d; }
.top-search button { display: grid; place-items: center; padding: 4px; border: 0; border-radius: 5px; background: #e9edf4; color: #65728b; }
.top-search button:hover { background: #dde5ee; }
.top-search button .ui-icon { width: 13px; height: 13px; }
.top-actions { gap: 17px; font-size: 11px; }
.top-actions > a { color: var(--muted); font-weight: 500; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: #65748d; background: white; cursor: pointer; }
.icon-button:hover { background: #f2f5fa; color: var(--ink); text-decoration: none; }
.top-user { padding-left: 16px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.top-user strong { display: block; max-width: 160px; font-size: 11px; font-weight: 600; color: var(--ink); }
.top-user small { font-size: 10px; color: var(--muted); }
.text-button { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 500; min-height: 36px; }
.text-button .ui-icon { width: 15px; height: 15px; }
.mobile-menu, .rail-close, .navigation-backdrop { display: none; }
.main { width: min(100%,1600px); padding: 30px 34px 18px; }
.hero { margin: 0 0 25px; align-items: center; gap: 24px; }
h1, .hero h1 { font-size: clamp(25px,2.6vw,34px); line-height: 1.2; font-weight: 680; letter-spacing: -1.2px; margin-bottom: 9px; color: #17243a; }
h2 { color: #243249; font-size: 16px; font-weight: 650; letter-spacing: -.4px; line-height: 1.4; }
h3 { color: #2b3950; font-size: 14px; font-weight: 650; letter-spacing: -.2px; }
.hero > div:first-child { min-width: 0; }
.hero p { font-size: 12px; line-height: 1.7; max-width: 760px; }
.eyebrow, .hero p.eyebrow { font-size: 9px; font-weight: 650; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 9px; }
.page-context { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; margin: -10px 0 25px; font-size: 11px; color: #66758d; }
.page-context > span { display: inline-flex; align-items: center; gap: 7px; }
.page-context .ui-icon { width: 15px; height: 15px; color: #91a0b4; }
.page-context b { color: #2d3f56; font-weight: 650; }
.button { min-height: 38px; padding: 10px 15px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 1.3; box-shadow: 0 1px 2px #13263a0a; transition: background .15s, box-shadow .15s; }
.button .ui-icon { width: 16px; height: 16px; }
.button:hover { box-shadow: 0 3px 8px #13263a12; }
.button.outline { background: white; color: #4d5c73; border-color: #dfe5ed; }
.button.outline:hover { background: #f7f9fc; border-color: #bfcad9; }
.button.small { font-size: 10px; padding: 7px 10px; min-height: 31px; border-radius: 7px; }
.button.danger { color: #ac384a; border-color: #edcdd2; background: #fff8f8; }
.back { font-size: 11px; color: #708098; margin-bottom: 18px; }
.panel { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.padded { padding: 22px; }
.panel-head { padding: 20px 22px; gap: 14px; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; max-width: 760px; }
.panel-head h2 { margin: 0; }
.panel-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: 9px; color: #78859a; border: 1px solid var(--line); background: #fafbfd; border-radius: 6px; font-weight: 500; }
.panel-kicker .ui-icon { width: 12px; height: 12px; }
.panel-foot, .table-caption { padding: 15px 22px; font-size: 11px; }
.summary-grid { gap: 16px; }
.stat { padding: 21px 22px; position: relative; justify-content: center; min-height: 120px; gap: 10px; }
.stat > span { font-size: 11px; max-width: 75%; color: #68768c; }
.stat > strong:not(.pill) { color: #24324a; font-size: 31px; font-weight: 650; letter-spacing: -1.3px; line-height: 1; }
.stat-icon { position: absolute; top: 20px; right: 18px; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; }
.stat-icon .ui-icon { width: 17px; height: 17px; }
.stat-icon.rose { color: #b34b64; background: #fdf0f4; }
.stat-icon.amber { color: #a37521; background: #fdf6e8; }
.stat-icon.indigo { color: #6966ba; background: #f0effb; }
.stat-icon.mint { color: #388771; background: #eaf7f1; }
.stat > small { font-size: 10px; color: #8590a2; }
.cards { gap: 14px; }
.metric-card { min-height: 147px; padding: 19px; box-shadow: var(--shadow); border-radius: 14px; }
.metric-card strong { font-size: 32px; font-weight: 650; letter-spacing: -1px; }
.metric-card h2 { font-size: 12px; }
.metric-card p { font-size: 11px; margin-top: 5px; }
.red { --badge-bg: #fff0f3; --badge-ink: #b22f4c; }
.amber { --badge-bg: #fff6df; --badge-ink: #91611c; }
.gray { --badge-bg: #eff2f7; --badge-ink: #637188; }
.green { --badge-bg: #eaf7ef; --badge-ink: #27714e; }
.pill { border-radius: 6px; padding: 5px 8px; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.table-wrap { border-radius: 0 0 var(--radius) var(--radius); scrollbar-color: #cad3df transparent; scrollbar-width: thin; }
table { font-size: 11px; line-height: 1.6; }
thead, .features-table thead { background: #f8fafd; }
thead th { font-size: 9px; letter-spacing: .5px; font-weight: 600; color: #7c899e; border-block: 1px solid #edf0f5; }
td, th { padding: 16px 17px; border-bottom: 1px solid #edf0f5; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
tbody th, tbody th[scope=row] { text-transform: none; font-size: 11px; font-weight: 550; letter-spacing: 0; color: #34425a; white-space: normal; overflow-wrap: anywhere; }
tbody th small, tbody td small { display: block; font-size: 10px; font-weight: 400; color: #7b889c; margin-top: 5px; }
tbody tr:hover { background: #fbfcff; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td a, th a { font-weight: 550; }
td .button.small { background: #fff; }
.company-identity { display: flex; align-items: center; gap: 10px; }
.company-identity > div { min-width: 0; }
.company-emblem { display: grid; place-items: center; flex: none; width: 33px; height: 35px; border: 1px solid #e3e9f1; border-radius: 10px; font-size: 12px; font-weight: 650; color: #72819c; background: #f4f7fc; }
.company-identity a { color: #34425b; font-weight: 600; }
.count-pill { display: inline-grid; min-width: 29px; min-height: 27px; place-items: center; border-radius: 7px; font-variant-numeric: tabular-nums; }
.empty { padding: 32px 22px; font-size: 12px; }
.tabs { gap: 4px; margin-bottom: 23px; padding: 5px; background: #eaf0f6; border: 1px solid #e5eaf2; border-radius: 11px; }
.tabs a { border: 0; border-radius: 7px; padding: 8px 11px; font-size: 11px; background: transparent; color: #6e7c91; font-weight: 500; }
.tabs a:hover { color: #334760; text-decoration: none; background: #f7f9fc; }
.tabs a[aria-current] { background: white; color: #1d5f52; border: 0; box-shadow: 0 1px 5px #233a5512; font-weight: 650; }
.workspace-nav { display: flex; flex-wrap: wrap; }
.filters { padding: 20px 22px; gap: 15px; }
.filters label, .stack label { color: #536179; font-weight: 550; font-size: 11px; }
.stack { gap: 18px; }
.stack > div { min-width: 0; }
.stack input:not([type=checkbox]), .stack select, .stack textarea,
.filters input, .filters select, .inline-form input, .inline-form select {
  min-height: 41px; padding: 10px 12px; border: 1px solid #dde4ed; border-radius: 8px; background: #fff; color: #3e4d63; font-size: 12px; box-shadow: 0 1px 2px #14253a03;
}
.stack label { margin-bottom: 7px; }
.stack .helptext, .stack .helptext + div { font-size: 11px; color: #7b879b; margin-top: 6px; }
.stack input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--teal); }
.stack input[type=file] { padding: 12px; border: 1px dashed #c7d3e2; background: #fafcfe; font-size: 11px; }
.stack input[type=file]::file-selector-button { border: 1px solid #dfe5ed; border-radius: 7px; color: #46566d; background: #fff; padding: 7px 10px; margin-right: 12px; font: inherit; font-weight: 550; cursor: pointer; }
.stack textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.inline-form { padding: 18px 22px; gap: 16px; background: white; }
.inline-form > div { min-width: 0; }
.inline-form label { font-size: 10px; color: #718097; font-weight: 550; margin-bottom: 5px; }
.inline-form select { min-width: 160px; }
.inline-form .button { min-height: 41px; }
.notice { background: #edf5fa; border: 1px solid #dce8f2; color: #4f6980; padding: 14px 17px; border-radius: 10px; font-size: 11px; line-height: 1.7; box-shadow: none; }
.notice.error { background: #fff2f3; border-color: #f2d7dd; color: #a23950; }
.errorlist { color: #a23950; background: #fff3f4; border-color: #eed6db; font-size: 11px; padding: 8px 12px 8px 27px; }
.f22-demo, .f29-demo { color: #92713a; background: #fff8e9; border-radius: 9px; padding: 10px 14px; margin: 0 0 20px; font-size: 10px; font-weight: 450; line-height: 1.65; }
.f29-panel .f29-demo { margin: 0 22px 18px; }
.dashboard-filters { gap: 13px 16px; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 18px 22px; }
.dashboard-filters label { color: #7a879b; font-size: 10px; font-weight: 500; margin-bottom: 6px; }
.dashboard-filters input, .dashboard-filters select { min-height: 37px; font-size: 11px; padding: 8px 10px; border-color: #dde5ed; border-radius: 7px; }
.dashboard-filters select { padding-right: 24px; }
.dashboard-filters .actions { grid-column: auto; gap: 12px; }
.dashboard-filter-help { font-size: 10px; margin: 0; color: #8390a4; }
.filter-accordion > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 20px; font-size: 12px; list-style: none; color: #52647b; font-weight: 550; }
.filter-accordion > summary::-webkit-details-marker { display: none; }
.filter-accordion > summary > span, .filter-accordion > summary small { display: inline-flex; align-items: center; gap: 9px; }
.filter-accordion > summary .ui-icon { width: 16px; height: 16px; }
.filter-accordion > summary small { font-size: 10px; color: #697b92; font-weight: 400; }
.filter-accordion > summary small .ui-icon { width: 13px; height: 13px; }
.filter-accordion[open] > summary { margin-bottom: 0; border-bottom: 1px solid var(--line); }
.filter-accordion[open] > summary small .ui-icon { transform: rotate(180deg); }
@media(max-width:540px) { .filter-accordion > summary { padding: 14px 17px; font-size: 11px; }.filter-accordion > summary small { font-size: 9px; max-width: 140px; } }
.dashboard-cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; margin-bottom: 25px; }
.dashboard-card { padding: 21px 23px; border: 1px solid var(--line); border-radius: 15px; gap: 0; min-height: 177px; box-shadow: var(--shadow); }
.dashboard-card:hover { transform: none; border-color: #bfcfda; box-shadow: 0 8px 25px #172e4610; text-decoration: none; }
.dashboard-card.has-observations { border-top: 1px solid var(--line); }
.dashboard-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-card-top > span { color: #52617a; font-size: 12px; font-weight: 550; }
.dashboard-card-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #eef3fb; color: #6a83ab; }
.dashboard-card:nth-child(2) .dashboard-card-icon { color: #8f76b9; background: #f3effb; }
.dashboard-card:nth-child(3) .dashboard-card-icon { color: #4d8b80; background: #edf7f2; }
.dashboard-card-icon .ui-icon { width: 17px; height: 17px; }
.dashboard-card-alerts { display: grid; justify-items: start; margin-top: 8px; color: #23364e; }
.dashboard-card-alerts strong { font-size: 37px; font-weight: 680; letter-spacing: -1.6px; line-height: 1.15; }
.dashboard-card-alerts b { font-size: 12px; font-weight: 600; }
.has-observations .dashboard-card-alerts { color: #9f2840; }
.dashboard-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border-top: 1px solid var(--line); padding-top: 11px; margin-top: 12px; }
.dashboard-card-meta small { font-size: 11px; color: #4c5c73; }
.dashboard-card-meta .pill { font-size: 11px; }
.dashboard-work-link { margin: 0; }
.source-attention { display: flex; gap: 12px; padding: 17px 20px; border-color: #ecdcc6; background: #fffbf5; box-shadow: none; }
.source-attention > .ui-icon { color: #b68741; width: 18px; height: 18px; margin-top: 2px; }
.source-attention h2 { color: #896b3e; font-size: 11px; }
.source-attention p { font-size: 10px; margin-bottom: 5px; color: #8c7f6d; }
.source-attention p:last-child { margin-bottom: 0; }
.source-attention a { color: #8f713c; }
.dashboard-matrix th[scope=row] { font-size: 11px; }
.dashboard-matrix .dj-state { min-width: 90px; border-radius: 8px; }
.dashboard-matrix .dj-state strong { font-size: 10px; }
.dashboard-matrix .dj-state small { font-size: 9px; }
.features-table { min-width: 720px; }
.features-table th, .features-table td { padding: 15px 14px; font-size: 11px; }
.features-table thead th { font-size: 9px; }
.features-table th:first-child, .features-table td:first-child { padding-left: 22px; }
.features-table th:last-child, .features-table td:last-child { padding-right: 22px; }
.features-table th small, .features-table td small { font-size: 10px; }
.features-table a { font-size: 10px; }
.person-workload { padding: 20px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid #edf0f5; }
.person-workload-name { display: flex; gap: 12px; align-items: center; flex: 1 1 185px; }
.person-workload-name strong { display: block; color: #34445e; font-size: 12px; font-weight: 600; }
.person-workload-name small { display: block; font-size: 10px; margin-top: 3px; }
.workload-counts { display: flex; gap: 20px; flex: 3 1 360px; flex-wrap: wrap; }
.workload-counts > div { flex: 1; min-width: 65px; }
.workload-counts dt { font-size: 9px; font-weight: 500; color: #8792a3; line-height: 1.5; max-width: 95px; }
.workload-counts dd { font-size: 17px; color: #42516a; font-weight: 600; margin: 6px 0 0; }
.workload-counts .attention-count { color: #b14e63; }
.waiting-label { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #7f72ae; margin-top: 6px; }
.waiting-label .ui-icon { width: 12px; height: 12px; }
.coverage-times { gap: 16px; margin: 18px 0; }
.coverage-times > div { background: #f8fafd; border: 1px solid #e9edf4; border-radius: 10px; padding: 14px; font-size: 11px; }
.coverage-times small { font-size: 10px; color: #8190a5; }
.change-columns > div { background: #f9fbfd; border-color: #e7ecf3; border-radius: 10px; padding: 16px; }
.change-columns pre { font: 11px/1.8 "Inter","Segoe UI",sans-serif; color: #57677e; }
.change-columns > div:last-child { background: #f0f8f5; border-color: #d9eae2; }
details > summary { font-size: 11px; color: #63758f; cursor: pointer; padding-block: 7px; }
details[open] > summary { margin-bottom: 12px; }
.coverage-pending { scrollbar-width: thin; }
.f22-year-grid { gap: 12px; padding: 20px 22px; }
.f22-year { padding: 17px 13px; border-radius: 12px; min-height: 148px; border-color: #e1e8ef; background: #f7f9fc; transition: box-shadow .15s; }
.f22-year:hover { transform: none; box-shadow: 0 4px 15px #1836500d; }
.f22-year.green { background: #f1f9f4; border-color: #d0e8d9; }
.f22-year.red { background: #fff3f5; border-color: #edced7; }
.f22-year.amber { background: #fff9ee; border-color: #ecdfc5; }
.f22-year-top { font-size: 11px; letter-spacing: 0; }
.f22-year strong { font-size: 11px; }
.f22-year small { font-size: 9px; color: #7b889a; }
.f22-status { border-left-width: 3px; }
.f22-status.red { border-left-color: #ce6b82; }
.f22-literal { font-size: 12px; line-height: 1.85; color: #56667d; }
.f22-observation { border-left-width: 3px; background: #fff8f9; border-left-color: #e1a4b2; border-radius: 8px; padding: 18px 20px; margin: 17px 0; }
.f22-observation h3 { font-size: 13px; }
.f22-file { background: #fbfcfe; border-color: #e6ebf3; border-radius: 10px; padding: 16px; }
.f22-file small { font-size: 10px; }
.f29-grid { min-width: 720px; }
.f29-grid thead th { background: #f0f4f9; color: #71809a; font-weight: 550; border-color: #e6ebf3; padding: 13px 4px; font-size: 11px; }
.f29-grid tbody th, .f29-grid tbody tr:nth-child(even) th { font-size: 11px; font-weight: 550; color: #687b94; background: #f8fafd; border-color: #e9eef5; }
.f29-grid tbody tr:nth-child(even) td { background: #fbfcfe; }
.f29-grid td.f29-cell { border-color: #edf0f5; }
.f29-cell a { min-height: 59px; gap: 5px; }
.f29-cell a:hover { background: #edf5f3; }
.f29-dot { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.f29-dot.green { background: #e3f4e9; color: #268354; border: 1px solid #cbe7d6; }
.f29-dot.red { background: #fce8ed; color: #bf465f; border: 1px solid #f1c9d2; }
.f29-dot.gray { background: #edf1f6; color: #9ba8b9; border: 1px solid #e2e7ee; }
.f29-cell small { font-size: 9px; color: #91a0b3; }
.f29-legend { padding: 0 22px 20px; font-size: 10px; gap: 14px; }
.f29-legend .f29-dot { width: 18px; height: 18px; font-size: 11px; border-radius: 5px; }
.f29-observation { border-radius: 8px; background: #fff5f6; border-left-color: #d89aad; font-size: 12px; color: #6d5360; padding: 18px 20px; }
.dj-state { border-radius: 8px; font-size: 11px; }
.dj-state.red { background: #fff0f3; border-color: #efced8; color: #a9405a; }
.dj-state.green { background: #eef8f2; border-color: #d2e9db; color: #35704e; }
.dj-state.gray { background: #f3f5f9; border-color: #e4e9f1; color: #8591a5; }
.dj-contacts { background: #fafbfd; border-top-color: #edf0f5; gap: 20px; }
.dj-contacts small { font-size: 10px; }
.followup-facts > div { background: #f7f9fc; border: 1px solid #e7ecf3; border-radius: 10px; padding: 14px; }
.followup-facts strong { color: #485a74; font-size: 12px; font-weight: 550; }
.followup-facts small { font-size: 10px; color: #8492a6; }
.followup-overdue { color: #b3455c !important; }
.followup-item { margin-top: 24px; border-color: #e8edf4; padding-top: 20px; }
.followup-item h3 { color: #63738c; font-size: 12px; }
.reply-list { border-color: #dcebe4; background: #f7fbf9; padding: 16px 18px; border-radius: 0 9px 9px 0; }
.timeline li { border-color: #e8edf4; padding: 15px 0; }
.facts dt { color: #7b899d; font-size: 11px; }
.facts dd { color: #455773; font-size: 11px; }
.pagination { border-color: #e8edf4; padding: 16px 22px; color: #8490a3; font-size: 11px; }
.footer { padding: 18px 0 5px; border-top: 1px solid #e5eaf2; font-size: 9px; color: #8b97aa; margin-top: 10px; }
@media (min-width: 1500px) {
  .main { padding: 36px 44px 20px; }
  .top { padding-inline: 44px; }
}
@media (max-width: 1250px) {
  .shell { grid-template-columns: 220px minmax(0,1fr); }
  .main { padding: 26px; }
  .top { padding-inline: 26px; gap: 18px; }
  .top-search { max-width: 270px; }
  .top-user strong { max-width: 120px; }
  .top-user small { display: none; }
  .top-actions { gap: 13px; }
  .top-actions .session-label { display: none; }
  .top-actions .text-button { width: 30px; justify-content: center; }
  .dashboard-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat { padding: 19px; }
  .stat > span { max-width: 77%; font-size: 10px; }
}
@media (max-width: 1060px) and (min-width: 961px) {
  .top-search { width: 225px; }
  .top-user { display: none; }
  .portal-name { font-size: 11px; }
  .summary-grid { gap: 10px; }
  .stat-icon { right: 14px; top: 16px; width: 27px; height: 27px; }
  .stat { padding: 18px 15px; }
  .hero p { max-width: 540px; }
}
@media (max-width: 960px) {
  .shell { display: block; }
  .rail { position: relative; height: auto; padding: 18px; width: 100%; }
  .rail .brand { margin: 0 0 15px; }
  .rail-nav { display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; }
  .rail-nav a { padding: 9px 13px; min-height: 42px; }
  .rail-nav a[aria-current]::before { display: none; }
  .rail-label, .rail-foot, .rail-security, .office-switch, .nav-section { display: none; }
  [data-navigation-ready] .rail { position: fixed; inset: 0 auto 0 0; height: 100dvh; width: 270px; transform: translateX(-100%); visibility: hidden; padding: 23px 17px; transition: transform .2s; box-shadow: 12px 0 60px #101a3240; }
  [data-navigation-ready] .rail .brand { margin: 5px 10px 30px; max-width: 180px; }
  [data-navigation-ready] .rail-nav { display: grid; }
  [data-navigation-ready] .rail-nav a { min-height: 46px; }
  [data-navigation-ready] .rail-label, [data-navigation-ready] .rail-foot, [data-navigation-ready] .rail-security, [data-navigation-ready] .office-switch, [data-navigation-ready] .nav-section { display: flex; }
  [data-navigation-ready] .rail-label, [data-navigation-ready] .nav-section { display: block; }
  [data-navigation-ready] .rail-foot { margin-top: 0; }
  [data-navigation-ready][data-navigation-open] .rail { transform: translateX(0); visibility: visible; }
  [data-navigation-open] { overflow: hidden; }
  [data-navigation-ready] .mobile-menu { display: inline-grid; }
  [data-navigation-ready] .rail-close { display: inline-grid; position: absolute; right: 17px; top: 26px; background: #ffffff08; color: #adc2df; border-color: #ffffff0b; width: 28px; height: 28px; }
  .navigation-backdrop:not([hidden]) { display: block; position: fixed; z-index: 30; inset: 0; background: #101c3266; border: 0; width: 100%; height: 100dvh; backdrop-filter: blur(3px); }
  .top { height: 68px; padding-inline: 22px; }
  .main { padding: 24px 22px; }
  .top-search { max-width: 270px; }
  .top-user { display: none; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat > span { max-width: 80%; font-size: 11px; }
}
@media (max-width: 700px) {
  .top { padding-inline: 17px; gap: 12px; height: 64px; }
  .top-heading { gap: 9px; }
  .portal-name { font-size: 10px; }
  .top-search { max-width: 230px; padding: 5px 8px; }
  .top-search input { font-size: 10px; }
  .top-actions { gap: 9px; }
  .top-actions > .icon-button { display: none; }
  .main { padding: 23px 17px 15px; }
  .hero { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
  .hero h1, h1 { font-size: 28px; letter-spacing: -.9px; }
  .hero .actions { width: 100%; gap: 8px; }
  .hero .actions .button { flex: 1; padding-inline: 10px; font-size: 10px; }
  .hero p { font-size: 11px; }
  .page-context { gap: 8px 15px; font-size: 10px; margin: -8px 0 22px; }
  .dashboard-cards { grid-template-columns: 1fr; gap: 11px; }
  .dashboard-card { min-height: 0; padding: 17px 19px; display: grid; grid-template-columns: 1fr auto; column-gap: 15px; }
  .dashboard-card-top { grid-column: 1; justify-content: flex-start; }
  .dashboard-card-top > span { font-size: 12px; }
  .dashboard-card-top .dashboard-card-icon { width: 29px; height: 29px; margin-left: 10px; margin-right: auto; }
  .dashboard-card-alerts { grid-column: 2; grid-row: 1; margin: 0; justify-items: end; text-align: right; }
  .dashboard-card-alerts strong { font-size: 29px; }
  .dashboard-card-alerts b { font-size: 11px; }
  .dashboard-card-meta { grid-column: 1 / -1; }
  .dashboard-filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 17px; gap: 13px; }
  .dashboard-filters > div:first-of-type { grid-column: 1 / -1; }
  .dashboard-filters .actions { grid-column: 1 / -1; }
  .dashboard-filters input, .dashboard-filters select { min-height: 40px; }
  .dashboard-filter-help { font-size: 9px; }
  .workspace-nav { padding: 4px; gap: 3px; }
  .workspace-nav a { font-size: 10px; padding: 8px 10px; }
  .padded { padding: 18px; }
  .panel-head { padding: 18px; }
  .panel-head h2 { font-size: 14px; }
  .panel-head p { font-size: 10px; }
  .panel-kicker { font-size: 9px; }
  .inline-form { padding: 17px; gap: 13px; }
  .inline-form > div, .inline-form > label { width: 100%; }
  .inline-form select, .inline-form input[type=search] { width: 100%; min-width: 0; }
  .inline-form input[type=checkbox] { width: auto; min-height: 0; }
  .inline-form .button { width: 100%; }
  .stat { min-height: 115px; padding: 18px; }
  .stat > span { max-width: 76%; font-size: 10px; }
  .stat-icon { width: 27px; height: 27px; right: 14px; top: 16px; }
  .stat-icon .ui-icon { width: 15px; height: 15px; }
  .stat > strong:not(.pill) { font-size: 29px; }
  .stat > small { font-size: 9px; }
  .person-workload { padding: 18px; gap: 15px; }
  .workload-counts { gap: 16px 10px; flex-basis: 100%; }
  .workload-counts > div { flex: 0 0 calc(25% - 8px); min-width: 55px; }
  .workload-counts dd { font-size: 16px; }
  .coverage-times { grid-template-columns: 1fr; gap: 10px; }
  .coverage-times > div { padding: 13px; }
  .features-table { min-width: 690px; }
  .f22-year-grid { grid-template-columns: repeat(6,133px); padding: 18px; gap: 10px; }
  .f29-grid { min-width: 690px; }
  .f29-cell a { min-height: 58px; }
  .f29-legend { font-size: 9px; gap: 11px; padding-inline: 18px; }
  .f22-file { padding: 14px; }
}
@media (max-width: 450px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; padding-block: 8px; gap: 6px 12px; }
  .top-search { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; }
  .top-heading { min-width: 0; }
  .portal-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions { flex: none; margin-left: auto; }
  .top-actions > .icon-button { display: inline-grid; }
  .summary-grid { gap: 10px; }
  .stat { padding: 17px 14px; }
  .stat > span { max-width: 70%; font-size: 9px; line-height: 1.6; }
  .stat > strong:not(.pill) { font-size: 28px; }
  .stat > small { max-width: 100%; font-size: 9px; }
  .stat-icon { right: 12px; width: 25px; height: 25px; }
  .source-attention { padding: 14px; gap: 9px; }
  .notice { font-size: 10px; padding: 12px 14px; }
  .footer { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.stat > span, .inline-form label, .dashboard-filters label { font-size: 12px; color: #617087; }
.stat > small, .panel-head p, .workload-counts dt, .person-workload-name small,
tbody td small, tbody th small, .features-table th small, .features-table td small,
.coverage-times small, .dashboard-filter-help { font-size: 11px; color: #617087; }
table, .features-table td, .features-table tbody th, tbody th[scope=row] { font-size: 12px; }
thead th, .features-table thead th { font-size: 10px; color: #617087; }
.top-search input::placeholder { color: #617087; }
.tabs a, .top-search input { font-size: 12px; }
.panel-kicker { color: #617087; font-size: 10px; }
@media (max-width: 700px) {
  .stat > span { font-size: 11px; max-width: 70%; }
  .stat > small, .workload-counts dt, .person-workload-name small { font-size: 10px; }
  .workspace-nav a { font-size: 11px; }
}
@media print {
  .rail, .top, .navigation-backdrop, .mobile-menu, .footer, .hero .actions, .top-search { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; width: 100%; }
  .panel { box-shadow: none; break-inside: avoid; }
  body { background: white; }
}
