:root {
  --line-1: #547b9e;
  --line-2: #948376;
  --type-1: #577d96;
  --type-2: #8c8273;
  --type-3: #7d8c80;
  --type-4: #92859e;
  --type-5: #a2a5a7;
  color-scheme: light dark;
  --bg: #fff;
  --surface: #fff;
  --rail: #f9f9f9;
  --raised: #f4f4f4;
  --raised-hover: #ececec;
  --text: #0d0d0d;
  --muted: #6e6e6e;
  --faint: #707070;
  --border: #e6e6e6;
  --border-soft: #f0f0f0;
  --hover: rgba(13, 13, 13, 0.03);
  --accent: #0d0d0d;
  --accent-ink: #fff;
  --accent-ring: rgba(0, 0, 0, 0.5);
  --green: #0a7d5c;
  --green-soft: rgba(16, 163, 127, 0.1);
  --amber: #9a4a08;
  --amber-soft: rgba(180, 83, 9, 0.1);
  --red: #b91c1c;
  --red-soft: rgba(185, 28, 28, 0.09);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

/* NG: shared palette and panels, no external assets or layout framework. */
.ng-position { min-width: 0; }
.ng-toolbar, .ng-chips, .ng-filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ng-toolbar { margin: 0 0 16px; }
.ng-toolbar label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.ng-toolbar select, .ng-review input, .ng-review textarea { border: 1px solid var(--border); border-radius: 16px; padding: 8px 12px; background: var(--surface); color: var(--text); font: inherit; }
.ng-filter-row { margin: 12px 0; }
.ng-filter-row > .caption { min-width: 32px; }
.ng-chips { margin: 12px 0; }
.ng-chips button[aria-pressed="true"], .ng-filter-row button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.fish-map { display: block; width: 100%; aspect-ratio: 1600 / 171; }
.fish-map.clickable { cursor: pointer; }
.fish-wrap { padding: 16px 0 0; min-width: 0; }
.fish-hint { min-height: 18px; margin: 8px 0; }
.ng-legend { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); margin-top: 12px; }
.ng-legend i { width: 24px; height: 10px; border-radius: 2px; }
.ng-ranking { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ng-rank { display: grid; gap: 4px; color: var(--text); font-size: 12px; text-decoration: none; border-top: 1px solid var(--border-soft); padding: 8px 0; }
.ng-rank .mono { font-size: 11px; color: var(--muted); }
.ng-rank i { display: block; height: 4px; min-width: 1px; background: #E1452B; border-radius: 4px; }
.ng-filters { padding: 20px; }
.ng-case-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ng-case-card { color: var(--text); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; background: var(--surface); }
.ng-case-card:hover { background: var(--hover); border-color: var(--muted); }
.ng-case-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #151820; }
.ng-case-text { display: grid; gap: 8px; padding: 14px 16px; }
.ng-state { justify-self: start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--text); background: var(--raised); }
.ng-state.auto { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.ng-state.review { color: var(--amber); background: color-mix(in srgb, var(--amber) 15%, transparent); }
.ng-state.fail { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.ng-filters .fish-wrap { max-width: 760px; }
.ng-more { margin-top: 20px; }
.ng-summary { padding: 20px; margin-bottom: 16px; }
.ng-summary h2 { margin: 0; font-size: 18px; }
.ng-flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ng-flow a { color: var(--text); background: var(--raised); border-radius: 999px; padding: 8px 16px; text-decoration: none; }
.ng-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ng-detail-grid > .span-all { grid-column: 1 / -1; }
.ng-image { display: block; width: 100%; height: auto; object-fit: contain; background: #151820; border-radius: 8px; }
#ng-captured > .ng-image { max-height: 540px; }
.ng-timeline { padding: 0; margin: 16px 0; list-style: none; }
.ng-step { display: grid; gap: 4px; padding: 8px 0 8px 12px; border-left: 2px solid var(--border); }
.ng-step.done { border-color: var(--green); }
.ng-step.warn, .ng-step.pending { border-color: var(--amber); }
.ng-step.fail { border-color: var(--red); }
.ng-crop-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ng-crop-pair h3 { grid-column: 1 / -1; font-size: 12px; margin: 0; }
.ng-crop-pair figure { margin: 0; min-width: 0; }
.ng-crop { width: 100%; aspect-ratio: 400 / 230; background: #151820; border-radius: 8px; }
.ng-overlay { position: relative; width: min(100%, 650px); margin: 16px auto; }
.ng-overlay svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ng-region { stroke: #E1452B; fill: rgba(225,69,43,.08); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; }
.ng-region.outline { stroke-dasharray: 6 4; }
.ng-region.lost { stroke: #9a9a9a; fill: rgba(154,154,154,.1); stroke-dasharray: 2 4; }
.ng-region.review { stroke: #FDBE6F; stroke-width: 3; fill: rgba(253,190,111,.16); }
.ng-region.lost.review { stroke: #9a9a9a; }
.ng-region:focus, .ng-region:hover { stroke-width: 5; }
.ng-review { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.ng-review h3 { margin: 0; font-size: 14px; }
.ng-review input { width: min(100%, 280px); }
.ng-review textarea { width: 100%; resize: vertical; min-height: 80px; }
@media (max-width: 1100px) { .ng-case-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ng-case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ng-ranking { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ng-case-list, .ng-detail-grid { grid-template-columns: 1fr; } .ng-ranking { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ng-toolbar input { max-width: 150px; } .ng-flow a { padding: 8px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --line-1: #8eafce;
    --line-2: #c0a998;
    --type-1: #86abc2;
    --type-2: #b5a18a;
    --type-3: #99b19f;
    --type-4: #b2a0c3;
    --type-5: #959ba0;
    --bg: #212121;
    --surface: #262626;
    --rail: #171717;
    --raised: #303030;
    --raised-hover: #3a3a3a;
    --text: #ececec;
    --muted: #a6a6a6;
    --faint: #9a9a9a;
    --border: #3d3d3d;
    --border-soft: #333;
    --hover: rgba(255, 255, 255, 0.03);
    --accent: #ececec;
    --accent-ink: #0d0d0d;
    --accent-ring: rgba(255, 255, 255, 0.38);
    --green: #4ecb9d;
    --green-soft: rgba(78, 203, 157, 0.13);
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.13);
    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.13);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: linear-gradient(to right, var(--rail) 232px, var(--bg) 232px);
  color: var(--text);
  font:
    14px/1.5 "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    system-ui,
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
h2 {
  font-size: 14px;
  font-weight: 600;
}
svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.caption {
  font-size: 11px;
  color: var(--faint);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.good {
  color: var(--green);
}
.warn {
  color: var(--amber);
}
.bad,
.error {
  color: var(--red);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.skip {
  position: fixed;
  z-index: 5;
  left: 16px;
  top: -80px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.rail {
  position: fixed;
  height: 100vh;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--rail);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 58px 14px 20px;
}
.rail-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-left: 20px;
  color: var(--muted);
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 10px 20px;
}
.brand strong {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.version {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--raised);
  border: 1px solid var(--border-soft);
  padding: 1px 6px;
  border-radius: 999px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
}
.nav a:hover {
  background: var(--hover);
}
.nav a[aria-current] {
  background: var(--raised-hover);
  color: var(--text);
  font-weight: 600;
}
.rail-foot {
  margin-top: auto;
  padding: 16px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.connection.good {
  color: var(--green);
}
.connection.bad {
  color: var(--red);
}
.workspace {
  margin-left: 232px;
}
.summary {
  height: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-size: 12px;
  background: var(--surface);
}
.summary-stats {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  color: var(--muted);
}
.summary b {
  color: var(--text);
  font-weight: 600;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.refresh {
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
  margin-left: auto;
  white-space: nowrap;
}
.refresh:hover {
  color: var(--text);
}
.connection-top {
  font-size: 11px;
  color: var(--red);
  margin-left: auto;
  white-space: nowrap;
}
.connection-top:not([hidden]) + .refresh {
  margin-left: 0;
}
main {
  padding: 30px 36px 0;
  max-width: none;
  margin: auto;
}
.page-heading {
  margin-bottom: 22px;
}
.page-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  gap: 2px;
}
.tabs a {
  padding: 8px 12px 10px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1.6px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover {
  background: var(--hover);
}
.tabs a[aria-current] {
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  min-height: 120px;
  padding: 18px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.stat h2 {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat-value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-value.mono {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.stat p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  margin: 16px 0;
  color: var(--muted);
  background: var(--hover);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-size: 13px;
}
.notice .dot {
  color: var(--green);
}
.notice.warn .dot {
  color: var(--amber);
}
.panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 16px;
  padding: 20px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pill,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 26px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.pill:hover {
  background: var(--raised);
}
.primary {
  height: 34px;
  padding: 6px 16px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
}
.primary:hover {
  opacity: 0.85;
}
.segmented {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  align-items: center;
  background: var(--raised);
  border-radius: 999px;
  width: max-content;
}
.segmented button {
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 16px;
  min-height: 28px;
  color: var(--muted);
}
.segmented button:hover {
  color: var(--text);
}
.segmented button[aria-pressed="true"] {
  color: var(--accent-ink);
  background: var(--accent);
}
.form-top,
.form-bottom {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.form-top {
  justify-content: space-between;
  margin-bottom: 16px;
}
.quick {
  display: flex;
  gap: 6px;
}
/* 양식 선택: 고른 양식이 지원하는 기간 종류만 버튼으로 보인다. */
.template-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.template-pick label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.template-pick select {
  min-width: 200px;
}
.template-summary {
  margin: -8px 0 16px;
  font-size: 12px;
  color: var(--muted);
}
.template-summary:empty {
  display: none;
}
.kind-period {
  color: var(--muted);
}
.form-bottom {
  align-items: flex-end;
  gap: 16px;
}
.dates {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.dates > span {
  padding-bottom: 7px;
  color: var(--muted);
}
.dates label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
input[type="date"],
input[type="search"] {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
input[type="date"] {
  width: 152px;
}
input[aria-invalid="true"] {
  border-color: var(--red);
}
.formats {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  flex-wrap: wrap;
  font-size: 12px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  margin: 0;
  width: 13px;
  height: 13px;
}
.form-bottom .primary {
  margin-left: auto;
}
.form-error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
}
.generate #form-result {
  margin-top: 12px;
}
.message {
  padding: 16px 20px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.message p {
  color: var(--muted);
  margin-top: 4px;
}
.message.error {
  background: var(--red-soft);
  border-color: transparent;
}
.heatmap {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 6px;
  min-width: 440px;
}
.heat {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--border);
  color: var(--muted);
}
button.heat {
  width: 100%;
  height: 20px;
  opacity: 1;
  padding: 0;
  border-radius: 4px;
  transition:
    background 0.12s,
    box-shadow 0.12s;
}
button.heat:hover {
  box-shadow: 0 0 0 2px var(--accent-ring);
}
.heat.good {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}
.heat.warn {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}
.heat.bad {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}
.heat.missing {
  background: var(--surface);
  border-color: var(--faint);
}
.heat-scroll {
  overflow: auto;
  padding: 3px;
  margin: -3px;
}
.heat-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 16px;
}
.search {
  display: flex;
  align-items: center;
  position: relative;
  margin-left: auto;
}
.search svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  padding-left: 34px;
  width: 240px;
}
.report-panel {
  padding: 16px 12px 4px;
}
.report-panel > .panel-heading {
  padding: 0 8px;
  margin: 4px 0 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.report-row:last-child td {
  border-bottom: 0;
}
.report-row {
  cursor: pointer;
}
.report-row:hover {
  background: var(--hover);
}
.num {
  text-align: right;
}
.period-cell {
  font-size: 11px;
  color: var(--muted);
}
.generated {
  font-size: 11px;
  color: var(--muted);
}
.row-toggle {
  border: 0;
  background: none;
  padding: 2px 0;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.row-toggle:before {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.12s;
}
.row-toggle[aria-expanded="true"]:before {
  transform: rotate(45deg);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.good {
  color: var(--green);
  background: var(--green-soft);
}
.badge.warn {
  color: var(--amber);
  background: var(--amber-soft);
}
.badge.bad {
  color: var(--red);
  background: var(--red-soft);
}
.detail-row td {
  padding: 0 10px 16px;
  white-space: normal;
}
.report-detail {
  background: var(--hover);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 20px;
}
.detail-headline {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.chart-link {
  display: block;
  max-width: 880px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.chart-link img {
  display: block;
  width: 100%;
  height: auto;
}
.chart-link span {
  display: block;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
}
.empty-cell {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}
.section-note {
  display: flex;
  justify-content: space-between;
  padding: 6px 0 16px;
}
.job-card {
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
}
.job-top,
.job-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.job-title {
  font-size: 13px;
  font-weight: 500;
}
.job-top .pill {
  margin-left: auto;
}
.job-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  justify-content: space-between;
}
.progress {
  height: 4px;
  background: var(--raised);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.15s;
}
.job-card.bad .progress > span {
  background: var(--red);
}
.job-card details {
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.job-card summary {
  cursor: pointer;
  width: max-content;
}
.job-card ul {
  padding-left: 20px;
  overflow-wrap: anywhere;
}
.job-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.8 var(--mono);
  max-height: 240px;
  overflow: auto;
  padding: 12px;
  background: var(--raised);
  border-radius: 8px;
}
.job-error {
  color: var(--red);
  margin-top: 8px;
  font-size: 12px;
}
.footer {
  font-size: 11px;
  color: var(--faint);
  padding: 24px 0;
  text-align: center;
}
@media (max-width: 1150px) {
  .summary-stats {
    gap: 14px;
  }
  .summary {
    padding: 0 24px;
  }
  main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .form-bottom .primary {
    margin-left: 0;
  }
  .file-cell .pill + .pill {
    margin: 4px 0 0;
  }
  .file-cell .pill {
    display: flex;
    width: max-content;
  }
  .connection-top {
    white-space: normal;
    line-height: 1.2;
    max-width: 90px;
  }
}
@media (max-width: 899px) {
  .rail {
    position: static;
    width: auto;
    padding: 12px 20px;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .rail-cap {
    display: none;
  }
  .brand {
    padding: 0;
  }
  .nav {
    flex-direction: row;
    gap: 4px;
  }
  .nav a {
    gap: 6px;
    padding: 8px;
  }
  .rail-foot {
    margin: 0 0 0 auto;
    padding: 0;
  }
  .rail-foot > .caption {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .summary {
    padding: 0 20px;
  }
  .summary-stats {
    gap: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  main {
    padding: 24px 24px 0;
  }
  .stat {
    min-height: 114px;
  }
  .form-bottom {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .summary-stats {
    gap: 12px;
  }
  .summary-stats > span:nth-child(2) {
    display: none;
  }
  .rail {
    gap: 12px;
    padding: 12px 16px;
  }
  .brand {
    gap: 6px;
  }
  .version {
    display: none;
  }
  .rail-foot {
    font-size: 11px;
  }
  .connection {
    font-size: 11px;
  }
  .nav a {
    font-size: 12px;
  }
  .nav svg {
    display: none;
  }
  .filters {
    gap: 12px;
  }
  .search {
    margin-left: 0;
  }
  .search input {
    width: 220px;
  }
  .panel-heading > .caption {
    font-size: 10px;
  }
  .heat-footer {
    gap: 8px;
  }
}
@media (max-width: 599px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .rail {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .brand {
    margin-right: auto;
  }
  .rail-foot {
    order: 1;
    margin: 0;
  }
  .nav {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }
  .nav a {
    flex: 1;
    justify-content: center;
  }
  .nav svg {
    display: block;
  }
  .summary {
    padding: 0 16px;
    gap: 8px;
  }
  .summary-stats {
    gap: 12px;
    font-size: 11px;
  }
  .summary-stats > span:nth-child(4) {
    display: none;
  }
  main {
    padding: 24px 16px 0;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .panel {
    padding: 16px;
  }
  .report-panel {
    padding: 12px 8px 4px;
  }
  .panel-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
  .form-top {
    gap: 12px;
  }
  .dates {
    width: 100%;
  }
  .dates label {
    flex: 1;
  }
  input[type="date"] {
    width: 100%;
  }
  .formats {
    width: 100%;
  }
  .form-bottom .primary {
    width: 100%;
  }
  .quick {
    margin-left: 0;
  }
  .legend {
    gap: 8px;
  }
  .stat {
    min-height: 108px;
  }
  .filters {
    align-items: flex-start;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .job-card {
    padding: 16px;
  }
  .job-top {
    gap: 8px;
  }
  .job-title {
    max-width: 65%;
  }
  .connection-top {
    font-size: 10px;
  }
  .report-detail {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 599px) {
  .rail .nav a { font-size: 11px; gap: 4px; padding: 8px 4px; white-space: nowrap; }
  .rail .nav svg { width: 14px; height: 14px; flex-shrink: 0; }
}
@media (max-width: 379px) { .rail .nav svg { display: none; } }
.message.error {
  white-space: pre-line;
}

/* Shared download menu and page viewer; all dynamic dimensions are set in JS. */
select {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 34px;
  padding: 4px 12px;
}
select:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 3px;
}
.tone-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.file-cell .pill,
.download-button {
  display: inline-flex;
  font-size: 13px;
  min-height: 30px;
  padding: 4px 12px;
}
.file-cell .pill + .pill {
  margin: 0 0 0 6px;
}
.chevron {
  width: 7px;
  height: 7px;
  border-bottom: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  margin: 0 2px 0 8px;
}
.download-button[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.download-menu {
  position: fixed;
  z-index: 30;
  width: 248px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.download-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: none;
  font-size: 13px;
}
.download-item:hover,
.download-item:focus-visible {
  background: var(--raised);
}
.menu-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
}
.menu-status.error {
  color: var(--red);
}
.detail-actions,
.job-reports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.job-reports:empty {
  display: none;
}
body.viewer-open {
  overflow: hidden;
}
.viewer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.viewer-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.viewer-heading {
  min-width: 0;
  flex: 1 1 260px;
}
.viewer-heading h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.viewer-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.viewer-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.viewer-tools .mono {
  font-size: 12px;
  min-width: 42px;
  text-align: center;
}
#viewer-page {
  min-width: 80px;
}
.viewer-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--raised);
  padding: 16px;
  scrollbar-gutter: stable;
}
.viewer-pages {
  position: relative;
  display: grid;
  grid-template-columns: var(--page-w);
  gap: 16px;
  width: max-content;
  margin: 0 auto;
}
.viewer-pages[data-columns="2"] { grid-template-columns: repeat(2, var(--page-w)); }
.viewer-pages[data-columns="3"] { grid-template-columns: repeat(3, var(--page-w)); }
.viewer-pages[data-columns="4"] { grid-template-columns: repeat(4, var(--page-w)); }
.viewer-pages[data-columns="6"] { grid-template-columns: repeat(6, var(--page-w)); }
.viewer-sheet {
  width: var(--page-w);
  aspect-ratio: var(--page-ratio);
  margin: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.viewer-sheet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.viewer-sheet figcaption {
  display: none;
}
.viewer-mode-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  background: var(--raised);
  padding: 2px;
}
.viewer-mode-group .pill {
  background: transparent;
  border-color: transparent;
}
.viewer-mode-group [aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.control-icon {
  display: none;
}
#viewer-options {
  z-index: 25;
  max-height: min(60vh, 460px);
  overflow-y: auto;
}
#viewer-options [aria-checked="true"] {
  background: var(--raised);
  font-weight: 600;
}
.viewer-state {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}
.viewer-state.error {
  color: var(--red);
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.toast {
  position: fixed;
  z-index: 15;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  font-size: 13px;
}
#toast-close {
  border: 0;
  background: none;
  font-size: 20px;
}
.loading .stat-value,
.loading .stat p {
  color: transparent;
  background: var(--raised);
  border-radius: 4px;
  width: 65%;
  animation: skeleton 1.2s ease-in-out infinite alternate;
}
@keyframes skeleton {
  to { opacity: .45; }
}
@media (max-width: 1100px) {
  .viewer-tools {
    width: 100%;
  }
}
@media (max-width: 700px) {
  .report-panel th:nth-child(3),
  .report-panel th:nth-child(6),
  .report-row .period-cell,
  .report-row .generated {
    display: none;
  }
  .report-panel th,
  .report-panel td {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 600px) {
  .viewer-head {
    padding: 12px 16px;
    gap: 8px;
  }
  .viewer-heading {
    flex-basis: 220px;
  }
  .viewer-tools {
    gap: 6px;
  }
  .viewer-tools .pill {
    padding: 4px 10px;
  }
  .viewer-scroll {
    padding: 16px;
  }
  .viewer-tools .control-label {
    display: none;
  }
  .viewer-tools .control-icon {
    display: inline;
  }
  .viewer-heading h2 {
    font-size: 14px;
  }
  .toast {
    right: 16px;
    bottom: 16px;
  }
  .tone-filter {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner,
  .loading .stat-value,
  .loading .stat p {
    animation: none;
  }
}
/* Shared report actions: equal geometry regardless of table cell baseline. */
.file-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-actions .pill,
.detail-actions .pill,
.viewer-tools [data-download] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  vertical-align: middle;
}
.file-cell .pill + .pill {
  margin-left: 0;
}
.file-actions svg,
.detail-actions svg {
  display: block;
}
.board-overview-link {
  display: block;
  width: fit-content;
  margin: 12px 0 20px auto;
  color: var(--muted);
  font-size: 12px;
}
.board-overview-link:hover {
  color: var(--text);
}
.stats .stat {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.board-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 12px;
}
.board-toolbar .segmented {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: var(--raised);
}
.board-toolbar button {
  padding: 5px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
}
.board-toolbar button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.board-kpis,
.detail-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-tile,
.viz-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.kpi-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 154px;
  overflow: hidden;
}
.kpi-tile h3,
.viz-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.kpi-tile h3 {
  font-weight: 500;
  color: var(--muted);
}
.kpi-value {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.kpi-note,
.chart-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.kpi-tile > .mini-chart,
.kpi-tile > .day-dots,
.kpi-tile > .distribution-strip {
  margin-top: auto;
  padding-top: 12px;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.span-all {
  grid-column: 1 / -1;
}
.chart-wrap {
  min-width: 0;
}
.viz {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: none;
  stroke-width: 1;
  font-variant-numeric: tabular-nums;
}
.viz-card > .viz,
.viz-card > .chart-wrap,
.viz-card > .donut-layout {
  margin-top: 16px;
}
.span-all .trend-chart {
  width: 100%;
}
.mini-chart {
  max-height: 52px;
}
.gauge-chart {
  width: 130px;
  height: 64px;
  align-self: center;
  margin-top: 8px;
}
.axis-label {
  fill: var(--muted);
  stroke: none;
  font-size: 12px;
}
.chart-grid {
  stroke: var(--border-soft);
}
.c-total {
  --chart-color: var(--text);
}
.c-line-0 {
  --chart-color: var(--line-1);
}
.c-line-1 {
  --chart-color: var(--line-2);
}
.c-average {
  --chart-color: var(--muted);
}
.c-input {
  --chart-color: var(--line-1);
}
.c-neutral {
  --chart-color: var(--faint);
}
.c-bad-soft {
  --chart-color: color-mix(in srgb, var(--red) 45%, var(--surface));
}
.c-target {
  --chart-color: var(--muted);
}
.c-type-0 { --chart-color: var(--type-1); }
.c-type-1 { --chart-color: var(--type-2); }
.c-type-2 { --chart-color: var(--type-3); }
.c-type-3 { --chart-color: var(--type-4); }
.c-type-4 { --chart-color: var(--type-5); }
.c-good { --chart-color: var(--green); }
.c-warn { --chart-color: var(--amber); }
.c-bad { --chart-color: var(--red); }
.c-empty { --chart-color: var(--raised-hover); }
.chart-fill,
.heat-cell {
  fill: var(--chart-color);
}
.chart-fill.c-input {
  opacity: .5;
}
.chart-line {
  stroke: var(--chart-color);
  stroke-width: 1.6;
  fill: none;
}
.chart-line.c-total {
  stroke-width: 2.8;
}
.chart-line.c-average,
.chart-target {
  stroke-dasharray: 5 5;
}
.chart-target {
  stroke: var(--muted);
  stroke-width: 1;
}
.chart-cursor {
  stroke: var(--muted);
  stroke-dasharray: 3 3;
}
.chart-marker {
  fill: var(--text);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-hit {
  fill: transparent;
  cursor: crosshair;
}
.chart-hit:focus-visible,
.heat-cell:focus-visible,
.donut-segment:focus-visible {
  outline: none;
  stroke: var(--text);
  stroke-width: 2;
}
.chart-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.chart-key > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.key-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--chart-color);
}
.c-average.key-dot,
.c-target.key-dot {
  height: 2px;
  width: 12px;
}
.donut-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.donut-chart {
  width: 180px;
  max-width: 100%;
  flex-shrink: 0;
}
.donut-track,
.donut-segment {
  fill: none;
  stroke-width: 20;
}
.donut-track {
  stroke: var(--raised);
}
.donut-segment {
  stroke: var(--chart-color);
  stroke-linecap: butt;
  cursor: pointer;
  transition: opacity .12s;
}
.donut-segment.dimmed {
  opacity: .2;
}
.donut-value {
  fill: var(--text);
  font-size: 23px;
  font-weight: 600;
}
.donut-legend {
  flex: 1 1 220px;
  min-width: 0;
}
.legend-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 8px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 7px 4px;
  background: transparent;
  text-align: left;
  font-size: 11px;
}
.legend-item:hover,
.legend-item:focus-visible {
  background: var(--raised);
}
.legend-name {
  overflow-wrap: anywhere;
}
.legend-share {
  color: var(--muted);
  min-width: 48px;
  text-align: right;
}
.legend-note {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 10px;
}
.gauge-track,
.gauge-value {
  fill: none;
  stroke-width: 10;
}
.gauge-track {
  stroke: var(--raised-hover);
}
.gauge-value {
  stroke: var(--chart-color);
}
.gauge-target {
  stroke: var(--text);
  stroke-width: 2;
}
.day-dots {
  height: 28px;
  width: 100%;
}
.distribution-strip {
  display: flex;
  height: 22px;
  gap: 2px;
}
.distribution-strip span {
  background: var(--chart-color);
  min-width: 2px;
  border-radius: 2px;
}
.chart-tooltip {
  position: fixed;
  z-index: 40;
  max-width: min(320px, calc(100vw - 16px));
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .14);
  pointer-events: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.chart-tooltip span,
.chart-tooltip strong {
  display: block;
}
.chart-tooltip span {
  color: var(--muted);
  margin-top: 3px;
}
.board-empty,
.chart-empty {
  padding: 32px 16px;
  color: var(--muted);
  font-size: 13px;
}
.board-empty {
  border: 1px solid var(--border);
  border-radius: 12px;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.detail-actions {
  margin-top: 0;
  flex-shrink: 0;
}
.detail-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.detail-trend,
.detail-alerts {
  grid-column: span 2;
}
.detail-gallery {
  grid-column: 1 / -1;
}
.alert-list {
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.chart-tabs .pill {
  height: auto;
  white-space: normal;
  text-align: left;
}
.chart-tabs [aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.detail-gallery .chart-link {
  max-width: 1100px;
  margin: 0 auto;
}
.detail-gallery img {
  max-height: 600px;
  object-fit: contain;
}
.viz-card {
  container-type: inline-size;
}
.heat-number {
  display: none;
  fill: var(--text);
  pointer-events: none;
}
.bar-value {
  fill: var(--text);
}
.bar-warning {
  fill: var(--red);
}
.line-comparison {
  margin-top: 20px;
}
.comparison-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 12px;
}
.comparison-heading {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}
.comparison-row strong {
  display: block;
  font-weight: 500;
}
.comparison-name {
  color: var(--muted);
}
.comparison-track {
  height: 8px;
  margin: 8px 0 4px;
  border-radius: 3px;
  background: var(--raised);
}
.comparison-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--chart-color);
}
@container (min-width: 400px) {
  .heat-number {
    display: block;
  }
}
@media (max-width: 1399px) {
  .board-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .board-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-heading {
    flex-wrap: wrap;
  }
  .detail-alerts {
    grid-column: auto;
  }
}
@media (max-width: 899px) {
  body {
    background: var(--bg);
  }
  .rail {
    height: auto;
  }
  .board-kpis,
  .detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .board-kpis,
  .detail-kpis,
  .board-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-trend,
  .detail-gallery,
  .detail-alerts {
    grid-column: auto;
  }
  .viz-card {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .donut-segment {
    transition: none;
  }
}
[data-galchi-public] #version { display: none; }
