:root {
  --bg: #edf4ff;
  --bg-2: #dbe8fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(27, 74, 130, 0.06);
  --border: rgba(33, 86, 153, 0.14);
  --border-strong: rgba(23, 125, 220, 0.3);
  --text: #111b31;
  --muted: #61718e;
  --soft: #8290a8;
  --primary: #0f70d7;
  --cyan: #00a8c8;
  --violet: #6956f0;
  --green: #0caa79;
  --amber: #db8b1e;
  --red: #d94f61;
  --shadow: 0 18px 55px rgba(26, 49, 78, 0.14);
  --glow: 0 0 26px rgba(15, 112, 215, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(67, 91, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 12%, rgba(0, 168, 200, 0.18), transparent 28rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(123, 177, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 177, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 88%);
}

button,
select {
  font: inherit;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient-bg span {
  position: absolute;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.24;
  animation: drift 18s ease-in-out infinite;
}

.ambient-bg span:nth-child(1) {
  top: -14vw;
  left: -7vw;
  background: #235dff;
}

.ambient-bg span:nth-child(2) {
  top: 18vh;
  right: -12vw;
  background: #24d9ff;
  animation-delay: -5s;
}

.ambient-bg span:nth-child(3) {
  bottom: -18vw;
  left: 35vw;
  background: #8b6cff;
  animation-delay: -9s;
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3vw, -2vh, 0) scale(1.08);
  }
}

.dashboard-shell {
  width: min(1760px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.glass-panel,
.panel,
.kpi-card,
.workflow-step {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--surface), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
}

.brand-block {
  min-width: 280px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-block .eyebrow {
  font-size: 16px;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(32, 215, 255, 0.22);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

h3 {
  margin-bottom: 0;
  font-size: 16px;
  white-space: nowrap;
}

.subtitle,
.section-note,
.panel-heading span,
.case-toolbar span {
  color: var(--muted);
}

.subtitle {
  margin-bottom: 0;
  font-size: 14px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-control,
.status-pill,
.icon-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
}

.filter-control {
  gap: 10px;
  padding: 0 10px 0 14px;
}

.filter-control span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.filter-control select {
  min-width: 180px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.filter-control option {
  color: #111b31;
}

.status-pill {
  gap: 9px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(54, 231, 167, 0.14), 0 0 18px rgba(54, 231, 167, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 231, 167, 0.32), 0 0 18px rgba(54, 231, 167, 0.65);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(54, 231, 167, 0), 0 0 18px rgba(54, 231, 167, 0.65);
  }
}

.icon-button {
  gap: 8px;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(59, 164, 255, 0.12);
}

.section {
  position: relative;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(122, 177, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(59, 164, 255, 0.1), transparent 34%, rgba(139, 108, 255, 0.1));
  opacity: 0.75;
}

.hero-section {
  min-height: 620px;
  border-color: rgba(32, 215, 255, 0.25);
}

.section-heading,
.panel-heading,
.case-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-note {
  margin: 6px 0 0;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.kpi-grid,
.chart-grid,
.coverage-layout,
.usage-layout {
  display: grid;
  gap: 14px;
}

.coverage-layout {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
  align-items: stretch;
}

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

.coverage-kpis .kpi-card:first-child {
  grid-column: 1 / -1;
  min-height: 162px;
}

.usage-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: stretch;
}

.usage-kpis,
.efficiency-kpis,
.value-kpis,
.demand-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.usage-kpis {
  align-content: stretch;
}

.efficiency-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.value-kpis,
.demand-kpis {
  margin-bottom: 14px;
}

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

.kpi-card,
.panel,
.workflow-step {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.kpi-card:hover,
.panel:hover,
.workflow-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 36px rgba(32, 215, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.kpi-card {
  min-height: 142px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kpi-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.11), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.kpi-card:hover::before,
.panel:hover::before {
  transform: translateX(120%);
}

.kpi-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: clamp(11px, 0.86vw, 13px);
  line-height: 1.2;
  white-space: nowrap;
}

.kpi-value {
  display: inline-block;
  margin-bottom: 10px;
  max-width: 100%;
  font-size: clamp(25px, 2.7vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(32, 215, 255, 0.16);
}

.kpi-value.flip {
  animation: flipIn 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes flipIn {
  0% {
    transform: rotateX(82deg) translateY(8px);
    opacity: 0;
  }
  100% {
    transform: rotateX(0) translateY(0);
    opacity: 1;
  }
}

.kpi-sub {
  color: var(--soft);
  font-size: clamp(10px, 0.78vw, 12px);
  line-height: 1.45;
  white-space: nowrap;
}

.panel {
  padding: 16px;
}

.panel-heading {
  min-height: 44px;
  margin-bottom: 10px;
}

.panel-heading span {
  display: block;
  margin-top: 5px;
  font-size: clamp(10px, 0.74vw, 12px);
  white-space: nowrap;
}

.panel-tag {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  margin-top: 0 !important;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(32, 215, 255, 0.08);
  color: var(--cyan) !important;
  white-space: nowrap;
}

.chart {
  width: 100%;
  min-height: 330px;
}

.chart.tall {
  min-height: 390px;
}

.map-chart {
  min-height: 520px;
}

.donut-chart {
  min-height: 300px;
}

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

.chart-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demand-grid {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
}

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

.workflow-step {
  min-height: 112px;
  padding: 15px;
}

.workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--cyan);
  font-weight: 900;
  text-shadow: 0 0 14px rgba(32, 215, 255, 0.7);
}

.workflow-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 164, 255, 0.22), rgba(139, 108, 255, 0.18));
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.workflow-title {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 850;
  color: var(--text);
  white-space: nowrap;
}

.workflow-desc {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.resource-panel {
  padding: 18px;
}

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

.resource-item {
  position: relative;
  min-height: 138px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(59, 164, 255, 0.08), rgba(139, 108, 255, 0.06));
  overflow: hidden;
}

.resource-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(32, 215, 255, 0.18), transparent 56%);
  opacity: 0.7;
}

.resource-item.is-top {
  border-color: rgba(255, 193, 92, 0.42);
  box-shadow: 0 0 28px rgba(255, 193, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.resource-rank,
.resource-main,
.resource-count {
  position: relative;
  z-index: 1;
}

.resource-rank {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(32, 215, 255, 0.1);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.resource-item.is-top .resource-rank {
  background: rgba(255, 193, 92, 0.14);
  color: var(--amber);
}

.resource-main strong,
.resource-count span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-main strong {
  margin-bottom: 6px;
  font-size: clamp(14px, 1vw, 17px);
}

.resource-count {
  display: grid;
  gap: 5px;
  margin-top: 16px;
}

.resource-count strong {
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 0.9;
  color: var(--cyan);
  white-space: nowrap;
}

.resource-item.is-top .resource-count strong {
  color: var(--amber);
}

.resource-count span {
  color: var(--soft);
  font-size: 12px;
}

.all-resource-panel {
  margin-top: 14px;
}

.all-resource-list {
  max-height: 340px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 112, 215, 0.36) transparent;
}

.all-resource-list::-webkit-scrollbar {
  width: 6px;
}

.all-resource-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 112, 215, 0.36);
}

.all-resource-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(33, 86, 153, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(15, 112, 215, 0.05));
}

.all-resource-item + .all-resource-item {
  margin-top: 8px;
}

.all-resource-item.is-top {
  border-color: rgba(219, 139, 30, 0.26);
  background: linear-gradient(90deg, rgba(255, 249, 237, 0.9), rgba(15, 112, 215, 0.06));
}

.all-resource-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 112, 215, 0.09);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.all-resource-item.is-top .all-resource-index {
  background: rgba(219, 139, 30, 0.14);
  color: var(--amber);
}

.all-resource-name {
  min-width: 0;
}

.all-resource-name strong,
.all-resource-name span,
.all-resource-count {
  white-space: nowrap;
}

.all-resource-name strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
}

.all-resource-name span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.all-resource-count {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.case-panel {
  padding: 16px;
  border-radius: var(--radius);
}

.case-panel + .case-panel {
  margin-top: 16px;
}

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

.case-toolbar h3 {
  margin-bottom: 5px;
}

.case-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.case-controls button,
.image-controls button,
.case-dots button,
.image-modal button {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.case-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: 18px;
}

.visual-caret {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 18px;
  user-select: none;
}

.case-controls button:hover,
.image-controls button:hover,
.case-dots button:hover,
.image-modal button:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(32, 215, 255, 0.12);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 14px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.58fr) minmax(0, 1.42fr);
  gap: 12px;
}

.case-title {
  padding: 18px;
  border: 1px solid rgba(32, 215, 255, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(59, 164, 255, 0.16), rgba(139, 108, 255, 0.12));
}

.case-title h4 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.18;
}

.case-value {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(54, 231, 167, 0.24);
  border-radius: var(--radius);
  background: rgba(54, 231, 167, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.case-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.case-detail {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.case-detail strong {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 13px;
}

.case-detail p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.case-media {
  min-width: 0;
}

.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  cursor: zoom-in;
}

.process-step {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  padding: 14px;
  border: 1px solid rgba(32, 215, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 11, 24, 0.68);
  color: #eef6ff;
  backdrop-filter: blur(14px);
}

.process-step span,
.process-step strong,
.process-step p {
  display: block;
  white-space: nowrap;
}

.process-step span {
  margin-bottom: 6px;
  color: #20d7ff;
  font-size: 12px;
  font-weight: 800;
}

.process-step strong {
  margin-bottom: 6px;
  font-size: 16px;
}

.process-step p {
  margin: 0;
  color: #c9d9ef;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
  transition: transform 0.28s ease;
}

.image-frame:hover img {
  transform: scale(1.025);
}

.image-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.image-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: var(--radius);
}

.image-controls span {
  min-width: 64px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.image-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(7, 11, 24, 0.68);
  color: #eef6ff;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.case-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.case-dots button {
  width: 28px;
  height: 7px;
  padding: 0;
  border-radius: 999px;
}

.case-dots button.active {
  width: 44px;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(32, 215, 255, 0.45);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 26px;
  background: rgba(3, 6, 14, 0.82);
  backdrop-filter: blur(12px);
}

.image-modal.open {
  display: grid;
}

.image-modal img {
  max-width: min(1040px, 96vw);
  max-height: 88vh;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.image-modal button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 28px;
  line-height: 1;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(430px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 13px;
  line-height: 1.5;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes sectionRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .coverage-layout,
  .usage-layout,
  .demand-grid,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .usage-kpis,
  .value-kpis,
  .demand-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 960px) {
  .dashboard-shell {
    padding: 14px;
  }

  .topbar,
  .section-heading,
  .case-card {
    display: block;
  }

  .topbar-actions {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .section-note {
    text-align: left;
  }

  .coverage-kpis,
  .usage-kpis,
  .efficiency-kpis,
  .value-kpis,
  .demand-kpis,
  .chart-grid.two,
  .chart-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-title {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .dashboard-shell {
    padding: 10px;
  }

  .topbar,
  .section {
    padding: 16px;
  }

  .topbar {
    position: static;
  }

  .filter-control,
  .status-pill,
  .icon-button {
    width: 100%;
    justify-content: space-between;
  }

  .filter-control select {
    min-width: 0;
    width: 100%;
  }

  .coverage-kpis,
  .usage-kpis,
  .efficiency-kpis,
  .value-kpis,
  .demand-kpis,
  .chart-grid.two,
  .chart-grid.three,
  .workflow,
  .resource-list,
  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .coverage-kpis .kpi-card:first-child {
    min-height: 136px;
  }

  .workflow-step:not(:last-child)::after {
    top: auto;
    right: 20px;
    bottom: -13px;
    transform: rotate(90deg);
  }

  .chart,
  .chart.tall,
  .donut-chart {
    min-height: 310px;
  }

  .map-chart {
    min-height: 380px;
  }

  .image-frame,
  .image-frame img {
    min-height: 330px;
  }
}
