:root {
  color-scheme: light only;
  --paper: #F6F8FB; --leaf: #FFFFFF; --ink: #17255A; --text: #1F2742; --graphite: #5A6172;
  --feint: #A9C1E2; --feint-soft: #D9E4F3; --margin: #D4423A; --hi: #FFE566; --on-hi: #17255A;
  --s0: #0D5630; --s1: #1C7042; --s2: #2F8853; --s3: #489F67; --s4: #68B47F; --s5: #89C798; --s6: #A8D7B1; --s7: #C3E4C8; --s8: #D9EEDC;
  --n0: #EEF0F4; --n1: #DCE8FA; --n2: #ADC5F0; --n3: #7093D8; --n4: #3B5FB2; --n5: #142A6A;
  --nx: #E9E9E5; --shore: #7F95B8; --border: #6377AE; --ban: #D9534B; --off: #F6F8FB; --pg-light: #F6F8FB;
  --mg: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); background: var(--paper); color: var(--text); font: 400 17px/1.62 Andika, "Trebuchet MS", Verdana, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration-color: var(--feint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--margin); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; box-shadow: 0 0 0 1.5px var(--ink); border-radius: 2px; }
svg.ic { width: 18px; height: 18px; flex: none; }

.page { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 18px calc(72px + env(safe-area-inset-bottom)) calc(var(--mg) + 16px); }
.page::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--mg); width: 2px; background: var(--margin); opacity: .85; }
.bleed { margin-left: calc(-1 * (var(--mg) + 16px)); padding-left: calc(var(--mg) + 16px); }

.langs { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 2px 12px; padding: 12px 0 0; margin-bottom: -8px; font-size: 15px; color: var(--graphite); }
.langs svg.ic { width: 16px; height: 16px; }
.langs a { padding: 6px 2px; text-decoration-color: var(--margin); }
.langs b { padding: 1px 7px; background: var(--hi); color: var(--on-hi); border-radius: 2px; transform: rotate(-.6deg); }
body { transition: opacity .18s ease; }
body.leaving { opacity: 0; }
.mast { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; align-items: baseline; padding: 18px 0 4px; margin: 0; font-size: 15px; color: var(--graphite); }
.mast b { color: var(--ink); font-size: 17px; }
.hand { --chars: 12; font: 400 clamp(20px, min(8.6vw, (min(100vw, 1080px) - 34px - var(--mg)) / var(--chars) / .68), 68px)/2 "Playwrite NZ", "Segoe Script", "Bradley Hand", cursive; color: var(--ink); margin: 6px 0 26px; letter-spacing: 0; }
.hand span { display: block; height: 2em; white-space: nowrap; margin-left: calc(-1 * (var(--mg) + 16px)); padding-left: calc(var(--mg) + 16px);
  background:
    linear-gradient(var(--feint), var(--feint)) 0 var(--base) / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--feint) 0 7px, transparent 7px 13px) 0 var(--mid) / 100% 1px no-repeat,
    linear-gradient(var(--feint-soft), var(--feint-soft)) 0 var(--cap) / 100% 1px no-repeat;
  --base: 1.42em; --mid: .98em; --cap: .46em; }
.hand i { font-style: normal; display: inline-block; padding-right: .3em; }
@media (prefers-reduced-motion: no-preference) {
  .hand i { clip-path: inset(-20% 100% -40% 0); animation: write 1s cubic-bezier(.5, .1, .3, 1) .15s forwards; }
  .hand span + span i { animation-delay: 1s; }
  @keyframes write { to { clip-path: inset(-20% -5% -40% 0); } }
}
.lead { font-size: 22px; line-height: 1.4; font-weight: 700; color: var(--ink); max-width: 62ch; margin: 0 0 12px; }
.sub { color: var(--graphite); max-width: 66ch; margin: 0 0 16px; }
.tally { max-width: 62ch; margin: 0 0 8px; }
.tally b { color: var(--ink); }

section { padding-top: 46px; }
h2 { font: 700 27px/1.25 Andika, sans-serif; color: var(--ink); margin: 0 0 6px; }
h3 { font: 700 17.5px/1.35 Andika, sans-serif; color: var(--ink); margin: 0 0 3px; }

/* the mini page: one line per rule point */
.pg { width: 24px; height: 30px; flex: none; overflow: visible; }
.pg rect { stroke: var(--ink); stroke-width: 1.3; fill: var(--s0); transition: fill .3s; }
.pg line { stroke: var(--ink); stroke-width: 1.15; stroke-linecap: round; }
.pg.s1 rect { fill: var(--s1); } .pg.s2 rect { fill: var(--s2); } .pg.s3 rect { fill: var(--s3); } .pg.s4 rect { fill: var(--s4); }
.pg.s5 rect { fill: var(--s5); } .pg.s6 rect { fill: var(--s6); } .pg.s7 rect { fill: var(--s7); } .pg.s8 rect { fill: var(--s8); }
.pg.s1 line, .pg.s2 line, .pg.s3 line { stroke: var(--pg-light); }
.pg.sb rect { fill: var(--ban); stroke: var(--ink); }
.pg.sb path { stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.pg.sn rect { fill: var(--paper); stroke: var(--graphite); stroke-dasharray: 2.4 2.4; }

/* filter */
.filter { margin: 18px 0 14px; }
.say { margin: 0 0 10px; font-weight: 700; color: var(--ink); min-height: 1.6em; }
.cmp { display: inline-flex; gap: 2px; margin-right: 6px; }
.scale { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2px; max-width: 520px; }
.scale button { display: grid; justify-items: center; gap: 3px; padding: 8px 0 5px; border: 0; background: none; border-bottom: 3px solid transparent; font-weight: 700; color: var(--ink); transition: opacity .25s, border-color .25s, background-color .25s; }
.scale button.out { opacity: .28; }
.scale button.edge { border-bottom-color: var(--margin); }
.scale button:hover { background: var(--feint-soft); }
.ends { display: flex; justify-content: space-between; max-width: 520px; font-size: 14px; color: var(--graphite); margin: 2px 0 10px; }
.extras { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tog { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 4px; border: 0; background: none; transition: opacity .25s; }
.tog .pg { width: 19px; height: 24px; }
.tog[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.txt { border: 0; background: none; padding: 5px 6px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--margin); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* highlighter marks what is selected */
.mark { border: 0; padding: 4px 8px; background: none; color: var(--text); border-radius: 2px; transition: background-color .25s, color .25s; white-space: nowrap; }
.mark i { font-style: normal; color: var(--graphite); font-size: 14px; }
.mark:hover { background: var(--feint-soft); }
.mark[aria-pressed="true"] { background: var(--hi); color: var(--on-hi); font-weight: 700; transform: rotate(-.6deg); }
.mark[aria-pressed="true"] i { color: var(--on-hi); }
.marks { display: flex; flex-wrap: wrap; gap: 4px 4px; align-items: center; font-size: 16px; }
.marks > span { color: var(--graphite); font-size: 15px; margin-right: 2px; }
.maptools { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 8px 0 10px; }

.mapbox { position: relative; border-top: 1.5px solid var(--feint); border-bottom: 1.5px solid var(--feint); background: var(--leaf); }
#world { display: block; width: 100%; height: auto; touch-action: pan-y; }
#world.zoomed { touch-action: none; cursor: grab; }
.land { fill: var(--nx); stroke: var(--border); stroke-width: .7; vector-effect: non-scaling-stroke; transition: fill .35s, opacity .35s; }
.land.sub { stroke: var(--border); stroke-opacity: .7; stroke-width: .7; stroke-dasharray: 3 2.5; }
.land.sub.s0, .land.sub.s1, .land.sub.s2, .land.sub.s3, .land.sub.s4, .land.sub.n3, .land.sub.n4, .land.sub.n5, .land.sub.sb { stroke: var(--leaf); stroke-opacity: .45; }
.frame { fill: none; stroke: var(--border); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.land[data-id], .dot { cursor: pointer; }
.land.s0, .dot.s0 { fill: var(--s0); } .land.s1, .dot.s1 { fill: var(--s1); } .land.s2, .dot.s2 { fill: var(--s2); }
.land.s3, .dot.s3 { fill: var(--s3); } .land.s4, .dot.s4 { fill: var(--s4); } .land.s5, .dot.s5 { fill: var(--s5); }
.land.s6, .dot.s6 { fill: var(--s6); } .land.s7, .dot.s7 { fill: var(--s7); } .land.s8, .dot.s8 { fill: var(--s8); }
.land.sb { fill: var(--ban); } .dot.sb { fill: var(--ban); }
.land.sn { fill: url(#dots); } .dot.sn { fill: var(--graphite); }
.land.n0 { fill: url(#qm); } .dot.n0 { fill: var(--n0); }
.qm-bg { fill: var(--n0); } .qm-t { font: 700 8px Andika, sans-serif; fill: var(--graphite); } .land.n1, .dot.n1 { fill: var(--n1); } .land.n2, .dot.n2 { fill: var(--n2); }
.land.n3, .dot.n3 { fill: var(--n3); } .land.n4, .dot.n4 { fill: var(--n4); } .land.n5, .dot.n5 { fill: var(--n5); }
.land.off { fill: var(--off); stroke-dasharray: 1.5 2; }
.dot { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .35s, opacity .35s; }
.dot.off { opacity: 0; pointer-events: none; }
.land.on, .land.sub.on, .dot.on { stroke: var(--margin); stroke-opacity: 1; stroke-width: 2.4; }
.dots-bg { fill: var(--leaf); } .dots-c { fill: var(--graphite); }
.zoom { position: absolute; right: 8px; bottom: 8px; display: grid; gap: 4px; }
.zoom button { width: 40px; height: 40px; display: grid; place-items: center; background: var(--leaf); border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); }
.zoom svg { width: 18px; height: 18px; }
#mapfail { margin: 0; padding: 28px 14px; }
.tip { position: absolute; z-index: 3; left: 0; top: 0; min-width: 190px; max-width: 250px; pointer-events: none; background: var(--leaf); border: 1.5px solid var(--ink); border-radius: 3px; padding: 8px 10px 9px; font-size: 14.5px; line-height: 1.35; opacity: 0; transition: opacity .15s; }
.tip.show { opacity: 1; }
.tip h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font: 700 16px/1.25 Andika, sans-serif; color: var(--ink); }
.tip h4 .pg { width: 17px; height: 21px; }
.tip dl { margin: 0; }
.tip dl div { display: flex; justify-content: space-between; gap: 14px; }
.tip dt { color: var(--graphite); } .tip dd { margin: 0; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tip dl div.sum { border-top: 1px solid var(--feint); margin-top: 4px; padding-top: 4px; }
.tip dl div.sum dt { color: var(--ink); font-weight: 700; }
.tip p { margin: 0; color: var(--text); }
.tip.touch { pointer-events: auto; }
.tip .txt { display: block; margin-top: 6px; padding: 8px 0 2px; font-weight: 700; }
.wants { margin-top: 10px; }
.wants .mark { white-space: normal; text-align: left; max-width: 100%; }
.acts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 8px; }
.acts .txt { padding-left: 0; }
.txt[disabled] { opacity: .5; text-decoration: none; cursor: default; }
.steps ol { margin: 4px 0 0; padding-left: 22px; }
.steps li { margin-bottom: 7px; }
.steps li b { color: var(--ink); margin-right: 8px; }
.steps li .pt { float: right; }
.steps li > span:last-child { display: block; }
.inside { margin: 6px 0 0; padding-left: 18px; }
.inside li { margin-bottom: 4px; }
.inside b { color: var(--ink); }
.tray { position: fixed; z-index: 19; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 8px calc(14px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left)); background: var(--hi); color: var(--on-hi); border-top: 2px solid var(--ink); transform: translateY(110%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s .3s; }
.tray.show { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.tray p { margin: 0; flex: 1 1 200px; font-weight: 700; }
.tray .txt { color: var(--on-hi); text-decoration-color: var(--ink); font-weight: 700; }
.cmpview { position: fixed; z-index: 21; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--leaf); padding: 16px calc(16px + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); transform: translateY(104%); visibility: hidden; transition: transform .36s cubic-bezier(.2, .8, .2, 1), visibility 0s .36s; }
.cmpview.open { transform: none; visibility: visible; transition: transform .36s cubic-bezier(.2, .8, .2, 1); }
.cmpview > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.cmpview h2 { margin: 0; }
.cmpwrap { overflow-x: auto; border-top: 1.5px solid var(--feint); }
#cmp-t { min-width: 0; width: auto; font-size: 15.5px; }
#cmp-t th, #cmp-t td { min-width: 190px; max-width: 280px; padding: 9px 14px 9px 0; }
#cmp-t tbody th, #cmp-t thead td { min-width: 104px; max-width: 120px; position: sticky; left: 0; background: var(--leaf); color: var(--ink); font-size: 14.5px; }
#cmp-t thead th { font-size: 18px; vertical-align: bottom; }
#cmp-t thead .gl { position: static; width: auto; margin-bottom: 4px; }
#cmp-t thead .txt { display: block; padding: 2px 0; font-weight: 400; font-size: 14.5px; }
#cmp-t i { color: var(--graphite); }
.pt { margin-left: auto; font-weight: 400; color: var(--graphite); font-size: 14.5px; white-space: nowrap; }
.mapcap { margin: 8px 0 0; font-weight: 700; color: var(--ink); min-height: 1.6em; }
.mapnote { margin: 2px 0 0; color: var(--graphite); font-size: 15px; max-width: 70ch; }
.keyrow { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 10px 0 0; font-size: 15px; color: var(--graphite); }
.keyrow b { display: inline-block; width: 22px; height: 12px; margin-right: 5px; border: 1px solid var(--shore); vertical-align: -1px; }
.keyrow .n0 { background: var(--n0); color: var(--graphite); font-size: 10px; line-height: 11px; text-align: center; } .keyrow .n1 { background: var(--n1); } .keyrow .n2 { background: var(--n2); } .keyrow .n3 { background: var(--n3); } .keyrow .n4 { background: var(--n4); } .keyrow .n5 { background: var(--n5); } .keyrow .nx { background: var(--nx); }

/* ranking: rows sit on ruled lines, the score sits in the margin */
.find { display: flex; align-items: center; gap: 8px; max-width: 420px; border-bottom: 2px solid var(--ink); padding: 4px 2px; margin: 10px 0 12px; color: var(--ink); }
.find input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); padding: 6px 0; outline: 0; }
.find:focus-within { background: var(--feint-soft); }
.count { color: var(--graphite); margin: 14px 0 0; font-size: 15px; }
.rows { list-style: none; margin: 0 0 14px; padding: 0; }
.rows > li { border-bottom: 1px solid var(--feint); }
.rows > li:first-child { border-top: 1px solid var(--feint); }
.rows > li.empty { padding: 18px 0; color: var(--graphite); }
.row { position: relative; display: block; width: 100%; text-align: left; border: 0; background: none; padding: 11px 6px 12px 0; transition: background-color .2s; }
.row:hover { background: var(--feint-soft); }
.gl { position: absolute; left: calc(-1 * (var(--mg) + 16px) + 4px); top: 12px; width: calc(var(--mg) - 8px); display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 19px; line-height: 1; color: var(--ink); }
.gl.wd { font-size: 14px; }
.row .nm { font-weight: 700; font-size: 18.5px; color: var(--ink); margin-right: 8px; }
.row .rg { color: var(--graphite); font-size: 14.5px; }
.row .ln { display: block; max-width: 72ch; }
.row .pop { display: inline-flex; align-items: center; gap: 6px; color: var(--graphite); font-size: 14.5px; }
.row .pop svg { width: 15px; height: 15px; }
.group { padding-top: 34px; }
.group > p { color: var(--graphite); max-width: 66ch; margin: 0 0 6px; }

/* notes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0 34px; margin-top: 12px; }
.card { border-top: 1px solid var(--feint); padding: 12px 0 14px; }
.card p { margin: 0; }
.card .when { display: block; font-size: 14.5px; color: var(--margin); font-weight: 700; }
.tablewrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--feint); }
th { color: var(--ink); }
.plain { padding-left: 20px; max-width: 72ch; }
.plain li { margin-bottom: 6px; }
.srcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 34px; margin-top: 10px; }
.srcs ul { list-style: none; padding: 0; margin: 4px 0 14px; font-size: 15.5px; }
.srcs li { padding: 3px 0; }
footer { margin-top: 48px; padding-top: 14px; border-top: 1.5px solid var(--feint); color: var(--graphite); font-size: 14.5px; max-width: 80ch; }

/* detail leaf */
.scrim { position: fixed; inset: 0; background: rgba(23, 37, 90, .34); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 20; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; background: var(--leaf); border-top: 2px solid var(--ink); border-radius: 14px 14px 0 0; padding: 18px calc(18px + env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) 58px; transform: translateY(104%); visibility: hidden; transition: transform .36s cubic-bezier(.2, .8, .2, 1), visibility 0s .36s; }
.sheet::before { content: ""; position: absolute; left: 46px; top: 0; height: 100%; min-height: 100%; width: 2px; background: var(--margin); opacity: .85; }
.sheet.open { transform: none; visibility: visible; transition: transform .36s cubic-bezier(.2, .8, .2, 1); }
.sheet > header { position: relative; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding-bottom: 10px; }
.sheet .gl { left: -54px; top: 6px; width: 40px; flex-direction: column; gap: 3px; font-size: 17px; }
.sheet h2 { font-size: 26px; margin: 0; }
.sheet .rg { margin: 0; color: var(--graphite); font-size: 15px; }
.x { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--leaf); border-radius: 50%; color: var(--ink); }
.x svg { width: 18px; height: 18px; }
.verdict { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
#sh-body { margin: 0; }
#sh-body > div { border-top: 1px solid var(--feint); padding: 11px 0 12px; }
#sh-body dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
#sh-body dt svg { width: 17px; height: 17px; flex: none; }
#sh-body dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.pips { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: -1px; }
.pips i { width: 11px; height: 14px; border: 1.3px solid var(--ink); border-radius: 1.5px; background: var(--leaf); }
.pips i.on { background: var(--ink); }
.rel b { color: var(--ink); }
.lvl { background: var(--hi); color: var(--on-hi); font-weight: 700; padding: 1px 6px; margin-right: 4px; }
.lv-s .lvl { background: none; color: var(--margin); padding: 0; text-decoration: underline wavy; text-underline-offset: 3px; }
.stat-pass { display: block; margin-top: 6px; font-size: 15px; color: var(--graphite); }
.closing { margin: 14px 0 0; color: var(--graphite); font-size: 15px; }
/* plain pages: one place, and the A to Z list (written by tools/pages.py) */
@view-transition { navigation: auto; }
.onward { margin: 10px 0 0; font-size: 15px; }
.mast a { text-decoration: none; }
.trail { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; }
.trail .txt { padding-left: 0; }
.hand.lines { white-space: normal; font-size: clamp(25px, 6.2vw, 44px); margin: 8px 0 18px calc(-1 * (var(--mg) + 16px)); padding-left: calc(var(--mg) + 16px);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent .46em, var(--feint-soft) .46em, var(--feint-soft) calc(.46em + 1px), transparent calc(.46em + 1px), transparent .98em,
    var(--feint-soft) .98em, var(--feint-soft) calc(.98em + 1px), transparent calc(.98em + 1px), transparent 1.42em, var(--feint) 1.42em, var(--feint) calc(1.42em + 1.5px), transparent calc(1.42em + 1.5px), transparent 2em); }
.where { position: relative; margin: 0 0 4px; color: var(--graphite); font-size: 15px; }
.where .gl { top: -2px; }
.doc main { display: block; }
.doc section { padding-top: 26px; }
.az { list-style: none; padding: 0; margin: 6px 0 0; columns: 3 230px; column-gap: 34px; }
.az li { padding: 3px 0; break-inside: avoid; }
.az span { color: var(--graphite); font-size: 14.5px; }
@media (pointer: coarse) {
  .mark { min-height: 42px; padding: 8px 10px; }
  .tog, .txt { min-height: 44px; }
  .zoom button { width: 46px; height: 46px; }
  .scale button { padding: 10px 0 8px; }
}
@media (max-width: 340px) {
  :root { --mg: 46px; }
  .page { padding-right: 12px; }
  .hand { font-size: 25px; }
  .gl { gap: 3px; font-size: 16px; }
  .gl .pg { width: 19px; height: 24px; }
  .lead { font-size: 19px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  :root { --mg: 72px; }
  .sheet { left: 50%; right: auto; width: min(660px, calc(100% - 32px)); transform: translate(-50%, 104%); }
  .sheet.open { transform: translate(-50%, 0); }
  .scale { max-width: 560px; }
}
@media (min-width: 900px) {
  :root { --mg: 84px; }
  .sheet { left: auto; top: 0; width: 480px; max-height: none; border-top: 0; border-left: 2px solid var(--ink); border-radius: 0; transform: translateX(104%); }
  .gl { font-size: 21px; gap: 8px; }
  .row .ln { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation: none !important; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
