@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/plex-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("assets/plex-condensed.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/plex-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f6f7fb;
  --surface: #fff;
  --table-head: #e7ecf2;
  --rule: #d4dde6;
  --rule-strong: #94a5b7;
  --blue: #064296;
  --blue-deep: #133561;
  --blue-light: #e8eff8;
  --text: #263d53;
  --muted: #52677b;
  --coral: #ff4438;
  --coral-hover: #c9362d;
  --coral-pressed: #a92b25;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --heading: "IBM Plex Sans Condensed", "Arial Narrow", var(--body);
  --mono: "IBM Plex Mono", monospace;
  --sidebar: 228px;
  --gutter: 32px;
  --register-gutter: 20px;
  font: 400 14px/1.45 var(--body);
  color: var(--text);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { color: var(--blue-deep); background: #dce8f8; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 4; padding: 10px 14px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.icon { display: block; width: 18px; height: 18px; flex: none; }
[data-icon] { display: inline-flex; flex: none; }

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-areas: "sidebar topbar" "sidebar workspace";
  grid-template-rows: auto 1fr;
  min-height: 100dvh;
}

.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--surface);
  border-right: 1px solid var(--rule);
}

.sidebar-brand {
  padding: 18px 20px 16px;
  min-height: 88px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: var(--blue);
  text-decoration: none;
}

.brand-name { font: 700 27px/1 var(--body); letter-spacing: .085em; }
.brand-caption { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.25; }

.navigation { display: grid; align-content: start; padding: 12px 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px 8px 18px;
  text-align: left;
  white-space: nowrap;
  border: 0;
  border-inline-start: 2px solid transparent;
  background: transparent;
  font-weight: 500;
}
.nav-item:hover { background: var(--canvas); }
.nav-item[aria-current] { color: var(--blue); background: var(--blue-light); border-inline-start-color: var(--blue); font-weight: 600; }
.nav-item:focus-visible { outline-offset: -3px; }
.nav-item .icon { color: var(--muted); }
.nav-item[aria-current] .icon { color: var(--blue); }
.nav-count { margin-left: auto; color: var(--muted); font: 500 11px/1.5 var(--mono); }
.nav-item[aria-current] .nav-count { color: var(--blue); }
.sidebar-footer { padding: 15px 20px; border-top: 1px solid var(--rule); margin-top: auto; color: var(--muted); font-size: 12px; }

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 15px var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.page-header { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
.page-heading { min-width: 0; }
h1 { font: 600 30px/1.13 var(--heading); color: var(--blue); }
.page-heading p { max-width: 60ch; color: var(--muted); margin-top: 4px; font-size: 13px; }
.profile-bar { flex: none; border-inline-start: 1px solid var(--rule); padding-inline-start: 16px; }
.profile { position: relative; display: block; border-radius: 4px; }
.profile:hover { background: var(--canvas); }
.profile:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.profile-label { position: absolute; top: 4px; left: 8px; color: var(--muted); font-size: 11px; pointer-events: none; }
.profile select {
  display: block;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  padding: 19px 27px 5px 8px;
  min-height: 44px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.profile select:focus { outline: 0; }
.profile [data-icon] { position: absolute; right: 7px; bottom: 8px; pointer-events: none; color: var(--muted); }

.profile .icon { width: 15px; height: 15px; }

.workspace { grid-area: workspace; padding: 24px var(--gutter) 32px; }
.workspace:focus { outline: none; }
.content { max-width: 1440px; margin: auto; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--blue-deep);
  font-weight: 600;
  white-space: nowrap;
}
.button:hover { background: var(--canvas); }
.button.primary { color: #fff; background: var(--coral); border-color: var(--coral); }
.button.primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.button.primary:active { background: var(--coral-pressed); border-color: var(--coral-pressed); }
.button .icon { width: 17px; height: 17px; }
.button.text-button { border-color: transparent; background: transparent; color: var(--blue); }
.button.text-button:hover { background: var(--blue-light); }

.register { border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.summary {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0 16px;
  padding-inline: var(--register-gutter);
  border-bottom: 1px solid var(--rule);
}
.summary-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 47px;
  margin-bottom: -1px;
  padding: 0 4px;
  text-align: left;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-weight: 500;
  white-space: nowrap;
}
.summary-item:hover { color: var(--blue); background: var(--canvas); }
.summary-item[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.summary-value { font: 500 11px/1 var(--mono); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px var(--register-gutter); }
.search, .select-filter { display: inline-flex; align-items: center; position: relative; height: 40px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 4px; }
.search { gap: 8px; padding: 0 10px; flex: 0 1 314px; }
.search .icon, .select-filter .icon { width: 16px; height: 16px; color: var(--muted); }
.search input { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; min-width: 0; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search:focus-within, .select-filter:focus-within { outline: 2px solid var(--blue); outline-offset: 1px; }
.search input:focus, .select-filter select:focus { outline: 0; }
.select-filter select { appearance: none; border: 0; background: transparent; width: 100%; height: 100%; padding: 0 32px 0 10px; cursor: pointer; }
.select-filter > span { position: absolute; right: 9px; pointer-events: none; }

.table-wrap { margin-inline: var(--register-gutter); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: var(--table-head); }
th { color: var(--blue-deep); font-size: 12px; font-weight: 600; line-height: 1.2; vertical-align: middle; }
th, td { padding: 6px 12px; border-bottom: 1px solid var(--rule); }
th:first-child { width: 33%; }
th:nth-child(2) { width: 20%; }
th:nth-child(4), th:nth-child(5) { white-space: nowrap; }
th:nth-child(6) { min-width: 103px; }
.sort-button { display: inline-flex; gap: 3px; align-items: center; min-height: 28px; background: transparent; border: 0; padding: 0; font-weight: inherit; color: inherit; }
.sort-button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.sort-button .icon { width: 14px; height: 14px; }
th[aria-sort="ascending"] .sort-button .icon { transform: rotate(180deg); }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr:focus-within { background: #f3f6fb; }
td { font-size: 13px; line-height: 1.3; height: 55px; }
td:last-child { width: 36px; }
.case-title { font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
td .case-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; overflow-wrap: anywhere; }
.case-meta, .case-id { font: 500 11px/1.4 var(--mono); }
.case-id { color: var(--blue); }
.desktop-reference, .mobile-destination { padding-inline-start: 8px; border-inline-start: 1px solid var(--rule); }
.mobile-destination { font-family: var(--body); }
td .mobile-decision, .mobile-destination { display: none; }
.case-title-button { display: block; text-align: left; padding: 2px 0; border: 0; background: transparent; }
.case-title-button:hover .case-title { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.category-name { font-weight: 500; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.mono { white-space: nowrap; font-size: 11px; }
.amber { --tone-bg: #fdf2d9; --tone-fg: #735212; }
.blue { --tone-bg: #e8eff8; --tone-fg: #164c88; }
.green { --tone-bg: #e8f4ed; --tone-fg: #21634f; }
.neutral { --tone-bg: #edf1f5; --tone-fg: #4a6074; }
.red { --tone-bg: #fbecea; --tone-fg: #963c35; }
.badge { display: inline-block; color: var(--tone-fg); background: var(--tone-bg); border-radius: 3px; padding: 3px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.decision { color: var(--tone-fg); }
.row-arrow { display: grid; place-items: center; color: var(--muted); }
.row-arrow .icon { width: 15px; height: 15px; }

.empty { text-align: center; padding: 36px var(--register-gutter); color: var(--muted); border-top: 1px solid var(--rule); }
.empty [data-icon] { color: var(--blue); margin-bottom: 8px; }
.empty strong, .empty p { display: block; }
.empty strong { color: var(--text); font-weight: 600; }
.empty p { margin-top: 4px; }
.register-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 51px; padding: 4px var(--register-gutter); color: var(--muted); font-size: 12px; }
.pagination { display: flex; align-items: center; gap: 6px; font: 500 11px/1.4 var(--mono); }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px; color: var(--blue); background: transparent; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover:not(:disabled) { background: var(--blue-light); }
.icon-button:disabled { color: var(--muted); opacity: .44; }
.workspace-footer { display: flex; gap: 7px; align-items: flex-start; margin-top: 12px; color: var(--muted); font-size: 12px; }
.workspace-footer .icon { width: 16px; height: 16px; }

.case-panel {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  width: min(660px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-inline-start: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}
.case-panel::backdrop { background: rgb(19 36 58 / .32); }
body:has(.case-panel[open]) { overflow: hidden; }
.panel-content { display: flex; flex-direction: column; height: 100%; }
.panel-header { position: relative; flex: none; padding: 23px 62px 18px 24px; border-bottom: 1px solid var(--rule); }
.panel-header h2 { font: 600 27px/1.18 var(--heading); color: var(--blue); overflow-wrap: anywhere; }
.panel-header h2:focus { outline: none; }
.panel-notification:not(:empty) { margin-top: 8px; color: #21634f; font-size: 13px; font-weight: 600; }
.panel-header .icon-button { position: absolute; top: 14px; right: 14px; }
.panel-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.panel-status .case-id { font-size: 12px; }
.panel-decision { display: inline-flex; align-items: center; gap: 6px; padding-inline-start: 12px; border-inline-start: 1px solid var(--rule); }
.panel-decision .decision { font-weight: 600; }
.panel-nav { display: flex; flex: none; padding: 0 24px; gap: 18px; border-bottom: 1px solid var(--rule); background: var(--canvas); }
.panel-nav button { min-height: 42px; padding: 0 4px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 500; }
.panel-nav button:hover { color: var(--blue); }
.panel-nav button[aria-current] { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.panel-scroll { flex: 1; overflow: auto; padding: 20px 24px 24px; overscroll-behavior: contain; }
.panel-section + .panel-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.panel-section h3 { margin: 0 0 12px; color: var(--blue-deep); font-size: 16px; font-weight: 600; }
.case-copy { max-width: 72ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.details-grid, .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.details-grid, .response-list { margin: 0; }
.details-grid div { min-width: 0; }
.details-grid dt, .response-list dt { color: var(--muted); font-size: 12px; }
.details-grid dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.response-list div { display: grid; grid-template-columns: minmax(124px, 30%) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.response-list dt { padding-top: 2px; }
.response-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.field { display: grid; gap: 5px; align-content: start; font-size: 13px; font-weight: 600; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 42px; padding: 8px 9px; font-weight: 400; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 4px; }
.field textarea { resize: vertical; }
.field-help { font-size: 12px; font-weight: 400; color: var(--muted); }
.field-check { display: flex; align-items: center; gap: 9px; min-height: 40px; }
.field-check input { flex: none; width: 17px; min-height: auto; height: 17px; accent-color: var(--blue); margin: 0; }
.form-note { color: var(--muted); font-size: 13px; }
.panel-actions { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--rule); padding: 12px 24px; background: var(--surface); }
.panel-actions .inline-error { flex-basis: 100%; }
.activity-list { padding: 0; margin: 0; list-style: none; }
.activity-list li { position: relative; border-inline-start: 1px solid var(--rule); margin-inline-start: 5px; padding: 0 0 16px 16px; overflow-wrap: anywhere; }
.activity-list li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.activity-list li:last-child { padding-bottom: 0; }
.activity-scope { color: var(--muted); font-size: 12px; }
.activity-list time { display: block; color: var(--muted); font-size: 11px; margin: 2px 0; }
.comment-form { display: grid; gap: 8px; margin-bottom: 20px; }
.comment-form .button { justify-self: start; }
.inline-error { color: #963c35; font-size: 13px; }
.notification:not(:empty) { position: fixed; right: 20px; bottom: 16px; z-index: 3; background: var(--blue-deep); color: var(--surface); border-radius: 4px; padding: 12px 16px; max-width: calc(100vw - 40px); }

@media (max-width: 1150px) {
  :root { --sidebar: 206px; --gutter: 24px; --register-gutter: 16px; }
  .sidebar-brand { padding: 10px 16px 11px; }
  .nav-item { padding-inline: 14px 12px; gap: 8px; }
  th, td { padding-inline: 8px; }
  .desktop-reference { display: none; }
}

@media (max-width: 970px) {
  :root { --sidebar: 186px; --gutter: 20px; --register-gutter: 12px; }
  .nav-item { font-size: 13px; }
  .topbar, .page-header { gap: 12px; }
  .profile-bar { padding-inline-start: 8px; }
  th:nth-child(3), td:nth-child(3) { display: none; }
  .mobile-destination { display: inline; }
  th:first-child { width: 36%; }
}

@media (max-width: 760px) {
  .shell { display: flex; flex-direction: column; }
  .sidebar { display: contents; }
  .sidebar-brand { display: flex; gap: 14px; align-items: center; min-height: 0; padding: 10px var(--gutter); background: var(--surface); }
  .brand { min-height: 38px; gap: 9px; }
  .brand img { width: 28px; height: auto; }
  .brand-name { font-size: 23px; }
  .sidebar-footer { display: none; }
  .navigation { display: flex; flex-wrap: wrap; gap: 0 10px; padding: 0 var(--gutter); border-bottom: 1px solid var(--rule); background: var(--surface); }
  .nav-item { border: 0; border-bottom: 2px solid transparent; padding: 0 5px; gap: 6px; }
  .nav-item[aria-current] { border-bottom-color: var(--blue); background: transparent; }
  .nav-item .icon { width: 16px; height: 16px; }
  .topbar { min-height: 76px; }
  h1 { font-size: 27px; }
  .workspace { padding-block-start: 16px; }
}

@media (max-width: 570px) {
  :root { --gutter: 14px; --register-gutter: 12px; }
  .nav-item [data-icon] { display: none; }
  .navigation { gap: 0 7px; }
  .nav-item { padding-inline: 4px; }
  .topbar { display: grid; grid-template-columns: 1fr max-content; column-gap: 8px; row-gap: 9px; padding-block: 14px; }
  .page-header { display: contents; }
  .page-heading { grid-column: 1 / -1; }
  #new-case { justify-self: start; min-height: 44px; padding-inline: 8px; gap: 5px; font-size: 13px; }
  .profile-bar { padding-inline-start: 0; border: 0; }
  .summary { gap: 0 8px; }
  .summary-item { min-height: 41px; font-size: 13px; }
  .filters { padding-block: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { grid-column: 1 / -1; }
  .search, .select-filter { height: 44px; }
  .search input, .field :is(input, select, textarea) { font-size: 16px; }
  #reset-filters { justify-self: start; grid-column: 1 / -1; }
  th:first-child { width: auto; }
  th:nth-child(2), td:nth-child(2), th:nth-child(5), td:nth-child(5), th:nth-child(6), td:nth-child(6) { display: none; }
  td .mobile-decision { display: block; margin-top: 4px; }
  th, td { padding-inline: 6px; }
  th:last-child, td:last-child { width: 23px; padding-left: 0; padding-right: 4px; }
  .pagination { gap: 1px; }
  .panel-header, .panel-nav, .panel-scroll, .panel-actions { padding-inline: 16px; }
  .panel-header { padding-right: 58px; }
  .panel-header h2 { font-size: 24px; }
  .panel-decision { border: 0; padding: 0; }
  .fields { grid-template-columns: 1fr; }
  .response-list div { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 350px) {
  .topbar { grid-template-columns: 1fr; }
  .profile-bar { justify-self: start; }
  .navigation { gap: 0 4px; }
  .nav-item { font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  button, .profile { transition: background-color .12s, color .12s; }
  .case-panel[open] { animation: panel-in .16s ease-out; }
  @keyframes panel-in { from { transform: translateX(16px); } }
}
