/*
 * 知时鉴 UI — restrained eastern mysticism for a data-heavy charting tool.
 * This file intentionally overrides the legacy theme without changing any
 * calculation, template data, or interaction logic.
 */
:root {
  --ink: #171b19;
  --ink-2: #222825;
  --ink-3: #303833;
  --muted: #737a75;
  --canvas: #f2efe7;
  --paper: #fbfaf6;
  --card: #fffefa;
  --line: rgba(38, 45, 41, .12);
  --line-strong: rgba(38, 45, 41, .2);
  --gold: #a7813e;
  --gold-bright: #c7a55d;
  --gold-pale: #f4ecda;
  --cinnabar: #a84738;
  --jade: #4f7564;
  --night: #0d1210;
  --night-soft: #171d1a;
  --fire: #b94b3e;
  --water: #3c6681;
  --wood: #4c7355;
  --earth: #98713a;
  --metal: #656b68;
  --shadow-sm: 0 1px 1px rgba(24, 28, 26, .04), 0 8px 24px rgba(24, 28, 26, .05);
  --shadow-lg: 0 2px 4px rgba(24, 28, 26, .04), 0 24px 70px rgba(24, 28, 26, .11);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { scrollbar-color: rgba(167,129,62,.38) transparent; }
html { background: var(--canvas); }
body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 7%, rgba(167,129,62,.08), transparent 22rem),
    radial-gradient(circle at 90% 20%, rgba(68,102,83,.055), transparent 28rem),
    repeating-linear-gradient(0deg, rgba(53,47,36,.012) 0, rgba(53,47,36,.012) 1px, transparent 1px, transparent 5px),
    var(--canvas);
  font-family: var(--sans);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font-family: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  height: 76px;
  padding: 0 clamp(22px, 5vw, 72px);
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(var(--night-soft), var(--night));
  box-shadow: 0 1px 0 rgba(13,18,16,.6);
}
.site-header::after {
  content: "";
  position: absolute;
  right: clamp(170px, 22vw, 360px);
  width: 150px;
  height: 150px;
  border: 1px solid rgba(199,165,93,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(199,165,93,.035), 0 0 0 45px rgba(199,165,93,.02);
  pointer-events: none;
}
.brand { gap: 12px; color: #f2ead9; font-family: var(--serif); }
.brand .brand-seal {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(199,165,93,.78);
  border-radius: 50%;
  color: var(--gold-bright);
  background: transparent;
  font: 500 21px/1 var(--serif);
  box-shadow: inset 0 0 0 4px rgba(199,165,93,.055);
}
.brand .brand-seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(199,165,93,.2);
  border-radius: 50%;
}
.brand .brand-words {
  display: flex;
  width: auto;
  height: auto;
  align-items: baseline;
  gap: 9px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: none;
  font: inherit;
}
.brand-words strong { font-size: 20px; font-weight: 600; letter-spacing: .1em; }
.brand-words small { color: rgba(242,234,217,.55); font: 11px var(--sans); letter-spacing: .16em; }
.header-note { display: flex; align-items: center; gap: 9px; color: rgba(242,234,217,.56); font-size: 11px; letter-spacing: .12em; }
.header-note i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(199,165,93,.1); }

/* Landing composition */
.page-shell { width: min(100% - 40px, 1240px); padding: 64px 0 92px; }
.stage {
  position: relative;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: clamp(48px, 7vw, 104px);
  min-height: 650px;
}
.stage::before {
  content: "";
  position: absolute;
  left: -220px;
  top: 52%;
  width: 620px;
  height: 620px;
  transform: translateY(-50%);
  border: 1px solid rgba(167,129,62,.11);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(167,129,62,.08) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(167,129,62,.08) 50%, transparent 50.1%),
    radial-gradient(circle, transparent 32%, rgba(167,129,62,.06) 32.2%, transparent 32.5%, transparent 48%, rgba(167,129,62,.06) 48.2%, transparent 48.5%);
  pointer-events: none;
}
.stage-copy { position: relative; z-index: 1; padding: 18px 0 18px 20px; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.stage-copy .eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; margin: 0 10px 3px 0; background: var(--gold); }
.stage-copy h1 {
  margin-top: 22px;
  color: var(--ink);
  font: 500 clamp(50px, 6vw, 80px)/1.15 var(--serif);
  letter-spacing: .045em;
  text-wrap: balance;
}
.stage-copy h1 em { color: var(--gold); text-shadow: 0 10px 30px rgba(167,129,62,.09); }
.stage-copy > p:not(.eyebrow) { max-width: 390px; color: #6f756f; font-size: 14px; line-height: 2; }
.stage-stamp { gap: 9px; margin-top: 38px; }
.stage-stamp span {
  width: 40px;
  height: 40px;
  border-color: rgba(167,129,62,.28);
  color: #8d6e35;
  background: rgba(255,254,250,.6);
  font-size: 17px;
  box-shadow: inset 0 0 0 3px rgba(167,129,62,.035);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 24px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; color: #7b807c; font-size: 11px; }
.trust-row span::before { content: "✓"; display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid rgba(79,117,100,.36); border-radius: 50%; color: var(--jade); font-size: 8px; }

/* Calculator */
.calculator-card, .result-card {
  border: 1px solid rgba(45,52,48,.11);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,254,250,.96), rgba(255,254,250,.96)),
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(65,58,44,.04) 6px 7px);
  box-shadow: var(--shadow-lg);
}
.calculator-card { position: relative; overflow: hidden; padding: 26px 42px 38px; }
.calculator-card::before {
  content: "乾 · 坤";
  position: absolute;
  top: 17px;
  right: 24px;
  color: rgba(167,129,62,.13);
  font: 18px var(--serif);
  letter-spacing: .25em;
  pointer-events: none;
}
.tabs { gap: 30px; margin-bottom: 30px; border-color: var(--line); }
.tab { min-height: 43px; padding: 0 2px 12px; color: #858a86; font-size: 13px; letter-spacing: .06em; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: #8c692e; border-color: var(--gold); font-weight: 600; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.panel-heading h2 { margin-bottom: 8px; color: var(--ink); font: 600 20px var(--serif); letter-spacing: .04em; }
.panel-heading p { color: #939893; }
.time-badge { flex: none; border: 1px solid rgba(167,129,62,.24); border-radius: 99px; padding: 6px 9px; color: #8d6b32; background: rgba(244,236,218,.45); font-size: 10px; letter-spacing: .05em; }
label { color: #4e5551; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
input, select {
  height: 43px;
  border-color: rgba(38,45,41,.14);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:hover, select:hover { border-color: rgba(167,129,62,.38); }
input:focus, select:focus { border-color: var(--gold); outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(167,129,62,.11); }
.switch-row, .options { gap: 10px 18px; }
.choice { min-height: 28px; color: #565d58; }
.choice input { accent-color: var(--gold); }
.options { padding-top: 12px; border-top: 0; }
.calendar-status { color: #989d99; }
.submit {
  position: relative;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid rgba(199,165,93,.2);
  border-radius: 9px;
  color: #f2e6c8;
  background:
    linear-gradient(115deg, rgba(199,165,93,.06), transparent 35%),
    var(--night-soft);
  box-shadow: 0 10px 24px rgba(13,18,16,.12), inset 0 1px rgba(255,255,255,.05);
  font-size: 14px;
  letter-spacing: .14em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.submit::before, .submit::after { content: "◇"; margin: 0 12px; color: var(--gold-bright); font-size: 10px; }
.submit:hover { color: #fff1cb; background: #263029; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(13,18,16,.17); }
.submit:active { transform: translateY(0); }
.notice { display: flex; align-items: center; justify-content: center; gap: 9px; color: #858b86; font-size: 11px; }
.notice::before { content: "○"; color: var(--gold); }

/* Result workspace */
.has-chart {
  background:
    linear-gradient(90deg, rgba(167,129,62,.025) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--canvas);
}
.has-chart .page-shell { width: min(100% - 36px, 1480px); padding: 26px 0 68px; }
.result-workspace { grid-template-columns: 154px minmax(0,1fr); gap: 16px; }
.side-brand, .result-sidebar nav, .side-settings { border: 1px solid var(--line); border-radius: 10px; background: rgba(255,254,250,.78); box-shadow: var(--shadow-sm); }
.side-brand { position: relative; padding: 28px 10px; color: #896a34; font: 600 17px/1.55 var(--serif); letter-spacing: .12em; }
.side-brand::before { content: "鉴"; display: grid; width: 32px; height: 32px; margin: 0 auto 9px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 14px; }
.result-sidebar { position: sticky; top: 20px; align-self: start; }
.result-sidebar nav a { padding: 18px 8px; border-color: var(--line); color: #7d837f; font-size: 12px; }
.result-sidebar nav a:hover { color: var(--ink); background: rgba(244,236,218,.45); }
.result-sidebar nav .is-active { position: relative; color: #86662f; background: var(--gold-pale); }
.result-sidebar nav .is-active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--gold); }
.side-settings { color: #7f8581; font-size: 12px; }
.case-banner {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  padding: 20px 28px;
  border: 1px solid rgba(199,165,93,.15);
  border-radius: 12px 12px 0 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(199,165,93,.12), transparent 20rem),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(125deg, #111714, #222820);
}
.case-banner::after {
  content: "";
  position: absolute;
  right: 13%;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(199,165,93,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(199,165,93,.025), 0 0 0 42px rgba(199,165,93,.018);
}
.case-seal { position: relative; z-index: 1; width: 48px; height: 48px; color: #dabd7c; border-color: #a9894c; box-shadow: inset 0 0 0 4px rgba(199,165,93,.06); }
.case-banner > div, .case-banner > a { position: relative; z-index: 1; }
.case-banner h1 { color: #d8b872; font: 600 23px var(--serif); letter-spacing: .06em; }
.case-banner p { color: rgba(239,235,224,.72); line-height: 1.7; }
.case-banner > a { border-color: rgba(199,165,93,.58); color: #d3b46d; transition: background .18s ease; }
.case-banner > a:hover { background: rgba(199,165,93,.1); }
.has-chart .result-card { border-color: var(--line); background: var(--paper); }
.has-chart .result-layout { gap: 14px; padding: 16px; background: #f7f5ef; }

/* Data panels */
.chart-panel, .reading-panel, .four-pillars-graph, .source-library,
.metric-card, .fortune-card, .detail-library, .insight-board {
  border-color: var(--line);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.chart-panel, .reading-panel, .four-pillars-graph, .source-library { border-radius: 9px; }
.chart-title, .reading-title, .four-pillars-graph > header, .source-library > header {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(250,247,239,.46));
}
.chart-title span, .reading-title strong { color: #252b27; font-family: var(--serif); letter-spacing: .05em; }
.row-labels { background: #f5f2ea; color: #969994; }
.row-labels span, .pillar-column > span, .gan, .zhi { border-color: rgba(38,45,41,.075); }
.pillar-name { color: #8c908c; font-weight: 600; }
.gan, .zhi { display: flex; align-items: center; justify-content: center; gap: 4px; font: 500 32px var(--serif); text-shadow: 0 5px 16px currentColor; }
.gan > span, .zhi > span { line-height: 1; }
.wuxing-icon { width: 17px; height: 17px; flex: 0 0 17px; overflow: visible; filter: drop-shadow(0 2px 3px rgba(28,30,27,.12)); }
.wuxing-icon-fire { width: 16px; height: 16px; flex-basis: 16px; }
.wuxing-icon-water { width: 18px; height: 18px; flex-basis: 18px; }
.hidden-stems i { font-weight: 500; }
.nayin { color: #876a36; background: rgba(244,236,218,.22); }
.chart-footnote { color: #656c67; background: #fbfaf6; border-top: 1px solid var(--line); }
.chart-footnote span::first-letter { color: var(--gold); }
.reading-tabs, .source-tabs, .graph-tabs { border-color: var(--line); }
.reading-tabs button, .source-tabs button, .graph-tabs button {
  min-height: 43px;
  border-color: var(--line);
  color: #747a75;
  background: #fffefa;
  transition: color .18s ease, background .18s ease;
}
.reading-tabs button:hover, .source-tabs button:hover, .graph-tabs button:hover { color: var(--ink); background: #f8f5ed; }
.reading-tabs .is-active, .source-tabs button.is-active, .graph-tabs button.is-active {
  color: #87672f;
  background: var(--gold-pale);
  box-shadow: inset 0 -2px var(--gold);
  font-weight: 600;
}
.reading-copy { color: #5e6560; }
.book-reading-heading { border-color: var(--line); }
.book-reading-heading > span { background: var(--gold); }
.book-reading-lines p { border-color: #cdb77d; background: #f8f5ed; }
.book-empty > span { color: var(--gold); background: var(--gold-pale); }

/* Relationship graph: measured, technical, slightly celestial */
.four-pillars-graph, .source-library { margin: 15px 16px 0; }
.four-pillars-graph > header, .source-library > header { padding: 18px 22px; }
.four-pillars-graph h3, .source-library h3 { color: #262c28; font: 600 18px var(--serif); letter-spacing: .04em; }
.graph-canvas {
  background:
    radial-gradient(circle at center, rgba(167,129,62,.055), transparent 16rem),
    linear-gradient(rgba(38,45,41,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,45,41,.028) 1px, transparent 1px),
    #fffefa;
  background-size: auto, 28px 28px, 28px 28px, auto;
}
.graph-edge i { border-color: rgba(38,45,41,.26); color: #454b47; background: #fffefa; }
.edge-line { background: rgba(38,45,41,.24); }
.graph-edge b { color: var(--gold); background: #fffefa; }
.graph-pillars b, .graph-pillars strong,
.flow-pillar b, .flow-pillar strong,
.palace-pillars b, .palace-pillars strong,
.family-columns b, .family-columns strong { font-family: var(--serif); }
.graph-panel > footer { color: #8c918d; background: #f7f4ec; border-color: var(--line); }
.flow-legend i.pass { background: var(--jade); }
.flow-legend i.stop { background: var(--cinnabar); }
.palace-matrix { border-color: var(--line); background: rgba(255,254,250,.96); }
.palace-matrix section { border-color: var(--line); }
.palace-matrix h4 i { color: var(--gold); }
.family-relations > section { border-color: var(--line); }

/* Source library */
.source-deck { background: #fffefa; }
.source-deck .source-card { position: relative; padding: 26px; }
.source-deck .source-card::after { content: "原文"; position: absolute; right: 22px; bottom: 12px; color: rgba(167,129,62,.075); font: 48px var(--serif); letter-spacing: .12em; pointer-events: none; }
.source-icon { border-color: rgba(167,129,62,.24); color: var(--gold); background: var(--gold-pale); }
.source-meta > header h4 { font-family: var(--serif); letter-spacing: .04em; }
.source-meta > header em { color: #87672f; background: var(--gold-pale); }
.source-deck .detail-lines p { position: relative; z-index: 1; border-color: #cdb77d; color: #59605b; background: #f8f6ef; }

/* Full chart */
.complete-chart { border-color: var(--line); padding: 40px 32px 46px; background: #f5f2ea; }
.complete-heading { padding: 0 2px 3px; }
.complete-heading h2 { color: #212722; font: 600 25px var(--serif); letter-spacing: .045em; }
.complete-heading > p:last-child { color: #818782; }
.metrics-grid { gap: 15px; }
.metric-card { border-radius: 9px; padding: 19px; box-shadow: var(--shadow-sm); }
.metric-card h3, .fortune-card h3, .detail-library h3 { color: #262c28; font-family: var(--serif); letter-spacing: .03em; }
.seasonal-states span { border-color: var(--line); background: #f8f6f0; }
.local-metric-title { border-color: var(--line); }
.element-bars i { background: #ebe8df; }
.organ-grid span { border: 1px solid rgba(38,45,41,.07); color: #656c67; background: #f7f5ef; }
.organ-grid b { color: var(--gold); }
.relationship-card p { border-color: var(--line); }
.relationship-card b { color: var(--gold); }
.fortune-card { border-radius: 9px; box-shadow: var(--shadow-sm); }
.fortune-card header { border-color: var(--line); background: #fbfaf6; }
.fortune-list article { border-color: var(--line); background: #fffefa; transition: background .18s ease; }
.fortune-list article:hover { background: #f8f4e9; }
.fortune-list article b { color: var(--gold); }
.fortune-list article strong { color: #242a26; font-family: var(--serif); }
.fortune-timing { color: #806329; }
.insight-board { border-color: rgba(167,129,62,.28); border-radius: 9px; background: #fffefa; box-shadow: var(--shadow-sm); }
.insight-heading { border-color: rgba(167,129,62,.2); background: linear-gradient(100deg,#faf5e8,#fffefa); }
.insight-heading h3 { font-family: var(--serif); }
.signal-strip { background: #f5edde; }
.signal-strip b { border-color: rgba(167,129,62,.3); color: #785b28; background: #fffefa; }
.insight-grid { background: rgba(167,129,62,.16); }
.insight-grid article { background: #fffefa; }
.insight-icon { color: #86662e; background: var(--gold-pale); }
.insight-note { color: #858a86; background: #faf8f2; }

/* Auxiliary views */
.aux-result { background: #f5f2ea; }
.zodiac-hero, .flying-hero {
  border: 1px solid rgba(199,165,93,.17);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 0, rgba(199,165,93,.13), transparent 18rem),
    linear-gradient(120deg,#101613,#252b23);
}
.relation-group, .star-legend, .palace-board, .month-flight, .pressure-board, .daily-board { border-color: var(--line); border-radius: 9px; background: #fffefa; box-shadow: var(--shadow-sm); }
.relation-group > header, .star-legend > header, .palace-board > header, .month-flight > header, .pressure-board > header, .daily-board > header { border-color: var(--line); background: #fbfaf6; }
.zodiac-balance { border-color: rgba(167,129,62,.24); border-radius: 9px; background: #faf5e8; }
.palace-nine-grid, .day-card-grid { background: #e8e4da; }
.palace-nine-grid article, .day-card { border-color: var(--line); background: #fffefa; }
.palace-nine-grid article.center { background: var(--gold-pale); }

/* Motion is used only to clarify page entry. */
@keyframes xuanchart-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.stage-copy, .calculator-card, .case-banner, .result-card { animation: xuanchart-rise .46s ease-out both; }
.calculator-card { animation-delay: .07s; }

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

@media (max-width: 1000px) {
  .stage { grid-template-columns: 1fr; gap: 42px; }
  .stage::before { left: auto; right: -300px; top: 20%; }
  .stage-copy { max-width: 680px; padding-left: 8px; }
  .calculator-card { max-width: 700px; width: 100%; margin: 0 auto; }
  .result-workspace { grid-template-columns: 1fr; }
  .result-sidebar { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .relationship-card { grid-column: span 2; }
}

@media (max-width: 720px) {
  .site-header { height: 68px; padding: 0 18px; }
  .site-header::after { display: none; }
  .brand .brand-seal { width: 38px; height: 38px; }
  .brand-words strong { font-size: 18px; }
  .brand-words small { display: none; }
  .header-note { font-size: 10px; }
  .page-shell { width: min(100% - 22px,1240px); padding-top: 38px; }
  .stage { min-height: auto; gap: 32px; }
  .stage::before { width: 420px; height: 420px; right: -270px; }
  .stage-copy h1 { margin-top: 14px; font-size: clamp(44px,13vw,58px); }
  .stage-copy > p:not(.eyebrow) { line-height: 1.8; }
  .calculator-card { padding: 24px 20px 30px; border-radius: 14px; }
  .calculator-card::before { display: none; }
  .tabs { gap: 22px; overflow-x: auto; }
  .time-badge { display: none; }
  .has-chart .page-shell { width: min(100% - 16px,1480px); padding-top: 12px; }
  .case-banner { min-height: 104px; padding: 17px; }
  .case-banner::after { display: none; }
  .case-seal { width: 42px; height: 42px; }
  .case-banner h1 { font-size: 20px; }
  .case-banner > a { padding: 7px 13px; }
  .has-chart .result-layout { padding: 9px; }
  .four-pillars-graph, .source-library { margin: 12px 9px 0; }
  .complete-chart { padding: 28px 12px 34px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .relationship-card { grid-column: auto; }
}

@media (max-width: 480px) {
  .header-note { display: none; }
  .eyebrow { letter-spacing: .15em; }
  .stage-copy .eyebrow::before { width: 16px; margin-right: 7px; }
  .stage-copy h1 { letter-spacing: .02em; }
  .trust-row { gap: 8px 12px; }
  .stage-stamp span { width: 36px; height: 36px; }
  .panel-heading { align-items: start; }
  .date-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calendar-status { margin-left: 0; }
  .case-banner { gap: 10px; }
  .case-banner p { font-size: 10px; }
  .case-banner > a { font-size: 11px; }
  .complete-heading h2 { font-size: 22px; }
}
