:root {
  --ink: #18201c;
  --muted: #5d6862;
  --line: #d5dcd8;
  --line-strong: #b9c4be;
  --paper: #eef2f0;
  --panel: #ffffff;
  --surface-subtle: #f7f9f8;
  --cedar: #26563f;
  --moss: #397157;
  --gold: #b17a22;
  --header: #17231d;
  --danger: #8b302d;
  --focus: #d4a64e;
  --success-text: #28543a;
  --success-border: #769984;
  --success-surface: #edf5f0;
  --attention-text: #6b4e12;
  --attention-border: #c69a3d;
  --attention-surface: #fff7df;
  --info-text: #284e68;
  --info-border: #9fb7c8;
  --info-surface: #edf5fa;
  --danger-text: #762727;
  --danger-border: #d6a5a5;
  --danger-surface: #fff1f1;
  --shadow: 0 1px 2px rgb(20 32 25 / 6%), 0 8px 24px rgb(20 32 25 / 5%);
  --header-offset: 3.75rem;
}

/* Secure phone handoff */
.phone-handoff-trigger { display: inline-flex; margin: 0; }
.phone-upload-intro { margin: -0.2rem 0 1rem; padding: 0.65rem 0.75rem; border-left: 3px solid var(--cedar); background: #f4f7f5; }
.phone-handoff-layout { display: grid; grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.qr-frame { display: grid; place-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.qr-frame img { display: block; width: 100%; aspect-ratio: 1; }
.phone-handoff-copy h2 { margin-top: 0; }
.handoff-steps { padding-left: 1.25rem; line-height: 1.7; }
.copy-link-field { display: grid; gap: 0.35rem; margin-top: 1rem; font-weight: 700; }
.copy-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem; }
.copy-link-row input { min-width: 0; font-size: 0.78rem; }
.upload-waiting, .upload-received { margin-top: 1rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 5px; background: #f4f7f5; }
.upload-waiting { display: flex; gap: 0.55rem; align-items: center; }
.waiting-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #bd861d; box-shadow: 0 0 0 4px rgba(189,134,29,.14); }
.upload-received { border-color: #3f8061; background: #edf7f1; }
.upload-received p { margin: 0.25rem 0 0.7rem; }
.phone-destination, .selected-file { padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; background: #f4f7f5; }
.phone-upload-form input[type="file"] { width: 100%; min-height: 3.2rem; padding: 0.65rem; border: 1px dashed var(--cedar); background: #f4f7f5; }
.phone-send-button { width: 100%; min-height: 3rem; font-size: 1rem; }
.phone-upload-success { text-align: center; padding-block: 3rem; }
.success-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%; background: #276749; color: #fff; font-size: 2rem; }
.case-files, .attachment-section { margin-block: 1rem; padding: 0.8rem; border: 1px solid var(--line); border-radius: 5px; background: #f4f7f5; }
.case-files .attachment-form { margin-top: 0.7rem; }
.danger-button { border-color: #9b3b31; background: #7f2f28; color: #fff; }
.purge-confirm { border-color: #9b3b31; }

@media (max-width: 640px) {
  .phone-handoff-layout { grid-template-columns: 1fr; }
  .qr-frame { width: min(100%, 18rem); margin-inline: auto; }
  .copy-link-row { grid-template-columns: 1fr; }
  .phone-handoff-trigger, .phone-handoff-trigger .button { width: 100%; }
  .case-files .section-header, .attachment-section .section-header { align-items: stretch; }
}

* {
  box-sizing: border-box;
}

html { scroll-padding-top: calc(var(--header-offset) + 1rem); }
[id] { scroll-margin-top: calc(var(--header-offset) + 1rem); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  font-size: 14px;
}

a {
  color: var(--cedar);
}

.skip-link {
  position: fixed;
  top: 0.4rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  background: var(--header);
  color: #f7faf8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo { width: 2.15rem; height: 2.15rem; object-fit: contain; }
.brand > span:last-child { display: grid; }

.brand-title {
  font-weight: 700;
  font-size: 0.88rem;
}

.brand-subtitle,
.eyebrow,
.meta,
.privacy-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header .brand-subtitle {
  color: #b8c3bd;
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav a,
.site-nav button,
.nav-menu summary {
  color: #eef3f0;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.88rem;
}

.nav-link, .nav-menu summary { display: block; padding: 0.48rem 0.6rem; border-radius: 4px; }
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem; margin-left: 0.35rem; padding: 0 0.3rem; border-radius: 999px; background: #d4a64e; color: #202824; font-size: 0.68rem; font-weight: 800; }
.nav-attention-light { display: inline-block; width: 0.55rem; height: 0.55rem; margin-left: 0.4rem; border: 1px solid #e2bb67; border-radius: 50%; background: #d4a64e; box-shadow: 0 0 0 2px rgb(212 166 78 / 16%); vertical-align: 0.05rem; }
.nav-link:hover, .nav-menu summary:hover, .nav-menu[open] summary { background: #35413b; }
.sign-in-link { border: 1px solid #687a70; margin-left: 0.25rem; }
.nav-menu { position: relative; }
.nav-menu summary { cursor: pointer; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; margin: 0 0 0.2rem 0.45rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.nav-menu-panel { position: absolute; top: calc(100% + 0.35rem); left: 0; display: grid; width: max-content; min-width: 13rem; padding: 0.35rem; border: 1px solid #d8dedb; border-radius: 6px; background: #fff; box-shadow: 0 12px 32px rgb(20 30 24 / 18%); }
.nav-menu-panel a, .nav-menu-panel button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 0.55rem 0.65rem; border-radius: 4px; color: var(--ink); text-align: left; }
.nav-menu-panel a:hover, .nav-menu-panel button:hover { background: #edf2ef; }
.nav-menu-label { margin: 0.45rem 0.65rem 0.12rem; color: var(--muted); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.display-theme-toggle { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0 !important; }
.display-theme-toggle .display-theme-state { color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.display-theme-toggle.active .display-theme-state { color: var(--cedar); }
.nav-menu-right { right: 0; left: auto; min-width: 8rem; }

.page {
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto 2.5rem;
}

.hero {
  min-height: min(58vh, 38rem);
  display: grid;
  grid-template-columns: minmax(14rem, 25rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.hero-logo { width: 100%; max-height: 25rem; object-fit: contain; }
.hero-copy { max-width: 38rem; }

.hero h1,
.panel h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.panel h1 {
  font-size: 1.65rem;
  line-height: 1.2;
}

.hero p {
  max-width: 650px;
}

.location-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #cfd7d2; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgb(8 20 13 / 10%); color-scheme: light; }
.location-brand { display: grid; place-items: center; min-height: 11rem; padding: 1.25rem 2rem; background: #fff; }
.location-brand + .location-brand { border-left: 1px solid var(--line); }
.location-brand img { display: block; width: 100%; height: 8.5rem; object-fit: contain; }
.black-chasm img { max-width: 22rem; }
.california-cavern img { max-width: 11rem; }
.login-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.login-brand img { width: 6rem; height: 6rem; object-fit: contain; }
.login-brand h1, .login-brand p { margin: 0; }

.actions,
.section-header,
.choice-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.48rem 0.8rem;
  border: 1px solid var(--cedar);
  border-radius: 6px;
  background: var(--cedar);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button.secondary {
  background: transparent;
  color: var(--cedar);
}

.button.danger {
  border-color: #8a2f2f;
  background: #8a2f2f;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: var(--shadow);
}

.panel.narrow {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.resource-list {
  display: grid;
  gap: 0.65rem;
}

.resource-item,
.choice {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem;
  background: #fff;
}

.resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.resource-item > * { min-width: 0; }
.resource-row-main { min-width: 0; }
.resource-row-main h2, .resource-row-main h3 { overflow-wrap: anywhere; }
.record-summary { display: -webkit-box; overflow: hidden; color: #39443e; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.resource-item h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.resource-item p {
  margin: 0.15rem 0;
}

.resource-row-meta {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
  max-width: 24rem;
}

.document-control-meta { align-content: start; align-items: flex-end; width: min(100%, 22rem); }
.document-control-meta .button { margin-top: 0.15rem; }

.resource-row-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.resource-summary {
  margin-top: -0.5rem;
}

.choice {
  flex: 1 1 240px;
  color: inherit;
  text-decoration: none;
}

.stacked-form p {
  display: grid;
  gap: 0.35rem;
}

.stacked-form label { color: #343b37; font-size: 0.86rem; font-weight: 650; }
.stacked-form .helptext { color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.stacked-form ul.errorlist { margin: 0 0 0.25rem; padding: 0.5rem 0.65rem; border-left: 3px solid #a63d3d; background: #fff1f1; color: #762727; list-style: none; font-size: 0.84rem; }
.stacked-form ul:not(.errorlist) { margin: 0.25rem 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.82rem; }

input,
select,
textarea {
  width: 100%;
  min-height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: #fff;
}
input[type="file"] { max-width: 100%; overflow: hidden; }

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

textarea {
  resize: vertical;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(11rem, 0.8fr) minmax(11rem, 0.8fr) auto;
  gap: 0.5rem;
  align-items: end;
}

.acknowledgement-form {
  margin-top: 1rem;
}

.meta-list div {
  display: flex;
  gap: 0.75rem;
}
.meta-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.meta-list.compact {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0;
}

.meta-list dt {
  font-weight: 700;
}

.reply-code {
  padding: 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: #fff7e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: start;
}

.review-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.review-form {
  min-width: 0;
}

.action-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.section-header .action-bar { margin-top: 0; }
.password-visibility-control { display: flex !important; gap: 0.65rem; align-items: flex-start; padding: 0.7rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); cursor: pointer; }
.password-visibility-control input { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem; }
.password-visibility-control span { display: grid; gap: 0.12rem; }
.password-visibility-control small { color: var(--muted); font-weight: 400; }

.status-badge {
  display: inline-flex;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid #cfd6d2;
  border-radius: 4px;
  background: #f2f5f3;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 650;
}
.status-new { border-color: var(--info-border); background: var(--info-surface); color: var(--info-text); }
.status-in_review { border-color: var(--info-border); background: var(--info-surface); color: var(--info-text); }
.status-open { border-color: #b7c7bd; background: #eef5f0; color: #315b45; }
.status-progress { border-color: #d5bd82; background: #fff7df; color: #6b4e12; }
.status-waiting { border-color: #d7ac85; background: #fff2e8; color: #78431f; }
.status-pending_confirmation { border-color: #d5bd82; background: #fff7df; color: #6b4e12; }
.status-complete { border-color: #a7c2ae; background: #ebf5ee; color: #28543a; }
.status-closed { border-color: #c8ceca; background: #f1f2f1; color: #626a65; }
.status-active { border-color: #a7c2ae; background: #ebf5ee; color: #28543a; }
.status-leave { border-color: #d5bd82; background: #fff7df; color: #6b4e12; }
.status-seasonal_layoff { border-color: #b8c9d5; background: #eef6fa; color: #315d70; }
.status-resigned, .status-archived { border-color: #c8ceca; background: #f1f2f1; color: #626a65; }
.status-terminated { border-color: #d7a6a0; background: #fff0ee; color: #7c2f28; }
.status-submitted { border-color: #9fb7c8; background: #edf5fa; color: #284e68; }
.status-pending { border-color: #c69a3d; background: #fff7df; color: #6b4e12; }
.status-changes_requested { border-color: #c28b79; background: #fff1ec; color: #743b2c; }
.status-acknowledged { border-color: #a7c2ae; background: #ebf5ee; color: #28543a; }
.status-needs_follow_up { border-color: #d7ac85; background: #fff2e8; color: #78431f; }
.status-archived { border-color: #c8ceca; background: #f1f2f1; color: #626a65; }
.status-draft { border-color: #aeb8b2; background: #f2f4f3; color: #59645e; }
.status-needs_review, .status-pending { border-color: #d5bd82; background: #fff7df; color: #6b4e12; }
.status-published, .status-approved { border-color: #70a184; background: #edf7f1; color: #28563a; }
.status-started { border-color: #d5bd82; background: #fff7df; color: #6b4e12; }
.status-not_taken { border-color: #d7ac85; background: #fff2e8; color: #78431f; }

.kiosk-body { min-height: 100vh; background: #eef1ef; }
.kiosk-shell { width: min(100% - 2rem, 52rem); margin: 0 auto; padding: 2rem 0; }
.kiosk-header { display: flex; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.kiosk-header img { width: 9rem; height: 6rem; object-fit: contain; }
.kiosk-header h1 { margin: 0.15rem 0; font-size: 2rem; }
.kiosk-header p { margin: 0; }
.kiosk-form { padding: 1.5rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.kiosk-number { display: grid; gap: 0.45rem; font-weight: 700; }
.kiosk-number input { min-height: 3.15rem; font-size: 1.35rem; letter-spacing: 0; }
.kiosk-form fieldset { border: 0; padding: 0; margin: 1.25rem 0; }
.kiosk-form legend { font-weight: 700; margin-bottom: 0.6rem; }
.kiosk-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.kiosk-actions label { position: relative; }
.kiosk-actions input { position: absolute; opacity: 0; }
.kiosk-actions span { display: grid; place-items: center; min-height: 4.5rem; padding: 0.65rem; border: 2px solid var(--line); border-radius: 6px; text-align: center; font-weight: 700; }
.kiosk-actions input:checked + span { border-color: var(--accent); background: #edf5f1; color: #214f3a; }
.kiosk-reason label { display: grid; gap: 0.45rem; font-weight: 700; }
.kiosk-submit { width: 100%; min-height: 3.5rem; margin-top: 1rem; font-size: 1.05rem; }
.break-filters { align-items: end; }
@media (max-width: 640px) { .kiosk-actions { grid-template-columns: 1fr; } .kiosk-header { align-items: flex-start; } .kiosk-header img { width: 6rem; } }

.break-text {
  overflow-wrap: anywhere;
}

.doc-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem;
  border-block: 1px solid var(--line);
}

.document-workspace { min-width: 0; }
.document-pane { display: none; }
.document-pane.active { display: block; }

.document-viewer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.reader-bar > div {
  display: grid;
  gap: 0.1rem;
}

.reader-bar span {
  color: var(--muted);
  font-size: 0.78rem;
}

.compact-button {
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
}

.formatted-document-pane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  overflow: hidden;
}

.formatted-reader-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 24rem);
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.formatted-reader-tools > div { display: grid; gap: 0.1rem; }
.formatted-reader-tools span { color: var(--muted); font-size: 0.78rem; }
.document-reader-count { width: min(8.5in, calc(100% - 2rem)); margin: 0.65rem auto 0; }

.formatted-document {
  width: min(8.5in, calc(100% - 2rem));
  min-height: 60vh;
  max-height: calc(100vh - 15rem);
  margin: 0.65rem auto 1rem;
  padding: clamp(1.25rem, 4vw, 3.75rem);
  overflow-y: auto;
  border: 1px solid #d4d4d4;
  background: #fff;
  box-shadow: 0 3px 14px rgb(20 32 25 / 8%);
  color: #18201c;
  scrollbar-gutter: stable;
}

.formatted-document h2, .formatted-document h3, .formatted-document h4 { margin: 1.35em 0 0.5em; color: #18201c; letter-spacing: 0; }
.formatted-document h2:first-child, .formatted-document h3:first-child, .formatted-document h4:first-child { margin-top: 0; }
.formatted-document h2 { font-size: 1.55rem; }
.formatted-document h3 { font-size: 1.25rem; }
.formatted-document h4 { font-size: 1.05rem; }
.formatted-document p { margin: 0 0 0.9rem; line-height: 1.65; white-space: pre-wrap; }
.formatted-list-item { position: relative; margin: 0 0 0.55rem; padding-left: 1.2rem; line-height: 1.55; }
.formatted-list-item::before { position: absolute; left: 0.25rem; content: "\2022"; }
.formatted-table-wrap { margin: 1rem 0; overflow-x: auto; }
.formatted-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.formatted-table td { padding: 0.5rem 0.6rem; border: 1px solid #bfc8c3; vertical-align: top; }
.formatted-table tr:first-child td { background: #edf2ef; font-weight: 700; }

.attachment-reader-page { max-width: min(100%, 78rem); }
.attachment-formatted-reader { background: var(--paper); }
.attachment-formatted-document { max-height: none; min-height: min(60vh, 44rem); }
.attachment-download-fallback { max-width: 42rem; }
.pdf-reader { overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.pdf-reader .reader-bar { align-items: center; }
.pdf-reader-controls { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.pdf-zoom-label { min-width: 3.5rem; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; text-align: center; }
.pdf-reader-status { margin: 0; padding: 0.6rem 0.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }
.pdf-reader-pages { display: grid; justify-items: center; gap: 1rem; min-height: 26rem; padding: clamp(0.75rem, 2vw, 1.5rem); overflow: auto; background: #26342d; }
.pdf-reader-page { max-width: 100%; margin: 0; border: 1px solid #cbd2ce; background: #fff; box-shadow: 0 5px 18px rgb(0 0 0 / 24%); }
.pdf-reader-page canvas { display: block; max-width: 100%; height: auto !important; background: #fff; }
.pdf-reader [hidden] { display: none; }

.site-check-workspace { display: grid; gap: 1rem; }
.form-intro { max-width: 46rem; color: var(--muted); }
.workflow-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 1rem 0; padding: 0; list-style: none; }
.workflow-steps li { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.65rem; border-block: 1px solid var(--line); color: var(--muted); }
.workflow-steps li + li { border-left: 1px solid var(--line); }
.workflow-steps li.active { background: #edf5f1; color: var(--cedar); }
.workflow-steps span { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border: 1px solid currentColor; border-radius: 50%; font-size: 0.7rem; }
.site-check-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.site-check-summary > div { display: grid; gap: 0.1rem; padding: 0.7rem 0.8rem; border-right: 1px solid var(--line); }
.site-check-summary > div:last-child { border-right: 0; }
.site-check-summary strong { font-size: 1.3rem; }
.site-check-summary span { color: var(--muted); font-size: 0.75rem; }
.progress-track { height: 0.35rem; margin-top: -1rem; overflow: hidden; background: #dde4e0; }
.progress-track span { display: block; height: 100%; background: var(--moss); transition: width 180ms ease; }
.site-check-notes { display: grid; gap: 0.2rem; padding: 0.7rem 0.8rem; border-left: 3px solid var(--gold); background: #faf7ef; }
.site-check-notes p { margin: 0; }
.site-check-facts { margin-top: 0; }
.site-check-media { display: flex; gap: 0.65rem; align-items: flex-start; flex-wrap: wrap; min-height: 2rem; }
.site-check-thumbnail { position: relative; z-index: 1; display: grid; gap: 0.25rem; width: 7.5rem; color: inherit; text-decoration: none; }
.site-check-thumbnail img { width: 7.5rem; height: 5.25rem; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); object-fit: cover; transform-origin: left top; transition: transform 150ms ease, box-shadow 150ms ease; }
.site-check-thumbnail:is(:hover, :focus-visible) { z-index: 5; }
.site-check-thumbnail:is(:hover, :focus-visible) img { transform: scale(2.35); box-shadow: 0 8px 24px rgb(0 0 0 / 32%); }
.site-check-thumbnail span { overflow: hidden; color: var(--muted); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.site-check-thumbnail.compact-thumbnail { width: 6rem; }
.site-check-thumbnail.compact-thumbnail img { width: 6rem; height: 4.2rem; }
.site-check-file { display: grid; gap: 0.1rem; min-width: 12rem; padding: 0.55rem; border: 1px solid var(--line); color: inherit; text-decoration: none; }
.site-check-file span { color: var(--muted); font-size: 0.75rem; }
.check-reference-section { padding: 0.7rem; border: 1px solid var(--line); background: var(--panel); }
.check-reference-group { display: grid; gap: 0.45rem; }
.site-check-actions, .checklist-composer, .site-action-section { display: grid; gap: 0.65rem; }
.checklist-manage-list, .crew-checklist { display: grid; border-top: 1px solid var(--line); }
.checklist-manage-item, .crew-checklist-item { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) minmax(9rem, auto); gap: 0.7rem; padding: 0.8rem 0.45rem; border-bottom: 1px solid var(--line); }
.crew-checklist-item { grid-template-columns: 1.8rem minmax(0, 1fr); }
.checklist-manage-item.status-complete, .crew-checklist-item.submitted { background: rgb(177 122 34 / 5%); }
.checklist-manage-item.status-closed { background: rgb(57 113 87 / 6%); }
.checklist-manage-item.action-review-required, .crew-checklist-item.action-required { border-left: 4px solid var(--attention-border); background: var(--attention-surface); }
.checklist-state, .crew-check-marker { display: grid; place-items: start center; padding-top: 0.1rem; color: var(--moss); font-size: 1.15rem; font-weight: 800; }
.checklist-body { min-width: 0; }
.checklist-body > p { margin: 0.3rem 0; }
.checklist-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.checklist-heading h3 { margin: 0; font-size: 0.98rem; }
.checklist-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin-top: 0.35rem; color: var(--muted); font-size: 0.75rem; }
.completion-note { padding: 0.45rem 0.55rem; background: #edf5f1; }
.completion-byline { color: var(--muted); font-size: 0.78rem; }
.completion-evidence { display: grid; gap: 0.5rem; margin-top: 0.6rem; padding: 0.65rem; border: 1px solid #7d9e8a; border-left: 4px solid #477f66; border-radius: 4px; background: #edf5f1; }
.completion-evidence-header { display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; }
.completion-evidence-header span { color: var(--muted); font-size: 0.75rem; }
.completion-evidence-item { display: grid; gap: 0.3rem; align-content: start; }
.completion-evidence-item > small { max-width: 12rem; color: var(--muted); font-size: 0.68rem; }
.checklist-review-actions { align-self: center; min-width: 10rem; }
.action-review-panel { min-width: 15rem; padding: 0.6rem; border: 1px solid var(--attention-border); border-radius: 5px; background: var(--attention-surface); }
.action-review-panel label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.compact-form { gap: 0.4rem; }
.compact-form textarea { min-height: 4rem; }
.activity-log { margin-top: 0.45rem; font-size: 0.75rem; }
.activity-log summary, .completion-panel summary { color: var(--cedar); cursor: pointer; font-weight: 700; }
.activity-log p { margin: 0.4rem 0; padding-left: 0.6rem; border-left: 2px solid var(--line); }
.completion-panel { margin-top: 0.55rem; }
.completion-panel form { margin-top: 0.6rem; padding: 0.65rem; border: 1px solid var(--line); background: var(--paper); }
.discussion-panel { margin-top: 0.55rem; padding: 0.45rem 0.55rem; border: 1px solid var(--line); background: var(--panel); }
.discussion-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; color: var(--cedar); cursor: pointer; font-weight: 750; }
.discussion-summary-state { display: inline-flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.discussion-count { color: var(--muted); font-size: 0.75rem; font-weight: 650; }
.discussion-unread-badge { padding: 0.18rem 0.42rem; border: 1px solid #c98a17; border-radius: 999px; background: #fff2cf; color: #694400; font-size: 0.72rem; line-height: 1.2; }
.discussion-panel.has-unread-discussion { border-color: #c98a17; background: #fffaf0; box-shadow: inset 3px 0 0 #c98a17; }
.discussion-thread { display: grid; gap: 0.4rem; margin: 0.55rem 0; }
.discussion-thread article { padding: 0.45rem 0.55rem; border-left: 2px solid var(--gold); background: var(--paper); }
.discussion-thread article.unread-comment { border-left-width: 4px; border-color: #c98a17; background: #fff7df; }
.discussion-thread article.private-message { border-left-color: #6e8793; background: #edf3f5; }
.discussion-thread article.private-message.unread-comment { border-left-color: #376678; background: #e3eef1; }
.new-comment-label { display: inline-block; margin-left: 0.4rem; color: #7a4d00; font-size: 0.68rem; text-transform: uppercase; }
.message.unread-comment { border-left: 4px solid #c98a17; background: #fff7df; }
.follow-up-callout { border-left-color: #c98a17; }
.conversation-inbox { border-color: var(--attention-border); background: var(--attention-surface); }
.conversation-update-list { display: grid; border-top: 1px solid var(--attention-border); }
.conversation-update-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.65rem; align-items: center; padding: 0.7rem 0.45rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.conversation-update-row:hover { background: rgb(201 138 23 / 8%); }
.conversation-update-marker { width: 0.52rem; height: 0.52rem; border-radius: 50%; background: #c98a17; box-shadow: 0 0 0 3px rgb(201 138 23 / 14%); }
.conversation-update-copy { display: grid; min-width: 0; gap: 0.18rem; }
.conversation-update-copy > span:last-child { overflow: hidden; color: var(--text); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-update-heading { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.conversation-update-copy small, .conversation-update-meta small { color: var(--muted); }
.conversation-update-meta { display: grid; min-width: 9rem; gap: 0.15rem; text-align: right; font-size: 0.76rem; }
.dashboard-list-note { margin: 0.6rem 0 0; }
.discussion-thread p { margin: 0; }
.discussion-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem; align-items: end; }
.discussion-form label { min-width: 0; }
.discussion-form textarea { min-height: 3.2rem; }
.private-conversation-composer { margin-top: 0.55rem; border: 1px solid #6e8793; background: #eaf1f3; }
.private-conversation-composer > summary { padding: 0.45rem 0.55rem; color: #275465; cursor: pointer; font-weight: 750; }
.private-conversation-composer[open] > summary { border-bottom: 1px solid #b5c7cd; }
.private-conversation-form { display: grid; gap: 0.55rem; padding: 0.6rem; }
.private-conversation-form .meta { margin: 0; color: #45616b; }
.private-recipient-list { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; margin: 0; padding: 0; border: 0; }
.private-recipient-list legend { width: 100%; margin-bottom: 0.15rem; color: #275465; font-size: 0.78rem; font-weight: 750; }
.private-recipient-list label { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.4rem; border: 1px solid #b5c7cd; background: #f8fbfc; color: #1d3f4b; }
.private-conversation-form textarea { min-height: 4.5rem; }
.count-badge { min-width: 1.5rem; padding: 0.12rem 0.35rem; border-radius: 999px; background: var(--header); color: #fff; text-align: center; font-size: 0.72rem; font-weight: 750; }
.checklist-composer { padding-top: 0.65rem; border-top: 1px solid var(--line-strong); }
.checklist-composer > summary,
.office-schedule-agenda > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; cursor: pointer; list-style: none; }
.checklist-composer > summary::-webkit-details-marker,
.office-schedule-agenda > summary::-webkit-details-marker { display: none; }
.checklist-composer > summary > span,
.office-schedule-agenda > summary > span { display: grid; gap: 0.12rem; }
.checklist-composer > summary .eyebrow,
.office-schedule-agenda > summary .eyebrow { margin: 0; }
.checklist-composer > summary strong,
.office-schedule-agenda > summary strong { color: var(--cedar); font-size: 1rem; }
.checklist-composer > summary small,
.office-schedule-agenda > summary small { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.checklist-composer > summary::after,
.office-schedule-agenda > summary::after { content: "+"; color: var(--cedar); font-size: 1.05rem; font-weight: 800; }
.checklist-composer[open] > summary,
.office-schedule-agenda[open] > summary { margin-bottom: 0.65rem; }
.checklist-composer[open] > summary::after,
.office-schedule-agenda[open] > summary::after { content: "-"; }
.checklist-source-file { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(15rem, 1fr); gap: 0.65rem; padding: 0.7rem; border: 1px solid var(--line); background: var(--panel); }
.checklist-source-file label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.checklist-save-bar { position: sticky; bottom: 0.6rem; z-index: 4; display: flex; gap: 0.65rem; align-items: center; padding: 0.65rem; border: 1px solid var(--line-strong); background: var(--paper); box-shadow: 0 5px 18px rgb(0 0 0 / 14%); }
.checklist-save-bar .meta { flex: 1; }
.checklist-manage-item:target, .crew-checklist-item:target { outline: 2px solid var(--gold); outline-offset: 3px; }
.checklist-entry-list { display: grid; gap: 0.5rem; }
.checklist-entry-row { display: grid; grid-template-columns: minmax(14rem, 2fr) minmax(7rem, 0.65fr) minmax(9rem, 0.8fr) minmax(10rem, 1fr) minmax(10rem, 1fr); gap: 0.45rem 0.6rem; align-items: end; padding: 0.65rem; border: 1px solid var(--line); background: var(--paper); }
.checklist-entry-row label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.checklist-entry-details { grid-column: 1 / -2; }
.checklist-entry-details textarea { min-height: 3.4rem; }
.remove-checklist-entry { align-self: center; grid-column: -2 / -1; grid-row: 2; display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.specific-person-field[hidden] { display: none; }

@media (max-width: 980px) {
  .checklist-entry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist-entry-title, .checklist-entry-details { grid-column: 1 / -1; }
  .remove-checklist-entry { grid-column: auto; grid-row: auto; }
}

@media (max-width: 700px) {
  .conversation-update-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .conversation-update-meta { grid-column: 2; min-width: 0; text-align: left; }
  .conversation-update-copy > span:last-child { white-space: normal; }
}

.document-viewer iframe {
  display: block;
  width: 100%;
  min-height: calc(100vh - 15rem);
  border: 0;
  background: #fff;
}

.document-text-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.85rem;
  background: #fff;
}

.section-header.tight {
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-header.tight h2 {
  margin: 0;
  font-size: 1.1rem;
}

.document-text {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  max-height: 78vh;
  margin: 0;
  padding: 0.75rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf9;
  color: var(--ink);
  font: 0.92rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.document-modes { display: inline-flex; width: fit-content; border: 1px solid var(--line); border-radius: 5px; padding: 2px; background: #edf1ef; }
.mode-button { min-height: 2rem; padding: 0.35rem 0.7rem; border: 0; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.85rem; }
.mode-button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(20 30 24 / 12%); }

.library-search { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(10rem, 0.55fr) minmax(10rem, 0.55fr) auto auto; gap: 0.55rem; align-items: end; padding: 0.75rem; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; }
.library-search.management-search { grid-template-columns: minmax(14rem, 1fr) repeat(3, minmax(9rem, 0.5fr)) auto auto; }
.library-search label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.result-count { color: var(--muted); font-size: 0.85rem; }
.library-groups { display: grid; gap: 1.25rem; }
.library-group-heading { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.4rem; border-bottom: 2px solid #bec9c3; }
.library-group-heading h2 { margin: 0; font-size: 1rem; }
.library-group-heading span { color: var(--muted); font-size: 0.78rem; }
.document-rows { display: grid; }
.document-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(9rem, auto) 1rem; align-items: center; gap: 0.8rem; padding: 0.65rem 0.35rem; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.document-row:hover { background: #f5f8f6; }
.document-main { display: grid; min-width: 0; }
.document-main strong { font-size: 0.92rem; overflow-wrap: anywhere; }
.document-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-locations { display: flex; justify-content: flex-end; gap: 0.3rem; flex-wrap: wrap; }
.document-locations span { padding: 0.12rem 0.35rem; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 0.72rem; }
.document-locations .management-label { border-color: #d5bd82; background: #fff7df; color: #6b4e12; }
.document-locations .permanent-label { border-color: #91ac9e; background: #eaf3ee; color: #24523b; font-weight: 700; }
.permanent-reference-note { padding: 0.65rem 0.75rem; border-left: 3px solid #477f66; background: #eef5f1; color: #274c3a; font-size: 0.84rem; }
.row-arrow { color: var(--muted); font-size: 1.2rem; }

.report-search { margin-bottom: 1rem; }
.report-search label:first-of-type { flex-grow: 1.5; }
.page-header { align-items: flex-start; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.page-header-copy { display: grid; gap: 0.18rem; min-width: 0; }
.page-header-copy h1, .page-header-copy p { margin: 0; }
.page-header-copy > .meta { max-width: 72ch; }
.page-header-actions { justify-content: flex-end; margin-top: 0; }
.report-entry-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; margin-top: 1rem; }
.report-entry-actions .choice { display: grid; align-content: start; gap: 0.3rem; min-height: 8rem; padding: 0.85rem; }
.report-entry-actions .choice h2, .report-entry-actions .choice p { margin: 0; }
.report-entry-actions .choice h2 { color: var(--cedar); font-size: 1rem; }
.report-entry-actions .choice-primary { border-color: #9fb8aa; background: var(--success-surface); }
.report-entry-secondary { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.report-entry-secondary > span { color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.report-entry-secondary a { font-weight: 650; }
.report-record-location { color: var(--muted); }
.report-case-status { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.report-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); margin: 0.75rem 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-subtle); }
.report-facts div { display: grid; align-content: start; gap: 0.12rem; min-width: 0; padding: 0.55rem 0.65rem; border-right: 1px solid var(--line); }
.report-facts div:last-child { border-right: 0; }
.report-facts dt { color: var(--muted); font-size: 0.68rem; font-weight: 750; text-transform: uppercase; }
.report-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 0.82rem; font-weight: 650; }
.report-description { margin: 0.8rem 0; padding: 0.7rem 0.75rem; border-left: 3px solid var(--line-strong); background: var(--surface-subtle); }
.report-description p { margin: 0; }
.report-detail-section { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.report-detail-section > h2 { margin-top: 0; }
.report-review-layout { grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr); gap: 1rem; }
.report-review-layout .review-summary { background: var(--surface-subtle); }
.report-record-meta > span { overflow-wrap: anywhere; }
.filter-context-note { margin: -0.35rem 0 0.8rem; color: var(--muted); font-size: 0.75rem; }
.queue-location-groups { gap: 1.15rem; }
.queue-location-groups .resource-row-meta { align-items: flex-end; }
.site-check-filters label:first-of-type { flex-grow: 1.5; }
.site-check-state-legend { display: flex; gap: 0.8rem 1.1rem; flex-wrap: wrap; align-items: center; margin: 0.7rem 0 0.95rem; color: var(--muted); font-size: 0.74rem; }
.site-check-state-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.site-check-state-swatch { width: 0.72rem; height: 0.72rem; border: 1px solid var(--line-strong); border-radius: 2px; }
.site-check-state-swatch.state-needs-completion { border-color: #c69a3d; background: #fff7df; box-shadow: inset 2px 0 #b17a22; }
.site-check-state-swatch.state-awaiting-review { border-color: #d7ac85; background: #fff2e8; box-shadow: inset 2px 0 #b46c36; }
.site-check-state-swatch.state-complete { border-color: #a7c2ae; background: #ebf5ee; box-shadow: inset 2px 0 #477f66; }
.site-check-location-groups { display: grid; gap: 1.15rem; }
.site-check-location-group { display: grid; gap: 0.4rem; }
.site-check-location-group > .section-header { padding-bottom: 0.35rem; border-bottom: 2px solid var(--line-strong); }
.site-check-location-group > .section-header h2 { margin: 0; font-size: 1rem; }
.site-check-record { grid-template-columns: minmax(0, 1fr) minmax(12rem, auto); border-radius: 3px; }
.site-check-record h3 { margin: 0.15rem 0; font-size: 1rem; }
.site-check-record-meta { display: flex; gap: 0.35rem 0.8rem; flex-wrap: wrap; color: var(--muted); font-size: 0.76rem; }
.site-check-record-meta span + span { padding-left: 0.8rem; border-left: 1px solid var(--line); }
.site-check-record.review-needed { border-color: #c69a3d; background: #fffaf0; box-shadow: inset 3px 0 #b17a22; }
.site-check-record.needs-completion { border-color: #c69a3d; background: #fff7df; box-shadow: inset 3px 0 #b17a22; }
.site-check-record.check-complete { border-color: #a7c2ae; background: #f0f7f2; box-shadow: inset 3px 0 #477f66; }
.site-check-record.check-archived { border-color: var(--line); background: var(--surface-subtle); opacity: 0.82; }
.site-check-record-state { display: flex; align-items: flex-end; gap: 0.3rem; flex-direction: column; }
.site-check-record-state > span:not(.status-badge) { color: var(--muted); font-size: 0.76rem; }
.site-check-record-state .review-count { color: #765719; font-weight: 700; }
.site-check-record-state .open-count { color: #66470b; font-weight: 700; }
.site-check-record-state .clear-count { color: #28543a; }
.site-check-record-state .button { margin-top: 0.15rem; }
.site-action-counts { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: flex-end; }
.site-action-counts span { padding: 0.38rem 0.5rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-subtle); color: var(--muted); font-size: 0.75rem; }
.site-action-counts strong { color: var(--ink); }
.assignment-filters label { flex-grow: 1; }
.assignment-management-item { grid-template-columns: minmax(0, 1fr) minmax(11rem, auto); }
.assignment-management-item.review-needed { border-color: var(--attention-border); background: var(--attention-surface); box-shadow: inset 3px 0 var(--gold); }
.assignment-management-item .record-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.assignment-management-item .assignment-record-meta { margin-top: 0.45rem; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.assignment-management-item .assignment-progress .review-count { order: -1; }
.assignment-record-meta { display: flex; gap: 0.35rem 0.8rem; flex-wrap: wrap; color: var(--muted); font-size: 0.76rem; }
.assignment-record-meta span + span { padding-left: 0.8rem; border-left: 1px solid var(--line); }
.assignment-progress { display: flex; align-items: flex-end; gap: 0.28rem; flex-direction: column; }
.assignment-progress > span:not(.status-badge, .overdue-badge) { color: var(--muted); font-size: 0.76rem; }
.assignment-progress .review-count { color: #765719; font-weight: 700; }
.assignment-progress .button { margin-top: 0.15rem; }
.assignment-detail-summary { display: grid; gap: 0.7rem; }
.assignment-responses { margin-top: 1rem; }
.assignment-response-needed td { background: var(--attention-surface); }
.assignment-response-needed td:first-child { box-shadow: inset 3px 0 var(--gold); }
.assignment-recipient-item.action-required { border-color: var(--attention-border); background: var(--attention-surface); box-shadow: inset 3px 0 var(--gold); }
.assignment-submit-form label { min-width: 0; }
.assignment-section-header { margin-top: 1rem; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line-strong); }
.assignment-section-header h2 { margin: 0; }
.transmission-filters label:first-of-type, .cash-review-filters label:first-of-type { flex-grow: 1.5; }
.transmission-record, .cash-record { grid-template-columns: minmax(0, 1fr) minmax(10rem, auto); }
.transmission-state, .cash-review-actions { display: flex; align-items: flex-end; gap: 0.35rem; flex-direction: column; }
.cash-record.review-needed { border-color: #c69a3d; background: #fffaf0; box-shadow: inset 3px 0 #b17a22; }
.document-management-filters label:first-of-type { flex-grow: 1.5; }
.document-management-groups { display: grid; gap: 1.15rem; }
.document-management-group { display: grid; gap: 0.4rem; }
.document-management-group > .section-header { padding-bottom: 0.35rem; border-bottom: 2px solid var(--line-strong); }
.document-management-group > .section-header h2 { margin: 0; font-size: 1rem; }
.document-file-summary h2 { margin-top: 0; font-size: 1rem; }
.document-file-summary .button { width: 100%; margin-top: 0.75rem; text-align: center; }
.document-management-form { display: grid; gap: 0.8rem; }
.document-management-form fieldset { min-width: 0; margin: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 5px; background: #fbfcfb; }
.document-management-form legend { padding: 0 0.35rem; color: #28543a; font-size: 0.82rem; font-weight: 780; }
.management-field { display: grid; min-width: 0; gap: 0.28rem; margin-bottom: 0.65rem; }
.management-field:last-child { margin-bottom: 0; }
.management-field > label { color: #39443e; font-size: 0.78rem; font-weight: 700; }
.management-field .helptext { color: var(--muted); font-size: 0.74rem; }
.management-field .error-text { color: var(--danger); font-size: 0.76rem; font-weight: 700; }
.management-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.management-field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.management-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.management-choice-grid ul { max-height: 12rem; margin: 0; padding: 0.5rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; background: #fff; list-style: none; }
.management-choice-grid li label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; }
.document-review-actions { position: sticky; bottom: 0.5rem; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.65rem; border: 1px solid var(--line-strong); border-radius: 5px; background: rgb(255 255 255 / 96%); box-shadow: 0 -5px 18px rgb(12 25 17 / 10%); }
.document-review-actions > div { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.case-conversation { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.case-actions { margin-top: 1rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f8; }
.case-actions h2 { margin: 0 0 0.55rem; font-size: 1rem; }
.case-actions form { margin: 0; }
.case-actions .action-bar { margin-top: 0.55rem; }
.report-handoff > summary { display: grid; gap: 0.18rem; cursor: pointer; list-style: none; }
.report-handoff > summary::-webkit-details-marker { display: none; }
.report-handoff > summary::after { content: "+"; position: absolute; right: 0.8rem; top: 0.75rem; color: var(--cedar); font-size: 1.1rem; font-weight: 700; }
.report-handoff { position: relative; }
.report-handoff[open] > summary { padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.report-handoff[open] > summary::after { content: "-"; }
.report-handoff > summary .eyebrow { margin: 0; }
.report-handoff > summary strong { font-size: 1rem; }
.report-handoff > summary .meta { padding-right: 1.5rem; }
.case-action-content { padding-top: 0.7rem; }
.status-callout { margin: 0; padding-left: 0.6rem; border-left: 3px solid #b17a22; color: #5d471a; }
.status-callout.complete { border-color: #477f66; color: #28543a; }
.message-thread { display: grid; gap: 0.6rem; margin: 0.75rem 0 1rem; }
.message { max-width: 48rem; padding: 0.7rem 0.85rem; border-left: 3px solid var(--line); background: #fffdf9; }
.message.reviewer { border-left-color: var(--gold); }
.message p { margin: 0.2rem 0; }
.narrow-form { max-width: 48rem; }

/* Shared record anatomy: facts first, working material next, decisions and history last. */
.record-workspace > .page-header { margin-bottom: 0.8rem; }
.record-workspace-section,
.record-history,
.record-secondary-section,
.record-evidence {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.record-workspace .record-history { margin-top: 1.35rem; }
.record-history > .section-header,
.record-workspace-section > .section-header,
.record-evidence > .section-header { margin-bottom: 0.55rem; }
.record-history > .record-history-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}
.record-history > .record-history-summary::-webkit-details-marker { display: none; }
.record-history > .record-history-summary > span { display: grid; gap: 0.14rem; }
.record-history > .record-history-summary .eyebrow { margin: 0; }
.record-history > .record-history-summary strong { color: var(--cedar); font-size: 0.95rem; }
.record-history > .record-history-summary small { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.record-history > .record-history-summary::after {
  content: "+";
  order: 3;
  color: var(--cedar);
  font-size: 1.05rem;
  font-weight: 800;
}
.record-history[open] > .record-history-summary { margin-bottom: 0.6rem; }
.record-history[open] > .record-history-summary::after { content: "-"; }
.record-decision-panel {
  position: relative;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #b9cbbf;
  border-left: 4px solid var(--cedar);
  border-radius: 5px;
  background: #f4f8f5;
}
.record-decision-panel > .eyebrow { margin: 0 0 0.18rem; }
.record-decision-panel > h2 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.record-decision-panel .action-bar { margin-top: 0.7rem; }
.record-evidence { background: var(--surface-subtle); }
.record-evidence .attachment-form { margin-top: 0.65rem; }
.record-summary-section > .report-facts { margin-top: 0; }
.report-review-workspace .review-layout { align-items: start; }
.report-review-workspace .review-form { align-self: start; }
.resource-detail-workspace .resource-summary { max-width: 76ch; }
.resource-review-workspace .review-layout { align-items: start; }
.rdo-review-workspace .rdo-decision-panel { margin-top: 1rem; }
.flag-detail.record-workspace .flag-schedule-controls { margin-top: 0.85rem; }

@media (max-width: 700px) {
  .record-decision-panel { padding: 0.7rem; }
  .record-evidence { background: var(--surface-subtle); }
}

.dashboard-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.communication-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.55rem; margin-bottom: 1rem; }
.rdo-pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-bottom: 0.75rem; padding: 0.55rem; border: 1px solid #9fb8aa; border-radius: 5px; background: #f1f6f3; }
.rdo-pathways a { display: grid; gap: 0.18rem; min-width: 0; padding: 0.65rem 0.7rem; border: 1px solid #b8c9bf; border-radius: 4px; background: #fff; color: inherit; text-decoration: none; }
.rdo-pathways strong { color: #24523b; font-size: 0.88rem; }
.rdo-pathways span { color: var(--muted); font-size: 0.76rem; }
.communication-actions a { display: grid; gap: 0.2rem; min-width: 0; padding: 0.7rem; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f8; color: inherit; text-decoration: none; }
.communication-actions a:hover { border-color: #9aafa3; background: #eef4f0; }
.communication-actions strong { font-size: 0.88rem; }
.communication-actions span { color: var(--muted); font-size: 0.76rem; }
.dashboard-summary a { display: grid; padding: 0.75rem; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 4px; }
.dashboard-summary strong { font-size: 1.4rem; }
.dashboard-summary span { color: var(--muted); font-size: 0.85rem; }
.dashboard-heading { margin-bottom: 0.65rem; }
.dashboard-primary-actions { justify-content: flex-end; }
.dashboard-tool-shelf { margin: -0.35rem 0 0.8rem; border: 1px solid var(--line); border-radius: 4px; background: #f7f9f8; }
.dashboard-tool-shelf > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.52rem 0.7rem; color: var(--cedar); cursor: pointer; font-size: 0.8rem; font-weight: 750; }
.dashboard-tool-shelf > summary small { color: var(--muted); font-size: 0.7rem; font-weight: 500; }
.dashboard-tool-shelf[open] > summary { border-bottom: 1px solid var(--line); }
.dashboard-tool-shelf .communication-actions { margin: 0; padding: 0.6rem; }
.dashboard-tool-shelf .communication-actions a { min-height: 0; padding: 0.55rem 0.62rem; background: #fff; }
.dashboard-tool-shelf .communication-actions span { display: none; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dashboard-section { min-width: 0; border-top: 2px solid var(--line); padding-top: 0.6rem; }
.dashboard-section .section-header { align-items: center; }
.dashboard-section h2, .admin-queue h2 { margin: 0; font-size: 1.05rem; }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.work-row span { overflow-wrap: anywhere; }
.work-row small { color: var(--muted); text-align: right; }
.work-row > span { display: flex; gap: 0.45rem; align-items: baseline; min-width: 0; }
.work-row-state { flex: 0 0 auto; padding-left: 0.45rem; border-left: 1px solid var(--line); text-align: left !important; }
.site-action-row { grid-template-columns: minmax(15rem, 1fr) minmax(0, 1fr); align-items: start; }
.site-action-row > span { flex-wrap: wrap; }
.site-action-row > span > strong { min-width: 0; }
.site-action-row > small { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.site-check-row-metrics { justify-content: flex-end; align-items: center !important; }
.site-check-row-metrics small { display: flex; gap: 0.45rem; align-items: center; }
.site-check-row-metrics small span { padding-left: 0.45rem; border-left: 1px solid var(--line); }
.site-review-badge { padding: 0.3rem 0.5rem; border: 1px solid #c69a3d; border-radius: 3px; background: #fff0c4; color: #66470b; font-size: 0.78rem; white-space: nowrap; }
.site-check-review-needed { margin-block: 0.25rem; padding: 0.65rem 0.55rem; border: 1px solid #c69a3d; border-left: 4px solid #b17a22; border-radius: 3px; background: #fffaf0; }
.managed-assignment-progress { display: grid !important; gap: 0.2rem !important; justify-items: end; }
.managed-assignment-progress > strong { color: #765719; font-size: 0.76rem; }
.managed-assignment-row.assignment-review-needed { margin-block: 0.2rem; padding-inline: 0.55rem; border: 1px solid #c69a3d; border-left: 4px solid #b17a22; border-radius: 3px; background: #fff7df; }
.dashboard-report-row { padding-inline: 0.95rem 0.9rem; border-left: 4px solid var(--line-strong); }
.dashboard-report-row > .report-row-primary { display: grid; gap: 0.28rem; align-items: start; }
.dashboard-report-row .report-title-line { display: flex; gap: 0.45rem; align-items: center; min-width: 0; }
.dashboard-report-row .report-responsibility { padding: 0.18rem 0.38rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--muted); font-size: 0.68rem; font-weight: 700; white-space: nowrap; }
.dashboard-report-row .report-location-label { width: fit-content; padding-left: 0.85rem; color: var(--muted); font-size: 0.72rem; text-align: left; }
.dashboard-report-row .report-location-label::before { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin: 0 0.38rem 0.05rem -0.8rem; border-radius: 50%; background: #789585; }
.dashboard-report-row > .request-state-label { align-self: center; padding-left: 0.65rem; border-left: 1px solid var(--line); white-space: nowrap; }
.dashboard-report-row.report-action-required { margin-block: 0.2rem; padding-block: 0.65rem; border: 1px solid #c69a3d; border-left: 4px solid #b17a22; border-radius: 3px; background: #fff7df; }
.dashboard-report-row.report-action-required .report-responsibility { border-color: #c69a3d; background: #fff0c4; color: #66470b; }
.dashboard-report-row.report-action-required .request-state-label { color: #66470b; font-weight: 750; }
.dashboard-report-row.report-waiting-elsewhere { background: transparent; }
.dashboard-action-row { margin-block: 0.18rem; padding-inline: 0.55rem; border: 1px solid var(--attention-border); border-left: 4px solid var(--gold); border-radius: 3px; background: var(--attention-surface); }
.dashboard-action-row .work-row-state { color: var(--attention-text); font-weight: 700; }
.dashboard-attention-section { margin-bottom: 0.9rem; padding: 0.65rem; border: 1px solid var(--attention-border); border-radius: 5px; background: var(--attention-surface); }
.dashboard-attention-section .section-header { margin-bottom: 0.45rem; }
.site-action-row > small strong { color: var(--ink); }
.admin-queue { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.admin-queue.dashboard-priority-queues { margin: 0 0 0.9rem; padding: 0.65rem 0 0; }
.dashboard-priority-queues .section-header { margin-bottom: 0.45rem; }
.dashboard-priority-queues .queue-links { gap: 0.38rem; }
.dashboard-priority-queues .queue-links a { padding: 0.42rem 0.58rem; font-size: 0.76rem; }
.queue-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.queue-links a { padding: 0.5rem 0.7rem; border: 1px solid var(--line); border-radius: 6px; color: inherit; text-decoration: none; }
.dashboard-status { transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease; }
.dashboard-status.status-clear { border-color: var(--success-border); background: var(--success-surface); box-shadow: inset 3px 0 #477f66; }
.dashboard-status.status-attention { border-color: var(--attention-border); background: var(--attention-surface); box-shadow: inset 3px 0 var(--gold), 0 0 0 1px rgb(177 122 34 / 12%); }
.dashboard-status.status-clear strong { color: var(--success-text); }
.dashboard-status.status-attention strong { color: var(--attention-text); }
.dashboard-status:hover { filter: brightness(0.98); }
.request-state-new { box-shadow: inset 3px 0 #b17a22; }
.request-state-in_review, .request-state-waiting { box-shadow: inset 3px 0 #4f819f; }
.request-state-pending_confirmation { box-shadow: inset 3px 0 #b17a22; }
.request-state-closed { box-shadow: inset 3px 0 #477f66; }
.dashboard-report-row.request-state-new { border-left-color: #b17a22; box-shadow: none; }
.dashboard-report-row.request-state-in_review, .dashboard-report-row.request-state-waiting { border-left-color: #4f819f; box-shadow: none; }
.dashboard-report-row.request-state-pending_confirmation { border-left-color: #b17a22; box-shadow: none; }
.dashboard-report-row.request-state-closed { border-left-color: #477f66; box-shadow: none; }

.resource-item.request-state-new { background: #fffaf0; }
.resource-item.request-state-in_review, .resource-item.request-state-waiting { background: #f2f7fa; }
.resource-item.request-state-pending_confirmation { background: #fffaf0; }
.resource-item.request-state-closed { background: #f0f7f2; }
.request-state-new .request-state-label { color: #765719; font-weight: 700; }
.request-state-in_review .request-state-label, .request-state-waiting .request-state-label { color: #315d70; font-weight: 700; }
.request-state-pending_confirmation .request-state-label { color: #765719; font-weight: 700; }
.request-state-closed .request-state-label { color: #28543a; font-weight: 700; }
.report-location-groups { display: grid; gap: 1rem; }
.report-location-group { display: grid; gap: 0.35rem; }
.report-location-group > .section-header { padding-bottom: 0.35rem; border-bottom: 2px solid var(--line-strong); }
.report-location-group > .section-header h2 { margin: 0; font-size: 1rem; }
.report-location-group .resource-item { border-radius: 3px; }
.report-location-group .resource-row-main h3 { margin: 0.15rem 0; font-size: 1rem; }
.report-archive-tabs { margin-bottom: 0.8rem; }
.archive-result-summary { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; margin: -0.1rem 0 0.8rem; color: var(--muted); font-size: 0.78rem; }
.archive-pagination { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1rem; color: var(--muted); font-size: 0.8rem; }
.personal-report-record { grid-template-columns: minmax(0, 1fr) minmax(10rem, auto); }
.report-record-meta { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.76rem; }
.report-record-meta .report-responsibility { padding: 0.18rem 0.38rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); font-size: 0.68rem; font-weight: 700; }
.report-record-action { display: flex; align-items: flex-end; justify-content: center; gap: 0.3rem; flex-direction: column; text-align: right; }
.report-record-action > strong { color: #315d70; font-size: 0.78rem; }
.personal-report-record.report-list-action-required,
.review-report-record.report-list-action-required { border-color: #c69a3d; border-left: 4px solid #b17a22; background: #fff7df; }
.personal-report-record.report-list-action-required .report-responsibility { border-color: #c69a3d; background: #fff0c4; color: #66470b; }
.personal-report-record.report-list-action-required .report-record-action > strong { color: #66470b; }
.personal-report-record.report-list-waiting-elsewhere,
.review-report-record.report-list-waiting-elsewhere,
.review-report-record.report-list-observer { background: var(--panel); }
.empty-state { padding: 1.25rem; border: 1px dashed #cbd2ce; border-radius: 6px; background: #f8faf9; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 0.25rem 0 0; }
.empty-state.compact { padding: 0.7rem; }
.acknowledgement-status-list { display: grid; gap: 0.65rem; }
.acknowledgement-status-record { border: 1px solid var(--line); border-left: 4px solid #477f66; border-radius: 4px; background: var(--paper); }
.acknowledgement-status-record.needs-attention { border-left-color: #b17a22; }
.acknowledgement-status-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.8rem; }
.acknowledgement-status-summary h2 { margin: 0; font-size: 1rem; }
.acknowledgement-status-summary p { margin: 0.15rem 0 0; }
.acknowledgement-counts { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.acknowledgement-people { border-top: 1px solid var(--line); }
.acknowledgement-people summary { padding: 0.55rem 0.8rem; color: var(--cedar); cursor: pointer; font-size: 0.78rem; font-weight: 700; }
.acknowledgement-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0 0.8rem 0.8rem; }
.acknowledgement-people-grid section { display: grid; align-content: start; gap: 0.25rem; padding: 0.55rem; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.acknowledgement-people-grid h3 { margin: 0 0 0.2rem; font-size: 0.78rem; }
.acknowledgement-people-grid span { font-size: 0.78rem; }
.messages { margin-bottom: 0.75rem; }
.message-alert { margin: 0; padding: 0.65rem 0.8rem; border: 1px solid var(--success-border); border-left-width: 4px; border-radius: 5px; background: var(--success-surface); color: var(--success-text); }
.message-alert.info { border-color: var(--info-border); background: var(--info-surface); color: var(--info-text); }
.message-alert.warning { border-color: var(--attention-border); background: var(--attention-surface); color: var(--attention-text); }
.message-alert.error { border-color: var(--danger-border); background: var(--danger-surface); color: var(--danger-text); }
.form-save-failure { margin: 0 0 0.8rem; padding: 0.75rem 0.85rem; border: 1px solid var(--danger-border); border-left: 4px solid var(--danger-border); border-radius: 5px; background: var(--danger-surface); color: var(--danger-text); }
.form-save-failure strong { display: block; font-size: 0.98rem; }
.form-save-failure p { margin: 0.25rem 0; }
.form-save-failure ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.form-save-failure a { color: inherit; font-weight: 750; }
.system-state { display: grid; justify-items: start; gap: 0.7rem; min-height: 18rem; align-content: center; }
.system-state h1, .system-state p { margin: 0; }
.system-state-code { color: var(--muted); font-size: 0.76rem; font-weight: 750; }
.live-update-notice { position: sticky; top: calc(var(--header-offset) + 0.4rem); z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; padding: 0.55rem 0.7rem; border: 1px solid var(--attention-border); border-radius: 4px; background: var(--attention-surface); box-shadow: 0 4px 12px rgb(35 29 16 / 10%); color: var(--attention-text); font-size: 0.82rem; }
.live-update-notice button { padding: 0.3rem 0.55rem; border: 1px solid var(--attention-border); border-radius: 3px; background: var(--panel); color: var(--attention-text); cursor: pointer; font: inherit; font-weight: 700; }

@media (max-width: 700px) {
  .dashboard-summary, .dashboard-grid, .communication-actions, .rdo-pathways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

mark {
  background: #ffe08a;
  color: inherit;
}

.compact-list {
  margin-bottom: 1.5rem;
}

.inline-complete-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.resource-item.completed {
  opacity: 0.78;
}

@media (max-width: 720px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .hero { min-height: 0; grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 0.75rem 2rem; text-align: center; }
  .hero-logo { max-height: 15rem; }
  .hero-copy { margin: auto; }
  .hero .actions { justify-content: center; }
  .location-brands { grid-template-columns: 1fr; }
  .location-brand + .location-brand { border-top: 1px solid var(--line); border-left: 0; }

  .site-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav > .nav-link, .nav-menu summary { text-align: center; }
  .nav-menu { position: static; }
  .nav-menu-panel, .nav-menu-right { position: absolute; top: 100%; right: 1rem; left: 1rem; width: auto; }

  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .library-search, .library-search.management-search { grid-template-columns: 1fr 1fr; }
  .library-search .search-field { grid-column: 1 / -1; }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .resource-item,
  .inline-complete-form {
    grid-template-columns: 1fr;
  }
  .site-check-record-state, .assignment-progress, .transmission-state, .cash-review-actions { align-items: flex-start; }
  .report-record-meta { align-items: flex-start; flex-wrap: wrap; }
  .report-record-action { align-items: flex-start; padding-top: 0.45rem; border-top: 1px solid var(--line); text-align: left; }
  .archive-result-summary, .archive-pagination { align-items: stretch; flex-direction: column; text-align: center; }
  .acknowledgement-status-summary { align-items: flex-start; flex-direction: column; }
  .acknowledgement-counts { justify-content: flex-start; }
  .acknowledgement-people-grid { grid-template-columns: 1fr; }
  .management-field-grid, .management-field-grid.three, .management-choice-grid { grid-template-columns: 1fr; }
  .document-review-actions { align-items: stretch; flex-direction: column; }
  .document-review-actions > div { display: grid; grid-template-columns: 1fr; }

  .resource-row-meta {
    justify-content: flex-start;
    max-width: none;
  }

  .page { width: min(100% - 1rem, 1180px); margin-top: 0.5rem; }
  .panel { border-right: 0; border-left: 0; border-radius: 0; }
  .data-table th, .data-table td { padding: 0.55rem; }
  .document-row { grid-template-columns: minmax(0, 1fr) 1rem; }
  .document-locations { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .row-arrow { grid-column: 2; grid-row: 1 / 3; }
  .document-viewer iframe { min-height: 68vh; }
}

@media (max-width: 440px) {
  .library-search { grid-template-columns: 1fr; }
  .library-search .search-field { grid-column: auto; }
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}
.data-table td { overflow-wrap: anywhere; }
.data-table td:last-child { white-space: nowrap; }

.data-table th {
  color: var(--muted);
  font-size: 0.9rem;
}
.data-table tbody tr:hover { background: #f7f9f8; }
.data-table .status-badge { white-space: nowrap; }
.table-empty { padding: 1.5rem !important; color: var(--muted); text-align: center !important; }
.review-note { padding: 0.45rem 0.6rem; border-left: 3px solid #d5bd82; background: #fff9e9; color: #5f4a1d; font-size: 0.84rem; }
.review-note { max-width: 70ch; overflow-wrap: anywhere; }
.maintenance-escalation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: 0.75rem; border: 1px solid var(--line); border-left: 3px solid #477f66; border-radius: 4px; background: #f3f7f5; }
.maintenance-escalation h2, .maintenance-escalation p { margin: 0.12rem 0; }
.maintenance-assignees { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.response-review-form { display: grid; grid-template-columns: minmax(10rem, 1fr) auto auto; gap: 0.35rem; min-width: 28rem; }
.overdue-item { border-left: 3px solid #a63d3d; }
.overdue-badge { border: 1px solid #d6a5a5 !important; background: #fff1f1 !important; color: #842f2f !important; font-weight: 700; }
.overdue-row { color: #842f2f; }
.overdue-row small { color: #842f2f; font-weight: 650; }
.reminder-control { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 0.5rem; }
.reminder-control summary { width: fit-content; color: var(--cedar); cursor: pointer; font-size: 0.84rem; font-weight: 650; }
.reminder-form { display: grid; grid-template-columns: 8rem minmax(12rem, 1fr) auto; gap: 0.5rem; margin-top: 0.5rem; }
.reminder-inbox { margin-bottom: 1rem; padding: 0.8rem; border: 1px solid #d9b271; border-radius: 6px; background: #fffaf0; }
.reminder-list { display: grid; gap: 0.5rem; }
.reminder-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem; border-left: 3px solid #b9852f; background: #fff; }
.reminder-item.escalation { border-left-color: #a63d3d; background: #fff5f5; }
.reminder-item h3, .reminder-item p { margin: 0.15rem 0; }
.reminder-item h3 { font-size: 0.95rem; }
.attachment-section { margin-bottom: 1rem; padding: 0.75rem; border-block: 1px solid var(--line); }
.attachment-section h2 { margin: 0; font-size: 1rem; }
.case-files .site-check-media, .submission-file-display { margin-top: 0.6rem; }
.attachment-list { grid-column: 1 / -1; display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.4rem; }
.attachment-list a { padding: 0.25rem 0.45rem; border: 1px solid var(--line); border-radius: 4px; background: #f7f9f8; font-size: 0.8rem; text-decoration: none; }
.attachment-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr) auto; gap: 0.5rem; margin-top: 0.5rem; }
.attachment-form label { display: grid; align-content: end; gap: 0.25rem; min-width: 0; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.attachment-form .button { align-self: end; }
.optional-label { font-weight: 500; }
.evidence-complete-form { grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(10rem, 1fr) auto; }
.retention-actions { display: grid; grid-template-columns: 12rem auto minmax(20rem, 1fr); gap: 0.75rem; align-items: end; margin: 1rem 0; padding: 0.8rem; border: 1px solid var(--line); border-radius: 6px; background: #f7f9f8; }
.retention-window label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.78rem; font-weight: 650; }
.archive-confirm { display: grid; grid-template-columns: minmax(15rem, 1fr) auto; gap: 0.6rem; align-items: center; }
.archive-confirm label { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.82rem; }
.archive-confirm input[type="checkbox"] { width: auto; min-height: 0; margin-top: 0.2rem; }
.retention-history { margin-top: 1.5rem; }
.retention-history h2 { font-size: 1rem; }

@media (max-width: 720px) {
  .reminder-form { grid-template-columns: 1fr; }
  .reminder-item { align-items: stretch; flex-direction: column; }
  .attachment-form, .evidence-complete-form { grid-template-columns: 1fr; }
  .retention-actions, .archive-confirm { grid-template-columns: 1fr; }
  .maintenance-escalation { align-items: stretch; flex-direction: column; }
  .maintenance-assignees { display: grid; justify-content: stretch; }
  .maintenance-assignees .button { width: 100%; }
  .document-control-meta { align-items: flex-start; width: 100%; }
  .document-control-meta .button { width: 100%; }
}

/* Unified operational polish */
h1, h2, h3, p { overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; line-height: 1.25; }
h3 { font-size: 1rem; line-height: 1.3; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.eyebrow { margin: 0 0 0.2rem; color: #68746d; font-size: 0.7rem; font-weight: 750; letter-spacing: 0; text-transform: uppercase; }
.meta, .privacy-note { color: var(--muted); font-size: 0.78rem; }
.section-header { gap: 0.75rem; margin-bottom: 0.85rem; }
.section-header h1 { margin-bottom: 0; }

.button { min-height: 2.25rem; padding: 0.42rem 0.72rem; border-radius: 4px; font-size: 0.84rem; font-weight: 680; line-height: 1.15; }
.button:hover { border-color: #19432f; background: #19432f; }
.button.secondary { border-color: var(--line-strong); background: #fff; color: #234f3b; }
.button.secondary:hover { border-color: #82968b; background: #f2f6f4; }

.stacked-form { display: grid; gap: 0.8rem; }
.stacked-form p { gap: 0.3rem; margin: 0; }
.stacked-form label, .filter-bar label, .search-form label { color: #39443e; font-size: 0.78rem; font-weight: 700; }
input, select, textarea { min-height: 2.2rem; padding: 0.45rem 0.58rem; border-color: #c5cec9; border-radius: 4px; font-size: 0.88rem; }
textarea { line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: #9caaa2; }
input[type="checkbox"], input[type="radio"] { width: 1rem; min-height: 1rem; padding: 0; accent-color: var(--cedar); }
.stacked-form ul:not(.errorlist) { display: grid; gap: 0.25rem; margin: 0; padding: 0.55rem; border: 1px solid var(--line); border-radius: 4px; background: #fafcfb; list-style: none; }
.stacked-form ul:not(.errorlist) label { display: flex; align-items: center; gap: 0.45rem; font-weight: 500; }
.helptext { display: block; line-height: 1.35; }
.action-bar { gap: 0.5rem; margin-top: 0.25rem; }

.table-wrap { border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.data-table { font-size: 0.8rem; }
.data-table th, .data-table td { padding: 0.55rem 0.62rem; }
.data-table th { position: sticky; top: 0; z-index: 1; background: #f1f4f2; color: #505d56; font-size: 0.7rem; font-weight: 760; letter-spacing: 0; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong + .meta, .data-table td .status-badge + .meta { display: block; margin-top: 0.18rem; }
.data-table a:not(.button) { font-weight: 650; }
.onboarding-oversight { margin-bottom: 1rem; padding: 0.8rem; border: 1px solid #d5aa54; border-left-width: 4px; border-radius: 5px; background: #fffaf0; }
.onboarding-oversight h2 { margin: 0; font-size: 1rem; }
.onboarding-oversight > summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; cursor: pointer; list-style: none; }
.onboarding-oversight > summary::-webkit-details-marker { display: none; }
.onboarding-summary-title { display: grid; gap: 0.12rem; }
.onboarding-summary-title .eyebrow { margin: 0; }
.onboarding-summary-title strong { color: #5b4214; font-size: 1rem; }
.onboarding-oversight > summary::after { content: "+"; order: 3; color: #8a6419; font-size: 1.05rem; font-weight: 800; }
.onboarding-oversight[open] > summary { padding-bottom: 0.6rem; border-bottom: 1px solid #e1cfaa; }
.onboarding-oversight[open] > summary::after { content: "-"; }
.onboarding-oversight-content { padding-top: 0.1rem; }
.onboarding-oversight-content > .meta { margin: 0.55rem 0 0; }
.onboarding-count { padding: 0.25rem 0.45rem; border-radius: 999px; background: #b17a22; color: #fff; font-size: 0.72rem; font-weight: 800; }
.onboarding-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.4rem; margin-top: 0.65rem; }
.onboarding-person { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; min-width: 0; padding: 0.55rem 0.65rem; border: 1px solid #e1cfaa; border-radius: 4px; background: #fff; text-decoration: none; }
.onboarding-person > span:first-child { display: grid; min-width: 0; }
.onboarding-person small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.onboarding-stage { display: inline-flex; width: max-content; max-width: 11rem; padding: 0.18rem 0.35rem; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 0.68rem; font-weight: 750; line-height: 1.2; }
.onboarding-stage.stage-waiting { border-color: #be8b2d; background: #fff5dd; color: #6b4a10; }
.onboarding-stage.stage-action { border-color: #b8644f; background: #fff0eb; color: #743426; }
.onboarding-stage.stage-confirm { border-color: #4d7890; background: #edf6fa; color: #294f63; }
.onboarding-stage.stage-ready { border-color: #70a184; background: #edf7f1; color: #28563a; }
.portal-setup-not_verified { background: #fffaf0; box-shadow: inset 3px 0 #b17a22; }
.portal-verification-panel { display: grid; gap: 0.55rem; margin-top: 0.85rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.portal-verification-panel h2 { margin: 0; font-size: 0.95rem; }
.portal-verification-panel .section-header { margin: 0; }
.portal-verification-panel p { margin: 0; }
.portal-setup-cell { min-width: 9rem; vertical-align: middle; }
.portal-setup-detail { display: block; margin-top: 0.22rem; color: var(--muted); font-size: 0.68rem; line-height: 1.25; }
.portal-setup-never_signed_in, .portal-setup-password_needed { background: #fffaf0; box-shadow: inset 3px 0 #b17a22; }
.portal-setup-confirmation_needed { background: #f2f7fa; box-shadow: inset 3px 0 #4d7890; }
.portal-setup-complete { background: #f0f7f2; box-shadow: inset 3px 0 #477f66; }
.onboarding-callout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 0.85rem 1rem; border: 1px solid #d5aa54; border-left-width: 4px; border-radius: 5px; background: #fffaf0; }
.onboarding-callout h2, .onboarding-callout p { margin: 0.1rem 0; }
.onboarding-callout h2 { font-size: 1.05rem; }
.onboarding-step-note { padding: 0.65rem 0.75rem; border-left: 3px solid var(--gold); background: #fffaf0; }
.people-rosters { display: grid; gap: 1rem; }
.people-scope-nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.4rem; }
.employee-count-summary { position: relative; display: flex; align-items: center; gap: 0.35rem; min-height: 2.25rem; padding: 0.35rem 0.55rem; border: 1px solid var(--line-strong); border-radius: 4px; background: #f7f9f8; color: #39443e; font-size: 0.76rem; font-weight: 700; cursor: default; }
.employee-count-summary > a { display: inline-flex; align-items: center; gap: 0.35rem; color: inherit; text-decoration: none; }
.employee-count-summary.is-current, .people-scope-link.is-current { border-color: #6f9a7d; background: #edf7f1; color: #245438; }
.people-scope-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.25rem; padding: 0.35rem 0.55rem; border: 1px solid var(--line-strong); border-radius: 4px; background: #f7f9f8; color: #39443e; font-size: 0.76rem; font-weight: 700; text-decoration: none; }
.people-scope-link:hover { border-color: #7b9684; background: #f0f5f2; color: #203f2c; }
.people-scope-count { display: grid; place-items: center; min-width: 1.55rem; min-height: 1.55rem; border: 1px solid #c0a05d; border-radius: 50%; background: #fff7df; color: #705019; font-size: 0.74rem; }
.employee-count-value { display: grid; place-items: center; min-width: 1.55rem; min-height: 1.55rem; border-radius: 50%; background: #285f46; color: #fff; font-size: 0.74rem; }
.employee-count-tooltip { position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 20; width: 15rem; padding: 0.7rem; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; box-shadow: 0 10px 24px rgb(12 25 17 / 18%); color: #26342d; opacity: 0; pointer-events: none; transform: translateY(-0.2rem); transition: opacity 120ms ease, transform 120ms ease; }
.employee-count-summary:hover .employee-count-tooltip, .employee-count-summary:focus .employee-count-tooltip, .employee-count-summary:focus-within .employee-count-tooltip { opacity: 1; pointer-events: auto; transform: translateY(0); }
.employee-count-tooltip strong { display: block; margin-bottom: 0.4rem; font-size: 0.78rem; }
.employee-count-tooltip dl { display: grid; gap: 0.22rem; margin: 0; }
.employee-count-tooltip dl div { display: flex; justify-content: space-between; gap: 1rem; }
.employee-count-tooltip dt { color: var(--muted); font-weight: 500; }
.employee-count-tooltip dd { margin: 0; font-weight: 750; }
.people-roster { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.people-roster-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); background: #f1f4f2; }
.people-roster-header h2, .people-roster-header p { margin: 0; }
.people-roster-header h2 { font-size: 0.95rem; }
.people-roster-header p { margin-top: 0.12rem; color: var(--muted); font-size: 0.74rem; }
.roster-count { flex: 0 0 auto; padding: 0.2rem 0.42rem; border: 1px solid #becbc4; border-radius: 3px; color: #3e4c44; font-size: 0.7rem; font-weight: 700; }
.people-roster-administration .people-roster-header { border-left: 4px solid #9a7426; background: #f7f3e8; }
.people-roster .table-wrap { border: 0; border-radius: 0; }
.people-table th { top: var(--header-height, 0); }
.people-result-count { margin: -0.3rem 0 0.7rem; text-align: right; }
.people-scope-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.55rem; margin: -0.25rem 0 0.75rem; padding: 0.55rem 0.65rem; border: 1px solid #d8c38d; border-left: 3px solid #a77b2b; background: #fff9ea; color: #5c4720; font-size: 0.77rem; line-height: 1.4; }
.people-scope-note strong { color: #4d3a16; }
.people-scope-note em { font-style: normal; font-weight: 750; }
.people-view-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: -0.25rem 0 0.8rem; color: var(--muted); font-size: 0.74rem; }
.people-view-note .onboarding-stage { font-size: 0.62rem; }
.people-filters p:first-child { flex-grow: 1.5; }
.access-label { display: inline-flex; margin: 0.08rem 0.15rem 0.08rem 0; padding: 0.12rem 0.28rem; border: 1px solid var(--line); border-radius: 3px; background: #f5f8f6; font-size: 0.68rem; }
.readiness-badge { display: inline-flex; width: max-content; padding: 0.18rem 0.38rem; border: 1px solid var(--line); border-radius: 3px; font-size: 0.68rem; font-weight: 760; }
.readiness-cell { min-width: 8.5rem; }
.readiness-cell .readiness-badge, .readiness-cell .meta { display: block; }
.readiness-cell .meta { margin-top: 0.3rem; line-height: 1.25; }
.readiness-ready { border-color: #70a184; background: #edf7f1; color: #28563a; }
.readiness-attention { border-color: #c08b31; background: #fff5dd; color: #6b4a10; }
.readiness-expiring { border-color: #b8644f; background: #fff0eb; color: #743426; }
.readiness-unconfigured { border-color: #aeb8b2; background: #f2f4f3; color: #59645e; }
.person-readiness-popover { position: relative; }
.person-readiness-popover summary { display: grid; width: fit-content; cursor: pointer; list-style: none; }
.person-readiness-popover summary::-webkit-details-marker { display: none; }
.person-readiness-popover summary strong { color: var(--cedar); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.person-readiness-popover summary span { color: var(--muted); font-size: 0.72rem; }
.person-readiness-card { position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 30; display: none; width: min(27rem, calc(100vw - 3rem)); max-height: min(34rem, calc(100vh - 8rem)); padding: 0.75rem; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--paper); box-shadow: 0 14px 32px rgb(12 25 17 / 24%); color: var(--ink); }
.person-readiness-popover[open] > .person-readiness-card, .person-readiness-popover:hover > .person-readiness-card, .person-readiness-popover:focus-within > .person-readiness-card { display: block; }
.person-readiness-card .section-header { align-items: flex-start; margin-bottom: 0.45rem; }
.person-readiness-card .section-header > div { display: grid; }
.person-readiness-card section { margin-top: 0.55rem; padding-top: 0.45rem; border-top: 1px solid var(--line); }
.person-readiness-card h4 { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
.person-readiness-card section p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.22rem 0; font-size: 0.75rem; }
.person-readiness-card section p strong { flex: 0 0 auto; font-size: 0.7rem; }
.readiness-progress { margin: 0; font-size: 0.78rem; }
.attention-text { color: var(--danger); }
@media (min-width: 901px) { .people-roster, .people-roster .table-wrap { overflow: visible; } }
.status-badge { padding: 0.18rem 0.42rem; border-radius: 3px; font-size: 0.68rem; line-height: 1.25; }

.filter-bar, .search-form { padding: 0.7rem; border: 1px solid var(--line); border-radius: 5px; background: #f7f9f8; }
.filter-bar { display: flex; align-items: end; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.filter-bar p, .filter-bar > label { display: grid; gap: 0.2rem; min-width: 9rem; margin: 0; flex: 1 1 9rem; }
.filter-bar .button { flex: 0 0 auto; }

.nav-menu-panel { box-shadow: 0 14px 32px rgb(12 25 17 / 20%); }
.nav-menu-panel .nav-count { float: right; }
.site-header { box-shadow: 0 1px 0 rgb(255 255 255 / 9%); }

.document-library { min-height: 34rem; }
.library-search { padding: 0.65rem; margin-bottom: 1rem; }
.library-groups { gap: 1rem; }
.library-group-heading { padding-bottom: 0.3rem; }
.document-row { padding: 0.56rem 0.4rem; }
.document-main strong { font-size: 0.86rem; }
.document-main small { font-size: 0.75rem; }

.doc-toolbar { position: sticky; top: calc(var(--header-offset) + 0.5rem); z-index: 3; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 0.75rem 0; padding: 0.6rem 0.7rem; background: #f7f9f8; }
.doc-toolbar .meta-list { min-width: 0; }
.doc-toolbar .acknowledgement-form { grid-column: 1 / -1; margin: 0; }
.document-modes { justify-self: end; }
.doc-toolbar > .document-modes { grid-column: 2; grid-row: 1; }
.document-viewer iframe { min-height: calc(100vh - 12rem); border-radius: 4px; }
.document-text-panel { padding: 0.7rem; }
.document-text-panel .section-header { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(14rem, 24rem); align-items: end; }
.document-text { max-height: calc(100vh - 16rem); border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.communication-actions a, .queue-links a { border-radius: 4px; }
.communication-actions a { min-height: 4.6rem; padding: 0.62rem; }
.dashboard-summary strong { font-size: 1.25rem; }
.work-row { padding: 0.48rem 0.55rem; font-size: 0.82rem; }
.dashboard-report-row { padding-inline: 0.45rem 0.4rem; }
.message { border-radius: 0 4px 4px 0; }
.review-summary { border-radius: 5px; }
.people-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.people-editor > .panel.narrow { max-width: none; margin-inline: 0; }
.people-editor > .account-details-panel,
.people-editor > .recognition-panel,
.people-editor > .personnel-requirements-panel { grid-column: 1 / -1; }
.people-identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1rem; }
.form-field { display: grid; align-content: start; gap: 0.3rem; min-width: 0; }
.form-field > label, .access-fieldset legend { color: #39443e; font-size: 0.78rem; font-weight: 700; }
.form-field-checkbox label { display: flex; align-items: center; gap: 0.45rem; min-height: 2.2rem; }
.form-field-checkbox input { flex: 0 0 auto; }
.people-access-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.access-fieldset { min-width: 0; margin: 0; padding: 0.75rem 0.85rem; border: 0; border-right: 1px solid var(--line); }
.access-fieldset:last-child { border-right: 0; }
.access-fieldset-collapsible { padding: 0; }
.access-fieldset-collapsible > summary { list-style: none; }
.access-fieldset-collapsible > summary::-webkit-details-marker { display: none; }
.access-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.55rem; min-height: 4.4rem; padding: 0.75rem 0.85rem; cursor: pointer; }
.access-summary::before { flex: 0 0 auto; margin-top: 0.02rem; color: var(--cedar); content: "+"; font-size: 1rem; font-weight: 500; line-height: 1; }
.access-fieldset-collapsible[open] > .access-summary::before { content: "-"; }
.access-summary-copy { display: grid; min-width: 0; gap: 0.2rem; }
.access-summary-copy strong { color: #39443e; font-size: 0.78rem; }
.access-summary-copy small { color: var(--muted); font-size: 0.7rem; line-height: 1.3; }
.access-summary-count { max-width: 8rem; overflow: hidden; padding: 0.18rem 0.32rem; border: 1px solid var(--line); border-radius: 3px; color: var(--cedar); font-size: 0.68rem; font-weight: 750; line-height: 1.2; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.access-fieldset-collapsible[open] > .access-summary { background: #f4f7f5; }
.access-fieldset-content { display: grid; gap: 0.45rem; padding: 0 0.85rem 0.75rem; }
.access-fieldset-content > .helptext { margin: 0; }
.access-fieldset-content > div { display: grid; gap: 0.25rem; }
.access-fieldset-content > .errorlist { margin: 0; }
.access-fieldset label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 550; }
.people-access-form > .action-bar { margin-top: 0; }
.timeclock-conflict { padding: 0.7rem 0.8rem; border-left: 3px solid var(--gold); background: #fff8e8; }
.timeclock-conflict p { margin: 0.25rem 0 0.55rem; font-size: 0.8rem; }
.timeclock-conflict label { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.8rem; font-weight: 700; }
.timeclock-release-form { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.timeclock-release-form div { display: grid; gap: 0.15rem; }
.timeclock-release-form span { color: var(--muted); font-size: 0.78rem; }
.cross-training-timeclock-panel { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.cross-training-timeclock-panel h2 { margin: 0; font-size: 1rem; }
.cross-training-timeclock-form { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(10rem, 1fr) auto; gap: 0.65rem; align-items: end; }
.cross-training-timeclock-form p { display: grid; gap: 0.25rem; margin: 0; }
.cross-training-timeclock-form label { font-size: 0.75rem; font-weight: 700; }
.cross-training-timeclock-form .timeclock-reuse-option { grid-column: 1 / -1; }
.lifecycle-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lifecycle-form > p:has(textarea), .lifecycle-form > button { grid-column: 1 / -1; }
.lifecycle-warning { margin: 0 0 0.85rem; padding: 0.6rem 0.7rem; border-left: 3px solid #b17a22; background: #fff9ec; color: #59451f; font-size: 0.8rem; }
.recognition-total { display: grid; min-width: 4.5rem; text-align: right; }
.recognition-total strong { color: var(--cedar); font-size: 1.5rem; line-height: 1; }
.recognition-total span { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
.recognition-add { margin: 0.8rem 0; border: 1px solid var(--line); border-radius: 4px; background: #fafcfb; }
.recognition-add summary { padding: 0.6rem 0.7rem; color: var(--cedar); cursor: pointer; font-weight: 700; }
.recognition-add form { padding: 0 0.7rem 0.7rem; border-top: 1px solid var(--line); }
.recognition-points { color: #286044; }
.recognition-points.negative { color: var(--danger); }
.rdo-page + .panel { margin-top: 1rem; }
.rdo-personal-row td:first-child strong { color: var(--ink); }
.rdo-calendar-controls { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 0.65fr) auto minmax(9rem, auto); gap: 0.55rem; align-items: end; margin-bottom: 0.65rem; }
.rdo-calendar-controls label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.rdo-calendar-controls > strong { align-self: center; min-width: 8rem; text-align: right; }
.calendar-navigation { display: grid; grid-template-columns: 2.35rem auto 2.35rem; gap: 0.3rem; }
.calendar-navigation .button { display: grid; place-items: center; min-height: 2.35rem; padding: 0.35rem 0.55rem; }
.calendar-navigation .calendar-arrow { padding: 0; font-size: 1.35rem; line-height: 1; }
.calendar-navigation .current { border-color: var(--cedar); background: #edf5f1; }
.calendar-heading { font-size: 1rem; }
.rdo-legend { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.55rem 0 0.7rem; font-size: 0.68rem; }
.rdo-legend > span { display: inline-flex; align-items: center; min-height: 1.45rem; padding: 0.15rem 0.38rem; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.rdo-legend span::before { content: ""; display: inline-block; width: 0.28rem; height: 0.85rem; margin-right: 0.3rem; border: 1px solid var(--line); border-radius: 1px; }
.rdo-legend .purpose-personal::before { background: #dcefe4; border-color: #6f9f83; }
.rdo-legend .purpose-medical::before { background: #e2edf6; border-color: #7198b5; }
.rdo-legend .purpose-private::before { background: #ece8f1; border-color: #8d829b; }
.rdo-legend .record-sick::before { background: #d6e9f4; border-color: #4e83a6; }
.rdo-legend .record-unexpected::before { background: #f7ead2; border-color: #b47822; }
.rdo-legend .purpose-neutral::before { background: #e7ece9; border-color: #7f9087; }
.rdo-legend .purpose-unclassified::before { background: #edf0ee; border-color: #9aa59f; }
.rdo-legend .blackout::before { background: #4d5651; border-color: #4d5651; }
.rdo-legend .available::before { background: #fff; }
.rdo-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.rdo-weekday { padding: 0.38rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f1f4f2; color: var(--muted); font-size: 0.68rem; font-weight: 750; text-align: center; text-transform: uppercase; }
.rdo-day { position: relative; min-height: 6rem; padding: 0.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.rdo-day.outside { background: #f4f6f5; color: #a0aaa4; }
.rdo-day.today { z-index: 1; box-shadow: inset 0 0 0 2px #2f7252; }
.rdo-day.today .rdo-date { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #2f7252; color: #fff; }
.rdo-day.approved { background: #f8faf9; box-shadow: inset 0 0 0 1px #b8c5be; }
.rdo-day.approved.today { box-shadow: inset 0 0 0 2px #2f7252; }
.rdo-day.blackout { background: repeating-linear-gradient(135deg, #f0f2f1 0, #f0f2f1 7px, #e8ebe9 7px, #e8ebe9 14px); }
.rdo-date { display: block; font-weight: 750; }
.rdo-day a { position: absolute; inset: 1.7rem 0.25rem 0.25rem; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; color: inherit; font-size: 0.7rem; text-decoration: none; }
.rdo-day-link { padding: 0.25rem; border-radius: 3px; }
.rdo-day-link:hover { background: rgba(47, 114, 82, 0.1); }
.rdo-day-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -1px; }
.rdo-day.blackout .rdo-day-link:hover { background: rgb(77 86 81 / 8%); }
.rdo-day small { display: block; margin-top: 0.3rem; font-size: 0.66rem; line-height: 1.25; }
.rdo-blackout-label { display: flex; gap: 0.25rem; align-items: baseline; overflow: hidden; padding: 0.18rem 0.28rem; border-left: 3px solid #626d67; background: rgb(255 255 255 / 82%); color: #3f4944; font-size: 0.6rem; line-height: 1.15; }
.rdo-blackout-label strong { flex: 0 0 auto; font-size: inherit; text-transform: uppercase; }
.rdo-blackout-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdo-approved-list { display: grid; gap: 0.18rem; overflow: auto; }
.rdo-approved-list .rdo-calendar-entry { display: flex; gap: 0.3rem; align-items: center; min-height: 1.4rem; overflow: hidden; padding: 0.2rem 0.3rem 0.2rem 0.42rem; border: 1px solid; border-left-width: 4px; border-radius: 3px; line-height: 1.1; }
.rdo-calendar-entry strong { flex: 1; overflow: hidden; font-size: 0.66rem; text-overflow: ellipsis; white-space: nowrap; }
.rdo-entry-flag { flex: 0 0 auto; padding: 0.08rem 0.24rem; border-radius: 2px; background: #234f6d; color: #fff; font-size: 0.52rem; font-weight: 800; text-transform: uppercase; }
.rdo-purpose-badge { display: inline-flex; width: fit-content; max-width: 100%; padding: 0.16rem 0.34rem; border: 1px solid; border-radius: 3px; font-size: 0.68rem; font-weight: 750; line-height: 1.2; }
.purpose-personal { border-color: #6f9f83; background: #dcefe4; color: #24553a; }
.purpose-medical { border-color: #7198b5; background: #e2edf6; color: #234f6d; }
.purpose-private { border-color: #8d829b; background: #ece8f1; color: #4d405c; }
.purpose-neutral { border-color: #7f9087; background: #e7ece9; color: #34483d; }
.record-sick { border-color: #4e83a6; background: #d6e9f4; color: #173f59; box-shadow: inset 3px 0 #4e83a6; }
.record-unexpected { border-color: #b47822; background: #f7ead2; color: #65400c; box-shadow: inset 3px 0 #b47822; }
.purpose-unclassified { border-color: #9aa59f; background: #edf0ee; color: #4d5952; }
.rdo-purpose-summary { display: flex; gap: 0.22rem; flex-wrap: wrap; }
.rdo-sick-total { display: inline-flex; width: fit-content; padding: 0.18rem 0.38rem; border-left: 3px solid #7198b5; background: #edf4f8; color: #234f6d; font-size: 0.72rem; font-weight: 750; }
.rdo-privacy-guidance { display: grid; gap: 0.2rem; margin-bottom: 1rem; }
.rdo-own-absence-history { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.rdo-summary-cell { min-width: 10rem; }
.rdo-summary-cell > strong, .rdo-summary-cell > .meta { display: block; }
.rdo-summary-cell { line-height: 1.3; }
.rdo-summary-cell .rdo-purpose-summary { margin-top: 0.28rem; }
.rdo-request-prompt { color: var(--muted); font-weight: 600; }
.rdo-day-workspace { display: grid; gap: 0.9rem; }
.rdo-day-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.rdo-day-section { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.rdo-day-section > .section-header { margin: 0; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.rdo-day-records { display: grid; }
.rdo-day-record { display: grid; grid-template-columns: minmax(12rem, 1.35fr) minmax(10rem, 0.8fr) auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.rdo-day-record:last-child { border-bottom: 0; }
.rdo-day-record.status-pending { border-left-color: #b17a22; }
.rdo-day-record.status-approved { border-left-color: var(--success-border); }
.rdo-day-record.status-denied, .rdo-day-record.status-canceled { border-left-color: var(--muted); }
.rdo-day-record > div { display: grid; gap: 0.18rem; min-width: 0; }
.rdo-day-record > div:nth-child(2) { justify-items: start; }
.rdo-day-record span, .rdo-day-record small { overflow-wrap: anywhere; }
.rdo-blackout-record { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.75rem 0.8rem; border-left: 4px solid var(--danger); }
.rdo-blackout-record > div { display: grid; gap: 0.18rem; }
.rdo-blackout-record p { margin: 0; color: var(--muted); }
.rdo-day-blackout-form { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: 0.55rem; align-items: end; padding: 0.75rem 0.8rem; }
.rdo-day-blackout-form label { display: grid; gap: 0.2rem; color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.rdo-date-editor { margin: 0.9rem 0; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-subtle); }
.rdo-date-editor summary { padding: 0.65rem 0.75rem; color: var(--cedar); cursor: pointer; font-weight: 750; }
.rdo-date-editor form { padding: 0 0.75rem 0.75rem; border-top: 1px solid var(--line); }
.rdo-correction-note { margin: 0; padding: 0.65rem 0.75rem; border-top: 1px solid var(--line); background: #fff9ea; color: #5c4720; font-size: 0.78rem; line-height: 1.4; }
.rdo-decision-panel { margin-top: 0.9rem; padding: 0.8rem; border: 1px solid var(--line); border-left: 4px solid #b17a22; border-radius: 5px; }
.rdo-history { margin-top: 1rem; }
.rdo-history > .section-header { margin-bottom: 0.45rem; }
.rdo-history-list { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.rdo-history-entry { display: grid; gap: 0.28rem; padding: 0.72rem 0.8rem; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.rdo-history-entry:last-child { border-bottom: 0; }
.rdo-history-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.rdo-history-heading time { flex: 0 0 auto; color: var(--muted); font-size: 0.72rem; }
.rdo-history-entry .meta, .rdo-history-note { margin: 0; }
.rdo-history-note { max-width: 72ch; overflow-wrap: anywhere; line-height: 1.45; }
.rdo-conflicts { margin: 1rem 0; }
.rdo-conflicts h2 { margin-bottom: 0.4rem; }
.status-overlap { border-color: #c77b75; background: #fff0ee; color: #7c2f28; }
.attention-row { box-shadow: inset 3px 0 #b17a22; }
.queue-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.queue-tabs a { padding: 0.35rem 0.55rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-decoration: none; }
.queue-tabs a.active { border-color: #477f66; background: #eaf3ee; color: #19432f; font-weight: 700; }
.rdo-alert { padding: 0.6rem 0.7rem; border-left: 3px solid #b17a22; background: #fff8e8; color: #5d471a; font-size: 0.82rem; }
.rdo-employee-groups { display: grid; gap: 0.75rem; }
.rdo-employee-group { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.rdo-employee-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); background: #edf2ef; }
.rdo-employee-heading > div { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.rdo-employee-heading h2 { margin: 0; font-size: 0.95rem; }
.rdo-employee-heading span { color: var(--muted); font-size: 0.72rem; }
.rdo-group-rows { display: grid; }
.rdo-overview-row { display: grid; grid-template-columns: minmax(11rem, 1.3fr) minmax(7.5rem, 0.8fr) minmax(9rem, 1fr) 9rem minmax(8rem, 0.8fr) 7rem auto; gap: 0.65rem; align-items: center; min-width: 0; padding: 0.58rem 0.75rem; border-bottom: 1px solid var(--line); }
.rdo-overview-row:last-child { border-bottom: 0; }
.rdo-overview-row > div { display: grid; gap: 0.15rem; min-width: 0; }
.rdo-overview-row .field-label { color: var(--muted); font-size: 0.64rem; font-weight: 750; text-transform: uppercase; }
.rdo-overview-row strong, .rdo-overview-row > div > span:last-child { overflow-wrap: anywhere; }
.rdo-overview-flags { display: flex !important; flex-wrap: wrap; align-items: center; }
.rdo-overview-flags .field-label { flex-basis: 100%; }
.rdo-overview-row > .button { min-width: 4.5rem; text-align: center; }
.rdo-schedule-filters { grid-template-columns: minmax(12rem, 1.25fr) minmax(10rem, 1fr) minmax(10rem, 1fr) auto; align-items: end; }
.rdo-schedule-summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: 0.75rem 0; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-left: 4px solid var(--moss); border-radius: 4px; background: var(--panel); }
.rdo-schedule-summary > div, .rdo-schedule-summary p { display: flex; gap: 0.45rem; align-items: baseline; margin: 0; }
.rdo-schedule-summary > div strong { color: var(--moss); font-size: 1.35rem; }
.rdo-schedule-summary span { color: var(--muted); font-size: 0.76rem; }
.rdo-schedule-list { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.rdo-schedule-head, .rdo-schedule-row { display: grid; grid-template-columns: minmax(8rem, 0.9fr) minmax(12rem, 1.35fr) 3.5rem minmax(7.5rem, 0.8fr) minmax(8rem, 0.85fr) minmax(9rem, 0.9fr) minmax(10rem, 1.1fr); gap: 0.65rem; align-items: center; }
.rdo-schedule-head.purpose-hidden, .rdo-schedule-row.purpose-hidden { grid-template-columns: minmax(8rem, 0.9fr) minmax(12rem, 1.35fr) 3.5rem minmax(8rem, 0.85fr) minmax(9rem, 0.9fr) minmax(10rem, 1.1fr); }
.rdo-schedule-head { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); background: #edf2ef; color: var(--muted); font-size: 0.68rem; font-weight: 750; text-transform: uppercase; }
.rdo-schedule-row { min-width: 0; padding: 0.72rem 0.75rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.rdo-schedule-row:nth-child(odd) { background: var(--panel); }
.rdo-schedule-row:last-child { border-bottom: 0; }
.rdo-schedule-row > div { display: grid; gap: 0.12rem; min-width: 0; }
.rdo-schedule-row .field-label { display: none; color: var(--muted); font-size: 0.64rem; font-weight: 750; text-transform: uppercase; }
.rdo-schedule-row strong, .rdo-schedule-row span { overflow-wrap: anywhere; }
.rdo-schedule-dates small { color: var(--muted); font-size: 0.72rem; }
.rdo-day-count { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #9fb8aa; border-radius: 50%; background: #edf5f1; color: #28543a; }
.rdo-schedule-note { color: var(--muted); font-size: 0.78rem; }
.rdo-schedule-approval small { color: var(--muted); }
.print-heading { display: none; }
@media (max-width: 720px) { .rdo-calendar-controls { grid-template-columns: 1fr; } .rdo-calendar-controls label { grid-column: 1; } .calendar-navigation { grid-template-columns: 2.75rem 1fr 2.75rem; } .rdo-calendar-controls > strong { grid-row: 1; text-align: left; } .rdo-day { min-height: 4.2rem; padding: 0.25rem; } .rdo-day a, .rdo-day small { font-size: 0.58rem; } .rdo-day-record { grid-template-columns: 1fr; gap: 0.55rem; } .rdo-day-record > .button { width: 100%; } .rdo-blackout-record { align-items: stretch; flex-direction: column; } .rdo-blackout-record .button { width: 100%; } .rdo-day-blackout-form { grid-template-columns: 1fr; } .rdo-history-heading { align-items: flex-start; flex-direction: column; gap: 0.18rem; } }
@media (max-width: 720px) {
  .rdo-calendar { display: block; border: 0; }
  .rdo-weekday { display: none; }
  .rdo-day { min-height: 0; margin-bottom: 0.5rem; padding: 0.55rem; border: 1px solid var(--line); border-radius: 4px; }
  .rdo-day.outside { display: none; }
  .rdo-day .rdo-date { display: inline-flex; align-items: baseline; gap: 0.35rem; }
  .rdo-day .rdo-date::after { color: var(--muted); content: attr(data-date); font-size: 0.72rem; font-weight: 650; }
  .rdo-day.today .rdo-date { display: inline-flex; width: auto; min-width: 0; height: auto; padding: 0.14rem 0.38rem; border-radius: 3px; }
  .rdo-day a { position: static; inset: auto; display: block; margin-top: 0.45rem; padding: 0.2rem; font-size: 0.72rem; }
  .rdo-approved-list { gap: 0.3rem; overflow: visible; }
  .rdo-approved-list .rdo-calendar-entry { min-height: 1.7rem; padding: 0.3rem 0.4rem 0.3rem 0.5rem; }
  .rdo-calendar-entry strong { overflow: visible; font-size: 0.75rem; text-overflow: clip; white-space: normal; }
  .rdo-blackout-label { margin-bottom: 0.35rem; font-size: 0.68rem; }
  .rdo-blackout-label span { overflow: visible; text-overflow: clip; white-space: normal; }
}
@media (max-width: 720px) {
  .rdo-personal-history { margin-inline: 0; overflow: visible; border: 0; background: transparent; }
  .rdo-personal-table { display: block; min-width: 0; }
  .rdo-personal-table thead { display: none; }
  .rdo-personal-table tbody { display: grid; gap: 0.65rem; }
  .rdo-personal-table .rdo-personal-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; padding: 0.7rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 4px; background: var(--paper); }
  .rdo-personal-table .rdo-personal-row.status-pending { border-left-color: #b17a22; }
  .rdo-personal-table .rdo-personal-row.status-approved { border-left-color: #477f66; }
  .rdo-personal-table .rdo-personal-row > td { position: static; display: grid; gap: 0.16rem; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; white-space: normal; }
  .rdo-personal-table .rdo-personal-row > td::before { content: attr(data-label); color: var(--muted); font-size: 0.65rem; font-weight: 750; text-transform: uppercase; }
  .rdo-personal-table .rdo-personal-row > td:first-child,
  .rdo-personal-table .rdo-personal-row > td:nth-child(5),
  .rdo-personal-table .rdo-personal-action { grid-column: 1 / -1; }
  .rdo-personal-table .rdo-personal-action:empty { display: none; }
  .rdo-personal-table .rdo-personal-action .button { width: 100%; }
  .rdo-personal-table .table-empty { display: block; padding: 1rem; }
}
@media (max-width: 820px) { .rdo-employee-heading { align-items: flex-start; } .rdo-employee-heading > div:last-child { align-items: flex-end; flex-direction: column; } .rdo-overview-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; } .rdo-overview-dates { grid-column: 1 / -1; } .rdo-overview-row > .button { grid-column: 1 / -1; width: 100%; } .rdo-schedule-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rdo-schedule-filters label:first-child { grid-column: 1 / -1; } .rdo-schedule-head { display: none; } .rdo-schedule-list { display: grid; gap: 0.65rem; overflow: visible; border: 0; } .rdo-schedule-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; border: 1px solid var(--line); border-left: 4px solid var(--moss); border-radius: 4px; } .rdo-schedule-row .field-label { display: block; } .rdo-schedule-person, .rdo-schedule-dates, .rdo-schedule-note { grid-column: 1 / -1; } }
@media (max-width: 420px) { .rdo-calendar { font-size: 0.72rem; } .rdo-weekday { padding: 0.25rem 0.1rem; font-size: 0.58rem; } .rdo-day { min-height: 3.8rem; } .rdo-day a { inset: 1.35rem 0.15rem 0.15rem; } }
.office-schedule-calendar-controls { margin-bottom: 0.75rem; }
.office-schedule-calendar-controls .rdo-calendar-controls { grid-template-columns: minmax(10rem, 0.65fr) auto minmax(9rem, auto); }
.office-schedule-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.office-schedule-weekday { padding: 0.38rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f1f4f2; color: var(--muted); font-size: 0.68rem; font-weight: 750; text-align: center; text-transform: uppercase; }
.office-schedule-day { min-height: 8rem; padding: 0.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.office-schedule-day.outside { background: #f4f6f5; color: #9ba49f; }
.office-schedule-day.today { box-shadow: inset 0 0 0 2px var(--cedar); }
.office-schedule-day-heading { display: flex; align-items: center; justify-content: space-between; min-height: 1.3rem; }
.office-schedule-day-heading > strong { font-size: 0.78rem; }
.office-schedule-day-heading > a { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1px solid var(--line); border-radius: 3px; color: var(--cedar); font-weight: 800; text-decoration: none; }
.office-schedule-day-heading > a:hover { border-color: var(--cedar); background: var(--success-surface); }
.office-schedule-day-items { display: grid; gap: 0.22rem; margin-top: 0.35rem; }
.office-schedule-entry { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.18rem 0.35rem; padding: 0.25rem 0.32rem; border: 1px solid #aebfb5; border-left: 3px solid var(--moss); border-radius: 3px; background: #f5faf7; color: var(--ink); font-size: 0.66rem; line-height: 1.2; text-decoration: none; }
.office-schedule-entry:hover { border-color: var(--cedar); background: var(--success-surface); }
.office-schedule-entry > span { color: var(--muted); font-size: 0.58rem; font-weight: 750; white-space: nowrap; }
.office-schedule-entry > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-schedule-entry > small { grid-column: 1 / -1; overflow: hidden; color: var(--muted); font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }
.office-schedule-agenda { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.office-schedule-agenda-list { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.office-schedule-agenda-row { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr) auto; gap: 0.85rem; align-items: start; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); background: var(--panel); }
.office-schedule-agenda-row:last-child { border-bottom: 0; }
.office-schedule-date { display: grid; gap: 0.08rem; padding-right: 0.65rem; border-right: 1px solid var(--line); }
.office-schedule-date strong { color: var(--cedar); font-size: 0.9rem; }
.office-schedule-date span, .office-schedule-agenda-row p, .office-schedule-agenda-row small { color: var(--muted); font-size: 0.72rem; }
.office-schedule-agenda-row h3 { margin: 0; font-size: 0.96rem; }
.office-schedule-agenda-row p { margin: 0.16rem 0; }
.office-schedule-agenda-row .office-schedule-details { color: var(--ink); }
.office-schedule-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1rem; }
.office-schedule-form-wide { grid-column: 1 / -1; }
.office-print-options { max-width: 46rem; }
.office-print-selector fieldset { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 5px; }
.office-print-selector legend { padding: 0 0.25rem; color: var(--ink); font-size: 0.94rem; font-weight: 750; }
.office-print-people ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.85rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.office-print-people li { min-width: 0; }
.office-print-people label { display: flex; align-items: center; gap: 0.45rem; min-height: 2.4rem; padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 4px; background: #f8faf9; color: var(--ink); font-weight: 650; }
.office-print-people label:hover { border-color: var(--cedar); background: var(--success-surface); }
.office-print-people input { width: auto; margin: 0; }
.office-print-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-bottom: 1.25rem; }
.office-print-heading { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 2px solid var(--cedar); }
.office-print-heading h1 { margin: 0.12rem 0; }
.office-print-heading p { margin: 0; color: var(--muted); }
.office-print-generated { align-self: flex-end; font-size: 0.78rem; }
.office-print-included { margin: 0.85rem 0 1rem; color: var(--muted); font-size: 0.8rem; }
.office-print-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.office-print-calendar > div { padding: 0.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #edf3ef; color: var(--muted); font-size: 0.68rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.office-print-day { min-height: 8rem; padding: 0.38rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.office-print-day.outside { background: #f4f4f4; color: #999; }
.office-print-day-number { display: block; margin-bottom: 0.3rem; font-size: 0.78rem; }
.office-print-calendar-entry { display: grid; gap: 0.08rem; margin-bottom: 0.25rem; padding: 0.22rem 0.26rem; border: 1px solid #aebfb5; border-left: 3px solid var(--moss); border-radius: 2px; color: var(--ink); font-size: 0.62rem; line-height: 1.18; }
.office-print-calendar-entry span, .office-print-calendar-entry small { color: var(--muted); font-size: 0.56rem; }
@media print { body { font-size: 10pt; } .site-header, .skip-link, .office-print-actions { display: none !important; } .page { width: auto; margin: 0; } .office-print-page { display: block; max-width: none; min-height: 0; padding: 0; } .office-print-heading { align-items: end; min-height: 0; margin: 0; padding: 0 0 0.1in; border-color: #111; } .office-print-heading h1 { margin: 0.03in 0; font-size: 19pt; font-weight: 800; } .office-print-heading .eyebrow { font-size: 7pt; font-weight: 800; } .office-print-heading p { font-size: 9.5pt; font-weight: 700; } .office-print-generated { font-size: 7pt !important; font-weight: 650 !important; } .office-print-included { margin: 0.07in 0 0.08in; color: #111; font-size: 7.5pt; } .office-print-calendar { height: 5.65in; border-color: #777; break-before: auto; break-inside: avoid; page-break-before: auto; page-break-inside: avoid; grid-auto-rows: minmax(0, 1fr); } .office-print-calendar-weeks-5 { grid-template-rows: 0.22in repeat(5, minmax(0, 1fr)); } .office-print-calendar-weeks-6 { grid-template-rows: 0.22in repeat(6, minmax(0, 1fr)); } .office-print-calendar > div { padding: 0.05in; border-color: #777; background: #e9e9e9; color: #111; font-size: 7.5pt; font-weight: 800; } .office-print-day { min-height: 0; padding: 0.055in; border-color: #777; } .office-print-day.outside { background: #f5f5f5; color: #666; } .office-print-day-number { margin-bottom: 0.04in; color: #111; font-size: 8.5pt; font-weight: 800; } .office-print-calendar-entry { gap: 0.02in; margin-bottom: 0.035in; padding: 0.035in 0.045in; border-color: #555; border-left: 0.04in solid #111; border-radius: 0; color: #111; font-size: 7.5pt; font-weight: 750; line-height: 1.1; } .office-print-calendar-entry strong { font-weight: 800; } .office-print-calendar-entry span, .office-print-calendar-entry small, .office-print-heading, .office-print-included { color: #111; font-size: 6.5pt; font-weight: 650; } }
@media (max-width: 720px) { .office-schedule-calendar-controls .rdo-calendar-controls { grid-template-columns: 1fr; } .office-schedule-calendar { display: block; border: 0; } .office-schedule-weekday { display: none; } .office-schedule-day { min-height: 0; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 0.5rem; } .office-schedule-day.outside { display: none; } .office-schedule-day-heading::after { margin-left: 0.35rem; color: var(--muted); content: attr(data-date); } .office-schedule-agenda-row { grid-template-columns: 1fr; gap: 0.5rem; } .office-schedule-date { grid-template-columns: auto 1fr; align-items: baseline; gap: 0.35rem; padding: 0 0 0.45rem; border-right: 0; border-bottom: 1px solid var(--line); } .office-schedule-form { grid-template-columns: 1fr; } .office-schedule-form-wide { grid-column: auto; } .office-print-people ul { grid-template-columns: 1fr; } .office-print-actions { justify-content: stretch; flex-direction: column; } .office-print-actions .button { width: 100%; } .office-print-heading { align-items: flex-start; flex-direction: column; } .office-print-generated { align-self: auto; } .office-print-calendar { display: block; border: 0; } .office-print-calendar > div { display: none; } .office-print-day { min-height: 0; margin-bottom: 0.5rem; border: 1px solid var(--line); } .office-print-day.outside { display: none; } }
@media print { .site-header, .no-print, .messages, .rdo-schedule-summary { display: none !important; } body { background: #fff; font-size: 10pt; } .page { width: 100%; margin: 0; } .panel { border: 0; box-shadow: none; padding: 0; } .print-heading { display: flex; justify-content: space-between; margin-bottom: 0.5rem; } .table-wrap { border: 0; } .data-table th { position: static; } .rdo-schedule-head, .rdo-schedule-row { grid-template-columns: 0.9fr 1.3fr 0.3fr 0.75fr 0.8fr 0.9fr 1fr; } .rdo-schedule-head.purpose-hidden, .rdo-schedule-row.purpose-hidden { grid-template-columns: 0.9fr 1.3fr 0.3fr 0.8fr 0.9fr 1fr; } .rdo-schedule-row { break-inside: avoid; padding: 0.45rem; } .pdf-reader { border: 0; } .pdf-reader-status { display: none; } .pdf-reader-pages { display: block; min-height: 0; padding: 0; overflow: visible; background: #fff; } .pdf-reader-page { width: 100%; margin: 0; border: 0; box-shadow: none; break-after: page; page-break-after: always; } .pdf-reader-page:last-child { break-after: auto; page-break-after: auto; } .pdf-reader-page canvas { width: 100% !important; height: auto !important; } }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.7fr); gap: 1rem; align-items: start; }
.catalog-layout h2 { margin-top: 0; }
.catalog-create { padding-left: 1rem; border-left: 1px solid var(--line); }
.personnel-requirements-panel { max-width: none; }
.requirement-list { display: grid; border-top: 1px solid var(--line); }
.requirement-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.55rem; border-bottom: 1px solid var(--line); background: #edf2ef; }
.requirement-section-heading:not(:first-child) { margin-top: 0.45rem; border-top: 1px solid var(--line); }
.requirement-section-heading h3 { margin: 0; color: #294938; font-size: 0.78rem; text-transform: uppercase; }
.requirement-section-heading span { color: var(--muted); font-size: 0.68rem; font-weight: 700; }
.requirement-row { display: grid; grid-template-columns: minmax(14rem, 1.4fr) 6rem 9rem 9rem 10rem 9rem minmax(12rem, 1fr); gap: 0.5rem; align-items: end; padding: 0.65rem 0.55rem; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 transparent; transition: background-color 140ms ease, box-shadow 140ms ease; }
.requirement-row[hidden] { display: none; }
.requirement-row > * { min-width: 0; }
.requirement-row input, .requirement-row select, .requirement-row textarea { min-width: 0; max-width: 100%; }
.requirement-row-dependent { padding-left: 1.35rem; }
.requirement-row-dependent .requirement-name { position: relative; }
.requirement-row-dependent .requirement-name::before { position: absolute; left: -0.85rem; content: ">"; color: var(--muted); }
.requirement-row label { display: grid; gap: 0.2rem; color: #39443e; font-size: 0.72rem; font-weight: 700; }
.requirement-name { display: grid; align-self: center; }
.requirement-name span, .requirement-name small { color: var(--muted); font-size: 0.72rem; }
.requirement-row .check-label { display: flex; align-items: center; align-self: center; gap: 0.35rem; }
.requirement-row-inactive label:not(.check-label), .requirement-row-inactive .requirement-name { opacity: 0.62; }
.requirement-state-completed { background: rgb(65 126 88 / 7%); box-shadow: inset 3px 0 #4f8a65; }
.requirement-state-expected { background: rgb(177 122 34 / 6%); box-shadow: inset 3px 0 #b17a22; }
.requirement-state-in-progress { background: rgb(55 112 145 / 7%); box-shadow: inset 3px 0 #477f9f; }
.requirement-state-exempt { background: rgb(105 115 109 / 5%); box-shadow: inset 3px 0 #8a9690; }
.requirement-state-not-applicable { background: rgb(105 115 109 / 3%); box-shadow: inset 3px 0 #b5bdb8; }
.requirement-state-attention { background: rgb(139 48 45 / 8%); box-shadow: inset 3px 0 var(--danger); }
.requirement-attention { width: fit-content; margin-top: 0.25rem; padding: 0.12rem 0.35rem; border: 1px solid #d7a6a0; border-radius: 3px; background: #fff0ee; color: #7c2f28 !important; font-size: 0.65rem !important; font-weight: 750; }
.requirement-note textarea { min-height: 2.2rem; }
.requirement-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; min-width: 0; min-height: 1rem; }
.requirement-completed > input { width: 100%; min-width: 0; }
.date-today-button { flex: 0 0 auto; min-height: 0; padding: 0; border: 0; background: transparent; color: #2f7d5b; font-size: 0.66rem; font-weight: 750; line-height: 1; white-space: nowrap; cursor: pointer; }
.date-today-button:hover, .date-today-button:focus-visible { background: #e3ebe6; color: #173f2c; }
.date-today-button:disabled { cursor: not-allowed; opacity: 0.55; }
.requirement-save-bar { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; padding: 0.65rem 0; background: var(--panel); border-top: 1px solid var(--line); }
.requirement-save-bar span { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.requirement-save-bar .is-dirty { color: var(--gold); }
.employment-history-form { display: grid; gap: 0.65rem; }
.employment-period-list { max-height: 22rem; overflow-y: auto; padding-right: 0.35rem; scrollbar-gutter: stable; overscroll-behavior: contain; }
.employment-period-list:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.employment-period-row { display: grid; grid-template-columns: minmax(8.5rem, 0.7fr) minmax(8.5rem, 0.7fr) minmax(14rem, 1.8fr) auto; gap: 0.65rem; align-items: end; padding: 0.65rem 0; border-top: 1px solid var(--line); }
.employment-period-row label { display: grid; gap: 0.25rem; font-size: 0.78rem; font-weight: 700; }
.employment-period-new { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.employment-period-new[hidden] { display: none; }
.employment-history-actions { justify-content: space-between; }
@media (max-width: 720px) { .employment-period-list { max-height: 28rem; padding-right: 0.2rem; } .employment-period-row { grid-template-columns: 1fr 1fr; } .employment-period-row label:nth-of-type(3) { grid-column: 1 / -1; } }
@media (max-width: 1050px) { .requirement-row { grid-template-columns: minmax(12rem, 1fr) repeat(4, minmax(7rem, 0.5fr)); } .requirement-name, .requirement-note { grid-column: 1 / -1; } }
@media (max-width: 1050px) { .people-editor { grid-template-columns: 1fr; } .people-editor > * { grid-column: 1; } }
@media (max-width: 1050px) { .people-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .access-fieldset:nth-child(2) { border-right: 0; } .access-fieldset:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 720px) { .catalog-layout { grid-template-columns: 1fr; } .catalog-create { padding: 1rem 0 0; border-top: 1px solid var(--line); border-left: 0; } .requirement-row { grid-template-columns: 1fr 1fr; } .requirement-name, .requirement-note { grid-column: 1 / -1; } }
.login-panel { margin: clamp(1rem, 7vh, 5rem) auto 0; }
.account-security-panel { margin: clamp(1rem, 5vh, 3.5rem) auto 0; }
.login-panel .button { width: 100%; min-height: 2.6rem; }

@media (max-width: 900px) {
  :root { --header-offset: 6.75rem; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 0.35rem; padding-bottom: 0.45rem; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: thin; }
  .site-nav > * { flex: 0 0 auto; }
  .account-menu { margin-left: auto; }
  .library-search, .library-search.management-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-search .search-field { grid-column: 1 / -1; }
  .retention-actions { grid-template-columns: 11rem minmax(10rem, auto) minmax(18rem, 1fr); }
  .report-entry-actions { grid-template-columns: 1fr; }
  .report-entry-actions .choice { min-height: 0; }
  .report-review-layout { grid-template-columns: 1fr; }
  .site-action-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .site-action-row > small { padding-left: 0; text-align: left; }
}

@media (max-width: 720px) {
  body { font-size: 13.5px; }
  .site-header { position: sticky; top: 0; }
  .brand-title { font-size: 0.82rem; }
  .site-nav { display: flex; }
  .site-nav > .nav-link, .nav-menu summary { white-space: nowrap; text-align: left; }
  .nav-menu { position: relative; }
  .nav-menu-panel, .nav-menu-right { position: fixed; top: 6.9rem; right: 0.5rem; left: 0.5rem; max-height: calc(100vh - 7.5rem); overflow-y: auto; }
  .page { width: 100%; margin-top: 0.5rem; }
  .panel { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .panel.narrow { max-width: none; }
  .people-identity-grid, .people-access-grid, .lifecycle-form { grid-template-columns: 1fr; }
  .timeclock-release-form { align-items: stretch; flex-direction: column; }
  .cross-training-timeclock-form { grid-template-columns: 1fr; }
  .cross-training-timeclock-form .timeclock-reuse-option { grid-column: 1; }
  .access-fieldset { border-right: 0; border-bottom: 1px solid var(--line); }
  .access-fieldset:last-child { border-bottom: 0; }
  .access-fieldset .helptext { min-height: 0; }
  .lifecycle-form > * { grid-column: 1; }
  .section-header { align-items: flex-start; }
  .page-header-actions { width: 100%; justify-content: flex-start; }
  .report-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-facts div:nth-child(even) { border-right: 0; }
  .report-facts div { border-bottom: 1px solid var(--line); }
  .report-facts div:last-child { border-bottom: 0; }
  .section-header > .button { align-self: flex-start; }
  .library-search, .library-search.management-search { grid-template-columns: 1fr; }
  .library-search .search-field { grid-column: auto; }
  .doc-toolbar { position: static; grid-template-columns: 1fr; }
  .document-modes, .doc-toolbar > .document-modes { grid-column: 1; grid-row: auto; justify-self: start; }
  .document-text-panel .section-header { grid-template-columns: 1fr; }
  .document-viewer iframe { min-height: 72vh; }
  .site-check-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-check-summary > div:nth-child(2) { border-right: 0; }
  .site-check-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .checklist-manage-item { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .checklist-review-actions { grid-column: 2; width: 100%; }
  .action-review-panel { min-width: 0; }
  .checklist-entry-row { grid-template-columns: 1fr; }
  .checklist-entry-title, .checklist-entry-details, .remove-checklist-entry { grid-column: 1; }
  .checklist-source-file { grid-template-columns: 1fr; }
  .checklist-save-bar { bottom: 0.25rem; flex-wrap: wrap; }
  .checklist-save-bar .meta { flex-basis: 100%; order: -1; }
  .site-check-thumbnail:is(:hover, :focus-visible) img { transform: none; box-shadow: none; }
  .site-action-counts { justify-content: flex-start; width: 100%; }
  .formatted-reader-tools { grid-template-columns: 1fr; }
  .formatted-document { width: calc(100% - 1rem); max-height: 72vh; margin-top: 0.5rem; padding: 1.1rem; }
  .document-reader-count { width: calc(100% - 1rem); }
  .response-review-form { grid-template-columns: 1fr; min-width: 16rem; }
}

@media (max-width: 520px) {
  :root { --header-offset: 5.15rem; }
  .site-header { min-height: 0; padding: 0.42rem 0.65rem 0.3rem; }
  .brand { gap: 0.5rem; }
  .brand-logo { width: 1.85rem; height: 1.85rem; }
  .brand-subtitle { display: none; }
  .site-nav { gap: 0.1rem; margin-inline: -0.2rem; }
  .nav-link, .nav-menu summary { padding: 0.42rem 0.5rem; font-size: 0.78rem; }
  .nav-count { min-width: 1rem; height: 1rem; margin-left: 0.2rem; font-size: 0.6rem; }
  .nav-menu-panel, .nav-menu-right { top: 5.25rem; max-height: calc(100vh - 5.75rem); }

  .page { margin: 0.35rem 0 1.5rem; }
  .panel { padding: 0.85rem 0.75rem; }
  .panel h1 { font-size: 1.35rem; }
  .section-header { margin-bottom: 0.7rem; }
  .section-header > .button, .section-header > div + a.button { width: 100%; }
  .reader-bar { align-items: stretch; flex-direction: column; }
  .reader-bar .button { width: 100%; text-align: center; }
  .action-bar { display: grid; grid-template-columns: 1fr; }
  .action-bar .button { width: 100%; }
  .rdo-pathways { grid-template-columns: 1fr; }

  .communication-actions { grid-template-columns: 1fr; gap: 0.4rem; }
  .communication-actions a { min-height: 0; padding: 0.62rem 0.7rem; }
  .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-summary a { padding: 0.6rem; }
  .dashboard-summary strong { font-size: 1.1rem; }
  .dashboard-primary-actions { width: 100%; }
  .dashboard-tool-shelf > summary { align-items: flex-start; flex-direction: column; gap: 0.1rem; }
  .work-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .work-row small { text-align: left; }
  .site-check-row-metrics { justify-content: flex-start; align-items: flex-start !important; flex-wrap: wrap; }
  .site-check-row-metrics small { flex-wrap: wrap; }
  .managed-assignment-progress { justify-items: start; }
  .dashboard-report-row { padding-inline: 0.75rem 0.7rem; }
  .dashboard-report-row .report-title-line { align-items: flex-start; flex-direction: column; gap: 0.3rem; }
  .dashboard-report-row > .request-state-label { padding: 0.35rem 0 0; border-top: 1px solid var(--line); border-left: 0; white-space: normal; }
  .queue-links { display: grid; }

  .library-search { padding: 0.55rem; }
  .document-row { grid-template-columns: minmax(0, 1fr) 0.75rem; gap: 0.45rem; padding: 0.6rem 0.2rem; }
  .document-main small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .document-locations span { font-size: 0.66rem; }
  .document-modes { width: 100%; }
  .mode-button { flex: 1; }
  .document-viewer iframe { min-height: 68vh; }
  .document-text { max-height: 68vh; padding: 0.55rem; font-size: 0.78rem; }

  .filter-bar { display: grid; grid-template-columns: 1fr; }
  .filter-bar p, .filter-bar > label { min-width: 0; width: 100%; }
  .filter-bar .button { width: 100%; }
  .search-form { padding: 0.55rem; }
  .queue-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue-tabs a { display: grid; place-items: center; min-height: 2.65rem; text-align: center; }
  .button { min-height: 2.65rem; white-space: normal; text-align: center; }
  .result-count { align-self: center; }
  .report-facts { grid-template-columns: 1fr; }
  .report-facts div { border-right: 0; }
  .site-check-record-meta { display: grid; gap: 0.2rem; }
  .site-check-record-meta span + span { padding-left: 0; border-left: 0; }
  .assignment-record-meta { display: grid; gap: 0.2rem; }
  .assignment-record-meta span + span { padding-left: 0; border-left: 0; }
  .discussion-form { grid-template-columns: 1fr; }
  .discussion-form .button { width: 100%; }

  .table-wrap { margin-inline: -0.75rem; border-right: 0; border-left: 0; border-radius: 0; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .data-table { min-width: 42rem; font-size: 0.75rem; }
  .data-table th, .data-table td { padding: 0.48rem 0.5rem; }
  .data-table th:first-child, .data-table td:first-child { position: sticky; left: 0; z-index: 2; max-width: 10rem; background: #fff; box-shadow: 1px 0 0 var(--line); }
  .data-table th:first-child { z-index: 3; background: #f1f4f2; }
  .people-rosters { gap: 0.75rem; }
  .onboarding-callout { align-items: stretch; flex-direction: column; }
  .onboarding-callout .button { width: 100%; }
  .onboarding-list { grid-template-columns: 1fr; }
  .people-roster { margin-inline: -0.75rem; border-right: 0; border-left: 0; border-radius: 0; }
  .people-roster-header { align-items: flex-start; padding: 0.6rem 0.75rem; }
  .people-roster-header p { display: none; }
  .people-roster .table-wrap { margin-inline: 0; }

  .review-layout { gap: 0.8rem; }
  .review-summary { padding: 0.75rem; }
  .meta-list.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .meta-list div { gap: 0.35rem; }
  .message { max-width: 100%; }
  .reminder-form, .attachment-form, .evidence-complete-form { min-width: 0; }

  .login-panel { margin-top: 0.75rem; }
  .login-brand img { width: 4.5rem; height: 4.5rem; }
  .hero { display: block; min-height: 0; padding: 1rem 0.75rem 1.5rem; text-align: center; }
  .hero-logo { width: min(62vw, 15rem); max-height: 13rem; margin-bottom: 0.75rem; }
  .hero h1 { font-size: 2rem; }
  .hero .actions { display: grid; }
  .hero .button { width: 100%; }
  .location-brand { min-height: 8rem; }
  .location-brand img { height: 6.5rem; }

  .kiosk-shell { width: 100%; padding: 0.75rem; }
  .kiosk-header { gap: 0.75rem; padding-bottom: 0.75rem; margin-bottom: 0.75rem; }
  .kiosk-header img { width: 4.5rem; height: 4.5rem; }
  .kiosk-header h1 { font-size: 1.45rem; }
  .kiosk-form { padding: 0.85rem; }
  .kiosk-actions { gap: 0.45rem; }
  .kiosk-actions span { min-height: 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* 2026 compact operations design system */
:root {
  --ink: #17211c;
  --muted: #59665f;
  --line: #cfd8d3;
  --line-strong: #aebdb5;
  --paper: #edf2ef;
  --panel: #ffffff;
  --surface-subtle: #f5f8f6;
  --cedar: #1f5a40;
  --moss: #367056;
  --gold: #ad7418;
  --header: #10251b;
  --focus: #d09a34;
  --shadow: 0 1px 2px rgb(16 37 27 / 5%), 0 10px 30px rgb(16 37 27 / 6%);
}

body {
  background: var(--paper);
  font-size: 13.5px;
}

.site-header {
  min-height: 3.5rem;
  padding: 0.45rem clamp(1rem, 2.5vw, 2.25rem);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  box-shadow: 0 2px 12px rgb(10 25 17 / 12%);
}

.brand-logo {
  width: 2rem;
  height: 2rem;
}

.brand-title {
  font-size: 0.86rem;
  font-weight: 760;
}

.site-nav {
  gap: 0.05rem;
}

.nav-link,
.nav-menu summary {
  padding: 0.44rem 0.58rem;
  border-radius: 3px;
  font-size: 0.82rem;
}

.nav-link:hover,
.nav-menu summary:hover,
.nav-menu[open] summary {
  background: rgb(255 255 255 / 10%);
}

.nav-menu-panel {
  padding: 0.3rem;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgb(7 20 13 / 22%);
}

.nav-menu-panel a,
.nav-menu-panel button {
  min-height: 2.15rem;
  padding: 0.48rem 0.58rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
}

.page {
  width: min(1360px, calc(100% - 1.5rem));
  margin: 0.75rem auto 2rem;
}

.panel {
  padding: 1rem 1.1rem;
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.panel.narrow {
  max-width: 900px;
}

.panel h1 {
  font-size: 1.5rem;
  line-height: 1.15;
}

.page-header {
  min-height: 3.6rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.65rem;
}

.page-header-copy {
  gap: 0.12rem;
}

.page-header-copy > .meta,
.section-header .help-text {
  max-width: 68ch;
}

/* Distillation pass: primary operational lists should lead with the work, not narration. */
.page-header-quiet {
  min-height: 0;
  align-items: center;
}

.page-header-quiet .page-header-copy {
  gap: 0.08rem;
}

.page-header-quiet .page-header-copy > .meta,
.page-header-quiet .help-text {
  margin-top: 0.1rem;
  font-size: 0.76rem;
}

.page-header-quiet > :not(.page-header-copy) {
  align-self: center;
}

.archive-result-summary {
  justify-content: flex-start;
  min-height: 2rem;
}

.site-action-section > .section-header.tight {
  align-items: center;
}

.section-header {
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.eyebrow {
  margin-bottom: 0.15rem;
  color: #627168;
  font-size: 0.66rem;
}

.meta,
.privacy-note,
.help-text {
  color: var(--muted);
}

.button {
  min-height: 2.2rem;
  padding: 0.42rem 0.7rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.button.secondary {
  background: #fff;
}

input,
select,
textarea {
  min-height: 2.15rem;
  border-color: #bcc9c2;
  border-radius: 3px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 2px rgb(54 112 86 / 10%);
}

.filter-bar,
.search-form,
.library-search {
  padding: 0.6rem;
  border-radius: 4px;
  background: #f4f7f5;
}

.resource-item,
.choice,
.people-roster,
.rdo-employee-group,
.rdo-day-section,
.rdo-schedule-list,
.table-wrap {
  border-radius: 4px;
}

.resource-item {
  padding: 0.7rem 0.75rem;
}

.resource-list {
  gap: 0.5rem;
}

.status-badge,
.access-label,
.readiness-badge,
.roster-count {
  border-radius: 2px;
}

.data-table th,
.data-table td {
  padding: 0.5rem 0.58rem;
}

.data-table th {
  background: #edf2ef;
}

.dashboard-summary {
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.dashboard-summary a {
  min-height: 4.35rem;
  padding: 0.62rem 0.7rem;
  border-radius: 3px;
}

.dashboard-summary strong {
  font-size: 1.18rem;
}

.dashboard-grid {
  gap: 0.8rem 1rem;
}

.dashboard-section {
  padding-top: 0.5rem;
}

.dashboard-priority-queues {
  margin-bottom: 0.7rem !important;
}

.work-row {
  padding-block: 0.44rem;
}

.people-rosters,
.report-location-groups,
.site-check-location-groups,
.document-management-groups {
  gap: 0.75rem;
}

.people-roster-header {
  padding: 0.55rem 0.65rem;
}

.people-table {
  font-size: 0.76rem;
}

.report-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.8rem;
}

.report-create-form > p {
  min-width: 0;
}

.report-create-form > p:has(textarea),
.report-create-form > p:has(input[type="file"]),
.report-create-form > .direct-recipient-field,
.report-create-form > .report-copy-recipients,
.report-create-form > .phone-file-source,
.report-create-form > .action-bar,
.report-create-form > .errorlist {
  grid-column: 1 / -1;
}

.report-create-form textarea {
  min-height: 7rem;
}

.report-copy-recipients {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-muted, #f7f9f8);
}

.report-copy-recipients > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.report-copy-recipients > summary::-webkit-details-marker { display: none; }
.report-copy-recipients > summary::after { content: "+"; margin-left: 0.15rem; color: var(--cedar); font-size: 1rem; font-weight: 800; }
.report-copy-recipients[open] > summary { border-bottom: 1px solid var(--line); }
.report-copy-recipients[open] > summary::after { content: "-"; }
.report-copy-recipients > summary span { margin-left: auto; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.report-copy-recipient-content { padding: 0.65rem 0.7rem 0.7rem; }
.report-copy-recipient-content .meta { margin: 0 0 0.55rem; }
.recipient-choice-list ul { max-height: 11rem; overflow-y: auto; }
.report-copy-recipients.has-errors { border-color: var(--danger); }

.file-source-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.file-source-row > input[type="file"] {
  flex: 1 1 auto;
  min-width: 0;
}

.report-file-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-muted, #f7f9f8);
}

.report-file-queue-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.28rem 0.35rem 0.28rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface, #fff);
  color: var(--text);
  font-size: 0.78rem;
}

.report-file-queue-item > span {
  overflow: hidden;
  max-width: 18rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-file-remove {
  min-height: 1.5rem;
  padding: 0.1rem 0.35rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--cedar);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.report-file-remove:hover { color: var(--danger); }

.phone-file-source {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  vertical-align: middle;
}

.phone-file-source .button {
  min-height: 2.25rem;
  padding-block: 0.4rem;
}

.phone-file-source.has-files [data-phone-upload-status] {
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 560px) {
  .file-source-row {
    align-items: stretch;
    flex-direction: column;
  }

  .phone-file-source {
    align-items: flex-start;
    flex-direction: column;
  }
}

.rdo-page,
.rdo-personal-history,
.rdo-personal-table {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  :root {
    --header-offset: 3.45rem;
  }

  body {
    font-size: 13.5px;
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    min-height: 3.4rem;
    padding: 0.4rem 0.7rem;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    min-width: 0;
  }

  .brand-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.52rem;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
  }

  .nav-toggle-icon {
    display: grid;
    gap: 3px;
    width: 1rem;
  }

  .nav-toggle-icon span {
    display: block;
    height: 1px;
    background: currentColor;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    max-height: calc(100vh - 4.2rem);
    margin: 0.2rem -0.7rem -0.4rem;
    padding: 0.35rem 0.7rem 0.7rem;
    overflow: auto;
    border-top: 1px solid rgb(255 255 255 / 12%);
    background: var(--header);
  }

  .nav-open .site-nav {
    display: grid;
  }

  .site-nav > .nav-link,
  .nav-menu summary {
    min-height: 2.5rem;
    padding: 0.62rem;
    text-align: left;
  }

  .nav-menu,
  .account-menu {
    position: static;
    margin: 0;
  }

  .nav-menu-panel,
  .nav-menu-right {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-height: none;
    margin-top: 0.2rem;
    border-color: rgb(255 255 255 / 12%);
    background: #fff;
    box-shadow: none;
  }

  .nav-menu[open] {
    grid-column: 1 / -1;
  }

  .nav-menu[open] > summary {
    background: rgb(255 255 255 / 12%);
  }

  .page {
    width: 100%;
    margin: 0.35rem 0 1.25rem;
  }

  .panel {
    padding: 0.85rem 0.75rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .panel h1 {
    font-size: 1.35rem;
  }

  .report-create-form {
    grid-template-columns: 1fr;
  }

  .report-create-form > * {
    grid-column: 1;
  }

  .rdo-personal-history {
    width: 100%;
    margin-inline: 0;
    overflow: visible;
  }

  .data-table.rdo-personal-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .rdo-personal-table tbody,
  .rdo-personal-table .rdo-personal-row {
    width: 100%;
    min-width: 0;
  }

  .rdo-personal-table .rdo-personal-row > td {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .site-nav {
    grid-template-columns: 1fr;
  }

  .nav-menu[open] {
    grid-column: 1;
  }

  .dashboard-summary {
    gap: 0.35rem;
  }

  .dashboard-summary a {
    min-height: 4rem;
    padding: 0.55rem;
  }
}

/* Scheduled flags */
.scheduled-flag-nav {
  gap: 0.38rem;
}

.clock-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: #9fc8e1;
}

.clock-mark::before,
.clock-mark::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  background: currentColor;
  content: "";
  transform-origin: 50% 0;
}

.clock-mark::before {
  height: 0.28rem;
  transform: translate(-50%, -100%);
}

.clock-mark::after {
  height: 0.25rem;
  transform: translate(-50%, 0) rotate(-52deg);
}

.scheduled-flag-nav.has-flag-attention {
  background: rgb(84 151 191 / 18%);
  color: #d9f0ff;
}

.flag-nav-count {
  border-color: #6ba6cb !important;
  background: #2e6f98 !important;
  color: #fff !important;
}

.dashboard-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flag-dashboard-status {
  position: relative;
  grid-template-columns: auto 1fr;
  column-gap: 0.45rem;
}

.flag-dashboard-status .dashboard-clock {
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.35rem;
  height: 1.35rem;
}

.flag-dashboard-status.flag-status-clear {
  border-left: 3px solid #7aa6be;
  background: #f1f7fa;
}

.flag-dashboard-status.flag-status-attention {
  border-color: #6d9fbd;
  border-left: 4px solid #347ca5;
  background: #e9f4fa;
  color: #174b69;
}

.scheduled-flag-dashboard {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--info-border);
  border-left: 4px solid #347ca5;
  background: var(--info-surface);
}

.dashboard-flag-list {
  border-top: 1px solid var(--info-border);
}

.dashboard-flag-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.58rem 0.2rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--info-border);
}

.dashboard-flag-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.dashboard-flag-row small {
  color: var(--muted);
}

.dashboard-flag-row.flag-overdue strong {
  color: var(--danger-text);
}

.flags-workspace,
.flag-detail,
.flag-form-panel {
  max-width: 76rem;
}

.flag-form {
  display: grid;
  gap: 1rem;
}

.flag-form-main {
  display: grid;
  gap: 0.75rem;
}

.flag-form label,
.flag-inline-form label {
  display: grid;
  gap: 0.28rem;
  font-weight: 700;
}

.flag-form label small,
.flag-inline-form label small {
  color: var(--muted);
  font-weight: 400;
}

.flag-recipient-picker {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.flag-recipient-picker > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.flag-recipient-picker > summary::-webkit-details-marker {
  display: none;
}

.flag-recipient-picker > summary::before {
  content: "+";
  color: var(--link);
  font-size: 1.15rem;
  font-weight: 800;
}

.flag-recipient-picker[open] > summary {
  border-bottom: 1px solid var(--line);
}

.flag-recipient-picker[open] > summary::before {
  content: "−";
}

.flag-recipient-picker > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.flag-recipient-picker-content {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.flag-recipient-picker-content > .meta {
  margin: 0;
}

.recipient-picker-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.recipient-picker-search {
  display: grid;
  gap: 0.28rem;
  max-width: 28rem;
  font-weight: 700;
}

.recipient-check-grid > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
}

.current-flag-recipients {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.current-flag-recipients > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.current-flag-recipients span {
  padding: 0.22rem 0.42rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.8rem;
}

.recipient-check-grid label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.recipient-check-grid label:has(input:checked) {
  border-color: var(--success-border);
  background: var(--success-surface);
}

.flag-schedule-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) repeat(4, minmax(8rem, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.choice-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem !important;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
}

.choice-row > span {
  display: grid;
}

.flag-occurrence-list {
  border-top: 1px solid var(--line-strong);
}

.flag-occurrence {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.7rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid #7aa6be;
  background: #fff;
}

.flag-occurrence.flag-due {
  border-left-color: var(--attention-border);
  background: var(--attention-surface);
}

.flag-occurrence.flag-overdue {
  border-left-color: var(--danger);
  background: var(--danger-surface);
}

.flag-occurrence.flag-complete {
  border-left-color: var(--success-border);
  background: var(--success-surface);
}

.flag-time-marker {
  padding-top: 0.25rem;
  color: #347ca5;
}

.flag-time-marker span {
  display: block;
  width: 0.68rem;
  height: 0.68rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.flag-title-line {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.flag-title-line h2 {
  margin: 0;
  font-size: 1rem;
}

.flag-due-label {
  margin: 0.15rem 0;
  font-weight: 750;
}

.flag-history-summary .record-summary {
  margin-bottom: 0;
}

.flag-completion-history {
  margin-top: 0.65rem;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

.flag-completion-history summary {
  cursor: pointer;
  color: var(--link);
  font-weight: 700;
}

.flag-completion-history ol {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
  padding-left: 1.35rem;
}

.flag-completion-history li {
  color: var(--muted);
}

.flag-completion-history li span {
  display: block;
  margin-top: 0.18rem;
  color: var(--text);
}

.flag-completion-note {
  margin: 0.55rem 0 0;
}

.flag-priority-high {
  border-color: var(--danger-border);
  background: var(--danger-surface);
  color: var(--danger-text);
}

.flag-quick-actions {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.flag-quick-actions details,
.flag-recipient-row details {
  position: relative;
}

.flag-quick-actions summary,
.flag-recipient-row summary {
  list-style: none;
  cursor: pointer;
}

.flag-quick-actions summary::-webkit-details-marker,
.flag-recipient-row summary::-webkit-details-marker {
  display: none;
}

.flag-inline-form {
  position: absolute;
  z-index: 4;
  right: 0;
  display: grid;
  width: min(22rem, calc(100vw - 2rem));
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow);
}

.flag-schedule-register,
.flag-recipient-progress,
.flag-history-grid {
  margin-top: 1.25rem;
}

.flag-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
}

.flag-meta-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-block: 1rem;
}

.flag-schedule-controls {
  display: flex;
  gap: 0.5rem;
  padding-block: 0.75rem;
  border-block: 1px solid var(--line);
}

.flag-recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid #7aa6be;
}

.flag-progress-summary {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.flag-recipient-row > div:first-child {
  display: grid;
}

.flag-recipient-row.flag-due {
  border-left-color: var(--attention-border);
  background: var(--attention-surface);
}

.flag-recipient-row.flag-overdue {
  border-left-color: var(--danger);
  background: var(--danger-surface);
}

.flag-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.flag-history-grid > section {
  min-width: 0;
}

.flag-history-row {
  display: grid;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.flag-history-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.flag-history-row p {
  margin: 0.3rem 0 0;
}

@media (max-width: 1000px) {
  .dashboard-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flag-schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recipient-check-grid > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-summary,
  .flag-schedule-grid,
  .recipient-check-grid > div,
  .flag-history-grid,
  .flag-meta-list {
    grid-template-columns: 1fr;
  }

  .flag-occurrence,
  .flag-recipient-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .flag-time-marker {
    display: none;
  }

  .flag-quick-actions,
  .flag-recipient-row .action-bar {
    flex-wrap: wrap;
  }

  .flag-inline-form {
    position: fixed;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

/* Focused QOL pass: quiet field-operations console */
:root {
  --control-shadow: 0 1px 1px rgb(16 37 27 / 5%);
  --hover-surface: #f1f6f3;
}

button,
.button,
.queue-tabs a,
.communication-actions a,
.resource-item,
.dashboard-status,
.work-row {
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.button {
  box-shadow: var(--control-shadow);
}

.button:hover {
  border-color: #16452f;
  background: #16452f;
}

.button.secondary:hover,
.queue-tabs a:hover {
  border-color: var(--moss);
  background: var(--hover-surface);
  color: #19432f;
}

.button:active {
  transform: translateY(1px);
}

.button:disabled,
button:disabled {
  box-shadow: none;
}

.page-header-copy,
.page-header-actions,
.resource-row-main,
.resource-row-meta,
.report-record-action,
.site-check-record-state,
.assignment-progress,
.transmission-state,
.cash-review-actions {
  min-width: 0;
}

.page-header-copy h1,
.page-header-copy .meta {
  overflow-wrap: anywhere;
}

.page-header-actions {
  align-items: flex-end;
}

.result-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.filter-bar,
.search-form,
.library-search {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%);
}

.filter-bar label,
.search-form label,
.library-search label {
  min-width: 0;
}

.filter-bar label > input,
.filter-bar label > select,
.filter-bar label > textarea,
.search-form label > input,
.search-form label > select,
.library-search label > input,
.library-search label > select {
  min-width: 0;
}

.resource-item:hover,
.people-roster:hover,
.rdo-employee-group:hover {
  border-color: var(--line-strong);
}

.resource-row-meta {
  align-content: start;
}

.resource-row-meta .status-badge,
.site-check-record-state .status-badge,
.assignment-progress .status-badge,
.transmission-state .status-badge,
.cash-review-actions .status-badge,
.report-record-action .status-badge {
  white-space: nowrap;
  text-align: center;
}

.data-table th {
  white-space: nowrap;
}

.table-wrap {
  max-width: 100%;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.empty-state {
  min-height: 5.25rem;
  display: grid;
  place-content: center;
}

.live-update-notice:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Keep the dashboard scannable on phones; one-column detail sections remain intact. */
@media (max-width: 700px) {
  .dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .communication-actions,
  .rdo-pathways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .dashboard-grid,
  .communication-actions,
  .rdo-pathways {
    grid-template-columns: 1fr;
  }

  .page-header-actions {
    align-items: stretch;
  }

  .page-header-actions .button,
  .page-header-actions .result-count {
    width: 100%;
  }

  .result-count {
    justify-content: center;
  }
}

/* People roster presentation: preserve operational detail without making every row a spreadsheet. */
.people-table th,
.people-table td {
  vertical-align: top;
}

.people-table thead th {
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
  border-bottom-color: var(--line-strong);
}

.people-table .people-col-training,
.people-table .people-col-timeoff,
.people-table .people-col-account,
.people-table .people-col-actions {
  border-left: 1px solid var(--line);
}

.people-roster-header .roster-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
}

.roster-attention {
  padding: 0.2rem 0.42rem;
  border: 1px solid var(--attention-border);
  border-radius: 3px;
  background: var(--attention-surface);
  color: var(--attention-text);
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.roster-attention-training {
  border-color: #9aa7b0;
  background: #edf2f5;
  color: #3e5869;
}

.people-table .people-assignment-cell {
  min-width: 13rem;
  max-width: 20rem;
}

.people-assignment-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.people-assignment-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
  margin-top: 0.38rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.people-assignment-locations em {
  color: var(--success-text);
  font-style: normal;
  font-weight: 700;
}

.access-label-muted {
  border-color: #c4cec8;
  background: #f4f6f5;
  color: #59665f;
}

.people-table .people-col-account {
  min-width: 10.75rem;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.people-account-employment,
.people-account-portal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.people-account-portal {
  align-items: flex-start;
  margin-top: 0.42rem;
  padding-top: 0.42rem;
  border-top: 1px solid var(--line);
}

.people-table tbody tr {
  transition: background-color 140ms ease;
}

.people-table tbody tr:hover td {
  background: #f7faf8;
}

.people-table tbody tr:hover td.portal-setup-never_signed_in,
.people-table tbody tr:hover td.portal-setup-password_needed {
  background: #fff5df;
}

.people-table tbody tr:hover td.portal-setup-confirmation_needed {
  background: #eaf4f8;
}

.people-table tbody tr:hover td.portal-setup-complete {
  background: #e8f4ec;
}

.people-table .portal-setup-cell .onboarding-stage {
  max-width: none;
  white-space: nowrap;
}

.people-table .portal-setup-detail {
  max-width: 11rem;
}

@media (max-width: 700px) {
  .people-scope-nav { width: 100%; }
  .people-scope-nav > * { flex: 1 1 auto; justify-content: center; }
  .people-scope-link, .employee-count-summary { justify-content: center; }
  .people-view-note {
    align-items: flex-start;
  }

  .people-table .people-col-training,
  .people-table .people-col-timeoff,
  .people-table .people-col-account,
  .people-table .people-col-actions {
    border-left-color: #d6dfda;
  }

  .people-roster-header .roster-summary {
    justify-content: flex-start;
  }
}

/* Optional color-vision-friendly status theme. Meaning remains available in text and symbols, not color alone. */
:root[data-display-theme="color-vision"] {
  --cedar: #145c72;
  --moss: #147d8a;
  --gold: #c66a18;
  --focus: #0b7285;
  --success-text: #075d69;
  --success-border: #4a9aaa;
  --success-surface: #e8f6f7;
  --attention-text: #7a3e00;
  --attention-border: #c86f23;
  --attention-surface: #fff2e6;
  --info-text: #174f7b;
  --info-border: #5b8db3;
  --info-surface: #edf5fb;
  --danger-text: #8a2d5a;
  --danger-border: #bb6e94;
  --danger-surface: #fff0f6;
}

:root[data-display-theme="color-vision"] .status-badge {
  border-width: 2px;
  font-weight: 750;
}

:root[data-display-theme="color-vision"] .status-badge::before {
  display: inline-block;
  min-width: 0.82rem;
  margin-right: 0.24rem;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

:root[data-display-theme="color-vision"] .status-badge.status-new::before,
:root[data-display-theme="color-vision"] .status-badge.status-progress::before,
:root[data-display-theme="color-vision"] .status-badge.status-pending_confirmation::before,
:root[data-display-theme="color-vision"] .status-badge.status-pending::before,
:root[data-display-theme="color-vision"] .status-badge.status-needs_follow_up::before,
:root[data-display-theme="color-vision"] .status-badge.status-needs_review::before,
:root[data-display-theme="color-vision"] .status-badge.status-started::before,
:root[data-display-theme="color-vision"] .status-badge.status-not_taken::before {
  content: "!";
}

:root[data-display-theme="color-vision"] .status-badge.status-in_review::before,
:root[data-display-theme="color-vision"] .status-badge.status-waiting::before,
:root[data-display-theme="color-vision"] .status-badge.status-submitted::before {
  content: ">";
}

:root[data-display-theme="color-vision"] .status-badge.status-complete::before,
:root[data-display-theme="color-vision"] .status-badge.status-closed::before,
:root[data-display-theme="color-vision"] .status-badge.status-acknowledged::before,
:root[data-display-theme="color-vision"] .status-badge.status-published::before,
:root[data-display-theme="color-vision"] .status-badge.status-approved::before,
:root[data-display-theme="color-vision"] .status-badge.status-active::before {
  content: "OK";
}

:root[data-display-theme="color-vision"] .status-badge.status-terminated::before,
:root[data-display-theme="color-vision"] .status-badge.status-denied::before,
:root[data-display-theme="color-vision"] .status-badge.status-canceled::before,
:root[data-display-theme="color-vision"] .status-badge.status-changes_requested::before {
  content: "X";
}

:root[data-display-theme="color-vision"] .status-badge.status-new,
:root[data-display-theme="color-vision"] .status-badge.status-progress,
:root[data-display-theme="color-vision"] .status-badge.status-open,
:root[data-display-theme="color-vision"] .status-badge.status-pending_confirmation,
:root[data-display-theme="color-vision"] .status-badge.status-pending,
:root[data-display-theme="color-vision"] .status-badge.status-needs_follow_up,
:root[data-display-theme="color-vision"] .status-badge.status-needs_review,
:root[data-display-theme="color-vision"] .status-badge.status-started,
:root[data-display-theme="color-vision"] .status-badge.status-not_taken,
:root[data-display-theme="color-vision"] .dashboard-status.status-attention {
  border-color: var(--attention-border);
  background: var(--attention-surface);
  color: var(--attention-text);
}

:root[data-display-theme="color-vision"] .status-badge.status-in_review,
:root[data-display-theme="color-vision"] .status-badge.status-waiting,
:root[data-display-theme="color-vision"] .status-badge.status-submitted,
:root[data-display-theme="color-vision"] .status-badge.status-seasonal_layoff {
  border-color: var(--info-border);
  background: var(--info-surface);
  color: var(--info-text);
}

:root[data-display-theme="color-vision"] .status-badge.status-complete,
:root[data-display-theme="color-vision"] .status-badge.status-closed,
:root[data-display-theme="color-vision"] .status-badge.status-acknowledged,
:root[data-display-theme="color-vision"] .status-badge.status-published,
:root[data-display-theme="color-vision"] .status-badge.status-approved,
:root[data-display-theme="color-vision"] .status-badge.status-active,
:root[data-display-theme="color-vision"] .dashboard-status.status-clear {
  border-color: var(--success-border);
  background: var(--success-surface);
  color: var(--success-text);
}

:root[data-display-theme="color-vision"] .status-badge.status-terminated,
:root[data-display-theme="color-vision"] .status-badge.status-denied,
:root[data-display-theme="color-vision"] .status-badge.status-canceled,
:root[data-display-theme="color-vision"] .status-badge.status-changes_requested {
  border-color: var(--danger-border);
  background: var(--danger-surface);
  color: var(--danger-text);
}

:root[data-display-theme="color-vision"] .dashboard-status.status-attention {
  border-style: dashed;
  border-left: 5px solid var(--attention-border);
  box-shadow: 0 0 0 1px rgb(200 111 35 / 14%);
}

:root[data-display-theme="color-vision"] .dashboard-status.status-clear {
  border-left: 5px solid var(--success-border);
}

:root[data-display-theme="color-vision"] .dashboard-action-row,
:root[data-display-theme="color-vision"] .site-check-review-needed,
:root[data-display-theme="color-vision"] .managed-assignment-row.assignment-review-needed,
:root[data-display-theme="color-vision"] .dashboard-report-row.report-action-required,
:root[data-display-theme="color-vision"] .personal-report-record.report-list-action-required,
:root[data-display-theme="color-vision"] .site-check-record.review-needed,
:root[data-display-theme="color-vision"] .site-check-record.needs-completion,
:root[data-display-theme="color-vision"] .assignment-management-item.review-needed,
:root[data-display-theme="color-vision"] .assignment-recipient-item.action-required,
:root[data-display-theme="color-vision"] .cash-record.review-needed,
:root[data-display-theme="color-vision"] .checklist-manage-item.action-review-required,
:root[data-display-theme="color-vision"] .crew-checklist-item.action-required {
  border-color: var(--attention-border);
  border-left-color: var(--attention-border);
  background: var(--attention-surface);
  box-shadow: inset 4px 0 var(--attention-border);
}

:root[data-display-theme="color-vision"] .request-state-in_review,
:root[data-display-theme="color-vision"] .request-state-waiting,
:root[data-display-theme="color-vision"] .report-record-action > strong {
  color: var(--info-text);
}

:root[data-display-theme="color-vision"] .request-state-new,
:root[data-display-theme="color-vision"] .request-state-pending_confirmation {
  box-shadow: inset 4px 0 var(--attention-border);
}

:root[data-display-theme="color-vision"] .request-state-in_review,
:root[data-display-theme="color-vision"] .request-state-waiting {
  box-shadow: inset 4px 0 var(--info-border);
}

:root[data-display-theme="color-vision"] .request-state-closed,
:root[data-display-theme="color-vision"] .site-check-record.check-complete {
  border-color: var(--success-border);
  background: var(--success-surface);
  box-shadow: inset 4px 0 var(--success-border);
}

:root[data-display-theme="color-vision"] .overdue-item,
:root[data-display-theme="color-vision"] .overdue-row,
:root[data-display-theme="color-vision"] .overdue-badge {
  border-color: var(--danger-border) !important;
  background: var(--danger-surface) !important;
  color: var(--danger-text) !important;
}

@media (prefers-contrast: more) {
  .status-badge,
  .dashboard-status,
  .resource-item,
  .work-row {
    border-width: 2px;
  }
}
body.maintenance-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.maintenance-panel {
  background: var(--surface, #171b1a);
  border: 1px solid var(--line, #3a4741);
  max-width: 36rem;
  padding: 2rem;
  text-align: center;
}

.maintenance-logo {
  height: auto;
  margin: 0 auto 1rem;
  max-width: 7rem;
}

.supervisor-coverage-panel {
  border: 1px solid var(--line, #3a4741);
  border-left: 4px solid var(--attention-border, #b47d13);
  margin-top: 1rem;
  padding: 1rem;
}

.coverage-current-holder,
.coverage-end-form {
  align-items: center;
  background: var(--attention-surface, #342800);
  border: 1px solid var(--attention-border, #b47d13);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 0.75rem;
}

.coverage-current-holder span,
.coverage-end-form span {
  color: var(--muted, #b9c2bd);
  font-size: 0.9rem;
}

.coverage-transfer,
.coverage-history {
  border: 1px solid var(--line, #3a4741);
  margin-top: 0.75rem;
}

.coverage-transfer summary,
.coverage-history summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem;
}

.coverage-transfer form,
.coverage-history .table-wrap {
  border-top: 1px solid var(--line, #3a4741);
  padding: 0.85rem;
}

@media (max-width: 680px) {
  .coverage-current-holder,
  .coverage-end-form {
    align-items: flex-start;
    flex-direction: column;
  }
}

.case-files > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.case-files > summary::-webkit-details-marker { display: none; }
.case-files > summary > span { display: grid; gap: 0.12rem; }
.case-files > summary .eyebrow { margin: 0; }
.case-files > summary strong { color: var(--cedar); font-size: 1rem; }
.case-files > summary small { color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.case-files > summary::after { color: var(--cedar); content: "+"; font-size: 1.05rem; font-weight: 800; }
.case-files[open] > summary { margin-bottom: 0.65rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); }
.case-files[open] > summary::after { content: "-"; }
.case-files .section-header { align-items: center; margin-bottom: 0.65rem; }
.case-files .section-header .meta { margin: 0; }

.assignment-create-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(11rem, 0.65fr);
  gap: 0.7rem;
}

.assignment-create-fields > p { margin: 0; }
.assignment-create-fields .assignment-create-wide { grid-column: 1 / -1; }
.assignment-audience-panel {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cedar);
  border-radius: 5px;
  background: var(--surface-subtle);
}

.assignment-audience-panel .eyebrow,
.assignment-audience-panel h2,
.assignment-audience-panel .meta { margin: 0; }
.assignment-audience-panel h2 { font-size: 1.05rem; }
.assignment-audience-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.assignment-target-all { margin: 0; }
.assignment-target-all label { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; }
.assignment-target-all input { width: auto; min-height: 0; }
.assignment-target-details {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.assignment-target-details summary {
  color: var(--cedar);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.assignment-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.assignment-audience-choice {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.assignment-audience-choice h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.assignment-audience-choice ul {
  display: grid;
  gap: 0.35rem;
  max-height: 13rem;
  overflow: auto;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.assignment-audience-choice li label { display: flex; align-items: flex-start; gap: 0.4rem; }
.assignment-audience-choice li input { flex: 0 0 auto; width: auto; min-height: 0; margin-top: 0.16rem; }

.requirement-note {
  align-self: center;
  min-width: 0;
}

.requirement-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  list-style: none;
}

.requirement-note summary::-webkit-details-marker { display: none; }
.requirement-note summary::after { content: "+"; color: var(--cedar); font-size: 0.9rem; }
.requirement-note summary span { color: var(--cedar); font-size: 0.64rem; }
.requirement-note[open] { align-self: stretch; }
.requirement-note[open] summary { margin-bottom: 0.35rem; }
.requirement-note[open] summary::after { content: "-"; }
.requirement-note label { display: block; }
.requirement-note textarea { min-height: 3.7rem; }

@media (max-width: 720px) {
  .report-detail-workspace .page-header-actions,
  .report-review-workspace .page-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
  }

  .report-detail-workspace .page-header-actions .button,
  .report-review-workspace .page-header-actions .button { width: 100%; }
  .case-files .section-header { align-items: stretch; flex-direction: column; }
  .assignment-create-fields,
  .assignment-target-grid { grid-template-columns: 1fr; }
  .assignment-audience-heading { align-items: stretch; flex-direction: column; }
}

@media (max-width: 420px) {
  .report-detail-workspace .page-header-actions,
  .report-review-workspace .page-header-actions { grid-template-columns: 1fr; }
}

/* Dashboard visual skin: preserve the operational layout while giving it a distinct GCA setting. */
body:has(.dashboard-scene) { background: #071c19; }
body:has(.dashboard-scene) .page { background: #071c19; }
.dashboard-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color-scheme: dark;
  margin: -0.35rem -0.75rem 0;
  padding: clamp(1.1rem, 3vw, 2.1rem) clamp(0.75rem, 3vw, 2.5rem) 2.5rem;
  border-radius: 8px;
  background: #071d1a url("../images/dashboard/evergreen-ridge.61cd17315127.png") center top / cover no-repeat;
  color: #e8f2ed;
}

.dashboard-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(4 20 18 / 32%) 0%, rgb(5 24 21 / 78%) 34%, #071c19 76%);
}

.dashboard-scene .dashboard-panel {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-scene .dashboard-heading {
  min-height: 0;
  margin: 0 0 1rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgb(191 223 209 / 26%);
  align-items: center;
}

.dashboard-hero-copy { flex: 1 1 auto; display: flex; align-items: center; gap: 0.9rem; }
.dashboard-hero-copy > div { min-width: 0; }
.dashboard-hero-copy .eyebrow { margin: 0 0 0.12rem; color: #a9c7bc; }
.dashboard-hero-copy h1 { margin: 0; color: #fff; font-size: clamp(1.65rem, 3vw, 2.2rem); white-space: nowrap; }
.dashboard-hero-copy .meta { margin: 0.14rem 0 0; color: #bdd1c8; }
.dashboard-sunmark {
  position: relative;
  flex: 0 0 2.35rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #f4c75a;
  box-shadow: 0 0 0 0.32rem rgb(244 199 90 / 10%);
}
.dashboard-sunmark::before,
.dashboard-sunmark::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); }
.dashboard-sunmark::before { bottom: -0.16rem; width: 2.3rem; height: 0.9rem; border-radius: 100% 100% 0 0; background: #d9942f; clip-path: polygon(0 100%, 27% 30%, 50% 72%, 72% 18%, 100% 100%); }
.dashboard-sunmark::after { top: -0.55rem; width: 0.14rem; height: 0.44rem; background: #f4c75a; box-shadow: -0.95rem 0.42rem #f4c75a, 0.95rem 0.42rem #f4c75a; }

.dashboard-scene .button { border-color: #477466; background: rgb(8 45 39 / 82%); color: #eaf7f0; box-shadow: 0 6px 18px rgb(0 0 0 / 14%); }
.dashboard-scene .button:hover { border-color: #64b497; background: #0b5448; }
.dashboard-scene .button:not(.secondary) { border-color: #1eb887; background: #087256; color: #fff; }
.dashboard-scene .button:not(.secondary):hover { background: #0a8a67; }
.dashboard-scene .dashboard-primary-actions .button { display: inline-flex; align-items: center; gap: 0.48rem; min-height: 2.55rem; padding-inline: 0.78rem; border-radius: 6px; }
.dashboard-scene .dashboard-primary-actions .button::before { content: ""; display: inline-block; flex: 0 0 auto; width: 1.12rem; height: 1.12rem; background: center / contain no-repeat; }
.dashboard-scene .dashboard-primary-actions .button:nth-child(1)::before { background-image: url("../images/dashboard/icon-circle-plus.a959a19e0b2c.svg"); }
.dashboard-scene .dashboard-primary-actions .button:nth-child(2)::before { background-image: url("../images/dashboard/icon-calendar.69d34517dd07.svg"); }
.dashboard-scene .dashboard-primary-actions .button:nth-child(3)::before { background-image: url("../images/dashboard/icon-clock.344f41e398b6.svg"); }
.dashboard-scene .dashboard-primary-actions .button:nth-child(4)::before { background-image: url("../images/dashboard/icon-users.5663922140d8.svg"); }

.dashboard-scene .dashboard-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; margin: 0 0 0.8rem; }
.dashboard-scene .dashboard-summary a {
  position: relative;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 0.62rem;
  row-gap: 0.12rem;
  min-height: 4.55rem;
  padding: 0.5rem 2rem 0.5rem 0.76rem;
  overflow: hidden;
  border-color: #315c52;
  border-radius: 7px;
  background: rgb(8 37 33 / 88%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 10px 22px rgb(0 0 0 / 12%);
}
.dashboard-scene .dashboard-summary a::before {
  content: "";
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%; left: 0.76rem;
  width: 2.35rem; height: 2.35rem;
  border-radius: 0.5rem;
  transform: translateY(-50%);
  background: #124e44 center / 1.28rem no-repeat;
  box-shadow: inset 0 0 0 1px rgb(137 226 196 / 12%);
}
.dashboard-scene .dashboard-summary a::after { content: "›"; position: absolute; top: 50%; right: 0.75rem; color: #a7cbbd; font-size: 1.35rem; transform: translateY(-52%); }
.dashboard-scene .dashboard-summary a:nth-child(1)::before { background-color: #125473; background-image: url("../images/dashboard/icon-flag.d78856981ff2.svg"); }
.dashboard-scene .dashboard-summary a:nth-child(2)::before { background-color: #16614f; background-image: url("../images/dashboard/icon-file.48a0c9fc5d83.svg"); }
.dashboard-scene .dashboard-summary a:nth-child(3)::before { background-color: #17644f; background-image: url("../images/dashboard/icon-square-check.8f6a0caacee9.svg"); }
.dashboard-scene .dashboard-summary a:nth-child(4)::before { background-color: #17614b; background-image: url("../images/dashboard/icon-map-pin.c96dd64e49c3.svg"); }
.dashboard-scene .dashboard-summary a:nth-child(5)::before { background-color: #80580d; background-image: url("../images/dashboard/icon-folder.df746fd7a6ae.svg"); }
.dashboard-scene .dashboard-summary .dashboard-clock { display: none; }
.dashboard-scene .dashboard-summary strong { grid-column: 2; grid-row: 1; color: #f4fbf8; font-size: 1.25rem; line-height: 1; }
.dashboard-scene .dashboard-summary span:not(.dashboard-clock) { grid-column: 2; grid-row: 2; color: #bdd0c8; font-size: 0.72rem; line-height: 1.25; }
.dashboard-scene .dashboard-summary .status-clear { border-color: #316558; background: rgb(8 45 39 / 86%); box-shadow: inset 3px 0 #42a37d, inset 0 1px 0 rgb(255 255 255 / 4%), 0 10px 22px rgb(0 0 0 / 12%); }
.dashboard-scene .dashboard-summary .status-attention { border-color: #a67c28; background: rgb(63 43 5 / 91%); box-shadow: inset 3px 0 #e6ad3d, inset 0 1px 0 rgb(255 255 255 / 5%), 0 10px 22px rgb(0 0 0 / 14%); }
.dashboard-scene .dashboard-summary .status-attention strong { color: #ffe5a1; }

.dashboard-scene .dashboard-tool-shelf { margin: 0 0 1.1rem; border-color: #315c52; border-radius: 7px; background: rgb(8 36 32 / 82%); }
.dashboard-scene .dashboard-tool-shelf > summary { min-height: 2.75rem; padding: 0.52rem 0.85rem; color: #e5f3ec; }
.dashboard-scene .dashboard-tool-shelf > summary small { color: #9fbaaf; }
.dashboard-scene .dashboard-tool-shelf[open] > summary { border-color: #315c52; }
.dashboard-scene .dashboard-tool-shelf .communication-actions a { border-color: #315c52; background: rgb(10 44 38 / 92%); color: #e6f2ec; }

.dashboard-scene .admin-queue.dashboard-priority-queues { margin-bottom: 0.75rem; padding: 0.72rem 0 0.75rem; border-top: 1px solid rgb(191 223 209 / 24%); border-bottom: 1px solid rgb(191 223 209 / 24%); }
.dashboard-scene .dashboard-priority-queues .eyebrow { color: #9fc3b5; }
.dashboard-scene .dashboard-priority-queues h2, .dashboard-scene .dashboard-section h2 { color: #fff; }
.dashboard-scene .queue-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.55rem; }
.dashboard-scene .dashboard-priority-queues .queue-links a { display: flex; align-items: center; gap: 0.38rem; min-height: 3.25rem; padding: 0.42rem 0.55rem; border-radius: 6px; color: #d9ece3; font-size: 0.71rem; }
.dashboard-scene .queue-links .status-clear { border-color: #316558; background: rgb(8 45 39 / 86%); box-shadow: inset 3px 0 #42a37d; }
.dashboard-scene .queue-links .status-attention { border-color: #a67c28; background: rgb(63 43 5 / 91%); box-shadow: inset 3px 0 #e6ad3d; }
.dashboard-scene .queue-links strong { color: #f3fbf7; font-size: 1.3rem; }

.dashboard-scene .dashboard-grid { gap: 1.1rem; }
.dashboard-scene .dashboard-section { padding: 0.9rem; border: 1px solid #315c52; border-top: 3px solid #3f8870; border-radius: 7px; background: rgb(7 33 30 / 88%); box-shadow: 0 12px 24px rgb(0 0 0 / 12%); }
.dashboard-scene .dashboard-attention-section,
.dashboard-scene .conversation-inbox,
.dashboard-scene .reminder-inbox { border-color: #6c642e; background: rgb(45 38 9 / 88%); }
.dashboard-scene .dashboard-attention-section h2,
.dashboard-scene .conversation-inbox h2,
.dashboard-scene .reminder-inbox h2 { color: #fff; }
.dashboard-scene .conversation-update-row,
.dashboard-scene .reminder-item { border-color: rgb(255 226 154 / 18%); background: transparent; color: #f5f0db; }
.dashboard-scene .conversation-update-row small,
.dashboard-scene .conversation-update-row span,
.dashboard-scene .reminder-item small,
.dashboard-scene .reminder-item .meta { color: #d4d0b9; }
.dashboard-scene .dashboard-section .meta { color: #b2c7bd; }
.dashboard-scene .dashboard-section a:not(.button) { color: #73ddbd; }
.dashboard-scene .work-row { border-color: rgb(179 218 203 / 17%); color: #edf8f3; }
.dashboard-scene .work-row small, .dashboard-scene .report-location-label { color: #b8ccc3; }
.dashboard-scene .dashboard-report-row { padding-inline: 0.72rem; }
.dashboard-scene .dashboard-report-row.report-waiting-elsewhere { background: transparent; }
.dashboard-scene .dashboard-report-row.report-action-required { border-color: #a67c28; border-left-color: #e6ad3d; background: rgb(63 43 5 / 91%); }
.dashboard-scene .dashboard-report-row.report-action-required .report-responsibility { border-color: #a67c28; background: rgb(104 73 9 / 70%); color: #ffe5a1; }
.dashboard-scene .dashboard-report-row.report-action-required .request-state-label { color: #ffe5a1; }
.dashboard-scene .dashboard-report-row .report-responsibility { border-color: #46685e; background: rgb(10 42 37 / 90%); color: #cadbd4; }
.dashboard-scene .dashboard-report-row .request-state-label { border-color: rgb(179 218 203 / 17%); }
.dashboard-scene .request-state-in_review .request-state-label, .dashboard-scene .request-state-waiting .request-state-label { color: #8ad8f4; }

@media (max-width: 1180px) {
  .dashboard-scene .dashboard-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-scene .queue-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .dashboard-scene { margin: -0.35rem -0.5rem 0; padding: 1rem 0.7rem 1.5rem; border-radius: 0; background-position: 58% top; }
  .dashboard-scene .dashboard-heading { align-items: stretch; gap: 0.8rem; }
  .dashboard-hero-copy { align-items: center; gap: 0.72rem; }
  .dashboard-hero-copy h1 { font-size: clamp(1.55rem, 8vw, 1.9rem); }
  .dashboard-sunmark { flex-basis: 2.15rem; width: 2rem; height: 2rem; }
  .dashboard-primary-actions { width: 100%; }
  .dashboard-scene .dashboard-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .dashboard-scene .dashboard-summary a { grid-template-columns: minmax(0, 1fr); min-height: 4.4rem; padding: 0.52rem 1.55rem 0.52rem 0.7rem; }
  .dashboard-scene .dashboard-summary a::before { display: none; }
  .dashboard-scene .dashboard-summary strong,
  .dashboard-scene .dashboard-summary span:not(.dashboard-clock) { grid-column: 1; }
  .dashboard-scene .queue-links { grid-template-columns: 1fr; }
  .dashboard-scene .dashboard-priority-queues .queue-links a { min-height: 3.2rem; }
  .dashboard-scene .dashboard-section { padding: 0.72rem; }
}

/* Mobile menus use a text caret: the former border-drawn mark was too easy to clip. */
@media (max-width: 720px) {
  .site-nav .nav-menu summary {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .site-nav .nav-menu summary::after {
    content: "⌄";
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0 0 0 0.15rem;
    border: 0;
    font-size: 1.05rem;
    line-height: 1;
    transform: translateY(-0.08rem);
  }

  .site-nav .nav-menu[open] summary::after { transform: translateY(0.04rem) rotate(180deg); }
}

/* Navigation is part of the dark portal shell, including menus that open above a page. */
.site-header .nav-menu-panel {
  border-color: #315c52;
  background: #0b2823;
  box-shadow: 0 16px 36px rgb(0 0 0 / 34%);
}

.site-header .nav-menu-panel a,
.site-header .nav-menu-panel button {
  color: #e5f2eb;
}

.site-header .nav-menu-panel a:hover,
.site-header .nav-menu-panel button:hover {
  background: #17463d;
}

.site-header .nav-menu-label {
  color: #9fbbae;
}

.site-header .display-theme-toggle {
  border-color: #315c52;
}

.site-header .display-theme-toggle .display-theme-state {
  color: #a9cfc0;
}

.site-header .display-theme-toggle.active .display-theme-state {
  color: #80dfc0;
}

/* Color-friendly contrast remains dark on the dashboard instead of reintroducing light status cards. */
:root[data-display-theme="color-vision"] .dashboard-scene .dashboard-summary .status-clear {
  border-color: #3e9ba0;
  background: rgb(7 49 47 / 90%);
  color: #e3f9f6;
  box-shadow: inset 3px 0 #56c2c5, inset 0 1px 0 rgb(255 255 255 / 5%), 0 10px 22px rgb(0 0 0 / 12%);
}

:root[data-display-theme="color-vision"] .dashboard-scene .dashboard-summary .status-attention {
  border-color: #d18035;
  background: rgb(73 37 8 / 91%);
  color: #fff0df;
  box-shadow: inset 3px 0 #e39a4f, inset 0 1px 0 rgb(255 255 255 / 5%), 0 10px 22px rgb(0 0 0 / 14%);
}

:root[data-display-theme="color-vision"] .dashboard-scene .dashboard-summary .status-clear strong { color: #bff7ef; }
:root[data-display-theme="color-vision"] .dashboard-scene .dashboard-summary .status-attention strong { color: #ffe2bf; }

:root[data-display-theme="color-vision"] .dashboard-scene .queue-links .status-clear {
  border-color: #3e9ba0;
  background: rgb(7 49 47 / 90%);
  box-shadow: inset 3px 0 #56c2c5;
}

:root[data-display-theme="color-vision"] .dashboard-scene .queue-links .status-attention,
:root[data-display-theme="color-vision"] .dashboard-scene .dashboard-action-row,
:root[data-display-theme="color-vision"] .dashboard-scene .dashboard-report-row.report-action-required {
  border-color: #d18035;
  border-left-color: #e39a4f;
  background: rgb(73 37 8 / 91%);
  box-shadow: inset 3px 0 #e39a4f;
  color: #fff0df;
}

/* Portal appearance: dark is the working default; light mode is an intentional alternate, not a partial inversion. */
:root {
  color-scheme: dark;
  --ink: #e7f1ec;
  --muted: #aac0b6;
  --line: #365147;
  --line-strong: #527064;
  --paper: #071814;
  --panel: #10251f;
  --panel-muted: #142d26;
  --surface-subtle: #142d26;
  --cedar: #82dabe;
  --moss: #4fa881;
  --gold: #d3a13a;
  --header: #061b15;
  --focus: #e4bb59;
  --success-text: #c5f4df;
  --success-border: #3d936f;
  --success-surface: #103e31;
  --attention-text: #ffe1a1;
  --attention-border: #b9892f;
  --attention-surface: #442f05;
  --info-text: #b7e2f2;
  --info-border: #4d8ca4;
  --info-surface: #0d3240;
  --danger-text: #ffc7c4;
  --danger-border: #ad625f;
  --danger-surface: #481f20;
  --shadow: 0 1px 2px rgb(0 0 0 / 28%), 0 10px 28px rgb(0 0 0 / 20%);
}

:root[data-display-theme="light"] {
  color-scheme: light;
  --ink: #17211c;
  --muted: #59665f;
  --line: #cfd8d3;
  --line-strong: #aebdb5;
  --paper: #edf2ef;
  --panel: #ffffff;
  --panel-muted: #f7f9f8;
  --surface-subtle: #f5f8f6;
  --cedar: #1f5a40;
  --moss: #367056;
  --gold: #ad7418;
  --header: #10251b;
  --focus: #d09a34;
  --success-text: #28543a;
  --success-border: #769984;
  --success-surface: #edf5f0;
  --attention-text: #6b4e12;
  --attention-border: #c69a3d;
  --attention-surface: #fff7df;
  --info-text: #284e68;
  --info-border: #9fb7c8;
  --info-surface: #edf5fa;
  --danger-text: #762727;
  --danger-border: #d6a5a5;
  --danger-surface: #fff1f1;
  --shadow: 0 1px 2px rgb(16 37 27 / 5%), 0 10px 30px rgb(16 37 27 / 6%);
}

html,
body,
html.portal-style-pending { background: var(--paper); }

body { color: var(--ink); }

input,
select,
textarea {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 0.8; }
select option { background: var(--panel); color: var(--ink); }

.button.secondary,
.button.secondary:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--cedar);
}

.button.secondary:hover { border-color: var(--cedar); background: var(--surface-subtle); }

.resource-item,
.choice,
.rdo-pathways,
.rdo-pathways a,
.communication-actions a,
.dashboard-tool-shelf,
.filter-bar,
.search-form,
.library-search,
.table-wrap,
.empty-state,
.acknowledgement-status-record,
.acknowledgement-people-grid section,
.discussion-panel,
.completion-panel form,
.checklist-entry-row,
.case-files,
.attachment-section,
.phone-upload-intro,
.upload-waiting,
.phone-destination,
.selected-file,
.maintenance-escalation {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

.filter-bar,
.search-form,
.library-search,
.rdo-pathways,
.dashboard-tool-shelf,
.phone-upload-intro,
.upload-waiting,
.phone-destination,
.selected-file { background: var(--surface-subtle); }

.communication-actions a:hover,
.document-row:hover,
.data-table tbody tr:hover { background: var(--surface-subtle); }

.record-summary,
.stacked-form label,
.filter-bar label,
.search-form label,
.form-field > label,
.access-fieldset legend { color: var(--ink); }

.stacked-form ul:not(.errorlist),
.data-table th { background: var(--surface-subtle); color: var(--muted); }

.resource-item.request-state-new,
.personal-report-record.report-list-action-required,
.review-report-record.report-list-action-required { border-color: var(--attention-border); background: var(--attention-surface); color: var(--attention-text); }
.resource-item.request-state-in_review,
.resource-item.request-state-waiting { background: var(--info-surface); }
.resource-item.request-state-closed { background: var(--success-surface); }

.document-locations .management-label,
.review-note,
.onboarding-oversight,
.reminder-inbox { border-color: var(--attention-border); background: var(--attention-surface); color: var(--attention-text); }
.document-locations .permanent-label,
.permanent-reference-note { border-color: var(--success-border); background: var(--success-surface); color: var(--success-text); }

.discussion-thread article,
.message.unread-comment,
.discussion-thread article.unread-comment { background: var(--surface-subtle); }
.private-conversation-composer,
.private-recipient-list label { border-color: var(--info-border); background: var(--info-surface); color: var(--info-text); }

.data-table th:first-child { background: var(--surface-subtle); }

/* The dashboard keeps its image-led identity in light mode, but its surfaces become genuinely light and readable. */
:root[data-display-theme="light"] body:has(.dashboard-scene),
:root[data-display-theme="light"] body:has(.dashboard-scene) .page { background: #e8f1ed; }
:root[data-display-theme="light"] .dashboard-scene {
  color: #173a30;
  background-color: #d8ebe3;
  background-blend-mode: screen;
}
:root[data-display-theme="light"] .dashboard-scene::before { background: linear-gradient(180deg, rgb(239 248 244 / 65%) 0%, rgb(231 243 237 / 88%) 62%, #e8f1ed 100%); }
:root[data-display-theme="light"] .dashboard-scene .dashboard-heading { border-color: rgb(34 85 69 / 24%); }
:root[data-display-theme="light"] .dashboard-scene .dashboard-hero-copy h1,
:root[data-display-theme="light"] .dashboard-scene .dashboard-priority-queues h2,
:root[data-display-theme="light"] .dashboard-scene .dashboard-section h2 { color: #173a30; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-hero-copy .eyebrow,
:root[data-display-theme="light"] .dashboard-scene .dashboard-hero-copy .meta { color: #41695c; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-summary a,
:root[data-display-theme="light"] .dashboard-scene .dashboard-tool-shelf,
:root[data-display-theme="light"] .dashboard-scene .dashboard-section { border-color: #8db7a7; background: rgb(250 255 252 / 88%); }
:root[data-display-theme="light"] .dashboard-scene .dashboard-summary strong { color: #173a30; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-summary span:not(.dashboard-clock),
:root[data-display-theme="light"] .dashboard-scene .dashboard-section .meta { color: #527467; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-tool-shelf > summary { color: #174536; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-tool-shelf > summary small { color: #527467; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-tool-shelf .communication-actions a { border-color: #b3cec2; background: #f7fcf9; color: #174536; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-primary-actions .button.secondary { border-color: #9dbeb0; background: rgb(255 255 255 / 88%); color: #174536; box-shadow: 0 5px 14px rgb(24 68 54 / 10%); }
:root[data-display-theme="light"] .dashboard-scene .dashboard-primary-actions .button.secondary:hover { border-color: #4e967b; background: #edf8f2; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-primary-actions .button.secondary::before {
  filter: brightness(0) saturate(100%) invert(23%) sepia(18%) saturate(1299%) hue-rotate(105deg) brightness(92%) contrast(88%);
}
:root[data-display-theme="light"] .dashboard-scene .dashboard-priority-queues .eyebrow { color: #527467; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-priority-queues { border-color: rgb(34 85 69 / 24%); }
:root[data-display-theme="light"] .dashboard-scene .dashboard-priority-queues .queue-links a { color: #234e40; }
:root[data-display-theme="light"] .dashboard-scene .queue-links strong { color: #174536; }
:root[data-display-theme="light"] .dashboard-scene .queue-links .status-clear { border-color: #8db7a7; background: rgb(250 255 252 / 88%); box-shadow: inset 3px 0 #4fa881; }
:root[data-display-theme="light"] .dashboard-scene .queue-links .status-attention,
:root[data-display-theme="light"] .dashboard-scene .dashboard-summary .status-attention,
:root[data-display-theme="light"] .dashboard-scene .dashboard-report-row.report-action-required { border-color: #bf8a25; background: #fff4d8; color: #654609; }
:root[data-display-theme="light"] .dashboard-scene .queue-links .status-attention strong,
:root[data-display-theme="light"] .dashboard-scene .dashboard-summary .status-attention strong { color: #654609; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-section a:not(.button),
:root[data-display-theme="light"] .dashboard-scene .work-row { color: #174536; }
:root[data-display-theme="light"] .dashboard-scene .work-row small,
:root[data-display-theme="light"] .dashboard-scene .report-location-label { color: #527467; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-report-row .report-responsibility { border-color: #a9c6ba; background: #f3faf6; color: #365f51; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-report-row .request-state-label { border-color: #c6dbd1; color: #2d7766; }
:root[data-display-theme="light"] .dashboard-scene .dashboard-report-row.report-action-required .report-responsibility,
:root[data-display-theme="light"] .dashboard-scene .dashboard-report-row.report-action-required .request-state-label { border-color: #bf8a25; background: #fff0c8; color: #654609; }

/* Dark-mode audit: legacy feature panels that predate the shared surface tokens. */
:root:not([data-display-theme="light"]) .status-badge.status-open,
:root:not([data-display-theme="light"]) .status-badge.status-complete,
:root:not([data-display-theme="light"]) .status-badge.status-active,
:root:not([data-display-theme="light"]) .status-badge.status-acknowledged,
:root:not([data-display-theme="light"]) .status-badge.status-published,
:root:not([data-display-theme="light"]) .status-badge.status-approved { border-color: var(--success-border); background: var(--success-surface); color: var(--success-text); }

:root:not([data-display-theme="light"]) .status-badge.status-new,
:root:not([data-display-theme="light"]) .status-badge.status-in_review,
:root:not([data-display-theme="light"]) .status-badge.status-submitted,
:root:not([data-display-theme="light"]) .status-badge.status-seasonal_layoff { border-color: var(--info-border); background: var(--info-surface); color: var(--info-text); }

:root:not([data-display-theme="light"]) .status-badge.status-progress,
:root:not([data-display-theme="light"]) .status-badge.status-waiting,
:root:not([data-display-theme="light"]) .status-badge.status-pending_confirmation,
:root:not([data-display-theme="light"]) .status-badge.status-pending,
:root:not([data-display-theme="light"]) .status-badge.status-needs_follow_up,
:root:not([data-display-theme="light"]) .status-badge.status-needs_review,
:root:not([data-display-theme="light"]) .status-badge.status-leave,
:root:not([data-display-theme="light"]) .status-badge.status-started,
:root:not([data-display-theme="light"]) .status-badge.status-not_taken { border-color: var(--attention-border); background: var(--attention-surface); color: var(--attention-text); }

:root:not([data-display-theme="light"]) .status-badge.status-terminated,
:root:not([data-display-theme="light"]) .status-badge.status-changes_requested { border-color: var(--danger-border); background: var(--danger-surface); color: var(--danger-text); }

:root:not([data-display-theme="light"]) .status-badge.status-closed,
:root:not([data-display-theme="light"]) .status-badge.status-resigned,
:root:not([data-display-theme="light"]) .status-badge.status-archived,
:root:not([data-display-theme="light"]) .status-badge.status-draft { border-color: var(--line-strong); background: var(--surface-subtle); color: var(--muted); }

:root:not([data-display-theme="light"]) .review-summary,
:root:not([data-display-theme="light"]) .document-management-form fieldset,
:root:not([data-display-theme="light"]) .management-choice-grid ul,
:root:not([data-display-theme="light"]) .case-actions,
:root:not([data-display-theme="light"]) .recognition-add,
:root:not([data-display-theme="light"]) .employee-count-summary,
:root:not([data-display-theme="light"]) .people-scope-link,
:root:not([data-display-theme="light"]) .people-roster,
:root:not([data-display-theme="light"]) .onboarding-person,
:root:not([data-display-theme="light"]) .rdo-employee-group,
:root:not([data-display-theme="light"]) .rdo-history-list,
:root:not([data-display-theme="light"]) .rdo-day-section,
:root:not([data-display-theme="light"]) .queue-tabs a,
:root:not([data-display-theme="light"]) .reminder-item,
:root:not([data-display-theme="light"]) .retention-actions,
:root:not([data-display-theme="light"]) .attachment-list a,
:root:not([data-display-theme="light"]) .kiosk-form,
:root:not([data-display-theme="light"]) .document-viewer { border-color: var(--line); background: var(--panel); color: var(--ink); }

:root:not([data-display-theme="light"]) .people-roster-header,
:root:not([data-display-theme="light"]) .rdo-employee-heading,
:root:not([data-display-theme="light"]) .rdo-schedule-head,
:root:not([data-display-theme="light"]) .rdo-weekday,
:root:not([data-display-theme="light"]) .data-table th,
:root:not([data-display-theme="light"]) .doc-toolbar { background: var(--surface-subtle); color: var(--muted); }

:root:not([data-display-theme="light"]) .rdo-day { background: var(--panel); }
:root:not([data-display-theme="light"]) .rdo-day.outside { background: #0b211b; color: #779187; }
:root:not([data-display-theme="light"]) .rdo-day.approved { background: #102a23; box-shadow: inset 0 0 0 1px #527064; }
:root:not([data-display-theme="light"]) .rdo-day.blackout { background: repeating-linear-gradient(135deg, #111f1b 0, #111f1b 7px, #172a24 7px, #172a24 14px); }
:root:not([data-display-theme="light"]) .rdo-blackout-label { background: rgb(12 30 25 / 88%); color: var(--ink); }
:root:not([data-display-theme="light"]) .rdo-calendar .available::before { background: var(--panel); }
:root:not([data-display-theme="light"]) .rdo-personal-table .rdo-personal-row { background: var(--panel); }

:root:not([data-display-theme="light"]) .purpose-personal { border-color: #4b9476; background: #103d30; color: #c4f1df; }
:root:not([data-display-theme="light"]) .purpose-medical,
:root:not([data-display-theme="light"]) .record-sick { border-color: #4d8ca4; background: #103443; color: #c2e9f8; }
:root:not([data-display-theme="light"]) .purpose-private { border-color: #84749b; background: #302842; color: #e3d8f2; }
:root:not([data-display-theme="light"]) .purpose-neutral,
:root:not([data-display-theme="light"]) .purpose-unclassified { border-color: #6d8379; background: #24342e; color: #d6e2dc; }
:root:not([data-display-theme="light"]) .record-unexpected { border-color: #bd8930; background: #463006; color: #ffe0a0; }

:root:not([data-display-theme="light"]) .site-check-record.review-needed,
:root:not([data-display-theme="light"]) .site-check-record.needs-completion,
:root:not([data-display-theme="light"]) .cash-record.review-needed,
:root:not([data-display-theme="light"]) .managed-assignment-row.assignment-review-needed,
:root:not([data-display-theme="light"]) .site-check-review-needed,
:root:not([data-display-theme="light"]) .onboarding-oversight,
:root:not([data-display-theme="light"]) .onboarding-callout,
:root:not([data-display-theme="light"]) .rdo-alert,
:root:not([data-display-theme="light"]) .lifecycle-warning,
:root:not([data-display-theme="light"]) .timeclock-conflict { border-color: var(--attention-border); background: var(--attention-surface); color: var(--attention-text); }

:root:not([data-display-theme="light"]) .site-check-record.check-complete,
:root:not([data-display-theme="light"]) .completion-note,
:root:not([data-display-theme="light"]) .completion-evidence { border-color: var(--success-border); background: var(--success-surface); color: var(--success-text); }

:root:not([data-display-theme="light"]) .overdue-badge,
:root:not([data-display-theme="light"]) .status-overlap { border-color: var(--danger-border) !important; background: var(--danger-surface) !important; color: var(--danger-text) !important; }
:root:not([data-display-theme="light"]) .overdue-row,
:root:not([data-display-theme="light"]) .overdue-row small { color: var(--danger-text); }

:root:not([data-display-theme="light"]) .kiosk-body { background: var(--paper); }
:root:not([data-display-theme="light"]) .kiosk-actions input:checked + span { border-color: var(--success-border); background: var(--success-surface); color: var(--success-text); }

/* Formatted files and rendered PDF pages preserve their source-paper treatment. */
.formatted-document,
.pdf-reader-page,
.pdf-reader-page canvas { color-scheme: light; }

@media (max-width: 720px) {
  :root:not([data-display-theme="light"]) .data-table th:first-child,
  :root:not([data-display-theme="light"]) .data-table td:first-child { background: var(--panel); color: var(--ink); }
  :root:not([data-display-theme="light"]) .data-table th:first-child { background: var(--surface-subtle); }
}

/* Shared interaction language: clear feedback for mouse and touch without visual noise. */
:root { --interactive-hover: #183b31; --interactive-press: #20483b; }
:root[data-display-theme="light"] { --interactive-hover: #e7f4ed; --interactive-press: #d9ede3; }

:is(
  button,
  .button,
  .nav-link,
  .nav-menu summary,
  .dashboard-summary a,
  .queue-links a,
  .communication-actions a,
  a.resource-item,
  a.choice,
  .work-row,
  .document-row,
  .queue-tabs a,
  .people-scope-link,
  .onboarding-person,
  .dashboard-tool-shelf > summary,
  .case-files > summary,
  .requirement-note summary,
  .assignment-target-details summary,
  .access-summary,
  .calendar-navigation .button,
  .rdo-day-link
) {
  touch-action: manipulation;
  transition: transform 130ms ease, border-color 130ms ease, background-color 130ms ease, box-shadow 130ms ease, color 130ms ease;
}

@media (hover: hover) {
  :is(
    .dashboard-summary a,
    .queue-links a,
    .communication-actions a,
    a.resource-item,
    a.choice,
    .work-row,
    .document-row,
    .people-scope-link,
    .onboarding-person
  ):hover {
    border-color: var(--cedar);
    background-color: var(--interactive-hover);
    box-shadow: 0 7px 16px rgb(0 0 0 / 12%);
    transform: translateY(-1px);
  }

  :is(
    .nav-link,
    .nav-menu summary,
    .queue-tabs a,
    .dashboard-tool-shelf > summary,
    .case-files > summary,
    .requirement-note summary,
    .assignment-target-details summary,
    .access-summary
  ):hover { background-color: var(--interactive-hover); }
}

:is(
  .button,
  button:not(:disabled),
  .dashboard-summary a,
  .queue-links a,
  .communication-actions a,
  a.resource-item,
  a.choice,
  .work-row,
  .document-row,
  .queue-tabs a,
  .people-scope-link,
  .onboarding-person,
  .nav-link,
  .nav-menu summary,
  .dashboard-tool-shelf > summary,
  .case-files > summary,
  .requirement-note summary,
  .assignment-target-details summary,
  .access-summary,
  .rdo-day-link
):active {
  background-color: var(--interactive-press);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 18%);
  transform: translateY(1px) scale(0.992);
}

/* Keep alert rows legible as alerts while they respond to pointer feedback. */
@media (hover: hover) {
  :is(
    .dashboard-action-row,
    .dashboard-report-row.report-action-required,
    .personal-report-record.report-list-action-required,
    .review-report-record.report-list-action-required,
    .managed-assignment-row.assignment-review-needed,
    .site-check-review-needed,
    .assignment-recipient-item.action-required,
    .crew-checklist-item.action-required,
    .checklist-manage-item.action-review-required
  ):hover {
    background-color: var(--attention-surface);
    border-color: var(--attention-border);
  }
}

/* Dark-mode completion: older schedule and personnel components used fixed light surfaces. */
:root:not([data-display-theme="light"]) .office-schedule-weekday,
:root:not([data-display-theme="light"]) .office-print-calendar > div { background: var(--surface-subtle); color: var(--muted); }

:root:not([data-display-theme="light"]) .office-schedule-day.outside,
:root:not([data-display-theme="light"]) .office-print-day.outside { background: #0b211b; color: #779187; }

:root:not([data-display-theme="light"]) .office-schedule-entry,
:root:not([data-display-theme="light"]) .office-print-calendar-entry,
:root:not([data-display-theme="light"]) .office-print-people label { border-color: var(--line-strong); background: var(--panel); color: var(--ink); }

:root:not([data-display-theme="light"]) .office-schedule-entry:hover,
:root:not([data-display-theme="light"]) .office-print-people label:hover { border-color: var(--success-border); background: var(--success-surface); }

:root:not([data-display-theme="light"]) .office-schedule-entry > span,
:root:not([data-display-theme="light"]) .office-schedule-entry > small,
:root:not([data-display-theme="light"]) .office-print-calendar-entry span,
:root:not([data-display-theme="light"]) .office-print-calendar-entry small { color: var(--muted); }

:root:not([data-display-theme="light"]) .access-label,
:root:not([data-display-theme="light"]) .access-label-muted,
:root:not([data-display-theme="light"]) .roster-count { border-color: var(--line-strong); background: var(--surface-subtle); color: var(--ink); }

:root:not([data-display-theme="light"]) .roster-attention-training { border-color: var(--info-border); background: var(--info-surface); color: var(--info-text); }

:root:not([data-display-theme="light"]) .onboarding-stage.stage-waiting,
:root:not([data-display-theme="light"]) .readiness-attention { border-color: var(--attention-border); background: var(--attention-surface); color: var(--attention-text); }

:root:not([data-display-theme="light"]) .onboarding-stage.stage-action,
:root:not([data-display-theme="light"]) .readiness-expiring { border-color: var(--danger-border); background: var(--danger-surface); color: var(--danger-text); }

:root:not([data-display-theme="light"]) .onboarding-stage.stage-confirm { border-color: var(--info-border); background: var(--info-surface); color: var(--info-text); }

:root:not([data-display-theme="light"]) .onboarding-stage.stage-ready,
:root:not([data-display-theme="light"]) .readiness-ready { border-color: var(--success-border); background: var(--success-surface); color: var(--success-text); }

:root:not([data-display-theme="light"]) .readiness-unconfigured { border-color: var(--line-strong); background: var(--surface-subtle); color: var(--muted); }

:root:not([data-display-theme="light"]) .portal-setup-not_verified,
:root:not([data-display-theme="light"]) .portal-setup-never_signed_in,
:root:not([data-display-theme="light"]) .portal-setup-password_needed { background: var(--attention-surface); box-shadow: inset 3px 0 var(--gold); }

:root:not([data-display-theme="light"]) .portal-setup-confirmation_needed { background: var(--info-surface); box-shadow: inset 3px 0 var(--info-border); }
:root:not([data-display-theme="light"]) .portal-setup-complete { background: var(--success-surface); box-shadow: inset 3px 0 var(--success-border); }

:root:not([data-display-theme="light"]) .people-table tbody tr:hover td { background: var(--surface-subtle); }
:root:not([data-display-theme="light"]) .people-table tbody tr:hover td.portal-setup-never_signed_in,
:root:not([data-display-theme="light"]) .people-table tbody tr:hover td.portal-setup-password_needed { background: var(--attention-surface); }
:root:not([data-display-theme="light"]) .people-table tbody tr:hover td.portal-setup-confirmation_needed { background: var(--info-surface); }
:root:not([data-display-theme="light"]) .people-table tbody tr:hover td.portal-setup-complete { background: var(--success-surface); }

:root:not([data-display-theme="light"]) .onboarding-summary-title .eyebrow,
:root:not([data-display-theme="light"]) .onboarding-summary-title strong,
:root:not([data-display-theme="light"]) .onboarding-oversight > summary::after { color: var(--attention-text); }

:root:not([data-display-theme="light"]) .onboarding-oversight[open] > summary { border-color: var(--attention-border); }

:root:not([data-display-theme="light"]) .document-modes { border-color: var(--line-strong); background: var(--surface-subtle); }
:root:not([data-display-theme="light"]) .mode-button.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 28%); }
:root:not([data-display-theme="light"]) .document-text-panel { border-color: var(--line); background: var(--panel); }
:root:not([data-display-theme="light"]) .document-text { border-color: var(--line); background: var(--surface-subtle); color: var(--ink); }

/* Reports use the portal's green depth rather than the legacy blue review treatment. */
:root:not([data-display-theme="light"]) .report-location-groups .resource-item.request-state-new,
:root:not([data-display-theme="light"]) .report-location-groups .resource-item.request-state-in_review,
:root:not([data-display-theme="light"]) .report-location-groups .resource-item.request-state-waiting,
:root:not([data-display-theme="light"]) .report-location-groups .resource-item.request-state-pending_confirmation,
:root:not([data-display-theme="light"]) .report-location-groups .resource-item.request-state-closed {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

:root:not([data-display-theme="light"]) .report-location-groups .personal-report-record.report-list-waiting-elsewhere,
:root:not([data-display-theme="light"]) .report-location-groups .review-report-record.report-list-waiting-elsewhere,
:root:not([data-display-theme="light"]) .report-location-groups .review-report-record.report-list-observer {
  background: var(--surface-subtle);
}

:root:not([data-display-theme="light"]) .report-location-groups .personal-report-record.report-list-action-required,
:root:not([data-display-theme="light"]) .report-location-groups .review-report-record.report-list-action-required {
  border-color: var(--attention-border);
  border-left-color: var(--gold);
  background: var(--attention-surface);
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .report-location-groups .report-list-action-required .report-responsibility {
  border-color: var(--attention-border);
  background: rgb(92 61 6 / 74%);
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .report-location-groups .report-list-action-required .report-record-action > strong {
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .report-location-groups .report-record-action > strong,
:root:not([data-display-theme="light"]) .report-location-groups .request-state-label { color: var(--muted); }

:root:not([data-display-theme="light"]) .report-location-groups .status-badge.status-new,
:root:not([data-display-theme="light"]) .report-location-groups .status-badge.status-in_review,
:root:not([data-display-theme="light"]) .report-location-groups .status-badge.status-submitted,
:root:not([data-display-theme="light"]) .report-location-groups .status-badge.status-waiting {
  border-color: #417b66;
  background: #12382d;
  color: #c5f4df;
}

:root:not([data-display-theme="light"]) .message-thread .message {
  border-left-color: var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink);
}

:root:not([data-display-theme="light"]) .message-thread .message .meta { color: var(--muted); }

:root:not([data-display-theme="light"]) .message-thread .message.reviewer,
:root:not([data-display-theme="light"]) .message-thread .message.private-message {
  border-left-color: var(--moss);
  background: #12362b;
}

:root:not([data-display-theme="light"]) .discussion-thread article.private-message {
  border-left-color: var(--moss);
  background: #12362b;
  color: var(--ink);
}

:root:not([data-display-theme="light"]) .message-thread .message.unread-comment,
:root:not([data-display-theme="light"]) .message-thread .message.private-message.unread-comment {
  border-left-color: var(--gold);
  background: var(--attention-surface);
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .discussion-thread article.private-message.unread-comment {
  border-left-color: var(--gold);
  background: var(--attention-surface);
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .message-thread .message.unread-comment .meta,
:root:not([data-display-theme="light"]) .message-thread .message.unread-comment a { color: var(--attention-text); }

:root:not([data-display-theme="light"]) .private-conversation-composer {
  border-color: #417b66;
  background: #102d24;
  color: var(--ink);
}

:root:not([data-display-theme="light"]) .private-conversation-composer > summary {
  color: var(--cedar);
}

:root:not([data-display-theme="light"]) .private-conversation-composer[open] > summary {
  border-color: #417b66;
}

:root:not([data-display-theme="light"]) .private-conversation-form .meta,
:root:not([data-display-theme="light"]) .private-recipient-list legend { color: var(--muted); }

:root:not([data-display-theme="light"]) .private-recipient-list label {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink);
}

/* The header stays a dark navigation context, including when the page is in light mode. */
:root[data-display-theme="light"] .site-header .nav-link:hover,
:root[data-display-theme="light"] .site-header .nav-link:focus-visible,
:root[data-display-theme="light"] .site-header .nav-menu > summary:hover,
:root[data-display-theme="light"] .site-header .nav-menu > summary:focus-visible,
:root[data-display-theme="light"] .site-header .nav-menu[open] > summary {
  background: #2c624d;
  color: #f4fbf7;
}

/* Scheduled flags share the dark portal surfaces across every list and detail state. */
:root:not([data-display-theme="light"]) .flag-occurrence,
:root:not([data-display-theme="light"]) .flag-recipient-row,
:root:not([data-display-theme="light"]) .current-flag-recipients span,
:root:not([data-display-theme="light"]) .flag-inline-form {
  border-color: var(--line);
  background: var(--panel);
  color: var(--ink);
}

:root:not([data-display-theme="light"]) .flag-occurrence,
:root:not([data-display-theme="light"]) .flag-recipient-row { border-left-color: #417b66; }

:root:not([data-display-theme="light"]) .flag-time-marker { color: var(--moss); }

:root:not([data-display-theme="light"]) .flag-occurrence.flag-due,
:root:not([data-display-theme="light"]) .flag-recipient-row.flag-due {
  border-color: var(--attention-border);
  border-left-color: var(--gold);
  background: var(--attention-surface);
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .flag-occurrence.flag-overdue,
:root:not([data-display-theme="light"]) .flag-recipient-row.flag-overdue {
  border-color: var(--danger-border);
  border-left-color: var(--danger-border);
  background: var(--danger-surface);
  color: var(--danger-text);
}

:root:not([data-display-theme="light"]) .flag-occurrence.flag-complete {
  border-color: var(--success-border);
  border-left-color: var(--success-border);
  background: var(--success-surface);
  color: var(--success-text);
}

:root:not([data-display-theme="light"]) .flag-occurrence.flag-due .meta,
:root:not([data-display-theme="light"]) .flag-occurrence.flag-due a { color: var(--attention-text); }

:root:not([data-display-theme="light"]) .flag-occurrence.flag-overdue .meta,
:root:not([data-display-theme="light"]) .flag-occurrence.flag-overdue a { color: var(--danger-text); }

:root:not([data-display-theme="light"]) .flag-occurrence.flag-complete .meta,
:root:not([data-display-theme="light"]) .flag-occurrence.flag-complete a { color: var(--success-text); }

/* Dark-mode foundation audit: portal UI never falls back to a fixed light surface. */
:root:not([data-display-theme="light"]) .nav-menu-panel,
:root:not([data-display-theme="light"]) .employee-count-tooltip,
:root:not([data-display-theme="light"]) .document-review-actions,
:root:not([data-display-theme="light"]) .requirement-section-heading,
:root:not([data-display-theme="light"]) .rdo-sick-total {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--ink);
}

:root:not([data-display-theme="light"]) .nav-menu-panel a,
:root:not([data-display-theme="light"]) .nav-menu-panel button,
:root:not([data-display-theme="light"]) .employee-count-tooltip,
:root:not([data-display-theme="light"]) .requirement-section-heading h3,
:root:not([data-display-theme="light"]) .requirement-row label { color: var(--ink); }

:root:not([data-display-theme="light"]) .nav-menu-panel a:hover,
:root:not([data-display-theme="light"]) .nav-menu-panel button:hover { background: var(--surface-subtle); }

:root:not([data-display-theme="light"]) .upload-received {
  border-color: var(--success-border);
  background: var(--success-surface);
  color: var(--success-text);
}

:root:not([data-display-theme="light"]) .phone-upload-form input[type="file"] {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink);
}

:root:not([data-display-theme="light"]) .requirement-state-completed { background: var(--success-surface); box-shadow: inset 3px 0 var(--success-border); }
:root:not([data-display-theme="light"]) .requirement-state-expected { background: var(--attention-surface); box-shadow: inset 3px 0 var(--gold); }
:root:not([data-display-theme="light"]) .requirement-state-in-progress { background: #12382d; box-shadow: inset 3px 0 var(--moss); }
:root:not([data-display-theme="light"]) .requirement-state-exempt,
:root:not([data-display-theme="light"]) .requirement-state-not-applicable { background: var(--surface-subtle); box-shadow: inset 3px 0 var(--line-strong); }
:root:not([data-display-theme="light"]) .requirement-state-attention { background: var(--danger-surface); box-shadow: inset 3px 0 var(--danger-border); }

:root:not([data-display-theme="light"]) .requirement-attention { border-color: var(--danger-border); background: var(--danger-surface); color: var(--danger-text) !important; }
:root:not([data-display-theme="light"]) .date-today-button { color: var(--cedar); }
:root:not([data-display-theme="light"]) .date-today-button:hover,
:root:not([data-display-theme="light"]) .date-today-button:focus-visible { background: var(--surface-subtle); color: var(--ink); }

:root:not([data-display-theme="light"]) .rdo-sick-total { border-left-color: var(--info-border); background: #12382d; color: var(--success-text); }
:root:not([data-display-theme="light"]) .rdo-entry-flag { background: #12382d; color: #c5f4df; }

:root:not([data-display-theme="light"]) .workflow-steps li.active,
:root:not([data-display-theme="light"]) .site-check-notes,
:root:not([data-display-theme="light"]) .rdo-correction-note,
:root:not([data-display-theme="light"]) .people-scope-note,
:root:not([data-display-theme="light"]) .onboarding-step-note {
  border-color: var(--attention-border);
  background: var(--attention-surface);
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .discussion-panel.has-unread-discussion {
  border-color: var(--attention-border);
  background: var(--attention-surface);
  box-shadow: inset 3px 0 0 var(--gold);
}

:root:not([data-display-theme="light"]) .discussion-unread-badge {
  border-color: var(--attention-border);
  background: var(--attention-surface);
  color: var(--attention-text);
}

:root:not([data-display-theme="light"]) .new-comment-label { color: var(--attention-text); }

:root:not([data-display-theme="light"]) .status-callout { border-color: var(--gold); color: var(--attention-text); }
:root:not([data-display-theme="light"]) .status-callout.complete { border-color: var(--success-border); color: var(--success-text); }

:root:not([data-display-theme="light"]) .rdo-day-count {
  border-color: var(--success-border);
  background: var(--success-surface);
  color: var(--success-text);
}

:root:not([data-display-theme="light"]) .rdo-legend .available::before { background: var(--panel); }
:root:not([data-display-theme="light"]) .rdo-legend .purpose-personal::before { background: #103d30; border-color: #4b9476; }
:root:not([data-display-theme="light"]) .rdo-legend .purpose-medical::before,
:root:not([data-display-theme="light"]) .rdo-legend .record-sick::before { background: #103443; border-color: #4d8ca4; }
:root:not([data-display-theme="light"]) .rdo-legend .record-unexpected::before { background: #463006; border-color: #bd8930; }
:root:not([data-display-theme="light"]) .rdo-legend .purpose-neutral::before,
:root:not([data-display-theme="light"]) .rdo-legend .purpose-unclassified::before { background: #24342e; border-color: #6d8379; }

/* Rendered and printable source documents intentionally remain paper-colored. */
