/* Shared JIGAMJISU visual language; retain the editor's proven layout and controls. */
:root{--bg:#fff;--panel:#f7f9fd;--line:#dce3ef;--muted:#55657c;--accent:#2859d8;color-scheme:light}body{color:#26334a;background:#fff}button,select{background:white;color:#26334a;border-color:#ccd7e8;border-radius:12px}button:hover{background:#edf3ff}button[aria-pressed=true]{background:#e5eeff;color:#214ebc;border-color:#6389e8}.primary{background:#2859d8;color:white;border-radius:30px}.primary:hover{background:#1846bb}button:disabled{opacity:.5}.editor-header{height:auto;min-height:94px;padding:18px 28px;border-bottom:1px solid var(--line);gap:20px}.editor-brand{display:flex;flex-direction:column;text-decoration:none;color:#26334a;line-height:1.4}.editor-brand strong{font-size:23px;letter-spacing:-1.2px}.editor-brand strong span{color:#2859d8}.editor-brand small{font-size:13px;color:var(--muted)}.site-nav{background:#fff;border-color:var(--line);padding:12px 28px}.site-nav a{color:#475977}.site-nav a:hover,.site-nav a[aria-current=page]{color:#2859d8}body.editor-page>main{display:grid;grid-template-columns:220px minmax(300px,1fr) 280px;height:calc(100vh - 145px);min-height:690px}.editor-page h2{font-size:14px;color:#465875;letter-spacing:0;line-height:1.5}.stage{background:radial-gradient(ellipse at 50% 40%,#fff 0,#eef4ff 80%);border-inline:1px solid var(--line)}.badge,.direction{background:#ffffffed;border:1px solid #d0ddee;border-radius:30px}.direction{color:#2859d8}.help strong{color:#26334a}.color-row input[type=color],#hex{background:white;color:#26334a;border-color:#ccd7e8}#preset-tip{color:#275db6}#skin-dialog{color:#26334a;background:white;border-color:#dce3ef;border-radius:22px;box-shadow:0 20px 80px #25385926}#skin-dialog::backdrop{background:#24334d75}.dialog-heading h2{color:#26334a;font-size:23px}.editor-learn h2,.editor-learn h3{color:#26334a;letter-spacing:-.02em}.editor-learn p{color:#46556b}.editor-learn details{background:#f7f9fd;border-color:var(--line);border-radius:18px}.editor-learn a,.editor-learn summary{color:#2859d8}.status-bar{padding:15px 28px;font-size:13px;color:var(--muted);border-top:1px solid var(--line);background:#fff}.company-footer .wordmark{color:#26334a}.content-page>.site-article{padding:40px 26px 64px;max-width:960px}.content-page .company-header{height:auto}.presets strong{font-size:13px}.presets small,.view-controls small,.layer-row small{font-size:12px}.hint,.display-option,.help,.stage-hint{font-size:14px}.part-controls button{font-size:14px}.palette button{border:2px solid #172a3a30}.language-control select{width:125px}.company-footer{font-size:14px}.site-article h1{line-height:1.2}.view-controls button{font-size:14px}.company-header h1{letter-spacing:0}#texture-preview{background:repeating-conic-gradient(#e4e9f2 0 25%,#c5d0df 0 50%) 0/16px 16px}
@media(max-width:1050px){body.editor-page>main{grid-template-columns:195px minmax(280px,1fr) 240px}.editor-page aside{padding:18px}.company-header{max-width:1240px}}
@media(max-width:760px){body.editor-page>main{display:flex;height:auto;min-height:0}.editor-page .stage{height:590px;border-inline:0}.editor-page .tools,.editor-page .settings{width:50%;padding:18px}.editor-header{padding:18px}.editor-header .actions{gap:8px}.site-nav{padding:13px 18px}.view-controls button{padding:8px;min-width:60px}.company-header{padding:22px}.content-page>.site-article{padding:28px 22px 48px}}
@media(max-width:440px){.editor-page .tools,.editor-page .settings{width:100%}.editor-header .actions{width:100%}.editor-header .actions button{font-size:13px;padding:10px}.editor-header .language-control select{width:110px}.editor-page .stage{height:540px}.editor-learn{padding:25px 20px}}
.stage-top{position:relative;top:auto;left:auto;right:auto;padding:12px 16px;gap:10px;align-items:center;pointer-events:auto;z-index:5;flex-wrap:wrap;background:#eef4ff}.quick-controls{display:flex;gap:8px}.quick-panel>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;cursor:pointer;background:white;border:1px solid #ccd7e8;border-radius:24px;padding:10px 16px;font-size:14px;min-height:44px}.quick-panel>summary::-webkit-details-marker{display:none}.quick-panel[open]>summary{background:#e5eeff;border-color:#6389e8}.quick-content{position:absolute;left:12px;top:calc(100% + 2px);width:min(320px,calc(100% - 24px));max-height:350px;overflow:auto;background:white;border:1px solid #ccd7e8;border-radius:18px;box-shadow:0 12px 32px #25385928;padding:18px}.quick-content .history{grid-template-columns:1fr 1fr;margin-top:16px}.quick-content .tool-list{grid-template-columns:1fr 1fr}.quick-content .tool-list button{padding:10px;gap:5px}.quick-content kbd{display:none}.quick-content h2{margin:0 0 10px}.quick-content h2:not(:first-child){margin-top:18px}.quick-content .palette button{min-height:32px}.quick-content #hex{flex:1;width:auto}.quick-content .color-row{width:100%}#active-color{width:22px;height:22px;background:#23d5ac;border:1px solid #26334a33;border-radius:50%}.stage-top .direction{font-size:12px;margin-left:auto;padding:8px 10px}.quick-content .hint{font-size:13px}.quick-content #sizes button{min-height:44px}@media(max-width:760px){.editor-page .stage{height:640px}.stage-top{padding:10px 12px;gap:6px}.quick-panel>summary{padding:9px 12px}.stage-top .direction{max-width:45%;overflow-wrap:anywhere}#viewport{min-height:300px}}@media(max-width:440px){.editor-page .stage{height:620px}}

.motion-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.quick-content label{display:block;font-size:14px;margin:10px 0 6px}#motion-state{padding:5px 12px;background:#e5eeff;color:#214ebc;font-size:13px;text-align:center}.stage-top .direction{max-width:none}.quick-controls{flex-wrap:wrap}@media(max-width:440px){.stage-top .direction{margin-left:0;font-size:12px}.quick-panel>summary{padding:9px 11px}}
.editor-page .site-nav{gap:7px;padding:10px 20px;background:#f5f8ff;flex-wrap:wrap}.editor-page .site-nav a{display:inline-flex;align-items:center;min-height:40px;padding:7px 15px;border:1px solid #dce5f5;border-radius:18px;background:white;text-decoration:none;font-weight:700;font-size:13px}.editor-page .site-nav a:hover{background:#e8efff;text-decoration:none}.editor-page .site-nav a[aria-current=page]{background:#2859d8;color:white;border-color:#2859d8;text-decoration:none}@media(max-width:440px){.editor-page .site-nav{gap:5px;padding:9px 12px}.editor-page .site-nav a{padding:7px 11px;font-size:12px}}
