:root {
  --dsrs-navy: #062b46;
  --dsrs-navy-deep: #031d31;
  --dsrs-navy-light: #0b476d;
  --dsrs-brand-orange: #f36f32;
  --dsrs-brand-orange-strong: #c8431b;
  --dsrs-orange: #f15a2b;
  --dsrs-orange-dark: #c8431b;
  --dsrs-blue: #249adf;
  --dsrs-success: #1fa66a;
  --dsrs-warning: #d89614;
  --dsrs-danger: #b42318;
  --dsrs-warning-bg: #fff8e8;
  --dsrs-warning-border: #ecd399;
  --dsrs-warning-text: #745317;
  --dsrs-danger-bg: #fff1f0;
  --dsrs-danger-border: #efb9b4;
  --dsrs-danger-text: #7a271a;
  --dsrs-chart-navy: #0b476d;
  --dsrs-chart-blue: #249adf;
  --dsrs-chart-blue-light: #8bbad4;
  --dsrs-chart-teal: #24756f;
  --dsrs-chart-cyan: #3f718c;
  --dsrs-chart-slate: #60758a;
  --dsrs-chart-orange: #f36f32;
  --dsrs-chart-orange-strong: #c8431b;
  --dsrs-chart-neutral: #b8a98f;
  --dsrs-chart-grid: rgba(11, 71, 109, .12);
  --dsrs-bg: #f4f7fa;
  --dsrs-card: #ffffff;
  --dsrs-surface: #f8fafc;
  --dsrs-line: #dfe7ee;
  --dsrs-text: #0b2137;
  --dsrs-muted: #60758a;
  --dsrs-radius-sm: 10px;
  --dsrs-radius: 14px;
  --dsrs-radius-lg: 18px;
  --dsrs-shadow: 0 6px 20px rgba(6, 43, 70, .07);
  --dsrs-container: 1280px;
  --dsrs-space-1: 4px;
  --dsrs-space-2: 8px;
  --dsrs-space-3: 12px;
  --dsrs-space-4: 16px;
  --dsrs-space-5: 20px;
  --dsrs-space-6: 24px;
  --dsrs-space-8: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--dsrs-bg);
  color: var(--dsrs-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--dsrs-blue);
  outline-offset: 3px;
}

.dsrs-container { width: min(100% - 48px, var(--dsrs-container)); margin-inline: auto; }
.dsrs-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 8px;
  color: #fff;
  background: var(--dsrs-navy-deep);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.dsrs-topbar__brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.dsrs-topbar__logo { width: 86px; height: 40px; object-fit: contain; object-position: left center; }
.dsrs-topbar__title { display: block; font-size: 15px; font-weight: 800; line-height: 1.15; }
.dsrs-topbar__subtitle { display: block; margin-top: 3px; color: #bed0dd; font-size: 12px; }
.dsrs-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.dsrs-status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dsrs-success); box-shadow: 0 0 0 4px rgba(31,166,106,.15); }
.dsrs-status-chip[data-state="warning"]::before { background: var(--dsrs-warning); box-shadow: 0 0 0 4px rgba(216,150,20,.16); }

.dsrs-page-header { background: #fff; border-bottom: 1px solid var(--dsrs-line); }
.dsrs-page-header__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding-block: 18px; }
.dsrs-page-header__content { min-width: 0; max-width: 820px; }
.dsrs-overline { margin: 0 0 5px; color: var(--dsrs-orange); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dsrs-page-title { margin: 0; color: var(--dsrs-text); font-size: clamp(27px, 2.7vw, 36px); line-height: 1.06; letter-spacing: -.035em; }
.dsrs-page-lead { margin: 6px 0 0; color: var(--dsrs-muted); max-width: 72ch; }
.dsrs-page-meta { margin: 5px 0 0; color: var(--dsrs-muted); font-size: 13px; }
.dsrs-page-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex: 0 0 205px; }

.dsrs-dashboard-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--dsrs-space-1);
  width: fit-content;
  min-height: 40px;
  margin: -6px 0 0;
  padding: 5px 2px 5px 0;
  color: var(--dsrs-navy-light);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.dsrs-dashboard-back-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dsrs-dashboard-back-link:hover {
  color: var(--dsrs-brand-orange-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dsrs-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}
.dsrs-button--primary { background: var(--dsrs-orange); border-color: var(--dsrs-orange); color: #fff; }
.dsrs-button--primary:hover { background: var(--dsrs-orange-dark); border-color: var(--dsrs-orange-dark); }
.dsrs-button--secondary { background: var(--dsrs-navy-light); border-color: var(--dsrs-navy-light); color: #fff; }
.dsrs-button--outline { background: #fff; border-color: var(--dsrs-orange); color: var(--dsrs-orange-dark); }
.dsrs-button--outline:hover { background: #fff4ef; }
.dsrs-button--quiet { background: #fff; border-color: var(--dsrs-line); color: var(--dsrs-text); }
.dsrs-button[disabled], .dsrs-card-link[aria-disabled="true"] { cursor: not-allowed; opacity: .66; }
.dsrs-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dsrs-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #eaf4fb; color: #075f92; font-size: 12px; font-weight: 800; }
.dsrs-badge--internal { background: #fff0e9; color: #9c3d18; }
.dsrs-badge--muted { background: #eef2f5; color: #516579; }

.dsrs-info-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, .45fr);
  gap: 10px 14px;
  align-items: start;
  margin-block: 12px;
  padding: 10px 14px;
  border-left: 5px solid var(--dsrs-orange);
  border-radius: var(--dsrs-radius);
  background: var(--dsrs-navy);
  color: #fff;
  box-shadow: var(--dsrs-shadow);
}
.dsrs-info-banner__icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(241,90,43,.18); color: #ffd0c0; font-weight: 900; }
.dsrs-info-banner h2 { margin: 0 0 3px; color: var(--dsrs-orange); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.dsrs-info-banner p { margin: 0; color: #e2ecf2; font-size: 13px; line-height: 1.45; }
.dsrs-info-banner__source { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.18); font-size: 12px; line-height: 1.45; }

.dsrs-card { background: var(--dsrs-card); border: 1px solid var(--dsrs-line); border-radius: var(--dsrs-radius); box-shadow: var(--dsrs-shadow); }
.dsrs-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.dsrs-footer { margin-top: 16px; border-top: 1px solid var(--dsrs-line); background: #fff; color: var(--dsrs-muted); font-size: 12px; }
.dsrs-footer__inner { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; }
.dsrs-footer strong { color: var(--dsrs-text); }

.dsrs-dialog[aria-hidden="true"] { display: none; }
.dsrs-dialog { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(3,29,49,.68); }
.dsrs-dialog__panel { width: min(100%, 680px); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border-radius: var(--dsrs-radius-lg); background: #fff; box-shadow: 0 30px 80px rgba(3,29,49,.35); }

@media (max-width: 900px) {
  .dsrs-page-header__inner { flex-direction: column; gap: 14px; }
  .dsrs-page-actions { width: 100%; flex-basis: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dsrs-info-banner { grid-template-columns: auto minmax(0,1fr); }
  .dsrs-info-banner__source { grid-column: 2; padding: 10px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 640px) {
  .dsrs-container { width: min(100% - 28px, var(--dsrs-container)); }
  .dsrs-topbar { min-height: 58px; }
  .dsrs-topbar__logo { width: 72px; height: 34px; }
  .dsrs-topbar__subtitle { display: none; }
  .dsrs-status-chip { max-width: 46%; white-space: normal; font-size: 11px; }
  .dsrs-page-header__inner { padding-block: 16px; }
  .dsrs-page-actions { grid-template-columns: 1fr; }
  .dsrs-info-banner { padding: 14px; }
  .dsrs-footer__inner { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .dsrs-topbar, .dsrs-page-actions { display: none !important; }
  body { background: #fff; }
  .dsrs-card { box-shadow: none; }
}
