:root{--bg:#f2ede6;--paper:#fffdfa;--cream:#f9f4ec;--line:#e4d9cc;--muted:#7c7a73;--ink:#292c29;--green:#164a44;--green-dark:#103e38;--green-lite:#ebf3f0;--gold:#bd925b;--warn:#a25846;--shadow:0 5px 24px rgba(52,35,26,.052);--radius:18px}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font:14px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:radial-gradient(ellipse at 86% -8%,#fffaf2,var(--bg) 55%)}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,.strip-scroll:focus-visible{outline:3px solid rgba(24,110,101,.45);outline-offset:2px}button{transition:background .15s,border-color .15s,transform .15s}button:active:not(:disabled){transform:scale(.97)}.app-shell{display:flex;flex-direction:column;height:100dvh;min-height:530px;overflow:hidden}.topbar{height:70px;flex:0 0 auto;background:rgba(255,251,244,.95);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:9px 20px;gap:12px;box-shadow:0 3px 14px #3b25120b;z-index:3}.identity{display:flex;align-items:center;gap:12px;min-width:190px}.brand-icon{height:39px;width:39px;display:grid;place-items:center;border:2px solid #cba26b;border-radius:12px;font-size:29px;color:#bf985f;background:#fff8ea}.identity h1{font:700 26px/1.03 Georgia,'Times New Roman',serif;letter-spacing:-1px;margin:0}.identity h1 span{font-weight:400}.identity small{font:800 9px/1 ui-sans-serif,system-ui;letter-spacing:1.6px;color:#ae8d62;margin-left:4px;vertical-align:middle}.identity p{margin:1px 0 0;color:var(--muted);font-size:10px}.toolbar{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}.toolbar button,.tool{min-height:36px;border:1px solid var(--line);background:#fffdf9;border-radius:11px;color:var(--ink);padding:8px 11px;font-size:12px;font-weight:700;white-space:nowrap}.toolbar .small{font-size:21px;line-height:18px;min-width:38px;padding:7px 9px}.primary,.toolbar .primary{background:var(--green);border:1px solid var(--green);color:#fff;border-radius:11px;font-weight:750;padding:10px 14px}.primary:hover:not(:disabled){background:#0f3732}.tool:hover:not(:disabled),.toolbar .tool:hover:not(:disabled){background:#f2eee7;border-color:#d2c4b6}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(250px,275px) minmax(400px,1fr) minmax(260px,290px);gap:11px;padding:11px;overflow:hidden}.left-pane,.right-pane{min-width:0;min-height:0;display:flex;flex-direction:column;gap:11px;overflow-x:hidden;overflow-y:auto;padding-right:4px;scrollbar-color:#c7b8a7 transparent;scrollbar-width:thin;overscroll-behavior:contain}.scroll-pane::-webkit-scrollbar,.strip-scroll::-webkit-scrollbar{width:8px;height:8px}.scroll-pane::-webkit-scrollbar-thumb,.strip-scroll::-webkit-scrollbar-thumb{background:#c8baab;border-radius:20px;border:2px solid #f5f0e9}.scroll-pane::-webkit-scrollbar-track,.strip-scroll::-webkit-scrollbar-track{background:transparent}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.left-pane .panel,.right-pane .panel{padding:13px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:12px}.overline{font-size:9px;color:#aa885f;font-weight:850;letter-spacing:1.25px}.panel-title h2,.editor-header h2{font-size:16px;margin:2px 0 0;font-weight:750;letter-spacing:-.4px}.status-dot{border-radius:40px;background:#e7f2ec;color:#286647;padding:5px 7px;font-size:8px;font-weight:850;white-space:nowrap}.status-dot.manual{background:#f7eee0;color:#a36d2b}.field{display:flex;flex-direction:column;gap:5px;color:#655e56;min-width:0}.field>span{font-size:11px;font-weight:700}.pair-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.with-unit{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;min-height:35px}.with-unit input,.with-unit select{border:0;min-width:0;width:100%;background:transparent;padding:7px 8px;color:var(--ink);font-weight:750;outline:none}.with-unit em{font-style:normal;color:var(--muted);font-size:11px;padding:0 9px;border-left:1px solid var(--line)}.pills-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin:8px 0 12px}.pills-row button,.export-modes button{border:1px solid var(--line);border-radius:9px;padding:7px 4px;background:#f6f2ec;font-size:10px;font-weight:700}.pills-row button.selected,.export-modes button.active{color:white;background:var(--green);border-color:var(--green)}.minor-pair{margin-bottom:12px}.count-widget{display:flex;align-items:center;justify-content:space-between;gap:4px;border:1px solid #d9d1c5;background:#f6f2ec;border-radius:12px;padding:10px 8px}.count-widget span{font-size:11px;font-weight:780}.count-widget small{display:block;font-size:9px;color:var(--muted);margin-top:4px}.stepper{display:flex;align-items:center;gap:5px}.stepper button{border:1px solid var(--line);background:#fff;width:27px;height:28px;border-radius:8px;font-size:19px;line-height:12px}.stepper strong{font-size:19px;min-width:26px;text-align:center}.text-link{border:0;background:transparent;font-size:10px;font-weight:750;color:#225f53;padding:6px 1px;text-decoration:underline;text-underline-offset:3px}.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}.calc-grid>div{border:1px solid #e7e0d8;border-radius:10px;background:#fcfaf7;padding:8px}.calc-grid small{display:block;color:var(--muted);font-size:9px;line-height:1.25}.calc-grid b{display:block;font-size:15px;font-variant-numeric:tabular-nums;margin-top:2px}.note,.tiny-help{font-size:10px;color:var(--muted);line-height:1.5;margin:9px 0 0}.outline-mini{background:#fff;border:1px solid #d3c1a8;color:var(--green);font-size:11px;padding:6px 8px;border-radius:9px;font-weight:750}.search-wrap{display:flex;align-items:center;gap:5px;background:#f5f1ec;border-radius:10px;padding:0 8px;height:36px;border:1px solid #ece3d7}.search-wrap span{font-size:24px;line-height:10px;color:#86786a}.search-wrap input{background:transparent;border:0;outline:none;min-width:0;width:100%;font-size:12px}.categories{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap;padding:9px 0 2px}.categories button{border:1px solid var(--line);background:white;border-radius:20px;font-size:10px;padding:5px 8px}.categories button.selected{background:var(--green);color:#fff;border-color:var(--green)}.pool{display:flex;flex-direction:column;gap:7px;margin-top:9px}.pool-tile{display:flex;align-items:center;gap:8px;padding:7px;border:1px solid #ece2d7;border-radius:12px;background:#fff;min-width:0}.pool-photo{flex:0 0 auto;width:47px;height:47px;border-radius:50%;object-fit:contain;filter:drop-shadow(0 3px 3px #422a2e30)}.pool-detail{flex:1;min-width:0}.pool-detail b{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pool-detail small{display:block;font-size:9px;color:var(--muted);margin-top:1px}.pool-tile button{flex:0 0 auto;border:1px solid #c9d9cf;color:var(--green);background:#eaf3ed;border-radius:8px;font-size:10px;padding:8px 7px;font-weight:750}.pool-tile button.included{background:#f3f0ea;color:#716b64;border-color:#e2dad0}.center-pane{display:flex;flex-direction:column;min-height:0;min-width:0;gap:9px}.editor-panel{flex:1;min-height:0;display:flex;flex-direction:column;padding:11px;overflow:hidden}.editor-header{display:flex;justify-content:space-between;align-items:center;gap:6px;flex:0 0 auto;margin:0 1px 8px}.editor-header h2{font-size:17px}.muted-label{font-size:11px;color:var(--muted);font-weight:500}.status-pill{border-radius:30px;padding:6px 10px;background:#f3ede4;color:#786953;font-size:10px;font-weight:750;white-space:nowrap}.status-pill.success{background:#e6f4ea;color:#206848}.canvas-stage{flex:1 1 0;min-height:130px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px;background:#f3e8db}.canvas-stage canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;aspect-ratio:1;object-fit:contain;cursor:crosshair}.canvas-core{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none;text-align:center;background:#fff9eddf;border:1px solid #fff9ea95;backdrop-filter:blur(1px);border-radius:50%;width:min(26%,156px);aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.canvas-core strong{font-size:clamp(17px,2.2vw,31px);color:#3b302a;line-height:1.2}.canvas-core strong i{font-weight:450;font-style:normal;color:#85786e}.canvas-core span{font-size:10px;max-width:100px;color:#847568;line-height:1.2;margin-top:4px}.corner-label{position:absolute;bottom:8px;left:9px;font-size:8px;letter-spacing:1.5px;font-weight:800;color:#fff7e8;text-shadow:0 1px 2px #665}.editor-bottom{flex:0 0 auto;min-height:0;padding:7px 2px 0}.strip-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 2px 5px}.strip-heading b{font-size:12px}.strip-heading span{font-size:9px;color:var(--muted);display:block;margin-top:2px}.strip-heading>span{white-space:nowrap;font-weight:850;font-size:11px;color:var(--green)}.strip-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;border:1px solid #e4ddd2;background:#f9f6f0;border-radius:10px;min-height:61px}.strip{display:flex;gap:4px;padding:8px;width:max-content;min-width:100%;align-items:center}.strip-slot{position:relative;flex:0 0 auto;width:40px;height:44px;border:1px dashed #cfbfa8;border-radius:9px;background:#f7f2e8;display:grid;place-items:center;cursor:pointer;padding:2px}.strip-slot.filled{background:#fff;border-style:solid;border-color:#d7cec0}.strip-slot.selected{border:2px solid var(--green);box-shadow:0 0 0 3px #2c796939}.strip-slot.next{border:2px solid #bea274;background:#fcf2df}.strip-slot img{width:32px;height:32px;object-fit:contain;filter:drop-shadow(0 2px 2px #67463a26)}.slot-num{font-size:9px;color:#aaa19a}.strip-slot.filled .slot-num{position:absolute;bottom:-2px;right:1px;background:#fff;padding:0 3px;color:#777;border-radius:3px;font-size:8px}.editor-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:7px}.editor-guide{font-size:10px;color:#527466;display:flex;align-items:center;gap:5px;min-width:0}.pulse-dot{width:7px;height:7px;background:#58a380;display:inline-block;border-radius:100%;flex:0 0 auto}.view-buttons{display:flex;gap:5px;flex-shrink:0}.view-buttons button{padding:6px;border:1px solid var(--line);border-radius:8px;background:#fffaf5;font-size:10px;color:#635e57}.exportbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;min-height:61px}.export-label{display:flex;flex-direction:column;min-width:0}.export-label b{font-size:12px}.export-label span{font-size:9px;color:var(--muted);white-space:nowrap}.export-modes{display:flex;gap:4px;background:#f5efe7;border-radius:10px;padding:4px}.export-modes button{padding:7px 9px;border:0;background:transparent;border-radius:8px;white-space:nowrap}.exportbar select{border:1px solid var(--line);border-radius:9px;padding:9px 6px;background:white;font-weight:700;font-size:11px;max-width:96px}.export-button{white-space:nowrap;font-size:12px;padding:10px}.quick-instruction{margin:-4px 0 10px;font-size:10px;color:#6f7870;line-height:1.5}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.quick-tile{position:relative;padding:9px 3px 6px;background:#faf6f1;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:103px}.quick-tile.active{border:2px solid var(--green);padding:8px 2px 5px;box-shadow:0 0 0 3px #1a59491a}.quick-tile:hover{background:#fff}.quick-tile img{width:min(56px,100%);height:56px;object-fit:contain;filter:drop-shadow(0 4px 3px #43232d20)}.quick-tile b{font-size:10px;margin-top:4px;text-align:center;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis}.quick-tile small{font-size:9px;color:var(--muted)}.quick-tile .x{position:absolute;top:0;right:1px;font-size:12px;border-radius:50%;background:#fff;color:#867c74;opacity:.75;line-height:14px;padding:1px 4px;z-index:1}.quick-state{margin-top:10px;border-radius:9px;background:var(--green-lite);padding:8px;font-size:10px;color:#276150;font-weight:750;text-align:center}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tool-grid button{font-size:10px;padding:9px 4px;border:1px solid var(--line);border-radius:9px;background:#f9f6f2;color:#504d49;font-weight:650}.tool-grid button:hover:not(:disabled){border-color:#9bbdaf;background:#edf5f0}.materials{display:flex;flex-direction:column;gap:6px}.material{display:flex;align-items:center;gap:7px;font-size:11px}.material img{width:22px;height:22px;object-fit:contain}.material b{font-weight:700;flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.material span{font-variant-numeric:tabular-nums;white-space:nowrap}.muted{color:var(--muted);font-size:11px}.summary-total{display:flex;justify-content:space-between;gap:10px;margin-top:8px;padding-top:8px;border-top:1px solid #eee7de;font-size:11px}.summary-total strong{font-size:13px}.project-row{display:flex;gap:6px}.project-row button{flex:1;padding:9px;border:1px solid var(--line);background:#faf7f1;border-radius:9px;color:var(--green);font-weight:750}.project-row .primary{color:#fff;background:var(--green);border-color:var(--green)}.projects-mini .tiny-help{margin-top:6px}.dialog{max-height:min(85dvh,780px);width:min(520px,calc(100vw - 24px));padding:19px;border:1px solid #e0d4c7;border-radius:20px;background:#fffdfa;box-shadow:0 30px 90px #0003;color:var(--ink);overflow:auto}.dialog::backdrop{background:#1a241ab0;backdrop-filter:blur(2px)}.dialog.compact{width:min(390px,calc(100vw - 24px))}.dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.dialog header h2{font-size:20px;margin:0}.dialog header button{border:0;background:#f1ece6;border-radius:9px;width:32px;height:32px;font-size:20px}.dialog label{display:flex;flex-direction:column;font-size:11px;gap:5px;color:#686057;font-weight:750}.dialog input,.dialog select{min-height:39px;border:1px solid var(--line);border-radius:9px;padding:8px;background:white}.dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dialog-grid .wide{grid-column:1/-1}.dialog .full{width:100%;margin-top:14px}.projects-list{display:flex;flex-direction:column;gap:8px}.project-tile{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px}.project-tile b{display:block;font-size:12px}.project-tile small{font-size:10px;color:var(--muted)}.project-tile button{padding:8px;font-size:11px;border-radius:8px;border:1px solid var(--line);background:#f7f2eb}.project-tile .danger{color:#a35140}.toast{position:fixed;bottom:18px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;color:#fff;background:#143e39;padding:10px 15px;border-radius:99px;font-weight:750;font-size:11px;box-shadow:0 10px 40px #0003;transition:opacity .15s,transform .15s;z-index:20}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1051px){.left-pane,.right-pane{height:100%}.center-pane{height:100%}}
@media(max-width:1200px) and (min-width:1051px){.workspace{grid-template-columns:235px minmax(350px,1fr) 242px;gap:8px;padding:8px}.left-pane .panel,.right-pane .panel{padding:10px}.export-label span{display:none}.export-modes button{font-size:9px;padding:6px}.toolbar button span{display:none}}
@media(max-height:750px) and (min-width:1051px){.topbar{height:58px}.workspace{padding:8px;gap:8px}.editor-panel{padding:8px}.editor-header{margin-bottom:5px}.editor-bottom{padding-top:4px}.strip-scroll{min-height:53px}.strip{padding:4px 7px}.strip-slot{height:39px;width:37px}.strip-slot img{width:29px;height:29px}.exportbar{min-height:53px;padding:7px}.canvas-core span{font-size:9px}}
@media(max-width:1050px){.app-shell{height:auto;min-height:100dvh;overflow:visible}.workspace{display:flex;flex-direction:column;overflow:visible;padding:10px;gap:10px}.left-pane,.right-pane{display:contents}.measure-panel{order:1}.center-pane{order:2;height:auto}.quick-panel{order:3}.pool-panel{order:4}.tools-panel{order:5}.summary-panel{order:6}.projects-mini{order:7}.canvas-stage{flex:none;height:min(62vw,560px)}.canvas-stage canvas{max-height:100%;max-width:100%}.editor-panel{overflow:visible}.exportbar{flex-wrap:wrap}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-tile img{height:70px;width:70px}.pool{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.left-pane .panel,.right-pane .panel{padding:14px}.measure-panel{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.measure-panel .panel-title,.measure-panel .calc-grid,.measure-panel .note{grid-column:1/-1}.count-widget{margin-top:6px}.editor-guide{max-width:70%}.toolbar button span{display:none}}
@media(max-width:660px){.topbar{padding:10px 9px;height:62px;gap:4px}.identity{min-width:auto;gap:7px}.brand-icon{width:31px;height:31px;font-size:21px}.identity h1{font-size:20px}.identity h1 small,.identity p{display:none}.toolbar{gap:4px}.toolbar button{min-height:32px;padding:7px;font-size:11px}.toolbar .small{min-width:28px;font-size:18px;padding:5px}.measure-panel{display:block}.pair-inputs{gap:9px}.canvas-stage{height:min(92vw,430px);min-height:260px}.editor-header h2{font-size:15px}.editor-header{margin-bottom:7px}.canvas-core{width:min(29%,133px)}.canvas-core strong{font-size:21px}.strip-heading span{max-width:220px}.editor-controls{align-items:flex-start;flex-direction:column}.editor-guide{max-width:100%}.view-buttons{width:100%}.view-buttons button{flex:1}.exportbar{display:grid;grid-template-columns:1fr auto;gap:8px}.export-label{grid-column:1/-1}.export-modes{grid-column:1/-1;justify-content:space-between}.export-modes button{flex:1}.exportbar select{width:100%;max-width:none}.pool{grid-template-columns:1fr}.quick-grid{gap:7px}.quick-tile img{width:70px;height:70px}.quick-tile{min-height:116px}.dialog-grid{grid-template-columns:1fr}.dialog-grid .wide{grid-column:auto}}
@media(max-width:385px){.toolbar #sampleBtn,.toolbar #projectsBtn{display:none}.canvas-stage{min-height:250px}.quick-tile img{width:59px;height:59px}.quick-tile b{font-size:9px}}

/* StoneLoop 1.4: simultaneous mobile bracelet + stone picker */
.mobile-stats,.mobile-nav,.mobile-drawer-top,.mobile-backdrop,.mobile-quick-dock{display:none}
@media(max-width:1050px){
 html,body{height:100%;overflow:hidden;overscroll-behavior:none}
 .app-shell{height:100dvh;min-height:0;overflow:hidden}
 .topbar{height:52px;padding:6px 10px;flex:0 0 auto}
 .identity h1{font-size:21px}.identity .brand-icon{width:32px;height:32px;font-size:22px}.identity p{display:none}
 .toolbar button{min-height:32px; padding:6px 8px}.toolbar #sampleBtn,.toolbar #projectsBtn{display:none}
 .workspace{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden;padding:7px 8px 6px;gap:0}
 .center-pane{order:1;flex:1;min-height:0;min-width:0;height:auto;display:flex;flex-direction:column;gap:6px;overflow:hidden;margin:0 auto;width:100%;max-width:900px}
 .mobile-stats{display:grid;grid-template-columns:1.2fr .8fr .9fr;gap:5px;flex:0 0 46px;min-height:0}
 .mobile-stat{background:#fffaf5;border:1px solid #e5dacf;border-radius:11px;padding:3px 6px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;white-space:nowrap;overflow:hidden}
 .mobile-stat>span{color:#9c8770;font-size:9px;line-height:1.2;font-weight:650}
 .mobile-stat strong{font-size:13px;line-height:1.3;letter-spacing:-.3px;color:#214c43;max-width:100%;text-overflow:ellipsis;overflow:hidden}
 .editor-panel{flex:1 1 0;min-height:0;height:auto;padding:7px;overflow:hidden;display:flex;flex-direction:column}
 .editor-header{flex:0 0 26px;min-height:0;margin:0 2px 4px;align-items:center}
 .editor-header h2{font-size:15px}.editor-header .overline{display:none}.status-pill{font-size:10px;padding:4px 7px}
 .canvas-stage{flex:1 1 0;height:auto;min-height:0;max-height:none;position:relative;border-radius:10px}
 .canvas-stage canvas{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;touch-action:manipulation}
 .canvas-core{width:min(28%,138px)}.canvas-core strong{font-size:clamp(16px,4vw,27px)}.canvas-core span{font-size:10px}
 .editor-bottom{display:none !important}
 .mobile-quick-dock{display:block;flex:0 0 auto;min-height:0}
 .mobile-quick-dock .quick-panel{padding:7px 10px 7px;min-height:0;display:flex;flex-direction:column}
 .mobile-quick-dock .quick-panel .panel-title{margin-bottom:3px}.mobile-quick-dock .quick-panel h2{font-size:13px;margin:0}
 .mobile-quick-dock .quick-panel .overline{display:none}
 .mobile-quick-dock .quick-panel .quick-instruction{display:none}
 .mobile-quick-dock .quick-grid{display:flex;flex-flow:row nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding:2px 3px 5px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .mobile-quick-dock .quick-tile{flex:1 0 82px;max-width:125px;min-height:78px;height:78px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:3px 5px 2px;scroll-snap-align:start;border-radius:10px}
 .mobile-quick-dock .quick-tile.active{padding:2px 4px 1px}
 .mobile-quick-dock .quick-tile img{width:44px;height:44px;flex:0 0 44px}
 .mobile-quick-dock .quick-tile b{font-size:10px;white-space:nowrap;margin-top:1px;max-width:100%}
 .mobile-quick-dock .quick-tile small{font-size:8px;line-height:12px}
 .mobile-quick-dock .quick-tile .x{font-size:11px}
 .mobile-quick-dock .quick-state{margin-top:0;padding:3px 4px;font-size:9px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:transparent}
 .exportbar{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:0;flex:0 0 42px;padding:4px 6px;flex-wrap:nowrap}
 .exportbar .export-label,.exportbar #resolution{display:none}
 .export-modes{display:flex;flex:1 1 auto;min-width:0;justify-content:space-between;padding:2px;gap:2px}
 .export-modes button{flex:1 1 0;min-width:0;font-size:10px;padding:6px 3px;overflow:hidden;text-overflow:ellipsis}
 .export-button{flex:0 0 auto;white-space:nowrap;padding:7px 9px;font-size:11px}
 .mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);flex:0 0 57px;padding:3px 4px max(3px,env(safe-area-inset-bottom));min-height:0;background:#fffdf9;border-top:1px solid #e2d5c6;z-index:12;gap:3px}
 .mobile-nav button{background:transparent;border:0;color:#42675e;font-size:10px;font-weight:700;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0}
 .mobile-nav button:active,.mobile-nav button.active{background:#e9f3ec}
 .mobile-nav .nav-icon{font-size:21px;line-height:21px;color:var(--green)}
 .left-pane,.right-pane{display:none!important}
 .mobile-backdrop{display:none;position:fixed;inset:0;background:rgba(19,31,27,.32);z-index:30;backdrop-filter:blur(2px)}
 .mobile-drawer-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:-6px 0 5px;padding:4px 0;position:sticky;top:0;z-index:2;background:#f5f0e9}
 .mobile-drawer-top strong{font-size:16px}.mobile-drawer-top button{border:1px solid var(--line);border-radius:10px;width:35px;height:34px;background:white}
 body[data-mobile-sheet] .mobile-backdrop{display:block}
 body[data-mobile-sheet] .mobile-nav{z-index:12}
 body[data-mobile-sheet] .left-pane,body[data-mobile-sheet] .right-pane{display:flex!important;position:fixed;z-index:40;left:0;right:0;top:auto;bottom:0;height:min(80dvh,750px);max-height:calc(100dvh - 55px);border-radius:18px 18px 0 0;border-top:1px solid #dac9b7;background:#f5f0e9;box-shadow:0 -20px 80px #211b1a25;padding:10px 12px calc(18px + env(safe-area-inset-bottom));gap:8px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
 body[data-mobile-sheet] .left-pane>.panel,body[data-mobile-sheet] .right-pane>.panel{display:none}
 body[data-mobile-sheet="measure"] .left-pane .measure-panel,
 body[data-mobile-sheet="pool"] .left-pane .pool-panel,
 body[data-mobile-sheet="tools"] .right-pane .tools-panel,
 body[data-mobile-sheet="tools"] .right-pane .summary-panel,
 body[data-mobile-sheet="tools"] .right-pane .projects-mini{display:block}
 body[data-mobile-sheet="measure"] .right-pane,body[data-mobile-sheet="pool"] .right-pane{display:none!important}
 body[data-mobile-sheet="tools"] .left-pane{display:none!important}
 body[data-mobile-sheet="pool"] .pool{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body[data-mobile-sheet="pool"] .pool-tile{min-width:0}.pool-tile .pool-photo{width:43px;height:43px}
 body[data-mobile-sheet="measure"] .measure-panel{display:block}
 .toast{bottom:calc(68px + env(safe-area-inset-bottom));max-width:calc(100% - 24px);text-align:center}
}
@media(max-width:540px){
 .topbar{height:49px;padding:5px 7px}.identity{gap:6px}.identity h1{font-size:19px}.identity .brand-icon{width:29px;height:29px;font-size:20px}
 .toolbar{gap:3px}.toolbar #resetBtn{display:none}.toolbar button{min-height:31px;padding:5px 8px}.toolbar .small{font-size:20px}
 .mobile-stats{flex-basis:43px}.mobile-stat strong{font-size:12px}
 .editor-header h2{font-size:14px}.status-pill{font-size:9px}
 .mobile-quick-dock .quick-tile{flex:1 0 80px;max-width:119px}
 .mobile-quick-dock .quick-panel{padding:6px 8px}
 .exportbar{flex-basis:41px}
 .export-modes button{font-size:9px}.export-button{font-size:10px;padding:7px}
 .mobile-nav{flex-basis:54px}
 body[data-mobile-sheet="pool"] .pool{grid-template-columns:1fr}
}
@media(max-width:360px){.mobile-remaining{display:none}.mobile-stats{grid-template-columns:1fr 1fr}.toolbar #saveBtn{padding:5px 6px}.toolbar #saveBtn span{display:none}.mobile-quick-dock .quick-tile{flex:1 0 74px}.mobile-quick-dock .quick-tile img{width:41px;height:41px}.mobile-quick-dock .quick-tile{height:73px;min-height:73px}}
@media(max-width:1050px) and (max-height:630px){.mobile-stats{flex-basis:38px}.editor-header{flex-basis:22px}.mobile-quick-dock .quick-tile{height:66px;min-height:66px}.mobile-quick-dock .quick-tile img{height:35px;width:35px;flex-basis:35px}.mobile-quick-dock .quick-panel .panel-title{display:none}.mobile-quick-dock .quick-state{display:none}.mobile-nav{flex-basis:48px}.exportbar{flex-basis:37px}.editor-panel{padding:5px}}
