:root {
  --bg: oklch(0.988 0.004 235);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.965 0.012 238);
  --surface-3: oklch(0.935 0.018 238);
  --ink: oklch(0.235 0.034 248);
  --muted: oklch(0.505 0.031 247);
  --line: oklch(0.884 0.019 238);
  --primary: oklch(0.46 0.118 244);
  --primary-dark: oklch(0.35 0.108 245);
  --primary-soft: oklch(0.93 0.042 238);
  --accent: oklch(0.57 0.115 185);
  --success: oklch(0.52 0.11 158);
  --warning: oklch(0.68 0.14 76);
  --danger: oklch(0.57 0.17 28);
  --danger-soft: oklch(0.953 0.035 29);
  --radius: 8px;
  --shadow: 0 8px 18px oklch(0.35 0.045 245 / 0.08);
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

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

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: 248px;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: oklch(0.972 0.011 238);
  padding: 18px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 18px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  color: oklch(0.36 0.04 247);
  padding: 0 10px;
  font-weight: 620;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: var(--surface);
  outline: none;
}

.nav-item.is-active {
  background: var(--primary);
  color: white;
}

.nav-icon {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.nav-badge {
  margin-left: auto;
  min-width: 26px;
  border-radius: 999px;
  background: oklch(0.90 0.058 238);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 760;
  line-height: 22px;
  text-align: center;
}

.nav-item.is-active .nav-badge {
  background: oklch(1 0 0 / 0.20);
  color: white;
}

.nav-badge.muted {
  background: oklch(0.9 0.016 240);
  color: var(--muted);
}

.system-status {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.status-row + .status-row {
  margin-top: 9px;
}

.status-row strong {
  color: var(--ink);
  font-weight: 720;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 22px 26px 32px;
}

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

.breadcrumb {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.searchbox {
  display: flex;
  width: 292px;
  height: 38px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 11px;
}

.searchbox:focus-within {
  border-color: var(--primary);
  outline: 3px solid oklch(0.8 0.08 242 / 0.25);
}

.search-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.searchbox input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}

.searchbox input::placeholder {
  color: oklch(0.48 0.028 247);
}

.ghost-button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
  font-weight: 650;
}

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

.doctor-card {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 12px 0 8px;
}

.doctor-card strong,
.doctor-card span {
  display: block;
}

.doctor-card span {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 760;
}

.work-summary {
  display: grid;
  grid-template-columns: 1.14fr repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.summary-tile {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow);
}

.summary-tile.primary {
  border-color: oklch(0.75 0.065 240);
  background: oklch(0.952 0.038 238);
}

.summary-tile.warning {
  background: oklch(0.985 0.018 82);
}

.summary-tile.danger {
  background: var(--danger-soft);
}

.summary-tile.info {
  background: oklch(0.978 0.025 190);
}

.tile-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.tile-value {
  margin-top: 6px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.summary-tile p {
  min-height: 40px;
  margin-top: 8px;
  color: oklch(0.36 0.037 247);
  font-size: 12px;
}

.summary-tile a {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 760;
}

.summary-tile a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

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

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.panel-header.compact {
  padding-bottom: 14px;
}

.panel-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 3px;
}

.segmented button {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 680;
}

.segmented button.is-selected {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: 0 1px 3px oklch(0.35 0.03 245 / 0.12);
}

.table-wrap {
  overflow: hidden;
}

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

th {
  height: 40px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-align: left;
}

th,
td {
  padding: 0 14px;
}

td {
  height: 76px;
  border-top: 1px solid var(--line);
  color: oklch(0.32 0.035 247);
  vertical-align: middle;
}

td strong,
td span {
  display: block;
}

td span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

tbody tr:hover {
  background: oklch(0.98 0.012 238);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.status.ready {
  background: oklch(0.94 0.042 158);
  color: oklch(0.32 0.098 158);
}

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

.status.high {
  background: oklch(0.93 0.052 76);
  color: oklch(0.38 0.09 73);
}

.status.abnormal {
  background: oklch(0.94 0.04 33);
  color: oklch(0.39 0.13 29);
}

.status.medium {
  background: var(--surface-3);
  color: oklch(0.36 0.04 247);
}

.table-action {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 760;
}

.table-action.secondary {
  background: oklch(0.35 0.03 247);
}

.alert-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.alert-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 13px;
}

.alert-item.is-critical {
  border-color: oklch(0.82 0.09 28);
  background: var(--danger-soft);
}

.alert-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alert-topline strong {
  font-size: 13px;
}

.alert-topline span {
  color: var(--muted);
  font-size: 12px;
}

.alert-item p {
  margin-top: 8px;
  color: oklch(0.38 0.035 247);
  font-size: 12px;
}

.alert-item button {
  height: 30px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
}

.flow-panel {
  min-height: 168px;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 18px;
}

.flow-step {
  position: relative;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 12px;
}

.flow-step span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.flow-step strong {
  display: block;
  margin-top: 8px;
  font-weight: 760;
}

.flow-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.flow-step.is-active {
  border-color: oklch(0.76 0.065 238);
  background: var(--primary-soft);
}

.flow-step.is-active span {
  background: var(--primary);
  color: white;
}

.audit-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 18px 14px;
  list-style: none;
}

.audit-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.audit-list li:last-child {
  border-bottom: 0;
}

.audit-list span {
  color: var(--muted);
  font-size: 12px;
}

.audit-list strong {
  font-weight: 720;
}

.audit-list em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  border: 1px solid oklch(0.78 0.055 238);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 30px oklch(0.26 0.05 245 / 0.16);
  padding: 14px 16px;
}

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

.toast strong {
  font-weight: 760;
}

.toast span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.reading-shell {
  background: var(--bg);
}

.reading-main {
  height: 100vh;
  overflow: hidden;
  padding: 16px;
}

.reading-topbar {
  height: 66px;
  margin-bottom: 12px;
}

.reading-topbar h1 {
  font-size: 22px;
}

.case-strip {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.case-strip-item {
  min-width: 142px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 7px 10px;
}

.case-strip-item span,
.case-strip-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.case-strip-item strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.reading-layout {
  display: grid;
  height: calc(100vh - 94px);
  min-height: 720px;
  grid-template-columns: 260px minmax(620px, 1fr) 360px;
  gap: 12px;
}

.case-queue,
.context-panel {
  min-height: 0;
  overflow: hidden;
}

.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.queue-header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.queue-header > span {
  display: grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.queue-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.queue-tabs button {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.queue-tabs button.is-selected {
  background: var(--primary);
  color: white;
}

.case-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 214px);
  overflow: auto;
  padding: 10px;
}

.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px;
}

.case-card:hover {
  border-color: oklch(0.76 0.065 238);
  background: oklch(0.985 0.008 238);
}

.case-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.case-card.is-disabled {
  background: oklch(0.965 0.008 45);
}

.case-card-top,
.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.case-card-top strong {
  font-size: 14px;
}

.case-card p {
  margin-top: 6px;
  color: oklch(0.36 0.035 247);
  font-size: 12px;
}

.case-meta {
  margin-top: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 680;
}

.case-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.viewer-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid oklch(0.72 0.035 245);
  border-radius: var(--radius);
  background: oklch(0.155 0.015 250);
  box-shadow: 0 8px 18px oklch(0.18 0.025 250 / 0.18);
}

.viewer-toolbar,
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: oklch(0.18 0.018 250);
  color: white;
  padding: 10px 12px;
}

.viewer-title strong,
.viewer-title span {
  display: block;
}

.viewer-title strong {
  font-size: 14px;
  font-weight: 760;
}

.viewer-title span {
  margin-top: 2px;
  color: oklch(0.82 0.018 245);
  font-size: 11px;
}

.tool-group,
.viewer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tool-group button,
.viewer-actions button {
  height: 28px;
  border: 1px solid oklch(0.44 0.028 245);
  border-radius: 6px;
  background: oklch(0.245 0.022 250);
  color: oklch(0.92 0.01 245);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 690;
}

.tool-group button.is-active {
  border-color: oklch(0.72 0.085 238);
  background: var(--primary);
  color: white;
}

.dicom-stage {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 96px;
}

.dicom-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, oklch(0.23 0.01 250) 0 35%, transparent 36%),
    oklch(0.075 0 0);
}

.dicom-viewport::before,
.dicom-viewport::after {
  position: absolute;
  z-index: 2;
  content: "";
  background: oklch(0.82 0.006 245 / 0.5);
  pointer-events: none;
}

.dicom-viewport::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.dicom-viewport::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.viewport-meta {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 2px;
  color: oklch(0.88 0.025 155);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 11px;
  text-shadow: 0 1px 2px black;
}

.viewport-meta strong,
.viewport-meta span {
  display: block;
}

.top-left {
  top: 14px;
  left: 14px;
}

.top-right {
  top: 14px;
  right: 14px;
  text-align: right;
}

.bottom-left {
  bottom: 16px;
  left: 14px;
}

.viewport-scale {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 5;
  width: 52px;
  height: 7px;
  border-right: 1px solid oklch(0.88 0.025 155);
  border-left: 1px solid oklch(0.88 0.025 155);
}

.viewport-scale span {
  display: block;
  height: 1px;
  margin-top: 3px;
  background: oklch(0.88 0.025 155);
}

.ct-image {
  position: absolute;
  inset: 48px 58px;
  display: grid;
  place-items: center;
}

.scan-field {
  position: relative;
  width: min(82vh, 76%);
  max-width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, oklch(0.66 0.004 245 / 0.22) 0 8%, transparent 9%),
    radial-gradient(circle at 50% 54%, oklch(0.54 0.004 245 / 0.26) 0 36%, transparent 37%),
    radial-gradient(circle, oklch(0.82 0.004 245) 0 44%, oklch(0.5 0.004 245) 47%, oklch(0.20 0.004 245) 58%, transparent 60%);
  box-shadow: inset 0 0 28px oklch(0.04 0 0), 0 0 0 1px oklch(0.4 0 0 / 0.3);
}

.lung {
  position: absolute;
  top: 22%;
  width: 28%;
  height: 44%;
  border-radius: 48% 46% 42% 44%;
  background:
    radial-gradient(circle at 46% 35%, oklch(0.86 0.004 245 / 0.18) 0 3%, transparent 4%),
    radial-gradient(circle at 42% 55%, oklch(0.79 0.004 245 / 0.14) 0 4%, transparent 5%),
    radial-gradient(ellipse at center, oklch(0.105 0.002 245) 0 50%, oklch(0.18 0.003 245) 72%, transparent 74%);
  filter: blur(0.2px);
}

.lung-left {
  left: 18%;
  transform: rotate(-8deg);
}

.lung-right {
  right: 18%;
  transform: rotate(8deg);
}

.spine {
  position: absolute;
  left: 45%;
  bottom: 15%;
  width: 10%;
  height: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.88 0.002 245), oklch(0.48 0.002 245) 58%, transparent 62%);
}

.mediastinum {
  position: absolute;
  top: 31%;
  left: 43%;
  width: 14%;
  height: 25%;
  border-radius: 45%;
  background: radial-gradient(ellipse at center, oklch(0.62 0.004 245 / 0.88), oklch(0.28 0.004 245 / 0.65) 62%, transparent 66%);
}

.vessel {
  position: absolute;
  border-radius: 999px;
  background: oklch(0.72 0.004 245 / 0.82);
}

.vessel-a {
  top: 39%;
  left: 49%;
  width: 16%;
  height: 4%;
  transform: rotate(23deg);
}

.vessel-b {
  top: 45%;
  left: 35%;
  width: 16%;
  height: 4%;
  transform: rotate(-18deg);
}

.lesion-marker {
  position: absolute;
  top: 42%;
  right: 29%;
  z-index: 4;
  width: 58px;
  height: 42px;
  border: 2px solid oklch(0.72 0.18 32);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.lesion-marker span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: oklch(0.72 0.18 32);
  transform: translate(-50%, -50%);
}

.measurement-line {
  position: absolute;
  top: 38%;
  right: 28%;
  z-index: 4;
  width: 78px;
  height: 1px;
  background: oklch(0.77 0.16 82);
  transform: rotate(-18deg);
}

.measurement-label,
.annotation-label {
  position: absolute;
  z-index: 4;
  border-radius: 4px;
  background: oklch(0.08 0 0 / 0.72);
  color: oklch(0.92 0.03 82);
  font-size: 11px;
  font-weight: 720;
  padding: 3px 5px;
}

.measurement-label {
  top: 33%;
  right: 22%;
}

.annotation-label {
  top: 50%;
  right: 21%;
  color: oklch(0.93 0.035 32);
}

.series-rail {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  border-left: 1px solid oklch(0.32 0.018 250);
  background: oklch(0.13 0.012 250);
  padding: 10px;
}

.series-thumb {
  display: grid;
  gap: 5px;
  justify-items: center;
  border: 1px solid oklch(0.33 0.018 250);
  border-radius: 6px;
  background: oklch(0.18 0.015 250);
  color: white;
  padding: 7px 4px;
}

.series-thumb.is-active {
  border-color: var(--accent);
  background: oklch(0.24 0.035 220);
}

.series-thumb strong {
  font-size: 11px;
}

.series-thumb em {
  color: oklch(0.76 0.012 245);
  font-size: 10px;
  font-style: normal;
}

.mini-ct {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 36% 45%, oklch(0.12 0 0) 0 24%, transparent 25%),
    radial-gradient(ellipse at 64% 45%, oklch(0.12 0 0) 0 24%, transparent 25%),
    radial-gradient(circle, oklch(0.72 0.002 245) 0 45%, oklch(0.2 0 0) 58%, oklch(0.05 0 0) 60%);
}

.mini-ct.soft {
  opacity: 0.78;
}

.mini-ct.bone {
  filter: contrast(1.35) brightness(1.1);
}

.mini-ct.prior {
  opacity: 0.6;
}

.image-slider {
  display: grid;
  min-width: 260px;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  color: oklch(0.84 0.012 245);
  font-size: 12px;
}

.image-slider div {
  height: 4px;
  border-radius: 999px;
  background: oklch(0.34 0.02 245);
}

.image-slider i {
  display: block;
  width: 42%;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.primary-action {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: white !important;
}

.context-panel {
  display: grid;
  align-content: start;
  overflow: auto;
}

.context-section {
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.context-section:last-child {
  border-bottom: 0;
}

.context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.context-header button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-dark);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 720;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
}

.info-grid div:nth-child(3),
.info-grid div:nth-child(4),
.info-grid div:nth-child(5),
.info-grid div:nth-child(6) {
  grid-column: 1 / -1;
}

.info-grid dt {
  color: var(--muted);
  font-size: 11px;
}

.info-grid dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.clinical-note {
  color: oklch(0.33 0.034 247);
  font-size: 13px;
}

.history-list {
  display: grid;
  gap: 9px;
}

.history-list article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 9px;
}

.history-list strong,
.history-list span {
  display: block;
}

.history-list strong {
  font-size: 13px;
}

.history-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.assistive-label {
  display: inline-flex;
  height: 22px;
  align-items: center;
  border-radius: 999px;
  background: oklch(0.93 0.028 190);
  color: oklch(0.34 0.082 190);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 760;
}

.ai-note {
  border: 1px solid oklch(0.82 0.045 190);
  border-radius: var(--radius);
  background: oklch(0.975 0.018 190);
  padding: 11px;
}

.ai-note p {
  color: oklch(0.31 0.038 220);
  font-size: 12px;
}

.ai-actions {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}

.ai-actions button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 720;
}

.ai-actions .confirm-critical {
  border-color: var(--danger);
  background: var(--danger);
  color: white;
}

.report-entry {
  display: grid;
  gap: 12px;
  background: oklch(0.978 0.014 238);
}

.report-entry p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.primary-action.full {
  display: inline-flex;
  width: 100%;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  font-weight: 780;
}

.report-shell {
  background: var(--bg);
}

.report-main {
  min-height: calc(100vh - 64px);
  padding-bottom: 84px;
}

.report-topbar {
  margin-bottom: 14px;
}

.primary-top-action {
  height: 38px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  padding: 0 14px;
  font-weight: 760;
}

.report-case-banner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.case-identity strong,
.case-identity span {
  display: block;
}

.case-identity strong {
  font-size: 18px;
  font-weight: 800;
}

.case-identity span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.report-case-banner dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.report-case-banner dt {
  color: var(--muted);
  font-size: 11px;
}

.report-case-banner dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-layout {
  display: grid;
  grid-template-columns: 280px minmax(620px, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.report-left,
.report-right {
  overflow: hidden;
}

.resource-section {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px 14px;
}

.resource-section:last-child {
  border-bottom: 0;
}

.resource-section summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  list-style-position: outside;
  margin-left: 14px;
}

.resource-card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 10px;
}

.resource-card strong,
.resource-card span,
.resource-card p {
  display: block;
}

.resource-card strong {
  font-size: 13px;
}

.resource-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.resource-card p {
  margin-top: 7px;
  color: oklch(0.36 0.035 247);
  font-size: 12px;
}

.template-item,
.phrase-item {
  display: block;
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.phrase-item {
  color: oklch(0.34 0.035 247);
  font-weight: 620;
  line-height: 1.45;
}

.template-item:hover,
.phrase-item:hover,
.template-item:focus-visible,
.phrase-item:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.template-item.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.report-editor-panel {
  min-height: 720px;
}

.report-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.report-editor-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.report-status-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.report-status-line span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0 10px;
}

.medical-report {
  padding: 18px;
}

.report-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.report-block + .report-block {
  margin-top: 14px;
}

.report-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 12px 14px;
}

.report-block-title span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.report-block-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
}

.report-field {
  min-height: 210px;
  color: oklch(0.24 0.03 247);
  font-size: 15px;
  line-height: 1.85;
  outline: none;
  padding: 18px 18px 22px;
  text-wrap: pretty;
}

.report-field:focus {
  background: oklch(0.992 0.004 238);
}

.report-field.diagnosis {
  min-height: 164px;
  font-weight: 650;
}

.compact-block .report-block-title {
  padding-block: 10px;
}

.critical-record {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.critical-record p {
  color: var(--muted);
  font-size: 12px;
}

.assist-section {
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.assist-section:last-child {
  border-bottom: 0;
}

.suggestion-box {
  border: 1px solid oklch(0.82 0.045 190);
  border-radius: var(--radius);
  background: oklch(0.975 0.018 190);
  padding: 11px;
}

.suggestion-box p {
  color: oklch(0.31 0.038 220);
  font-size: 12px;
}

.suggestion-box button {
  height: 30px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 740;
}

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

.check-list li {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 10px 10px 10px 34px;
  position: relative;
}

.check-list li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
}

.check-list li.is-ok::before {
  background: var(--success);
}

.check-list li.is-warning::before {
  background: var(--warning);
}

.check-list strong,
.check-list span {
  display: block;
}

.check-list strong {
  font-size: 13px;
}

.check-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.key-image-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 10px;
}

.key-image-card .mini-ct {
  width: 58px;
}

.key-image-card strong,
.key-image-card p {
  display: block;
}

.key-image-card strong {
  font-size: 13px;
}

.key-image-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.submit-card {
  background: oklch(0.978 0.014 238);
}

.submit-card p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-action-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 248px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: oklch(1 0 0 / 0.96);
  padding: 12px 26px;
}

.bottom-action-bar button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 740;
}

.bottom-action-bar .primary-action {
  padding-inline: 18px;
}

.review-shell {
  background: var(--bg);
}

.review-main {
  min-height: 100vh;
}

.review-topbar {
  margin-bottom: 14px;
}

.review-case-strip {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.review-case-strip > div {
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 7px 10px;
}

.review-case-strip span,
.review-case-strip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-case-strip div span {
  color: var(--muted);
  font-size: 11px;
}

.review-case-strip strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.review-layout {
  display: grid;
  grid-template-columns: 280px minmax(620px, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.review-queue,
.review-right {
  overflow: hidden;
}

.review-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px;
}

.review-card:hover {
  border-color: oklch(0.76 0.065 238);
  background: oklch(0.985 0.008 238);
}

.review-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.review-card p {
  margin-top: 6px;
  color: oklch(0.32 0.035 247);
  font-size: 12px;
  font-weight: 690;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.review-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.review-report {
  min-height: 760px;
}

.review-patient-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 12px 18px;
}

.review-patient-bar dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.review-patient-bar dt {
  color: var(--muted);
  font-size: 11px;
}

.review-patient-bar dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-patient-bar button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
}

.review-readonly {
  padding-top: 16px;
}

.readonly-report-text {
  min-height: 178px;
  color: oklch(0.235 0.03 247);
  font-size: 15px;
  line-height: 1.86;
  padding: 18px 18px 22px;
}

.readonly-report-text.diagnosis {
  min-height: 130px;
  font-weight: 650;
}

.review-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.review-evidence-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 13px;
}

.review-evidence-grid h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.review-evidence-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.revision-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 10px;
}

.revision-list li > span {
  display: grid;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.revision-list li.is-current {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.revision-list li.is-current > span {
  background: var(--primary);
  color: white;
}

.revision-list strong,
.revision-list p {
  display: block;
}

.revision-list strong {
  font-size: 13px;
}

.revision-list p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.review-comment {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
  outline: none;
  padding: 10px;
}

.review-comment:focus {
  border-color: var(--primary);
  outline: 3px solid oklch(0.8 0.08 242 / 0.22);
}

.review-comment-tools {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.review-comment-tools button,
.return-report {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-dark);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 720;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.review-actions button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 760;
}

.review-actions .reject-review {
  border-color: oklch(0.76 0.07 30);
  color: var(--danger);
}

.review-actions .approve-review {
  border-color: var(--primary);
  color: white;
}

.return-report {
  width: 100%;
}

.case-shell {
  background: var(--bg);
}

.case-main {
  min-height: 100vh;
}

.case-topbar {
  margin-bottom: 14px;
}

.case-center-summary {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.case-center-summary > div {
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 7px 10px;
}

.case-center-summary span,
.case-center-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-center-summary div span {
  color: var(--muted);
  font-size: 11px;
}

.case-center-summary strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.case-layout {
  display: grid;
  grid-template-columns: 270px minmax(640px, 1fr) 380px;
  gap: 14px;
  align-items: start;
}

.filter-header {
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.filter-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.filter-form {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.filter-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-form input,
.filter-form select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 9px;
  outline: none;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--primary);
  outline: 3px solid oklch(0.8 0.08 242 / 0.2);
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.filter-actions button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 740;
}

.filter-actions .primary-action {
  color: white;
}

.case-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
}

.case-results-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sort-control button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 720;
}

.case-table {
  display: grid;
}

.case-table-head,
.case-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1fr 1fr 0.9fr 136px;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
}

.case-table-head {
  height: 42px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.case-row {
  min-height: 82px;
  border-top: 1px solid var(--line);
  color: oklch(0.32 0.035 247);
  font-size: 13px;
}

.case-row:hover {
  background: oklch(0.984 0.009 238);
}

.case-row.is-selected {
  background: var(--primary-soft);
}

.case-row strong,
.case-row span {
  display: block;
}

.case-row strong {
  color: var(--ink);
  font-size: 13px;
}

.case-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.case-row .status {
  display: inline-flex;
  margin: 2px 4px 2px 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions button {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary-dark);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 720;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
}

.pagination div {
  display: flex;
  gap: 8px;
}

.pagination button {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 720;
}

.case-detail {
  overflow: hidden;
}

.case-detail-section {
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.case-detail-section:last-child {
  border-bottom: 0;
}

.case-detail-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.case-detail-grid dt {
  color: var(--muted);
  font-size: 11px;
}

.case-detail-grid dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
}

.case-image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.case-image-strip .mini-ct {
  width: 100%;
  border: 1px solid oklch(0.78 0.02 245);
}

.final-report-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 11px;
}

.final-report-card strong,
.final-report-card p,
.final-report-card span {
  display: block;
}

.final-report-card p {
  margin-top: 7px;
  color: oklch(0.32 0.035 247);
  font-size: 12px;
  line-height: 1.6;
}

.final-report-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.case-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 0 0 14px 18px;
}

.case-timeline li::before {
  position: absolute;
  top: 5px;
  left: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}

.case-timeline li::after {
  position: absolute;
  top: 18px;
  bottom: 2px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}

.case-timeline li:last-child {
  padding-bottom: 0;
}

.case-timeline li:last-child::after {
  display: none;
}

.case-timeline span {
  color: var(--muted);
  font-size: 12px;
}

.case-timeline strong {
  color: var(--ink);
  font-size: 13px;
}

.case-timeline em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.archive-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.archive-actions button {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 740;
}

.archive-actions .primary-action {
  color: white;
}

@media (max-width: 1280px) {
  .work-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .alerts-panel {
    order: 2;
  }

  .reading-main {
    height: auto;
    overflow: visible;
  }

  .reading-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .case-list {
    max-height: none;
  }

  .dicom-stage {
    min-height: 680px;
  }

  .report-layout,
  .review-layout,
  .case-layout,
  .report-case-banner,
  .report-case-banner dl,
  .review-patient-bar,
  .review-patient-bar dl,
  .review-evidence-grid,
  .case-table-head,
  .case-row,
  .case-center-summary {
    grid-template-columns: 1fr;
  }

  .bottom-action-bar {
    left: 0;
  }
}

@media (min-width: 1281px) and (max-width: 1500px) {
  .report-layout {
    grid-template-columns: 240px minmax(0, 1fr) 292px;
    gap: 12px;
  }

  .review-layout {
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 12px;
  }

  .case-layout {
    grid-template-columns: 232px minmax(0, 1fr) 300px;
    gap: 12px;
  }

  .review-case-strip > div,
  .case-center-summary > div {
    min-width: 146px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: slide-up 180ms ease-out;
  }

  .nav-item,
  .summary-tile,
  .table-action,
  button {
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
