/* v44.8 UX pass: one header look, plain-word table heads, fallback tags, tap targets. Loads last on every page. */
/* inner-page header: the drawing-sheet look (flat paper, hairline rule), no warm glow, same in light and dark */
.band{background:var(--paper)!important;border-bottom:1px solid var(--line-2,var(--line))}
.band::before,.band::after{background:none!important;opacity:0!important}
/* standards tables: the plain words under each symbol */
.gd-t thead th small{display:block;font-weight:400;font-size:11.5px;letter-spacing:0;text-transform:none;color:var(--muted);margin-top:2px;white-space:nowrap}
/* fallback countries: EN tag on the value, one note above the table */
.gd-entag,.gd-t td small.gd-entag{display:inline-block!important;width:auto!important;margin-top:0!important;font:500 10px/1 var(--mono);letter-spacing:.04em;padding:3px 5px;border:1px solid var(--line-2,var(--line));border-radius:3px;color:var(--muted);vertical-align:2px;margin-left:4px}
.gd-fbnote{font-size:14px;color:var(--ink-2);margin:0 0 12px;max-width:72ch}.gd-fbnote .gd-entag{margin:0 4px 0 0}
/* quick answers: an even grid (3 + 3) instead of 5 + 1 */
@media (min-width:900px){.v27-ql{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* tap targets of at least 24 px on touch screens: logo, breadcrumbs, link lists, footer, table links */
@media (max-width:760px){
  a.logo{min-height:44px;min-width:44px}
  .crumbs a{display:inline-block;padding:4px 0}
  .lx-reg a,.gd-rel a{min-height:44px}
  .foot a{display:inline-block;padding:4px 0}
  .gd-t th[scope="row"] a{display:inline-block;padding:4px 0}
}
/* guided plan tool on phones: the sticky step bar is one row (back on the left, Next on the right) with the hint under it,
   so it covers about half as much of the step as before */
@media (max-width:640px){
  .wz-card>.wz-nav{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:center}
  .wz-card>.wz-nav>.wz-next{display:contents!important}
  .wz-card>.wz-nav .wz-go{grid-column:2;grid-row:1;justify-self:end;width:auto!important;min-height:44px;padding-left:18px;padding-right:18px}
  .wz-card>.wz-nav .wz-why{grid-column:1/-1;grid-row:2;margin:0;font-size:12.5px;line-height:1.35}
}

/* ---------- v44.8 follow-up: more room for the drawing in the plan tool ---------- */
/* the page head is one short line in both modes (title left, "About this tool" right); Free gets the same head as Guided */
main:has(#wz.wz-free) .ins-head{padding-top:10px;padding-bottom:6px}
main:has(#wz.wz-free) .ins-head .crumbs{display:none}
main:has(#wz.wz-free) .ins-title.v10{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 18px;margin:0}
main:has(#wz.wz-free) .ins-head .ins-title.v10 h1{font-size:19px!important;line-height:1.3!important;margin:0!important;letter-spacing:-.01em}
main:has(#wz.wz-free) .ins-title.v10 .ins-sum{display:none}
main:has(#wz.wz-free) .ins-about{margin:0}
main:has(#wz.wz-free) .ins-about>summary{font-size:13px}
main:has(#wz.wz-free) .ins-about[open]{flex-basis:100%}
html.wz-guided .ins-title.v10>div,main:has(#wz.wz-free) .ins-title.v10>div{flex:0 1 auto;width:auto}
html.wz-guided .ins-title.v10>.ins-about:not([open]),main:has(#wz.wz-free) .ins-title.v10>.ins-about:not([open]){flex:0 1 auto;width:auto;margin-right:auto}
@media (min-width:761px){
  /* Free: the Guided / Free switch sits in the head row instead of an empty bar of its own */
  .wzg:has(>#wz.wz-free){position:relative}
  #wz.wz-free{position:absolute;right:32px;top:-44px;z-index:5;border:0;background:none;box-shadow:none;margin:0;padding:0;width:auto}
  #wz.wz-free .wz-top{padding:0;border:0;background:none;min-height:0}
  #wz.wz-free .wz-mode button{min-height:30px;padding-top:4px;padding-bottom:4px}
  .wzg:has(>#wz.wz-free)>#pl{margin-top:0}
}
/* Free: a lower file bar, a one-row toolbar at 1280, a narrower side panel, and a canvas that fills the screen below the bars */
#pl.pl-advanced .dev-head{padding-top:8px;padding-bottom:8px;min-height:0}
#pl.pl-advanced .pl-tools button{padding:9px 8px}
@media (min-width:1101px){
  #pl.pl-advanced .pl-body{grid-template-columns:minmax(0,1fr) clamp(320px,26vw,380px);min-height:0}
  #pl.pl-advanced .pl-cvwrap{min-height:max(420px,calc(100vh - 300px))}
}
@media (max-width:1100px){#pl.pl-advanced .pl-cvwrap{min-height:max(380px,calc(100vh - 300px))}}
/* Guided: a narrower step card, and the zoom buttons float on the drawing instead of taking a row */
@media (min-width:761px){
  .wzg.pane:has(>#pl.pl-simple){grid-template-columns:minmax(0,1fr) clamp(340px,28vw,420px)}
  .wzg.pane>#pl.pl-simple .pl-stage{position:relative}
  .wzg.pane>#pl.pl-simple .pl-flow{position:absolute;top:8px;right:8px;z-index:3;border:1px solid var(--line-2);background:var(--surface);border-radius:2px;min-height:0}
}
/* Guided on a phone: a taller plan preview (200 px) so the room shapes read before you open it */
@media (max-width:760px){
  .wzg.pane:not(.big)>#pl.pl-simple{height:200px}
  .wzg.pane:not(.big)>#pl.pl-simple .pl-cvwrap>canvas{top:calc(100px - 160px)}
}
#pl.pl-advanced .pl-steps{flex-wrap:wrap;overflow:visible}
#pl.pl-advanced .pl-steps button{padding-left:6px;padding-right:6px}
@media (min-width:761px){
  .wzg.pane>#pl.pl-simple{height:calc(100vh - 210px);min-height:420px}
  .wzg.pane:has(>#pl.pl-simple) .wz-card{min-height:calc(100vh - 210px)}
}
@media (min-width:1101px){
  #pl.pl-advanced .pl-body{height:max(560px,calc(100vh - 175px))}
  #pl.pl-advanced .pl-side{overflow:auto;min-height:0}
  #pl.pl-advanced .pl-stage{min-height:0}
  #pl.pl-advanced .pl-cvwrap{min-height:0}
}
/* Free on a phone: less chrome above the drawing. The switch bar is slim, the file bar is two short rows, and the toolbar
   and layer bar scroll sideways in one row each instead of wrapping into four */
@media (max-width:760px){
  #wz.wz-free{margin-bottom:8px}
  #wz.wz-free .wz-top{padding:4px 6px;min-height:0;justify-content:flex-end}
  #wz.wz-free .wz-mode button{min-height:36px;padding-top:4px;padding-bottom:4px}
  #pl.pl-advanced .dev-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px}
  #pl.pl-advanced .dev-head #pl-title{flex:1 1 100%;font-size:14px}
  #pl.pl-advanced .dev-head #pl-msg:not(.bad):not(:has(details)),#pl.pl-advanced .dev-head #pl-ws{display:none}
  #pl.pl-advanced .dev-head #pl-proj{flex:1 1 100%;width:100%;min-height:40px}
  #pl.pl-advanced .dev-head .pl-open,#pl.pl-advanced .dev-head #pl-new{flex:1 1 0;justify-content:center;min-height:40px;margin:0}
  #pl.pl-advanced .pl-tools,#pl.pl-advanced .pl-vbar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  #pl.pl-advanced .pl-tools::-webkit-scrollbar,#pl.pl-advanced .pl-vbar::-webkit-scrollbar{display:none}
  #pl.pl-advanced .pl-tools>*,#pl.pl-advanced .pl-vbar>*{flex:none;min-height:40px}
  #pl.pl-advanced .pl-tools .sp{display:none}
  #pl.pl-advanced .pl-cvwrap{min-height:max(360px,62vh)}
}
/* Free: the results panel reads as a compact 2 × 3 grid of headline numbers, so the verdict and the room table are in view */
#pl .pl-side .lead-ns{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px!important}
#pl .pl-side .lead-n b{font-size:30px!important;letter-spacing:-.03em}
#pl .pl-side .lead-n b small{font-size:12.5px!important}
#pl .pl-side .lead-n span{font-size:12px!important;margin-top:4px}
#pl.pl-advanced .pl-steps{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none}
#pl.pl-advanced .pl-steps button{padding-left:5px;padding-right:5px;font-size:12px;white-space:nowrap}
#pl.pl-advanced .pl-steps{position:sticky;top:0;z-index:2;background:var(--surface)}
#pl .pl-side .pl-rt .lx-what{display:block;margin:2px 0 0;white-space:normal}
#pl .pl-side .pl-rt td,#pl .pl-side .pl-rt th{padding-left:4px;padding-right:4px}

/* ---------- v44.8 follow-up: page length ---------- */
/* home: the quick-tools list is one folded line under the toolkit (the same tools are in the menu and on /tools/) */
.h6-more{margin:14px 0 6px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.h6-more>summary{display:flex;align-items:baseline;gap:10px;padding:12px 0;cursor:pointer;list-style:none;font-weight:500}
.h6-more>summary::-webkit-details-marker{display:none}
.h6-more>summary::before{content:"+";font:500 13px var(--mono);color:var(--muted);width:14px}
.h6-more[open]>summary::before{content:"−"}
.h6-more>summary small{margin-left:auto;color:var(--muted);font-size:12.5px;font-weight:400}
.h6-more .v27-quick{margin-top:0}.h6-more .v27-quick>h2{display:none}
@media (max-width:760px){
  /* home: the room starters keep the calculated rooms; the tool shortcuts (also in the toolkit below) fold away, except "Your own drawing" */
  .uc-l>.uc-t.tool:not(:last-child){display:none}
  /* home toolkit: two columns of short entries */
  .h6-kit .kit-l{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .h6-kit .kit-l a{padding:12px!important}.h6-kit .kit-l a span{font-size:12.5px;line-height:1.4}
  /* /tools/: compact cards, the description cut to three lines (each tool page has the full text) */
  .tools-feat .card,.tools-deliv .card,.tools-calc .card{padding:14px 16px!important}
  .tools-feat .card svg.tg{display:none}
  .tools-feat .card p.small,.tools-deliv .card p.small,.tools-calc .card p.small,.tools-feat .card p:not(.eyebrow){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:0}
  .tools-feat .card h3,.tools-deliv .card h3,.tools-calc .card h3{margin:2px 0 4px;font-size:16px}
  /* four rooms: the plans at a size that reads, not the full width of the phone */
  .lx-room .lx-fig{max-width:300px;margin-left:auto;margin-right:auto}
}
@media (max-width:760px){
  .h6-how li img{max-height:170px;width:100%;object-fit:cover;object-position:top left}
  .tools-deliv,.tools-calc{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .tools-deliv .card,.tools-calc .card{padding:12px!important}
  .tools-deliv .card h3,.tools-calc .card h3{font-size:14.5px;line-height:1.3}
  .tools-deliv .card .eyebrow,.tools-calc .card .eyebrow{font-size:10.5px}
  .tools-deliv .card p.small,.tools-calc .card p.small{-webkit-line-clamp:2;font-size:12.5px}
}
@media (max-width:760px){
  .wzg:has(>#wz.wz-free){position:relative}
  #wz.wz-free{position:absolute;top:8px;right:8px;z-index:5;margin:0;border:0;background:none;box-shadow:none;padding:0;width:auto}
  #wz.wz-free .wz-top{padding:0;border:0;background:none}
  .wzg:has(>#wz.wz-free)>#pl.pl-advanced .dev-head #pl-title{padding-right:132px;min-height:36px;display:flex;align-items:center}
  #pl.pl-advanced .dev-head>#pl-proj{flex:1 1 100%!important;width:100%!important;max-width:none!important}
  #pl.pl-advanced .dev-head>.pl-open,#pl.pl-advanced .dev-head>#pl-new{flex:1 1 40%!important;width:auto!important;max-width:none!important}
}
/* v45: Free mode side tabs never squash (they were 16px tall at 1280 and clipped); they wrap to a second row when the side is narrow */
#pl.pl-advanced .pl-steps{flex:none!important;flex-wrap:wrap!important;overflow:visible!important;row-gap:0}
#pl.pl-advanced .pl-steps button{flex:0 1 auto;min-height:32px;padding-top:7px!important;padding-bottom:7px!important}
/* v45: the results table fits the side panel (the verdict pills ran 13px past its edge at 1280) */
#pl .pl-side .pl-rt{width:100%}
#pl .pl-side .pl-rt th,#pl .pl-side .pl-rt td{padding-left:4px;padding-right:4px}
#pl .pl-side .pl-rt .bdg{padding-left:6px;padding-right:6px;white-space:nowrap}
#pl .pl-side .pl-rt td:first-child,#pl .pl-side .pl-rt th:first-child{white-space:normal}
/* v45: toolbar labels 12px (were 11px, the smallest text in the app) */
#pl .pl-tools button,#pl .pl-vbar button{font-size:12px}
#pl.pl-advanced .pl-tools button{padding:9px 7px}

/* v45: the sketch review table stacks into one card per room whenever its panel is narrow (the Guided card on desktop is
   about 340px, where the 760px table had to be scrolled sideways to reach the sizes and the outline choice) */
.k4-sk{container-type:inline-size}
@container (max-width:640px){.k4-tw{overflow:visible;border:0}.k4-tab{min-width:0;width:100%}.k4-tab thead{display:none}.k4-tab,.k4-tab tbody,.k4-tab tr,.k4-tab td{display:block}.k4-tab tr{border:1px solid var(--line);margin:0 0 10px;padding:6px 10px}.k4-tab td{display:grid;grid-template-columns:7.5em 1fr;align-items:center;gap:8px;padding:4px 0;border:0}.k4-tab td::before{content:attr(data-h);font:600 10.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.k4-tab td.k4-dim{grid-template-columns:7.5em 1fr auto 1fr}.k4-tab td:nth-child(2) input{min-width:0}.k4-tab td input[type=checkbox]{justify-self:start;width:20px;height:20px;min-height:0}.k4-tab td.k4-op{max-width:none}}
.k4-shp{display:flex;gap:6px;align-items:flex-start;margin-top:4px;font-size:12px;line-height:1.35;font-weight:400}
.k4-shp input{flex:none;margin-top:2px}
