:root {
  --background: #f7f8f5;
  --surface: #ffffff;
  --sidebar: #111315;
  --charcoal: #24282c;
  --sidebar-text: #f7f8f5;
  --sidebar-muted: #a7adb1;
  --sidebar-border: #34393d;
  --text: #111315;
  --muted: #686f74;
  --border: #d8dcda;
  --border-dark: rgba(247, 248, 245, 0.12);
  --accent: #FFD400;
  --accent-hover: #FFD400;
  --accent-text: #111315;
  --critical: #d92d20;
  --warning: #e59a13;
  --success: #238636;
  --radius: 2px;

  --font-heading:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "Segoe UI", sans-serif;
  --font-mono:
    "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Monaco, "IBM Plex Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--background);
}

h1,
h2,
h3,
.brand strong {
  font-family: var(--font-heading);
}

.mono {
  font-family: var(--font-mono);
}

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

button,
input,
select,
textarea {
  font: inherit;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.smooth-input-shell {
  position: relative;
  display: block;
  width: 100%;
}

.smooth-input-shell .smooth-caret-input {
  caret-color: transparent;
}

.smooth-input-mirror {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  color: transparent;
  pointer-events: none;
  white-space: pre;
}

.smooth-input-mirror span {
  display: inline-block;
  min-width: 1px;
}

.smooth-input-caret {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 2px;
  height: 62%;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(17, 19, 21, 0.1);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 120ms ease,
    transform 90ms ease-out;
  will-change: transform;
}


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

.app-shell-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.app-shell-auth .main-content {
  width: min(100%, 460px);
  padding: 0;
}

body.auth-marketing {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 212, 0, 0.18) 0%,
      rgba(255, 212, 0, 0) 28%
    ),
    linear-gradient(
      to bottom,
      rgba(17, 19, 21, 0.08) 0%,
      rgba(247, 248, 245, 0) 34%
    ),
    var(--background);
}

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

body.auth-marketing .page-content {
  width: 100%;
}

body.auth-marketing .login-panel {
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.64) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 28px 80px rgba(17, 19, 21, 0.14);
}

body.auth-marketing .login-panel::before,
body.auth-marketing .login-panel::after {
  display: none;
}

body.auth-marketing .panel-header {
  display: block;
  margin-bottom: 22px;
  text-align: center;
}

body.auth-marketing .login-mark {
  display: inline-flex;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: var(--text);
}

body.auth-marketing .login-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

body.auth-marketing .panel-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.45rem);
  line-height: 1.04;
}

body.auth-marketing .panel-header p {
  max-width: 300px;
  margin: 10px auto 0;
  color: rgba(17, 19, 21, 0.62);
  line-height: 1.5;
}

body.auth-marketing .login-register-link {
  margin: 0 0 20px;
  color: rgba(17, 19, 21, 0.62);
  text-align: center;
}

body.auth-marketing .login-register-link a {
  color: var(--text);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
}

body.auth-marketing .login-form {
  display: grid;
  gap: 14px;
}

body.auth-marketing .login-form div {
  display: grid;
  gap: 7px;
}

body.auth-marketing .login-form label {
  color: rgba(17, 19, 21, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

body.auth-marketing .login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(17, 19, 21, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
}

body.auth-marketing .login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.2);
}

body.auth-marketing .login-form .primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border-color: var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--sidebar-text);
  font-size: 0.92rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(17, 19, 21, 0.18);
}

body.auth-marketing .login-form .primary-button:hover {
  background: #1b1e21;
}

/* Sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  background: var(--sidebar);
  color: var(--sidebar-text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 4px 8px;
  margin-bottom: 20px;
}

.brand-logo,
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sidebar-text);
  flex-shrink: 0;
}

.brand-logo {
  width: 148px;
  aspect-ratio: 989 / 248;
}

.brand-icon {
  width: 32px;
  aspect-ratio: 333 / 240;
}

.brand-logo svg,
.brand-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  min-width: 0;
  align-items: center;
}

.sidebar .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 60px;
  padding: 4px 8px 10px;
}

.sidebar .brand-logo {
  width: 156px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--sidebar-text);
}

.brand small,
.brand-tagline {
  color: var(--sidebar-muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.theme-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.theme-control-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted, #6b7280);
}

.theme-toggle {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 50%;
  background: var(--surface-color, #ffffff);
  color: var(--text-color, #111111);
  cursor: pointer;
  transition:
    background-color 250ms ease,
    border-color 250ms ease,
    color 250ms ease,
    transform 150ms ease;
}

.theme-toggle:hover {
  background: var(--surface-hover, #f3f4f6);
}

.theme-toggle:active {
  transform: scale(0.94);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-color, #FFD400);
  outline-offset: 3px;
}

.theme-toggle-icon {
  width: 100%;
  height: 100%;
}

.theme-toggle-mask,
.theme-toggle-circle,
.theme-toggle-rays {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 350ms ease-in-out,
    opacity 350ms ease-in-out;
}

.theme-toggle-circle {
  transition:
    r 350ms ease-in-out,
    transform 350ms ease-in-out;
}

html[data-theme="dark"] .theme-toggle-mask {
  transform: translate(-12px, 10px);
}

html[data-theme="dark"] .theme-toggle-circle {
  r: 10;
}

html[data-theme="dark"] .theme-toggle-rays {
  opacity: 0;
  transform: rotate(-100deg) scale(0.5);
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.navigation-link {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--sidebar-muted);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}

.navigation-link:hover {
  background: rgba(247, 248, 245, 0.06);
  color: var(--sidebar-text);
}

.navigation-link.active {
  background: rgba(223, 255, 69, 0.08);
  border-color: rgba(223, 255, 69, 0.2);
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--sidebar-text);
  font-weight: 600;
}

.sidebar-footer {
  padding: 12px 8px 4px;
  color: var(--sidebar-muted);
  font-size: 0.7rem;
  border-top: 1px solid var(--sidebar-border);
  margin-top: 12px;
}

/* Main content */

.main-content {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 48px) 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.topbar h1 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

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

.page-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Metrics */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 116px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.metric-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.metric-card strong {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.metric-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Panels */

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--muted);
  opacity: 0.55;
  pointer-events: none;
}

.panel::before {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.panel::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

.panel-dark::before,
.panel-dark::after {
  border-color: var(--sidebar-muted);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 2px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.panel-header p:not(.eyebrow) {
  max-width: 66ch;
  margin: 8px 0 0;
  color: var(--muted);
}

.panel-header a:not(.primary-button) {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px;
  text-align: left;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* Status */

.status-critical {
  color: var(--critical);
}

.status-warning {
  color: var(--warning);
}

.status-success {
  color: var(--success);
}

/* Dense data (tables, timelines) */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th {
  text-align: left;
  padding: 10px 12px;
  color: #c7cccf;
  background: var(--charcoal);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  background: var(--surface);
}

tbody tr:hover {
  background: #f3f6e8;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

td.actions-cell {
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.1em;
}

/* Dashboard: control panels */

.dashboard-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: stretch;
}

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

.panel-dark {
  background: var(--charcoal);
  border: 1px solid var(--border-dark);
  color: var(--sidebar-text);
}

.panel-dark .panel-header h2 {
  color: var(--sidebar-text);
}

.panel-dark .eyebrow {
  color: var(--sidebar-muted);
}

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

.panel-chip {
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  color: var(--sidebar-muted);
  font-size: 0.75rem;
}

/* Donut */

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.donut {
  position: relative;
  flex-shrink: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(
    var(--success) 0% 48.44%,
    var(--warning) 48.44% 66.48%,
    var(--critical) 66.48% 77.42%,
    var(--sidebar-muted) 77.42% 100%
  );
}

.donut::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--charcoal);
}

.donut-value {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
}

.donut-value small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--sidebar-muted);
  margin-top: 2px;
}

.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--sidebar-text);
}

.donut-legend strong {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-success {
  background: var(--success);
}

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

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

.dot-muted {
  background: var(--sidebar-muted);
}

.risk-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-dark);
  background: rgba(166, 41, 31, 0.14);
}

.risk-banner .badge-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--critical);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.risk-banner span.risk-label {
  flex: 1;
  font-size: 0.85rem;
}

.risk-banner a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* Gantt / package sequence */

.gantt {
  position: relative;
}

.gantt-header,
.gantt-row {
  display: grid;
  grid-template-columns: 168px repeat(7, 1fr);
  align-items: center;
}

.gantt-header {
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-dark);
}

.gantt-header span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--sidebar-muted);
  text-align: center;
}

.gantt-header span:first-child {
  text-align: left;
}

.gantt-row {
  height: 34px;
}

.gantt-label {
  font-size: 0.8rem;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.gantt-track {
  grid-column: 2 / -1;
  position: relative;
  height: 100%;
}

.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: var(--radius);
}

.gantt-bar.bar-success {
  background: var(--success);
}

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

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

.gantt-bar.bar-muted {
  background: transparent;
  border: 1px dashed var(--sidebar-muted);
}

.gantt-today {
  position: absolute;
  top: 34px;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--accent);
}

.gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.75rem;
  color: var(--sidebar-muted);
}

.gantt-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.gantt-legend .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* Compact operational status markers */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-left: 3px solid currentColor;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  color: var(--success);
  background: rgba(35, 134, 54, 0.1);
}

.badge-warning {
  color: #9b6500;
  background: rgba(229, 154, 19, 0.14);
}

.badge-critical {
  color: var(--critical);
  background: rgba(217, 45, 32, 0.1);
}

.badge-muted {
  color: #586066;
  background: rgba(115, 122, 128, 0.12);
}

.risk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
}

/* Register toolbar */

.register-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.ghost-button-sm {
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.ghost-button-sm:hover {
  border-color: var(--accent);
}

.inline-form {
  display: inline;
}

/* Forms */

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 45, 32, 0.35);
  border-radius: var(--radius);
  background: rgba(217, 45, 32, 0.08);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(166, 41, 31, 0.35);
  border-radius: var(--radius);
  background: rgba(166, 41, 31, 0.08);
}

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

/* Package readiness */

.readiness-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--background);
}

.readiness-banner p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.readiness-ready {
  border-left-color: var(--success);
}

.readiness-critical {
  border-left-color: var(--critical);
}

.readiness-at_risk,
.readiness-approaching {
  border-left-color: var(--warning);
}

.readiness-in_progress,
.readiness-setup_required {
  border-left-color: var(--muted);
}

.readiness-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.readiness-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.readiness-date span {
  color: var(--muted);
  font-size: 0.75rem;
}

.readiness-date strong {
  font-family: var(--font-mono);
}

/* Revision and approval records */

.record-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
}

.record-card-header,
.record-subsection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-card-header h3,
.record-subsection-header h4 {
  margin: 2px 0 0;
}

.record-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.record-meta div {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.record-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.record-meta dd {
  margin: 5px 0 0;
}

.record-subsection {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.record-subsection-header {
  margin-bottom: 10px;
}

.record-subsection-header a {
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}

.compact-empty-state {
  padding: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--accent);
}

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

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .main-content {
    padding-inline: 20px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px 16px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .navigation {
    flex-direction: row;
  }

  .navigation-link {
    width: auto;
  }

  .sidebar-footer {
    margin-top: 12px;
    padding: 12px 0 0;
  }

  .main-content {
    padding: 18px 14px 32px;
  }

  .panel {
    padding: 16px;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .panel-header .primary-button {
    align-self: flex-start;
  }

  .metric-grid,
  .form-grid,
  .record-meta {
    grid-template-columns: 1fr;
  }

  .readiness-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .readiness-date {
    align-items: flex-start;
  }
}
