/* The legacy editor keeps its DOM contract; this layer supplies the shared Design 5 materials. */
body.studio{--editor-border:#e6e2ed;--editor-muted:#62627f;--editor-surface:#fff;--editor-soft:#f1edfc;background:var(--design-bg,#fcfaf9);color:var(--design-ink,#171631)}
.studio .layout{display:block;max-width:1720px;margin:0 auto 0 80px;padding:24px 28px 0;border-left:1px solid var(--editor-border);min-height:calc(100dvh - var(--site-header-height,70px))}
.studio main{display:block;min-width:0}
.studio button{min-height:44px;border-color:var(--editor-border);border-radius:12px;padding:10px 14px;font-size:14px;line-height:1.35;background:#fff;box-shadow:0 2px 5px #24204406}
.studio button:disabled{opacity:.48}
.studio button:hover:not(:disabled){background:#f1edfc}
.studio button.primary{background:#073bff;border-color:#073bff;color:#fff;box-shadow:0 4px 9px #073bff18}
.studio button.primary:hover:not(:disabled){background:#0530d7}
.studio button:focus-visible,.studio a:focus-visible,.studio input:focus-visible,.studio select:focus-visible,.studio textarea:focus-visible,.studio summary:focus-visible{outline:3px solid #073bff;outline-offset:4px}
.studio .brand img{flex:none;display:block;order:-1;width:40px;height:40px}
.studio .rail{width:80px;padding:22px 10px;gap:10px;background:#fcfaf9;border-right:1px solid var(--editor-border)}
.studio .rail button,.studio .rail a{width:52px;min-height:48px;height:48px;background:transparent;border:0;box-shadow:none;border-radius:12px}
.studio .rail .selected{background:#073bff;color:#fff;box-shadow:0 4px 8px #073bff1a}
.studio #hero.design-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) 150px;align-items:center;gap:24px;min-height:108px;margin:0 0 12px;padding:20px 24px;border:1px solid #ffffff8c;border-radius:28px;background:linear-gradient(120deg,#e0f8e8,#d6f3dd);box-shadow:0 5px 14px #18341f05;overflow:visible}
.studio[data-design-theme=analysis] #hero{background:linear-gradient(120deg,#eee5ff,#e1d2fc)}
.studio[data-design-theme=words] #hero,.studio[data-design-theme=numbers] #hero{background:linear-gradient(120deg,#fff0df,#ffe6d3)}
.studio #hero h1{grid-column:1;grid-row:1;margin:0;font:800 clamp(23px,2.15vw,34px)/1.12 Arial,Helvetica,sans-serif;letter-spacing:-1.1px;overflow-wrap:anywhere}
.studio #hero>p:last-child{grid-column:2;grid-row:1;border-left:1px solid #17163124;padding-left:24px;margin:0;color:#171631;font-size:15px;line-height:1.5;max-width:none}
.studio #hero #designHeroArt{position:relative;grid-column:3;grid-row:1;display:block;width:150px;height:112px;object-fit:contain;justify-self:end;align-self:center;margin:-20px -4px -20px 0;pointer-events:none}
.studio .workflowbar{display:flex;flex-wrap:wrap;gap:0;min-height:80px;padding:16px 0 12px;border:0}
.studio .workflowbar>button{flex:0 1 auto;background:#efebfa;border:0;border-radius:0;box-shadow:none;padding:12px 23px;font-size:16px;font-weight:650;min-height:46px}
.studio .workflowbar>button:first-child{border-radius:12px 0 0 12px}
.studio .workflowbar>button:nth-child(3){border-radius:0 12px 12px 0}
.studio .workflowbar>button[aria-pressed=true]{background:#073bff;color:#fff;border-radius:12px;box-shadow:0 3px 8px #073bff1c}
.studio .workflowbar .workflow-privacy{display:block;margin-left:auto;padding-inline:16px;font-size:12px;color:var(--editor-muted)}
.studio .top-actions{display:flex;align-items:center;gap:8px;min-width:0}
.studio .top-actions button{min-height:44px;height:auto;background:#fff;border:1px solid var(--editor-border);padding:10px 14px}
.studio .top-actions #importText{background:#fff;border-color:var(--editor-border);font-size:14px;margin-left:8px;padding-inline:16px}
.studio .quick-tools{display:flex;justify-content:space-between;min-height:58px;gap:6px;border-color:var(--editor-border);overflow:auto;scrollbar-width:thin}
.studio .quick-tools button{flex-shrink:0;min-height:52px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;box-shadow:none;padding:12px 10px;font-size:14px;white-space:nowrap}
.studio .quick-tools button.active{color:#073bff;border-bottom-color:#073bff;font-weight:700}
.studio .quick-tools button svg{width:22px;height:22px}
.studio .tool-strip{display:grid;grid-template-columns:minmax(210px,1fr) minmax(160px,1fr) auto;gap:24px;min-height:92px;padding:16px 0 18px}
.studio .tool-strip label{font-size:13px;line-height:1.4;gap:6px}
.studio .tool-strip select{min-height:44px;padding:9px 14px;border:1px solid #d8d3e6;border-radius:12px;background:#fff;font-size:15px;color:#171631;box-shadow:0 2px 4px #24204406}
.studio .tool-strip p{font-size:14px;line-height:1.5;color:#434362;overflow-wrap:anywhere}
.studio .tool-strip #allTools{min-height:44px;padding:10px 0 10px 22px;font-size:14px;background:transparent;border:0;border-left:1px solid var(--editor-border);border-radius:0;box-shadow:none}
.studio .studio-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:20px;padding:0;border:0}
.studio .editors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start;min-width:0}
.studio .editor{min-width:0;padding:10px;background:linear-gradient(#fff,#fdfbff);border:1px solid var(--editor-border);border-radius:18px;box-shadow:0 4px 11px #27203d06;overflow:visible}
.studio .editor>label{border:0;padding:4px 5px 12px;gap:6px;font-size:19px;line-height:1.4;letter-spacing:-.45px;color:#171631}
.studio .editor>label span{font-size:11px;color:var(--editor-muted);line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}
.studio .editor textarea{width:100%;max-width:100%;min-height:360px;padding:16px;border:1px solid #dcd8e9;border-radius:12px;background:#fff;color:#171631;font-size:17px;line-height:1.65;outline-offset:3px;resize:vertical}
.studio .editor textarea::placeholder{color:#70708b;opacity:1}
.studio .editors:has(.second-editor:not([hidden])) textarea{min-height:205px}
.studio .editors:has(.second-editor:not([hidden])) .output-editor{grid-column:1/-1}
.studio .editor .buffer-note{margin:0 0 8px;padding:10px 12px;border-radius:10px;background:#fff0df;color:#78512c;font-size:13px;line-height:1.5}
.studio .editor .buffer-edit{margin:0 0 8px;font-size:13px}
.studio #stale{flex-basis:100%;margin:0;padding:6px 9px;background:#fff0df;color:#87511e;border-radius:7px;font-size:12px;font-weight:700}
.studio #diff{min-height:205px;max-height:600px;padding:16px;border:1px solid #dcd8e9;border-radius:12px;background:#fff;font-size:17px;line-height:1.7;overscroll-behavior:contain}
.studio #diff ins,.studio #diff del{padding:2px 3px;border-radius:5px}
.studio #diff ins{background:#d6f3dd;color:#125427}
.studio #diff del{background:#ffddd7;color:#8f3027}
.studio #resultExplanation{margin:12px 0 0;padding:14px;border:0;border-radius:12px;background:#e9f7ef;box-shadow:none;font-size:13px;line-height:1.6;color:#354d41}
.studio #resultExplanation h3{margin:0 0 8px;color:#171631;font-size:15px}
.studio #resultExplanation p{margin:8px 0}
.studio #resultExplanation ol{padding-left:22px}
.studio #resultExplanation summary{min-height:44px;align-content:center;font-weight:650}
.studio .inspector{padding:16px;border:1px solid var(--editor-border);border-radius:18px;background:linear-gradient(#fff,#fdfbff);box-shadow:0 4px 12px #27203d06;min-width:0}
.studio .inspector h3{margin:0 0 12px;color:#171631;font-size:18px;line-height:1.35;letter-spacing:-.5px}
.studio .options{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 0 16px;font-size:14px;line-height:1.45;color:#292944;overflow-wrap:anywhere}
.studio .options p{margin:0 0 6px;color:#62627f;font-size:12px;line-height:1.5}
.studio .options label{display:grid;gap:6px;align-items:center;min-width:0;line-height:1.5}
.studio .options label:has(input[type=checkbox]){grid-template-columns:20px minmax(0,1fr);gap:9px;min-height:38px;align-content:center}
.studio .options input[type=checkbox]{width:20px;height:20px;margin:0;order:-1;accent-color:#073bff}
.studio .options input:not([type=checkbox]),.studio .options select{width:100%;min-width:0;min-height:44px;margin:0;padding:9px 11px;border:1px solid #d8d3e6;border-radius:10px;background:#fff;color:#171631;font-size:15px}
.studio .actionbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;max-width:none;padding:0 0 16px;margin:0}
.studio .actionbar #inputSummary{margin:0 0 4px;font-size:11px;line-height:1.5;color:var(--editor-muted);overflow-wrap:anywhere}
.studio .actionbar button{display:flex;width:100%;min-width:0;align-items:center;justify-content:flex-start;gap:10px;margin:0;min-height:44px;padding:10px 12px;font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.studio .actionbar button svg{order:-1;width:20px;height:20px}
.studio .actionbar .primary{font-size:15px;font-weight:650}
.studio .actionbar .key-hint{margin-left:auto;padding:2px 5px;border-radius:5px;background:#ffffff22;font-size:10px;font-weight:400;white-space:nowrap}
.studio .actionbar #copy,.studio .actionbar #download{background:#fff}
.studio .actionbar .secondary-chain{display:flex;font-size:12px;margin:0}
.studio .inspector-stats{margin:0;padding:16px 0 0;border-top:1px solid var(--editor-border);font-size:13px}
.studio .inspector-stats h3{font-size:16px;margin-bottom:10px}
.studio .inspector-stats dl{margin:8px 0 16px}
.studio .inspector-stats dl div{padding:8px 0;border-color:var(--editor-border);gap:12px}
.studio .inspector-stats #statsHint{display:block;margin:0;color:var(--editor-muted);font-size:12px;line-height:1.5}
.studio .inspector-stats #statDelta{margin:0;color:#073bff;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.studio .saved-settings{margin:0 0 16px;padding:14px 0 0;border-top:1px solid var(--editor-border);font-size:13px}
.studio .saved-settings summary{min-height:44px;align-content:center;font-weight:650;line-height:1.5}
.studio .saved-settings summary span{margin-left:7px;color:var(--editor-muted);font-size:12px;white-space:nowrap}
.studio .saved-settings p{font-size:12px;line-height:1.6;color:var(--editor-muted)}
.studio .saved-settings label{display:block;font-size:13px}
.studio .saved-settings input{width:100%;min-height:44px;padding:9px 11px;border:1px solid #d8d3e6;border-radius:10px;font-size:15px;background:#fff}
.studio .saved-settings>button{width:100%;margin-top:8px;font-size:12px}
.studio .saved-setting-row{flex-wrap:wrap;gap:6px;padding:8px 0;border-top:1px solid var(--editor-border)}
.studio .saved-setting-row button{font-size:12px;padding:8px;overflow-wrap:anywhere}
.studio .saved-setting-row button:first-child{flex-basis:100%}
.studio #shortcuts{max-width:none;margin:12px 0 4px;font-size:12px;line-height:1.6;color:var(--editor-muted)}
.studio #status{max-width:none;margin:0 0 16px;padding:12px 14px;border:1px solid #e5e7f5;border-radius:12px;background:#f0f2ff;color:#434362;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.studio #originalDetails{margin:0 0 14px;padding:0 18px;border:1px solid #f3ddc7;border-radius:18px;background:linear-gradient(130deg,#fff3e7,#ffebdc);font-size:13px;line-height:1.6}
.studio #originalDetails>summary{min-height:56px;padding:16px 0;font-weight:650;font-size:15px;line-height:1.5}
.studio #originalDetails button{margin:0;font-size:13px}
.studio .original-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.studio .original-actions button{min-width:0;overflow-wrap:anywhere;white-space:normal}
.studio #originalView{max-height:240px;margin:12px 0;padding:14px;border:1px solid #e9d6c7;border-radius:12px;background:#fff;font-size:15px;line-height:1.6;overscroll-behavior:contain}
.studio #originalDetails .export-name{display:grid;width:min(100%,360px);max-width:none;margin:14px 0;gap:6px;font-size:13px}
.studio #originalDetails .export-name input{width:100%;min-height:44px;border:1px solid #ded2c9;border-radius:10px;padding:9px 11px;background:#fff;font-size:16px}
.studio #originalDetails #focusMode{display:inline-flex;width:auto;min-height:44px;margin:0 0 16px;font-size:13px}
.studio .storage{display:flex;flex-wrap:wrap;gap:10px 16px;margin:0;padding:16px 18px;border:1px solid #e5d9fc;border-radius:18px;background:linear-gradient(120deg,#f3edff,#eae3ff);font-size:14px;line-height:1.6}
.studio .storage label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:650}
.studio .storage input{width:20px;height:20px;flex:none;accent-color:#073bff}
.studio .storage button{margin-left:auto;font-size:13px;min-height:44px}
.studio .storage small{flex-basis:100%;font-size:12px;color:#62627f}
.studio .editor-help-boards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0 24px;align-items:start}
.studio .editor-help-boards>.guide{min-width:0;margin:0;padding:20px;border:1px solid #ffffff;border-radius:24px;background:linear-gradient(130deg,#fff0df,#ffe6d3);box-shadow:0 4px 10px #33211705;color:#383449;font-size:14px;line-height:1.65}
.studio .editor-help-boards>.seo-summary{background:linear-gradient(130deg,#eee5ff,#e1d2fc)}
.studio .editor-help-boards h2{display:flex;align-items:center;gap:9px;margin:0 0 12px;font:800 23px/1.25 Arial,Helvetica,sans-serif;letter-spacing:-.6px;color:#171631}
.studio .editor-help-boards h2 [data-icon]{display:flex!important;flex:none;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;color:#b75a17;background:#ffdfc0}
.studio .seo-summary h2 [data-icon]{color:#073bff;background:#d9cdff}
.studio .editor-help-boards p{margin:0 0 14px}
.studio .editor-help-boards .muted{margin:16px 0 0;color:#6b5d55;font-size:12px;line-height:1.6}
.studio .example{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}
.studio .example>div{min-width:0;padding:12px;border:1px solid #ffffffb3;border-radius:12px;background:#ffffffb8}
.studio .example b{font-size:12px;color:#6d593e}
.studio .example pre{margin:8px 0 0;font-size:14px;line-height:1.6}
.studio #related-tools{display:grid;gap:8px}
.studio #related-tools a{display:block;min-height:44px;padding:11px 14px;border:1px solid #e0d6f6;border-radius:12px;background:#fff;color:#272044;font-weight:600;font-size:14px;line-height:1.5;text-decoration:none;overflow-wrap:anywhere}
.studio #related-tools a:hover{background:#f7f3ff}
.studio #catalogPanel{top:calc(var(--site-header-height,70px) + 12px);left:90px;width:min(370px,calc(100vw - 110px));padding:20px;border-color:var(--editor-border);border-radius:20px;background:#fff;box-shadow:0 14px 45px #29233e26}
.studio #catalogPanel .tool-search{font-size:14px;color:#171631}
.studio #catalogPanel input{min-height:44px;padding:10px 12px;border-color:#d8d3e6;border-radius:10px;font-size:16px}
.studio #catalogPanel #nav a{min-height:44px;white-space:normal;font-size:14px;line-height:1.4;border-radius:10px}
.studio #catalogPanel #nav h2{font-size:12px;line-height:1.5;margin-block:18px 6px}
.studio footer{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0;padding:22px 0;border-color:var(--editor-border);font-size:13px;line-height:1.6;color:var(--editor-muted)}
.studio footer>a{margin-left:auto;min-height:44px;display:inline-flex;align-items:center;color:#073bff}
.studio.focus-mode .editor-help-boards,.studio.focus-mode .quick-tools{display:none}
.studio.focus-mode .layout{padding-top:14px}
.studio.focus-mode .editor textarea{min-height:65dvh}
@media(min-width:1700px){.studio .layout{margin-inline:auto;max-width:1640px}.studio .editor textarea{min-height:440px}}
@media(max-width:1200px){.studio .layout{padding-inline:20px}.studio .workflowbar>button{font-size:14px;padding-inline:18px}.studio .workflowbar .workflow-privacy{font-size:11px;padding-inline:10px}.studio .top-actions button{padding-inline:11px}.studio .top-actions #importText{font-size:13px;padding-inline:11px}.studio .quick-tools{justify-content:flex-start}.studio .quick-tools button{font-size:13px;padding-inline:10px}.studio .studio-body{grid-template-columns:minmax(0,1fr) 270px;gap:16px}.studio .editors{gap:12px}.studio .editor>label{font-size:17px}.studio #hero.design-hero{gap:18px;padding-inline:20px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 115px}.studio #hero>p:last-child{padding-left:18px;font-size:14px}.studio #hero #designHeroArt{width:120px;height:100px}.studio .tool-strip{gap:16px}}
@media(max-width:1000px){.studio .workflowbar .workflow-privacy{display:none}.studio .top-actions{margin-left:auto}.studio .studio-body{grid-template-columns:minmax(0,1fr)}.studio .inspector{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px}.studio .inspector>h3,.studio .inspector>.options{grid-column:1;grid-row:auto}.studio .inspector>.actionbar{grid-column:2;grid-row:1/4;align-self:start}.studio .saved-settings{grid-column:1}.studio .inspector-stats{grid-column:2;grid-row:4/6;margin:0}.studio .editor textarea{min-height:330px}.studio .editor-help-boards{gap:16px}.studio .editor-help-boards h2{font-size:21px}.studio .tool-strip{grid-template-columns:minmax(180px,1fr) minmax(0,1fr) auto}.studio .tool-strip #allTools{font-size:12px;padding-left:14px}}
@media(max-width:760px){.studio .layout{margin:0;padding:14px 12px 0;border:0;min-height:0}.studio .rail{display:none}.studio .brand img{width:34px;height:34px}.studio #hero.design-hero{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px 10px;min-height:112px;margin-bottom:4px;padding:16px;border-radius:22px}.studio #hero h1{grid-column:1;grid-row:1;font-size:25px;line-height:1.1;letter-spacing:-.9px}.studio #hero>p:last-child{grid-column:1/-1;grid-row:2;border:0;padding:0;font-size:13px;line-height:1.5}.studio #hero #designHeroArt{grid-column:2;grid-row:1;width:84px;height:74px;margin:-8px -6px -8px 0;position:relative}.studio .workflowbar{padding:12px 0 10px;gap:0;min-height:0}.studio .workflowbar>button{flex:1;font-size:14px;padding:12px 8px;min-height:44px}.studio .top-actions{width:100%;margin:10px 0 0;gap:8px;justify-content:flex-end}.studio .top-actions button{min-height:44px;height:44px;padding:10px 14px}.studio .top-actions #importText{margin-left:auto;font-size:13px;padding-inline:14px}.studio .quick-tools{min-height:54px;margin:0 -2px;padding-inline:2px;gap:4px}.studio .quick-tools button{padding:12px 10px;font-size:13px;min-height:50px}.studio .tool-strip{grid-template-columns:minmax(0,1fr) 44px;gap:8px 10px;padding:14px 0;min-height:0}.studio .tool-strip select{font-size:16px;min-height:44px}.studio .tool-strip p{grid-column:1/-1;grid-row:2;margin:0;font-size:13px}.studio .tool-strip #allTools{min-height:44px;padding:10px;border:0;border-radius:10px;background:#f0ecfa;font-size:0}.studio .tool-strip #allTools svg{width:22px;height:22px}.studio .mobile-tabs{display:flex;gap:0;padding:0 0 12px}.studio .mobile-tabs button{flex:1;min-height:44px;border:0;border-radius:0;background:#efebfa;font-size:13px;font-weight:600;box-shadow:none}.studio .mobile-tabs button:first-child{border-radius:12px 0 0 12px}.studio .mobile-tabs button:last-child{border-radius:0 12px 12px 0}.studio .mobile-tabs button[aria-pressed=true]{background:#073bff;color:#fff;border-radius:12px;box-shadow:0 3px 8px #073bff1c}.studio .studio-body{display:flex;flex-direction:column;gap:14px}.studio .editors{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:12px}.studio .editor{padding:9px;border-radius:16px}.studio .editor>label{padding:4px 3px 10px;font-size:18px}.studio .editor>label span{font-size:11px}.studio .editor textarea{min-height:280px;font-size:16px;padding:13px;line-height:1.65}.studio .second-editor{margin:0}.studio .editors:has(.second-editor:not([hidden])) textarea{min-height:180px}.studio .inspector{display:flex;flex-direction:column;width:100%;order:0;gap:0;padding:14px;border-radius:16px}.studio .inspector h3{font-size:17px}.studio .options{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:14px;font-size:14px}.studio .options label:has(input[type=checkbox]){min-height:44px}.studio .options input:not([type=checkbox]),.studio .options select{font-size:16px;min-height:44px}.studio .actionbar{width:100%;gap:8px;padding-bottom:16px}.studio .actionbar button{min-height:44px;flex:none;font-size:14px;justify-content:flex-start}.studio .actionbar .primary{font-size:16px}.studio .actionbar .secondary-chain{font-size:13px}.studio .actionbar #inputSummary{font-size:12px}.studio .actionbar .key-hint{display:none}.studio .saved-settings{order:3;margin:16px 0 0;padding-top:12px}.studio .saved-settings input{font-size:16px}.studio .inspector-stats{order:2;padding-top:14px;margin:0}.studio .inspector-stats h3{display:block;font-size:16px}.studio .inspector-stats dl{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin:10px 0 16px}.studio .inspector-stats #statsHint{display:block}.studio .inspector-stats #statDelta{font-size:14px}.studio #shortcuts{font-size:12px;margin-top:10px}.studio #status{font-size:13px;padding:12px}.studio #originalDetails{padding-inline:14px}.studio #originalDetails>summary{font-size:14px}.studio .original-actions{display:grid;grid-template-columns:minmax(0,1fr)}.studio #originalDetails button{justify-content:flex-start;min-height:44px}.studio .storage{padding:14px;gap:10px;font-size:13px}.studio .storage label{align-items:flex-start;min-height:44px;font-size:14px}.studio .storage input{margin-top:2px}.studio .storage button{margin-left:0;min-height:44px}.studio .storage small{font-size:12px}.studio .editor-help-boards{grid-template-columns:minmax(0,1fr);gap:14px;margin:18px 0}.studio .editor-help-boards>.guide{padding:18px;border-radius:20px;font-size:14px}.studio .editor-help-boards h2{font-size:22px}.studio .editor-help-boards .muted{font-size:12px}.studio .example{grid-template-columns:minmax(0,1fr)}.studio #catalogPanel{left:10px;right:10px;top:calc(var(--site-header-height,110px) + 8px);bottom:10px;width:auto;padding:16px}.studio #catalogPanel #nav{max-height:none}.studio footer{padding-block:18px;font-size:12px;gap:8px}.studio footer span{flex-basis:100%}.studio footer>a{margin:0}.studio.focus-mode .layout{padding:12px}.studio.focus-mode .editor textarea{min-height:60dvh}}
@media(prefers-reduced-motion:reduce){.studio button{transition:none}}

/* The standalone error document shares assets, but never initializes an editor. */
.site-notfound .notfound-main{display:block;width:min(1348px,calc(100% - 64px));margin:0 auto;padding:32px 0 64px}
.site-notfound .notfound-hero{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:center;gap:48px;min-height:370px;padding:30px 16px 42px}
.site-notfound .notfound-code{font-size:13px;font-weight:650;color:#706982;letter-spacing:.04em;margin:0 0 12px}
.site-notfound .notfound-hero h1{margin:0 0 20px;color:#171631;font:800 clamp(36px,4.4vw,62px)/1.04 Arial,Helvetica,sans-serif;letter-spacing:-1.8px}
.site-notfound .notfound-hero p:not(.notfound-code){margin:0;max-width:730px;color:#3b3656;font-size:19px;line-height:1.6}
.site-notfound .notfound-art{display:block;width:300px;height:250px;max-width:100%;object-fit:contain;justify-self:center}
.site-notfound .notfound-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.site-notfound .notfound-actions a{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:13px 24px;border:1px solid #dcd6ea;border-radius:16px;background:#fff;color:#171631;box-shadow:0 4px 10px #40334d08;font-size:17px;font-weight:600;text-decoration:none;line-height:1.4}
.site-notfound .notfound-actions a.primary{background:#073bff;color:#fff;border-color:#6b88ff}
.site-notfound .notfound-actions svg{width:22px;height:22px}
.site-notfound .notfound-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}
.site-notfound .notfound-tools>a{position:relative;display:flex;flex-direction:column;gap:22px;justify-content:space-between;min-height:210px;overflow:hidden;padding:24px 145px 24px 24px;border:1px solid #fff;border-radius:28px;background:linear-gradient(120deg,#e0f8e8,#d6f3dd);box-shadow:0 6px 15px #40334d06;text-decoration:none;color:#171631}
.site-notfound .notfound-tools>a:nth-child(2){background:linear-gradient(120deg,#eee5ff,#e1d2fc)}
.site-notfound .notfound-tools>a:nth-child(3){background:linear-gradient(120deg,#fff0df,#ffe6d3)}
.site-notfound .notfound-tools span{position:relative;z-index:1;display:block;font-size:14px;font-weight:650;line-height:1.4;color:#3a345a}
.site-notfound .notfound-tools strong{position:relative;z-index:1;font:800 25px/1.15 Arial,Helvetica,sans-serif;letter-spacing:-.7px;overflow-wrap:anywhere}
.site-notfound .notfound-tools img{position:absolute;right:6px;top:36px;width:140px;height:140px;object-fit:contain;pointer-events:none}
.site-notfound footer.notfound-footer{display:flex;width:min(1348px,calc(100% - 64px));margin:0 auto;padding:28px 0;gap:18px 32px;font-size:14px;border-top:1px solid #e6e2ed}
.site-notfound .notfound-footer>.brand{font-size:24px;letter-spacing:-.5px;font-weight:750;line-height:1.4;min-height:44px}
.site-notfound .notfound-footer>span{align-content:center;line-height:1.6}
.site-notfound .notfound-footer nav{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto}
.site-notfound .notfound-footer nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px;font-size:13px}
@media(max-width:1100px){.site-notfound .notfound-hero{grid-template-columns:minmax(0,1fr) 260px;gap:24px;padding-inline:0}.site-notfound .notfound-tools>a{min-height:210px;padding:20px 100px 20px 20px}.site-notfound .notfound-tools img{width:100px;height:112px;right:0;top:60px}.site-notfound .notfound-tools strong{font-size:22px}.site-notfound .notfound-tools span{font-size:13px}}
@media(max-width:760px){.site-notfound .notfound-main{width:calc(100% - 28px);padding:18px 0 32px}.site-notfound .notfound-hero{grid-template-columns:minmax(0,1fr);gap:18px;min-height:0;padding:14px 4px 20px}.site-notfound .notfound-hero>div{grid-row:2}.site-notfound .notfound-hero h1{font-size:39px;line-height:1.05;letter-spacing:-1.4px;margin-bottom:16px}.site-notfound .notfound-hero p:not(.notfound-code){font-size:16px;line-height:1.6}.site-notfound .notfound-art{grid-row:1;width:220px;height:180px}.site-notfound .notfound-actions{gap:10px;margin-top:24px}.site-notfound .notfound-actions a{flex:1 1 150px;min-height:48px;font-size:15px;padding:12px 18px;border-radius:13px}.site-notfound .notfound-tools{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:14px}.site-notfound .notfound-tools>a{min-height:165px;padding:20px 124px 20px 20px;border-radius:23px;gap:18px}.site-notfound .notfound-tools img{width:120px;height:120px;top:24px;right:0}.site-notfound .notfound-tools strong{font-size:24px;line-height:1.15}.site-notfound .notfound-tools span{font-size:13px}.site-notfound footer.notfound-footer{width:calc(100% - 28px);padding:24px 4px;font-size:13px;gap:8px}.site-notfound .notfound-footer>span{flex-basis:100%}.site-notfound .notfound-footer nav{margin-left:0;gap:5px}.site-notfound .notfound-footer nav a{font-size:12px;padding-inline:7px}}
/* Full-text counters use the existing worker and result statistics. */
.studio .editor-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0;align-self:start}
.studio .editor-metrics>div{display:flex;align-items:center;gap:10px;min-width:0;padding:14px 16px;border:1px solid #fff;border-radius:18px;background:#f1eafd;color:#453485;box-shadow:0 3px 8px #40334d04}
.studio .editor-metrics>div:nth-child(2){background:#e3f7e9;color:#285e3b}
.studio .editor-metrics>div:nth-child(3){background:#e8edff;color:#193bba}
.studio .editor-metrics [data-icon]{display:flex!important;flex:none}
.studio .editor-metrics svg{width:23px;height:23px}
.studio .editor-metrics b{font-size:12px;line-height:1.4}
.studio .editor-metrics p{margin:3px 0 0;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.studio .inspector{grid-column:2;grid-row:1}
@media(max-width:1200px){.studio .editor-metrics{gap:8px}.studio .editor-metrics>div{padding:12px 10px;gap:7px}.studio .editor-metrics svg{width:19px;height:19px}}
@media(max-width:1000px){.studio .inspector{grid-column:1;grid-row:2}}
@media(max-width:760px){.studio .editor-metrics{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:7px}.studio .editor-metrics>div{padding:10px 14px;min-height:54px;border-radius:14px}.studio .editor-metrics b{font-size:13px}.studio .editor-metrics p{font-size:12px;margin:2px 0 0}.studio .editor-metrics svg{width:23px;height:23px}}
/* Keep editor metrics adjacent to their fields when the settings panel is tall. */
.studio .editor-column{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-width:0}
@media(max-width:760px){.studio .editor-column{width:100%;gap:12px}}
/* Keep the summary useful at a glance; native disclosures retain all detailed evidence. */
.studio #resultExplanation{padding:12px 14px;font-size:12px;line-height:1.5}
.studio #resultExplanation h3{font-size:14px;margin:0 0 6px}
.studio #resultExplanation>p{margin:0 0 4px}
.studio #resultExplanation>details{padding:0;font-size:12px}
.studio #resultExplanation summary{min-height:44px;padding:10px 0;font-size:12px;line-height:1.5}
.studio #resultExplanation h4{font-size:13px;margin:8px 0}
.studio #resultExplanation ol{margin:8px 0 14px;padding-left:20px}
.studio #resultExplanation li+li{margin-top:6px}
.studio .inspector h3{margin-bottom:10px}
.studio .options{gap:6px;margin-bottom:12px}
.studio .options .option-method{padding:0;margin:2px 0 0;border-top:1px solid var(--editor-border);font-size:12px}
.studio .options .option-method summary{min-height:44px;padding:10px 0;line-height:1.5;color:var(--editor-muted);font-size:12px}
.studio .options .option-method p{margin:0 0 10px;font-size:12px;line-height:1.6}
.studio .actionbar{gap:6px;padding-bottom:12px}
.studio .saved-settings{margin:0;padding:0;border-top:1px solid var(--editor-border)}
.studio .saved-settings>summary{min-height:44px;padding:10px 0;font-size:13px;line-height:1.5}
.studio .saved-settings[open]{padding-bottom:12px}
.studio .inspector-stats{margin:0;padding:0;border-top:1px solid var(--editor-border)}
.studio .inspector-stats>summary{min-height:44px;padding:10px 0;font-size:13px;line-height:1.5;font-weight:650}
.studio .inspector-stats[open]{padding-bottom:6px}
@media(max-width:760px){.studio .inspector-stats{order:3}.studio .saved-settings{order:2}.studio .options{gap:8px;margin-bottom:12px}}

/* Preserve the selected pane's contrast when the shared hover surface applies. */
.studio .mobile-tabs button[aria-pressed=true]:is(:hover,:focus,:active){background:#073bff;color:#fff}

/* Help follows the editor column rather than waiting for the taller inspector. */
.studio .editor-column>.editor-help-boards{margin:0;gap:16px}
@media(max-width:1000px){
 .studio .editor-column{display:contents}
 .studio .studio-body>.editor-column>.editors{grid-column:1;grid-row:1}
 .studio .studio-body>.inspector{grid-column:1;grid-row:2}
 .studio .studio-body>.editor-column>.editor-metrics{grid-column:1;grid-row:3}
 .studio .studio-body>.editor-column>.editor-help-boards{grid-column:1;grid-row:4}
}
@media(max-width:760px){
 /* The select and recipe settings retain every destination/scenario; omit duplicate navigation rows. */
 .studio .workflowbar>[data-workflow],.studio .quick-tools{display:none}
 .studio .layout{padding-top:10px;padding-bottom:84px}
 .studio #hero.design-hero{grid-template-columns:minmax(0,1fr) 54px;min-height:0;padding:12px;gap:6px 8px;border-radius:20px}
 .studio #hero h1{font-size:21px;line-height:1.1;letter-spacing:-.6px}
 .studio #hero>p:last-child{font-size:12px;line-height:1.4}
 .studio #hero #designHeroArt{width:60px;height:58px;margin:-5px -4px -5px 0}
 .studio .workflowbar{min-height:0;padding:8px 0;gap:0}
 .studio .top-actions{margin:0;width:100%;gap:8px}
 .studio .top-actions #importText{flex:1;margin-left:0;font-size:13px;white-space:nowrap}
 .studio .top-actions #undo,.studio .top-actions #redo{flex:none;width:48px;padding-inline:12px}
 .studio .tool-strip{padding:8px 0 10px;gap:5px 10px}
 .studio .tool-strip label{font-size:12px;gap:4px}
 .studio .tool-strip p{font-size:12px;line-height:1.4}
 .studio .mobile-tabs{padding-bottom:10px}
 .studio .studio-body{display:flex;flex-direction:column;gap:14px}
 .studio .editor-column{display:contents}
 .studio .editor-column>.editors{order:0}
 .studio .studio-body>.inspector{order:1}
 .studio .editor-column>.editor-metrics{order:2}
 .studio .editor-column>.editor-help-boards{order:3}
 /* The same Apply/Cancel controls stay available while the text or settings are on screen. */
 .studio .actionbar #apply,.studio .actionbar #cancel{position:fixed;z-index:20;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:calc(100% - 24px);min-height:48px;margin:0;padding:12px 18px;justify-content:center;border-radius:13px;box-shadow:0 6px 24px #17163135}
 .studio .actionbar #cancel{z-index:21;background:#fff0df;border-color:#d9b58d;color:#734316}
 .studio :is(button,input,select,textarea,summary,[tabindex]){scroll-margin-bottom:84px}
}
