:root {
  color-scheme: light;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #11294b;
  background: #eff5fc;
  --navy: #0d2546;
  --blue: #175dc4;
  --muted: #49647f;
  --line: #d9e6f5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .65; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #548bed; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.top { color: #fff; background: var(--navy); }
.top-inner, .brand, .result-top { display: flex; align-items: center; }
.top-inner, .result-top { justify-content: space-between; gap: 12px; }
.top-inner { min-height: 74px; }
.brand { gap: 12px; text-decoration: none; font-size: 20px; font-weight: 750; }
.brand-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #213f66; color: #ffd280; font-size: 25px; }
.zone { font-size: 14px; color: #d7e7ff; }
.zone span { margin-right: 4px; }
.intro { padding: 50px 0 32px; }
.intro h1 { margin: 0; font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -.065em; line-height: 1.15; }
.intro p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.workspace { display: grid; grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.32fr); gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 13px 25px #214a7e0a; min-width: 0; }
h2, h3 { margin: 0; }
h2 { font-size: 21px; }
.composer form { margin-top: 18px; }
textarea, input { color: inherit; background: #f6f9ff; border: 1px solid #c8dbf3; border-radius: 12px; width: 100%; padding: 12px; }
textarea { display: block; resize: vertical; min-height: 112px; line-height: 1.6; }
textarea::placeholder, input::placeholder { color: #5b748f; }
.input-help { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 10px 0 16px; }
.primary { border: 0; border-radius: 12px; min-height: 46px; padding: 10px 17px; font-weight: 740; background: var(--blue); color: #fff; }
.primary:hover { background: #124da5; }
.examples { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; display: grid; gap: 9px; }
.examples h3 { font-size: 15px; margin-bottom: 3px; }
.examples button, .choice { text-align: left; color: #234973; background: #f4f8fe; border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; min-height: 44px; }
.examples button:hover, .choice:hover { background: #e7f1ff; }
.result { min-height: 356px; }
.quiet { color: #1457b0; border: 1px solid #c8dbf3; background: #fff; border-radius: 9px; min-height: 38px; padding: 5px 10px; flex-shrink: 0; }
.empty { min-height: 265px; display: grid; align-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-art { display: flex; align-items: end; gap: 8px; height: 82px; padding: 13px; border-radius: 18px; background: #edf5ff; }
.empty-art span { width: 12px; border-radius: 5px; background: #8db8f1; height: 29%; }
.empty-art span:nth-child(2) { height: 47%; }
.empty-art span:nth-child(3) { height: 85%; background: #377ddb; }
.empty-art span:nth-child(4) { height: 60%; }
.empty-art span:nth-child(5) { height: 38%; }
.message { font-size: 15px; line-height: 1.6; margin: 15px 0 0; color: var(--muted); }
.message.error { color: #942d2d; }
.query { margin: 15px 0 0; padding: 9px 12px; background: #edf5ff; border-radius: 10px; overflow-wrap: anywhere; font-size: 15px; }
.place { margin: 20px 0 9px; font-size: 24px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { background: #eaf2ff; color: #234e81; padding: 5px 9px; border-radius: 8px; font-size: 14px; }
.choices { display: grid; gap: 8px; margin-top: 15px; }
.window { display: grid; gap: 5px; margin: 8px 0; padding: 11px 12px; border-left: 4px solid #278366; border-radius: 10px; background: #ebf8f1; color: #175541; font-size: 15px; }
.window span { font-size: 14px; }
.timeline-title { font-size: 16px; margin: 20px 0 8px; }
.timeline { display: grid; max-height: 365px; overflow: auto; overscroll-behavior: contain; }
.time-row { display: grid; grid-template-columns: minmax(110px, 1.35fr) minmax(68px, .8fr) minmax(42px, .55fr) minmax(64px, .8fr); align-items: center; gap: 8px; min-height: 43px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.time-row strong { white-space: nowrap; }
.time-row .prob { text-align: right; }
.time-row .prob::after { content: ""; display: block; margin-top: 3px; margin-left: auto; width: max(3px, var(--prob)); height: 4px; border-radius: 4px; background: #6198e8; }
.time-row .prob.missing::after { display: none; }
.time-row .date { display: block; font-weight: 400; color: var(--muted); }
.row-note { font-size: 14px; line-height: 1.55; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; padding: 23px 0 max(30px, env(safe-area-inset-bottom)); }
dialog { width: min(480px, calc(100% - 32px)); max-height: 90dvh; border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: inherit; }
dialog::backdrop { background: #10274580; }
dialog label { display: grid; gap: 5px; margin-top: 12px; font-size: 14px; min-width: 0; }
dialog input { min-height: 44px; min-width: 0; font-size: 16px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 740px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { min-height: 60px; }
  .intro { padding: 26px 0 21px; }
  .intro p { margin-top: 9px; font-size: 16px; line-height: 1.5; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .panel { border-radius: 17px; padding: 16px; }
  .examples { margin-top: 16px; padding-top: 12px; }
  .result { min-height: 230px; }
  .empty { min-height: 174px; }
  .time-row { grid-template-columns: minmax(90px, 1.4fr) minmax(46px, .8fr) minmax(37px, .65fr) minmax(47px, .85fr); gap: 5px; }
}
@media (min-width: 741px) { .composer { position: sticky; top: 18px; } }
