:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef5f3;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #d9e2e7;
  --uuch-purple: #3c3a73;
  --uuch-purple-dark: #2a2951;
  --uuch-gold: #febe10;
  --uuch-teal: #006073;
  --uuch-footer: #19182f;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --blue: #2563eb;
  --amber: #b45309;
  --rose: #be123c;
  --green: #15803d;
  --violet: #7c3aed;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--uuch-purple-dark);
  border-radius: 0 0 8px 0;
  color: #fff;
  font-weight: 900;
  left: 0;
  padding: 10px 14px;
  position: fixed;
  top: 0;
  transform: translateY(-110%);
  transition: transform 120ms ease;
  z-index: 20;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 6px rgba(254, 190, 16, 0.24);
  outline: 3px solid var(--uuch-teal);
  outline-offset: 3px;
}

.skip-link:focus-visible {
  box-shadow: none;
  outline-color: var(--uuch-gold);
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-masthead {
  background: #fff;
  border-bottom: 4px solid var(--uuch-gold);
}

.masthead-inner {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 390px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1320px;
  padding: 14px 24px;
}

.masthead-logo img {
  display: block;
  height: auto;
  max-width: 100%;
}

.masthead-copy strong,
.masthead-copy span {
  display: block;
}

.masthead-copy strong {
  color: var(--uuch-purple);
  font-size: 1.08rem;
  line-height: 1.25;
}

.masthead-copy span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 136px);
}

.sidebar {
  background: #fbfcfd;
  border-right: 1px solid var(--line);
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--uuch-purple), var(--uuch-teal));
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.nav-links a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 11px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-strong);
  color: var(--uuch-purple);
}

.logout-form {
  margin-top: 18px;
}

.logout-form button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
}

.logout-form button:hover {
  color: var(--uuch-purple);
}

.site-footer {
  background: var(--uuch-footer);
  color: #ddd;
}

.footer-stripe {
  background: linear-gradient(
    90deg,
    #3c3a73 0 7%,
    #febe10 7% 10%,
    #006073 10% 15%,
    #e4305d 15% 18%,
    #8fe848 18% 22%,
    #19182f 22% 28%,
    #febe10 28% 31%,
    #006073 31% 36%,
    #e4305d 36% 39%,
    #8fe848 39% 43%,
    #3c3a73 43% 100%
  );
  height: 8px;
}

.footer-inner {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.site-footer p {
  margin: 2px 0;
}

.site-footer a {
  color: var(--uuch-gold);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.main {
  padding: 32px;
  min-width: 0;
}

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

.page-heading h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 4px 0 0;
}

.page-intro {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 680px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.secondary {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash,
.form-errors {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 12px 14px;
}

.flash.success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.flash.error,
.form-errors {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.form-errors p {
  margin: 0;
}

.request-layout,
.detail-layout,
.confirmation-shell,
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.form-surface,
.intake-summary,
.table-surface,
.detail-main,
.triage-panel,
.activity-panel,
.confirmation-panel,
.login-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-surface,
.detail-main,
.confirmation-panel,
.login-panel {
  padding: 24px;
}

.confirmation-shell,
.login-shell {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.confirmation-panel h1,
.login-panel h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.confirmation-copy {
  color: var(--muted);
  margin: 0 0 22px;
}

.confirmation-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
}

.confirmation-summary div {
  background: #fff;
  min-height: 82px;
  padding: 14px;
}

.confirmation-summary span,
.confirmation-summary strong {
  display: block;
}

.confirmation-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.confirmation-summary strong {
  margin-top: 6px;
}

.next-step {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 14px;
}

.next-step p {
  color: var(--muted);
  margin: 4px 0 0;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-panel {
  max-width: 440px;
  width: 100%;
}

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

.privacy-notice,
.privacy-reminder,
.demo-limit-notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  margin-bottom: 18px;
  padding: 14px;
}

.privacy-notice strong,
.privacy-reminder strong,
.demo-limit-notice strong {
  display: block;
  margin-bottom: 4px;
}

.privacy-notice p,
.privacy-reminder p,
.demo-limit-notice p {
  margin: 0;
}

.demo-limit-notice {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: var(--teal-dark);
}

.demo-limit-notice.limit-reached {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.form-grid.compact {
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.required-marker,
.required-inline {
  color: var(--rose);
  font-style: normal;
  font-weight: 900;
}

.required-marker {
  font-size: 0.72rem;
  margin-left: 4px;
  text-transform: uppercase;
}

.field-help {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  line-height: 1.35;
  margin: -4px 0 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 9px 11px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
  outline: none;
}

.attachment-placeholder {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #b9c7d2;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin: 4px 0 20px;
  min-height: 52px;
  padding: 12px 14px;
}

.attachment-placeholder span {
  color: var(--muted);
  font-weight: 800;
}

.attachment-placeholder strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.intake-summary {
  padding: 22px;
}

.intake-summary h2,
.triage-panel h2,
.activity-panel h2,
.description-block h2,
.comment-section h2 {
  font-size: 1rem;
  margin: 0 0 16px;
}

.routing-list {
  display: grid;
  gap: 16px;
}

.routing-list > div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.routing-list p {
  margin: 0;
}

.routing-list strong,
.routing-list small {
  display: block;
}

.routing-list small {
  color: var(--muted);
  margin-top: 2px;
}

.category-dot {
  border-radius: 99px;
  display: inline-block;
  height: 12px;
  margin-top: 6px;
  width: 12px;
}

.category-dot.facilities {
  background: var(--teal);
}

.category-dot.media {
  background: var(--blue);
}

.category-dot.care {
  background: var(--violet);
}

.category-dot.admin {
  background: var(--amber);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  scroll-margin-top: 14px;
}

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

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.metric strong {
  font-size: 1.8rem;
  line-height: 1.1;
  margin-top: 6px;
}

.metric.urgent strong {
  color: var(--rose);
}

.metric.resolved strong {
  color: var(--green);
}

.filter-bar {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 160px 200px 150px minmax(220px, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
}

.filter-bar label {
  margin-bottom: 0;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-surface {
  overflow: hidden;
}

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

table {
  border-collapse: collapse;
  min-width: 920px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sort-link {
  align-items: center;
  border-radius: 6px;
  color: inherit;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: -8px -10px;
  min-height: 34px;
  padding: 8px 10px;
  text-decoration: none;
}

.sort-link:hover,
.sort-link.active {
  color: var(--teal-dark);
}

.sort-link:hover {
  background: #eef5f3;
}

.sort-arrow {
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.75rem;
  height: 22px;
  justify-content: center;
  line-height: 1;
  min-width: 22px;
  text-transform: none;
}

.sort-link.active .sort-arrow {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

td strong,
td small {
  display: block;
  overflow-wrap: anywhere;
}

td small {
  color: var(--muted);
  margin-top: 3px;
}

td::before {
  content: none;
}

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

.ticket-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 24px;
  padding: 3px 9px;
  white-space: nowrap;
}

.priority-low {
  background: #eef2ff;
  color: #3730a3;
}

.priority-normal {
  background: #ecfdf5;
  color: #166534;
}

.priority-high {
  background: #fff7ed;
  color: #9a3412;
}

.priority-urgent {
  background: #fff1f2;
  color: #be123c;
}

.status-new {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-in-review {
  background: #f5f3ff;
  color: #6d28d9;
}

.status-scheduled {
  background: #ecfeff;
  color: #0e7490;
}

.status-waiting {
  background: #fffbeb;
  color: #92400e;
}

.status-resolved,
.visibility-public {
  background: #ecfdf5;
  color: #166534;
}

.visibility-internal {
  background: #f1f5f9;
  color: #475569;
}

.empty-state {
  color: var(--muted);
  font-weight: 700;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.description-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.description-block p {
  margin: 0;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 22px 0;
  overflow: hidden;
}

.metadata-grid div {
  background: #fff;
  min-height: 82px;
  padding: 14px;
}

.metadata-grid span,
.metadata-grid strong {
  display: block;
}

.metadata-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metadata-grid strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.comment-section {
  padding-top: 2px;
}

.comment-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.comment-form .field-help {
  margin: 0 0 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.comment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.comment-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.comment-card p {
  margin: 10px 0;
}

.comment-card small {
  color: var(--muted);
}

.detail-side {
  display: grid;
  gap: 16px;
}

.triage-panel,
.activity-panel {
  padding: 20px;
}

.triage-panel label {
  margin-bottom: 14px;
}

.activity-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-list li {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}

.activity-list strong,
.activity-list small {
  display: block;
}

.activity-list small {
  color: var(--muted);
  margin-top: 3px;
}

.notification-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.notification-summary,
.notification-card,
.settings-panel,
.settings-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notification-summary,
.settings-panel,
.settings-side {
  padding: 22px;
}

.settings-panel {
  align-items: start;
  display: grid;
  gap: 22px 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
}

.notification-summary h2,
.settings-side h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.settings-group {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.settings-group + .settings-group {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.settings-group legend {
  color: var(--uuch-purple);
  font-size: 1rem;
  font-weight: 900;
  padding: 0 0 4px;
}

.settings-panel > .form-actions {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 18px;
}

.notification-summary strong {
  color: var(--teal-dark);
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.notification-summary p {
  color: var(--muted);
  margin: 0;
}

.notification-list {
  display: grid;
  gap: 14px;
}

.notification-card {
  padding: 18px;
}

.notification-card header,
.notification-card footer {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.notification-card header div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notification-card header a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.notification-card header small,
.notification-card footer,
.recipient {
  color: var(--muted);
}

.notification-card h2 {
  font-size: 1.05rem;
  margin: 14px 0 6px;
}

.notification-card pre {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  margin: 12px 0;
  overflow-x: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.audience-staff {
  background: #eff6ff;
  color: #1d4ed8;
}

.audience-requester {
  background: #ecfdf5;
  color: #166534;
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.settings-side dl,
.settings-side dd {
  margin: 0;
}

.settings-side dl {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-side dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-side dd {
  font-weight: 800;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .masthead-inner {
    grid-template-columns: 1fr;
  }

  .masthead-logo img {
    max-width: min(520px, 100%);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    position: static;
  }

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

  .request-layout,
  .detail-layout,
  .confirmation-shell,
  .login-shell,
  .notification-layout,
  .settings-layout,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    grid-template-columns: 1fr;
  }

  .settings-group + .settings-group {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 22px;
  }

  .settings-side dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .table-wrap {
    overflow-x: visible;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  table {
    border-collapse: separate;
    border-spacing: 0;
  }

  thead {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    height: auto;
    margin: 0 12px 12px;
    overflow: visible;
    position: static;
    width: auto;
  }

  tbody {
    background: var(--bg);
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  thead tr {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  thead th {
    border: 0;
    display: block;
    padding: 0;
  }

  thead .sort-link {
    background: #f8fafc;
    border: 1px solid var(--line);
    margin: 0;
    min-height: 44px;
  }

  thead .sort-link.active {
    background: #eef5f3;
    border-color: #99f6e4;
  }

  tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

  td {
    align-items: start;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 12px 14px;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.4;
    text-transform: uppercase;
  }

  td:first-child {
    background: #f8fafc;
  }

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

  td[colspan] {
    display: block;
  }

  td[colspan]::before {
    content: none;
  }
}

@media (max-width: 640px) {
  .masthead-inner,
  .main,
  .sidebar {
    padding: 18px;
  }

  .masthead-copy strong {
    font-size: 1.08rem;
  }

  .masthead-logo img {
    max-width: 280px;
  }

  .brand {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .brand-mark {
    height: 38px;
    width: 38px;
  }

  .nav-links {
    gap: 6px;
    margin-top: 18px;
  }

  .nav-links a {
    min-height: 44px;
    padding: 10px;
    text-align: center;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading h1 {
    font-size: 1.65rem;
  }

  .form-surface,
  .detail-main,
  .confirmation-panel,
  .login-panel,
  .intake-summary,
  .triage-panel,
  .activity-panel,
  .notification-summary,
  .notification-card,
  .settings-panel,
  .settings-side {
    padding: 18px;
  }

  .form-grid,
  .metadata-grid,
  .confirmation-summary,
  .settings-side dl {
    grid-template-columns: 1fr;
  }

  .metric-row {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metric {
    min-height: 62px;
    padding: 8px 6px;
  }

  .metric span {
    font-size: 0.65rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .metric strong {
    font-size: 1.2rem;
    margin-top: 3px;
  }

  .button,
  .form-actions .button,
  .filter-actions,
  .filter-actions .button {
    width: 100%;
  }

  .attachment-placeholder {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
