/* Shared navigation, fonts and site controls load before this page stylesheet. */
:root {
  --page: #191a1d;
  --panel: #222327;
  --edge: #ffffff0d;
  --ink: #f2f1ee;
  --sidebar: 256px;
  --week: 224px;
  --calendar-height: 76px;
  --roadmap-card-height: 124px;
  --cyan: #95ded6;
  --violet: #c6b1ee;
  --peach: #edb49b;
  --green: #bdd89f;
  --rose: #dfafbf;
}
body.roadmap-page {
  margin: 0;
  min-width: 0;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.5 Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #8ae6ee;
  outline-offset: 4px;
}
button:disabled { opacity: .28; cursor: default; }
[hidden] { display: none !important; }
button, a { transition: background .16s, color .16s, border-color .16s, transform .16s; }
::selection { background: #a2dcd037; color: white; }
.roadmap-page .navigation { position: fixed; inset: var(--summit-height) 0 auto; z-index: 30; }
@media (min-width: 768px) {
  .roadmap-page .navigation::before { inset: 0; }
}
.roadmap-main { position: fixed; inset: calc(64px + var(--summit-height)) 0 0; display: flex; min-height: 0; }
.roadmap-shell {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--panel);
}
.roadmap-shell::after {
  content: '';
  position: absolute;
  z-index: 21;
  top: calc(var(--calendar-height) - 1px);
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff14;
  pointer-events: none;
}
.roadmap-controls {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: var(--sidebar);
  height: var(--calendar-height);
  border-right: 1px solid var(--edge);
  background: var(--panel);
}
.scale-switch {
  display: flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ffffff0b;
  border-radius: 8px;
  background: #ffffff02;
}
.scale-switch button {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 4px;
  color: #969aa5;
  font-size: 12px;
}
.scale-switch button { padding: 0 10px; }
.scale-switch button.is-active {
  color: var(--ink);
  background: #ffffff0c;
  box-shadow: none;
}
.scale-switch button:hover { color: var(--ink); }
.status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #9799a1; }
.status-dot.shipped { background: #a8c9a2; }
.status-dot.building { background: #e0b77e; }
.status-dot.planned { background: #bca4e1; }
.status-dot.tentative { background: #a1a2ac; }
/* The content is the page's only scrolling surface, flush with its edges. */
.timeline-region { display: flex; flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.track-sidebar { position: sticky; left: 0; z-index: 5; grid-column: 1; grid-row: 1 / -1; width: var(--sidebar); background: var(--panel); }
.track-sidebar .track-label { border-bottom: 1px solid #ffffff0b; }
.track-sidebar .track-label:last-child { border-bottom: 0; }
.timeline-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #555861 #191a1d;
}
.timeline-scroll { overscroll-behavior: none; scroll-padding-left: var(--sidebar); }
@media (min-width:768px) and (hover:hover) and (pointer:fine) {
  .timeline-scroll, .calendar { cursor: grab; user-select: none; }
}
.roadmap-shell.is-dragging, .roadmap-shell.is-dragging * { cursor: grabbing !important; user-select: none; }
.timeline-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.timeline-scroll::-webkit-scrollbar-track { background: var(--page); }
.timeline-scroll::-webkit-scrollbar-thumb { border: 2px solid var(--page); border-radius: 8px; background: #555861; }
.timeline-board { position: relative; isolation: isolate; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); align-content: start; min-height: 100%; background: #1c1d21; }
.calendar-header { flex: none; height: var(--calendar-height); overflow: hidden; }
.date-header { display: flex; height: 100%; background: var(--panel); }
.corner {
  position: sticky;
  left: 0;
  z-index: 10;
  display: flex;
  flex: none;
  align-items: flex-end;
  width: var(--sidebar);
  padding: 0 28px 19px;
  border-right: 1px solid var(--edge);
  background: var(--panel);
  color: #9599a3;
  font-size: 10px;
  letter-spacing: 1.4px;
}
.calendar { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.calendar-content { position: relative; height: 100%; will-change: transform; }
.month-row { position: relative; height: 28px; border-bottom: 1px solid #ffffff08; }
.month-label { position: absolute; top: 6px; font-size: 12px; color: #a0a1a9; }
.weeks-row { display: flex; height: calc(var(--calendar-height) - 28px); }
.week-cell { position: relative; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 0 16px; border-right: 1px solid #ffffff0a; }
.week-number { font-size: 10px; letter-spacing: .7px; color: #898d98; }
.week-date { font-size: 16px; letter-spacing: -.3px; color: #d0d1d7; white-space: nowrap; }
.week-date > span { margin-left: 4px; font-size: 12px; color: #999da7; }
.week-cell.is-current { background: #adcfbf06; }
.week-cell.is-current .week-date { color: #c3e9d4; }
.week-cell.is-current::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 2px; background: #9bcebb80; }
.date-today { position: absolute; top: 3px; z-index: 2; transform: translateX(-50%); padding: 1px 8px; border: 1px solid #637e6a; border-radius: 5px; background: #354b40; color: #d4eee0; font-size: 10px; white-space: nowrap; }
.today-edge { position: absolute; top: 3px; z-index: 3; display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border: 1px solid #637e6a; border-radius: 5px; background: #354b40; color: #d4eee0; font-size: 11px; line-height: 1; }
.today-edge[data-direction="left"] { left: 8px; }
.today-edge[data-direction="left"] svg { transform: rotate(180deg); }
.today-edge[data-direction="right"] { right: 8px; flex-direction: row-reverse; }
.today-edge:hover { background: #42614e; border-color: #8bab94; }
.today-edge:focus-visible { outline-offset: 1px; }
.track { position: relative; grid-column: 2; display: flex; border-bottom: 1px solid #ffffff0b; }
.track:last-child { border-bottom: 0; }
.track-label { position: relative; display: flex; align-items: flex-start; gap: 11px; width: var(--sidebar); padding: 16px 20px 16px 24px; border-right: 1px solid var(--edge); background: #222327; }
.track-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.track-icon img { width: 19px; height: 19px; filter: brightness(0) invert(1); opacity: .8; }
.track-label h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 500; line-height: 1.35; letter-spacing: -.3px; }
.track-label p { max-width: 150px; margin: 0; font-size: 12.5px; line-height: 1.6; color: #9c9fa9; letter-spacing: -.015em; }
.track-count { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .3px; color: #969aa5; }
.track-canvas { position: relative; flex: none; background: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--week) - 1px), #ffffff07 calc(var(--week) - 1px), #ffffff07 var(--week)), #1c1d21; }
.track-canvas::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--elapsed); background: #ffffff01; pointer-events: none; }
.violet { --accent: var(--violet); --surface: #292338; --wash: #44345c; }
.cyan { --accent: var(--cyan); --surface: #203132; --wash: #2f5150; }
.peach { --accent: var(--peach); --surface: #352a27; --wash: #5a3c34; }
.green { --accent: var(--green); --surface: #293126; --wash: #45513a; }
.rose { --accent: var(--rose); --surface: #34262e; --wash: #543440; }
.event-card {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: var(--roadmap-card-height);
  padding: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 10px;
  /* Keep an opaque base while the hover gradient switches to a solid fill. */
  background: var(--surface) linear-gradient(115deg, var(--surface), color-mix(in srgb, var(--surface) 85%, #111));
  color: var(--accent);
  box-shadow: 0 3px 9px #00000018;
  text-align: left;
}
.event-card:hover, .event-card:focus-visible { z-index: 4; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--wash); box-shadow: 0 7px 24px #0003; }
.event-card.status-planned { border-style: dashed; background: linear-gradient(110deg, color-mix(in srgb, var(--surface) 78%, #1c1d21), #1c1d21); }
.event-card.status-tentative { border-style: dashed; opacity: .85; }
.event-card.has-image { background: #1f2025; }
.event-card.has-image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 5%, color-mix(in srgb, var(--surface) 93%, transparent) 38%, color-mix(in srgb, var(--surface) 38%, transparent)); }
.card-image { position: absolute; z-index: -2; top: 0; right: 0; width: 78%; height: 100%; object-fit: cover; opacity: .78; transition: transform .3s; }
.event-card:hover .card-image { transform: scale(1.04); }
.card-kicker { position: relative; overflow: hidden; color: color-mix(in srgb, var(--accent) 75%, #888); font-size: 9px; font-weight: 500; letter-spacing: .8px; white-space: nowrap; text-overflow: ellipsis; }
.card-title { position: relative; display: block; max-width: 100%; margin-top: 6px; padding-right: 4px; font-size: 16.5px; font-weight: 500; line-height: 1.35; letter-spacing: -.35px; }
.has-image .card-title { max-width: 91%; }
.card-bottom { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: auto; color: color-mix(in srgb, var(--accent) 88%, #aaa); font-size: 11px; }
.card-kind { padding: 3px 6px; border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 4px; background: #0d0d1260; font-size: 10px; white-space: nowrap; }
.card-date { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-arrow { margin-left: auto; font-size: 18px; opacity: 0; transition: opacity .15s; }
.card-art.art-github, .card-art.art-openrouter { display: grid; place-items: center; mask-image: none; }
.art-github svg, .art-openrouter svg { width: 60px; height: 60px; }
.event-card:hover .card-arrow { opacity: .8; }
.today-line { position: absolute; z-index: 1; top: 0; bottom: 0; width: 1px; background: #b7e6c970; pointer-events: none; }
.today-line::after { content: ''; position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: #b9e1c7; box-shadow: 0 0 8px #b9e1c733; }
.connections { position: absolute; inset: 0; z-index: 1; overflow: visible; pointer-events: none; }
.connections path { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.connections circle { fill: var(--accent); }
.connections polyline { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.connections.has-highlight .connection { opacity: .12; }
.connections.has-highlight .connection.is-highlighted { opacity: 1; }
.connection.is-highlighted path { opacity: 1; stroke-width: 1.5; }
/* Small original illustrations, assembled from code rather than stock imagery. */
.card-art{position:absolute;right:8px;top:14px;width:85px;height:68px;opacity:.2;pointer-events:none;z-index:-1;mask-image:linear-gradient(90deg,transparent,black 45%)}.art-three-sided{opacity:.65;right:22px;width:172px;mask-image:linear-gradient(90deg,transparent,black 30%)}.art-three-sided i{position:absolute;top:7px;width:53px;height:53px;border:1px solid #cbb0f3;border-radius:50%;background:radial-gradient(circle at 35% 25%,#8661a5,#302438 70%);box-shadow:inset 0 0 0 4px #4e3a63,inset 0 0 0 5px #b19ac85c;display:grid;place-items:center;font-style:normal;color:#d6bff0;font-size:20px}.art-three-sided i:nth-child(1){right:86px;transform:rotate(-16deg)}.art-three-sided i:nth-child(2){right:38px;transform:rotate(17deg)}.art-three-sided i:nth-child(3){right:12px;width:14px;border-radius:8px;transform:rotate(18deg);font-size:9px}.art-voice,.art-voice-toolkit{display:flex;align-items:center;justify-content:center;gap:4px;mask-image:none;opacity:.16}.art-voice i,.art-voice-toolkit i{width:4px;border-radius:4px;background:var(--accent);height:var(--bar)}.art-gates{opacity:.18;mask-image:none}.art-gates i{display:block;width:75px;height:15px;border:1px solid var(--accent);border-radius:4px;margin-bottom:6px}.art-gates i:first-child{background:var(--accent)}.art-annotation{border:1px solid var(--accent);border-radius:5px;transform:rotate(-8deg);height:50px;top:21px;mask-image:none}.art-annotation:before{content:'+';position:absolute;top:12px;right:20px;font-size:18px}.art-annotation:after{content:'';width:25px;height:16px;position:absolute;right:0;bottom:-5px;border:1px solid var(--accent);background:var(--surface);border-radius:4px}.art-presets{mask-image:none}.art-presets i,.art-architecture i{display:block;position:absolute;width:48px;height:46px;border:1px solid var(--accent);border-radius:6px;right:4px;top:15px;transform:rotate(15deg)}.art-presets i:nth-child(2),.art-architecture i:nth-child(2){right:18px;top:5px;transform:rotate(0)}.art-presets i:nth-child(3),.art-architecture i:nth-child(3){right:32px;top:-4px;transform:rotate(-15deg)}.art-stack{width:110px;mask-image:none;display:flex;align-items:center;gap:6px;opacity:.14}.art-stack i{font-style:normal;font-weight:600;font-size:16px;border:1px solid var(--accent);border-radius:5px;padding:6px}.art-publish{width:115px;mask-image:none;font-size:12px;top:30px;right:6px;opacity:.2;white-space:nowrap}.art-publish:before{content:'↗';display:block;font-size:32px;line-height:1}.art-publish:after{content:'obby.live'}.art-rgs{border:1px solid var(--accent);border-radius:10px;width:65px;height:48px;top:25px;mask-image:none;display:grid;place-items:center;font-size:14px;font-weight:500}.art-sbc{font-size:41px;font-weight:600;letter-spacing:-5px;top:16px;width:90px;opacity:.12;mask-image:none}.art-article{opacity:.2;border-left:1px solid var(--accent);height:60px;top:18px;mask-image:none;padding:7px 10px}.art-article i{height:2px;background:var(--accent);display:block;width:60px;margin:8px 0}.art-article i:last-child{width:35px}.art-vienna{font:400 40px/1.4 'Young Serif',serif;opacity:.15;mask-image:none;width:100px;letter-spacing:-4px;right:9px}


/* On narrow screens, the same milestones become a chronological schedule. */
.schedule-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; height: var(--calendar-height); padding: 0 16px; background: var(--panel); }
.roadmap-page #schedule-month { margin: 0; font: 500 20px/1.25 Inter, Arial, sans-serif; letter-spacing: -.4px; }
#schedule-today { display: flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-height: 44px; padding: 0 12px; border: 1px solid #ffffff14; border-radius: 8px; background: #ffffff04; color: #dedee2; font-size: 13px; }
#schedule-today:hover { background: #ffffff0a; }
.schedule-scroll { position: relative; flex: 1; min-height: 0; overflow: hidden auto; overscroll-behavior: none; scroll-padding-top: 16px; scrollbar-width: thin; scrollbar-color: #555861 #191a1d; padding: 16px 16px 28px; background: #1c1d21; }
.schedule-week { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 12px; }
.schedule-week + .schedule-week { margin-top: 26px; }
.schedule-date { position: sticky; top: 12px; display: flex; align-items: center; flex-direction: column; gap: 3px; text-align: center; }
.schedule-week-number { color: #969aa5; font-size: 10px; line-height: 1.3; letter-spacing: .4px; }
.schedule-date time { display: flex; align-items: center; flex-direction: column; gap: 4px; }
.schedule-day { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #e4e4e8; font-size: 23px; line-height: 1; letter-spacing: -.4px; }
.schedule-month-short { color: #969aa5; font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .6px; }
.schedule-week.is-current .schedule-day { background: #b8dcc6; color: #20372a; }
.schedule-events { min-width: 0; }
.roadmap-page .schedule-range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 17px; margin: 0 0 10px; color: #999da7; font: 400 11px/1.4 Inter, Arial, sans-serif; letter-spacing: 0; }
.schedule-range > span { color: #b8dcc6; }
.schedule-events .event-card { position: relative; width: 100%; height: auto; min-height: 0; margin: 0 0 10px; padding: 14px; }
.schedule-events .event-card:last-child { margin-bottom: 0; }
.schedule-track { display: block; flex: none; margin-bottom: 7px; color: var(--accent); font-size: 11px; line-height: 1.3; }
.schedule-events .card-kicker { flex: none; font-size: 9px; line-height: 1.4; }
.schedule-events .card-title { flex: none; margin-top: 6px; font-size: 17px; line-height: 1.35; }
.schedule-events .card-bottom { flex: none; gap: 10px; margin-top: 14px; font-size: 11px; }
.schedule-events .card-date { margin-left: auto; }
.schedule-events .card-arrow { display: none; }
.schedule-state { display: flex; flex: none; align-items: center; gap: 5px; color: #d0d1d8; font-size: 11px; }
.schedule-empty { margin: 0; color: #999da7; font-size: 13px; line-height: 1.6; }

dialog { position: fixed; width: calc(100% - 32px); max-width: 640px; max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #ffffff22; border-radius: 16px; background: #222327; color: var(--ink); box-shadow: 0 30px 120px #0009; }
dialog::backdrop { background: #08090bbf; backdrop-filter: blur(9px); }
.dialog-close { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff1a; border-radius: 50%; background: #17181bc9; color: white; }
.dialog-close:hover { background: #45474d; }
.dialog-footer { display: contents; }
.detail-visual { position: relative; display: grid; place-items: center; height: 220px; overflow: hidden; border-bottom: 1px solid #ffffff0b; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 9%, #222327), #191a1d); }
.detail-visual > img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; }
.detail-visual .card-art { position: relative; inset: auto; z-index: 0; transform: scale(2.1); opacity: .75; }
.detail-body { padding: 28px; }
/* The shared display-heading rule carries an ID in :not(); scope this size explicitly. */
#detail-dialog #detail-title { margin: 0 0 16px; font: 400 30px/1.2 var(--serif); letter-spacing: -.045em; }
#detail-title:focus { outline: none; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 20px; color: #b7c0c5; font-size: 11px; }
.detail-meta > span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid #ffffff1a; border-radius: 8px; background: #ffffff05; }
.detail-body > p { margin: 0 0 22px; color: #c4c5cd; font-size: 17px; line-height: 1.6; letter-spacing: -.02em; }
.detail-related { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--edge); }
.detail-related > span { color: #999da7; font-size: 12px; text-transform: uppercase; }
.detail-related button { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 32px; padding: 0 0 5px; border: 0; border-bottom: 1px solid #70738280; border-radius: 0; background: none; color: var(--ink); font-size: 13px; text-align: left; }
.detail-related button:hover { color: var(--studio-accent-soft); border-color: var(--studio-accent); }
.detail-related button img { width: 14px; height: 14px; opacity: .6; transition: transform .2s var(--studio-ease); }
.detail-related button:hover img { transform: translate(2px, -2px); }
.detail-link { display: inline-flex; justify-content: center; align-items: center; gap: 16px; max-width: 100%; min-height: 49px; font-size: 14px; }
.card-art:is(.art-plinko,.art-secret,.art-bones,.art-motion,.art-three-outcomes,.art-slot-style,.art-workflow-import) { width: 100px; height: 76px; mask-image: none; }
.card-art:is(.art-plinko,.art-secret,.art-bones,.art-motion,.art-three-outcomes,.art-slot-style,.art-workflow-import) svg { width: 100%; height: 100%; }
.noscript-note { position: fixed; inset: 160px 20px auto; padding: 24px; background: var(--page); text-align: center; }
.noscript-note a { text-decoration: underline; }
@media (max-width: 1100px) {
  :root { --sidebar: 240px; }
  .track-label { padding-left: 24px; gap: 10px; }
  .track-label h3 { font-size: 15px; }
  .track-label p { font-size: 12px; }
  .corner { padding-left: 24px; }
}
@media (max-width: 767px) {
  :root { --sidebar: 160px; }
  /* Keep the site's existing fixed mobile navigation at the bottom. */
  .roadmap-page .navigation { inset: auto 0 0; }
  .roadmap-main { inset: var(--summit-height) 0 var(--mobile-nav-height); }
  .roadmap-controls { flex-direction: column; gap: 4px; padding: 4px 0; }
  .scale-switch { padding: 1px; border-radius: 6px; }
  .scale-switch button { height: 42px; }
  .scale-switch { width: calc(100% - 12px); }
  .scale-switch button { flex: 1; min-width: 0; padding: 0; font-size: 11px; }
  .track-label { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: 24px auto auto; align-content: start; gap: 6px 8px; padding: 12px 14px 12px 16px; }
  .track-label > div { display: contents; }
  .track-icon { width: 24px; height: 24px; margin: 0; }
  .track-icon img { width: 17px; height: 17px; }
  .track-label h3 { grid-column: 1 / -1; margin: 0; font-size: 14px; }
  .track-label p { grid-column: 1 / -1; max-width: 120px; font-size: 12px; line-height: 1.55; }
  .track-count { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 10px; }
  .corner { padding: 0 14px 20px 16px; font-size: 9px; letter-spacing: 1px; }
  .week-cell { padding-left: 14px; }
  .week-date { font-size: 15px; }
  .week-date > span { font-size: 11px; }
  .card-title { font-size: 16px; }
  /* Start high enough to show the title and context, with one native scroll surface. */
  dialog { inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  #detail-content { min-height: 100dvh; margin-top: 28dvh; overflow: hidden; border-radius: 18px 18px 0 0; background: var(--panel); }
  .dialog-footer { position: fixed; inset: auto 0 0; z-index: 2; display: flex; justify-content: center; padding: 32px 0 calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, transparent, #191a1d 32px); pointer-events: none; }
  .dialog-close { position: static; width: 48px; height: 48px; border: 0; background: #303136; color: #eeece8; pointer-events: auto; }
  .dialog-close svg { width: 22px; height: 22px; }
  .detail-visual { height: clamp(140px, 21dvh, 180px); }
  .detail-body { padding: 22px 20px calc(120px + env(safe-area-inset-bottom, 0px)); }
  #detail-dialog #detail-title { font-size: 26px; }
  .detail-body > p { font-size: 16px; }
  .detail-related button { min-height: 44px; }
}
@media (max-width: 370px) {
  :root { --sidebar: 144px; }
  .schedule-scroll { padding-inline: 12px; }
  .schedule-week { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .event-card:hover, .event-card:focus-visible { transform: none; }
}
