:root {
  --ink:#182b44;
  --muted:#50647a;
  --edge:#d8e1e9;
  --teal:#007569;
  --purple:#6553b7;
  --past:#8594a7;
  --today:#c54921;
  --label:clamp(330px,34vw,460px);
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;background:#f5f8fb;color:var(--ink);font:1rem/1.5 system-ui,sans-serif}
.wrap {width:min(1320px,93%);margin:auto}
.flex,.controls,.filters,nav,#legend {display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.flex {justify-content:space-between}
header {background:#142d47;color:white;padding:15px 0}
header strong {display:flex;align-items:center;gap:12px;font-size:1.08rem}
header .muted {color:#d5e3ee;font-size:.94rem}
.mark {display:inline-block;width:32px;height:27px;background:linear-gradient(#73e1c7 0 0) left top/65% 5px,linear-gradient(#fff 0 0) right center/68% 5px,linear-gradient(#73e1c7 0 0) left bottom/46% 5px;background-repeat:no-repeat}
.intro {padding:32px 0 22px}
.eyebrow {color:var(--teal);font-size:.78rem;letter-spacing:.13em;font-weight:750}
h1 {font-size:clamp(1.95rem,4vw,2.85rem);letter-spacing:-.045em;margin:4px 0 8px;line-height:1.15}
h2 {font-size:1.24rem;letter-spacing:-.02em;margin:0}
#summary,footer,#legend,.shortcuts {color:var(--muted);font-size:.9rem}
button,input,select,.action {color:inherit;font:inherit;font-size:.94rem;line-height:1.4;border:1px solid #c9d5df;background:white;border-radius:8px;padding:10px 14px;max-width:100%}
button,select {cursor:pointer}
button:hover,.action:hover {background:#e7f5f2;border-color:#5a9d94;color:#075c55}
button:disabled {opacity:.55;cursor:default}
:focus-visible {outline:3px solid #287bc4;outline-offset:1px}
.primary,.action {background:var(--teal);border-color:var(--teal);color:white;font-weight:650;text-decoration:none}
nav {border-bottom:1px solid #cdd8e2;gap:24px}
nav button {background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:11px 4px;font-size:1rem;font-weight:620;color:var(--muted)}
nav button[aria-pressed=true] {border-color:var(--teal);color:var(--teal)}
.filters {margin:20px 0 12px}
input {flex:1;min-width:220px}
select {appearance:none;padding-right:35px;background:white linear-gradient(45deg,transparent 50%,#536880 50%) right 17px center/5px 5px no-repeat;background-image:linear-gradient(45deg,transparent 50%,#536880 50%),linear-gradient(135deg,#536880 50%,transparent 50%);background-position:right 17px center,right 12px center}
.shortcuts {gap:7px;margin-bottom:26px}
.shortcuts button {padding:4px 11px;border-radius:20px;font-size:.875rem;color:#28506e}
#period {margin-top:24px}
#prev,#next {font-size:1.4rem;padding:4px 13px;line-height:1.2}
#legend {margin:14px 0;gap:16px}
i {display:inline-block;width:17px;height:10px;background:var(--teal);border-radius:3px}
i.future,.bar .future {background:var(--purple)}
i.past,.bar .past {background:var(--past)}
i.unknown,.bar .unknown {background:#ac7024}
.today {color:var(--today)}
.scroll,.cards {background:white;border:1px solid var(--edge);border-radius:13px;box-shadow:0 3px 14px #183e6010}
.scroll {max-height:73vh;overflow:auto;scrollbar-gutter:stable}
.line {display:grid;grid-template-columns:var(--label) minmax(0,1fr);border-bottom:1px solid #e2e9ef}
.line:last-child,.card:last-child {border-bottom:0}
.head {position:sticky;top:0;z-index:3;background:#eaf0f6;color:#344a62;font-size:.89rem;font-weight:700}
.head>span {padding:13px 18px}
.track {position:relative;overflow:hidden}
.month {position:absolute;inset-block:0;text-align:center;padding:13px 0;border-left:1px solid #dee6ee}
.line:not(.head) .month:nth-child(even) {background:#f7f9fc}
.marker {position:absolute;inset-block:0;width:2px;background:#d95c35;z-index:1;pointer-events:none}
.item,.card {display:flex;align-items:center;gap:6px;padding:11px 14px;min-width:0}
.line:not(.head):hover,.card:hover {background:#f2faf8}
.star,.title,.bar {border:0;background:transparent;text-align:left}
.star {font-size:1.55rem;padding:6px;color:#63778b;align-self:flex-start}
.star.on {color:#9d6300}
.title {flex:1;font-size:1rem;font-weight:660;padding:3px 6px;overflow-wrap:anywhere}
.title small {display:block;color:var(--muted);font-weight:400;font-size:.875rem;margin-top:4px}
.title small:last-child {font-weight:550;color:#264361}
.bar {position:absolute;inset:0;width:100%;height:100%;padding:0;border-radius:0}
.bar:focus-visible {outline-offset:-3px}
.bar span {position:absolute;top:calc(50% - 9px);height:18px;min-width:3px;border-radius:5px;background:var(--teal)}
.bar .point {transform:translateX(-50%) rotate(45deg);width:15px;height:15px;top:calc(50% - 7px);border-radius:3px}
.card {border-bottom:1px solid #e2e9ef;padding:14px 20px}
.badge {display:inline-block;font-size:.875rem;font-weight:600;border-radius:6px;padding:4px 10px;background:#eaf0f5}
.badge.open,.badge.rolling {background:#d8f3eb;color:#006253}
.badge.future {background:#eeeaff;color:#5242a1}
.badge.unknown {background:#fff1d9;color:#815112}
.sub {margin:24px 0 13px}
footer {margin:36px 0;max-width:900px}
a {color:#075f88}
dialog {width:min(610px,94%);max-height:88dvh;border:none;border-radius:18px;padding:28px;color:inherit;overflow-wrap:anywhere}
dialog::backdrop {background:#10243b88}
dialog form {float:right}
dialog form button {font-size:1.3rem;padding:4px 12px}
dialog h2 {margin:19px 0 8px;font-size:1.55rem}
dialog h3 {font-size:1rem;margin:20px 0 5px}
dialog p {margin:4px 0;white-space:pre-line}
dialog .controls {margin-top:22px}
@media(max-width:850px) {
  :root {--label:290px}
  .filters input {flex-basis:100%}
  .head .month {font-size:.77rem}
}
@media(max-width:720px) {
  .wrap {width:94%}
  .intro {padding:20px 0 12px}
  header .flex {gap:5px}
  header .muted {font-size:.85rem}
  nav {gap:0;justify-content:space-between}
  nav button {padding:10px 2px;font-size:.875rem}
  .filters,.controls,#legend {gap:7px}
  .filters select {flex:1;min-width:145px;width:0}
  .filters #clear {padding:7px}
  .line {display:block}
  .head>span {display:none}
  .track {height:42px}
  .head .track {height:52px}
  .head .month {padding:8px 0;line-height:1.4;white-space:pre-line}
  .item,.card {padding:10px 6px;gap:1px}
  .card {flex-wrap:wrap}
  .card .title {min-width:72%}
  .card .badge {margin:5px 0 3px 42px}
  #range {font-size:1rem}
  .scroll {max-height:74dvh}
  dialog {padding:20px}
}
.guide {margin:0;color:var(--muted)}
details {margin:12px 0 20px}
summary {cursor:pointer;color:#235579;font-weight:600;padding:8px 0}
details[open] summary {margin-bottom:6px}
@media(max-width:1100px) {
  .filters input {flex-basis:100%}
}
