:root{--bg: #f7f8fa;--surface: #ffffff;--surface-soft: #fbfbfc;--surface-warm: #fff7f0;--text: #101722;--muted: #647085;--muted-strong: #485267;--border: #dfe3ea;--border-strong: #cfd5dd;--orange: #f06412;--orange-dark: #d94d00;--orange-soft: #fff0e7;--danger: #e23434;--danger-soft: #fff3f2;--success: #1f7a45;--success-soft: #e7f5ea;--warning: #9a6500;--warning-soft: #fff6df;--shadow-sm: 0 4px 14px rgba(16, 23, 34, .06);--shadow-md: 0 16px 42px rgba(16, 23, 34, .11);--shadow-lg: 0 26px 70px rgba(16, 23, 34, .18);--sidebar-width: 280px;--topbar-height: 90px}*{box-sizing:border-box}[hidden]{display:none!important}html{min-height:100%;background:var(--bg);overflow-x:hidden}body{min-height:100%;margin:0;color:var(--text);background:var(--bg);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5;letter-spacing:0;overflow-x:hidden}body.is-modal-open{overflow:hidden}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed;opacity:.48}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;font-size:2.45rem;line-height:1.05}h2{margin-bottom:0;font-size:1.08rem;line-height:1.2}h3{margin-bottom:0;font-size:1rem}a{color:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:28px;min-height:var(--topbar-height);padding:0 32px;background:#fffffff5;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand-lockup{display:inline-flex;align-items:center;gap:12px;min-width:0;color:var(--text);text-decoration:none}.brand-mark{position:relative;display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center}.brand-mark,.brand-mark:before,.brand-mark:after,.brand-mark span{background:var(--orange);clip-path:polygon(0 12%,58% 0,100% 24%,100% 42%,58% 22%,22% 31%,22% 45%,58% 34%,100% 54%,100% 72%,58% 51%,22% 63%,22% 78%,58% 66%,100% 86%,58% 100%,0 78%,36% 65%,0 51%,36% 39%,0 25%)}.brand-mark:before,.brand-mark:after,.brand-mark span{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.brand-mark:before,.brand-mark:after,.brand-mark span{display:none}.brand-name{color:var(--text);font-size:2rem;font-weight:800;line-height:1;white-space:nowrap}.top-nav{display:flex;align-items:center;justify-content:flex-end;gap:34px;min-width:0}.nav-link,.text-link{padding:0;color:var(--text);background:transparent;border:0;font-weight:600;text-decoration:none}.nav-link:hover,.text-link:hover{color:var(--orange)}.top-actions,.auth-status,.screen-actions,.hero-actions,.feedback-actions,.settings-actions,.result-tools{display:flex;align-items:center;gap:12px;min-width:0}body.is-workspace .start-button{display:none}body.is-signin .start-button{display:inline-flex;color:var(--text);background:transparent;border-color:transparent;box-shadow:none}body.is-signin .auth-status{display:none}body.is-signin .top-actions{gap:18px}body.is-signin .top-actions:before{content:"";width:1px;height:26px;background:var(--border);order:1}body.is-signin .start-button{order:2}.auth-status{gap:8px}.auth-email{max-width:190px;color:var(--muted-strong);font-size:.92rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:10px 18px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px;font-weight:800;line-height:1;text-align:center;text-decoration:none;transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease,color .14s ease}.button:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--shadow-sm)}.button.primary{color:#fff;background:var(--orange);border-color:var(--orange)}.button.primary:hover:not(:disabled){background:var(--orange-dark);border-color:var(--orange-dark)}.button.outline{color:var(--orange);background:#fff;border-color:var(--orange)}.button.subtle{color:var(--text);background:var(--surface-soft);border-color:var(--border)}.button.ghost{color:var(--text);background:transparent;border-color:transparent;box-shadow:none}.button.danger{color:var(--danger);background:#fff;border-color:var(--danger)}.button.big{min-width:244px;min-height:66px;font-size:1.08rem}.button.small{min-height:34px;padding:7px 10px;font-size:.82rem}.full-width{width:100%}.icon-button{position:relative;display:inline-flex;width:46px;height:46px;flex:0 0 auto;align-items:center;justify-content:center;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:6px;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background .14s ease}.icon-button:hover:not(:disabled){transform:translateY(-1px);border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.icon-button:before,.icon-button:after{content:"";position:absolute;display:block}.settings-button:before{width:17px;height:17px;border:2px solid currentColor;border-radius:999px}.settings-button:after{width:5px;height:5px;border-radius:999px;background:currentColor;box-shadow:0 -11px 0 -1px currentColor,0 11px 0 -1px currentColor,-11px 0 0 -1px currentColor,11px 0 0 -1px currentColor}.modal-close:before,.modal-close:after{width:18px;height:2px;background:currentColor;border-radius:4px}.modal-close:before{transform:rotate(45deg)}.modal-close:after{transform:rotate(-45deg)}.delete-button:before{width:15px;height:17px;border:2px solid currentColor;border-top:0;border-radius:0 0 3px 3px}.delete-button:after{width:20px;height:2px;top:13px;background:currentColor;border-radius:2px}.marketing-view{min-height:calc(100vh - var(--topbar-height));padding:42px 48px 66px;background:linear-gradient(120deg,#f064121a,#fff0 33%),#fff}.marketing-shell{display:grid;grid-template-columns:minmax(360px,.8fr) minmax(580px,1.2fr);gap:72px;align-items:center;max-width:1460px;margin:0 auto}.signin-view{min-height:calc(100vh - var(--topbar-height));padding:50px 48px 72px;background:linear-gradient(120deg,#f0641224,#fff0 42%),linear-gradient(90deg,rgba(240,100,18,.08) 1px,transparent 1px),linear-gradient(0deg,rgba(240,100,18,.08) 1px,transparent 1px),#fff;background-size:auto,42px 42px,42px 42px,auto}.signin-shell{position:relative;display:grid;grid-template-columns:minmax(360px,.9fr) minmax(420px,590px);gap:78px;align-items:center;width:min(1330px,100%);margin:0 auto}.signin-story{position:relative;min-height:680px;padding-top:26px}.signin-story-copy{position:relative;z-index:2;max-width:560px}.signin-story h1{margin-bottom:28px;font-size:clamp(3.6rem,5vw,5.25rem);font-weight:900;line-height:1.04}.signin-story h1 span{color:var(--orange)}.signin-story-copy p{max-width:460px;color:var(--text);font-size:1.42rem;line-height:1.45}.signin-feature-list{position:relative;z-index:2;display:grid;gap:30px;max-width:430px;margin-top:70px}.signin-feature{display:grid;grid-template-columns:64px minmax(0,1fr);gap:24px;align-items:center}.signin-feature strong{display:block;margin-bottom:4px;font-size:1.05rem}.signin-feature p{margin:0;color:var(--muted-strong)}.signin-feature-icon{position:relative;display:inline-flex;width:64px;height:64px;align-items:center;justify-content:center;color:var(--orange);background:#ffffffe6;border:1px solid rgba(223,227,234,.82);border-radius:8px;box-shadow:var(--shadow-sm)}.signin-feature-icon:before,.signin-feature-icon:after{content:"";position:absolute}.document-icon:before{width:24px;height:30px;border:3px solid currentColor;border-radius:4px}.document-icon:after{width:12px;height:3px;background:currentColor;box-shadow:0 8px 0 currentColor}.history-icon:before{width:30px;height:30px;border:3px solid currentColor;border-left-color:transparent;border-radius:50%}.history-icon:after{width:12px;height:12px;border-left:3px solid currentColor;border-bottom:3px solid currentColor;transform:translate(-12px,-9px) rotate(45deg)}.stock-icon:before{width:32px;height:22px;background:linear-gradient(currentColor 0 0) 0 0 / 13px 6px no-repeat,linear-gradient(currentColor 0 0) 19px 0 / 13px 6px no-repeat,linear-gradient(currentColor 0 0) 0 16px / 13px 6px no-repeat,linear-gradient(currentColor 0 0) 19px 16px / 13px 6px no-repeat,linear-gradient(currentColor 0 0) 9px 8px / 14px 6px no-repeat}.export-icon:before{width:24px;height:30px;border:3px solid currentColor;border-right-color:transparent;border-radius:4px}.export-icon:after{width:18px;height:18px;border-top:3px solid currentColor;border-right:3px solid currentColor;transform:translate(6px,-1px) rotate(45deg)}.signin-card{width:min(590px,100%);padding:56px 68px 48px;border-radius:8px;box-shadow:0 26px 70px #10172224}.hero-copy{max-width:620px}.hero-copy h1{margin:0 0 30px;font-size:clamp(3rem,4.9vw,5rem);font-weight:900;line-height:1.12}.hero-copy p{max-width:560px;margin:0 0 38px;color:var(--muted-strong);font-size:1.55rem;line-height:1.45}.hero-calculator,.calculator-card,.feature-card,.settings-card,.stat-card,.activity-card,.selected-preview-card,.saved-table-card,.account-summary-card,.sidebar-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-sm)}.hero-calculator{overflow:hidden;box-shadow:var(--shadow-md)}.mock-controls,.calculator-toolbar{display:grid;gap:22px;align-items:end;padding:28px 26px;border-bottom:1px solid var(--border)}.mock-controls{grid-template-columns:minmax(190px,1fr) minmax(150px,.75fr) minmax(150px,.75fr) auto}.calculator-toolbar{grid-template-columns:repeat(5,minmax(130px,1fr))}.mock-field,.field{display:grid;gap:7px;min-width:0}.mock-field span,.field span,.panel-label,.section-kicker{margin:0;color:var(--text);font-size:.83rem;font-weight:800}.mock-field strong{display:flex;min-height:42px;align-items:center;justify-content:space-between;padding:9px 12px;color:var(--text);background:#fff;border:1px solid var(--border);border-radius:6px;font-size:.96rem;font-weight:500}.mock-field small{color:var(--text);font-size:.83rem}.mock-card-body{display:grid;grid-template-columns:.58fr 1fr;min-height:438px}.mock-cuts,.mock-results{padding:24px}.mock-cuts{border-right:1px solid var(--border)}.mock-cuts>div{display:grid;grid-template-columns:1fr .58fr;gap:18px;align-items:center;margin-bottom:10px}.mock-cuts span{min-height:44px;padding:11px 12px;background:#fff;border:1px solid var(--border);border-radius:6px}.mock-cuts .mock-cut-head span{min-height:auto;padding:0;color:var(--text);background:transparent;border:0;font-size:.82rem;font-weight:800}.add-row-preview{width:100%;margin-top:10px}.mock-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:16px 0 24px;border-bottom:1px solid var(--border)}.mock-result-grid div{min-height:106px;padding:0 22px 16px 0;border-right:1px solid var(--border)}.mock-result-grid div:last-child{border-right:0}.mock-result-grid strong{display:inline-block;color:var(--orange);font-size:2.45rem;line-height:1}.mock-result-grid span{color:var(--muted-strong);font-size:.85rem}.mock-plan{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-bottom:10px;border:1px solid var(--border-strong);border-radius:4px;overflow:hidden}.mock-plan span{min-height:34px;display:flex;align-items:center;justify-content:center;background:#f7f8fa;border-right:1px solid var(--border-strong);font-size:.78rem;font-weight:700}.mock-plan span:last-child{border-right:0}.mock-plan .waste,.preview-segment.waste,.bar-segment.waste,.bar-segment.offcut{background:repeating-linear-gradient(135deg,#e7e9ed,#e7e9ed 4px,#f7f8fa 4px,#f7f8fa 8px)}.mock-axis,.preview-axis{display:flex;justify-content:space-between;margin-top:10px;color:var(--muted-strong);font-size:.83rem}.mock-footer,.calculator-footer{display:flex;align-items:center;gap:18px;padding:18px 24px;border-top:1px solid var(--border)}.feature-row,.landing-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;max-width:1460px;margin:86px auto 0}.feature-card{display:grid;grid-template-columns:94px minmax(0,1fr);gap:22px;align-items:center;min-height:178px;padding:34px}.feature-card h3{margin:0 0 8px;font-size:1.35rem}.feature-card p{margin:0;color:var(--muted-strong)}.feature-icon,.side-icon,.settings-card-icon{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;color:var(--orange)}.feature-icon{width:86px;height:86px;border-radius:999px;background:var(--orange-soft)}.feature-icon:before,.feature-icon:after,.side-icon:before,.side-icon:after,.settings-card-icon:before,.settings-card-icon:after,.feedback-icon:before,.feedback-icon:after{content:"";position:absolute;display:block}.waste-icon:before{width:28px;height:32px;border:4px solid currentColor;border-top:0;border-radius:0 0 4px 4px}.waste-icon:after{width:38px;height:4px;top:27px;background:currentColor;border-radius:3px}.time-icon:before{width:38px;height:38px;border:4px solid currentColor;border-radius:999px}.time-icon:after{width:19px;height:15px;border-left:4px solid currentColor;border-bottom:4px solid currentColor;transform:translate(5px,-2px)}.doc-icon:before{width:30px;height:38px;border:4px solid currentColor;border-radius:3px}.doc-icon:after{width:17px;height:4px;background:currentColor;box-shadow:0 10px 0 currentColor}.folder-icon:before{width:42px;height:31px;border:4px solid currentColor;border-radius:3px}.folder-icon:after{width:20px;height:8px;top:26px;left:24px;border:4px solid currentColor;border-bottom:0;border-radius:3px 3px 0 0}.ruler-icon:before{width:42px;height:15px;border:4px solid currentColor;border-radius:3px;transform:rotate(-45deg)}.star-icon:before{width:24px;height:24px;background:currentColor;clip-path:polygon(50% 0,62% 34%,100% 34%,69% 55%,82% 100%,50% 73%,18% 100%,31% 55%,0 34%,38% 34%)}.workspace-view{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:calc(100vh - var(--topbar-height));background:#fff}.sidebar{display:flex;flex-direction:column;gap:24px;min-height:calc(100vh - var(--topbar-height));padding:40px 16px 24px;background:linear-gradient(180deg,#f064120f,#fff0 62%),#fff;border-right:1px solid var(--border)}.side-nav{display:grid;gap:8px}.side-link{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px;align-items:center;min-height:60px;padding:0 20px;color:var(--muted-strong);background:transparent;border:0;border-left:4px solid transparent;border-radius:6px;font-size:1rem;font-weight:700;text-align:left}.side-link.is-active{color:var(--orange);background:var(--orange-soft);border-left-color:var(--orange)}.side-icon{width:24px;height:24px}.dashboard-icon:before{width:18px;height:18px;border:2px solid currentColor;transform:rotate(45deg)}.calculator-icon:before,.cutlist-icon:before{width:18px;height:22px;border:2px solid currentColor;border-radius:3px}.calculator-icon:after{width:10px;height:2px;background:currentColor;box-shadow:0 6px 0 currentColor,0 12px 0 currentColor}.cutlist-icon:after{width:12px;height:2px;background:currentColor;box-shadow:0 7px 0 currentColor}.settings-small-icon:before{width:18px;height:18px;border:2px solid currentColor;border-radius:999px}.account-icon:before{width:16px;height:16px;border:2px solid currentColor;border-radius:999px;top:1px}.account-icon:after{width:22px;height:13px;border:2px solid currentColor;border-bottom:0;border-radius:16px 16px 0 0;bottom:0}.feedback-small-icon:before,.feedback-icon:before{width:18px;height:13px;border:2px solid currentColor;border-radius:4px}.feedback-small-icon:after,.feedback-icon:after{width:7px;height:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:translate(-4px,8px) skewY(-18deg)}.help-small-icon:before{width:18px;height:18px;border:2px solid currentColor;border-radius:999px}.help-small-icon:after{content:"?";color:currentColor;font-size:.92rem;font-weight:900;line-height:1}.sidebar-card{margin:auto 6px 0;padding:22px}.sidebar-card h3{margin:8px 0}.sidebar-card p{margin:0 0 16px;color:var(--muted-strong);font-size:.93rem}.sidebar-card .feature-icon{width:34px;height:34px;background:transparent}.sidebar-user{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;margin:0 6px;padding:10px 0}.avatar{display:inline-flex;width:48px;height:48px;align-items:center;justify-content:center;color:var(--text);background:#edf0f4;border-radius:999px;font-weight:900}.sidebar-user strong,.sidebar-user span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-user span{color:var(--muted-strong);font-size:.9rem}.workspace-main{min-width:0;padding:48px 48px 72px;background:var(--bg)}.workspace-screen{max-width:1320px;margin:0 auto}.screen-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}.screen-heading h1{font-size:2.4rem;font-weight:900}.screen-heading p{margin:8px 0 0;color:var(--muted-strong)}.calculator-card{overflow:hidden;margin-bottom:26px}.calculator-toolbar{background:var(--surface)}.field span{color:var(--text)}input,select,textarea{width:100%;min-height:42px;padding:10px 12px;color:var(--text);background:#fff;border:1px solid var(--border-strong);border-radius:6px;outline:none;transition:border-color .14s ease,box-shadow .14s ease}textarea{min-height:110px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--orange);box-shadow:0 0 0 4px #f064121f}input[aria-invalid=true]{background:snow;border-color:var(--danger)}.suffix-field{position:relative}.suffix-field input{padding-right:50px}.suffix-field em{position:absolute;right:14px;bottom:11px;color:var(--text);font-style:normal;font-size:.87rem;font-weight:700}.hidden-setting{display:grid}.calculator-body{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(520px,1.35fr);min-height:480px}.cut-entry-panel,.results-panel{min-width:0;padding:24px}.cut-entry-panel{border-right:1px solid var(--border)}.cut-table{width:100%}.cut-table-header,.cut-row{display:grid;grid-template-columns:28px minmax(110px,1fr) minmax(80px,.54fr) 42px;gap:12px;align-items:center}.cut-table-header{margin-bottom:10px;color:var(--text);font-size:.82rem;font-weight:800}.cut-row{margin-bottom:10px}.cut-row-number{color:var(--muted-strong);font-weight:700;text-align:center}.row-field{display:grid;gap:4px}.row-field .mobile-label,.row-label-field{display:none}.row-actions{display:flex;justify-content:center}.button.row-button{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;color:var(--muted-strong);background:transparent;border:0;border-radius:6px;font-size:0;box-shadow:none}.button.row-button:before{color:inherit;font-size:1.25rem;line-height:1}.button.row-button[data-action=up]:before{content:"^"}.button.row-button[data-action=down]:before{content:"v"}.button.row-button[data-action=duplicate]:before{content:"+"}.button.row-button[data-action=remove]:before{content:"x"}.button.row-button.danger{color:var(--danger)}.cut-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;margin-top:18px}.calculate-button{width:100%;margin-top:16px}.results-heading{display:flex;justify-content:space-between;gap:14px;margin-bottom:20px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--border)}.summary-item{min-width:0;padding:0 20px;border-right:1px solid var(--border)}.summary-item:first-child{padding-left:0}.summary-item:last-child{border-right:0}.summary-item span{display:block;margin-bottom:10px;color:var(--muted-strong);font-size:.83rem;font-weight:700}.summary-item strong{display:inline-block;color:var(--orange);font-size:2.05rem;line-height:1}.summary-item em{color:var(--text);font-style:normal;font-weight:700}.summary-item small{display:block;margin-top:6px;color:var(--muted-strong);font-size:.82rem}.insights{display:none}.plans{min-width:0}.plan-preview-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;color:var(--text);font-size:.9rem;font-weight:800}.plan-preview-header span{color:var(--muted-strong);font-size:.82rem}.preview-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:9px}.preview-row-number{color:var(--text);font-size:.82rem;font-weight:800}.preview-bar,.bar{display:flex;width:100%;min-width:0;height:34px;overflow:hidden;background:#f4f5f7;border:1px solid var(--border-strong);border-radius:4px}.preview-segment,.bar-segment{display:flex;min-width:26px;align-items:center;justify-content:center;padding:0 5px;color:var(--text);background:#f5f6f8;border-right:1px solid var(--border-strong);font-size:.74rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-segment:last-child,.bar-segment:last-child{border-right:0}.preview-segment.kerf,.bar-segment.kerf{min-width:2px;padding:0;background:var(--border-strong)}.bar-segment.tone-0,.bar-segment.tone-1,.bar-segment.tone-2,.bar-segment.tone-3,.bar-segment.tone-4,.bar-segment.tone-5{color:var(--text);background:#f5f6f8}.bar-segment span{min-width:0;overflow:hidden;text-overflow:ellipsis}.cut-list,.stock-pattern-summary,.stock-meta{display:none}.stock-plan{margin-top:16px;padding:16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px}.stock-header{display:flex;justify-content:space-between;gap:14px;margin-bottom:12px}.pill{display:inline-flex;min-height:26px;align-items:center;padding:4px 9px;color:var(--muted-strong);background:#fff;border:1px solid var(--border);border-radius:999px;font-size:.8rem;font-weight:800}.pill.good{color:var(--success);background:var(--success-soft)}.pill.bad{color:var(--muted-strong);background:#eef1f4}.manual-stock-plan{transition:border-color .12s ease,box-shadow .12s ease,background .12s ease}.manual-stock-plan.is-drop-target{background:#f2faf7;border-color:var(--success);box-shadow:0 0 0 3px #1f7a4529}.manual-stock-plan.is-drop-invalid{background:#fff8f7;border-color:var(--danger);box-shadow:0 0 0 3px #e2343424}.manual-cut-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:12px 0 0;padding:0;list-style:none}.manual-cut-list li.manual-cut{display:grid;grid-template-columns:minmax(76px,.5fr) minmax(90px,1fr);gap:10px;min-height:44px;align-items:center;padding:8px 10px;background:#fff;border:1px solid var(--border);border-radius:6px;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.manual-cut-list li.manual-cut.is-dragging-source{opacity:.35}.manual-drag-ghost{position:fixed;top:0;left:0;z-index:10000;display:grid;grid-template-columns:minmax(76px,.5fr) minmax(90px,1fr);gap:10px;min-height:44px;align-items:center;padding:8px 10px;color:var(--text);background:#fff;border:1px solid var(--orange);border-radius:6px;box-shadow:var(--shadow-md);list-style:none;pointer-events:none}.manual-empty-state{margin-top:12px;padding:12px;color:var(--muted-strong);background:#fff;border:1px dashed var(--border-strong);border-radius:6px;font-weight:700}.bar-segment.empty{width:100%;color:var(--muted-strong);background:#eef1f4}.calculator-footer{justify-content:flex-start}.compact-features{margin-top:26px}.compact-features .feature-card{min-height:142px;grid-template-columns:76px minmax(0,1fr);padding:28px}.compact-features .feature-icon{width:62px;height:62px}.compact-features h3{font-size:1.05rem}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px;align-items:start}.cutlist-controls{display:grid;grid-template-columns:minmax(260px,1fr) 132px;gap:24px;margin-bottom:24px}.search-field{position:relative;display:block}.search-field:before{content:"";position:absolute;left:17px;top:50%;width:14px;height:14px;border:2px solid var(--muted);border-radius:999px;transform:translateY(-50%)}.search-field:after{content:"";position:absolute;left:30px;top:calc(50% + 7px);width:8px;height:2px;background:var(--muted);transform:rotate(45deg)}.search-field input{padding-left:52px}.saved-table-card{overflow:hidden;margin-bottom:22px}.saved-status,.save-controls{display:none}.saved-list{min-width:0}.saved-empty{padding:24px;color:var(--muted-strong);font-weight:700}.saved-table{width:100%;border-collapse:collapse}.saved-table th,.saved-table td{padding:17px 18px;border-bottom:1px solid var(--border);font-size:.9rem;text-align:left;vertical-align:middle}.saved-table th{color:var(--text);background:#fff;font-size:.82rem;font-weight:800}.saved-table tr.is-selected td{background:var(--surface-warm);border-bottom-color:#ffd8be}.saved-name-cell{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center}.material-mini-icon{display:inline-flex;width:30px;height:30px;border:2px solid var(--orange);border-radius:5px}.saved-name-cell strong,.saved-name-cell span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-name-cell span,.recent-activity-list span{color:var(--muted-strong);font-size:.82rem}.table-actions{display:flex;justify-content:flex-end;gap:8px}.table-actions .button{min-height:34px;padding:7px 11px;color:var(--orange);background:#fff;border-color:#ffb27d;font-size:.82rem}.selected-preview-card{padding:24px}.preview-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.preview-title-row h2{font-size:1.25rem}.preview-title-row p{margin:6px 0 0;color:var(--muted-strong);font-size:.9rem}.dashboard-rail{display:grid;gap:22px}.stat-card,.activity-card{padding:22px}.stat-card .feature-icon{width:58px;height:58px}.stat-card h3,.activity-card h3{margin:18px 0 16px;font-size:1.05rem}.stat-card strong{display:block;color:var(--orange);font-size:2.55rem;line-height:1}.stat-card strong small{color:var(--text);font-size:.95rem}.stat-card p{margin:8px 0 22px;color:var(--muted-strong)}.recent-activity-list{display:grid;gap:16px;margin-bottom:18px}.activity-item{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px}.activity-dot{width:20px;height:20px;border:2px solid var(--orange);border-radius:5px}.activity-item strong{display:block;font-size:.86rem}.account-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:34px;align-items:start}.settings-stack{display:grid;gap:22px}.settings-card,.account-summary-card{padding:24px}.settings-card h2,.account-summary-card h2{display:flex;align-items:center;gap:12px;margin-bottom:22px}.settings-card-copy{margin:-10px 0 20px;color:var(--muted-strong);font-size:.9rem;line-height:1.5}.settings-card-icon{width:26px;height:26px}.key-icon:before{width:18px;height:18px;border:3px solid currentColor;border-radius:999px}.key-icon:after{width:20px;height:4px;background:currentColor;transform:translate(12px,7px) rotate(-45deg)}.shield-icon:before{width:22px;height:26px;border:3px solid currentColor;border-radius:12px 12px 16px 16px;clip-path:polygon(50% 0,100% 20%,90% 78%,50% 100%,10% 78%,0 20%)}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.settings-actions{justify-content:flex-end;margin-top:20px}.password-field{grid-template-columns:180px minmax(0,1fr);align-items:center;margin-bottom:18px}.password-field span{color:var(--text);font-weight:700}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.toggle-row p{margin:4px 0 0;color:var(--muted-strong);font-size:.9rem}.mfa-settings{display:grid;gap:18px}.security-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.security-section-heading h3{margin:0 0 6px;font-size:1rem}.security-section-heading p{margin:0;color:var(--muted-strong);font-size:.9rem;line-height:1.45}.button-group{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.mfa-factors-list{display:grid;gap:10px}.mfa-factor-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px}.mfa-factor-item.is-pending{background:#fff7ed;border-color:#fed7aa}.mfa-factor-item strong,.mfa-factor-item span{display:block}.mfa-factor-item span{margin-top:4px;color:var(--muted-strong);font-size:.84rem}.mfa-enroll-panel{display:grid;gap:16px;padding:16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px}.mfa-enroll-panel[hidden]{display:none}.mfa-qr-frame{display:grid;place-items:center;min-height:210px;background:#fff;border:1px solid var(--border);border-radius:8px}.mfa-qr-frame img{max-width:min(210px,100%);height:auto}.mfa-secret{margin:0;padding:12px;overflow-wrap:anywhere;color:var(--text);background:#fff;border:1px dashed var(--border-strong);border-radius:8px;font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:.86rem}.security-divider{margin:22px 0;border-top:1px solid var(--border)}.switch{position:relative;display:inline-flex;width:38px;height:22px;flex:0 0 auto}.switch input{position:absolute;opacity:0}.switch span{width:100%;height:100%;background:var(--border-strong);border-radius:999px}.switch span:before{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;background:#fff;border-radius:999px;transition:transform .14s ease}.switch input:checked+span{background:var(--orange)}.switch input:checked+span:before{transform:translate(16px)}.security-note{margin:18px 0 0;padding-top:16px;color:var(--muted-strong);border-top:1px solid var(--border);font-size:.9rem}.danger-card{display:flex;align-items:center;justify-content:space-between;gap:22px;color:var(--danger);background:var(--danger-soft);border-color:#ffbfbb}.danger-card p{margin:8px 0 0;color:#6f3840}.account-summary-card dl{margin:0 0 24px}.account-summary-card div{padding:16px 0;border-bottom:1px solid var(--border)}.account-summary-card dt{margin-bottom:8px;color:var(--text);font-size:.84rem;font-weight:800}.account-summary-card dd{margin:0;color:var(--text);font-size:1rem}.account-summary-card small{color:var(--muted-strong)}.status-pill{float:right;padding:2px 10px;color:var(--success);background:var(--success-soft);border-radius:999px;font-size:.82rem}.preferences-card{max-width:820px}.message{position:fixed;top:108px;left:50%;z-index:950;width:min(720px,calc(100% - 32px));max-height:min(50vh,360px);margin:0;padding:14px 16px;overflow-y:auto;border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-md);font-weight:800;transform:translate(-50%)}.message.error{color:var(--danger);background:var(--danger-soft);border-color:#ffc5c1}.message.success{color:var(--success);background:var(--success-soft);border-color:#bfe2c9}.message.warning{color:var(--warning);background:var(--warning-soft);border-color:#f1d894}.auth-overlay,.guide-overlay,.feedback-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:#1017229e}.auth-modal,.guide-modal,.feedback-modal{width:min(460px,100%);max-height:min(86vh,760px);overflow:auto;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-lg)}.guide-modal{width:min(760px,100%)}.feedback-modal{width:min(520px,100%)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:26px 28px 10px}.signin-card .modal-header{padding:0 0 12px}.modal-header h2{font-size:1.1rem}.signin-card .modal-header h2{font-size:1.9rem;font-weight:900}.auth-form,.auth-mode-actions,.guide-modal-body,.feedback-form{padding:0 28px 28px}.signin-card .auth-form,.signin-card .auth-mode-actions{padding:0}.auth-copy{margin-bottom:18px;color:var(--muted-strong)}.signin-card .auth-copy{margin-bottom:22px;font-size:1.08rem}.auth-form{display:grid;gap:22px}.auth-modal-actions{display:flex;justify-content:flex-end}.signin-card .auth-modal-actions{justify-content:stretch}.signin-card .auth-modal-actions .button{width:100%;min-height:54px;font-size:1.12rem}.auth-input-shell{position:relative;display:grid;align-items:center;color:var(--text);font-size:1rem;font-weight:400}.auth-field-icon{position:absolute;left:16px;z-index:1;display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;color:var(--muted);pointer-events:none}.auth-field-icon svg,.password-toggle svg{width:100%;height:100%;display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.auth-input-shell input{width:100%;min-height:56px;padding-left:52px;padding-right:18px}.password-shell input{padding-right:92px}.password-toggle{position:absolute;right:14px;z-index:2;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:0 6px;color:var(--muted-strong);background:transparent;border:0;font-weight:700}.password-toggle svg{width:20px;height:20px}.auth-mode-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:0}.signin-card .auth-mode-actions{display:grid;gap:14px;margin-top:18px;text-align:center}.signin-card .auth-mode-actions .button{width:100%}.signin-card .auth-mode-actions [data-auth-mode=reset]{width:auto;justify-self:center;min-height:auto;padding:0;color:var(--orange);background:transparent;border:0}.signin-card:not([data-mode=signin]) .auth-divider,.signin-card:not([data-mode=signin]) .auth-new-account,.signin-card:not([data-mode=signin]) .auth-test-copy,.signin-card:not([data-mode=signin]) .text-link-button{display:none}.auth-divider{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;color:var(--muted)}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--border)}.auth-new-account,.auth-test-copy{color:var(--muted-strong)}.button.text-link-button{color:var(--orange);background:transparent;border:0}.inline-message{margin:0 28px 28px;padding:12px;border-radius:6px;font-weight:800}.signin-card .inline-message{margin:18px 0 0}.inline-message.error{color:var(--danger);background:var(--danger-soft)}.inline-message.success{color:var(--success);background:var(--success-soft)}.guide-section{padding:18px 0;border-top:1px solid var(--border)}.guide-section-title{display:flex;align-items:center;gap:12px;margin-bottom:14px}.guide-step-number{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;color:#fff;background:var(--orange);border-radius:999px}.guide-steps{margin:0;padding-left:22px;color:var(--muted-strong)}.guide-paragraph{color:var(--muted-strong)}.feedback-fab{position:fixed;right:34px;bottom:30px;z-index:80;display:inline-flex;min-height:48px;align-items:center;gap:10px;padding:0 22px;color:#fff;background:var(--orange);border:1px solid #ffffff;border-radius:999px;box-shadow:var(--shadow-md);font-weight:800}.feedback-icon{position:relative;width:20px;height:18px;color:#fff}.feedback-form{display:grid;gap:14px}.textarea-field{position:relative}.textarea-field em{position:absolute;right:10px;bottom:8px;color:var(--muted-strong);font-style:normal;font-size:.8rem}.technical-details{display:flex;flex-wrap:wrap;gap:8px}.technical-details span{padding:6px 9px;color:var(--muted-strong);background:#eef1f4;border-radius:5px;font-size:.78rem;font-weight:700}.feedback-actions{justify-content:flex-end;margin-top:10px}@media(max-width:1180px){.marketing-shell,.signin-shell,.workspace-view,.calculator-body,.dashboard-grid,.account-layout{grid-template-columns:1fr}.signin-shell{gap:34px}.signin-story{min-height:auto;padding-top:0}.signin-feature-list{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;margin-top:34px}.signin-card{justify-self:center}.sidebar{min-height:auto;border-right:0;border-bottom:1px solid var(--border)}.side-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar-card,.sidebar-user{display:none}.cut-entry-panel{border-right:0;border-bottom:1px solid var(--border)}.dashboard-rail{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:860px){.topbar{grid-template-columns:auto minmax(0,1fr);min-height:72px;gap:12px;padding:12px 18px}.top-nav,.start-button{display:none}.top-actions{justify-content:flex-end}body.is-signin .top-actions:before{display:none}.auth-status{display:inline-flex}.screen-heading,.hero-actions,.preview-title-row,.security-section-heading,.danger-card,.mock-footer,.calculator-footer{align-items:stretch;flex-direction:column}.marketing-view,.signin-view,.workspace-main{padding:26px 18px 72px}.signin-story h1{font-size:3rem}.signin-story-copy p{font-size:1.08rem}.signin-feature-list{grid-template-columns:1fr;gap:18px}.signin-card{padding:30px 22px 26px}.hero-copy h1{font-size:2.55rem}.hero-copy p{font-size:1.1rem}.hero-actions,.screen-actions{width:100%}.hero-actions .button,.screen-actions .button,.security-section-heading .button,.mock-footer .button,.calculator-footer .button{width:100%;min-width:0}.security-section-heading .button-group{width:100%}.mock-controls,.calculator-toolbar,.mock-card-body,.feature-row,.landing-features,.summary-grid,.profile-grid,.dashboard-rail,.cutlist-controls{grid-template-columns:1fr}.mock-cuts{border-right:0;border-bottom:1px solid var(--border)}.feature-card{grid-template-columns:72px minmax(0,1fr);padding:22px}.feature-icon{width:60px;height:60px}.sidebar{padding:12px 14px;overflow-x:auto}.side-nav{display:flex;gap:8px;min-width:max-content}.side-link{min-width:150px;min-height:46px;padding:0 14px}.summary-item{padding:14px 0;border-right:0;border-bottom:1px solid var(--border)}.summary-item:last-child{border-bottom:0}.password-field{grid-template-columns:1fr}.saved-table{min-width:760px}.saved-table-card{overflow-x:auto}.cutlist-controls{display:block}.cutlist-controls .button{width:100%;margin-top:14px}}@media(max-width:560px){.brand-name{font-size:1.55rem}body.is-signin .start-button{padding:8px 0;font-size:.9rem}.screen-heading h1{font-size:2rem}.signin-story h1{font-size:2.35rem}.signin-feature{grid-template-columns:54px minmax(0,1fr);gap:16px}.signin-feature-icon{width:54px;height:54px}.cut-table-header,.cut-row{grid-template-columns:24px minmax(86px,1fr) minmax(62px,.5fr) 34px;gap:8px}.cut-entry-panel,.results-panel,.mock-cuts,.mock-results,.signin-card,.settings-card,.account-summary-card{padding:18px}.feedback-fab{right:18px;bottom:18px}}@media print{.topbar,.sidebar,.screen-actions,.calculator-toolbar,.cut-entry-panel,.calculator-footer,.feedback-fab,.auth-overlay,.signin-view,.guide-overlay,.feedback-overlay{display:none!important}body{background:#fff}.workspace-view,.workspace-main,.workspace-screen{display:block!important;padding:0;max-width:none;background:#fff}.calculator-card,.results-panel{border:0;box-shadow:none}}
