/* Bifold Size Studio — entirely scoped. No font/CDN dependency. */
.bdspro{--bds-ink:#252c29;--bds-muted:#646b65;--bds-paper:#fff;--bds-soft:#f5f5f0;--bds-line:#dfe3da;--bds-sage:#e8eee5;--bds-green:#3f5947;--bds-warm:#f8efe0;--bds-brown:#77551f;container:bds / inline-size;display:block;isolation:isolate;box-sizing:border-box;width:100%;max-width:1120px;margin:28px auto;background:var(--bds-paper);color:var(--bds-ink);border:1px solid var(--bds-line);border-radius:22px;box-shadow:0 12px 36px rgba(35,44,38,.055);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;font-weight:400;line-height:1.55;text-align:left;letter-spacing:normal;overflow-wrap:normal;-webkit-text-size-adjust:100%;color-scheme:light}
.bdspro *,.bdspro *::before,.bdspro *::after{box-sizing:border-box}
.bdspro [hidden]{display:none!important}
.bdspro p,.bdspro h3,.bdspro h4{padding:0;margin:0;color:inherit;font-family:inherit;letter-spacing:normal}
.bdspro p{font-size:14px;line-height:1.6}
.bdspro h3{font-size:clamp(24px,3.6cqw,34px);font-weight:650;line-height:1.15;letter-spacing:-1.1px}
.bdspro h4{font-size:16px;font-weight:650;line-height:1.35}
.bdspro button,.bdspro input,.bdspro select,.bdspro output{font-family:inherit;letter-spacing:normal;line-height:1.35}
.bdspro button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:10px;margin:0;padding:10px 14px;background:transparent;color:var(--bds-ink);font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;text-transform:none;box-shadow:none;min-height:42px;touch-action:manipulation;transition:background .16s ease,box-shadow .16s ease,opacity .16s ease}
.bdspro button:focus-visible,.bdspro summary:focus-visible,.bdspro a:focus-visible{outline:3px solid #708774;outline-offset:3px}
.bdspro button:disabled{opacity:.35;cursor:not-allowed}
.bdspro svg{flex-shrink:0;display:block}
.bdspro a{color:var(--bds-green);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;font-weight:500}
.bdspro .bds-header{position:static;width:auto;height:auto;min-height:0;max-width:none;inset:auto;transform:none;backdrop-filter:none;z-index:auto;padding:28px 24px 24px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--bds-line);background:linear-gradient(105deg,#fbfbf7,#fff);border-radius:22px 22px 0 0}
.bdspro .bds-header-title{display:flex;align-items:center;gap:16px}
.bdspro .bds-brandmark{width:50px;height:57px;background:var(--bds-ink);color:#f1f3e9;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.bdspro .bds-brandmark svg{width:30px;height:34px}
.bdspro .bds-kicker{display:block;color:var(--bds-muted);font-size:10px;font-weight:700;line-height:1.4;letter-spacing:1.7px}
.bdspro .bds-header .bds-kicker{margin-bottom:7px}
.bdspro .bds-header p{margin-top:8px;color:var(--bds-muted);font-size:13px}
.bdspro .bds-header-tag{display:none;white-space:nowrap;border:1px solid var(--bds-line);border-radius:999px;padding:6px 11px;font-size:11px;color:var(--bds-muted)}
.bdspro .bds-toolbar{padding:19px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--bds-line)}
.bdspro .bds-segment{display:flex;background:var(--bds-soft);border:1px solid var(--bds-line);border-radius:12px;padding:4px;gap:3px;min-width:0}
.bdspro .bds-segment button{font-size:12px;min-height:38px;padding:8px 12px;border-radius:8px;white-space:normal}
.bdspro .bds-segment button[aria-pressed=true]{background:var(--bds-ink);color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.10)}
.bdspro .bds-units{flex-shrink:0}
.bdspro .bds-units button{min-width:36px;padding:8px}
.bdspro .bds-grid{display:grid;grid-template-columns:minmax(0,1fr)}
.bdspro .bds-form{display:block;margin:0;padding:24px 20px 12px;min-width:0;background:#fff}
.bdspro .bds-sectiontop{display:flex;gap:11px;align-items:flex-start;margin-bottom:18px}
.bdspro .bds-sectiontop p{font-size:12px;color:var(--bds-muted);margin-top:3px}
.bdspro .bds-step{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:29px;height:29px;border-radius:50%;border:1px solid var(--bds-line);font-size:10px;font-weight:650;color:var(--bds-muted)}
.bdspro .bds-section-gap{margin-top:24px}
.bdspro .bds-selectrow,.bdspro .bds-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:15px}
.bdspro .bds-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}
.bdspro .bds-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;font-size:12px;color:var(--bds-ink);font-weight:550;line-height:1.45}
.bdspro .bds-field>span:first-child{display:block;line-height:1.4}
.bdspro .bds-inputbox{position:relative;display:flex;align-items:center;min-width:0}
.bdspro input[type=text],.bdspro select{display:block;appearance:none;-webkit-appearance:none;background:#fff;color:var(--bds-ink);border:1px solid #ccd2c8;border-radius:9px;box-shadow:0 1px 2px rgba(28,36,30,.025);min-width:0;width:100%;max-width:100%;height:46px;padding:10px 12px;font-size:16px;font-weight:500;margin:0;outline:none}
.bdspro .bds-inputbox input{padding-right:35px;font-variant-numeric:tabular-nums}
.bdspro select{font-size:12px;font-weight:500;padding-right:29px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23646b65' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px}
.bdspro input:focus,.bdspro select:focus{border-color:#738777;box-shadow:0 0 0 3px #e8eee5}
.bdspro input[aria-invalid=true]{border-color:#aa4e38;box-shadow:0 0 0 2px #f9e9e3}
.bdspro input::placeholder{color:#70796a;font-weight:400;font-size:12px;opacity:1}
.bdspro .bds-unitlabel{position:absolute;right:11px;pointer-events:none;color:var(--bds-muted);font-size:11px;font-weight:500}
.bdspro .bds-micro{font-size:11px;color:var(--bds-muted);line-height:1.65;margin:8px 0 12px}
.bdspro .bds-measurelegend{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:12px}
.bdspro .bds-measurelegend span{font-size:10px;color:var(--bds-muted)}
.bdspro .bds-details{border:1px solid var(--bds-line);border-radius:10px;background:#fafbf8;margin:12px 0 16px;padding:0 12px}
.bdspro summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;font-size:12px;font-weight:600;line-height:1.45;min-height:45px;padding:11px 0;touch-action:manipulation}
.bdspro summary::-webkit-details-marker{display:none}
.bdspro summary::after{content:'+';font-size:18px;line-height:1;color:var(--bds-muted);font-weight:400;flex-shrink:0}
.bdspro details[open]>summary::after{content:'−'}
.bdspro details[open]>summary{margin-bottom:6px}
.bdspro details .bds-field{margin-bottom:10px}
.bdspro details .bds-two{margin-bottom:0}
.bdspro details .bds-two .bds-field{margin-bottom:13px}
.bdspro .bds-note{padding:12px;border-radius:9px;border:1px solid #e6d5b5;background:var(--bds-warm);color:var(--bds-brown);font-size:12px;margin-bottom:15px;line-height:1.6}
.bdspro .bds-layoutcontrols{display:grid;grid-template-columns:1fr 1.15fr;gap:15px;align-items:start;margin-bottom:8px}
.bdspro .bds-label{display:block;font-size:12px;font-weight:550;margin-bottom:6px}
.bdspro .bds-stepper{display:flex;align-items:center;justify-content:space-between;height:46px;border:1px solid #ccd2c8;border-radius:9px;overflow:hidden;background:#fff}
.bdspro .bds-stepper button{border-radius:0;padding:7px 10px;min-height:44px}
.bdspro .bds-stepper button:hover{background:var(--bds-sage)}
.bdspro .bds-stepper output{font-size:18px;font-weight:600}
.bdspro .bds-error{background:#faf0eb;border:1px solid #dfb9a9;border-radius:10px;padding:12px;color:#823f2b;font-size:12px;margin:12px 0;line-height:1.55}
.bdspro .bds-primary{display:flex;width:100%;min-height:50px;background:var(--bds-ink);color:#fff;border-radius:11px;font-size:14px;margin-top:20px;justify-content:space-between;padding:13px 16px;box-shadow:0 4px 8px rgba(40,51,43,.08)}
.bdspro .bds-primary:hover{background:#415246}
.bdspro .bds-underactions{display:flex;align-items:center;justify-content:space-between;gap:3px;flex-wrap:wrap;margin-top:7px}
.bdspro .bds-textbutton{min-height:36px;font-size:11px;font-weight:550;padding:6px 4px;color:var(--bds-muted);text-decoration:underline;text-underline-offset:3px;border-radius:4px}
.bdspro .bds-textbutton:hover{color:var(--bds-ink);background:#f3f5ef}
.bdspro .bds-restore{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--bds-soft);padding:5px 10px;border-radius:8px;font-size:11px}
.bdspro .bds-save-message:empty{margin:0;display:none}
.bdspro .bds-results{background:var(--bds-soft);padding:24px 20px;min-width:0;outline:none;border-top:1px solid var(--bds-line)}
.bdspro .bds-resulttop{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:21px}
.bdspro .bds-badge{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;max-width:100%;padding:5px 8px;border-radius:6px;border:1px solid #dce1d6;background:#f9faf6;color:#626b5f;font-size:10px;font-weight:550;line-height:1.4;white-space:nowrap}
.bdspro .bds-badge.bds-warn{border-color:#e5d0aa;background:#fbf0df;color:#795a21}
.bdspro .bds-badge.bds-ok{border-color:#c8d9c8;background:#edf5e9;color:#415e40}
.bdspro .bds-emptytitle{font-size:30px;font-weight:550;line-height:1.22;letter-spacing:-1px;margin-bottom:14px}
.bdspro .bds-resultintro{font-size:12px;color:var(--bds-muted);margin-bottom:15px;line-height:1.65}
.bdspro .bds-emptychecks{display:grid;gap:8px;font-size:12px;margin:17px 0}
.bdspro .bds-emptychecks>div{display:flex;gap:9px;align-items:center}
.bdspro .bds-emptychecks svg{width:16px;height:16px;color:var(--bds-green)}
.bdspro .bds-visual{border:1px solid #dce2d6;border-radius:12px;background:#edf1e8;background-image:linear-gradient(#dfe6d830 1px,transparent 1px),linear-gradient(90deg,#dfe6d830 1px,transparent 1px);background-size:18px 18px;padding:12px 4px 5px;margin:17px 0;overflow:hidden}
.bdspro .bds-drawing{width:100%;max-width:510px;height:auto;margin:auto}
.bdspro .bds-dimline{fill:none;stroke:#a9b5a2;stroke-width:1}
.bdspro .bds-dimback{fill:#edf1e8}
.bdspro .bds-dimtext{fill:#576350;font-size:11px;font-family:inherit;font-weight:500}
.bdspro .bds-frame{fill:#b4c0ab;stroke:#98a78f;stroke-width:1}
.bdspro .bds-panel{stroke:#afbfa5;stroke-width:1;fill:#e1e9da}
.bdspro .bds-panel-right{fill:#f0f3e9}
.bdspro .bds-handle{fill:none;stroke:#829177;stroke-width:3;stroke-linecap:round}
.bdspro .bds-panelnum{fill:#6c7a61;font-size:10px;font-weight:500}
.bdspro .bds-fineprint{font-size:11px;color:var(--bds-muted);line-height:1.65;margin:10px 0}
.bdspro .bds-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:17px}
.bdspro .bds-dimensions>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.bdspro .bds-dimensions>div:first-child{border-right:1px solid #d7dfd1}
.bdspro .bds-dimensions span{font-size:11px;color:var(--bds-muted);margin-bottom:3px}
.bdspro .bds-dimensions strong{font-size:clamp(20px,2.5cqw,28px);font-weight:600;line-height:1.25;letter-spacing:-.7px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.bdspro .bds-dimensions small{font-size:11px;color:var(--bds-muted)}
.bdspro .bds-spreads{display:flex;gap:14px;flex-wrap:wrap;border-top:1px solid #d7dfd1;padding-top:10px;margin-bottom:14px;font-size:11px;color:var(--bds-muted)}
.bdspro .bds-spreads b{color:var(--bds-ink);margin-left:5px;font-weight:550}
.bdspro .bds-callout{border:1px solid #d8e0d1;border-radius:10px;background:#fafcf6;padding:12px 13px;margin:13px 0}
.bdspro .bds-callout>strong{font-size:12px;font-weight:650;display:block;margin-bottom:4px}
.bdspro .bds-callout p{font-size:11px;line-height:1.65;color:var(--bds-muted)}
.bdspro .bds-callout.bds-warning{background:#faf2e6;border-color:#e8d7b9}
.bdspro .bds-callout.bds-warning strong{color:#755522}
.bdspro .bds-resultheading{font-size:13px;font-weight:650;margin-top:20px;margin-bottom:10px}
.bdspro .bds-nominal{display:flex;align-items:center;gap:16px;margin:8px 0 10px}
.bdspro .bds-nominal>strong{font-size:34px;font-weight:550;letter-spacing:-1px;line-height:1.2}
.bdspro .bds-nominal>strong>span{font-size:18px;letter-spacing:0;color:var(--bds-muted)}
.bdspro .bds-nominal>div{font-size:12px}
.bdspro .bds-nominal>div>span{display:block;font-size:10px;color:var(--bds-muted);margin-top:3px}
.bdspro .bds-candidates,.bdspro .bds-layoutcompare{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0 9px}
.bdspro .bds-candidate{border:1px solid #d8dfd0;border-radius:9px;padding:10px 9px;background:#fafbf7;min-width:0}
.bdspro .bds-candidate.bds-selected{border-color:#9aac91;background:#eaf0e3}
.bdspro .bds-candidate strong{display:block;font-size:16px;font-weight:600}
.bdspro .bds-candidate span{font-size:10px;color:var(--bds-muted)}
.bdspro .bds-candidate small{display:block;font-size:10px;color:var(--bds-muted);line-height:1.5;margin-top:7px}
.bdspro .bds-layoutcompare button{display:flex;flex-direction:column;gap:5px;padding:12px 6px;background:#fafbf7;border:1px solid #d8dfd0;border-radius:9px;min-width:0}
.bdspro .bds-layoutcompare button strong{font-size:12px;font-weight:600}
.bdspro .bds-layoutcompare button span{font-size:10px;font-weight:400;color:var(--bds-muted)}
.bdspro .bds-layoutcompare button[aria-pressed=true]{background:#eaf0e3;border-color:#9aac91}
.bdspro .bds-checkline{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #dfe4d8}
.bdspro .bds-checkline>div{min-width:0}
.bdspro .bds-checkline strong{display:block;font-size:12px;font-weight:550}
.bdspro .bds-checkline>div>span{display:block;font-size:10px;line-height:1.6;color:var(--bds-muted);margin-top:3px}
.bdspro .bds-next{margin-top:23px;border-top:1px solid #d7dfd1;padding-top:15px}
.bdspro .bds-next p{font-size:11px;color:var(--bds-muted);margin-top:7px}
.bdspro .bds-resultactions{display:flex;gap:7px;flex-wrap:wrap;margin-top:17px}
.bdspro .bds-secondary{background:#fff;border:1px solid #d2dacb;font-size:11px;padding:9px 11px;border-radius:8px;min-height:39px}
.bdspro .bds-secondary svg{width:15px;height:15px}
.bdspro .bds-secondary:hover{background:#eef3e8;border-color:#8f9f86}
.bdspro .bds-action-message{font-size:11px;color:var(--bds-muted);margin-top:10px}
.bdspro .bds-action-message:empty{margin:0;display:none}
.bdspro .bds-bottomline{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 20px;border-top:1px solid var(--bds-line);font-size:10px;color:var(--bds-muted)}
.bdspro .bds-bottomline>span:first-child{display:flex;align-items:center;gap:6px}
.bdspro .bds-bottomline svg{width:14px;height:14px;color:var(--bds-green)}
.bdspro .bds-method{border-top:1px solid var(--bds-line);padding:0 20px;background:#fcfcfa;border-radius:0 0 22px 22px}
.bdspro .bds-method>summary{font-size:11px;color:var(--bds-muted);padding:15px 0;min-height:48px}
.bdspro .bds-method p{font-size:11px;line-height:1.75;margin-bottom:13px;color:var(--bds-muted)}
.bdspro .bds-fallback{padding:24px;font-size:13px;color:var(--bds-muted)}
.bdspro .bds-fallback p{margin:10px 0;font-size:13px}
.bdspro .bds-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.bdspro .bds-copyhelper{position:fixed;left:-9999px;top:0}
@container bds (min-width:760px){
 .bdspro .bds-header{padding:30px 28px 26px}
 .bdspro .bds-header-tag{display:inline-block}
 .bdspro .bds-toolbar{padding:18px 28px}
 .bdspro .bds-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.04fr)}
 .bdspro .bds-form{padding:26px 26px 22px}
 .bdspro .bds-results{border-top:0;border-left:1px solid var(--bds-line);padding:26px}
 .bdspro .bds-bottomline{padding:14px 28px}
 .bdspro .bds-method{padding:0 28px}
}
@container bds (max-width:390px){
 .bdspro .bds-header{padding:21px 16px}
 .bdspro .bds-header-title{gap:11px}
 .bdspro .bds-brandmark{width:40px;height:48px}
 .bdspro h3{font-size:23px}
 .bdspro .bds-header .bds-kicker{font-size:8px;letter-spacing:1.3px}
 .bdspro .bds-toolbar{padding:14px 12px;gap:8px}
 .bdspro .bds-segment button{font-size:11px;padding:7px 8px}
 .bdspro .bds-units button{min-width:28px;padding:7px}
 .bdspro .bds-form,.bdspro .bds-results{padding-left:15px;padding-right:15px}
 .bdspro .bds-selectrow{grid-template-columns:minmax(0,1fr);gap:10px}
 .bdspro .bds-two,.bdspro .bds-three{gap:8px}
 .bdspro .bds-field{font-size:11px}
 .bdspro .bds-inputbox input{padding-left:8px;padding-right:27px}
 .bdspro .bds-unitlabel{right:8px}
 .bdspro .bds-three input{font-size:16px}
 .bdspro .bds-measurelegend span{font-size:9px}
 .bdspro .bds-badge{font-size:9px}
 .bdspro .bds-checkline{gap:8px}
 .bdspro .bds-resulttop{gap:8px}
}
@media(prefers-reduced-motion:reduce){.bdspro *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
