html:has(.ms), body:has(.ms) { margin:0; background:#f4f2e9; color-scheme:light; }
.ms { --ink:#243b39; --muted:#657571; color:var(--ink); padding:0; width:100%; margin:0; font-family:Inter,system-ui,sans-serif; }
.ms-content { padding:28px 4vw 50px; max-width:1600px; margin:auto; }
.ms * { box-sizing:border-box; }
.ms-header { display:flex; justify-content:space-between; border-bottom:1px solid #d5dad0; padding-bottom:23px; font-size:10px; letter-spacing:1.6px; }
.ms a { color:inherit; }
.ms-header a { text-decoration:none; }
.ms-title { display:flex; justify-content:space-between; align-items:end; padding:34px 0 29px; gap:20px; }
.ms-kicker,.ms-label { font-size:10px; font-weight:600; letter-spacing:1.5px; margin:0 0 13px; }
.ms h1 { font-size:clamp(36px,4.3vw,66px); font-weight:500; letter-spacing:-3px; line-height:1.05; margin:0; }
.ms h1 span { color:#b58b43; }
.ms-title>p { color:var(--muted); font-size:14px; line-height:1.7; margin:0 0 3px; }
.ms-workbench { display:grid; grid-template-columns:minmax(0,1fr) 300px; height:min(calc(100svh - 50px), calc((100vw - 315px) * 2 / 3)); }
.ms-stage { position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; align-items:center; background:#111b1f; border-radius:0; overflow:hidden; width:100%; }
.ms canvas { display:block; width:min(100%, calc((100svh - 50px) * 1.5)); height:auto; max-height:calc(100svh - 50px); aspect-ratio:3/2; flex-shrink:0; image-rendering:pixelated; touch-action:none; cursor:crosshair; }
.ms-controls { display:flex; flex-direction:column; gap:24px; padding:24px 20px; overflow-y:auto; min-height:0; }
.ms-control-group { min-width:0; }
.ms-label { color:#79847b; margin-top:24px; }
.ms-label:first-child { margin-top:0; }
.ms button,.ms select { font:inherit; color:var(--ink); cursor:pointer; border:1px solid #ced4c9; border-radius:5px; background:transparent; min-height:40px; }
.ms button:hover { background:#e7e9df; }
.ms-materials { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ms-materials button { display:flex; text-align:left; align-items:center; gap:9px; padding:11px 8px; }
.ms-materials button[aria-pressed=true] { border-color:#50766a; background:#e3e9dd; box-shadow:inset 0 0 0 1px #50766a; }
.ms-materials strong { display:block; font-size:12px; font-weight:600; }
.ms-materials small { display:block; font-size:9px; color:var(--muted); margin-top:3px; }
.ms-swatch { width:15px; height:19px; border-radius:3px; flex-shrink:0; }
.ms-swatch-1 { background:#e9b664; }.ms-swatch-2 { background:#57acc1; }.ms-swatch-3 { background:#637474; }.ms-swatch-0 { border:1px dashed #8c9c93; }
.ms-range { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:17px 0; font-size:11px; }
.ms input[type=range] { width:125px; accent-color:#456d5e; }
.ms select { padding:8px; font-size:12px; width:100%; }
.ms-range select { width:133px; }
.ms-playback,.ms-secondary { display:flex; gap:8px; }
.ms-playback button { flex:1; font-size:12px; }
.ms-playback button:first-child { color:#faf9f0; background:#294d41; border-color:#294d41; }
.ms-secondary { margin-top:8px; }.ms-secondary button { flex:1; font-size:11px; }
.ms-hint { font-size:10px; line-height:2; color:var(--muted); margin:18px 0 0; }.ms kbd { font:9px ui-monospace,monospace; border:1px solid #cdd2c7; border-radius:3px; padding:2px 4px; }
.ms-explanation { display:grid; grid-template-columns:1fr 1.3fr; gap:60px; border-top:1px solid #d5dad0; margin-top:40px; padding-top:32px; }
.ms h2 { font-size:30px; font-weight:450; line-height:1.2; letter-spacing:-1px; margin:0; }.ms h3 { font-size:14px; margin:0 0 12px; }.ms-explanation p:not(.ms-kicker) { font-size:12px; line-height:1.85; color:var(--muted); margin:0 0 10px; }
.ms :focus-visible { outline:2px solid #a57831; outline-offset:3px; }.ms-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:800px) { .ms-content { padding:20px 18px 35px; }.ms-controls { grid-template-columns:1fr; gap:24px; }.ms-materials { grid-template-columns:repeat(4,1fr); }.ms-title>p { display:none; }.ms-explanation { gap:24px; } }
@media(max-width:480px) { .ms-header>span { display:none; }.ms-materials { grid-template-columns:1fr 1fr; }.ms-controls { grid-template-columns:1fr; }.ms-explanation { grid-template-columns:1fr; }.ms-title { padding-top:27px; }.ms h1 { letter-spacing:-1.8px; }.ms-range input { width:55%; } }

.ms-examples { border-top:1px solid #d5dad0; margin-top:40px; padding-top:32px; }
.ms-examples-heading { display:flex; justify-content:space-between; align-items:end; gap:32px; }
.ms-examples-heading>p { max-width:330px; margin:0; }
.ms-examples p { color:var(--muted); font-size:12px; line-height:1.85; }
.ms-legend { display:flex; flex-wrap:wrap; gap:12px 24px; margin:25px 0; font-size:11px; }
.ms-legend span { display:flex; align-items:center; gap:7px; }
.ms-legend i { display:inline-block; width:13px; height:13px; border-radius:2px; }
.ms-example-air { background:#1c2b30; }
.ms-partition-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.ms-partition-step { border-top:2px solid #ccd5c7; padding-top:16px; }
.ms-partition-step h3 { margin-bottom:18px; }
.ms-partition-step svg { width:100%; max-width:190px; display:block; }
.ms-partition-label { display:block; margin:13px 0 8px; font:10px ui-monospace,monospace; text-transform:uppercase; letter-spacing:1px; }
.ms-partition-step p { margin:0; }
.ms-examples .ms-example-note { font-size:11px; max-width:880px; margin:22px 0 0; }
.ms-rules-heading { margin:32px 0 20px; }
.ms-rules-heading h3 { font-size:20px; font-weight:500; letter-spacing:-.4px; }
.ms-rules-heading p { margin:0; max-width:750px; }
.ms-rule-examples { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ms-rule-example { border:1px solid #d5dad0; border-radius:6px; padding:22px; }
.ms-rule-example h3 { font-size:13px; display:flex; align-items:center; gap:12px; }
.ms-rule-example h3>span { color:#8a967f; font:10px ui-monospace,monospace; }
.ms-rule-sequence { display:flex; justify-content:center; align-items:center; gap:20px; margin:23px 0 16px; }
.ms-rule-sequence figure { margin:0; }
.ms-example-block { display:grid; grid-template-columns:repeat(2,36px); gap:3px; padding:4px; border:2px solid #aec2a5; background:#111b1f; border-radius:4px; }
.ms-example-cell { width:36px; height:36px; display:grid; place-items:center; border-radius:2px; font:15px ui-monospace,monospace; }
.ms-example-cell-0 { background:#1c2b30; color:#93a6a0; }.ms-example-cell-1 { background:#e9b664; color:#243b39; }.ms-example-cell-2 { background:#57acc1; color:#172c32; }.ms-example-cell-3 { background:#637474; color:#fff; }
.ms-rule-sequence figcaption { text-align:center; font:10px ui-monospace,monospace; margin-top:8px; color:var(--muted); }
.ms-rule-arrow { font-size:22px; color:#708668; padding-bottom:20px; }
.ms-rule-example p { margin:0; }
@media(max-width:1000px) { .ms-rule-examples { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { .ms-partition-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }.ms-examples-heading { display:block; }.ms-examples-heading>p { max-width:none; margin-top:16px; } }
@media(max-width:480px) { .ms-rule-examples { grid-template-columns:1fr; }.ms-partition-steps { gap:24px 16px; }.ms-partition-step h3 { font-size:13px; }.ms-examples h2 { font-size:27px; }.ms-rule-example { padding:20px; } }

@media(max-width:800px) { .ms-workbench { display:block; height:auto; }.ms-stage { max-height:calc(100svh - 50px); }.ms-controls { overflow:visible; padding:24px 18px; } }

@media(min-width:801px) { .ms canvas { width:100%; height:0; min-height:0; max-height:none; aspect-ratio:auto; flex:1 1 0; } }

.ms-labs-credit { color:#657571; display:inline-block; margin-top:18px; font-size:12px; letter-spacing:1.6px; text-decoration:none; }

@media(max-width:800px), (hover:none), (pointer:coarse) { .ms-mouse-hint { display:none; } }


