:root {
  --bg: #f3f5f9; --surface: #ffffff; --ink: #13213a; --muted: #5a6478; --line: #dbe0e8;
  --accent: #e8661c; --accent-ink: #ffffff; --accent-soft: #fdeee3; --navy: #13294b;
  --floor: #dbe7f5; --floor-line: #13294b; --good: #157a3f; --good-soft: #e5f5ec; --bad: #c0261b; --bad-soft: #fdecea;
  --radius: 14px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: #c4520f; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.top nav { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; }
.top nav a { color: #bfcbe0; text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: #fff; }
.top nav a[aria-current] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }

.hero { padding: 28px 0 16px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); max-width: 780px; font-size: 17px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; }
.pills li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--muted); }

#app { padding-bottom: 32px; }
.layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.card h2 { font-size: 18px; margin: 0 0 10px; }
.card h3 { font-size: 15px; margin: 16px 0 6px; }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.row3 label, .lib-fields label { display: grid; gap: 2px; font-size: 13px; font-weight: 600; }
select, input[type=text] { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #c6cdd8; border-radius: 8px; padding: 6px 8px; width: 100%; min-width: 0; }
.roster { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 14px; }
.roster th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 4px 4px; }
.roster td { padding: 3px 4px; vertical-align: middle; }
.roster td.pos { font-weight: 800; color: var(--muted); width: 30px; }
.roster td:nth-child(3) { width: 64px; }
.role { display: inline-block; min-width: 34px; text-align: center; font-weight: 800; font-size: 12px; border-radius: 6px; padding: 1px 5px; background: #e7ebf2; }
.role-S { background: #ffe1cc; color: #8a3a08; } .role-MB { background: #dde8ff; color: #1d3f8a; } .role-OH { background: #dff3e6; color: #17603a; } .role-OPP { background: #f1e1fb; color: #6b2a8f; } .role-L { background: #fff1b8; color: #6b5300; }
.libero { border-top: 1px solid var(--line); padding-top: 10px; }
.lib-fields { display: grid; grid-template-columns: 80px 1fr; gap: 8px; margin-top: 6px; }
.lib-serve { display: grid; gap: 2px; font-size: 13px; font-weight: 600; margin-top: 8px; }
.lib-serve select { font-weight: 400; }
.check, .radio { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; cursor: pointer; margin: 6px 0; }
.check input, .radio input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; margin: 4px 0; }
.btn { font: inherit; font-size: 15px; font-weight: 700; border-radius: 10px; padding: 8px 14px; border: 1px solid #c6cdd8; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { border-color: #8592a8; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #cc5512; }
.link { font: inherit; font-size: 14px; background: none; border: 0; padding: 4px 0; color: #c4520f; cursor: pointer; text-decoration: underline; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 10px 0 4px; }
.court-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.court-head h2 { margin: 0; }
.seg { display: inline-flex; border: 1px solid #c6cdd8; border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; font-size: 14px; font-weight: 700; border: 0; background: #fff; padding: 7px 12px; cursor: pointer; color: var(--ink); }
.seg button + button { border-left: 1px solid #c6cdd8; }
.seg button[aria-checked=true] { background: var(--navy); color: #fff; }
.rot-tabs { display: flex; gap: 6px; margin: 12px 0 8px; flex-wrap: wrap; }
.rot-tabs button { font: inherit; font-weight: 800; width: 40px; height: 36px; border-radius: 9px; border: 1px solid #c6cdd8; background: #fff; cursor: pointer; color: var(--ink); position: relative; }
.rot-tabs button[aria-selected=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rot-tabs button.has-fault::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.court-wrap { max-width: 520px; margin: 0 auto; }
.court { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.court .floor { fill: var(--floor); stroke: var(--floor-line); stroke-width: 0.06; }
.court .net { stroke: var(--navy); stroke-width: 0.16; }
.court .attack { stroke: var(--floor-line); stroke-width: 0.05; stroke-dasharray: 0.25 0.15; }
.court .net-label { font-size: 0.42px; font-weight: 800; fill: var(--muted); text-anchor: middle; letter-spacing: 0.08px; }
.court .player { cursor: grab; }
.court .player circle { fill: #fff; stroke: var(--navy); stroke-width: 0.08; }
.court .player.role-S circle { fill: #ffe1cc; } .court .player.role-MB circle { fill: #dde8ff; } .court .player.role-OH circle { fill: #dff3e6; } .court .player.role-OPP circle { fill: #f1e1fb; } .court .player.role-L circle { fill: #fff1b8; }
.court .player.setting circle { stroke: var(--accent); stroke-width: 0.14; }
.court .player.fault circle { stroke: var(--bad); stroke-width: 0.16; }
.court .player:focus { outline: none; }
.court .player:focus circle { stroke: #2b7de9; stroke-width: 0.16; }
.court text { text-anchor: middle; dominant-baseline: middle; fill: var(--ink); pointer-events: none; }
.court .t1 { font-size: 0.42px; font-weight: 800; }
.court .t2 { font-size: 0.32px; fill: var(--muted); }
.court .pnum { font-size: 0.3px; font-weight: 800; fill: var(--navy); }
.court .fault-line { stroke: var(--bad); stroke-width: 0.08; stroke-dasharray: 0.2 0.12; }
.verdict { font-weight: 700; margin: 10px 0 4px; }
.verdict[data-state=good] { color: var(--good); }
.verdict[data-state=bad] { color: var(--bad); }
.verdict[data-state=info] { color: var(--muted); }
.facts { margin: 4px 0; padding-left: 20px; font-size: 15px; }
.print-sheet { display: none; }

@media print {
  @page { margin: 10mm; }
  body { background: #fff; }
  .top, footer, .hero, .guide, .layout { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .print-sheet { display: block; }
  .print-sheet h2 { font-size: 16px; margin: 0 0 8px; }
  .minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
  .mini { margin: 0; break-inside: avoid; }
  .mini figcaption { font-size: 11px; font-weight: 700; text-align: center; }
  .slip { border-collapse: collapse; margin-top: 12px; }
  .slip caption { text-align: left; font-weight: 700; font-size: 13px; }
  .slip th, .slip td { border: 1px solid #333; padding: 4px 12px; text-align: center; min-width: 46px; }
}

.guide { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 48px; }
.guide .wrap { max-width: 820px; }
.guide h2 { font-size: 24px; line-height: 1.25; margin: 32px 0 10px; letter-spacing: -0.01em; }
.guide h2:first-child { margin-top: 0; }
.guide h3 { font-size: 18px; margin: 22px 0 6px; }
.guide p, .guide li { color: #2b3446; }
.guide ol, .guide ul { padding-left: 22px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.guide th, .guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide th { background: #f5f7fa; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; background: #fafbfd; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.related { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cta { margin: 18px 0 0; }
.page-plain { padding: 8px 0 48px; }
.page-plain .card { max-width: 820px; padding: 28px 30px; }
.page-plain h2 { font-size: 22px; margin: 28px 0 8px; }
.page-plain h2:first-child { margin-top: 0; }
.notfound { text-align: center; padding: 60px 20px; }

footer { border-top: 1px solid var(--line); background: var(--bg); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 20px; padding-bottom: 28px; align-items: center; }
footer a { color: var(--muted); }
footer .spacer { flex: 1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a[aria-current] { color: var(--ink); }

@media (max-width: 920px) { .layout { grid-template-columns: minmax(0, 1fr); } .court-card { order: -1; } }
@media (max-width: 560px) {
  .wrap { padding: 0 12px; }
  .card { padding: 14px; border-radius: 12px; }
  .hero { padding: 20px 0 12px; }
  .hero p { font-size: 16px; }
  .top nav { gap: 2px 12px; font-size: 13px; }
  .page-plain .card { padding: 20px 18px; }
}

.example-note{margin:0 0 14px;padding:10px 14px;border:1.5px solid var(--line);border-left:6px solid var(--accent);background:#fff;border-radius:var(--radius);font-size:15px}
.example-note a{font-weight:700}
.crumb{font-size:14px;margin:0 0 6px}.byline{font-size:14px;opacity:.8;margin:6px 0 0}
.article .answer{background:#fff;border:1px solid var(--line);border-left:6px solid var(--accent);padding:12px 16px}
.shot,.diagram{margin:20px 0 24px}.shot img{display:block;max-width:100%;height:auto;border:1px solid var(--line);background:#fff}.diagram svg{display:block;width:100%;max-width:420px;height:auto}
.shot figcaption,.diagram figcaption{font-size:15px;line-height:1.55;margin-top:8px;opacity:.85}
.table-scroll{overflow-x:auto;margin:8px 0 16px}.table-scroll table{min-width:520px}.article td,.article th{vertical-align:top}
.sources li{font-size:15px}.guide-list{list-style:none;padding:0}.guide-list li{background:#fff;border:1px solid var(--line);padding:12px 14px;margin:0 0 10px}.guide-list a{display:block}.guide-list span{display:block;font-size:15px;opacity:.8;margin-top:2px}
.next-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.next-steps a{display:block;background:#fff;border:1px solid var(--line);padding:12px 14px;text-decoration:none;color:inherit}.next-steps a b{display:block;color:var(--accent)}
/* Six rotation diagrams on the 5-1, 6-2 and 4-2 pages (build/diagrams.mjs). */
.rot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 14px 0 22px; }
.rot-fig { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 10px); padding: 10px 12px 12px; }
.rot-fig h3 { margin: 0 0 6px; font-size: 16px; }
.rot-fig img { display: block; width: 100%; height: auto; }
.rot-fig figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .rot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rot-grid { grid-template-columns: minmax(0, 1fr); } }
/* Movement after the serve, all-six overview, share/export, saved lineups (2026-12-05). */
.court .move-line { fill: none; stroke: var(--accent); stroke-width: 0.09; stroke-dasharray: 0.28 0.14; stroke-linecap: round; }
.court .move-head { fill: var(--accent); stroke: #fff; stroke-width: 0.04; }
.court .move-halo { fill: none; stroke: #fff; stroke-width: 0.2; stroke-opacity: 0.75; }
.court .moves { pointer-events: none; }
.check.arrows { margin: 6px 0 2px; font-weight: 600; }
.export { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.export h3 { margin: 0 0 4px; font-size: 15px; }
.share-out { margin: 6px 0 0; font-size: 14px !important; color: var(--muted); }
.lineups { border: 1px solid var(--line); background: #fbfcfa; padding: 8px 12px; margin: 0 0 12px; }
.lineups summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.lineups[open] summary { margin-bottom: 6px; }
.lineup-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 6px 0; }
.lineup-row label { display: grid; gap: 2px; font-size: 13px; font-weight: 600; flex: 1 1 170px; min-width: 0; }
.lineup-row .btn { min-height: 40px; padding: 6px 14px; }
.example-note .btn { margin: 6px 8px 0 0; min-height: 38px; padding: 4px 12px; font-size: 15px; }
.overview { grid-column: 1 / -1; }
.ov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ov-head h2 { margin: 0; }
.ov-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ov { font: inherit; display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: center; background: #fff; border: 1px solid var(--line); padding: 8px 6px 9px; cursor: pointer; color: var(--ink); min-width: 0; border-radius: 3px; }
.ov:hover { border-color: #8aa592; }
.ov[aria-pressed=true] { border: 2px solid var(--navy); padding: 7px 5px 8px; box-shadow: 0 3px 10px #173c3018; }
.ov .mini-court { pointer-events: none; touch-action: auto; }
.ov .mini-court .player { cursor: inherit; }
.ov-t { font-size: 13px; font-weight: 700; line-height: 1.3; }
.ov-v { font-size: 13px; color: var(--good); font-weight: 600; }
.ov.has-fault .ov-v { color: var(--bad); }
.ov.has-fault { border-color: #e3a49d; }
@media (max-width: 1100px) { .ov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .ov-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 6px; margin: 0 -4px; }
  .ov { flex: 0 0 44%; scroll-snap-align: start; }
  .export .toolbar .btn { flex: 1 1 calc(50% - 10px); padding: 8px 8px; font-size: 15px; }
}
@media print { .overview, .example-note { display: none !important; } }
@media (max-width: 940px) { .overview { order: 0; } .team { order: 1; } }

@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url(./fonts/publicsans.woff2?v=c1b6da516e) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url(./fonts/publicsans.woff2?v=c1b6da516e) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(./fonts/publicsans.woff2?v=c1b6da516e) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(./fonts/publicsans.woff2?v=c1b6da516e) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Workspace presentation. Engine, local data and existing content remain independent. */
:root { --radius: 10px; }
html { scroll-padding-top: 24px; }
body { font-size:17px; }
.wrap { max-width:1360px; padding-left:28px; padding-right:28px; }
.top .wrap { min-height:74px; gap:16px 24px; }
.brand { font-size:22px; letter-spacing:-.035em; }
.brand svg { width:34px; height:34px; }
.top nav { font-size:15px; gap:6px 20px; }
.top nav a { padding:10px 0; }
.hero { padding:36px 0 24px; }
.hero h1 { font-size:clamp(28px,3.3vw,44px); line-height:1.13; max-width:1000px; letter-spacing:-.045em; }
.hero p { font-size:17px; max-width:900px; }
.workspace-label { font-size:12px!important; font-weight:800; letter-spacing:.13em; color:var(--accent)!important; margin:0 0 12px!important; }
.workspace-note { display:flex; gap:12px; flex-wrap:wrap; margin:20px 0 0; align-items:center; font-size:14px; color:var(--muted); }
.workspace-note a { font-weight:700; text-underline-offset:4px; }
.pills { gap:8px 18px; font-size:14px; }
.pills li { padding:0; border:0; border-radius:0; background:transparent; }
.card { box-shadow:0 4px 18px #10203706; }
.card h2,.panel-title { font-size:20px; letter-spacing:-.025em; }
input:not([type=range]):not([type=color]):not([type=checkbox]):not([type=radio]),select,textarea,.btn { font-size:16px; }
.btn { min-height:44px; display:inline-flex; align-items:center; justify-content:center; text-align:center; gap:6px; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { touch-action:manipulation; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.small,.muted.small { font-size:14px; line-height:1.55; }
.guide { margin-top:28px; padding:48px 0 64px; }
.guide .wrap { max-width:920px; }
.guide h2 { font-size:26px; scroll-margin-top:24px; }
.guide p,.guide li { line-height:1.75; }
.faq details { border-radius:6px; padding:16px 18px; }
.related { gap:10px 16px; }
.related a { text-underline-offset:4px; }
footer { font-size:14px; }
footer .wrap { padding-top:24px; padding-bottom:30px; }
.skiplink { position:absolute; left:12px; top:-100px; padding:12px 18px; background:#fff; color:#14202d; z-index:100; border:2px solid currentColor; }
.skiplink:focus { top:12px; }
main,.card,.layout>*,.workspace>* { min-width:0; }
@media(max-width:720px) {
 .wrap { padding-left:16px; padding-right:16px; }
 .top .wrap { padding-top:14px; padding-bottom:12px; gap:8px; }
 .top nav { width:100%; font-size:14px; gap:3px 16px; }
 .top nav a { padding:6px 0; }
 .hero { padding:26px 0 20px; }
 .hero h1 { font-size:30px; }
 .hero p { font-size:16px; }
 .workspace-note { margin-top:14px; gap:5px 12px; }
 .card { padding:18px; }
 .guide { margin-top:16px; padding:32px 0 40px; }
 .guide table { display:block; overflow-x:auto; }
}
@media(prefers-reduced-motion:no-preference) { .btn { transition:background .15s,border-color .15s,box-shadow .15s; } }
@media print { .workspace-note,.workspace-label,.skiplink { display:none!important; } }

:root { --font:"Public Sans",sans-serif; }

:root { --bg:#eef2ed; --ink:#172e27; --muted:#556d62; --accent:#c64518; --accent-soft:#ffede5; --line:#cbd9cd; --navy:#173c30; --floor:#d9e8d6; --floor-line:#315c48; --radius:3px; }
.top { background:#173c30; border-bottom:4px solid #f4b24f; }
.hero .wrap { position:relative; }
.hero h1 { text-transform:uppercase; font-size:clamp(30px,3.3vw,46px); font-weight:900; max-width:920px; letter-spacing:-.04em; }
.layout { grid-template-columns:minmax(320px,.8fr) minmax(0,1.4fr); gap:22px; }
.team { border-top:5px solid #173c30; padding:22px; }
.court-card { padding:26px; border:1px solid #a4bba7; background:#f9fcf7; }
.court-wrap { max-width:580px; background:#e3efdf; border:1px solid #b7ccba; padding:12px; }
.court-head h2 { font-size:23px; }
.roster th { font-size:13px; }
.roster td { padding:7px 3px; }
.roster input { padding:9px 8px; }
.rot-tabs button { width:48px; height:44px; border-radius:2px; font-size:17px; }
.role { border-radius:2px; }
.guide { border-top:5px solid #173c30; }
@media(max-width:940px) { .layout { grid-template-columns:minmax(0,1fr); } .court-card { order:-1; } }
@media(max-width:560px) { .court-card { padding:16px; } .court-wrap { padding:4px; } }

/* Keep the real tool within reach on phones; full guidance stays below it. */
@media(max-width:560px) {
 .hero { padding-top:18px; padding-bottom:18px; }
 .hero h1 { font-size:28px; }
 .hero .pills { display:none; }
 .hero .workspace-label { font-size:11px!important; margin-bottom:9px!important; }
 .hero .workspace-note { margin-top:12px; }
 .hero .workspace-note>span { display:none; }
 .top .wrap { min-height:0; }
}

@media(max-width:560px) { .rot-tabs { gap:5px; } .rot-tabs button { width:40px; } }

/* Screen workbench sizing must not override the original print sheets. */
@media print {
 body { background:#fff; font-size:11pt; }
 .wrap { max-width:none; padding:0; }
 .card { box-shadow:none; }
 .workspace-label,.workspace-note,.skiplink { display:none!important; }
}

/* Cold loads: keep late fonts and module hydration from moving visible content.
   With scripting disabled noscript contains real elements, so this placeholder
   does not apply and the original explanation remains immediately readable. */
@media screen {
 html { scrollbar-gutter:stable; }
 :is(#app,#studio,.tools>.tool):has(>noscript:only-child):not(:has(>noscript>*)) {
   min-block-size:max(480px,calc(100svh - 80px));
 }
 :is(#app,#studio,.tools>.tool):has(>noscript:only-child):not(:has(>noscript>*))::before {
   content:'Loading workspace…'; display:block; grid-column:1/-1;
   padding:24px; color:var(--muted); font-size:16px;
 }
}

/* Same-origin navigation: keep the old page opaque until the new one fades in.
   Do not fade out to the body background or slide the whole workbench. */
@view-transition { navigation:auto; }
@keyframes workspace-page-enter { from { opacity:0; } to { opacity:1; } }
::view-transition-group(root) { animation:none; }
::view-transition-old(root) { animation:none; opacity:1; mix-blend-mode:normal; }
::view-transition-new(root) {
 animation:workspace-page-enter 180ms cubic-bezier(.2,.7,.2,1) both;
 mix-blend-mode:normal;
}
::view-transition { pointer-events:none; }
@media(prefers-reduced-motion:reduce) {
 @view-transition { navigation:none; }
 ::view-transition-old(root),::view-transition-new(root) { animation:none; }
}
