:root{color-scheme:light;--ink:#242424;--deep:#202124;--red:#d30000;--muted:#666d76;--line:#e5e7eb;--bg:#f6f7f8;--white:#fff;--soft:#fbfbfb;--radius:16px;--shadow:0 9px 32px rgba(30,30,30,.035)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:86px}
body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.58 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}a:hover{color:var(--red)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}input,select{color:var(--ink)}[hidden]{display:none!important}
:focus-visible{outline:3px solid #e03e3e;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.22;letter-spacing:-.03em}h1{font-size:clamp(29px,3.15vw,45px);font-weight:820;max-width:870px;margin-bottom:12px}h2{font-size:clamp(20px,2vw,27px);font-weight:760}h3{font-size:20px}p{margin-bottom:14px}small{font-size:12px}
.topbar{position:sticky;top:0;z-index:50;background:var(--deep);color:white;border-bottom:1px solid #444}.header-inner{max-width:1560px;margin:auto;min-height:66px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-size:23px;font-weight:900;letter-spacing:.005em;color:white;line-height:1}.brand:hover{color:white}.brand-period{color:var(--red);font-size:29px}.header-right{display:flex;align-items:center;gap:20px}.header-caption{font-size:10px;letter-spacing:.17em;color:#d2d3d4;font-weight:750}.project-toggle{border:1px solid #565656;color:white;background:#333;min-height:39px;padding:8px 14px;border-radius:10px;font-size:13px;font-weight:720}.project-toggle:hover{background:var(--red);border-color:var(--red)}.count{display:inline-flex;justify-content:center;align-items:center;width:21px;height:21px;border-radius:50%;background:white;color:#171717;font-size:11px;margin-left:7px}.menu-toggle{display:none;flex-direction:column;gap:4px;border:0;background:transparent;padding:9px}.menu-toggle span{background:#fff;height:2px;width:22px}.mobile-nav{display:none}
.app-layout{max-width:1560px;margin:auto;display:grid;grid-template-columns:246px minmax(0,1fr);align-items:start;min-height:calc(100vh - 66px)}.sidebar{background:#fff;position:sticky;top:66px;align-self:start;min-height:calc(100vh - 66px);border-right:1px solid var(--line);padding:29px 18px;display:flex;flex-direction:column;gap:20px}.side-heading{display:block;font-size:10px;color:#8b9096;font-weight:850;letter-spacing:.15em;padding:0 13px;margin-bottom:9px}.tool-nav{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:11px;min-height:42px;border-radius:10px;padding:9px 11px;font-size:13.5px;font-weight:680;transition:.12s background}.nav-item:hover{background:#f6f6f6;color:var(--red)}.nav-item.active{background:#252525;color:white}.nav-item.active:hover{color:white}.nav-item.active .nav-symbol{color:#fff}.nav-symbol{font-size:20px;line-height:1;width:22px;text-align:center;color:#414141}.side-section{border-top:1px solid var(--line);padding-top:18px}.side-section a{display:block;font-size:13px;padding:7px 13px;font-weight:650}.status-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:100%;background:#248e54;box-shadow:0 0 0 3px #e2f3e9}
.main-content{width:100%;min-width:0;padding:29px clamp(21px,3.25vw,54px) 64px}.breadcrumbs{color:#636970;font-size:12px;margin:0 0 28px}.breadcrumbs a:hover{color:var(--red)}.breadcrumbs span{margin:0 8px}.eyebrow{display:inline-block;color:var(--red);font-size:10px;letter-spacing:.155em;font-weight:850;margin-bottom:10px}.page-lead{margin-bottom:27px}.lede{font-size:16px;line-height:1.7;max-width:770px;color:#585e63;margin:0}
.calc-workspace{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(310px,.94fr);background:#fff;border:1px solid #e3e4e6;border-radius:18px;overflow:hidden;box-shadow:var(--shadow);min-height:480px}.form-panel,.result-panel{padding:clamp(20px,2.7vw,34px)}.form-panel{border-right:1px solid var(--line)}.panel-title{border-bottom:1px solid #ececec;padding-bottom:20px;margin-bottom:24px}.panel-title>div,.result-header{display:flex;align-items:center;gap:11px}.step-number{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;background:#fce8e8;color:#a00000;font-size:12px;font-weight:800;flex:none}.panel-title h2,.result-header h2{font-size:19px;margin:0;letter-spacing:-.018em}.panel-title p{margin:13px 0 0;color:var(--muted);font-size:13px;line-height:1.65}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 14px;align-content:start}.form-grid>div[data-show-if]{display:contents}.field{display:flex;flex-direction:column;min-width:0;gap:7px}.field-label{font-weight:720;color:#333;font-size:12px}.input-shell{display:flex;align-items:center;background:#fff;border:1px solid #d8dadd;border-radius:10px;min-height:45px;overflow:hidden;transition:border-color .15s,box-shadow .15s}.input-shell:focus-within{border-color:#bc2525;box-shadow:0 0 0 3px rgba(211,0,0,.085)}.input-shell input,.input-shell select{appearance:textfield;width:100%;min-width:0;height:44px;border:0;background:transparent;padding:9px 12px;outline:0;font-weight:730;letter-spacing:0}.input-shell input::-webkit-outer-spin-button,.input-shell input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.input-shell .field-unit{color:#6e737a;font-size:11px;padding-right:12px;white-space:nowrap;font-weight:700}.select-shell{position:relative}.select-shell:after{content:"";position:absolute;right:14px;top:16px;border:solid #595d61;border-width:0 2px 2px 0;display:block;width:7px;height:7px;transform:rotate(45deg);pointer-events:none}.select-shell select{appearance:none;padding-right:29px;font-size:12px;cursor:pointer}.input-help{color:#62696f;line-height:1.4}.calculate-button{width:100%;margin-top:22px;justify-content:space-between}.btn{display:inline-flex;justify-content:center;align-items:center;gap:11px;text-decoration:none;border:1px solid transparent;border-radius:10px;padding:12px 17px;min-height:45px;line-height:1.25;font-weight:760;font-size:13px;transition:background .15s,border-color .15s,color .15s}.btn-red{background:var(--red);color:white;border-color:var(--red)}.btn-red:hover{background:#252525;border-color:#252525;color:white}.btn-outline{border-color:#d4d6d9;background:white;color:#252525}.btn-outline:hover{background:#252525;border-color:#252525;color:white}.input-error{margin:14px 0 0;padding:11px 13px;border-radius:8px;background:#fff2f2;color:#a20000;font-size:12px}
.result-panel{display:flex;flex-direction:column;background:#fdfdfd}.result-header{margin-bottom:27px}.result-kicker{font-size:11px;font-weight:850;color:#7c8287;letter-spacing:.14em}.big-number{font-size:clamp(44px,5vw,66px);font-weight:850;letter-spacing:-.055em;line-height:1.13;margin-top:13px;color:#232323;font-variant-numeric:tabular-nums}.result-unit{color:#757b82;font-size:14px;font-weight:630;margin:4px 0 26px}.result-lines{margin:5px 0 22px;border-top:1px solid #e8e8e8}.result-line{display:flex;align-items:start;justify-content:space-between;gap:14px;border-bottom:1px solid #eeeeee;padding:13px 0;font-size:12px;color:#747a80}.result-line strong{font-weight:790;color:#303030;white-space:nowrap;font-variant-numeric:tabular-nums}.result-note{border-left:3px solid var(--red);padding:10px 14px;background:#fff7f7;color:#6a6060;font-size:12px;line-height:1.55;margin:0 0 18px}.muted{color:#666b70;font-size:12px}.cost-hint{margin-top:12px}.method{font-size:12px;color:#50555a}.method summary{cursor:pointer;font-weight:760;list-style-position:inside;color:#404040}.method p{margin:10px 0}.result-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:22px}.result-actions>.btn{flex:1;white-space:nowrap}.result-placeholder{background:#fafafa;border:1px dashed #d6d6d6;border-radius:12px;padding:23px;margin-top:30px}.result-placeholder strong{font-size:17px}.result-placeholder p{font-size:13px;color:#787d82;margin:8px 0 0}.trust-strip{display:flex;align-items:center;gap:19px;flex-wrap:wrap;padding:15px 11px 22px;color:#666e73;font-size:11px;font-weight:700}.trust-strip>div{display:flex;gap:8px;align-items:center}.trust-strip>div+div:before{content:"•";color:#b1b4b8;margin-right:1px}
.explain-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:17px;margin-top:36px}.explain-primary,.source-panel{background:white;border:1px solid var(--line);border-radius:15px;padding:clamp(22px,2.6vw,33px)}.explain-primary h2{font-size:25px}.explain-primary p,.source-panel p{color:#60666c;font-size:14px;line-height:1.8}.source-panel{background:#242424;color:white;border-color:#242424}.source-panel h3{font-size:21px}.source-panel p{color:#d2d3d5}.source-panel .eyebrow{color:#ff7373}.text-link{display:inline-block;color:#b10000;font-weight:800;font-size:13px;margin-top:6px}.source-panel .text-link{color:#fff}.text-link:hover,.source-panel .text-link:hover{text-decoration:underline;color:var(--red)}
.faq-section,.more-tools{margin-top:45px}.section-top{margin-bottom:19px}.section-top h2{margin:0 0 9px}.section-top p{color:#797e82;margin:0}.faq-list{display:grid;gap:10px}.faq-list details{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.faq-list summary{padding:17px 20px;font-size:14px;font-weight:760;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"−";font-size:20px;line-height:1;color:var(--red)}.faq-list details:not([open]) summary:after{content:"+"}.faq-list details p{font-size:13px;color:#61676c;line-height:1.75;padding:0 20px 17px;margin:0}.tool-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tool-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;display:flex;align-items:flex-start;gap:12px;min-height:105px;transition:border-color .12s,transform .12s}.tool-card:hover{border-color:#ce6b6b;transform:translateY(-2px)}.tool-card-icon{width:37px;height:37px;background:#f6f6f6;border-radius:9px;font-size:22px;color:#303030;display:flex;justify-content:center;align-items:center;flex:none}.tool-card strong{display:block;font-size:13.5px;font-weight:790;line-height:1.2;margin-bottom:8px}.tool-card small{display:block;color:#62696f;font-size:11px;line-height:1.45}.tool-card .arr{color:#999;margin-left:auto;font-size:15px}
.footer{background:#202124;color:#e6e6e6;padding:26px clamp(24px,4vw,56px);display:flex;flex-wrap:wrap;align-items:start;justify-content:space-between;gap:14px 22px;font-size:13px}.footer a{color:inherit;font-weight:700}.footer a:hover{color:#ff6666}.footer nav{display:flex;gap:18px;flex-wrap:wrap}.footer .footer-sep{margin:0 7px;color:#aaa}.footer small{flex-basis:100%;color:#b2b6b9;line-height:1.6}
.document-main{max-width:1180px}.document-main h1{margin-bottom:28px}.document-body{background:white;border:1px solid var(--line);border-radius:16px;padding:clamp(24px,4vw,52px);font-size:15px;line-height:1.9;max-width:900px}.document-body p{color:#535b60}.document-body h2{margin-top:34px;margin-bottom:13px;font-size:23px}.document-body p:first-child{font-size:16px}.document-body a:not(.btn){text-decoration:underline;text-decoration-color:#d8d8d8;text-underline-offset:4px}
.overlay{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.35)}.project-drawer{position:fixed;z-index:75;top:0;right:0;height:100dvh;width:min(430px,100%);background:white;padding:24px;display:flex;flex-direction:column;box-shadow:-10px 0 45px rgba(0,0,0,.1);overflow:auto}.drawer-top{display:flex;justify-content:space-between;gap:10px}.drawer-top h2{margin:0 0 15px}.icon-button{border:1px solid #ddd;border-radius:10px;width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:white;font-size:23px}.icon-button:hover{background:#f7eeee}.project-items{overflow:auto;flex:1;margin-top:14px}.project-item{position:relative;padding:13px 9px 13px 0;border-bottom:1px solid var(--line);padding-right:70px}.project-item strong{font-size:13px;display:block}.project-item p{margin:5px 0 0;color:#4d545b;font-size:13px}.project-item .remove{position:absolute;right:0;top:16px;font-size:11px;color:#a30000;border:0;background:transparent;font-weight:760}.project-item .remove:hover{text-decoration:underline}.project-actions{display:flex;gap:9px;flex-wrap:wrap;position:sticky;bottom:0;background:white;padding-top:17px}.project-actions button{flex:1}.drawer-open{overflow:hidden}
@media(max-width:1120px){.app-layout{grid-template-columns:208px minmax(0,1fr)}.sidebar{padding-inline:12px}.main-content{padding-inline:22px}.calc-workspace{grid-template-columns:1fr 1fr}.form-panel,.result-panel{padding:22px}.form-grid{gap:14px 10px}.field-unit{font-size:10px!important}.result-actions{flex-direction:column}.result-actions>.btn{width:100%}}
@media(max-width:880px){.header-inner{padding:0 19px}.header-caption{display:none}.menu-toggle{display:flex}.app-layout{display:block}.sidebar{display:none}.main-content{padding:23px 20px 54px}.mobile-nav.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#383838;padding:12px 20px}.mobile-nav a{padding:11px 10px;background:#2d2d2d;border-radius:6px;font-size:13px}.mobile-nav a:hover{background:var(--red);color:white}.breadcrumbs{margin-bottom:20px}.calc-workspace{grid-template-columns:1fr 1fr}.explain-grid{grid-template-columns:1fr}.footer{padding:23px}}
@media(max-width:650px){.brand{font-size:21px}.project-toggle{padding:6px 10px;font-size:12px}.header-right{gap:8px}.main-content{padding:20px 14px 45px}.page-lead{margin-bottom:22px}.lede{font-size:14px}.calc-workspace{grid-template-columns:1fr;border-radius:14px}.form-panel{border-right:0;border-bottom:1px solid var(--line)}.form-panel,.result-panel{padding:22px 19px}.result-header{margin-bottom:14px}.result-lines{margin-bottom:18px}.result-panel{min-height:340px}.result-actions{flex-direction:row}.result-actions>.btn{width:auto}.trust-strip{gap:9px 12px;padding:14px 5px 8px}.trust-strip>div{font-size:10px}.trust-strip>div+div:before{display:none}.tool-card-grid{grid-template-columns:1fr}.tool-card{min-height:85px}.explain-grid{margin-top:30px}.faq-section,.more-tools{margin-top:32px}.mobile-nav.open{grid-template-columns:1fr}.document-body{padding:25px 19px}.footer nav{gap:13px}.footer{font-size:12px}}
@media(max-width:370px){.form-grid{grid-template-columns:1fr}.result-actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:0s!important;animation-duration:0s!important}}

.project-details{color:#666b70;margin:8px 0 0;padding-left:17px;font-size:11px}.project-details li{margin:3px 0}

.skip-link{position:fixed;top:-100px;left:15px;z-index:1000;background:#fff;color:#111;padding:10px 15px;border:2px solid #d30000;border-radius:8px}.skip-link:focus{top:12px}

/* DESIGNS24HR DASHBOARD LAYOUT — FIXED FULL-WIDTH HEADER / LEFT DOCKED SIDEBAR */
:root{--header-height:68px;--sidebar-width:258px}
html{scroll-padding-top:calc(var(--header-height) + 20px)}
body{padding-top:var(--header-height)}
.topbar{position:fixed;inset:0 0 auto;min-height:var(--header-height);z-index:55}
.header-inner{max-width:none;width:100%;min-height:var(--header-height);padding:0 clamp(18px,2.2vw,34px)}
.brand{font-size:25px;letter-spacing:-.035em}
.header-caption{letter-spacing:.12em;color:#bfc2c4}
.project-toggle{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;background:#343538;border-color:#52545a;min-height:42px;white-space:nowrap}
.project-toggle-icon{font-size:21px;font-weight:500;line-height:1}
.project-toggle .count{margin-left:0;width:23px;height:23px;color:#262626}
.app-layout{display:block;max-width:none;margin:0;min-height:calc(100dvh - var(--header-height) - 62px)}
.sidebar{position:fixed;top:var(--header-height);left:0;bottom:0;z-index:38;width:var(--sidebar-width);height:calc(100dvh - var(--header-height));min-height:0;margin:0;border-right:1px solid #e2e4e6;padding:21px 15px 24px;background:#fff;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:20px;scrollbar-width:thin}
.sidebar-status{display:flex;align-items:flex-start;gap:10px;color:#47544d;background:#f5f9f5;border:1px solid #dfece2;border-radius:11px;padding:12px 11px;font-size:11px;font-weight:720;line-height:1.45}
.sidebar-status .status-dot{margin-top:4px}
.sidebar-project{background:#262729;color:#fff;border-radius:12px;padding:17px 14px 15px;display:flex;flex-direction:column;gap:8px;border-top:3px solid var(--red)}
.sidebar-project-label{font-size:9px;color:#ff9b9b;font-weight:850;letter-spacing:.15em}
.sidebar-project h2{font-size:17px;letter-spacing:-.025em;margin:0;line-height:1.3}
.sidebar-project p{font-size:11px;line-height:1.55;color:#d2d4d7;margin:0}
.sidebar-project-button{border:0;border-radius:8px;background:var(--red);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:800;padding:10px 12px;margin-top:2px;width:100%}
.sidebar-project-button:hover{background:#fff;color:#252525}
.sidebar-project-count{background:#fff;color:#252525;width:20px;height:20px;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;font-size:10px}
.sidebar-project-button:hover .sidebar-project-count{background:#252525;color:#fff}
.side-nav-group{min-width:0}
.side-heading{padding:0 12px;margin-bottom:9px}
.nav-item{min-height:40px;padding:8px 10px;gap:10px;font-size:12.5px}
.nav-symbol{width:21px;display:flex;align-items:center;justify-content:center}
.nav-symbol svg{width:19px;height:19px}
.side-section{padding-top:15px}
.side-section a{font-size:12.5px}
.main-content{margin-left:var(--sidebar-width);width:calc(100% - var(--sidebar-width));max-width:none;min-height:calc(100dvh - var(--header-height) - 64px);padding:27px clamp(23px,2.75vw,50px) 57px}
.document-main{max-width:none}
.breadcrumbs{margin-bottom:20px}
.page-lead{max-width:none;margin-bottom:24px}
.page-lead h1{max-width:none;margin-bottom:11px;font-size:clamp(23px,2.55vw,42px);white-space:nowrap;letter-spacing:-.037em}
.page-lead .lede{max-width:none;color:#60646a;font-size:clamp(12px,1vw,15px);white-space:nowrap;line-height:1.65;letter-spacing:-.007em}
.calc-workspace{min-height:480px}
.result-actions>.btn{min-width:0}
.footer{margin-left:var(--sidebar-width);padding:0 clamp(23px,2.75vw,50px);background:#202124;color:#e7e7e7;display:block;min-height:62px}
.footer-inner{min-height:62px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;white-space:nowrap;font-size:11px}
.footer-credit{display:flex;align-items:center;gap:6px;color:#d0d1d4;min-width:0}
.footer-credit a{font-weight:800;color:#fff}
.footer nav{display:flex;gap:clamp(9px,1.2vw,21px);white-space:nowrap;font-size:11px}
.footer nav a{padding:10px 0}
.project-workflow{display:flex;gap:7px;margin:6px 0 8px}
.project-workflow span{background:#f5f5f5;border:1px solid #e9e9e9;border-radius:8px;padding:7px 8px;font-size:11px;font-weight:750;color:#474b50;flex:1;text-align:center;white-space:nowrap}
.project-drawer{width:min(460px,100%)}
.print-sheet{display:none!important}

@media(min-width:881px) and (max-width:1150px){
  :root{--sidebar-width:224px}
  .sidebar{padding-inline:11px;gap:17px}
  .sidebar-project{padding:15px 12px}
  .main-content{padding-inline:24px}
  .page-lead h1{font-size:clamp(22px,2.45vw,30px)}
  .page-lead .lede{font-size:12px}
  .footer{padding-inline:20px}
  .footer-inner,.footer nav{font-size:10px}
  .footer nav{gap:10px}
}
@media(max-width:880px){
  :root{--header-height:64px;--sidebar-width:0px}
  .topbar{min-height:64px}
  .header-inner{min-height:64px;padding-inline:18px}
  .sidebar{display:none!important}
  .app-layout{min-height:calc(100dvh - var(--header-height) - 60px)}
  .main-content{margin:0;width:100%;min-height:calc(100dvh - var(--header-height) - 60px);padding:23px 20px 45px}
  .page-lead h1{font-size:clamp(27px,4.5vw,39px);white-space:normal}
  .page-lead .lede{font-size:14px;white-space:normal}
  .footer{margin-left:0;min-height:60px;padding:0 16px;overflow-x:auto;scrollbar-width:thin}
  .footer-inner{min-height:60px;width:max-content;min-width:100%;gap:20px;font-size:10px}
  .footer nav{gap:13px;font-size:10px}
  .mobile-nav.open{max-height:calc(100dvh - 65px);overflow:auto}
}
@media(max-width:650px){
  .project-toggle-icon{font-size:18px}
  .project-toggle{padding:7px 10px;gap:6px;min-height:37px}
  .project-toggle-text{font-size:11px}
  .main-content{padding:20px 15px 42px}
  .breadcrumbs{margin-bottom:15px}
  .page-lead{margin-bottom:19px}
  .page-lead h1{font-size:clamp(27px,7vw,37px);line-height:1.16}
  .page-lead .lede{font-size:13px}
  .footer-inner{gap:17px}
  .footer-credit{gap:4px}
  .footer nav{gap:10px}
}

/* Dedicated print document: no clipped dashboard panels or fixed-height containers. */
@page{size:letter;margin:0.60in 0.65in}
@media print{
  html,body{padding:0!important;margin:0!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;background:#fff!important;color:#111!important}
  body > .skip-link,body > .topbar,body > .app-layout,body > .footer,body > .overlay,body > .project-drawer,body .project-drawer:not([hidden]){display:none!important}
  body > #print-sheet,#print-sheet{display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;min-height:0!important;max-height:none!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;float:none!important;transform:none!important}
  .print-header{border-bottom:2px solid #262626;padding:0 0 13px;margin:0 0 20px;display:flex;justify-content:space-between;align-items:flex-end;gap:14px;break-inside:avoid}
  .print-logo{font-size:20px;font-weight:900;letter-spacing:-.02em}
  .print-header small{font-size:10px;color:#5c5c5c}
  .print-sheet h1{font-size:25px;letter-spacing:-.03em;line-height:1.2;margin:0 0 9px}
  .print-sheet h2{font-size:14px;margin:20px 0 8px;line-height:1.2}
  .print-sheet p{font-size:11px;line-height:1.45;margin:6px 0 12px}
  .print-meta{font-size:10px;color:#666;margin-bottom:15px}
  .print-primary{border:1px solid #bbb;border-radius:7px;padding:15px 18px;margin:17px 0;break-inside:avoid}
  .print-primary-label{display:block;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#666;font-weight:750}
  .print-primary-value{font-size:27px;line-height:1.15;font-weight:850;margin-top:5px}
  .print-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #ddd;padding:7px 0;font-size:11px;line-height:1.4;break-inside:avoid}
  .print-row span{color:#4c4c4c}
  .print-row strong{text-align:right;min-width:90px}
  .print-disclaimer{border-top:1px solid #bbb;padding-top:12px;margin-top:24px;color:#555;font-size:9px;line-height:1.55;break-inside:avoid}
  .print-entry{padding:13px 0 17px;border-bottom:1px solid #bbb;break-inside:avoid;page-break-inside:avoid}
  .print-entry h2{font-size:14px;margin:0 0 5px}
  .print-entry .print-primary-value{font-size:19px;margin:3px 0 8px}
  .print-entry .print-row{padding:5px 0;font-size:10px}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Quiet, explicit sharing of calculator LINKS (not saved measurements or lists). */
.saved-feedback{color:#226b43;font-size:12px;line-height:1.55;margin:9px 0 0;font-weight:680}
.saved-feedback:empty{display:none}
.share-tool{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e7e8eb;margin-top:16px;padding-top:15px}
.share-tool>div{display:flex;flex-direction:column;min-width:0;gap:3px}
.share-tool strong{font-size:12px;line-height:1.25;color:#303438}
.share-tool span{font-size:11px;line-height:1.5;color:#6b7176}
.share-tool-btn{flex:none;border:0;border-radius:9px;background:#27282a;color:white;padding:10px 14px;min-height:39px;font-size:12px;font-weight:800;white-space:nowrap}
.share-tool-btn:hover{background:var(--red)}
.share-status{font-size:11px;line-height:1.5;color:#41515d;overflow-wrap:anywhere;margin:8px 0 0}
.share-status:empty{display:none}
.project-item-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.project-item-heading .remove{position:static;align-self:center}
.project-item{padding:14px 0;overflow-wrap:anywhere}
.project-item-result{font-weight:800;color:#303338!important}
.project-item-summary{font-size:11px!important;color:#71777d!important;margin-top:3px!important}
.project-name-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:750;color:#40454c;margin-top:14px}
.project-name-field input{width:100%;max-width:100%;border:1px solid #d9dcdf;border-radius:9px;background:white;padding:11px 12px;font-size:13px;font-weight:500}
@media(max-width:1120px){.share-tool{flex-wrap:wrap}.share-tool-btn{width:100%;justify-content:center}}
@media(min-width:1121px){.share-tool-btn{min-width:120px}}
@media(max-width:650px){.share-tool{flex-wrap:nowrap}.share-tool-btn{width:auto;min-width:105px;padding-inline:10px}}
@media(max-width:370px){.share-tool{flex-wrap:wrap}.share-tool-btn{width:100%}}
@media print{.share-tool,.share-status,.saved-feedback{display:none!important}.print-document{font-size:11px;line-height:1.5}.print-document h2{font-size:15px;margin:15px 0 7px}.print-document p{font-size:11px}.print-document a{text-decoration:underline}}

/* Keep the complete footer accessible in one row, including on small screens. */
@media(max-width:650px){
  .footer{overflow-x:visible;padding-inline:10px}
  .footer-inner{width:100%;min-width:0;gap:9px;white-space:nowrap}
  .footer-credit,.footer nav{font-size:9px;gap:5px}
  .footer .footer-sep{margin:0 2px}
  .footer nav a{white-space:nowrap}
}
@media(max-width:360px){
  .footer{padding-inline:7px}
  .footer-inner{gap:6px}
  .footer-credit,.footer nav{font-size:8.5px;gap:3px}
}

/* Publication refinements: clean sidebar resource card and cost-aware project exports. */
.sidebar-promo{margin-top:auto;background:#202124;border-radius:11px;padding:15px 13px 16px;color:#fff;display:flex;flex-direction:column;gap:5px;line-height:1.45;flex:none}
.sidebar-promo strong{font-size:11px;font-weight:820;line-height:1.4}
.sidebar-promo>span{font-size:10.5px;color:#ebebec;line-height:1.55}
.sidebar-promo a{align-self:flex-start;font-size:11px;font-weight:800;margin-top:11px;color:#fff}
.sidebar-promo a:hover{color:#ff8b8b}
.sidebar-promo a span{white-space:nowrap}
.project-export-control{display:flex;flex-direction:column;gap:7px;margin-top:13px;flex:none}
.project-export-control label{font-size:12px;font-weight:760;color:#31343a}
.project-export-control select{width:100%;appearance:auto;border-radius:9px;border:1px solid #d9dcdf;background:white;min-height:43px;padding:9px 12px;color:#25292d;font-size:12px}
.project-total{padding:15px 16px;margin-top:13px;border:1px solid #e2e4e7;border-radius:12px;background:#fafafa;flex:none}
.project-total>span{display:block;font-size:11px;color:#565b62;font-weight:730}
.project-total>strong{display:block;font-size:26px;letter-spacing:-.035em;color:#272b2f;margin:4px 0 3px;font-variant-numeric:tabular-nums;line-height:1.2}
.project-total>small{display:block;font-size:11px;color:#606970;line-height:1.5}
.project-total p{font-size:10.5px;line-height:1.5;color:#777d83;margin:9px 0 0}
.project-export-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px;flex:none}
.project-export-actions .btn{min-width:0;font-size:12px;padding-inline:8px}
.btn-dark{background:#25282b;border-color:#25282b;color:#fff}
.btn-dark:hover{background:var(--red);border-color:var(--red);color:#fff}
.btn:disabled{opacity:.48;cursor:not-allowed}
.project-actions{position:static;bottom:auto;padding-top:10px;flex:none}
.project-actions .btn{font-size:12px}
.project-drawer{gap:0;padding-bottom:max(18px,env(safe-area-inset-bottom))}
.project-items{min-height:62px;max-height:34vh;flex:1 1 auto;scrollbar-width:thin}
.project-drawer #project-feedback{margin:6px 0 0;min-height:0;font-size:11px;line-height:1.45;color:#565c63}
.project-drawer #project-feedback:empty{display:none}
.result-actions{gap:9px}
.result-actions>.btn{white-space:normal;min-width:120px;font-size:12px;flex:1 1 120px}
.document-body{width:100%;max-width:none;padding:clamp(24px,3vw,46px)}
@media(min-width:1180px){
  .document-body{column-count:2;column-gap:clamp(28px,4vw,72px);column-rule:1px solid #eceeef;column-fill:balance}
  .document-body h2{break-after:avoid-column;page-break-after:avoid}
  .document-body p,.document-body ul,.document-body ol{break-inside:avoid-column}
}
@media(max-width:650px){
  .project-drawer{padding:21px 16px}
  .project-items{max-height:27vh}
  .project-export-actions .btn{font-size:11px}
  .result-actions>.btn{min-width:0;flex:1 1 100%}
}
/* Print-only browser output; the downloadable PDFs use their own page layout engine. */
@media print{
  @page{margin:0.60in 0.65in 0.84in 0.65in}
  .print-site-footer{position:fixed;bottom:0;left:0;right:0;text-align:center;color:#999;font-size:8px;line-height:1.2;letter-spacing:.01em}
  .print-document{column-count:1!important;max-width:100%!important;width:100%!important;border:0!important;padding:0!important}
  .document-body{column-count:1!important}
}
/* Release V3 — editable project entries, reliable inclusion and edit state. */
.project-item-actions{display:flex;gap:8px;margin-top:11px;flex-wrap:wrap}
.project-item-actions button{min-height:34px;padding:6px 11px;border:1px solid #dadde1;border-radius:8px;font-size:11px;font-weight:760;background:white;color:#30343a;cursor:pointer}
.project-item-actions button:hover,.project-item-actions button:focus-visible{border-color:var(--red);color:var(--red)}
.project-item-actions .project-edit{background:#24272c;border-color:#24272c;color:#fff}
.project-item-actions .project-edit:hover,.project-item-actions .project-edit:focus-visible{background:var(--red);border-color:var(--red);color:#fff}
.project-item .project-item-price{color:#30343a;font-weight:740;margin-top:7px;font-size:12px}
.project-include{margin-top:11px;display:flex;align-items:center;gap:9px;border:1px solid #edf0f2;border-radius:9px;padding:9px 10px;background:#fafafa;cursor:pointer;color:#424950;font-size:11px;font-weight:720}
.project-include input{appearance:auto;accent-color:var(--red);width:16px;height:16px;flex:none;margin:0;cursor:pointer}
.editing-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;background:#fff7f7;border:1px solid #edcaca;border-left:4px solid var(--red);border-radius:10px;margin-bottom:18px}
.editing-banner strong{color:#24282c;display:block;font-size:14px}
.editing-banner p{color:#555f68;font-size:12px;line-height:1.55;margin:5px 0 0}
.editing-banner .btn{flex:none}
.project-total strong{font-variant-numeric:tabular-nums}
@media(max-width:650px){.editing-banner{flex-direction:column;align-items:stretch}.editing-banner .btn{width:100%}}
@media print{.editing-banner{display:none!important}}
.project-breakdown{margin-top:9px;border-top:1px solid #eceff1;padding-top:8px}
.project-breakdown>summary{cursor:pointer;font-size:11px;font-weight:730;color:#505960}
.project-breakdown[open]>summary{color:var(--red)}
.project-breakdown .project-details{margin:8px 0 0;padding-left:18px}
.project-breakdown li{margin:3px 0;font-size:11px;line-height:1.5}

/* V4: Printed values/labels always sit ABOVE the separator; never on it. */
@media print {
  .print-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, 43%);
    align-items: start;
    column-gap: 16px;
    padding: 9px 0 13px;
    line-height: 1.5;
    border-bottom: 1px solid #dee1e5;
    break-inside: avoid;
  }
  .print-row span,
  .print-row strong {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }
  .print-row strong {text-align: right;}
  .print-entry .print-row {padding-top: 8px; padding-bottom: 12px;}
}


/* V6 — project drawer: more saved projects visible on laptop, less instructional clutter.
   Existing PDF rendering and calculator math are unchanged. */
.project-drawer{width:min(580px,100vw);height:100dvh;max-height:100dvh;padding:18px 21px max(14px,env(safe-area-inset-bottom));gap:0;overflow:hidden;overscroll-behavior:contain}
.project-drawer .drawer-top{flex:none;align-items:flex-start;padding-bottom:11px;border-bottom:1px solid #eceeef}
.project-drawer .drawer-top .eyebrow{font-size:9px;margin-bottom:4px}
.project-drawer .drawer-top h2{font-size:23px;line-height:1.15;letter-spacing:-.025em;margin:0;display:flex;align-items:center;gap:9px}
.project-heading-count{display:inline-flex;align-items:center;justify-content:center;background:#f6e7e7;color:#a60000;min-width:23px;height:23px;padding:0 6px;border-radius:7px;font-size:12px;line-height:1}
.drawer-subtitle{color:#697078;font-size:11px;margin:5px 0 0;line-height:1.4}
.project-drawer .icon-button{width:34px;height:34px;flex:none}
.project-settings{display:grid;grid-template-columns:minmax(0,1fr) 127px;align-items:end;gap:11px;margin-top:11px;flex:none}
.project-settings .project-name-field,.project-settings .project-export-control{margin:0;min-width:0;gap:5px;font-size:11px}
.project-settings .project-name-field input,.project-settings .project-export-control select{min-height:39px;height:39px;padding:8px 10px;font-size:12px;border-radius:8px}
.project-drawer .project-total{padding:11px 12px 9px;margin-top:11px;border-radius:10px;background:#f8f9fa}
.project-total-main{display:flex;align-items:center;justify-content:space-between;gap:8px}
.project-total-main span{display:block;font-size:9px;letter-spacing:.075em;font-weight:820;color:#666d72}
.project-drawer .project-total strong{font-size:clamp(20px,2vw,26px);line-height:1.15;margin:3px 0 2px;font-weight:850}
.project-drawer .project-total>small{font-size:10px;line-height:1.35}
.project-drawer .project-price-warning{margin:5px 0 0;font-size:10px;line-height:1.4;color:#747a80}
.project-cost-disclaimer{margin-top:4px}
.project-cost-disclaimer>summary{cursor:pointer;color:#585f67;font-size:10px;font-weight:720}
.project-cost-disclaimer[open]>p{margin:4px 0 0;color:#626970;font-size:10px;line-height:1.45}
.project-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:14px 1px 5px;flex:none}
.project-list-heading h3{margin:0;font-size:13px;letter-spacing:0;font-weight:830}
.project-list-heading span{font-size:10px;color:#727980}
.project-drawer .project-items{flex:1 1 auto;min-height:92px;max-height:none;margin:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;padding:3px 1px 8px}
.project-drawer .project-item{border:1px solid #e4e7ea;border-radius:10px;background:#fff;padding:10px 11px;min-width:0;align-self:start;overflow-wrap:anywhere}
.project-drawer .project-item-heading{align-items:flex-start}
.project-drawer .project-item-heading strong{font-size:12px;line-height:1.35;min-width:0}
.project-drawer .project-item-result{font-size:12px;margin-top:4px;line-height:1.35}
.project-drawer .project-item-summary{font-size:10px!important;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-drawer .project-item-price{font-size:10.5px;margin:5px 0 0}
.project-drawer .project-item-actions{margin-top:8px;gap:6px}
.project-drawer .project-item-actions button{padding:5px 8px;min-height:29px;font-size:10px;border-radius:7px}
.project-drawer .project-include{margin-top:7px;padding:6px 8px;gap:7px;font-size:10px;line-height:1.2}
.project-drawer .project-include input{width:14px;height:14px}
.project-drawer .project-breakdown{margin-top:6px;padding-top:6px}
.project-drawer .project-breakdown summary{font-size:10px}
.project-drawer .project-export-actions{margin-top:10px;gap:8px}
.project-drawer .project-export-actions .btn{min-height:39px;padding:8px 12px;font-size:11.5px}
.project-drawer .project-actions{padding-top:6px;gap:8px}
.project-drawer .project-actions .btn{min-height:35px;padding:6px 10px;font-size:11px}
.project-drawer #project-feedback{margin:3px 0 0;font-size:10px;line-height:1.3}
@media(max-width:650px){
  .project-drawer{width:100vw;padding:15px 13px max(12px,env(safe-area-inset-bottom))}
  .project-drawer .project-items{grid-template-columns:1fr;max-height:none}
  .project-settings{grid-template-columns:minmax(0,1fr) 111px}
  .project-list-heading{margin-top:10px}
  .project-drawer .project-item-summary{-webkit-line-clamp:1}
}
@media(min-width:651px) and (max-width:950px){
  .project-drawer{width:min(480px,100vw)}
  .project-drawer .project-items{grid-template-columns:1fr}
}
@media(max-height:680px){
  .project-drawer{padding-top:12px;padding-bottom:10px}
  .project-drawer .drawer-top{padding-bottom:7px}
  .project-drawer .project-total{padding:8px 10px 7px;margin-top:8px}
  .project-list-heading{margin-top:8px}
  .project-settings{margin-top:8px}
  .project-drawer .project-export-actions{margin-top:6px}
  .project-drawer .project-item{padding:8px 10px}
}
@media print{.project-drawer{display:none!important}}

/* Laptop refinement: put available height into saved cards, not introductory copy. */
.project-drawer .drawer-top{padding-bottom:7px}
.project-drawer .drawer-top .eyebrow{display:none}
.project-drawer .drawer-top h2{font-size:21px}
.project-drawer .drawer-subtitle{margin-top:3px}
.project-drawer .project-settings{margin-top:7px}
.project-drawer .project-settings .project-name-field input,
.project-drawer .project-settings .project-export-control select{min-height:36px;height:36px}
.project-drawer .project-total{margin-top:7px;padding:8px 10px 7px}
.project-drawer .project-total>small{font-size:9.5px}
.project-drawer .project-price-warning{margin-top:3px;font-size:9.5px}
.project-drawer .project-cost-disclaimer{margin-top:2px}
.project-drawer .project-list-heading{margin-top:9px;margin-bottom:3px}
.project-drawer .project-actions{padding-top:4px}
.project-drawer .project-actions .btn{min-height:30px;padding-block:5px}
.project-drawer .project-export-actions{margin-top:6px}
.project-drawer .project-export-actions .btn{min-height:37px}
.project-drawer .project-item{padding:9px 10px}
.project-drawer .project-item-actions{margin-top:6px}
.project-drawer .project-include{margin-top:6px}
.project-drawer .project-breakdown{margin-top:4px;padding-top:4px}
