:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-muted: #eef2f0;
  --ink: #19211e;
  --muted: #68736e;
  --line: #d9dfdc;
  --sidebar: #17201d;
  --sidebar-muted: #9eaaa5;
  --accent: #147d63;
  --accent-soft: #e4f3ed;
  --critical: #c43f4e;
  --critical-soft: #fae9eb;
  --warning: #a96312;
  --warning-soft: #fff1dc;
  --blue: #2b66a7;
  --blue-soft: #e8f0fb;
  --shadow: 0 8px 28px rgba(25, 33, 30, 0.07);
  --sidebar-width: 236px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  min-height: 100vh;
  flex-direction: column;
  color: #eef4f1;
  background: var(--sidebar);
}

.brand-block {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand {
  width: fit-content;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--sidebar-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.main-nav {
  flex: 1;
  padding: 23px 14px;
}

.nav-heading {
  display: block;
  margin: 0 10px 8px;
  color: #78857f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-heading-secondary {
  margin-top: 28px;
}

.nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 0 11px;
  border-radius: 5px;
  color: #b9c3bf;
  font-weight: 600;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.nav-item.is-active {
  color: #ffffff;
  background: #286a59;
}

.nav-symbol {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-footer strong,
.sidebar-footer small {
  display: block;
}

.sidebar-footer strong {
  font-size: 12px;
}

.sidebar-footer small {
  margin-top: 2px;
  color: var(--sidebar-muted);
  font-size: 10px;
}

.mode-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #46c49a;
  box-shadow: 0 0 0 4px rgba(70, 196, 154, 0.12);
}

.workspace {
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.topbar-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-brand {
  display: none;
  color: var(--ink);
  font-weight: 750;
}

.topbar-separator {
  color: #b1b9b5;
}

.topbar-actions,
.freshness-indicator {
  display: flex;
  align-items: center;
}

.topbar-actions {
  min-width: 0;
  gap: 16px;
}

.freshness-indicator {
  min-width: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.freshness-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.freshness-indicator.is-stale .freshness-dot {
  background: var(--warning);
}

.freshness-indicator.is-unavailable .freshness-dot {
  background: #89928e;
}

.freshness-indicator.has-update {
  color: var(--blue);
}

.freshness-indicator.has-update .freshness-dot {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.freshness-text {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refresh-button {
  width: 30px;
  height: 30px;
  font-size: 17px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-menu form {
  margin: 0;
}

.user-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.user-name {
  max-width: 180px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.icon-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible,
.icon-link:hover,
.icon-link:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-muted);
  outline: none;
}

.nav-toggle {
  display: none;
}

.content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 34px 40px 64px;
}

.page-heading {
  display: flex;
  min-height: 68px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.page-heading h1,
.section-heading h2 {
  margin: 0;
  font-weight: 750;
  line-height: 1.16;
}

.page-heading h1 {
  font-size: 28px;
}

.section-heading h2 {
  font-size: 18px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.heading-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.status-badge,
.severity,
.state-mark,
.mini-flag {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge.is-test,
.state-mark.is-waiting,
.severity-warning {
  color: #84500e;
  background: var(--warning-soft);
}

.status-badge.is-safe,
.state-mark.is-ok {
  color: #0d684f;
  background: var(--accent-soft);
}

.status-badge.is-critical {
  color: #9f2636;
  background: var(--critical-soft);
}

.state-mark.is-closed,
.severity-critical {
  color: #9f2636;
  background: var(--critical-soft);
}

.severity-info {
  color: #285c97;
  background: var(--blue-soft);
}

.mini-flag {
  min-height: 18px;
  margin-left: 7px;
  padding: 1px 6px;
  color: #84500e;
  background: var(--warning-soft);
  font-size: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.metric-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  position: relative;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 19px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

a.metric-card:hover,
a.metric-card:focus-visible {
  border-color: #aeb9b4;
  box-shadow: var(--shadow);
  outline: none;
}

.metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #aeb7b3;
  content: "";
}

.metric-card.tone-critical::before {
  background: var(--critical);
}

.metric-card.tone-warning::before {
  background: var(--warning);
}

.metric-card.tone-success::before {
  background: var(--accent);
}

.metric-label,
.metric-detail {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  margin: 7px 0 2px;
  font-size: 30px;
  line-height: 1;
}

.section-heading {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.section-heading .eyebrow {
  margin-bottom: 3px;
}

.section-note,
.text-link,
.clear-link {
  color: var(--muted);
  font-size: 12px;
}

.text-link,
.clear-link,
.back-link {
  font-weight: 650;
}

.text-link:hover,
.clear-link:hover,
.back-link:hover {
  color: var(--accent);
}

.attention-band,
.data-section,
.document-section {
  margin-bottom: 28px;
}

.data-section {
  min-width: 0;
}

.attention-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.attention-row {
  display: grid;
  min-height: 78px;
  grid-template-columns: 9px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.attention-row:last-child {
  border-right: 0;
}

.attention-row:hover,
.attention-row:focus-visible {
  background: #f9fbfa;
  outline: none;
}

.attention-row strong,
.attention-row small {
  display: block;
}

.attention-row strong {
  font-size: 13px;
}

.attention-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.signal {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aeb7b3;
}

.signal-critical {
  background: var(--critical);
}

.signal-warning {
  background: var(--warning);
}

.signal-success {
  background: var(--accent);
}

.signal-neutral {
  background: var(--blue);
}

.row-arrow {
  color: #9ca7a2;
  font-size: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 26px;
}

.tasks-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e8ecea;
  text-align: left;
  vertical-align: middle;
}

th {
  height: 42px;
  color: var(--muted);
  background: #fafbfa;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafcfb;
}

td strong,
td small {
  display: block;
}

td strong {
  font-size: 12px;
}

td small {
  max-width: 520px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.critical-text {
  color: var(--critical);
  font-weight: 750;
}

.warning-text {
  color: var(--warning);
  font-weight: 750;
}

.compact-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.compact-row {
  display: grid;
  min-height: 61px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8ecea;
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-row strong,
.compact-row small {
  display: block;
}

.compact-row strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.compact-row small,
.compact-row time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.report-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-tile {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.report-tile:hover,
.report-tile:focus-visible {
  border-color: #aeb9b4;
  box-shadow: var(--shadow);
  outline: none;
}

.report-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.report-play,
.video-icon {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
}

.report-play {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 9px;
}

.report-tile > strong {
  margin-top: 16px;
  overflow-wrap: anywhere;
}

.report-tile p {
  display: -webkit-box;
  margin: 7px 0 16px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.report-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.55fr) minmax(210px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 25px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.filter-bar label,
.login-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #cfd7d3;
  border-radius: 4px;
  color: var(--ink);
  background: #ffffff;
  font-size: 12px;
  text-transform: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 125, 99, 0.1);
  outline: none;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.secondary-button {
  border: 1px solid #bcc6c1;
  color: var(--ink);
  background: var(--surface);
}

.primary-button:hover,
.primary-button:focus-visible {
  border-color: #0d684f;
  background: #0d684f;
  outline: none;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.primary-button:disabled {
  border-color: #aeb7b3;
  background: #aeb7b3;
  cursor: not-allowed;
}

.action-message {
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
}

.action-message.is-success {
  color: #0d684f;
  border-color: #afd6c9;
  background: var(--accent-soft);
}

.action-message.is-error {
  color: #9f2636;
  border-color: #ecc5cb;
  background: var(--critical-soft);
}

.action-gates {
  margin-bottom: 28px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-card {
  display: flex;
  min-height: 148px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.action-card-main {
  min-width: 0;
}

.action-card strong,
.blocked-action-row strong {
  display: block;
  font-size: 13px;
}

.action-card p {
  max-width: 620px;
  margin: 6px 0 13px;
  color: var(--muted);
  font-size: 11px;
}

.action-card form {
  flex: 0 0 auto;
}

.action-access {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.actions-split {
  margin-top: 32px;
}

.blocked-action-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.blocked-action-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8ecea;
}

.blocked-action-row:last-child {
  border-bottom: 0;
}

.blocked-action-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.actions-history {
  min-width: 760px;
}

.action-confirm-tool {
  width: min(720px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.action-confirm-summary h2 {
  margin: 0;
  font-size: 20px;
}

.action-confirm-summary > p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.action-confirm-facts {
  margin-bottom: 22px;
}

.action-confirm-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.action-confirm-form label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.action-confirm-form code {
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  border-radius: 4px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 750;
}

.action-confirm-form small {
  color: var(--warning);
  font-size: 10px;
}

.action-confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.clear-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.audit-table {
  min-width: 940px;
}

.audit-table th:nth-child(2) {
  width: 23%;
}

.audit-table th:nth-child(3) {
  width: 35%;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.pagination a {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination span {
  color: var(--muted);
  font-size: 11px;
}

.bar-list,
.key-value-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.bar-row,
.key-value-list > div {
  min-height: 53px;
  padding: 10px 14px;
  border-bottom: 1px solid #e8ecea;
}

.bar-row:last-child,
.key-value-list > div:last-child {
  border-bottom: 0;
}

.bar-row > div,
.key-value-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bar-row strong,
.bar-row span,
.key-value-list dt,
.key-value-list dd {
  font-size: 11px;
}

.bar-row span,
.key-value-list dd {
  color: var(--muted);
}

.bar-row progress {
  display: block;
  width: 100%;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e9eeeb;
}

.bar-row progress::-webkit-progress-bar {
  background: #e9eeeb;
}

.bar-row progress::-webkit-progress-value {
  background: var(--blue);
}

.bar-row progress::-moz-progress-bar {
  background: var(--blue);
}

.key-value-list dt,
.key-value-list dd {
  margin: 0;
}

.video-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.video-row {
  display: grid;
  min-height: 126px;
  grid-template-columns: 44px minmax(0, 1fr) minmax(180px, auto);
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.video-row:last-child {
  border-bottom: 0;
}

.video-row:hover,
.video-row:focus-visible {
  background: #fafcfb;
  outline: none;
}

.video-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 12px;
}

.video-main {
  min-width: 0;
}

.video-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.video-title-line strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.video-main p {
  display: -webkit-box;
  max-width: 820px;
  margin: 7px 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.video-tags span {
  padding: 3px 7px;
  border-radius: 3px;
  color: #52605a;
  background: var(--surface-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.video-stats {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.video-stats time,
.video-stats > span:not(.row-arrow) {
  grid-column: 1;
}

.video-stats .row-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.report-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.report-facts > div {
  min-height: 76px;
  padding: 14px 17px;
  border-right: 1px solid var(--line);
}

.report-facts > div:last-child {
  border-right: 0;
}

.report-facts span,
.report-facts strong {
  display: block;
}

.report-facts span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.report-facts strong {
  margin-top: 7px;
  font-size: 18px;
}

.report-task {
  grid-template-columns: 8px minmax(0, 1fr);
}

.document-section {
  padding: 22px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.document-content,
.json-content {
  max-width: 980px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #303a36;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.transcript-section {
  background: #fbfcfb;
}

.transcript-content {
  max-height: 620px;
  overflow-y: auto;
  color: #58645e;
}

.decision-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.decision-row {
  display: grid;
  min-height: 90px;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.decision-row:last-child {
  border-bottom: 0;
}

.decision-id,
.mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.decision-id {
  color: var(--blue);
  font-weight: 800;
}

.decision-row p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.decision-row small {
  color: #8a958f;
  font-size: 9px;
  text-transform: uppercase;
}

.empty-state {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.empty-state-large {
  min-height: 340px;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.empty-state-large strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state-large .secondary-button {
  margin-top: 12px;
}

.trends-heading {
  align-items: center;
}

.period-tabs {
  display: inline-flex;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.period-tab {
  display: inline-grid;
  min-width: 72px;
  padding: 0 12px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.period-tab:last-child {
  border-right: 0;
}

.period-tab:hover,
.period-tab:focus-visible {
  color: var(--ink);
  background: var(--surface-muted);
  outline: none;
}

.period-tab.is-active {
  color: #ffffff;
  background: var(--accent);
}

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

.trend-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.trend-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 22px;
  padding: 15px 17px;
  border-bottom: 1px solid #e8ecea;
}

.trend-row:last-child {
  border-bottom: 0;
}

.trend-row:hover {
  background: #fafcfb;
}

.trend-time time,
.trend-time small {
  display: block;
}

.trend-time time {
  font-size: 12px;
  font-weight: 750;
}

.trend-time small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.trend-series {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.trend-line {
  display: grid;
  min-width: 0;
  grid-template-columns: 132px minmax(80px, 1fr) 66px;
  align-items: center;
  gap: 10px;
}

.trend-line > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.trend-line strong {
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.trend-key {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aab3af;
}

.key-critical {
  background: var(--critical);
}

.key-warning {
  background: var(--warning);
}

.key-blue {
  background: var(--blue);
}

.key-success {
  background: var(--accent);
}

.trend-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  appearance: none;
  background: #e8ecea;
}

.trend-progress::-webkit-progress-bar {
  border-radius: 2px;
  background: #e8ecea;
}

.progress-critical::-webkit-progress-value {
  background: var(--critical);
}

.progress-warning::-webkit-progress-value {
  background: var(--warning);
}

.progress-blue::-webkit-progress-value {
  background: var(--blue);
}

.progress-success::-webkit-progress-value {
  background: var(--accent);
}

.progress-critical::-moz-progress-bar {
  background: var(--critical);
}

.progress-warning::-moz-progress-bar {
  background: var(--warning);
}

.progress-blue::-moz-progress-bar {
  background: var(--blue);
}

.progress-success::-moz-progress-bar {
  background: var(--accent);
}

.trend-list-compact .trend-row {
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 14px;
}

.trend-list-compact .trend-line {
  grid-template-columns: 92px minmax(60px, 1fr) 52px;
  gap: 8px;
}

.trend-cost-breakdown {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
}

.data-footnote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.search-heading {
  align-items: center;
  margin-bottom: 18px;
}

.global-search-form {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.global-search-field {
  position: relative;
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.global-search-field input {
  height: 46px;
  padding-right: 14px;
  padding-left: 43px;
  border-color: #c5ceca;
  font-size: 14px;
}

.search-symbol {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: var(--muted);
  font-size: 20px;
  transform: translateY(-50%);
}

.global-search-form .primary-button {
  min-width: 96px;
  min-height: 46px;
}

.search-clear {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
}

.search-clear:hover,
.search-clear:focus-visible {
  color: var(--critical);
  outline: none;
}

.search-scopes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.search-scope {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.search-scope:last-child {
  border-right: 0;
}

.search-scope strong {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-muted);
  font-size: 9px;
  text-align: center;
}

.search-scope:hover,
.search-scope:focus-visible {
  color: var(--ink);
  background: #fafcfb;
  outline: none;
}

.search-scope.is-active {
  color: #ffffff;
  background: var(--accent);
}

.search-scope.is-active strong {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.search-start-state {
  display: flex;
  min-height: 340px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: center;
}

.search-start-state > strong {
  font-size: 19px;
}

.search-start-state > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.search-source-counts {
  display: grid;
  width: min(520px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.search-source-counts > div {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.search-source-counts > div:last-child {
  border-right: 0;
}

.search-source-counts span {
  color: var(--muted);
  font-size: 10px;
}

.search-source-counts strong {
  font-size: 20px;
}

.search-results-section {
  min-width: 0;
}

.search-results {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.search-result {
  display: grid;
  min-width: 0;
  min-height: 108px;
  grid-template-columns: 42px minmax(0, 1fr) 170px 18px;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
  border-bottom: 1px solid #e8ecea;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: #fafcfb;
  outline: none;
}

.search-result-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 800;
}

.search-result-mark.tone-critical {
  color: var(--critical);
  background: var(--critical-soft);
}

.search-result-mark.tone-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.search-result-mark.tone-success {
  color: var(--accent);
  background: var(--accent-soft);
}

.search-result-mark.tone-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.search-result-main {
  min-width: 0;
}

.search-result-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.search-result-title > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.search-result-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.search-result-main p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-result-meta {
  min-width: 0;
  color: var(--muted);
  text-align: right;
}

.search-result-meta span,
.search-result-meta small {
  display: block;
}

.search-result-meta span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.search-result-meta small {
  margin-top: 5px;
  font-size: 9px;
}

.task-search-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.task-search-bar label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.operations-heading {
  align-items: center;
  margin-bottom: 18px;
}

.operations-tabs {
  display: flex;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  scrollbar-width: thin;
}

.operations-tab {
  display: inline-grid;
  min-width: 136px;
  min-height: 42px;
  flex: 1 0 auto;
  padding: 0 15px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
  white-space: nowrap;
}

.operations-tab:last-child {
  border-right: 0;
}

.operations-tab:hover,
.operations-tab:focus-visible {
  color: var(--ink);
  background: var(--surface-muted);
  outline: none;
}

.operations-tab.is-active {
  color: #ffffff;
  background: var(--accent);
}

.operations-state {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: #f7faf8;
  font-size: 10px;
}

.operations-state div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.operations-metrics {
  margin-bottom: 24px;
}

.operations-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.fact-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-grid > div {
  display: flex;
  min-width: 0;
  min-height: 82px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid > div:nth-child(2n) {
  border-right: 0;
}

.fact-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fact-grid-three > div:nth-child(2n),
.fact-grid-four > div:nth-child(2n) {
  border-right: 1px solid var(--line);
}

.fact-grid-three > div:nth-child(3n),
.fact-grid-four > div:nth-child(4n) {
  border-right: 0;
}

.fact-grid-three > div,
.fact-grid-four > div {
  border-bottom: 0;
}

.fact-grid span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.fact-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.aggregate-list,
.availability-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.aggregate-row {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 13px;
  border-bottom: 1px solid #e8ecea;
  font-size: 11px;
}

.aggregate-row:last-child {
  border-bottom: 0;
}

.aggregate-row span {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.aggregate-row strong {
  flex: 0 0 auto;
  font-size: 12px;
  text-align: right;
}

.subsection-heading {
  margin: 20px 0 9px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.cell-note {
  letter-spacing: 0;
}

.management-period {
  display: grid;
  min-height: 54px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  background: var(--surface);
}

.management-period span,
.management-period small {
  color: var(--muted);
  font-size: 10px;
}

.management-period strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.availability-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-bottom: 1px solid #e8ecea;
}

.availability-row:last-child {
  border-bottom: 0;
}

.availability-row .state-mark {
  width: 24px;
  height: 24px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

.state-mark.is-ready {
  color: #0d684f;
  background: var(--accent-soft);
}

.state-mark.is-blocked {
  color: #84500e;
  background: var(--warning-soft);
}

.availability-row strong,
.availability-row small {
  display: block;
}

.availability-row strong {
  font-size: 11px;
}

.availability-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.login-body {
  min-height: 100vh;
  background: #e9eeeb;
}

.login-layout {
  display: grid;
  width: min(880px, calc(100% - 36px));
  min-height: 560px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  margin: max(42px, 8vh) auto;
  overflow: hidden;
  border: 1px solid #cfd7d3;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(25, 33, 30, 0.13);
}

.login-panel {
  display: flex;
  flex-direction: column;
  padding: 42px 48px 36px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 22px;
}

.login-brand span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.login-heading {
  margin-top: 72px;
}

.login-heading h1 {
  margin: 0;
  font-size: 28px;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.login-form input {
  height: 42px;
}

.login-form .primary-button {
  min-height: 44px;
  margin-top: 4px;
}

.form-alert {
  margin-top: 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--critical);
  color: #8f2533;
  background: var(--critical-soft);
  font-size: 11px;
}

.login-security {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 10px;
}

.login-status {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 46px 42px;
  color: #e9f0ed;
  background: #263934;
}

.status-kicker {
  color: #92b7aa;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.login-status p {
  max-width: 300px;
  margin: 12px 0 34px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}

.login-status dl {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.login-status dl > div {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.login-status dt,
.login-status dd {
  margin: 0;
  font-size: 10px;
}

.login-status dt {
  color: #a8b7b1;
}

.login-status dd {
  font-weight: 750;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 1100px) {
  .content {
    padding-right: 26px;
    padding-left: 26px;
  }

  .metric-grid,
  .metric-grid-three,
  .metric-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .attention-list {
    grid-template-columns: 1fr;
  }

  .attention-row {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .attention-row:last-child {
    border-bottom: 0;
  }

  .split-layout,
  .tasks-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .fact-grid-four > div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .fact-grid-four > div:nth-child(2n) {
    border-right: 0;
  }

  .fact-grid-four > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .filter-bar {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.7fr) minmax(200px, 1fr);
  }

  .filter-bar .secondary-button,
  .filter-bar .clear-link {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: min(290px, 84vw);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(10, 17, 14, 0.45);
  }

  body.nav-open .mobile-overlay {
    display: block;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    height: 58px;
    padding: 0 14px;
  }

  .nav-toggle,
  .topbar-brand {
    display: inline-grid;
  }

  .topbar-context {
    margin-right: auto;
  }

  .topbar-actions {
    gap: 6px;
  }

  .freshness-text {
    max-width: 112px;
  }

  .topbar-separator,
  .topbar-context > span:last-child,
  .user-name {
    display: none;
  }

  .content {
    padding: 24px 15px 48px;
  }

  .page-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .period-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search-heading {
    margin-bottom: 16px;
  }

  .global-search-form {
    align-items: stretch;
  }

  .global-search-field input {
    font-size: 13px;
  }

  .global-search-form .primary-button {
    min-width: 76px;
    padding: 0 11px;
  }

  .search-scopes {
    margin-bottom: 21px;
  }

  .search-scope {
    gap: 5px;
    padding: 0 5px;
    font-size: 10px;
  }

  .search-scope strong {
    min-width: 20px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .search-start-state {
    min-height: 300px;
    padding: 24px 16px;
  }

  .search-result {
    min-height: 118px;
    grid-template-columns: 38px minmax(0, 1fr) 16px;
    align-items: start;
    gap: 11px;
    padding: 14px;
  }

  .search-result-mark {
    width: 36px;
    height: 36px;
  }

  .search-result-meta {
    grid-column: 2;
    text-align: left;
  }

  .search-result-meta span,
  .search-result-meta small {
    display: inline;
  }

  .search-result-meta small::before {
    content: " · ";
  }

  .search-result > .row-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .task-search-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .task-search-bar .clear-link {
    grid-column: 1 / -1;
    min-height: 28px;
  }

  .operations-tabs {
    margin-right: -15px;
    width: calc(100% + 15px);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    scroll-snap-type: x proximity;
  }

  .operations-tab {
    min-width: 132px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .operations-state {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .fact-grid-three {
    grid-template-columns: 1fr;
  }

  .fact-grid-three > div,
  .fact-grid-three > div:nth-child(2n),
  .fact-grid-three > div:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-grid-three > div:last-child {
    border-bottom: 0;
  }

  .management-period {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .period-tab {
    min-width: 0;
    padding: 0 6px;
  }

  .trend-row,
  .trend-list-compact .trend-row {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 14px;
  }

  .trend-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .trend-time small {
    margin-top: 0;
    text-align: right;
  }

  .trend-line,
  .trend-list-compact .trend-line {
    grid-template-columns: 104px minmax(54px, 1fr) 58px;
    gap: 7px;
  }

  .trend-cost-breakdown {
    justify-content: flex-start;
    padding-left: 111px;
  }

  .heading-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }

  .metric-grid,
  .metric-grid-three,
  .metric-grid-four {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-card {
    min-height: 112px;
    padding: 14px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .section-heading {
    align-items: flex-end;
  }

  .section-heading h2 {
    font-size: 16px;
  }

  .report-strip {
    display: flex;
    margin-right: -15px;
    overflow-x: auto;
    padding-right: 15px;
    scroll-snap-type: x mandatory;
  }

  .report-tile {
    min-width: 78vw;
    scroll-snap-align: start;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-bar .secondary-button,
  .filter-bar .clear-link {
    width: 100%;
  }

  .video-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .video-icon {
    width: 36px;
    height: 36px;
  }

  .video-stats {
    grid-column: 2;
    grid-template-columns: 1fr auto;
    text-align: left;
  }

  .video-stats .row-arrow {
    grid-column: 2;
  }

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

  .report-facts > div:nth-child(2) {
    border-right: 0;
  }

  .report-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .document-section {
    padding: 17px;
  }

  .decision-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .decision-row .state-mark {
    grid-column: 2;
  }

  .login-layout {
    width: min(480px, calc(100% - 24px));
    min-height: 0;
    grid-template-columns: 1fr;
    margin: 12px auto;
  }

  .login-panel {
    min-height: calc(100vh - 24px);
    padding: 30px 25px;
  }

  .login-heading {
    margin-top: 65px;
  }

  .login-status {
    display: none;
  }
}

@media (max-width: 360px) {
  .freshness-text {
    display: none;
  }
}

@media (max-width: 430px) {
  .metric-grid,
  .metric-grid-three,
  .metric-grid-four {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 104px;
  }

  .fact-grid,
  .fact-grid-four {
    grid-template-columns: 1fr;
  }

  .fact-grid > div,
  .fact-grid > div:nth-child(2n),
  .fact-grid-four > div:nth-child(2n),
  .fact-grid-four > div:nth-child(4n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-grid > div:last-child,
  .fact-grid-four > div:last-child {
    border-bottom: 0;
  }

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

  .report-facts > div,
  .report-facts > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-facts > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .action-grid {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .action-card form,
  .action-card .primary-button {
    width: 100%;
  }

  .action-confirm-tool {
    padding: 17px;
  }

  .action-confirm-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
