:root{color-scheme:light;--canvas:#f1f2f3;--surface:#fff;--ink:#24272a;--muted:#676d73;--line:#e4e6e8;--orange:#e75d16;--orange-dark:#a83c08;--accent-soft:#fff0e8;--radius:9px;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;font-size:16px;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f49560;outline-offset:4px}button{color:inherit}button,button svg{transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}.app-shell{height:100dvh;min-height:680px;display:flex;flex-direction:column}.topbar{height:80px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:22px}.identity{display:flex;align-items:center;gap:12px;min-width:0}.brand{color:#292d31;text-decoration:none;font:700 25px/1 "Arial",sans-serif;letter-spacing:-1.4px;white-space:nowrap}.brand span{font-size:20px;letter-spacing:-.8px;font-weight:600}.enterprise{font-size:11px;line-height:1;padding:5px 8px;border:1px solid #d9dde0;border-radius:100px;color:#51575c;align-self:center}.brand-divider{height:24px;width:1px;background:var(--line);margin:0 6px}.identity h1{font-size:15px;font-weight:500;margin:0;white-space:nowrap;letter-spacing:.02em}.header-actions{display:flex;gap:12px;flex-shrink:0}.button{min-height:42px;border-radius:7px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;font-size:14px;font-weight:500;white-space:nowrap}.button-quiet{background:transparent;color:#555c62}.button-quiet:hover{background:#f3f4f5}.button-primary{background:var(--ink);color:white;border-color:var(--ink)}.button-primary:hover{background:#3d4247}.button-surface{background:rgba(255,255,255,.96);border-color:#dfe2e5;color:#4d555b}.button-surface:hover{background:#fff;border-color:#bbc1c6}.button-surface[aria-pressed=true],.button-surface.active{background:var(--accent-soft);color:var(--orange-dark);border-color:#efa477}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 308px}.studio{position:relative;min-width:0;min-height:0;overflow:hidden;background:var(--canvas);display:flex;flex-direction:column}.stage-heading{position:absolute;z-index:2;left:36px;right:32px;top:30px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;pointer-events:none}.stage-heading h2{margin:0 0 9px;font-weight:500;font-size:22px;letter-spacing:-.03em;line-height:1.3;text-wrap:balance}.stage-heading p{font-size:13px;color:#666e75;margin:0;letter-spacing:.015em}.render-status{font-family:"Segoe UI","Microsoft YaHei",sans-serif;flex-shrink:0;font-size:12px;color:#6c747b;padding:6px 10px;border:1px solid #d7dbdf;border-radius:5px;line-height:1.2;background:#f5f6f7e6}#viewport{position:absolute;inset:0 0 100px;outline:none;touch-action:none}#viewport canvas{display:block;width:100%;height:100%;outline:none}.loading{position:absolute;z-index:5;inset:0;background:var(--canvas);display:flex;align-items:center;justify-content:center;gap:13px;font-size:14px;color:#5c646b}.loading-ring{width:21px;height:21px;border:2px solid #d6dadc;border-top-color:var(--orange);border-radius:50%;animation:turn 1s linear infinite}.error-message{position:absolute;z-index:6;inset:36% 12% auto;padding:24px;background:white;border:1px solid #edbba2;border-radius:12px;line-height:1.7;font-size:15px;box-shadow:0 12px 40px #24272a14}.stage-tools{position:absolute;bottom:103px;left:32px;right:32px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:14px;pointer-events:none}.stage-actions{display:flex;gap:8px;pointer-events:auto}.interaction-hint{display:flex;gap:8px;align-items:center;color:#656d74;font-size:12px;line-height:1.5}.interaction-hint svg{height:17px;width:17px}.hint-divider{margin:0 9px;color:#959da3}.touch-hint{display:none}.view-dock{position:absolute;z-index:3;bottom:24px;left:50%;transform:translateX(-50%);background:#fff;border:1px solid #e0e3e6;box-shadow:0 4px 15px #28343f05;border-radius:12px;display:flex;align-items:center;padding:7px 9px;gap:8px;max-width:calc(100% - 48px)}.dock-label{font-size:12px;color:#6a7178;padding:0 12px;white-space:nowrap}.view-buttons{display:flex;align-items:center;gap:3px}.view-buttons button{height:40px;min-width:53px;border:0;background:transparent;border-radius:6px;padding:0 12px;font-size:14px;white-space:nowrap;color:#626a71}.view-buttons button:hover{background:#f0f2f3;color:#24272a}.view-buttons button.active,.view-buttons button[aria-pressed=true]{background:var(--ink);color:white}.view-divider{height:17px;width:1px;background:var(--line);margin:0 5px}.control-panel{border-left:1px solid var(--line);padding:28px 24px 20px;overflow:auto;background:var(--surface);scrollbar-width:thin;scrollbar-color:#d9dde0 transparent}.panel-intro{padding-bottom:24px}.panel-title{display:flex;align-items:center;gap:9px}.panel-title svg{width:19px;height:19px;color:#5d646a}.panel-title h2{font-size:17px;font-weight:600;margin:0;letter-spacing:.015em}.panel-intro p{font-size:13px;line-height:1.6;margin:8px 0 0;color:var(--muted)}.control-section{padding:22px 0;border-top:1px solid var(--line)}.control-section h3{font-size:14px;line-height:1.4;margin:0 0 16px;font-weight:600}.light-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.light-choice{background:transparent;border:1px solid #dce0e3;border-radius:7px;padding:5px 5px 8px;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:8px;color:#626970}.light-choice:hover{border-color:#aeb6bc;color:#24272a}.light-choice.active,.light-choice[aria-pressed=true]{border-color:var(--orange);color:var(--orange-dark);background:#fffaf7;box-shadow:0 0 0 1px #e75d1614}.light-preview{display:block;width:100%;height:48px;border-radius:4px;position:relative;overflow:hidden}.light-preview:after{content:"";display:block;position:absolute;top:15px;left:22%;height:21px;width:56%;transform:skewY(-10deg);border-radius:1px;box-shadow:7px 8px 8px #15253322}.preview-studio{background:linear-gradient(135deg,#e0e3e6,#f7f7f8)}.preview-studio:after{background:linear-gradient(115deg,#fff,#b2bac0)}.preview-soft{background:#f1f0ed}.preview-soft:after{background:linear-gradient(115deg,#fff,#d4d6d7);box-shadow:7px 8px 12px #15253315}.preview-dramatic{background:linear-gradient(120deg,#585c61,#262b30)}.preview-dramatic:after{background:linear-gradient(105deg,#f5f5f5,#5a636b);box-shadow:7px 8px 5px #15191d77}.range-control{margin-top:23px}.control-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.control-label label{font-size:13px;line-height:1.5;color:#4e555b}.control-label output{font:12px/1.5 "Cascadia Code",Consolas,monospace;color:#5a6269;background:#f3f4f5;padding:2px 6px;min-width:41px;text-align:right;border-radius:3px;font-variant-numeric:tabular-nums}input[type=range]{display:block;width:100%;margin:0;height:20px;cursor:pointer;accent-color:var(--orange);appearance:none;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#dde1e4;border-radius:3px}input[type=range]::-moz-range-track{height:3px;background:#dde1e4;border-radius:3px}input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;margin-top:-5px;background:var(--orange);border:2px solid white;outline:1px solid var(--orange);border-radius:50%;box-shadow:0 1px 3px #4e271322}input[type=range]::-moz-range-thumb{width:10px;height:10px;background:var(--orange);border:2px solid white;outline:1px solid var(--orange);border-radius:50%}.range-extents{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7a8187;margin-top:3px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title h3{margin:0}.material-chip{font-size:11px;color:#6d747b;display:flex;align-items:center;gap:6px}.material-chip>span{width:12px;height:12px;display:inline-block;border-radius:50%;border:1px solid #cbd0d4;background:linear-gradient(125deg,#8c959e,#f6f7f8 40%,#b1b7bd)}.background-options{display:flex;gap:9px}.background-options button{flex:1;min-height:39px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dfe3e6;border-radius:6px;background:white;color:#666d74;font-size:13px}.background-options button:hover{border-color:#aeb6bc}.background-options button.active,.background-options button[aria-pressed=true]{color:#30353a;border-color:#8e969e;background:#f5f6f7}.background-swatch{display:inline-block;width:14px;height:14px;border-radius:50%}.light-swatch{background:#e7e9ec;border:1px solid #cbd1d6}.dark-swatch{background:#383e46;border:1px solid #252a30}.panel-note{border-top:1px solid var(--line);padding-top:20px;margin:0;font-size:12px;line-height:1.8;color:#777f86}.studio.is-dark .stage-heading h2,.studio.dark .stage-heading h2{color:#e9edf1}.studio.is-dark .stage-heading p,.studio.dark .stage-heading p,.studio.is-dark .interaction-hint,.studio.dark .interaction-hint{color:#b8c0c8}.studio.is-dark .render-status,.studio.dark .render-status{background:#30363ce6;border-color:#575f68;color:#d1d7dd}
@keyframes turn{to{transform:rotate(360deg)}}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 336px}.control-panel{padding:32px 28px}.topbar{height:88px;padding:0 40px}.stage-heading{left:44px;top:38px}.stage-heading h2{font-size:26px}.control-section{padding:26px 0}.range-control{margin-top:26px}.light-preview{height:55px}.view-dock{bottom:30px}.stage-tools{bottom:112px}}
@media(max-width:1180px){.topbar{padding:0 22px}.brand{font-size:23px}.brand span{font-size:18px}.identity{gap:9px}.identity h1{font-size:14px}.enterprise{display:none}.workspace{grid-template-columns:minmax(0,1fr) 280px}.control-panel{padding:26px 20px}.stage-heading{left:26px;right:24px;top:26px}.stage-heading h2{font-size:20px}.stage-tools{left:24px;right:24px}.interaction-hint{max-width:145px}.view-dock{padding:6px;max-width:calc(100% - 36px)}.dock-label{display:none}.view-buttons button{min-width:43px;padding:0 9px}.view-divider{margin:0 1px}.stage-actions .button{padding:0 10px;font-size:13px}}
@media(max-width:850px){.topbar{height:72px;padding:0 18px}.identity h1{display:none}.brand-divider{display:none}.header-actions{gap:4px}.button-primary{padding:0 12px}.workspace{grid-template-columns:minmax(0,1fr) 252px}.control-panel{padding:24px 17px}.stage-heading{left:22px;right:22px;top:24px}.stage-heading h2{font-size:18px}.render-status{display:none}.view-buttons button{min-width:37px;padding:0 6px;font-size:13px}.view-dock{bottom:20px;max-width:calc(100% - 28px)}.stage-tools{bottom:90px;left:20px;right:20px;align-items:flex-end}.interaction-hint{font-size:11px;max-width:110px}.interaction-hint svg{display:none}.hint-divider{margin:0 5px}.stage-actions .button{width:40px;min-height:40px;padding:0}.stage-actions .button span{display:none}#viewport{bottom:88px}.light-preview{height:40px}.light-choice{font-size:11px}.panel-intro p{font-size:12px}.control-section{padding:20px 0}.range-control{margin-top:20px}}
@media(max-width:680px){.app-shell{height:auto;min-height:100dvh}.topbar{height:66px;padding:0 16px}.brand{font-size:22px}.brand span{font-size:17px}.header-actions .button-quiet{width:40px;padding:0}.header-actions .button-quiet span{display:none}.button-primary{font-size:12px;gap:6px;min-height:38px}.button-primary svg{width:16px;height:16px}.workspace{display:flex;flex-direction:column;min-height:0;flex:1}.studio{height:min(67dvh,560px);min-height:390px;flex-shrink:0}.stage-heading{left:20px;right:20px;top:23px}.stage-heading h2{font-size:18px;margin-bottom:6px}.stage-heading p{font-size:12px}.stage-tools{bottom:87px;left:18px;right:18px;align-items:center}.interaction-hint{font-size:11px;max-width:none}.interaction-hint svg{display:block;width:15px;height:15px}.touch-hint{display:inline}.stage-actions{gap:6px}.stage-actions .button{width:35px;min-height:35px}.stage-actions svg{width:17px;height:17px}.view-dock{bottom:17px;width:calc(100% - 32px);max-width:490px;padding:6px;justify-content:center}.view-buttons{width:100%;justify-content:space-between;gap:1px}.view-buttons button{flex:1;min-width:0;padding:0 7px;height:38px;font-size:13px}.view-divider{margin:0 3px}#viewport{bottom:92px}.control-panel{border-left:0;border-top:1px solid var(--line);padding:24px 22px 28px;overflow:visible;display:grid;grid-template-columns:1fr 1fr;column-gap:28px}.panel-intro{grid-column:1/-1;padding-bottom:20px}.panel-title h2{font-size:17px}.panel-intro p{font-size:13px}.control-section{padding:20px 0}.control-section h3{font-size:14px}.light-options{gap:7px}.light-preview{height:45px}.light-choice{font-size:12px}.range-control{margin-top:22px}.control-label label{font-size:13px}.range-extents{font-size:11px}.material-section .section-title{min-height:20px;flex-wrap:wrap}.material-chip{display:none}.material-section .range-control:first-of-type{margin-top:25px}.background-section{grid-column:1/-1;display:flex;align-items:center;gap:28px;padding:20px 0}.background-section h3{margin:0;min-width:56px}.background-options{flex:1;max-width:260px}.background-options button{min-height:44px}.panel-note{grid-column:1/-1;font-size:12px}.panel-note br{display:none}.loading{font-size:13px}.error-message{inset:30% 8% auto;padding:20px;font-size:14px}}
@media(max-width:370px){.brand span{font-size:15px}.brand{font-size:20px}.header-actions .button-primary{padding:0 8px;font-size:11px}.control-panel{padding-left:18px;padding-right:18px;column-gap:20px}.view-buttons button{font-size:12px;padding:0 4px}.interaction-hint{font-size:10px}.stage-tools{left:16px;right:16px}.touch-hint{display:none}.light-options{gap:4px}.light-choice{padding:4px 4px 7px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Keep interactive labels readable and controls easy to tap at every viewport. */
.control-label label,.light-choice,.background-options button{font-size:.875rem}
.view-buttons button{min-height:44px;font-size:.875rem}
#auto-rotate,#light-sweep,#reset-view,#fullscreen,#export-image{min-height:44px;min-width:44px;font-size:.875rem}
.background-options button{min-height:44px}
input[type=range]{height:32px}

/* A compact material desk: keep every adjustment in view without shrinking its target. */
:root{--canvas:#f1f2f3;--surface:#fdfdfd;--line:#e1e4e6;--orange:#e76a22;--orange-dark:#a84410;--accent-soft:#fff1e7}
.stage-heading h2{font-family:"Arial","Segoe UI",sans-serif;font-size:23px;font-weight:600;letter-spacing:.015em;margin-bottom:7px}
.stage-heading p{font-size:13px;color:#626b72}
.control-panel{padding:22px 24px 18px}
.panel-intro{padding-bottom:14px}
.panel-intro p{margin-top:4px;line-height:1.45}
.control-section{padding:15px 0}
.control-section h3{margin-bottom:11px}
.section-title h3{margin-bottom:0}
.light-choice{padding:5px 5px 7px;gap:5px;min-height:62px}
.light-preview{height:30px}
.light-preview:after{top:9px;height:15px}
.preview-soft{background:#f0f2f3}
.range-control{margin-top:10px}
.control-label{margin-bottom:0}
.control-label label{font-size:14px}
.control-label output{font-size:13px;line-height:1.4;padding:2px 6px}
input[type=range]{height:44px}
.range-extents{margin-top:-7px;line-height:14px;color:#707980;pointer-events:none}
.background-section{display:flex;align-items:center;gap:18px}
.background-section h3{margin:0;flex-shrink:0}
.background-options{flex:1}
.panel-note{padding-top:13px;font-size:12px;line-height:1.65;color:#677078}
.stage-actions{flex-shrink:0}
#light-sweep[aria-pressed=true]{background:var(--accent-soft);border-color:#e69563;color:var(--orange-dark)}
@media(min-width:681px){.topbar{height:76px}.control-panel{padding-top:22px;padding-bottom:18px}}
@media(min-width:1600px){.control-panel{padding-left:28px;padding-right:28px}.stage-heading h2{font-size:25px}}
@media(min-width:681px) and (max-width:1180px){.control-panel{padding-left:18px;padding-right:18px}.stage-tools{gap:10px}.interaction-hint{max-width:128px}.stage-actions .button{padding:0 10px}}
@media(max-width:850px){.stage-actions .button{width:44px;height:44px;padding:0}.stage-actions .button span{display:none}}
@media(max-width:680px){.control-panel{padding:22px 20px 24px;column-gap:24px}.panel-intro{padding-bottom:16px}.control-section{padding:16px 0}.light-choice{min-height:62px}.light-preview{height:30px}.material-section .range-control:first-of-type{margin-top:10px}.background-section{padding:16px 0;gap:20px}.background-options{max-width:260px}.stage-heading h2{font-size:21px}.stage-heading p{font-size:12px}.stage-tools{gap:10px;left:18px;right:18px}.stage-actions{gap:6px}.stage-actions .button{width:44px;height:44px}.interaction-hint{font-size:11px;max-width:160px;gap:6px}.interaction-hint .touch-hint{display:none}.hint-divider{margin:0 5px}.panel-note{padding-top:14px;line-height:1.7}.panel-note br{display:block}}
@media(max-width:370px){.stage-tools{left:16px;right:16px;gap:8px}.interaction-hint{max-width:125px}.interaction-hint svg{display:none}.control-panel{padding-left:18px;padding-right:18px;column-gap:20px}.light-choice{padding-left:3px;padding-right:3px}}
@media(max-width:680px){.control-panel{grid-template-columns:minmax(0,1fr);column-gap:0}.control-section{min-width:0}.light-options{gap:10px}.light-choice{white-space:nowrap}.material-chip{display:flex}.background-options{max-width:none}}
.badge-style-control{margin-top:14px}
.badge-position-control{margin-top:12px}
.badge-style-control h4,.badge-position-control h4{margin:0 0 8px;font-size:14px;line-height:1.4;font-weight:500;color:#4e555b}
.badge-style-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.badge-position-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.badge-style-options button,.badge-position-options button{min-width:0;min-height:44px;padding:8px 10px;border:1px solid #dfe3e6;border-radius:6px;background:#fff;color:#5c646b;font-size:14px;line-height:1.4;white-space:nowrap}
.badge-style-options button:hover,.badge-position-options button:hover{border-color:#aeb6bc;color:#30353a}
.badge-style-options button.active,.badge-style-options button[aria-pressed=true],.badge-position-options button.active,.badge-position-options button[aria-pressed=true]{border-color:#e69563;background:var(--accent-soft);color:var(--orange-dark)}
