Files
phelex 88ac95dd19 Integrate Antirion admin with FastAPI and htmx
Add the shared document API, constructor and expert editors, isolated preview, and fragment catalog metadata with typed block IDs.

Include design references, specification 001, QA scripts, project guidance, and cached Docker dependency installation. Leave example sites for a separate commit.
2026-11-12 21:55:36 +03:00

190 lines
45 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Site Engine / Stage 2.1–2.2. Shared layout, two approved visual skins. Vanilla CSS. */
:root{font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font:12px/1.5 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}a{color:inherit;text-decoration:none}svg{width:16px;height:16px;flex:none;stroke:currentColor}button svg{width:15px;height:15px}h1,h2,h3,p{margin:0}body{background:var(--bg);color:var(--text)}body[data-theme="antirion"]{color-scheme:light;--nav:#151719;--navhover:#26282b;--navtext:#bbc0c4;--navborder:#343639;--navactive:#ececf2;--bg:#f5f5f3;--surface:#fff;--surface2:#f0f1ee;--surface3:#e9eae7;--text:#222529;--muted:#72777c;--dim:#94999b;--border:#dcdedb;--border2:#e8e9e5;--accent:#665ad8;--accentSoft:#eeebff;--focus:#8173ed;--accentText:#fff;--positive:#2e856d;--positiveBg:#e6f4eb;--warning:#a8742a;--warningBg:#fff2e1;--danger:#b14e60;--dangerBg:#fae9ef;--previewOuter:#e9e9e5;--shadow:0 10px 30px #21282b12;--radius:3px;--pill:3px}body[data-theme="rose"]{color-scheme:dark;--nav:#060607;--navhover:#1b1b20;--navtext:#a5a4b1;--navborder:#29292f;--navactive:#f7f3f8;--bg:#0a0a0d;--surface:#121216;--surface2:#19191e;--surface3:#222229;--text:#f5f2f7;--muted:#a19da8;--dim:#797581;--border:#2e2c33;--border2:#26242b;--accent:#ff4f99;--accentSoft:#321824;--focus:#ff78b5;--accentText:#fff;--positive:#39d6a0;--positiveBg:#132b22;--warning:#ffc786;--warningBg:#332719;--danger:#ff829e;--dangerBg:#3b1a26;--previewOuter:#19191e;--shadow:0 12px 40px #0004;--radius:11px;--pill:7px}
.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.side{position:sticky;top:0;height:100dvh;min-width:0;background:var(--nav);border-right:1px solid var(--navborder);color:var(--navtext);display:flex;flex-direction:column;z-index:12}.side-brand{height:78px;display:flex;align-items:center;gap:11px;padding:16px 15px}.brand-logo{height:38px;width:38px;display:grid;place-items:center;background:#e7e7e5;color:#161718;font-size:19px;font-weight:750;letter-spacing:-.1em;clip-path:polygon(0 0,100% 0,100% 77%,78% 100%,0 100%)}[data-theme="rose"] .brand-logo{clip-path:none;border-radius:12px;background:linear-gradient(138deg,#fa9b5c,#ff4c87 70%,#de318c);color:#fff}.brand-copy b{display:block;color:#f5f5f5;font-size:13px}.brand-copy small{display:block;color:#80818b;margin-top:3px;letter-spacing:.12em;font-size:9px}.side-section{margin:21px 17px 8px;text-transform:uppercase;font-size:9px;letter-spacing:.12em;color:#777b80;font-weight:750}.side-nav{padding:0 8px;flex:1;overflow:auto}.side-link{display:flex;align-items:center;gap:11px;min-height:37px;padding:0 11px;color:var(--navtext);margin:2px 0;position:relative;white-space:nowrap}.side-link:hover{background:var(--navhover);color:#fff}.side-link.active{background:#292a2d;color:#fff;font-weight:700}.side-link.active:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#bcb5ff}[data-theme="rose"] .side-link{border-radius:10px}[data-theme="rose"] .side-link.active{background:#1b1b20}[data-theme="rose"] .side-link.active:before{top:7px;bottom:7px;border-radius:4px;background:var(--accent)}.side-link em{margin-left:auto;font:10px ui-monospace,Consolas,monospace;color:#868993;font-style:normal}.side-bottom{padding:14px;border-top:1px solid var(--navborder)}.side-site{padding:11px;border:1px solid #34383c;display:flex;gap:9px;align-items:center;color:#e8e8e8}.side-site b{font-size:10px}.side-site small{display:block;font-size:10px;color:#9397a0;margin-top:3px}[data-theme="rose"] .side-site{border-radius:11px;background:#121216}.side-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:9px;letter-spacing:.09em;color:#777d83}.side-footer a{padding:5px;color:#b1b3bd}.main{min-width:0;min-height:100vh;display:flex;flex-direction:column}.top{height:60px;display:flex;align-items:center;gap:11px;padding:0 22px;background:var(--surface);border-bottom:1px solid var(--border);flex:none}.breadcrumbs{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:11px;min-width:0;white-space:nowrap}.breadcrumbs strong{color:var(--text)}.breadcrumbs .sep{color:var(--dim)}.spacer{flex:1}.top-live{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;white-space:nowrap}.dot{display:inline-block;background:var(--positive);width:7px;height:7px;border-radius:50%;flex:none}.user-pill{height:29px;width:29px;display:grid;place-items:center;border:0;background:var(--text);color:var(--surface);border-radius:50%;font-size:10px;font-weight:700}[data-theme="rose"] .user-pill{background:linear-gradient(135deg,#f56790,#ac54d9);color:white}.top-icon{border:1px solid transparent;background:transparent;color:var(--muted);height:30px;width:30px;display:grid;place-items:center}.top-icon:hover{border-color:var(--border);background:var(--surface2)}.mobile-menu{display:none}.head{min-width:0;display:flex;align-items:center;gap:15px;justify-content:space-between;padding:18px 22px 16px;border-bottom:1px solid var(--border)}.head-main{min-width:0}.eyebrow{font:700 9px ui-monospace,Consolas,monospace;letter-spacing:.10em;color:var(--accent);text-transform:uppercase}.head h1{font-size:22px;font-weight:690;letter-spacing:-.05em;line-height:1.3;margin:3px 0}.head-meta{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.head-meta code{font-size:10px}.head-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.button{height:32px;border:1px solid var(--border);border-radius:var(--radius);display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;background:var(--surface);color:var(--text);font-size:11px;font-weight:650;white-space:nowrap}.button:hover{background:var(--surface2);border-color:var(--accent)}.button.primary{background:var(--accent);color:var(--accentText);border-color:var(--accent)}.button.primary:hover{filter:brightness(1.09)}.button.ghost{background:transparent}.button.small{height:27px;padding:0 8px;font-size:10px}.button.icon{width:30px;padding:0}.button.danger{color:var(--danger);border-color:var(--danger)}.toggle{display:flex;gap:2px;background:var(--surface2);border:1px solid var(--border);padding:3px;border-radius:var(--radius)}.toggle button{height:27px;border:0;color:var(--muted);background:transparent;padding:0 10px;font-size:10px;white-space:nowrap;border-radius:calc(var(--radius) - 2px)}.toggle button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 5px #0001;font-weight:700}[data-theme="rose"] .toggle button.active{background:#2c202a;color:#ff82b6}.status{font-size:10px;display:inline-flex;align-items:center;gap:6px;padding:3px 7px;background:var(--surface3);color:var(--muted);border-radius:var(--pill);white-space:nowrap;font-weight:650}.status.changed{background:var(--accentSoft);color:var(--accent)}.status.good{background:var(--positiveBg);color:var(--positive)}.status.warn{background:var(--warningBg);color:var(--warning)}.status.error{background:var(--dangerBg);color:var(--danger)}.builder{display:grid;grid-template-columns:252px minmax(0,1fr) 302px;min-height:calc(100dvh - 165px);max-height:calc(100dvh - 165px);min-width:0}.pane{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:var(--surface)}.treepane{border-right:1px solid var(--border)}.stagepane{background:var(--previewOuter)}.inspectpane{border-left:1px solid var(--border)}.pane-head{padding:13px 13px 10px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:7px;flex:none}.pane-head b{font-size:12px;letter-spacing:-.01em}.pane-head small{font-size:10px;color:var(--muted)}.pane-scroll{overflow:auto;min-height:0;flex:1}.pane-foot{border-top:1px solid var(--border);padding:10px 13px;display:flex;align-items:center;gap:7px;justify-content:space-between;flex:none;color:var(--muted);font-size:10px}.tree-tabs{display:grid;grid-template-columns:1fr 1fr;padding:6px;gap:5px;border-bottom:1px solid var(--border)}.tree-tabs button{padding:8px 5px;border:0;color:var(--muted);background:transparent;font-size:10px;border-radius:var(--radius)}.tree-tabs button.active{background:var(--accentSoft);color:var(--accent);font-weight:720}.tree-group{padding:15px 11px 7px}.tree-caption{color:var(--muted);text-transform:uppercase;letter-spacing:.11em;font-size:9px;font-weight:700;margin:0 5px 8px}.tree-layout{padding:10px;background:var(--surface2);border:1px solid var(--border);display:flex;align-items:center;gap:9px;border-radius:var(--radius);margin-bottom:10px}.tree-layout b{font-size:11px}.tree-layout small{font-size:9px;display:block;color:var(--muted)}.tree-region{display:flex;align-items:center;justify-content:space-between;padding:7px 7px;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.tree-region .plus{border:0;background:transparent;color:var(--accent);font-size:18px;height:22px;width:24px}.tree-item{width:100%;display:flex;align-items:center;gap:7px;background:transparent;border:1px solid transparent;color:var(--text);padding:9px 7px;text-align:left;min-width:0;position:relative;border-radius:var(--radius);margin:1px 0;cursor:pointer}.tree-item:hover{background:var(--surface2)}.tree-item.selected{border-color:var(--accent);background:var(--accentSoft)}.tree-item .node-icon{display:grid;place-items:center;height:25px;width:25px;flex:none;background:var(--surface3);border-radius:var(--radius);color:var(--muted)}.tree-item.selected .node-icon{color:var(--accent)}.tree-item .node-label{min-width:0;flex:1}.tree-item .node-label b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}.tree-item .node-label small{display:block;color:var(--muted);font:9px ui-monospace,Consolas,monospace;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-item .node-badges{display:flex;gap:3px}.mini-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;display:inline-block}.tree-item.fixed{opacity:.76}.tree-item.hidden{opacity:.47}.tree-item[draggable="true"]{cursor:grab}.tree-item.drag-over{border:1px dashed var(--accent)}.mapping-card{padding:11px;border-bottom:1px solid var(--border2)}.mapping-card button{width:100%;text-align:left;border:0;background:none;color:var(--text);font-weight:680;padding:2px 0}.mapping-card small{color:var(--muted);font-size:10px;display:block;margin:3px 0 6px}.map-route{display:flex;align-items:center;gap:4px;flex-wrap:wrap;color:var(--muted);font:9px ui-monospace,Consolas,monospace}.map-route span{padding:3px 5px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius)}.mapping-note{font-size:10px;color:var(--muted);padding:12px;line-height:1.6}.stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;border-bottom:1px solid var(--border);background:var(--surface);flex:none}.stage-toolbar .meta{color:var(--muted);font-size:10px;display:flex;align-items:center;gap:7px}.stage-scroller{flex:1;overflow:auto;padding:22px 20px 40px;display:flex;align-items:start;justify-content:center;min-width:0}.preview-frame{width:100%;max-width:100%;height:720px;border:1px solid var(--border);background:white;box-shadow:var(--shadow);border-radius:var(--radius);display:block;transition:width .18s}.preview-frame.tablet{width:768px}.preview-frame.mobile{width:390px;height:740px}.stage-caption{font:9px ui-monospace,Consolas,monospace;color:var(--muted)}.notice{padding:11px;border-bottom:1px solid var(--border);color:var(--muted);font-size:10px;background:var(--surface2)}.notice strong{color:var(--text)}.panel-tabs{padding:9px 12px;display:flex;gap:5px;border-bottom:1px solid var(--border);flex:none}.panel-tabs button{border:0;background:transparent;color:var(--muted);padding:7px 10px;font-size:10px;border-radius:var(--radius)}.panel-tabs button.active{background:var(--accentSoft);color:var(--accent);font-weight:750}.inspect-scroll{padding:15px 14px 30px;overflow:auto;min-height:0;flex:1}.inspect-title{display:flex;justify-content:space-between;align-items:start;margin-bottom:15px;gap:8px}.inspect-title h3{font-size:15px;letter-spacing:-.025em;line-height:1.35}.inspect-title code{display:block;font-size:10px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.field{display:block;margin:0 0 15px}.field > span{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);font-weight:680;margin-bottom:6px}.field input,.field textarea,.field select{width:100%;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);padding:8px 9px;outline:0;min-width:0}.field input,.field select{height:34px}.field textarea{resize:vertical;min-height:64px;line-height:1.5}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--focus);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 12%,transparent)}.field small{display:block;margin-top:5px;color:var(--dim);font-size:10px;line-height:1.4}.field .inline-source{display:flex;gap:5px}.field .inline-source select{flex:0 0 104px;width:104px;font-size:10px}.field .inline-source input{min-width:0;flex:1}.field input[disabled],.field textarea[disabled]{opacity:.64;cursor:not-allowed}.field input[type="checkbox"]{height:15px;width:15px;accent-color:var(--accent)}.field .checkrow{display:flex;align-items:center;gap:9px;color:var(--text);font-size:11px}.divider{height:1px;background:var(--border);margin:14px 0}.actionrow{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 5px}.actionrow .button{flex:1}.helper{font-size:10px;color:var(--muted);line-height:1.6}.helper code{color:var(--accent)}.source-line{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0}.source-line span{font:9px ui-monospace,Consolas,monospace;background:var(--surface2);border:1px solid var(--border);padding:5px;border-radius:var(--radius)}.inline-alert{margin:9px 0;padding:10px 11px;background:var(--warningBg);color:var(--warning);font-size:10px;border-left:2px solid currentColor}.inline-alert.error{color:var(--danger);background:var(--dangerBg)}.small-title{font-size:10px;text-transform:uppercase;letter-spacing:.10em;color:var(--muted);font-weight:750;margin:18px 0 9px}.codebox{font:10px/1.7 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--surface2);border:1px solid var(--border);color:var(--text);border-radius:var(--radius)}.mobilebar{display:none}.modal-back{position:fixed;inset:0;z-index:100;background:#08080bb2;display:flex;align-items:center;justify-content:center;padding:16px}.modal{width:min(560px,100%);max-height:90dvh;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:0 28px 80px #0005}.modal-head{padding:18px 19px;border-bottom:1px solid var(--border)}.modal-head h2{font-size:18px;letter-spacing:-.03em}.modal-head p{font-size:11px;color:var(--muted);margin-top:5px}.modal-body{padding:17px 19px;max-height:55dvh;overflow:auto}.modal-foot{border-top:1px solid var(--border);padding:12px 19px;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.modal .field{margin:0 0 13px}.catalog-search{width:100%;padding:10px;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:10px}.catalog-list{display:grid;gap:6px}.catalog-item{display:flex;align-items:center;gap:12px;width:100%;background:var(--surface2);border:1px solid var(--border);text-align:left;border-radius:var(--radius);padding:11px;color:var(--text)}.catalog-item:hover{border-color:var(--accent)}.catalog-item b{display:block;font-size:11px}.catalog-item small{font-size:10px;display:block;color:var(--muted);margin-top:2px}.catalog-item svg{color:var(--accent);width:18px;height:18px}.catalog-item span{flex:1}.catalog-group{display:flex;gap:5px;margin-bottom:10px;flex-wrap:wrap}.catalog-group button{font-size:10px;border:1px solid var(--border);background:var(--surface2);color:var(--muted);border-radius:var(--radius);padding:5px 9px}.catalog-group button.active{background:var(--accentSoft);color:var(--accent);border-color:var(--accent)}#toast{position:fixed;right:18px;bottom:17px;z-index:130;background:var(--surface);border:1px solid var(--accent);border-radius:var(--radius);padding:12px 15px;color:var(--text);max-width:360px;box-shadow:var(--shadow);display:none;font-size:11px}.mobile-cover{display:none}.muted{color:var(--muted)}.mono{font-family:ui-monospace,Consolas,monospace}.empty{padding:26px 15px;text-align:center;color:var(--muted);font-size:11px}.empty b{display:block;color:var(--text);margin-bottom:4px}
@media(max-width:1380px){.layout{grid-template-columns:205px minmax(0,1fr)}.builder{grid-template-columns:233px minmax(0,1fr) 283px}.head,.top{padding-left:16px;padding-right:16px}.head h1{font-size:20px}}
@media(max-width:1160px){.layout{grid-template-columns:64px minmax(0,1fr)}.side-brand{justify-content:center;padding:10px}.brand-logo{width:34px;height:34px}.brand-copy,.side-section,.side-link span,.side-link em,.side-bottom .side-site,.side-footer small{display:none}.side-nav{padding:0 6px}.side-link{justify-content:center;padding:0}.side-footer{justify-content:center}.builder{grid-template-columns:226px minmax(0,1fr) 277px}}
@media(max-width:960px){.builder{grid-template-columns:218px minmax(0,1fr);max-height:none;min-height:calc(100vh - 165px);grid-template-areas:"tree stage" "inspect inspect"}.treepane{grid-area:tree;min-height:650px;max-height:820px}.stagepane{grid-area:stage;min-height:650px;max-height:820px}.inspectpane{grid-area:inspect;min-height:0;overflow:visible;max-height:none;border:0;border-top:1px solid var(--border)}.inspect-scroll{max-width:750px;width:100%;padding:15px 20px}.pane-scroll{max-height:760px}.stage-scroller{min-height:0}.preview-frame{height:610px}.head{align-items:flex-start}.head-actions{max-width:400px}.inspectpane .pane-foot{display:none}}
@media(max-width:700px){.layout{display:block}.side{position:fixed;left:0;top:0;bottom:0;width:230px;transform:translateX(-110%);transition:transform .2s;box-shadow:18px 0 55px #0006}.side.open{transform:translateX(0)}.mobile-cover.show{position:fixed;inset:0;background:#0009;display:block;z-index:11}.side .brand-copy,.side .side-section,.side .side-link span,.side .side-link em,.side .side-bottom .side-site,.side .side-footer small{display:block}.side .side-link{justify-content:flex-start;padding:0 11px}.mobile-menu{display:grid}.top{height:49px;padding:0 12px}.head{padding:13px 13px 14px;display:block}.head h1{font-size:21px}.head-actions{margin-top:12px;max-width:none;justify-content:flex-start}.head-actions .button{height:30px}.builder{display:flex;flex-direction:column;max-height:none;min-height:0}.pane{overflow:visible;border-left:0;border-right:0}.stagepane{order:0;min-height:0;max-height:none}.treepane{order:1;min-height:0;max-height:none;border-bottom:1px solid var(--border)}.inspectpane{order:2;min-height:0}.stage-scroller{min-height:0;overflow:auto;padding:14px 14px 20px;display:block}.preview-frame{height:440px;width:100%!important;max-width:100%;margin:auto}.preview-frame.mobile{width:390px!important;max-width:100%;height:480px}.stage-toolbar{flex-wrap:wrap;gap:5px}.treepane .pane-scroll,.inspectpane .pane-scroll,.inspect-scroll{overflow:visible;max-height:none}.tree-group{padding-bottom:15px}.tree-item{padding:12px 9px}.pane-head{padding:13px}.inspect-scroll{max-width:100%}.mobilebar{display:flex;padding:7px 12px;gap:6px;border-bottom:1px solid var(--border);background:var(--surface2)}.mobilebar button{flex:1;min-height:31px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius)}.top-live{display:none}.breadcrumbs{overflow:hidden;text-overflow:ellipsis}.breadcrumbs .truncate{display:none}}
@media(max-width:390px){.head-actions .toggle{width:100%}.head-actions .button{flex:1}.stage-toolbar .meta{width:100%}.toggle button{padding:0 7px}.head-meta code{overflow:hidden;text-overflow:ellipsis;max-width:225px}.pane-head b{font-size:11px}}
/* Stage 2.3 — source mapping, data explorer and reverse dependencies. */
.mapping-metrics{display:flex;gap:5px;flex-wrap:wrap;margin:11px 0}
.mapping-metrics span{display:inline-flex;padding:4px 7px;border:1px solid var(--border);background:var(--surface2);font:10px ui-monospace,Consolas,monospace;color:var(--muted);border-radius:var(--pill)}
.mapping-metrics .has-issues{color:var(--warning);background:var(--warningBg);border-color:color-mix(in srgb,var(--warning) 30%,var(--border))}
.mapping-card{padding:11px 10px 13px;margin:0 5px 7px;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius)}
.mapping-card.map-selected{border-color:var(--accent);background:color-mix(in srgb,var(--accentSoft) 34%,var(--surface))}
.mapping-card .map-block-title{display:flex;align-items:flex-start;gap:7px;text-align:left;color:var(--text);padding-bottom:8px;min-width:0}
.mapping-card .map-block-title > svg{width:14px;height:14px;color:var(--accent);flex:none;margin-top:2px}
.mapping-card .map-block-title span{min-width:0}
.mapping-card .map-block-title b{display:block;overflow-wrap:anywhere}
.mapping-card .map-block-title small{font:9px/1.5 ui-monospace,Consolas,monospace;color:var(--muted);overflow-wrap:anywhere}
.map-edge{display:grid;grid-template-columns:minmax(0,65px) auto minmax(0,1fr) 19px;align-items:center;gap:5px;font-size:10px;padding:7px 0;border-top:1px solid var(--border2)}
.map-edge .mono{color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.map-edge .edge-type{font-size:9px;font-weight:700;color:var(--accent);padding:1px 5px;border-radius:var(--pill);background:var(--accentSoft)}
.map-edge .edge-type.error{color:var(--danger);background:var(--dangerBg)}
.map-edge .edge-value{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,Consolas,monospace;font-size:9px}
.map-edge button{border:0;background:none;color:var(--accent);padding:0;width:19px;height:20px}
.map-issue{color:var(--danger);font-size:9px;line-height:1.45;display:flex;align-items:start;gap:5px;padding-top:5px;overflow-wrap:anywhere}
.map-issue svg{width:11px;height:11px;flex:none}
.tree-error-dot{display:grid;place-items:center;font-size:9px;font-weight:900;height:16px;width:16px;background:var(--dangerBg);color:var(--danger);border-radius:50%}
.picker-current{display:flex;align-items:center;gap:5px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius);padding:5px 5px 5px 9px;min-width:0}
.picker-current .mono{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.mini-action{border:1px solid var(--border);background:var(--surface2);border-radius:var(--pill);color:var(--muted);display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:6px 8px;font-size:10px;font-weight:600;min-height:27px;white-space:nowrap}
.mini-action svg{height:12px;width:12px}
.mini-action:hover{color:var(--accent);border-color:var(--accent);background:var(--accentSoft)}
.mini-action.primary-action{background:var(--accentSoft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 32%,var(--border))}
.tiny-source{display:inline-flex;align-items:center;gap:4px;background:var(--surface2);color:var(--muted);border:1px solid var(--border);border-radius:var(--pill);font-size:9px;max-width:158px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 5px}
.tiny-source.bound{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 33%,var(--border));background:var(--accentSoft)}
.tiny-source svg{width:10px;height:10px}
.field-issue{padding:7px 8px;display:flex;gap:5px;align-items:flex-start;font:10px/1.5 ui-monospace,Consolas,monospace;color:var(--warning);background:var(--warningBg);margin-top:7px;border-left:2px solid currentColor;overflow-wrap:anywhere}
.field-issue svg{width:13px;height:13px;flex:none}
.field-issue.error{color:var(--danger);background:var(--dangerBg)}
.binding-entry{border:1px solid var(--border);background:var(--surface2);border-radius:var(--radius);padding:11px;margin:0 0 10px}
.binding-top,.binding-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.binding-top b{font-size:11px}
.source-type{font:9px ui-monospace,Consolas,monospace;padding:3px 6px;color:var(--accent);background:var(--accentSoft);border:1px solid var(--border);border-radius:var(--pill)}
.source-type.error{color:var(--danger);background:var(--dangerBg)}
.source-type.warn{color:var(--warning);background:var(--warningBg)}
.binding-key{margin:8px 0;color:var(--muted);font:9px/1.5 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.binding-result{color:var(--text);display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.45;overflow-wrap:anywhere;margin:8px 0}
.binding-result svg{color:var(--accent);width:13px;height:13px;flex:none;margin-top:2px}
.binding-actions{justify-content:flex-start;gap:5px;margin-top:10px}
.path-strip{display:flex;align-items:center;gap:3px;flex-wrap:wrap;font:9px ui-monospace,Consolas,monospace;color:var(--muted);padding:9px 7px;background:var(--surface2);border:1px solid var(--border);margin:0 0 16px;border-radius:var(--radius)}
.path-strip span{overflow-wrap:anywhere}
.picker-summary{padding:11px;display:flex;gap:7px;flex-wrap:wrap;align-items:center;border:1px solid var(--border);background:var(--surface2);border-radius:var(--radius);font:10px/1.5 ui-monospace,Consolas,monospace;margin-bottom:12px;overflow-wrap:anywhere}
.picker-summary svg{width:15px;height:15px;color:var(--accent)}
.choice-group{margin:14px 0 18px}
.choice-label{font-size:10px;font-weight:750;color:var(--muted);display:flex;justify-content:space-between;text-transform:uppercase;letter-spacing:.06em;margin:10px 0 7px}
.choice-item{width:100%;display:flex;align-items:center;gap:9px;text-align:left;color:var(--text);background:var(--surface2);border:1px solid var(--border);border-bottom:0;padding:10px;min-width:0}
.choice-item:last-child{border-bottom:1px solid var(--border)}
.choice-item:first-of-type{border-radius:var(--radius) var(--radius) 0 0}
.choice-item:last-child{border-radius:0 0 var(--radius) var(--radius)}
.choice-item:hover{background:var(--accentSoft);border-color:var(--accent)}
.choice-item .choice-glyph{color:var(--accent);display:grid;place-items:center;flex:none;width:19px}
.choice-item .choice-glyph svg{width:15px;height:15px}
.choice-info{min-width:0;flex:1}
.choice-info b{display:block;font-size:11px}
.choice-info small{font-size:9px;color:var(--muted);display:block;overflow-wrap:anywhere}
.choice-flag{border-radius:var(--pill);font-size:9px;color:var(--muted);border:1px solid var(--border);padding:3px 5px;flex:none}
.choice-flag.bad{color:var(--danger);background:var(--dangerBg)}
.choice-flag.warning{color:var(--warning);background:var(--warningBg)}
.usage-summary{display:flex;gap:9px;align-items:center;margin-bottom:13px;overflow-wrap:anywhere}
.usage-summary code{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.usage-item{display:flex;align-items:center;gap:12px;justify-content:space-between;width:100%;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-bottom:0;text-align:left;padding:10px;border-radius:0}
.usage-item:last-of-type{border-bottom:1px solid var(--border)}
.usage-item:hover{background:var(--accentSoft);color:var(--accent)}
.usage-item span{min-width:0}
.usage-item b{display:block;font-size:11px}
.usage-item small{font:9px ui-monospace,Consolas,monospace;display:block;color:var(--muted);overflow-wrap:anywhere;margin-top:5px}
.library-grid{display:grid;gap:0}
.library-head{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin:15px 0 4px}
.library-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 0;border-bottom:1px solid var(--border2)}
.library-row b{font-size:10px;display:block}
.library-row small{font-size:9px;display:block;color:var(--muted);overflow-wrap:anywhere}
.library-row span{min-width:0}
.library-row .mini-action{flex:none}
@media(max-width:700px){.mapping-card{margin:0 10px 9px}.choice-item{padding:9px}.binding-entry{padding:12px}}
.usage-entry{border:1px solid var(--border);border-bottom:0;background:var(--surface2);padding:9px 10px}
.usage-entry:last-of-type{border-bottom:1px solid var(--border)}
.usage-entry b{display:block;font-size:11px}
.usage-entry small{display:block;margin-top:4px;color:var(--muted);font:9px ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
/* Stage 2.4 — live/workspace clarity, per-field QA, version comparisons. */
.draft-hint{font:10px ui-monospace,Consolas,monospace;color:var(--muted)}
.head-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tag-muted{font:9px ui-monospace,Consolas,monospace;color:var(--dim);text-transform:none;letter-spacing:0;margin-left:auto}
.inspector-callout{font-size:10px;line-height:1.6;padding:10px 11px;background:var(--accentSoft);border-left:2px solid var(--accent);margin-bottom:13px;color:var(--text)}
.serp-preview{margin:10px 0 18px;padding:13px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--radius);font-size:11px;overflow-wrap:anywhere}
.serp-url{color:var(--positive);font-size:10px;margin-bottom:4px}
.serp-title{color:var(--accent);font-size:15px;font-weight:650;line-height:1.35;margin-bottom:5px}
.serp-desc{color:var(--muted);font-size:11px}
.markdown-preview{border:1px solid var(--border);background:var(--surface2);margin-top:10px;border-radius:var(--radius)}
.markdown-preview summary{padding:10px 11px;cursor:pointer;color:var(--text);font-weight:650;font-size:10px}
.markdown-render{padding:10px 12px;border-top:1px solid var(--border);font-size:11px;overflow-wrap:anywhere}
.markdown-render h1{font-size:17px;margin-bottom:7px}.markdown-render h2{font-size:15px;margin-bottom:7px}.markdown-render h3{font-size:13px;margin-bottom:6px}.markdown-render p{margin:7px 0}.markdown-render ul{padding-left:20px}.markdown-render a{color:var(--accent);text-decoration:underline}
.review-dialog,.compare-dialog{width:min(1020px,calc(100vw - 32px));max-width:100%;}
.review-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:13px}
.review-count{border:1px solid var(--border);background:var(--surface2);padding:12px;display:flex;flex-direction:column;gap:3px;border-radius:var(--radius)}
.review-count b{font-size:24px;line-height:1.2;letter-spacing:-.04em}.review-count span{font-size:10px;color:var(--muted)}
.review-count:first-child b{color:var(--danger)}.review-count:nth-child(2) b{color:var(--warning)}.review-count:nth-child(3) b{color:var(--accent)}
.review-banner{padding:10px 12px;border-left:3px solid var(--positive);background:var(--positiveBg);font-size:11px;margin:8px 0 13px}
.review-banner.danger{background:var(--dangerBg);border-color:var(--danger)}
.review-filters{display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:var(--surface2);border-radius:var(--radius);margin:12px 0}
.review-filters button{border:1px solid transparent;background:transparent;color:var(--muted);padding:8px 10px;font-size:10px;border-radius:var(--pill);font-weight:650}
.review-filters button.active{background:var(--surface);border-color:var(--border);color:var(--text)}
.review-list{max-height:300px;overflow:auto;border:1px solid var(--border);border-radius:var(--radius)}
.review-item{display:flex;align-items:center;width:100%;text-align:left;gap:10px;background:var(--surface);color:var(--text);padding:12px;border:0;border-bottom:1px solid var(--border2)}
.review-item:last-child{border-bottom:0}.review-item:hover{background:var(--accentSoft)}
.issue-label{font-size:9px;font-weight:800;padding:4px 6px;color:var(--warning);background:var(--warningBg);flex:none}
.review-item.error .issue-label{color:var(--danger);background:var(--dangerBg)}
.review-item span:nth-child(2){flex:1;min-width:0}
.review-item b{font-size:11px;display:block;font-weight:600}
.review-item small{display:block;color:var(--muted);margin-top:5px;font:9px/1.4 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}
.review-item svg{color:var(--accent)}
.compare-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:10px;color:var(--muted)}
.compare-meta span{background:var(--surface2);border:1px solid var(--border);padding:6px 8px}
.compare-meta b{color:var(--text)}
.compare-table{border:1px solid var(--border);border-radius:var(--radius);max-height:350px;overflow:auto}
.compare-label-head,.compare-line{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px;border-bottom:1px solid var(--border2);font-size:10px}
.compare-label-head{background:var(--surface2);color:var(--muted);position:sticky;top:0;z-index:1}
.compare-line:last-child{border-bottom:0}.compare-line code{font:10px ui-monospace,Consolas,monospace;color:var(--accent);overflow-wrap:anywhere}.compare-line span{line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.compare-line span:nth-child(2){color:var(--danger)}.compare-line span:nth-child(3){color:var(--positive)}
.visual-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0}
.visual-compare>div{min-width:0}.visual-compare h3{font-size:11px;margin-bottom:8px;color:var(--muted)}
.compare-mini{background:#f5f5f4;color:#20252d;border:1px solid #d8d9dc;font-family:ui-sans-serif,Arial,sans-serif;min-height:230px;overflow:hidden}
.mini-header{display:flex;justify-content:space-between;background:white;border-bottom:1px solid #e2e3e5;padding:12px;font-weight:800;font-size:13px}.mini-header span{color:#c069a9}.mini-header small{font-size:9px;color:#848896}
.mini-hero{background:#edf0f7;padding:22px 18px;min-height:100px}.mini-hero small{font-size:9px;color:#827aa0}.mini-hero strong{display:block;font-size:17px;line-height:1.2;max-width:300px;margin:8px 0;letter-spacing:-.04em}.mini-hero p{font-size:10px;line-height:1.5;color:#636b7c;max-width:310px}
.mini-section{padding:14px 18px;border-bottom:1px solid #e2e3e5}.mini-section small{color:#898d99;display:block;font-size:9px}.mini-section b{display:block;font-size:13px;margin-top:5px;overflow-wrap:anywhere}
@media(max-width:700px){.review-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-compare{grid-template-columns:1fr}.compare-label-head,.compare-line{grid-template-columns:minmax(0,.7fr) minmax(0,1fr) minmax(0,1fr);gap:5px;padding:8px 6px;font-size:9px}.review-item{padding:9px 7px;gap:6px}.issue-label{font-size:8px}.compare-mini{min-height:180px}.draft-hint{width:100%}}
/* ━━━━━━━━━━━━━━━ Site Engine / Stage 3 · Expert ━━━━━━━━━━━━━━━ */
.builder.expert-layout{grid-template-columns:218px minmax(0,1fr) 315px;min-height:calc(100dvh - 165px);max-height:calc(100dvh - 165px)}
.expert-layout .treepane{background:var(--surface2)}
.expert-layout .stagepane{min-height:0;background:var(--surface)}
.expert-layout .inspectpane{background:var(--surface)}
.expert-files{padding:9px 7px;overflow-y:auto}
.expert-folder{display:flex;align-items:center;gap:7px;padding:16px 10px 9px;font:700 10px ui-monospace,Consolas,monospace;color:var(--muted)}
.expert-folder svg{width:13px;height:13px;color:var(--accent)}
.expert-folder small{margin-left:auto;font-size:9px;opacity:.75}
.expert-file{display:flex;width:100%;border:1px solid transparent;align-items:center;gap:9px;min-height:40px;padding:7px 9px;text-align:left;color:var(--text);background:transparent;border-radius:var(--radius)}
.expert-file svg{color:var(--muted);width:14px;height:14px}
.expert-file span{min-width:0;display:block}.expert-file span b{font-size:10px;font-weight:700;display:block}.expert-file span small{font-size:9px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.expert-file:hover{background:var(--surface3)}.expert-file.selected{background:var(--accentSoft);color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,var(--border))}.expert-file.selected svg{color:var(--accent)}
.expert-file.disabled-file{cursor:default;color:var(--dim);font-size:10px;opacity:.8}.expert-file.disabled-file:hover{background:transparent}.expert-tree-note{font-size:10px;line-height:1.65;color:var(--muted);padding:11px;margin:21px 5px;border:1px solid var(--border);background:var(--surface)}
.expert-tree-note b{color:var(--text)}
.expert-editor-header{height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border);padding:0 12px;background:var(--surface2);font-size:10px;color:var(--muted);flex:none}
.expert-editor-header .filetab{align-items:center;display:flex;gap:8px;max-width:100%;min-width:0;padding:0 10px;height:100%;border-bottom:2px solid var(--accent);background:var(--surface)}
.expert-editor-header .filetab svg{color:var(--accent);height:14px;width:14px}.expert-editor-header .filetab b{color:var(--text);font:650 10px ui-monospace,Consolas,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-edited{color:var(--warning);font-size:13px}.expert-editor-header .muted{white-space:nowrap;font-size:9px;color:var(--muted)}
.expert-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:9px 11px;border-bottom:1px solid var(--border);background:var(--surface);flex:none;min-height:45px}
.expert-tools>.mono{font-size:9px;color:var(--dim);margin-right:auto}.expert-find{display:flex;gap:3px}.expert-find input{width:118px;min-width:0;height:28px;padding:0 7px;border:1px solid var(--border);color:var(--text);background:var(--surface2);border-radius:var(--radius);font-size:10px}
.expert-codebox{min-height:300px;flex:1;display:flex;overflow:hidden;position:relative;background:var(--surface)}
.expert-codebox:focus-within{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 32%,transparent)}
.expert-gutter{flex:none;margin:0;width:44px;overflow:hidden;padding:13px 9px 40px 7px;border-right:1px solid var(--border);background:var(--surface2);color:var(--dim);font:11.5px/19px ui-monospace,SFMono-Regular,Consolas,monospace;text-align:right;white-space:pre;user-select:none;tab-size:2}
.expert-codewrap{min-width:0;min-height:0;flex:1;position:relative;overflow:hidden}
.expert-highlighter,.expert-textarea{position:absolute;inset:0;margin:0;border:0;border-radius:0;padding:13px 14px 40px;width:100%;height:100%;overflow:auto;white-space:pre;word-wrap:normal;overflow-wrap:normal;tab-size:2;letter-spacing:0;font:11.5px/19px ui-monospace,SFMono-Regular,Consolas,Monaco,monospace}
.expert-highlighter{z-index:0;pointer-events:none;scrollbar-width:none;color:var(--text);background:transparent;white-space:pre}
.expert-highlighter::-webkit-scrollbar{display:none}
.expert-textarea{z-index:1;resize:none;background:transparent;color:transparent;caret-color:var(--text);-webkit-text-fill-color:transparent;outline:none;scrollbar-color:var(--border) transparent}
.expert-textarea::selection{background:color-mix(in srgb,var(--accent) 30%,transparent);-webkit-text-fill-color:transparent}
.expert-textarea:focus-visible{outline:none}
.tok-key{color:var(--accent);font-weight:650}.tok-punct{color:var(--muted)}.tok-value{color:var(--text)}.tok-atom{color:var(--positive)}.tok-rule{color:var(--warning)}.tok-comment{color:var(--dim);font-style:italic}.tok-md{color:var(--text)}
.expert-statusbar{height:29px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 13px;color:var(--muted);background:var(--surface2);border-top:1px solid var(--border);flex:none;font:9px ui-monospace,Consolas,monospace;white-space:nowrap}
.expert-statusbar #expert-source-state{overflow:hidden;text-overflow:ellipsis}.expert-status-invalid{color:var(--danger)}.expert-status-unapplied{color:var(--warning)}.expert-status-good{color:var(--positive)}
.expert-side-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;flex:1;padding:11px;display:flex;flex-direction:column;gap:11px}
.expert-side-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px}
.expert-mini-preview{height:205px;border:1px solid var(--border);background:var(--previewOuter);border-radius:var(--radius);overflow:hidden;flex:none}
.expert-mini-preview iframe{display:block;height:100%;width:100%;border:0;background:#fff}
.expert-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border);padding:6px 0 10px;font-size:11px}
.expert-summary #expert-validation-pip{font-size:9px;color:var(--positive)}.expert-summary #expert-validation-pip.alert{color:var(--danger)}
.expert-issue{min-height:40px}.expert-ok{padding:10px;border-left:2px solid var(--positive);background:var(--positiveBg);font-size:10px;color:var(--positive);line-height:1.5}
.expert-error{padding:10px;border-left:2px solid var(--danger);background:var(--dangerBg);color:var(--danger);font-size:10px;display:flex;flex-direction:column;align-items:start;gap:5px;line-height:1.4}
.expert-error code{overflow-wrap:anywhere}.expert-error .mini-action{margin-top:5px}
.expert-info{display:grid;gap:0;background:var(--surface2);padding:3px 10px;border:1px solid var(--border)}.expert-info>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--border2);color:var(--muted);font-size:10px}.expert-info>div:last-child{border:0}.expert-info code{color:var(--text);overflow-wrap:anywhere}
.expert-side-actions{display:flex;flex-wrap:wrap;gap:6px}.expert-note{border:1px solid var(--border);background:var(--surface2);padding:11px}.expert-note b{font-size:10px}.expert-note p{margin-top:6px;font-size:10px;line-height:1.65;color:var(--muted)}
.expert-publish-issues{font-size:10px;color:var(--muted)}.expert-publish-issues>b{color:var(--text)}.expert-publish-issues p{margin-top:10px}.expert-publish-line{display:flex;gap:7px;padding:7px 0;border-bottom:1px solid var(--border2);line-height:1.4}.expert-publish-line svg{width:12px;height:12px;flex:none;color:var(--warning)}.expert-publish-line.error svg{color:var(--danger)}
.expert-diff-dialog{width:min(940px,100%)}.expert-diff{overflow:auto;max-height:min(60dvh,650px);border:1px solid var(--border);background:var(--surface2);margin-top:10px}
.diff-line{display:grid;grid-template-columns:35px 35px minmax(0,1fr);min-width:510px;font:10px/1.55 ui-monospace,Consolas,monospace}.diff-line>span{color:var(--dim);border-right:1px solid var(--border);padding:1px 7px;text-align:right;user-select:none}.diff-line code{white-space:pre;min-width:0;overflow:visible;padding:1px 8px;color:var(--text)}.diff-line.add{background:var(--positiveBg)}.diff-line.remove{background:var(--dangerBg)}.diff-line.add code{color:var(--positive)}.diff-line.remove code{color:var(--danger)}
.expert-conflict-dialog{width:min(760px,100%)}.expert-conflict-meta{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;border:1px solid var(--border);background:var(--surface2);padding:10px;margin-bottom:13px;font-size:11px}.expert-conflict-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.expert-conflict-grid section{padding:13px;border:1px solid var(--border);background:var(--surface2);min-width:0;display:flex;flex-direction:column;gap:8px}.expert-conflict-grid section:first-child{border-top:3px solid var(--accent)}.expert-conflict-grid section:last-child{border-top:3px solid var(--warning)}.expert-conflict-grid h3{font-size:12px}.expert-conflict-grid p{font-size:10px}.expert-conflict-grid code,.expert-conflict-grid small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:1380px){.builder.expert-layout{grid-template-columns:195px minmax(0,1fr) 282px}.expert-tools>.mono{display:none}}
@media(max-width:1050px){.builder.expert-layout{grid-template-columns:190px minmax(0,1fr);grid-template-areas:"tree stage" "inspect inspect";max-height:none;min-height:calc(100dvh - 165px)}.expert-layout .treepane{grid-area:tree;min-height:620px;max-height:830px}.expert-layout .stagepane{grid-area:stage;min-height:620px;max-height:830px}.expert-layout .inspectpane{grid-area:inspect;min-height:0;max-height:none}.expert-layout .expert-side-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.expert-layout .expert-mini-preview{height:250px}}
@media(max-width:700px){.builder.expert-layout{display:flex;flex-direction:column;max-height:none;min-height:0}.expert-layout .stagepane{order:0;min-height:680px;max-height:none}.expert-layout .treepane{order:1;min-height:190px;max-height:none}.expert-layout .inspectpane{order:2}.expert-codebox{height:480px;flex:none;min-height:480px}.expert-tools{flex-wrap:wrap}.expert-layout .expert-side-scroll{display:flex}.expert-editor-header .muted{display:none}.expert-conflict-grid{grid-template-columns:1fr}.expert-diff{max-height:55dvh}}
@media(max-width:390px){.expert-find input{width:88px}.expert-tools{gap:5px;padding:7px}.expert-gutter{width:34px;padding-left:4px;padding-right:6px}.expert-textarea,.expert-highlighter{font-size:10.5px;line-height:19px;padding-left:9px;padding-right:8px}.expert-statusbar>span:last-child{display:none}}