:root{color-scheme:light;--paper:#e8dfcd;--ink:#363c34;--muted:#888c80;--line:#dedfd5;--accent:#69765a;--panel:#faf9f5;font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,summary,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}
.paper-swatches{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:14px 0}.paper-swatch{width:100%;height:32px;border:1px solid #aaa798;border-radius:5px;background:transparent;color:var(--ink)}.paper-swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:2px}.paper-slot{position:relative}.paper-remove{position:absolute;right:-5px;top:-9px;width:20px;height:20px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--panel);font-size:14px}.paper-inputs{display:flex;align-items:center;gap:7px;font-size:11px}.paper-inputs input[type=color]{width:35px;height:30px;padding:0;border:0;background:none}.paper-inputs input[type=text]{width:85px;min-width:0;padding:6px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--ink)}.paper-inputs input[aria-invalid=true]{border-color:#a34d3e}.paper-settings .quiet{font-size:10px;padding:6px 8px}
@media(min-width:721px){.workspace.panel-left{grid-template-columns:316px minmax(0,1fr)}.workspace.panel-left .controls{grid-column:1;grid-row:1;border-left:0;border-right:1px solid var(--line)}.workspace.panel-left .stage{grid-column:2;grid-row:1}}
@media(max-width:720px){#layoutToggle{display:none}}
.topbar{height:48px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--panel)}.back{font-size:12px;color:#74796d}.back:hover{color:var(--ink)}.brand{display:flex;align-items:center;gap:10px;font-size:17px;letter-spacing:2px}.brand-mark{font-size:28px;color:var(--accent)}.brand small{font-size:10px;letter-spacing:0;border:1px solid #d7dccc;border-radius:4px;padding:3px 5px;color:var(--accent)}.quiet{border:1px solid var(--line);background:transparent;border-radius:7px;padding:9px 13px;font-size:12px;min-height:36px}.quiet:hover{background:#e9ecdf}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 316px;height:var(--site-shell-viewport-height,100dvh);min-height:450px}.stage{position:relative;overflow:hidden;isolation:isolate;background:var(--paper)}#scene,#guidesCanvas{position:absolute;inset:0;width:100%;height:100%}#scene{touch-action:none;cursor:grab}#scene:active{cursor:grabbing}#guidesCanvas{pointer-events:none;z-index:1}.stage-heading{position:absolute;left:42px;top:34px;z-index:2;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2.5px;color:#8e9385}.stage-heading h1{font-family:Georgia,"Songti SC","SimSun",serif;font-size:29px;letter-spacing:3px;font-weight:400;margin:13px 0 12px}.stage-heading p{font-size:11px;letter-spacing:1px;color:var(--muted);margin:0}.modes{position:absolute;z-index:3;top:36px;right:30px;display:flex;padding:4px;background:#faf9f5e8;border:1px solid var(--line);border-radius:9px;gap:3px}.modes button{border:0;background:transparent;border-radius:5px;font-size:9px;color:#a0a594;padding:10px 12px}.modes b{font-size:12px;font-weight:400;margin-left:7px;color:#6f7666}.modes button[aria-pressed=true]{background:var(--accent);color:#c8cfbc}.modes button[aria-pressed=true] b{color:white}.stage-bottom{position:absolute;z-index:2;left:42px;right:32px;bottom:44px;display:flex;align-items:center;justify-content:space-between;gap:14px}.stage-bottom>div{display:flex;flex-direction:column;gap:8px}.stage-bottom strong{font-family:Georgia,"Songti SC",serif;font-size:24px;font-weight:400;letter-spacing:3px}.stage-bottom #projectionCaption{font-size:10px;color:var(--muted)}.stage-bottom p{font-size:10px;color:#969a8d;letter-spacing:1px}.stage-bottom p span{margin:0 7px}.paper-corner{position:absolute;bottom:13px;left:42px;font-size:9px;letter-spacing:2px;color:#adb1a2}.lamp-handle{position:absolute;z-index:4;width:40px;height:40px;border-radius:50%;transform:translate(-50%,-50%);border:1px solid #be9c58;background:#fff6d8e6;color:#ac843b;font-size:24px;cursor:move;touch-action:none;box-shadow:0 0 0 6px #dcc68c18}.canvas-error{position:absolute;z-index:5;left:10%;right:10%;top:45%;padding:24px;background:var(--panel);border:1px solid var(--line);font-size:14px;line-height:2}.canvas-error a{text-decoration:underline}
.controls{background:var(--panel);border-left:1px solid var(--line);overflow:auto;scrollbar-width:thin;scrollbar-color:#d5d8cc transparent}.control-body{padding:26px 25px 20px}.control-section{padding-bottom:23px;margin-bottom:22px;border-bottom:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2{font-size:12px;font-weight:500;margin:0}.section-title>span{font-size:8px;letter-spacing:1.1px;color:#969d8d}.shape-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.shape-button{padding:8px 0 7px;min-height:62px;border:1px solid transparent;border-radius:6px;background:transparent;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:9px;color:#919784}.shape-button svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.2}.shape-button:hover{background:#eff1e7}.shape-button[aria-pressed=true]{border-color:#c1cbb4;background:#eaf0e1;color:#59694c}.dimensions{margin-top:17px}.dimension{display:grid;grid-template-columns:1fr 78px;align-items:center;margin:8px 0;font-size:11px;color:#7b8273}.dimension input{width:78px;padding:6px 8px;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink);font-size:11px}.text-button{padding:4px 0;border:0;background:none;color:#8c9580;font-size:10px}.view-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.view-grid button{font-size:10px;border:1px solid var(--line);border-radius:5px;background:transparent;padding:8px 2px}.view-grid button:hover,.view-grid button.selected{border-color:#a8b499;background:#edf0e6}.range-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#737d69;margin-top:18px;margin-bottom:5px}.range-label output{font-size:10px;font-variant-numeric:tabular-nums;color:#929b87}input[type=range]{display:block;width:100%;height:21px;accent-color:#788767;cursor:pointer;margin:0}input[type=range]:disabled{opacity:.35;cursor:not-allowed}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:34px;font-size:11px;color:#7d8574}.switch-row input{appearance:none;position:relative;width:29px;height:17px;border-radius:20px;background:#d9ddd2;cursor:pointer;flex:none;transition:background .15s}.switch-row input:before{content:'';position:absolute;left:3px;top:3px;width:11px;height:11px;background:white;border-radius:50%;transition:transform .15s}.switch-row input:checked{background:var(--accent)}.switch-row input:checked:before{transform:translateX(12px)}.light-note{display:flex;gap:15px;align-items:center;background:#f1efdf;border-radius:6px;padding:10px 13px}.light-note span{font-size:26px;color:#b49b5a}.light-note p{font-size:10px;line-height:1.8;color:#9a957d;margin:0}.help{font-size:10px;line-height:1.8;color:#979f8e}.advanced{font-size:11px;color:#828b76}.advanced summary{cursor:pointer}.advanced select{width:100%;padding:8px;border:1px solid var(--line);background:transparent;border-radius:5px;color:var(--ink);font-size:11px}.panel-footer{margin-top:28px;font-size:9px;line-height:2.3;color:#a1a797}.panel-footer a{color:#79866a}.drawer-toggle{display:none}.toast{position:fixed;z-index:20;bottom:30px;left:50%;transform:translateX(-50%);background:#424c38;color:#fff;padding:11px 18px;border-radius:8px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .15s}.toast.visible{opacity:1}
@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 350px}.control-body{padding:32px}.stage-heading{left:60px;top:48px}.stage-bottom{left:60px;bottom:60px}}
@media(max-width:1100px){.stage-heading{top:27px;left:28px}.stage-heading h1{font-size:25px}.modes{top:140px;left:28px;right:auto}.stage-bottom{left:28px;right:24px}.stage-bottom p{display:none}}
@media(max-width:720px){.topbar{height:44px;padding:0 16px}.brand{font-size:14px;letter-spacing:1px;gap:5px}.brand-mark{font-size:23px}.back span{display:none}.quiet{font-size:10px;padding:8px 9px}.workspace{display:block;height:var(--site-shell-viewport-height,100dvh);min-height:360px}.stage{height:calc(100% - 58px)}.stage-heading{top:22px;left:23px}.stage-heading h1{font-size:24px;margin:10px 0}.stage-heading p{font-size:10px;letter-spacing:0}.eyebrow{font-size:8px}.modes{top:124px;left:22px;padding:3px}.modes button{padding:8px 11px}.stage-bottom{bottom:22px;left:24px;right:20px}.stage-bottom strong{font-size:20px}.stage-bottom>div{gap:5px}.paper-corner{display:none}.controls{position:absolute;left:0;right:0;bottom:0;z-index:7;border:1px solid var(--line);border-radius:18px 18px 0 0;max-height:65dvh;overflow:hidden;box-shadow:0 -8px 24px #424c3807}.drawer-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;height:58px;border:0;background:var(--panel);padding:0 24px;font-size:12px}.drawer-toggle:before{content:'';position:absolute;top:6px;left:calc(50% - 15px);width:30px;height:3px;border-radius:3px;background:#d0d5c6}.control-body{display:none;max-height:calc(65dvh - 58px);overflow:auto;padding:12px 24px 24px}.controls.open .control-body{display:block}.shape-button{min-height:68px}.dimension input{min-height:36px}.view-grid button{min-height:36px}.switch-row{min-height:42px}.toast{bottom:75px;max-width:90vw;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:720px){
  .drawer-toggle{touch-action:none;user-select:none;cursor:ns-resize}
  .controls.open{height:var(--drawer-height,46dvh);max-height:65dvh}
  .controls.open .control-body{max-height:calc(min(var(--drawer-height,46dvh),65dvh) - 60px);overscroll-behavior:contain}
  .workspace:has(.controls.open) .stage{height:calc(100% - min(var(--drawer-height,46dvh),65dvh))}
  .workspace:has(.controls.open) .stage-heading{top:13px}
  .workspace:has(.controls.open) .stage-heading h1,.workspace:has(.controls.open) .stage-heading p,.workspace:has(.controls.open) .stage-bottom{display:none}
  .workspace:has(.controls.open) .modes{top:36px}
}
.paper-settings{margin-bottom:20px}.paper-settings>summary{padding:8px 0}.paper-settings .section-title{margin-top:16px}.paper-settings .paper-inputs{margin:12px 0}.topbar .brand{font-size:14px}.topbar .brand-mark{font-size:22px}.topbar .quiet{min-height:30px;padding:5px 10px}

.practice-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px;font-size:12px;color:var(--muted)}
.practice-actions .quiet{flex-shrink:0}
