.coaster-links { display:flex; flex-wrap:wrap; justify-content:end; gap:4px 15px; font-size:.91rem; }
.coaster-nav { display:flex; justify-content:space-between; align-items:center; gap:18px; min-height:70px; }
html[lang="zh-CN"] .coaster-page { --serif:"Songti SC","STSong","SimSun",serif; --sans:"Microsoft YaHei",system-ui,sans-serif; }
.coaster-intro { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr); align-items:center; gap:clamp(21px,5vw,78px); padding-block:clamp(25px,4vw,52px); }
.coaster-intro h1 { font-size:clamp(2.7rem,5vw,4.25rem); margin:8px 0 12px; }
.coaster-intro p:not(.eyebrow),.coaster-heading p,.coaster-notes p { color:var(--muted); max-width:58ch; }
.coaster-intro .button { margin-top:17px; }
.coaster-intro img { aspect-ratio:2.15; height:auto; object-fit:cover; object-position:48% 54%; border-radius:6px; }
.coaster-intro figcaption { margin-top:5px; color:var(--muted); font-size:.88rem; }
.coaster-builder { padding-block:20px 38px; }
.coaster-heading { margin-bottom:16px; }
.coaster-heading h2,.coaster-notes h2 { font-size:clamp(1.95rem,3.3vw,3.1rem); margin-bottom:5px; }
.coaster-workspace { display:grid; grid-template-columns:minmax(265px,.86fr) minmax(0,2.14fr); background:#f0eadf; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.coaster-settings { display:grid; gap:13px; align-content:start; padding:clamp(13px,2vw,23px); border-right:1px solid var(--line); }
.coaster-settings fieldset { min-width:0; margin:0; padding:0; border:0; }
.coaster-settings legend { margin-bottom:5px; font-weight:720; }
.coaster-choice > div { display:flex; flex-wrap:wrap; gap:6px; }
.coaster-choice label { position:relative; }
.coaster-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.coaster-choice span { display:inline-flex; align-items:center; min-height:36px; padding:4px 9px; border:1px solid #cfc5b4; border-radius:5px; background:var(--white); color:var(--moss); font-size:.88rem; cursor:pointer; }
.coaster-choice label:hover span { border-color:var(--moss); }
.coaster-choice input:checked + span { background:var(--moss); color:var(--white); border-color:var(--moss); }
.coaster-choice input:focus-visible + span { outline:2px solid var(--rust); outline-offset:3px; }
.coaster-fit label { display:block; font-size:.91rem; }
.coaster-fit .coaster-toggle { margin-bottom:8px; }
.coaster-fit [type=number] { width:min(100%,7rem); min-height:38px; margin:3px 0; padding:4px 8px; border:1px solid #cfc5b4; border-radius:5px; background:var(--white); }
.coaster-fit [type=number]:disabled { opacity:.5; }
.coaster-fit [type=checkbox] { accent-color:var(--moss); }
.coaster-fit p,.coaster-viewer figcaption { color:var(--muted); font-size:.87rem; }
.coaster-fit-status { margin-top:7px; padding:6px 9px; border:1px solid #bbc8b9; border-radius:5px; background:#ecf1e9; color:#203d2a !important; }
.coaster-fit-status[data-fit=overflow],.coaster-fit-status[data-fit=invalid] { border-color:#d6b5a1; background:#f9eee3; color:#732a19 !important; }
.coaster-settings .button { justify-self:start; }
.coaster-viewer { min-width:0; padding:11px; display:grid; align-content:start; gap:6px; }
.coaster-view-controls { display:flex; flex-wrap:wrap; gap:5px; }
.coaster-view-controls .filter { min-height:34px; background:var(--white); }
.coaster-view-controls .filter[aria-pressed=true] { background:var(--moss); }
.coaster-reset { margin-left:auto; }
.coaster-scene { width:100%; min-height:320px; max-height:590px; display:block; border:1px solid #d5ccbc; border-radius:7px; background:radial-gradient(ellipse at 50% 42%,#fffaf0,#eae0ce); touch-action:none; cursor:grab; }
.coaster-scene[data-dragging] { cursor:grabbing; }
.coaster-result { background:var(--fern); border:1px solid #c7d0c2; border-radius:7px; margin-top:12px; padding:16px; }
.coaster-result h3 { font-size:1.45rem; margin-bottom:8px; }
.coaster-result details { margin-top:9px; }
.coaster-result summary { cursor:pointer; }
.coaster-result pre { font:.91rem/1.55 var(--sans); white-space:pre-wrap; overflow-wrap:anywhere; }
.coaster-notes { border-top:1px solid var(--line); padding-block:26px 56px; }
@media(max-width:760px){
  .coaster-nav { min-height:60px; }
  .coaster-intro,.coaster-workspace { grid-template-columns:minmax(0,1fr); }
  .coaster-intro img { aspect-ratio:1.83; }
  .coaster-settings { border-right:0; border-bottom:1px solid var(--line); }
  .coaster-scene { min-height:245px; }
}