:root{--bg:#f4f5f2;--surface:#fff;--stage:#ecefe9;--ink:#1b3027;--muted:#738178;--line:#e1e7df;--brand:#087f61;--tint:#e0f1e8;--shadow:0 12px 35px #233c2912;color-scheme:light;font:14px/1.45 Outfit,system-ui,sans-serif}html[data-theme=dark]{--bg:#111c17;--surface:#1a2921;--stage:#101b15;--ink:#edf6ed;--muted:#a9bcae;--line:#35463a;--brand:#188966;--tint:#244939;--shadow:0 12px 35px #0004;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button,summary{cursor:pointer;min-height:42px;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:9px 13px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:7px}button:hover,summary:hover{background:var(--tint)}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.primary{background:var(--brand);border-color:var(--brand);color:white;font-weight:500}.primary:hover{background:#109472}header{height:80px;background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:0 25px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:21px;font-weight:600}.brand img{height:31px;width:31px}.brand small{display:block;font-size:9px;font-weight:400;letter-spacing:.15em;color:var(--muted);margin-top:3px}.pill{font-size:10px;color:var(--brand);background:var(--tint);border-radius:20px;padding:6px 11px}.top-actions{margin-left:auto;display:flex;gap:7px;align-items:center}#undo,#redo{font-size:23px;padding:4px 13px}#theme{font-size:20px;min-width:44px}details{position:relative}summary{list-style:none;min-width:90px}summary::-webkit-details-marker{display:none}.file-actions{position:absolute;right:0;top:50px;z-index:35;width:205px;background:var(--surface);padding:7px;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.file-actions button{border:0;width:100%;justify-content:flex-start}main{height:calc(100dvh - 132px);display:grid;grid-template-columns:82px minmax(0,1fr) 318px;gap:15px;padding:15px}#tools{display:flex;flex-direction:column;gap:4px;overflow:auto;scrollbar-width:thin;background:var(--surface);border-radius:15px;padding:8px 5px;border:1px solid var(--line)}#tools button{flex-shrink:0;flex-direction:column;font-size:10px;min-height:63px;border:0;background:transparent;padding:7px 4px}#tools button.active{background:var(--tint);color:var(--brand)}#tools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#workspace{min-width:0;min-height:0;background:var(--stage);border-radius:16px;display:flex;flex-direction:column;overflow:hidden;position:relative}.workspace-heading{display:flex;justify-content:space-between;gap:10px;padding:14px 19px;font-size:12px;color:var(--muted)}#doc-name{max-width:65%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:12px;touch-action:pan-x pan-y}.canvas-container{box-shadow:var(--shadow);flex-shrink:0;background:repeating-conic-gradient(#f3f4f0 0% 25%,#e1e5dd 0% 50%) 50% / 18px 18px}.zoom-bar{height:62px;display:flex;align-items:center;justify-content:center;gap:10px}.zoom-bar button{min-height:34px;padding:4px 13px}.zoom-bar span{min-width:45px;text-align:center;font-size:12px}aside{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:19px;min-height:0;overflow:auto;scrollbar-width:thin}.side-title,.section-heading{display:flex;align-items:center;justify-content:space-between}.side-title h1{font-size:19px;margin:0}.side-title button{display:none}h2{font-size:16px;margin:0}h3{font-size:14px;margin:20px 0 10px}label{display:block;font-size:12px;margin:17px 0}input:not([type=range]):not([type=checkbox]),select,textarea{display:block;width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px;margin-top:6px;min-height:40px}input[type=color]{padding:3px!important;height:42px}input[type=range]{display:block;width:100%;accent-color:var(--brand);margin-top:13px;cursor:pointer}input[type=checkbox]{accent-color:var(--brand)}output{float:right;color:var(--muted)}.fields,.button-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.fields label{margin:10px 0}.button-grid{margin:12px 0}.button-grid button{font-size:11px;white-space:normal;padding:8px}.check{display:flex;gap:8px;align-items:center;font-size:12px}.note,#panel p{font-size:12px;color:var(--muted);line-height:1.7}#panel>.primary{width:100%}#inspector{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.section-heading button{min-height:30px;padding:0 10px}#inspector label{margin:13px 0}.catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:410px;overflow:auto}.catalog button{padding:7px;min-width:0;display:block;aspect-ratio:1;background:var(--bg)}.catalog img{width:100%;height:100%;object-fit:contain;max-height:80px}.catalog span{display:block;font-size:9px;overflow:hidden;text-overflow:ellipsis}.layer-list{display:flex;flex-direction:column;gap:7px;max-height:330px;overflow:auto}.layer-list button{justify-content:flex-start;font-size:12px}.layer-list button.selected{border-color:var(--brand);background:var(--tint)}.layer-list img{width:35px;height:28px;object-fit:cover}.layer-list small{margin-left:auto;color:var(--muted)}footer{height:52px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 25px;background:var(--surface);border-top:1px solid var(--line);font-size:11px;color:var(--muted)}footer button{min-height:34px;font-size:11px}dialog{width:min(460px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--ink);padding:25px;box-shadow:0 30px 90px #0005}dialog::backdrop{background:#15231e80;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head button{border:0;background:none;padding:5px;font-size:22px}dialog .primary{width:100%}#welcome{text-align:center;padding:35px 30px}.welcome-symbol{width:68px;height:68px;display:grid;place-items:center;background:var(--tint);color:var(--brand);font-size:38px;border-radius:22px;margin:0 auto 22px}.eyebrow{letter-spacing:.13em;font-size:10px;color:var(--muted)}#welcome h2{font-size:30px;line-height:1.2;margin:15px 0}#welcome p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:25px}#welcome button{width:100%;margin-top:8px}#welcome small{display:block;font-size:10px;color:var(--muted);margin-top:23px}#toast{position:fixed;bottom:64px;left:50%;transform:translateX(-50%);z-index:80;max-width:calc(100vw - 32px);background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:12px;font-size:13px;box-shadow:var(--shadow)}#export-info,#export-error{font-size:12px;color:var(--muted)}#export-error{color:#cf4c47}[hidden]{display:none!important}html[data-theme=dark] .pill,html[data-theme=dark] #tools button.active{color:#84dfb9}@media(max-width:1000px){main{grid-template-columns:72px minmax(0,1fr) 280px;gap:10px;padding:10px}header{padding:0 15px}.pill{display:none}}
@media(max-width:760px){header{height:72px;padding:0 10px;gap:7px}.brand{font-size:16px;gap:7px}.brand img{width:27px;height:31px}.brand small{font-size:8px}.top-actions{gap:3px}#undo,#redo{display:none}summary{min-width:46px;font-size:12px;padding:9px}#theme{min-width:36px;padding:6px}#export-open{padding:9px}#export-open span{display:none}main{height:calc(100dvh - 118px);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 77px;padding:8px;gap:8px}#workspace{grid-row:1}#tools{grid-row:2;flex-direction:row;padding:5px;border-radius:13px}#tools button{min-width:59px;width:59px;min-height:60px;gap:5px}.workspace-heading{padding:10px 12px;font-size:10px}#stage{padding:8px}.zoom-bar{height:47px}.zoom-bar button{min-height:32px}aside{display:none;position:fixed;bottom:130px;left:10px;right:10px;max-height:44dvh;z-index:25;padding:16px;overscroll-behavior:contain}.panel-open aside{display:block}.panel-open #workspace{padding-bottom:calc(44dvh + 10px)}.side-title button{display:inline-flex;min-height:28px;width:28px;padding:2px}.side-title h1{font-size:17px}.catalog{max-height:220px}footer{height:46px;padding:0 12px;font-size:9px}#status{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}footer button{font-size:10px;padding:6px}#welcome h2{font-size:27px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Unified workspace — concept layout, original visual system */
:root{--bg:#edf1f9;--surface:#fff;--stage:#e5ebf6;--ink:#18213e;--muted:#77829d;--line:#e4e9f4;--brand:#4d5cff;--tint:#eff0ff;--shadow:0 14px 40px #34487313;font-size:13px}html[data-theme=dark]{--bg:#0d1220;--surface:#151e30;--stage:#101728;--ink:#eef1ff;--muted:#9aa7c4;--line:#2b3853;--brand:#7c83ff;--tint:#252f53;--shadow:0 14px 40px #0003}html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button{transition:background .15s,border-color .15s,box-shadow .15s}button:hover{border-color:var(--brand)}button.primary:hover{background:#6270ff}header{height:72px;padding:0 22px;gap:24px}header .brand{font-size:21px;letter-spacing:-.5px}.brand img{width:38px;height:38px}.brand small{letter-spacing:.18em;font-size:8px}.pill{color:var(--muted);background:transparent;font-size:12px}main{height:calc(100dvh - 110px);grid-template-columns:76px 255px minmax(0,1fr) 305px;gap:12px;padding:12px}#tools{background:#121c32;border-color:#121c32;gap:3px;padding:8px 5px}#tools button{color:#b9c3df;min-height:60px}#tools button.active{color:#fff;background:#4d5cff;box-shadow:0 6px 15px #3541b733}#tools button:hover{background:#263452}#tools svg{width:22px;height:22px}#quick-sidebar{padding:19px 17px}#quick-sidebar .side-title{margin-bottom:18px}#panel-title{font-size:15px;font-weight:600}#panel .panel-eyebrow{font-size:8px;letter-spacing:.13em;color:var(--muted);margin-bottom:10px}#panel h2{font-size:21px;letter-spacing:-.7px}#panel h3{font-size:13px}#panel p{font-size:11px;line-height:1.65;margin:9px 0 17px}#panel label{font-size:11px}#sidebar{padding:17px;position:relative}#sidebar .side-title h2{font-size:15px}.properties-tabs{display:flex;gap:6px;margin:15px 0}.properties-tabs button{flex:1;min-height:35px;font-size:11px;border:0;background:var(--tint)}#live-adjust details{border-bottom:1px solid var(--line);padding:4px 0 12px}#live-adjust summary{border:0;font-size:11px;min-height:32px;justify-content:space-between;padding:4px 0;background:transparent;font-weight:600;list-style:revert}.adjust-slider{font-size:11px;margin:16px 0!important}input[type=range]{height:5px;margin-top:12px;accent-color:var(--brand)}#workspace{background:radial-gradient(ellipse at 50% 45%,var(--surface),var(--stage));border:1px solid var(--line);border-radius:18px}.workspace-heading{padding:13px 18px;color:var(--muted);font-size:11px}#doc-name{color:var(--ink);font-weight:500}#stage{overflow:auto;padding:14px}#stage .canvas-container{box-shadow:0 18px 50px #1b31592a;border-radius:4px;overflow:hidden}.floating-tools{display:flex;align-items:center;justify-content:center;align-self:center;gap:6px;background:var(--surface);padding:6px 10px;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);margin:8px 10px}.floating-tools button{flex-direction:column;border:0;min-width:45px;padding:5px;font-size:9px;gap:3px;min-height:45px}.floating-tools svg,button>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#photo-strip{display:flex;gap:8px;padding:10px 14px 0;background:color-mix(in srgb,var(--surface) 50%,transparent);overflow-x:auto;flex-shrink:0}#photo-strip button{flex:1;min-width:46px;max-width:88px;height:58px;padding:0;overflow:hidden;position:relative;border-radius:10px}.photo-slot img{width:100%;height:100%;object-fit:cover}.photo-slot b{font-size:24px;font-weight:300;color:var(--muted)}.photo-slot small{position:absolute;left:4px;top:4px;border-radius:4px;background:#151e30aa;color:white;padding:0 4px;font-size:8px}.strip-add{flex-direction:column;gap:0;font-size:9px}.strip-add b{font-size:24px;font-weight:300}.zoom-bar{height:43px;flex-shrink:0}.zoom-bar button{min-height:27px;font-size:10px;padding:3px 10px}.zoom-bar span{font-size:10px}footer{height:38px;font-size:10px;padding:0 20px}footer button{min-height:26px;padding:3px 10px;font-size:10px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.quick-grid button{display:flex;flex-direction:column;align-items:flex-start;position:relative;min-height:85px;background:linear-gradient(145deg,var(--surface),var(--bg));padding:12px;font-size:11px;text-align:left;gap:9px;border-radius:13px}.quick-grid button b,.quick-list button b{position:absolute;right:11px;top:50%;font-size:18px;color:var(--muted);font-weight:400}.quick-symbol{display:grid;place-items:center;background:#e1eaff;color:#447afa;border-radius:9px;width:31px;height:31px}.quick-symbol svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.quick-grid button:nth-child(4n+2) .quick-symbol{color:#8b43ed;background:#efe5ff}.quick-grid button:nth-child(4n+3) .quick-symbol{color:#16a99c;background:#d7f7f0}.quick-grid button:nth-child(4n+4) .quick-symbol{color:#ef5785;background:#ffe3ec}.quick-list{display:grid;gap:7px}.quick-list button{justify-content:flex-start;position:relative;font-size:10px;padding:8px;min-height:39px;background:var(--bg)}.quick-list .quick-symbol{width:23px;height:23px;background:none;color:var(--ink)}.quick-list .quick-symbol svg{width:17px;height:17px}.look-grid,.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.look-grid button,.filter-grid button{padding:0;display:block;overflow:hidden;border-radius:11px;font-size:9px}.look-grid img,.filter-grid img{width:100%;height:55px;object-fit:cover}.look-grid span,.filter-grid span{display:block;padding:5px}.filter-grid{grid-template-columns:1fr 1fr}.filter-grid img{height:80px}.slot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.slot-grid button{height:64px;padding:0;overflow:hidden;position:relative}.layout-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.layout-grid button{flex-direction:column;font-size:9px;padding:7px}.layout-preview{width:100%;height:44px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr 1fr;gap:3px}.layout-preview i{background:#b8c6f2;border-radius:3px}.layout-1{grid-template-columns:1fr 1fr}.layout-1 i:nth-child(n+5),.layout-2 i:nth-child(n+3),.layout-5 i:nth-child(n+4),.layout-6 i:nth-child(n+2){display:none}.layout-2{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.layout-3 i:first-child{grid-row:span 2;grid-column:span 2}.layout-4 i:first-child{grid-column:span 3}.layout-5{grid-template-rows:1fr}.layout-6{display:block}.layout-6 i:first-child{display:block;width:100%;height:100%}.selected{border-color:var(--brand)!important;background:var(--tint)!important}.template-grid{display:grid;gap:10px}.template-grid button{padding:8px;flex-direction:column;text-align:left;align-items:stretch;font-size:10px}.template-art{display:flex;align-items:center;font-size:23px;font-weight:700;padding:17px;height:100px;line-height:1}.editorial{background:#efeade;color:#152c32}.social{background:#dedbff;color:#4d3df1}.sale{background:#ffd7ba;color:#d8543e}.layers-section{border-top:1px solid var(--line);margin-top:18px;padding-top:17px}.layers-section h2{display:flex;justify-content:space-between;align-items:center;font-size:13px}.layers-section h2 button{border:0;min-height:28px;padding:0 10px}.layer-list{margin-top:12px;max-height:240px}.layer-list button{min-height:37px;padding:7px;font-size:10px}.project-card{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;border:1px solid var(--line);padding:12px;border-radius:13px;margin-top:12px}.project-card img{width:64px;height:50px;object-fit:cover;border-radius:8px}.project-card small{display:block;color:var(--muted);font-size:10px}.project-card .button-grid{grid-column:1/-1;margin:0;grid-template-columns:repeat(4,1fr)}.project-card button{font-size:10px;padding:5px;min-height:32px}#close-properties{display:none}.primary{background:var(--brand)}#new-file{color:var(--muted)}html[data-theme=dark] #tools button.active{color:white}#inspector{padding-top:14px;margin-top:16px}#toast{bottom:48px;font-size:12px}.note{font-size:11px;color:var(--muted)}
@media(max-width:1250px){main{grid-template-columns:66px 218px minmax(0,1fr) 270px;gap:8px;padding:8px}header{gap:14px;padding:0 14px}.pill{display:none}#quick-sidebar,#sidebar{padding:13px}.quick-grid button{padding:9px;min-height:78px;font-size:10px}.floating-tools{gap:0;padding:5px}.floating-tools button{min-width:40px}}
@media(max-width:1000px) and (min-width:761px){main{grid-template-columns:62px 200px minmax(0,1fr)}#sidebar{display:none;position:fixed;right:12px;top:85px;bottom:48px;width:285px;z-index:25;box-shadow:var(--shadow)}.properties-open #sidebar{display:block}#close-properties{display:inline-flex}.top-actions button{font-size:12px}.floating-tools button{min-width:33px}#photo-strip{gap:4px;padding:8px 8px 0}#photo-strip button{height:46px;min-width:35px}.brand{font-size:18px!important}}
@media(max-width:760px){header{height:62px;padding:0 9px;gap:6px}.brand{font-size:15px!important;gap:6px}.brand img{width:29px;height:29px}.brand small{font-size:7px}.top-actions{gap:4px}#projects-open{font-size:0;padding:7px;min-width:35px}#projects-open:before{content:'▤';font-size:19px}#theme{min-width:34px;padding:6px}#export-open{min-width:35px;padding:7px}#undo,#redo{display:inline-flex;font-size:14px;padding:6px;min-width:30px;min-height:35px}summary{min-width:38px;padding:7px;font-size:10px}main{height:calc(100dvh - 96px);grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 64px;padding:6px;gap:6px}#workspace{grid-row:1;grid-column:1}.workspace-heading{padding:8px 11px;font-size:9px}#tools{grid-row:2;grid-column:1;flex-direction:row;border-radius:12px;padding:3px;gap:0}#tools button{min-width:54px;width:54px;min-height:55px;font-size:9px;gap:3px}#tools svg{width:20px;height:20px}#quick-sidebar,#sidebar{display:none;position:fixed;top:auto;left:6px;right:6px;bottom:104px;max-height:39dvh;height:39dvh;width:auto;z-index:25;padding:13px;border-radius:15px;box-shadow:0 0 0 1px var(--line),0 -7px 35px #17244212;overflow:auto}.panel-open #quick-sidebar{display:block}.properties-open #sidebar{display:block}.panel-open #workspace,.properties-open #workspace{padding-bottom:calc(39dvh + 6px)}.side-title button,#close-properties{display:inline-flex;min-height:27px;width:27px;padding:2px}.side-title h1{font-size:15px}.quick-grid{grid-template-columns:repeat(3,1fr)}.quick-grid button{min-height:68px;padding:8px;font-size:10px;gap:6px}.quick-symbol{width:26px;height:26px}.quick-grid button b{display:none}#quick-sidebar .side-title{margin-bottom:10px}.floating-tools{margin:4px;gap:1px;padding:3px;border-radius:12px}.floating-tools button{min-height:34px;min-width:39px;padding:3px;gap:2px;font-size:8px}.floating-tools svg{height:16px;width:16px}#photo-strip{gap:5px;padding:5px 8px 0}#photo-strip button{height:39px;min-width:30px}.strip-add span{display:none}.zoom-bar{height:30px}.zoom-bar button{min-height:23px;padding:2px 8px;font-size:9px}.zoom-bar span{font-size:9px}#stage{padding:5px}footer{height:34px;padding:0 10px;font-size:8px}footer button{font-size:8px;min-height:23px;padding:3px 6px}#inspector{margin-top:13px}.slot-grid{grid-template-columns:repeat(6,1fr)}.slot-grid button{height:43px}.layout-grid{grid-template-columns:repeat(3,1fr)}.layout-preview{height:35px}.template-grid{grid-template-columns:repeat(3,1fr)}.template-art{font-size:15px;padding:8px;height:80px}.filter-grid{grid-template-columns:repeat(4,1fr)}.filter-grid img{height:45px}#toast{bottom:40px;font-size:10px}.project-card .button-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:390px){.brand span{font-size:12px}.brand img{width:24px;height:24px}.top-actions{gap:2px}#undo,#redo{min-width:26px;padding:4px}#theme,#projects-open,#export-open{min-width:29px}header{padding:0 6px}.brand{gap:3px}}
body:not(.layer-mode) #inspector{display:none!important}#stage .canvas-container{overflow:visible}#live-adjust summary{width:100%}body.layer-mode #sidebar>.side-title h2{font-size:15px}

@media(max-width:760px){#toast{bottom:105px}}
/* Refined light theme, quick toolbar, adjustments and project drawer. */
html[data-theme=light] #tools{background:#fff;border-color:var(--line);box-shadow:var(--shadow)}
html[data-theme=light] #tools button{color:#26334e}html[data-theme=light] #tools button:hover{background:#f0f3fc}html[data-theme=light] #tools button.active{background:#e9edff;color:#354acb;box-shadow:none}
main{grid-template-rows:42px minmax(0,1fr)}#tools{grid-column:1;grid-row:1/3}#quick-sidebar{grid-column:2;grid-row:1/3}#workspace{grid-column:3;grid-row:2}#sidebar{grid-column:4;grid-row:1/3}
#top-tools{grid-column:3;grid-row:1;display:flex;gap:5px;min-width:0;overflow-x:auto;scrollbar-width:none;align-items:center}#top-tools button{flex:1;white-space:nowrap;font-size:11px;min-height:36px;padding:6px 9px;border-radius:10px}#top-tools svg{width:17px;height:17px}.floating-tools{display:none}
.properties-tabs{padding:4px;background:var(--bg);border:1px solid var(--line);border-radius:12px}.properties-tabs button{background:transparent;border-radius:9px;font-weight:600}body:not(.layer-mode) #right-adjust,body.layer-mode #right-layers{background:var(--surface);color:var(--brand);box-shadow:0 3px 9px #14264a12}
#live-adjust details{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px;margin:12px 0}#live-adjust summary{font-size:12px;padding:0;min-height:26px}#live-adjust summary:after{content:'⌄';color:var(--muted)}.adjust-slider{padding:5px 0;font-weight:500}.adjust-slider output{background:var(--surface);border:1px solid var(--line);border-radius:7px;min-width:34px;text-align:center;color:var(--ink);font-variant-numeric:tabular-nums;padding:2px 6px;margin-top:-4px}.adjust-slider input{margin-top:19px;height:6px}#sidebar input[type=range]{accent-color:var(--brand)}#sidebar .fields{background:var(--bg);padding:7px;border-radius:12px}#sidebar .side-title{padding-bottom:6px}
#projects-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(440px,100vw);height:100dvh;max-height:100dvh;border-radius:18px 0 0 18px;padding:0;border:1px solid var(--line);overflow:hidden}#projects-dialog[open]{display:flex;flex-direction:column}#projects-dialog::backdrop{background:#17244270;backdrop-filter:blur(2px)}#projects-dialog .dialog-head{padding:20px;border-bottom:1px solid var(--line);flex-shrink:0}#projects-dialog h2{font-size:19px}#projects-dialog .eyebrow{font-size:9px}.project-save-area{padding:0 20px 10px;border-bottom:1px solid var(--line);flex-shrink:0}.project-save-area .note{font-size:10px;margin:7px 0}.project-save-area label{margin:12px 0}.project-save-area .button-grid{margin:8px 0}#project-list{padding:4px 20px 20px;overflow:auto;flex:1;min-height:0}.project-card{background:var(--tint);border-color:color-mix(in srgb,var(--brand) 35%,var(--line));grid-template-columns:48px minmax(0,1fr);gap:10px;padding:14px}.project-card img{width:48px;height:48px}.project-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-card .button-grid{grid-template-columns:repeat(4,1fr);gap:5px}.project-card button{background:var(--surface);border-color:transparent}.project-card button:last-child{color:#db4056}.project-drawer-footer{padding:16px 20px;border-top:1px solid var(--line);flex-shrink:0;background:var(--surface)}.project-drawer-footer button{min-height:44px;box-shadow:0 5px 15px #4d5cff25}
@media(min-width:761px) and (max-width:1000px){#sidebar{grid-column:auto;grid-row:auto}#top-tools button{flex-direction:column;font-size:9px;gap:1px;padding:3px 7px}}
@media(max-width:760px){main{grid-template-rows:40px minmax(0,1fr) 64px}#top-tools{grid-column:1;grid-row:1;gap:4px}#top-tools button{min-height:34px;font-size:10px;padding:5px 7px}#top-tools svg{width:15px;height:15px}#workspace{grid-column:1;grid-row:2}#tools{grid-column:1;grid-row:3}#quick-sidebar,#sidebar{grid-column:auto;grid-row:auto}#projects-dialog{border-radius:14px 0 0 14px}.brand span{max-width:105px}#projects-dialog .dialog-head{padding:16px}.project-save-area{padding:0 16px 8px}#project-list{padding:4px 16px 16px}}
/* CV-style project drawer: compact cards and a fixed create action. */
#projects-dialog{width:min(425px,100vw);border-radius:12px 0 0 12px;box-shadow:-12px 0 50px #15244224}#projects-dialog .dialog-head{padding:18px 22px;height:68px}#projects-dialog h2{display:flex;align-items:center;gap:10px;font-size:19px}#projects-dialog h2 svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}#projects-dialog .dialog-head button{color:var(--muted)}#project-list{padding:4px 20px 20px}.project-card{display:flex;align-items:center;gap:6px;padding:12px 10px;margin-top:16px;border:1px solid #8c83ed;border-radius:13px;background:var(--tint);min-height:78px}.project-card.current{box-shadow:0 0 0 1px var(--brand)}.project-open-card{display:flex;align-items:center;gap:12px;min-width:0;flex:1;padding:0!important;border:0!important;background:transparent!important;text-align:left;justify-content:flex-start}.project-open-card img{width:40px;height:44px;object-fit:cover;border-radius:7px;flex-shrink:0}.project-info{display:block;min-width:0}.project-info strong{font-size:13px}.project-info small{font-size:10px;margin-top:5px;white-space:nowrap}.project-card-actions{display:flex;gap:2px;flex-shrink:0}.project-card-actions button{width:29px;min-height:32px;padding:5px;background:transparent;border:0}.project-card-actions svg{width:17px;height:17px}.project-rename{color:var(--muted)}.project-delete{color:#dd4052!important}.project-drawer-footer{padding:12px 20px 18px}.project-drawer-footer>button{background:#347cfa;border-color:#347cfa;font-size:13px}.project-drawer-footer details{margin-bottom:10px}.project-drawer-footer summary{min-height:30px;border:0;background:transparent;font-size:11px;justify-content:flex-start;padding:3px;color:var(--muted)}.project-save-area{border:0;padding:0}.projects-empty{color:var(--muted);line-height:1.7;margin:25px 8px;text-align:center}#project-save-options[open]{max-height:35dvh;overflow:auto}
#top-tools button.active{background:var(--tint);border-color:var(--brand);color:var(--brand)}
@media(max-width:760px){#save-current-header{display:none}#projects-dialog{width:min(425px,100vw)}.project-card-actions button{width:27px}.project-info strong{font-size:12px}#projects-dialog .dialog-head{padding:18px}#project-list{padding:4px 16px 16px}.project-drawer-footer{padding:12px 16px 18px}}
