@charset "UTF-8";
:root{--canvas:#f5f5f7;--surface:#fff;--ink:#1d1d1f;--muted:#64646c;--line:#e5e5ea;--blue:#0066cc;--blue-soft:#eaf3ff;--green:#187148;--red:#ba2535;--radius:16px;--sidebar:232px;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--blue);text-underline-offset:3px}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid #77b7ff}input:focus,select:focus,textarea:focus{outline:3px solid #c8e1ff;border-color:var(--blue)}::selection{background:#c7e2ff}input,textarea{caret-color:var(--blue)}svg{width:20px;height:20px;flex:none;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:36px;line-height:1.18;letter-spacing:-1.1px;font-weight:650}h2{font-size:20px;letter-spacing:-.4px;font-weight:650}h3{font-size:16px;font-weight:650}small,.small{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.skip{position:fixed;top:-100px;left:16px;z-index:100;background:white;padding:12px}.skip:focus{top:16px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:32px 18px 24px;background:#ededf0;border-right:1px solid #dddde3;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 14px 34px;font-size:27px;font-weight:700;letter-spacing:-1px}.brand svg{width:36px;height:36px}.brand small{font-weight:500;font-size:10px;letter-spacing:1.4px;display:block;margin-top:-2px}.nav-label{padding:0 14px 10px;font-size:12px;font-weight:650;color:var(--muted)}nav{display:flex;flex-direction:column;gap:5px}.nav-item{border:0;background:transparent;color:#55555e;padding:12px 14px;text-align:left;border-radius:10px;display:flex;align-items:center;gap:12px;font-size:14px;font-weight:550;white-space:nowrap}.nav-item:hover{background:#e1e1e7}.nav-item.active{background:#fff;color:var(--blue);box-shadow:0 2px 8px #24243a07}.nav-item .count{margin-left:auto;font-size:12px;background:#ededf0;color:#64646c;padding:0 6px;border-radius:5px}.sidebar-bottom{margin-top:auto;padding:24px 12px 0}.local-label{font-size:13px;display:flex;align-items:center;gap:8px}.sidebar-bottom p{font-size:12px;color:var(--muted);margin:8px 0 18px}.workspace{margin-left:var(--sidebar);min-height:100vh}.toolbar{height:72px;padding:0 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f5f5f7e6;backdrop-filter:blur(16px);position:sticky;top:0;z-index:10}.toolbar .crumb{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}.toolbar .crumb strong{color:var(--ink);font-weight:550}.toolbar .crumb svg{width:14px}.actions{display:flex;align-items:center;gap:10px}.button{border:0;border-radius:9px;background:var(--blue);color:white;min-height:40px;padding:10px 17px;font-size:14px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .16s,transform .16s;white-space:nowrap}.button:hover{background:#0055ad}.button:active{transform:scale(.98)}.button.secondary{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px #dcdce2}.button.secondary:hover{background:#ededf2}.button.ghost{background:transparent;color:var(--blue);box-shadow:none;padding-left:8px;padding-right:8px}.button.ghost:hover{background:var(--blue-soft)}.button.danger{background:#fff0f1;color:var(--red)}.button.small-btn{font-size:13px;min-height:32px;padding:6px 10px}.icon-button{border:0;background:transparent;color:var(--muted);width:36px;height:36px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;flex:none}.icon-button:hover{background:#eeeef2;color:var(--ink)}main{max-width:1480px;margin:0 auto;padding:36px 40px 64px}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:28px}.page-head p{color:var(--muted);margin-top:10px;font-size:15px}.sample-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;background:#e9e9ee;border-radius:6px;color:#55555e;font-size:12px;font-weight:550;white-space:nowrap}.sample-tag svg{width:14px;height:14px}.calc-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}.input-column{display:grid;gap:20px}.panel{background:var(--surface);border-radius:var(--radius);box-shadow:0 3px 20px #1d1d1f04;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 0;gap:12px}.panel-body{padding:22px 24px 24px}.panel-head+.panel-body{padding-top:20px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.fields.three{grid-template-columns:repeat(3,minmax(0,1fr))}.fields.four{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{font-size:14px;font-weight:500;display:flex;align-items:center;gap:5px}.field>small{font-size:12px;line-height:1.5}.field.full{grid-column:1/-1}.input-wrap{position:relative}.input-wrap input{padding-right:49px}.suffix{position:absolute;right:12px;top:10px;font-size:13px;color:var(--muted);pointer-events:none}input,select,textarea{width:100%;min-height:42px;padding:9px 12px;border:1px solid #dddde4;border-radius:8px;background:#fff;color:var(--ink);font-size:14px;transition:border-color .15s}input::placeholder,textarea::placeholder{color:#72727b;opacity:1}input[type=color]{padding:4px;height:42px}input[type=checkbox]{width:16px;min-height:16px;accent-color:var(--blue)}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364646c' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat}textarea{min-height:78px;resize:vertical}input[type=number]{font-variant-numeric:tabular-nums}.divider{height:1px;background:var(--line);margin:22px 0}.batch-title{display:flex;align-items:center;gap:12px;min-width:0}.batch-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;color:#51515b}.batch-title input{font-size:17px;font-weight:600;border-color:transparent;padding:4px 0;min-height:30px;max-width:340px}.batch-title input:hover{border-bottom-color:var(--line)}.file-meta{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin-top:2px}.subheading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.subheading h3{font-size:14px}.material-line{display:grid;grid-template-columns:minmax(0,1fr) 112px 30px;gap:10px;align-items:end;margin-top:10px}.swatch{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid #0002;vertical-align:middle;margin-right:7px}.material-line .icon-button{align-self:end;margin-bottom:3px}.underlined{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--blue);border:0;background:none;padding:8px 0}.batch-footer{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);gap:12px}.batch-footer p{font-size:13px;color:var(--muted)}.add-tray{width:100%;min-height:52px;border:1px dashed #b8c6d9;background:#f0f5fb;color:var(--blue);border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:600}.add-tray:hover{background:#e7f0fc}.check-row{display:flex;align-items:center;gap:10px;font-size:14px;margin:12px 0}.check-row input{flex:none}.details{padding:0 24px}.details summary{list-style:none;cursor:pointer;padding:20px 0;font-size:14px;display:flex;justify-content:space-between;align-items:center;font-weight:550}.details summary::-webkit-details-marker{display:none}.details[open] summary .chevron{transform:rotate(180deg)}.details-body{padding:0 0 24px}.chevron{transition:transform .16s;width:16px;height:16px}.receipt{position:sticky;top:96px}.receipt-top{padding:26px 26px 22px;background:#fff;border-radius:16px 16px 0 0}.receipt-header{display:flex;justify-content:space-between;align-items:center}.receipt-header h2{font-size:16px}.receipt-header svg{color:var(--blue)}.price-label{color:var(--muted);font-size:13px;margin-top:25px}.big-price{font-size:46px;line-height:1.18;font-weight:650;letter-spacing:-1.8px;margin:6px 0 3px;white-space:nowrap}.big-price .currency{font-size:23px;font-weight:500;letter-spacing:0;margin-left:6px}.average{font-size:13px;color:var(--muted)}.receipt-strip{display:flex;padding:17px 26px;background:#f0f6ff;color:#254767;justify-content:space-between;font-size:13px}.receipt-strip strong{font-weight:600;color:#17456d}.receipt-body{padding:22px 26px;background:white;border-radius:0 0 16px 16px}.breakdown-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;padding:6px 0}.breakdown-row .left{display:flex;align-items:center;gap:8px;color:var(--muted)}.breakdown-row strong{font-weight:550}.dot{height:7px;width:7px;border-radius:50%;flex:none}.cost-bar{height:6px;border-radius:8px;display:flex;overflow:hidden;background:#eee;margin:0 0 16px;gap:2px}.cost-bar span{height:100%}.receipt-total{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.profit-line{color:var(--green);font-size:14px;margin-top:10px}.profit-line .left{color:var(--green)}.receipt .button{width:100%;margin-top:10px}.receipt-actions{margin-top:16px}.receipt-note{font-size:12px;line-height:1.6;color:var(--muted);margin:16px 5px 0;display:flex;gap:8px}.receipt-note svg{width:16px;margin-top:2px}.notice{border-radius:10px;background:#f2f5fa;padding:12px 14px;font-size:13px;color:#455a71;line-height:1.6;margin-top:14px}.notice.warning{background:#fff5df;color:#77520b}.notice.error{background:#fff0f1;color:#a12133}.notice p+p{margin-top:6px}.section-spacer{margin-top:24px}.intro-strip{display:flex;gap:12px;align-items:center;background:#eaf3ff;padding:15px 18px;border-radius:12px;margin-bottom:24px;color:#214e7b;font-size:14px}.intro-strip svg{color:var(--blue)}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.entity-card{background:#fff;border-radius:16px;padding:24px;position:relative}.entity-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:26px}.entity-glyph{height:76px;display:flex;align-items:center;color:#8c8c96}.entity-glyph svg{width:64px;height:64px;stroke-width:1}.entity-card h2{font-size:18px;margin-bottom:5px;overflow-wrap:anywhere}.entity-card .metric-line{display:flex;justify-content:space-between;font-size:13px;padding:9px 0;border-bottom:1px solid #f1f1f4;gap:12px}.entity-card .metric-line:last-child{border:0}.entity-foot{display:flex;gap:8px;margin-top:20px}.entity-foot .button{flex:1}.tag{display:inline-block;padding:3px 8px;border-radius:5px;background:#ededf2;font-size:12px;color:#595962}.tag.blue{background:var(--blue-soft);color:var(--blue)}.tag.green{background:#e9f6ed;color:var(--green)}.material-disc{width:72px;height:72px;border-radius:50%;background:var(--spool);border:12px solid #f0f0f3;box-shadow:inset 0 0 0 1px #0001;position:relative}.material-disc:after{content:'';position:absolute;inset:15px;border-radius:50%;background:#fff;border:1px solid #0001}.tabs{display:inline-flex;gap:4px;padding:4px;background:#e7e7ed;border-radius:9px;margin-bottom:24px}.tabs button{border:0;background:transparent;border-radius:6px;padding:7px 16px;color:#5d5d66;font-size:13px;font-weight:550}.tabs button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #0001}.search{max-width:320px;position:relative}.search input{padding-left:37px}.search svg{position:absolute;left:11px;top:12px;width:17px;height:17px;color:var(--muted)}.list-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:24px}.table-wrap{overflow-x:auto;background:white;border-radius:14px}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th{font-weight:550;color:var(--muted);font-size:12px;background:#fafafb;padding:14px 20px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:17px 20px;border-bottom:1px solid #f0f0f3;vertical-align:middle}tbody tr:last-child td{border:0}td small{display:block;margin-top:3px}.table-actions{display:flex;justify-content:flex-end;gap:4px}.empty{padding:72px 24px;text-align:center;background:#fff;border-radius:16px}.empty svg{width:44px;height:44px;color:#9696a0;margin-bottom:16px}.empty h2{margin-bottom:8px}.empty p{font-size:14px;color:var(--muted);margin:0 auto 20px;max-width:430px}.settings-layout{display:grid;grid-template-columns:minmax(0,760px) 260px;gap:32px;align-items:start}.settings-column{display:grid;gap:22px}.aside-help{padding-top:6px}.aside-help h3{font-size:14px;margin-bottom:10px}.aside-help p{font-size:13px;color:var(--muted);line-height:1.75;margin-bottom:24px}.formula{font-size:13px;padding:12px 14px;background:#f5f5f7;border-radius:8px;line-height:1.8}.total-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border-radius:14px;padding:22px 0;margin-bottom:24px}.total-strip>div{padding:0 24px;border-right:1px solid var(--line)}.total-strip>div:last-child{border:0}.total-strip small{display:block;margin-bottom:5px}.total-strip strong{font-size:24px;letter-spacing:-.6px;font-weight:600}.form-error{color:var(--red);font-size:13px;margin:12px 0}.dialog-head{padding:25px 28px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.dialog-head h2{font-size:22px}.dialog-content{padding:24px 28px}.dialog-footer{padding:16px 28px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fafafb}.dialog-footer.spread{justify-content:space-between}.dialog-content .fields+.fields{margin-top:18px}dialog{padding:0;border:0;border-radius:18px;width:min(620px,calc(100vw - 32px));max-height:90dvh;color:var(--ink);box-shadow:0 24px 90px #0003}dialog::backdrop{background:#19192250;backdrop-filter:blur(4px)}dialog[open]{animation:sheet-in .2s ease-out}.dialog-wide{width:min(800px,calc(100vw - 32px))}.dialog-scroll{overflow:auto}.picker-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.picker-row:last-child{border:0}.picker-row p{font-size:13px;color:var(--muted);margin-top:4px}.quote-paper{padding:10px 0}.quote-brand{font-size:24px;font-weight:650;letter-spacing:-.6px;margin-bottom:24px}.quote-paper h3{font-size:22px;margin-bottom:5px}.quote-meta{display:flex;justify-content:space-between;gap:20px;font-size:13px;color:var(--muted);margin:18px 0 24px}.quote-line{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.quote-grand{display:flex;justify-content:space-between;gap:20px;margin:24px 0;font-size:22px;font-weight:650}.quote-paper p{font-size:13px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:calc(50% + 90px);transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#242429;color:white;font-size:14px;padding:12px 20px;border-radius:10px;box-shadow:0 5px 22px #0002;z-index:100;transition:.2s;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}#storage-error{position:fixed;bottom:0;left:0;right:0;z-index:110;background:#a12133;color:white;padding:12px 20px;font-size:14px}.help-list{padding-left:18px;color:var(--muted);font-size:14px;line-height:1.8}.help-list li+li{margin-top:8px}.model-preview{height:88px;display:grid;place-items:center;background:#f6f7fa;border-radius:10px;margin-bottom:20px;color:#68778c}.model-preview svg{width:50px;height:50px;stroke-width:1.2}.save-indicator{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.save-indicator svg{width:14px}.row-link{background:none;border:0;padding:0;color:var(--blue);font-size:14px;font-weight:550;text-align:left}.mobile-logo{display:none}.alert-dot{color:var(--red)}.file-pick{display:inline-flex;align-items:center;gap:6px;color:var(--blue);font-size:13px;cursor:pointer;padding:6px 0}.file-pick input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.file-pick:focus-within{outline:2px solid var(--blue);outline-offset:4px}.input-label-help{font-size:12px;color:var(--muted);font-weight:400}.mobile-summary{display:none}.file-details input{font-size:13px}.validation-list{padding-left:18px;margin:8px 0}.inventory-log{max-height:320px;overflow:auto}.inventory-log .quote-line small{display:block}.badge-info{font-size:12px;background:#f4f4f7;color:#62626a;border-radius:5px;padding:4px 8px}
@keyframes sheet-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@media(min-width:1600px){main{padding-top:48px}.calc-layout{grid-template-columns:minmax(0,1fr) 380px}.receipt-top,.receipt-body{padding-left:30px;padding-right:30px}}
@media(max-width:1200px){:root{--sidebar:200px}.sidebar{padding-left:12px;padding-right:12px}.brand{padding-left:10px}.toolbar{padding:0 26px}main{padding:30px 26px 56px}.calc-layout{grid-template-columns:minmax(0,1fr) 310px;gap:20px}.big-price{font-size:40px}.receipt-top,.receipt-body{padding-left:22px;padding-right:22px}.receipt-strip{padding-left:22px;padding-right:22px}.panel-head{padding:22px 20px 0}.panel-body{padding:20px}.details{padding:0 20px}.fields.four{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-layout{grid-template-columns:minmax(0,1fr)}.aside-help{display:none}}
@media(max-width:1020px){:root{--sidebar:76px}.sidebar{padding:24px 10px}.brand{padding:0 8px 32px}.brand-text,.nav-label,.sidebar-bottom,.nav-item .count{display:none}.nav-item{justify-content:center;padding:14px}.nav-item>span{display:none}.toolbar{height:64px}.receipt{top:84px}.calc-layout{grid-template-columns:minmax(0,1fr) 300px}.fields.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{inset:auto 0 0;width:100%;height:74px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid #dddde3;background:#f7f7faef;backdrop-filter:blur(20px)}.brand{display:none}nav{flex-direction:row;justify-content:space-around;gap:0}.nav-item{flex:1;flex-direction:column;padding:7px 2px;gap:3px;border-radius:8px;font-size:10px;min-width:0}.nav-item>span{display:block;font-size:10px}.nav-item svg{width:20px;height:20px}.nav-item.active{box-shadow:none;background:#e6effb}.workspace{margin:0}.toolbar{height:60px;padding:0 20px}.toolbar .crumb{font-size:12px}.toolbar .crumb>span:first-child,.toolbar .crumb>svg{display:none}.toolbar .actions>.save-indicator{display:none}.toolbar .button{min-height:34px;padding:7px 10px;font-size:12px}.toolbar .button svg{width:16px}.mobile-logo{display:inline-flex;font-weight:700;font-size:22px;color:var(--ink);letter-spacing:-.7px;margin-right:12px}.toolbar .crumb strong{font-size:12px}main{padding:26px 18px 110px}.page-head{gap:12px;margin-bottom:24px;flex-wrap:wrap}h1{font-size:30px}.page-head p{font-size:14px;max-width:42ch}.page-head .actions{margin-top:4px}.sample-tag{font-size:11px}.calc-layout{grid-template-columns:1fr;gap:24px}.receipt{position:static;order:2}.receipt-top{padding-top:24px}.big-price{font-size:46px}.receipt-strip{padding-top:16px;padding-bottom:16px}.receipt-body{padding-top:20px}.fields.three,.fields.four{grid-template-columns:repeat(2,minmax(0,1fr))}.fields{gap:16px}.panel-head{padding:20px 18px 0}.panel-body{padding:18px}.details{padding:0 18px}.batch-title input{max-width:200px;font-size:16px}.batch-footer{align-items:flex-start}.batch-footer p{font-size:12px}.material-line{grid-template-columns:minmax(0,1fr) 95px 28px;gap:8px}.catalog-grid{grid-template-columns:1fr}.entity-card{padding:22px}.entity-glyph{height:64px}.entity-top{margin-bottom:16px}.list-toolbar{flex-wrap:wrap}.search{max-width:none;width:100%}.list-toolbar>.muted{font-size:13px}.total-strip{padding:18px 0}.total-strip>div{padding:0 12px}.total-strip strong{font-size:19px}.total-strip small{font-size:11px}.table-wrap{margin:0 -2px}td,th{padding:14px;font-size:13px}.dialog-head{padding:20px}.dialog-content{padding:20px}.dialog-footer{padding:15px 20px;flex-wrap:wrap}dialog{max-height:88dvh}.dialog-head h2{font-size:20px}#toast{left:50%;bottom:92px;width:max-content;max-width:calc(100vw - 28px)}.tabs{max-width:100%;overflow:auto}.tabs button{padding:7px 12px;white-space:nowrap}.intro-strip{font-size:13px}.button{min-height:42px}.quote-meta{flex-wrap:wrap}.mobile-summary{display:flex;align-items:center;justify-content:space-between;background:#eaf3ff;padding:13px 16px;border-radius:12px;margin-bottom:18px;gap:12px}.mobile-summary strong{font-size:18px;color:#124777}.mobile-summary span{font-size:12px;color:#355c86}.mobile-summary a{font-size:12px;text-decoration:none}.entity-card .entity-foot .button{font-size:13px}.page-head>.button{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.toolbar,.sidebar{backdrop-filter:none;background:var(--canvas)}dialog::backdrop{backdrop-filter:none}}
@media print{body{background:#fff}.sidebar,.workspace,#toast,#storage-error,.dialog-head,.dialog-footer,.no-print{display:none!important}dialog[open]{position:static;display:block;max-height:none;width:100%;margin:0;padding:0;box-shadow:none;border:0;overflow:visible}dialog::backdrop{background:none}.dialog-content{padding:0}.quote-paper{padding:24px}.quote-grand{margin-top:32px}a{color:var(--ink);text-decoration:none}}
@media(max-width:760px){.accessory-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 30px!important;row-gap:14px;margin-bottom:20px}.accessory-line>.field:first-child{grid-column:1/-1}}
.sync-indicator{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--muted);font-size:12px;padding:6px;white-space:nowrap}.sync-indicator svg{width:15px;height:15px}.sync-indicator[data-state=synced]{color:var(--green)}.sync-indicator[data-state=conflict],.sync-indicator[data-state=error]{color:var(--red)}.account-button{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px 10px;color:var(--ink);font-size:13px;min-height:34px}.account-button svg{width:16px;height:16px}.sync-banner{padding:12px 40px;background:#eaf3ff;color:#254767;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px}.sync-banner[hidden]{display:none}.sync-banner>div{display:flex;align-items:center;gap:10px}.sync-banner.warning{background:#fff3d9;color:#76520c}.account-profile{display:flex;align-items:center;gap:14px;margin-bottom:20px}.account-profile strong{overflow-wrap:anywhere}.account-avatar{display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);width:48px;height:48px;border-radius:50%;flex:none}.cloud-boot{min-height:85vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:24px;max-width:760px;padding:32px}.cloud-boot .brand{padding:0}.cloud-boot h1{font-size:30px}.cloud-boot p{color:var(--muted)}.cloud-boot .boot-actions[hidden]{display:none}.cloud-boot .boot-actions{flex-wrap:wrap;justify-content:center}.cloud-boot .button{text-decoration:none}.dialog-footer .button{text-decoration:none}
@media(max-width:760px){.toolbar .actions{gap:5px}.account-button{padding:7px}.account-button span{display:none}.sync-indicator span{font-size:11px}.sync-indicator{padding:4px;max-width:140px}.toolbar .crumb strong{display:none}.sync-banner{padding:12px 18px;gap:12px;align-items:flex-start}.sync-banner .button{font-size:12px;white-space:normal;min-width:88px}.account-profile strong{font-size:15px}.dialog-footer{gap:8px}.dialog-footer .button{font-size:12px;padding:9px 12px}}
@media print{.sync-banner,.cloud-boot{display:none!important}}

/* Keep dialog actions reachable while the content scrolls, including form dialogs. */
@media screen {
  dialog[open]{display:flex;flex-direction:column;overflow:hidden}
  .dialog-head,.dialog-footer{flex:none}
  dialog>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
  .dialog-content{min-height:0;overflow-y:auto;overscroll-behavior:contain}
}
@media screen and (max-width:760px){
  .sidebar{height:calc(74px + env(safe-area-inset-bottom))}
  main{padding-bottom:calc(110px + env(safe-area-inset-bottom))}
  .toolbar{padding-inline:14px;gap:8px}
  .mobile-logo{margin-right:0}
  .button,.toolbar .button,.account-button,.file-pick,.underlined,.tabs button{min-height:44px}
  .account-button,.icon-button{width:44px;height:44px;flex:none}
  .sync-indicator{min-height:44px}
  .field input,.field select,.field textarea,.file-details input{font-size:16px;min-height:44px;min-width:0}
  .batch-title{flex:1}
  .batch-title>div:not(.batch-icon){min-width:0;flex:1}
  .batch-title input{max-width:100%}
  .panel-head>.actions{gap:0;flex:none}
  .material-line{grid-template-columns:minmax(0,1fr) 85px 44px}
  .material-line .icon-button{margin-bottom:0}
  .accessory-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px!important}
  .receipt{scroll-margin-top:80px}
  .dialog-footer .button{font-size:14px}
  .sync-banner>div{min-width:0;flex:1}
  .sync-banner>div span,.account-profile .small{overflow-wrap:anywhere;min-width:0}
  .sync-banner>.button{flex:none}
}
@media screen and (max-width:380px){
  .sync-banner{flex-direction:column}
  .sync-banner>.button{align-self:flex-end}
}

@media screen and (max-width:760px){
  .toolbar .crumb{flex:none}
  .toolbar .actions,.sync-indicator,.sync-indicator span{min-width:0}
  .sync-indicator span{overflow:hidden;text-overflow:ellipsis}
  .calc-layout{grid-template-columns:minmax(0,1fr)}
  .input-column,.receipt{min-width:0}
  .big-price{font-size:clamp(26px,8.5vw,46px)}
  .quote-paper{overflow-wrap:anywhere}
}

@media screen and (max-width:760px){
  .quotes-table,.quotes-table tbody,.quotes-table tr,.quotes-table td{display:block;min-width:0}
  .quotes-table thead{display:none}
  .quotes-table tbody{display:grid;gap:16px}
  .quotes-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;border:1px solid var(--line);border-radius:12px;background:white}
  .quotes-table td{border:0;padding:8px;white-space:normal;overflow-wrap:anywhere}
  .quotes-table td:first-child,.quotes-table td:last-child{grid-column:1/-1}
  .quotes-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
  .quotes-table .row-link{overflow-wrap:anywhere}
  .quotes-table .table-actions{justify-content:flex-start;flex-wrap:wrap}
}
@media screen and (max-width:480px){.order-identity{grid-template-columns:minmax(0,1fr)}}

/* Required inputs are identified by text as well as color. */
.field>span{display:block}
.required-mark{display:inline;margin-left:4px;color:#0066cc;font-weight:750;font-size:16px;line-height:1}
.form-guide{font-size:13px;line-height:1.65;color:#355575;background:#eaf3ff;border:1px solid #d5e6fb;border-radius:10px;padding:12px 14px;margin-bottom:18px}
.field.is-required input,.field.is-required select{background-color:#f5f9ff;border-color:#a8c9ee}
.field.has-error input,.field.has-error select,.field.has-error textarea{background-color:#fff6f5;border-color:#be3e32}
.field-error{color:#a72c23!important;font-size:12px;line-height:1.5;font-weight:500}
.field-error[hidden]{display:none}
.field input,.field select,.field textarea{scroll-margin-top:100px}
.quote-checklist{margin-top:18px;border:1px solid #e3caa2;border-radius:12px;background:#fff9ef;padding:14px;color:#694614}
.quote-checklist>strong{font-size:14px}
.quote-checklist>p{font-size:12px;margin:4px 0 8px}
.quote-checklist>button{border:0;border-radius:8px;background:transparent;color:inherit;display:flex;align-items:flex-start;gap:8px;text-align:left;padding:10px 4px;min-height:44px;width:100%;font-size:13px;white-space:normal;line-height:1.5}
.quote-checklist>button:hover{background:#f3e8d4}
.quote-checklist>button svg{width:16px;height:16px;margin-top:2px}
.quote-checklist>button span{min-width:0;overflow-wrap:anywhere}
.quote-ready{font-size:13px;color:var(--green);margin-top:18px;display:flex;align-items:center;gap:8px}
.quote-ready svg{width:16px;height:16px}
@media print{.form-guide,.quote-checklist,.quote-ready{display:none!important}}
.import-plate-row{display:flex;gap:14px;padding:18px 0;border-bottom:1px solid var(--line,#e7e7ed);align-items:flex-start}.import-plate-row>input{width:22px;height:22px;flex-shrink:0;margin-top:3px}.import-plate-row>div{min-width:0;overflow-wrap:anywhere}.import-plate-row p{margin:8px 0}.source-filament{font-size:14px;line-height:1.7;overflow-wrap:anywhere;color:#51515b}.material-line>.source-filament{grid-column:1/-1}.filament-swatch{display:inline-block;width:14px;height:14px;border:1px solid #999;border-radius:50%;vertical-align:middle;margin-right:5px}.import-warning{color:#94590b;font-size:14px}#import-machine{width:100%}
.auth-content{max-width:480px;margin:auto}.auth-content .fields{grid-template-columns:1fr}.auth-content input:not([type=checkbox]){width:100%;min-height:48px;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;font:inherit;font-size:16px}.google-login,.auth-submit{width:100%;justify-content:center;min-height:48px}.google-login{background:var(--blue);color:#fff;border:1px solid var(--blue)}.google-login:not(:disabled):hover{background:#0056ad;border-color:#0056ad}.google-g{font-size:22px;font-weight:700;color:inherit}.auth-divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:14px;margin:20px 0}.auth-divider:before,.auth-divider:after{content:'';flex:1;height:1px;background:var(--line)}.auth-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}.auth-links .button{font-size:14px}.auth-symbol{color:var(--blue);margin-bottom:20px}.auth-symbol svg{width:36px;height:36px}.auth-success{color:var(--green)!important}.customer-row{padding:18px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.customer-row p{margin:6px 0}.customer-row small{color:var(--muted)}.mobile-summary .button{flex-shrink:0}
