:root {
  color-scheme: light;
  --bg: #f3f6f4;
  --bg-grid: rgba(22, 125, 112, 0.045);
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --surface-3: #eef5f2;
  --rail-bg: #101a18;
  --rail-bg-2: #17231f;
  --rail-text: #f2f7f4;
  --rail-muted: #93a39d;
  --text: #121c1a;
  --muted: #5f6f6b;
  --subtle: #95a39f;
  --line: #dce5e1;
  --line-soft: #edf3f0;
  --teal: #087d72;
  --teal-strong: #006f66;
  --coral: #d76652;
  --amber: #b77d20;
  --blue: #2f6fb6;
  --green-soft: #e5f4ef;
  --coral-soft: #fff1ed;
  --amber-soft: #fff7e8;
  --blue-soft: #edf5ff;
  --shadow: 0 18px 44px rgba(28, 57, 50, 0.08);
  --shadow-soft: 0 8px 24px rgba(28, 57, 50, 0.06);
  --radius-panel: 8px;
  --radius-control: 6px;
  --z-drawer: 30;
  --z-toast: 40;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family:
    "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(47, 111, 182, 0.08), transparent 32%),
    radial-gradient(circle at 18% 24%, rgba(215, 102, 82, 0.06), transparent 28%);
  background-size:
    32px 32px,
    32px 32px,
    auto,
    auto;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 360px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 18px;
}

.login-panel label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-panel input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0 10px;
  color: var(--text);
  background: var(--surface);
}

.login-panel input[readonly] {
  color: var(--muted);
  background: var(--surface-2);
}

.login-panel button {
  width: 100%;
  min-height: 40px;
  margin-top: 16px;
  border: 0;
  border-radius: var(--radius-control);
  color: #fff;
  background: var(--teal);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.login-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.login-error {
  margin-top: 10px;
  color: #a33c2f;
  font-size: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 42%),
    var(--rail-bg);
  color: var(--rail-text);
  box-shadow: 18px 0 42px rgba(16, 26, 24, 0.12);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius-panel);
  color: #fff;
  background: #eaf6f1;
  color: var(--teal-strong);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(8, 125, 114, 0.16);
}

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

.brand strong {
  font-size: 15px;
}

.brand div span {
  color: var(--rail-muted);
  font-size: 12px;
}

nav {
  display: grid;
  gap: 6px;
}

nav a {
  color: var(--rail-muted);
  text-decoration: none;
  padding: 10px 11px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 650;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

nav a:hover,
nav a.active {
  color: var(--rail-text);
  background: rgba(255, 255, 255, 0.08);
}

nav a.active {
  color: #10201c;
  background: #dff2ec;
  box-shadow: none;
}

nav a:hover {
  transform: translateX(2px);
}

main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 25px;
  line-height: 1.15;
  font-weight: 780;
  text-wrap: balance;
}

.topbar p,
.panel-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.date-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 760px;
}

.data-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.86);
}

.preset-group button,
.date-controls label,
.data-actions button {
  min-height: 34px;
}

.preset-group button,
.data-actions button {
  border: 0;
  border-radius: var(--radius-control);
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 140ms ease;
}

.preset-group button:hover,
.preset-group button.selected,
.data-actions button:hover {
  color: #fff;
  background: var(--teal);
}

.data-actions button:hover {
  border-color: var(--teal);
}

.preset-group button:active,
.data-actions button:active {
  transform: translateY(1px) scale(0.99);
}

.data-actions button {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(18, 28, 26, 0.03);
}

.data-actions button:disabled {
  cursor: wait;
  color: var(--subtle);
  background: var(--surface-2);
}

.date-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.date-controls label span {
  white-space: nowrap;
}

.date-controls input {
  width: 132px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

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

.kpi {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(18, 28, 26, 0.08);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 248, 0.98)),
    var(--surface);
  box-shadow: 0 1px 0 rgba(18, 28, 26, 0.04);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 3px;
  height: 100%;
  background: var(--teal);
  opacity: 0.72;
}

.kpi:hover {
  border-color: rgba(8, 125, 114, 0.32);
  box-shadow: 0 14px 34px rgba(28, 57, 50, 0.08);
  transform: translateY(-1px);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.kpi strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.kpi small {
  display: block;
  margin-top: 10px;
  color: var(--subtle);
  font-size: 12px;
}

.kpi .up {
  color: var(--teal);
}

.kpi .down {
  color: var(--coral);
}

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

.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(18, 28, 26, 0.09);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(18, 28, 26, 0.04);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.panel:hover {
  border-color: #c9d7d2;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

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

.panel-head h2 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 780;
  text-wrap: balance;
}

.metric-chip {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: var(--radius-control);
  color: var(--teal);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 750;
}

.muted-chip {
  color: var(--muted);
  background: var(--surface-2);
}

.live-chip {
  color: #0f5e54;
  background: #dff2ec;
}

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

.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.trend-group {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--surface-2), #fff);
}

.trend-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.trend-group-head strong {
  font-size: 13px;
  font-weight: 780;
}

.trend-group-head span {
  color: var(--muted);
  font-size: 11px;
}

.trend-group svg {
  display: block;
  width: 100%;
  min-height: 210px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.split-list {
  display: grid;
  gap: 12px;
}

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

.split-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 760;
}

.split-top small {
  color: var(--muted);
  font-weight: 680;
}

.track {
  height: 8px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efec;
}

.fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.split-note {
  color: var(--muted);
  font-size: 12px;
}

.bar-stack {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(84px, 140px) minmax(0, 1fr) 62px;
  align-items: center;
  gap: 10px;
}

.bar-stack.compact .bar-row {
  grid-template-columns: minmax(74px, 118px) minmax(0, 1fr) 54px;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
}

.bar-value {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 12px;
}

.bar-value small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
}

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

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.insight-rail {
  display: grid;
  gap: 10px;
}

.memo-trigger {
  cursor: pointer;
  border-radius: var(--radius-panel);
}

.memo-trigger:focus-visible {
  outline: 3px solid rgba(47, 111, 182, 0.22);
  outline-offset: 3px;
}

.memo-trigger:hover .empty {
  border-color: rgba(47, 111, 182, 0.32);
  color: var(--blue);
  background: var(--blue-soft);
}

.insight {
  padding: 12px;
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-panel);
  background: var(--surface-2);
}

.ai-panel .insight {
  border-left-color: var(--blue);
}

.ai-summary {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(62, 102, 158, 0.2);
  border-radius: var(--radius-panel);
  background: var(--blue-soft);
}

.ai-summary strong {
  font-size: 14px;
  line-height: 1.35;
}

.ai-summary span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.ai-section {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.ai-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.ai-detail,
.ai-risk {
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: var(--surface-2);
}

.ai-detail strong,
.ai-detail span,
.ai-detail small {
  display: block;
}

.ai-detail strong {
  font-size: 13px;
}

.ai-detail span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.ai-detail small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 11px;
}

.action-detail {
  border-left: 3px solid var(--teal);
}

.ai-risk {
  color: var(--muted);
  font-size: 12px;
}

.insight:nth-child(2) {
  border-left-color: var(--coral);
}

.insight:nth-child(3) {
  border-left-color: var(--amber);
}

.insight strong {
  display: block;
  font-size: 14px;
}

.insight span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.diagnostic-panel {
  border-color: #cadbd5;
}

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

.diagnostic-section {
  min-width: 0;
}

.diagnostic-section h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.diagnostic-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-section li {
  min-width: 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.diagnostic-section small {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 11px;
}

.diagnostic-muted {
  color: var(--muted) !important;
}

.severity {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-right: 6px;
  padding: 0 5px;
  border-radius: 4px;
  color: var(--teal);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 780;
  vertical-align: text-bottom;
}

.severity.high {
  color: var(--coral);
  background: var(--coral-soft);
}

.severity.medium {
  color: var(--amber);
  background: var(--amber-soft);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
  background: var(--surface-2);
}

tbody tr:hover {
  background: #f8fbfa;
}

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

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.question-text {
  display: block;
  min-width: 260px;
  max-width: 520px;
  color: var(--text);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(8, 125, 114, 0.12);
  border-radius: var(--radius-control);
  color: #16423d;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 720;
}

.keyword-cloud small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 780;
}

.geo-map-wrap {
  min-width: 0;
}

.geo-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.geo-tile {
  min-width: 0;
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(47, 111, 182, calc(0.1 + var(--heat) * 0.22));
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.94)),
    color-mix(in srgb, var(--blue-soft) calc(var(--heat) * 70%), var(--surface));
}

.geo-tile div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.geo-tile strong,
.geo-tile span,
.geo-tile em,
.geo-tile small {
  display: block;
}

.geo-tile strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.geo-tile small,
.geo-tile em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.geo-tile span {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-panel);
  color: var(--muted);
  background: var(--surface-2);
  text-align: center;
}

.compact-empty {
  min-height: 86px;
  padding: 14px;
}

button:focus-visible,
input:focus-visible,
nav a:focus-visible {
  outline: 3px solid rgba(8, 125, 114, 0.22);
  outline-offset: 2px;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-toast);
  max-width: 360px;
  padding: 12px 14px;
  border-radius: var(--radius-panel);
  color: #fff;
  background: #1d2a27;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

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

.ai-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: var(--z-drawer);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(460px, 100vw);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -24px 0 64px rgba(38, 66, 58, 0.16);
  backdrop-filter: blur(16px);
}

.ai-drawer[hidden] {
  display: none;
}

.ai-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 248, 0.72);
}

.ai-drawer-head h2 {
  font-size: 18px;
}

.ai-drawer-head button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 140ms ease;
}

.ai-drawer-head button:hover {
  color: #fff;
  background: var(--teal);
}

.ai-drawer-head button:active {
  transform: translateY(1px) scale(0.99);
}

.ai-drawer-body {
  min-width: 0;
  overflow: auto;
  padding: 18px;
}

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

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  main {
    padding: 18px;
  }

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

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: span 6;
  }

  .trend-groups {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  main {
    padding: 16px;
  }

  .topbar,
  .date-controls {
    display: grid;
    justify-content: stretch;
  }

  .date-controls label,
  .date-controls input,
  .data-actions,
  .data-actions button {
    width: 100%;
  }

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

  .preset-group button {
    min-width: 0;
    padding: 0 6px;
  }

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

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-8,
  .span-12 {
    grid-column: span 1;
  }

  .bar-row,
  .bar-stack.compact .bar-row {
    grid-template-columns: minmax(72px, 108px) minmax(0, 1fr) 48px;
  }

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

  .geo-map {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 22px;
  }

  .ai-drawer {
    inset: 0;
    width: 100vw;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  #toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}
