:root {
  --blue: #1539aa;
  --blue-dark: #0d2a82;
  --blue-soft: #edf2ff;
  --red: #ff222b;
  --red-soft: #fff0f1;
  --orange: #ff4e05;
  --amber: #ff8800;
  --yellow: #ffcc23;
  --ink: #16213d;
  --muted: #68718a;
  --line: #e5e8f0;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --success: #17845b;
  --success-soft: #e8f7f0;
  --shadow: 0 12px 32px rgba(15, 32, 80, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
tr[data-pop-id]:focus-visible {
  outline: 3px solid rgba(21, 57, 170, 0.24);
  outline-offset: 2px;
}

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

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 260px;
  flex-direction: column;
  padding: 28px 20px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 102%, rgba(255, 136, 0, 0.25), transparent 24%),
    linear-gradient(175deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.brand-block {
  padding: 0 10px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.brand-logo {
  display: block;
  width: 176px;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.product-name {
  margin-top: 18px;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.28;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  text-align: left;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item.is-active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 9px 24px rgba(3, 20, 72, 0.2);
}

.nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.nav-count {
  min-width: 27px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 0.75rem;
}

.nav-item.is-active .nav-count {
  background: var(--blue-soft);
}

.nav-item.is-active .nav-count-alert {
  color: #a20f18;
  background: var(--red-soft);
}

.sidebar-note {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
}

.sidebar-note-label {
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-note strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.main-content {
  min-height: 100vh;
  margin-left: 260px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
}

h2 {
  margin-bottom: 7px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
}

h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.freshness {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 32, 80, 0.04);
}

.freshness-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px var(--success-soft);
}

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

.freshness span {
  color: var(--muted);
  font-size: 0.72rem;
}

.freshness strong {
  margin-top: 2px;
  font-size: 0.82rem;
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--blue);
  background: #fff;
}

.view {
  display: none;
  padding: 34px clamp(24px, 4vw, 56px) 56px;
}

.view.is-visible {
  display: block;
  animation: view-in 220ms ease;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.section-heading p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.secondary-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #cfd5e5;
  border-radius: 11px;
  color: var(--blue);
  background: #fff;
  font-weight: 700;
}

.secondary-button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  position: relative;
  min-height: 134px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi-card::after {
  position: absolute;
  content: "";
  inset: auto -28px -28px auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.kpi-value {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.kpi-detail {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.73rem;
}

.insight-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #ffd6d8;
  border-radius: 15px;
  background: linear-gradient(95deg, #fff3f3, #fffaf0);
}

.insight-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.insight-banner p {
  margin: 4px 0 0;
  color: #6f4d50;
  font-size: 0.87rem;
  line-height: 1.45;
}

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

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

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

.status-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 750;
}

.status-pill {
  padding: 6px 10px;
  font-size: 0.72rem;
}

.status-pill-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-pill-red {
  color: #a20f18;
  background: var(--red-soft);
}

.progress-layout {
  display: grid;
  grid-template-columns: 154px 1fr;
  align-items: center;
  gap: 26px;
}

.progress-ring,
.mini-donut {
  position: relative;
  display: grid;
  border-radius: 50%;
  place-items: center;
}

.progress-ring {
  width: 150px;
  height: 150px;
  background: conic-gradient(var(--blue) 0deg, var(--blue) var(--progress-deg, 0deg), #e9edf5 var(--progress-deg, 0deg));
}

.progress-ring::before,
.mini-donut::before {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: #fff;
}

.progress-ring::before {
  inset: 18px;
}

.progress-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.progress-ring strong,
.progress-ring span {
  display: block;
}

.progress-ring strong {
  color: var(--blue);
  font-size: 2rem;
}

.progress-ring span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.progress-copy > p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.progress-copy > p strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.legend-list {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend-item strong {
  color: var(--ink);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.stage-list,
.coordination-list {
  display: grid;
  gap: 16px;
}

.stage-row {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) 2.4fr 50px;
  align-items: center;
  gap: 12px;
}

.stage-label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f6;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4d70dc);
}

.stage-value {
  color: var(--muted);
  text-align: right;
  font-size: 0.76rem;
}

.stage-value strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.coordination-panel {
  grid-row: span 2;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 750;
}

.coordination-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.25fr) 2fr 90px;
  align-items: center;
  gap: 14px;
}

.coordination-name {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 700;
}

.coordination-value {
  color: var(--muted);
  text-align: right;
  font-size: 0.72rem;
}

.coordination-value strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.donut-row {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 24px;
}

.mini-donut {
  width: 124px;
  height: 124px;
}

.mini-donut::before {
  inset: 16px;
}

.mini-donut::after {
  position: absolute;
  content: attr(data-total);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 800;
}

.flow-list {
  display: grid;
  gap: 11px;
}

.flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.flow-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flow-item strong {
  color: var(--ink);
}

.deadline-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.deadline-snapshot-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--canvas);
}

.deadline-snapshot-item span,
.deadline-snapshot-item strong {
  display: block;
}

.deadline-snapshot-item span {
  color: var(--muted);
  font-size: 0.7rem;
}

.deadline-snapshot-item strong {
  margin-top: 5px;
  font-size: 1.25rem;
}

.table-heading {
  align-items: center;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(170px, 0.6fr));
  gap: 11px;
  margin-bottom: 16px;
}

.deadline-filters {
  grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9deea;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

.filter-bar input {
  padding: 10px 14px 10px 42px;
}

.filter-bar select {
  padding: 10px 36px 10px 12px;
}

.search-field {
  position: relative;
}

.search-field > span:not(.sr-only) {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: var(--muted);
  transform: translateY(-54%);
  font-size: 1.2rem;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

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

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #707993;
  background: #fafbfe;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #4b5570;
  font-size: 0.8rem;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr[data-pop-id] {
  cursor: pointer;
}

tbody tr:hover {
  background: #f8faff;
}

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

.pop-name-cell {
  max-width: 350px;
}

.pop-name-cell strong,
.pop-name-cell span {
  display: block;
}

.pop-name-cell strong {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.pop-name-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.steps {
  display: inline-flex;
  gap: 4px;
}

.step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4e8f0;
}

.step.done {
  background: var(--blue);
}

.step.interact.done {
  background: var(--orange);
}

.inline-progress {
  display: grid;
  grid-template-columns: 62px 38px;
  align-items: center;
  gap: 8px;
}

.inline-progress .bar-track {
  height: 6px;
}

.status-badge {
  padding: 6px 9px;
  font-size: 0.68rem;
}

.badge-complete {
  color: #0d6b49;
  background: var(--success-soft);
}

.badge-progress {
  color: #8c4d00;
  background: #fff4df;
}

.badge-empty {
  color: #5d657b;
  background: #eef0f5;
}

.badge-red {
  color: #a20f18;
  background: var(--red-soft);
}

.badge-yellow {
  color: #775c00;
  background: #fff8d9;
}

.badge-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.row-action {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--blue);
  background: #fff;
}

.empty-state {
  display: grid;
  gap: 6px;
  min-height: 220px;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.77rem;
}

.page-actions {
  display: flex;
  gap: 7px;
}

.page-button {
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--blue);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 750;
}

.page-button:disabled {
  cursor: default;
  color: #a6adbf;
  background: #f7f8fb;
}

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

.deadline-kpi {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.deadline-kpi-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--kpi-color);
  background: var(--kpi-bg);
  font-weight: 900;
}

.deadline-kpi span,
.deadline-kpi strong {
  display: block;
}

.deadline-kpi span {
  color: var(--muted);
  font-size: 0.72rem;
}

.deadline-kpi strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 1.35rem;
}

.days-overdue {
  color: #b20d17;
  font-weight: 750;
}

.detail-dialog {
  width: min(690px, calc(100vw - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(8, 23, 70, 0.3);
}

.detail-dialog::backdrop {
  background: rgba(10, 23, 54, 0.5);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  display: flex;
  max-height: inherit;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.close-button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-content {
  padding: 24px 26px 28px;
  overflow-y: auto;
}

.dialog-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.dialog-summary > div,
.detail-field {
  padding: 13px;
  border-radius: 12px;
  background: var(--canvas);
}

.dialog-summary span,
.dialog-summary strong,
.detail-field span,
.detail-field strong {
  display: block;
}

.dialog-summary span,
.detail-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dialog-summary strong,
.detail-field strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.85rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.dialog-stages {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.dialog-stage {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-stage:last-child {
  border-bottom: 0;
}

.dialog-stage-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #747d92;
  background: #edf0f5;
  font-size: 0.76rem;
  font-weight: 900;
}

.dialog-stage.is-done .dialog-stage-icon {
  color: #fff;
  background: var(--success);
}

.dialog-stage span {
  font-size: 0.82rem;
  font-weight: 700;
}

.dialog-stage small {
  color: var(--muted);
}

@media (max-width: 1220px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-bar,
  .deadline-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .sidebar {
    width: 224px;
  }

  .main-content {
    margin-left: 224px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .coordination-panel {
    grid-row: auto;
  }

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

@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
    width: min(300px, 84vw);
    transform: translateX(-102%);
    transition: transform 180ms ease, visibility 180ms ease;
  }

  body.menu-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }

  body.menu-open::after {
    position: fixed;
    z-index: 25;
    content: "";
    inset: 0;
    background: rgba(10, 23, 54, 0.45);
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    min-height: 80px;
    padding: 14px 18px;
  }

  .mobile-menu {
    display: block;
  }

  .topbar .eyebrow,
  .freshness span {
    display: none;
  }

  .freshness {
    padding: 9px 10px;
  }

  .view {
    padding: 26px 18px 42px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .kpi-card:last-child {
    grid-column: 1 / -1;
  }

  .progress-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .progress-copy {
    width: 100%;
  }

  .filter-bar,
  .deadline-filters {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .freshness {
    display: none;
  }

  h1 {
    font-size: 1.16rem;
  }

  .kpi-grid,
  .deadline-kpis {
    grid-template-columns: 1fr;
  }

  .kpi-card:last-child {
    grid-column: auto;
  }

  .kpi-card {
    min-height: 112px;
  }

  .coordination-row {
    grid-template-columns: minmax(120px, 1.3fr) 1.8fr 66px;
    gap: 8px;
  }

  .donut-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .flow-list {
    width: 100%;
  }

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

  .dialog-summary,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-field.full {
    grid-column: auto;
  }
}

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