.offset-main{max-width:1100px;margin:0 auto;padding:48px 24px 72px}.offset-main h1{font-size:clamp(28px,4vw,44px);line-height:1.2;margin:12px 0}.offset-intro{max-width:700px;color:#59665b;line-height:1.7}.offset-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;margin-top:32px;align-items:start}.offset-panel{border:1px solid #dce4dc;border-radius:20px;padding:28px;background:#fff}.offset-panel h2{font-size:20px;margin:0 0 24px}.offset-form label{display:block;font-weight:600;font-size:14px;margin-bottom:8px}.offset-form input,.offset-form select{width:100%;min-height:48px;border:1px solid #c6d1c6;border-radius:9px;background:white;padding:10px 12px;font:inherit;color:#233d2d;box-sizing:border-box}.offset-field{margin-bottom:22px}.offset-size{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.offset-size label{font-size:12px}.offset-form .offset-check{display:flex;gap:12px;align-items:center;cursor:pointer;margin:0 0 16px}.offset-check input{width:20px;min-height:20px;height:20px;accent-color:#365a40}.offset-form input:focus-visible,.offset-form select:focus-visible{outline:3px solid #b3cbb7;outline-offset:2px}.offset-form button{width:100%;min-height:46px;border:0;border-radius:10px;background:#34533d;color:white;font:inherit;font-weight:600;cursor:pointer}.offset-result{background:#f2f6ef;position:sticky;top:24px}.offset-result h2{margin-bottom:12px}.offset-status{font-size:23px;line-height:1.35;font-weight:650;color:#34533d;margin:20px 0 10px}.offset-note{font-size:13px;line-height:1.7;color:#59665b}.offset-summary{border-top:1px solid #d5dfd4;margin-top:24px;padding-top:16px}.offset-summary div{display:flex;justify-content:space-between;gap:18px;margin:12px 0;font-size:13px}.offset-summary dt{color:#5c695e}.offset-summary dd{text-align:right;margin:0;font-weight:600}.offset-total{font-size:32px;font-weight:700}.offset-error{color:#9a3434}.offset-form [hidden],.offset-result [hidden]{display:none!important}.offset-main details{margin-top:22px;font-size:13px;line-height:1.8}.offset-main summary{cursor:pointer;font-weight:600}.offset-main noscript{display:block;padding:20px;background:#fff2da}@media(max-width:760px){.offset-main{padding:28px 16px 48px}.offset-grid{grid-template-columns:1fr;gap:18px;margin-top:22px}.offset-panel{padding:22px 18px}.offset-result{position:static}.offset-size{gap:8px}}@media(prefers-reduced-motion:reduce){.offset-main *{scroll-behavior:auto}}
.offset-style-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.offset-form .offset-style-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:104px;padding:10px 5px;background:#fff;color:#526450;border:1px solid #d5dfd3;border-radius:10px;font-size:11px;line-height:1.4;font-weight:500}.offset-style-card svg{width:45px;height:45px;fill:#eef3e9;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.offset-form .offset-style-card[aria-pressed=true]{background:var(--offset-choice-bg);border:2px solid #456848;color:#28472e;font-weight:650}.offset-style-card:focus-visible{outline:3px solid #a8c9ac;outline-offset:2px}.offset-result-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.offset-result-header h2{margin:0}.offset-result-header button{display:none}.offset-result .offset-summary{overflow-wrap:anywhere}
@media(max-width:760px){.offset-main{padding-bottom:300px}.offset-result{position:fixed;top:auto;right:max(14px,env(safe-area-inset-right));bottom:calc(76px + env(safe-area-inset-bottom));width:240px;max-width:calc(100vw - 28px);box-sizing:border-box;padding:14px 16px;border-radius:15px;z-index:39;box-shadow:0 6px 28px #183e3329;max-height:55dvh;overflow:auto}.offset-result-header h2{font-size:12px}.offset-result-header button{display:block;background:transparent;border:0;padding:6px 0 6px 8px;font:600 11px Montserrat,sans-serif;color:#34533d;cursor:pointer;min-height:32px}.offset-result .offset-status{font-size:16px;margin:8px 0 4px}.offset-result .offset-note{font-size:11px;line-height:1.5;margin:5px 0}.offset-result .offset-total{font-size:22px;margin:4px 0 10px}.offset-result:not(.is-expanded) .offset-summary{display:none}.offset-result .offset-summary{padding-top:8px;margin-top:10px}.offset-result .offset-summary div{font-size:11px;margin:8px 0}.offset-result.is-expanded{width:280px}.offset-form .offset-style-card{min-height:94px}}
.offset-breakdown .offset-cost-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px 10px;margin:14px 0}.offset-cost-row dt{line-height:1.5}.offset-cost-row dd{white-space:nowrap}.offset-edit-cost{border:1px solid #b9c9b5;border-radius:6px;background:#fff;padding:6px 8px;font:500 10px Montserrat,sans-serif;color:#34533d;cursor:pointer;min-height:32px}.offset-breakdown .offset-cost-editor{grid-column:1/-1;display:block;margin:0;padding:10px;background:#fff;border:1px solid #d8e1d3;border-radius:8px}.offset-cost-editor label{display:block;font-size:11px;line-height:1.5;margin-bottom:5px}.offset-cost-editor input{width:100%;box-sizing:border-box;font:inherit;min-height:42px;border:1px solid #afbea9;border-radius:5px;padding:8px 10px}.offset-cost-editor input[aria-invalid=true]{border-color:#a53425}.offset-edit-cost:focus-visible,.offset-cost-editor input:focus-visible{outline:3px solid #b3cbb7;outline-offset:2px}.offset-result .offset-override-help{font-size:11px;line-height:1.7;color:#63715f}.offset-adjusted{margin-top:18px;padding:18px;border:1px solid #d8b875;background:#fff2d7;border-radius:12px;color:#704910}.offset-adjusted h3{font-size:19px;margin:0 0 14px}.offset-adjusted p{font-size:11px;margin:12px 0 4px}.offset-adjusted strong{display:block;font-size:24px;overflow-wrap:anywhere}.offset-override-error{font-size:12px;line-height:1.5;color:#a53425}.offset-override-error:empty{display:none}@media(max-width:760px){.offset-breakdown .offset-cost-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;font-size:11px}.offset-edit-cost{grid-column:1/-1;justify-self:end;min-height:36px}.offset-result.is-expanded{width:310px}.offset-adjusted{padding:12px}.offset-adjusted h3{font-size:15px;margin-bottom:8px}.offset-adjusted strong{font-size:20px}}
#offset-adjusted{padding:18px}@media(max-width:760px){#offset-adjusted{padding:12px}}
/* Compact offset form and shared tool previews */
.offset-image-pair{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:4px}.offset-image-pair figure{margin:0;min-width:0}.offset-image-pair img{display:block;width:100%;height:56px;object-fit:contain;background:#fff;border-radius:4px}.offset-image-pair figcaption{font-size:8px;font-weight:400;color:#65736a;margin-top:3px}.offset-form .offset-style-card{min-height:110px;padding:8px 5px;font-size:10px}.offset-spec-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;align-items:end;margin-bottom:16px}.offset-paper-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;align-items:start;margin-bottom:16px}.offset-spec-row .offset-field,.offset-paper-row .offset-field{margin-bottom:0}.offset-spec-row label,.offset-paper-row label{font-size:11px}.offset-spec-row .offset-size{gap:6px}.offset-form .offset-spec-row input,.offset-form .offset-paper-row select{min-height:38px;padding:8px 6px;font-size:12px}.offset-mount-side .offset-check{font-size:11px;margin:0 0 5px;gap:5px;min-height:23px}.offset-mount-side #offset-flute-field label{display:none}.offset-mount-side #offset-flute{min-height:34px;padding:6px;font-size:11px}.offset-value-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:12px 0 16px}.offset-value-grid p{font-size:10px!important;margin:0 0 6px!important;line-height:1.5}.offset-value-grid .offset-total,.offset-value-grid strong{font-size:20px!important;margin:0!important;letter-spacing:-.5px}.offset-result{background:var(--secondary-light,#fff2cc);border-color:#ead59a}.offset-result .offset-summary{border-color:#e2cd91}.offset-result .offset-summary div.offset-cost-row{display:grid;grid-template-columns:minmax(0,1fr) 94px 108px 30px;gap:5px;align-items:center;margin:8px 0;font-size:11px}.offset-cost-row dt{min-width:0;line-height:1.4}.offset-cost-row dd{font-size:11px}.offset-cost-row input[data-cost]{display:block;width:100%;min-width:0;min-height:38px;padding:6px;font-size:12px;text-align:right;border:1px solid #cfb870;border-radius:6px;background:#fffdf5}.offset-cost-row .offset-edit-cost{grid-column:auto;min-height:38px;width:30px;padding:4px;font-size:18px;background:#f7e5a5;color:#66500c;border-color:#cbb36b}.offset-cost-row.has-draft .offset-edit-cost{background:#e3bd47}.offset-cost-row.is-overridden input{border:2px solid #a98017}.offset-adjusted{background:#ffe199;border-color:#c9a238}.offset-adjusted h3{font-size:17px;margin-bottom:10px}.offset-result .offset-override-help{margin-bottom:8px}.offset-result-header button{color:#69520e}@media(max-width:760px){.offset-result{width:340px;max-width:calc(100vw - 28px);padding:12px;max-height:55dvh;top:auto}.offset-result.is-expanded{width:380px;max-width:calc(100vw - 28px)}.offset-result .offset-summary div.offset-cost-row{grid-template-columns:minmax(0,1fr) 76px 88px 28px;gap:4px;font-size:10px}.offset-cost-row dd{font-size:10px}.offset-cost-row .offset-edit-cost{width:28px;min-height:38px}.offset-cost-row input[data-cost]{min-height:38px;font-size:12px}.offset-value-grid{gap:8px}.offset-value-grid .offset-total,.offset-value-grid strong{font-size:17px!important}.offset-spec-row,.offset-paper-row{gap:8px}.offset-spec-row label,.offset-paper-row label{font-size:10px}.offset-form .offset-style-card{min-height:104px}.offset-image-pair img{height:45px}.offset-mount-side .offset-check{font-size:10px}.offset-main{padding-bottom:360px}}@media(max-width:380px){.offset-result .offset-summary div.offset-cost-row{grid-template-columns:minmax(0,1fr) 64px 72px 26px;gap:3px;font-size:9px}.offset-cost-row dd{font-size:9px}.offset-cost-row .offset-edit-cost{width:26px}.offset-value-grid .offset-total,.offset-value-grid strong{font-size:15px!important}}
.offset-spec-row .offset-size{align-items:end}@media(min-width:761px){.offset-result{top:80px}}

/* Trial two-piece joining diagrams, outside the floating result. */
.offset-join-diagram{max-width:320px;padding:12px;background:#fff8e5;border:1px solid #d9b44a;border-radius:12px}.offset-join-diagram svg{display:block;max-width:100%;max-height:220px;margin:auto}#offset-plan p{margin:10px 0}

/* Small tap targets next to cost names; explanations use a focus-managed native dialog. */
.offset-cost-row dt .offset-cost-hint{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;padding:0;margin:0 0 0 3px;border:0;border-radius:50%;background:transparent;color:#786019;font:600 14px/1 Montserrat,sans-serif;vertical-align:middle;cursor:pointer}.offset-cost-row dt .offset-cost-hint:hover{background:#eedda8}.offset-cost-row dt .offset-cost-hint:focus-visible{outline:2px solid #35563f;outline-offset:1px}
dialog.offset-cost-help{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:24px;border:1px solid #d9b44a;border-radius:18px;background:#fff8e5;color:#35563f;font:400 14px/1.65 Montserrat,sans-serif;box-shadow:0 16px 60px #0003}dialog.offset-cost-help::backdrop{background:#18332666}dialog.offset-cost-help h2{margin:0 0 12px;font-size:19px;line-height:1.4}dialog.offset-cost-help p{margin:0 0 12px}dialog.offset-cost-help .offset-help-close{display:block;margin:18px 0 0 auto;padding:9px 18px;border:0;border-radius:9px;background:#35563f;color:white;font:600 14px Montserrat,sans-serif;cursor:pointer}dialog.offset-cost-help .offset-help-close:focus-visible{outline:2px solid #d9b44a;outline-offset:3px}

/* User-authorized quick selling price, separate from manufacturing costs. */
.offset-selling{margin-top:18px;padding:16px;background:var(--primary,#35563f);color:#fff;border-radius:14px}.offset-margin-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.offset-margin-row label{font-size:14px;font-weight:600}.offset-margin-input{display:flex;align-items:center;gap:6px}.offset-margin-input input{box-sizing:border-box;width:78px;min-height:38px;border:1px solid #c9d6cd;border-radius:8px;padding:6px 8px;background:#fff;color:#254333;font:600 15px Montserrat,sans-serif}.offset-selling h3{margin:12px 0 6px;color:#fff;font-size:18px}.offset-selling-help{margin:7px 0!important;font-size:11px;line-height:1.5;color:#edf4ed}.offset-selling .offset-value-grid p{font-size:11px;margin:6px 0;color:#edf4ed}.offset-selling .offset-value-grid strong{color:#fff;font-size:20px}.offset-selling-disclaimer{margin:12px 0 0;font-size:11px;line-height:1.5;color:#fff}#offset-selling-error{color:#ffe4a3;font-size:12px;margin:6px 0}.offset-selling [hidden]{display:none!important}@media(max-width:760px){.offset-selling{padding:12px;margin-top:12px}.offset-margin-row label{font-size:12px}.offset-selling h3{font-size:16px}.offset-selling-help,.offset-selling-disclaimer{font-size:10px}.offset-selling .offset-value-grid strong{font-size:17px}}

/* Three independently expandable result rows, collapsed by default on all screens. */
.offset-result details.offset-result-detail{margin:0;border-top:1px solid #e2cd91;font-size:12px;line-height:1.6}.offset-result details.offset-result-detail>summary{display:flex;align-items:baseline;gap:8px;padding:13px 0;list-style:none;color:#35563f;font-size:13px;line-height:1.6;font-weight:600;cursor:pointer}.offset-result-detail>summary::-webkit-details-marker{display:none}.offset-result-detail>summary::before{content:'•';flex:none;color:#9b7627}.offset-result-detail>summary::after{content:'＋';margin-left:auto;flex:none;font-weight:400}.offset-result-detail[open]>summary::after{content:'−'}.offset-result-detail>summary:focus-visible{outline:2px solid #35563f;outline-offset:2px;border-radius:4px}
.offset-result .offset-result-detail .offset-summary{display:block;border-top:0;padding-top:0;margin-top:8px}.offset-result .offset-result-detail dl.offset-summary div{display:flex}.offset-result #offset-breakdown div.offset-cost-row{display:grid}.offset-result .offset-result-detail .offset-selling{margin:0 0 14px}.offset-result #offset-cost-details .offset-override-help{margin:10px 0}.offset-result #offset-cost-details #offset-adjusted{margin-bottom:14px}
.offset-business-form{padding:0 0 12px}.offset-business-form p{font-size:12px;line-height:1.6;color:#59665b;margin:0 0 12px}.offset-business-form label{display:block;font-size:12px;font-weight:600;margin:0 0 12px;color:#35563f}.offset-business-form input,.offset-business-form textarea{display:block;box-sizing:border-box;width:100%;min-height:40px;margin-top:5px;padding:9px 10px;border:1px solid #c6d1c6;border-radius:8px;background:#fffdf7;color:#233d2d;font:400 13px/1.5 Montserrat,sans-serif}.offset-business-form textarea{resize:vertical;min-height:110px}.offset-business-form input:focus-visible,.offset-business-form textarea:focus-visible{outline:2px solid #456848;outline-offset:1px}.offset-business-form button[type=submit]{width:100%;min-height:42px;border:0;border-radius:9px;padding:10px;background:#35563f;color:#fff;font:600 13px Montserrat,sans-serif;cursor:pointer}.offset-business-form button:disabled{opacity:.6;cursor:wait}.offset-business-form .offset-business-privacy{font-size:10px}.offset-business-form .offset-business-honey{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.offset-business-form #offset-business-status{margin-top:10px}.offset-business-form #offset-business-status:empty{display:none}@media(max-width:760px){.offset-result details.offset-result-detail>summary{font-size:11px;padding:10px 0}.offset-business-form label,.offset-business-form p{font-size:11px}}

.offset-result-header #offset-result-minimize{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;min-width:84px;border:2px solid #e4c76c;border-radius:10px;padding:8px 12px;background:#34533d;color:#fff;white-space:nowrap;font:700 12px/1.3 Montserrat,sans-serif;cursor:pointer;box-shadow:0 3px 10px #34533d30;transition:box-shadow .2s ease,transform .2s ease}
.offset-result-header #offset-result-minimize:hover{background:#233f2c;box-shadow:0 4px 12px #34533d40;transform:translateY(-1px)}
.offset-result-header #offset-result-minimize:focus-visible{outline:3px solid #183d32;outline-offset:4px}
.offset-result-header #offset-result-minimize:active{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.offset-result-header #offset-result-minimize{transition:none;transform:none}}
@media(forced-colors:active){.offset-result-header #offset-result-minimize{border:2px solid ButtonText;background:ButtonFace;color:ButtonText;box-shadow:none}}
.offset-result.is-minimized{padding:12px 16px}
.offset-result.is-minimized > :not(.offset-result-header){display:none!important}
@media(max-width:760px){.offset-result.is-minimized{width:max-content;max-width:calc(100vw - 28px)}}

.offset-paper-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.offset-mount-side #offset-flute-field{margin-bottom:8px}
.offset-mount-side #offset-chipboard-field{margin-top:4px}
.offset-contact-portrait{display:flex;align-items:flex-start;justify-content:center;gap:12px;margin-top:14px}
.offset-contact-portrait img{width:clamp(76px,25%,120px);height:auto;border-radius:12px}
.offset-contact-portrait span{position:relative;background:#fff;border-radius:12px;padding:8px 10px;font-size:12px;color:#253e30}
.offset-contact-portrait span::before{content:"";position:absolute;left:-6px;top:12px;border-right:6px solid #fff;border-bottom:6px solid transparent}

.offset-main { --offset-choice-bg: #eaf1e5; }
.offset-form :is(#offset-length, #offset-width, #offset-height, #offset-quantity, #offset-paper, #offset-flute, #offset-chipboard-gsm) {
  background-color: var(--offset-choice-bg);
}
#offset-drawing-tool { color: #35563f; font-weight: 600; text-decoration: underline; }
