@media screen {
  .shed-workspace{padding:clamp(12px,2.2vw,32px);max-width:1500px;margin:auto}
  .shed-workspace [hidden]{display:none!important}
  .shed-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
  .shed-title h1{margin:0;font-size:clamp(23px,2.6vw,32px);font-weight:680;letter-spacing:-.035em;line-height:1.2}
  .shed-title p{margin:6px 0 0;color:var(--muted-foreground)}
  .shed-jump{display:none}
  .shed-layout{display:grid;grid-template-columns:minmax(295px,340px) minmax(0,1fr);gap:16px;align-items:start}
  .shed-study-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
  .shed-study-current{min-width:0;overflow-wrap:anywhere}
  .shed-study-current strong{font-size:15px;font-weight:650}
  .shed-study-current .shed-note{margin-top:3px}
  .shed-study-actions{display:flex;flex-wrap:wrap;gap:8px}
  .shed-export-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
  .shed-study-dialog{width:min(520px,calc(100% - 24px));max-height:calc(100% - 24px);margin:auto;color:var(--foreground);overflow:auto}
  .shed-study-dialog::backdrop{background:rgba(0,0,0,.62)}
  .shed-study-dialog form .shed-study-actions{margin-top:12px}
  .shed-study-transfer{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding:10px 0;border-block:1px solid var(--border)}
  .shed-study-rows{margin:10px 0 0;padding:0;list-style:none}
  .shed-study-rows li+li{border-top:1px solid var(--border)}
  .shed-study-rows button{display:grid;gap:3px;width:100%;min-height:52px;padding:8px 6px;text-align:start;border:0;background:transparent;color:var(--foreground);cursor:pointer;font:inherit;overflow-wrap:anywhere}
  .shed-study-rows button:hover,.shed-study-rows button[aria-current=true]{background:var(--muted)}
  .shed-study-rows small{color:var(--muted-foreground);font-size:12px}
  .shed-study-dialog :is(button,input):focus-visible,.shed-study-bar button:focus-visible{outline:2px solid var(--foreground);outline-offset:2px}
  .shed-study-dialog .shed-study-error{color:var(--ui-danger)}
  .shed-study-dialog .shed-study-import-note{margin:0 0 8px;overflow-wrap:anywhere}
  .shed-measure-paste{display:grid;gap:6px;font-weight:600;font-size:13px}
  .shed-measure-paste textarea{resize:vertical;min-height:90px;width:100%;padding:9px;border:1px solid var(--input);border-radius:7px;background:var(--background);color:var(--foreground);font:400 16px Geist,Arial,sans-serif}
  .shed-measure-paste textarea:focus-visible{outline:2px solid var(--foreground);outline-offset:2px}
  .shed-measure-review{min-width:0;margin:10px 0 0;padding:0;border:0}
  .shed-measure-review legend{padding:0;font-size:14px;font-weight:650}
  .shed-measure-review .shed-checkbox{align-items:flex-start;margin-top:0;padding:9px 0;border-bottom:1px solid var(--border)}
  .shed-measure-review small{display:block;margin-top:3px;color:var(--muted-foreground);overflow-wrap:anywhere}
  .shed-measure-review strong{display:block}
  .shed-measure-actions{margin-top:12px}
  .shed-results{display:grid;gap:16px;min-width:0;scroll-margin-block-start:12px}
  .shed-card{min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--card);padding:16px}
  .shed-card h2{margin:0;font-size:16px;font-weight:665;letter-spacing:-.015em}
  .shed-fields{display:grid;gap:16px}
  .shed-fields>section+section{padding-top:14px;border-top:1px solid var(--border)}
  .shed-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px;margin-top:10px}
  .shed-input-grid label{display:grid;grid-template-rows:1fr auto;gap:5px;min-width:0;font-size:13px;font-weight:550;line-height:1.35}
  .shed-input-grid small{font-size:12px;color:var(--muted-foreground);font-weight:400}
  .shed-input-grid :is(input,select){width:100%;min-width:0;min-height:44px;border:1px solid var(--input);border-radius:7px;background:var(--background);color:var(--foreground);padding:8px;font:400 16px Geist,Arial,sans-serif;font-variant-numeric:tabular-nums}
  .shed-input-grid [aria-invalid=true]{border-color:var(--ui-danger)}
  .shed-span{grid-column:1/-1}
  .shed-truss{min-width:0;margin:12px 0 0;padding:0;border:0}
  .shed-truss legend{padding:0;color:var(--foreground);font-weight:660}
  .shed-fields p,.shed-note{margin:8px 0 0;color:var(--muted-foreground);font-size:13px;line-height:1.5}
  .shed-options{border-top:1px solid var(--border)}
  .shed-options summary{min-height:44px;align-content:center;padding-block:6px;cursor:pointer;font-weight:600}
  .shed-stock-options fieldset{min-width:0;margin:14px 0 0;padding:0 0 10px;border:0;border-bottom:1px solid var(--border)}
  .shed-stock-options fieldset:last-child{padding-bottom:0;border-bottom:0}
  .shed-stock-options legend{padding:0;font-size:13px;font-weight:650}
  .shed-stock-options .shed-input-grid{margin-top:5px}
  .shed-stock-options .shed-section-shape{margin-top:8px}
  .shed-stock-options .shed-section-dimensions{margin-block:8px 4px}
  .shed-section-preview{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 10px;border:1px solid var(--border);border-radius:7px;color:var(--foreground);background:var(--background);font-size:13px}
  .shed-section-preview svg{width:100px;height:68px;flex:none;fill:currentColor}
  .shed-support-fields{min-width:0;margin:0;padding:0;border:0}
  .shed-support-fields .shed-input-grid{margin-top:2px}
  .shed-fields .shed-support-inputs>.shed-error{margin-top:10px}
  .shed-support-jump{display:inline-flex;align-items:center;min-height:44px;color:var(--foreground);font-size:13px;font-weight:600}
  #shedSupports,#shedRoofing,#shedAccessories{scroll-margin-top:12px}
  .shed-accessory-setup{margin-top:10px;border-top:1px solid var(--border)}
  .shed-accessory-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}
  .shed-accessory-segments .shed-checkbox{margin-top:0}
  .shed-accessory-setup>.shed-error{margin-top:10px}
  .shed-roofing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shed-roofing-plan{display:block;width:100%;max-height:185px;margin-top:8px;border:1px solid var(--border);border-radius:8px;background:var(--background)}
  .shed-roofing-outline{fill:var(--muted);stroke:var(--foreground);stroke-width:1.5}
  .shed-roofing-seam{fill:none;stroke:var(--muted-foreground);stroke-width:1}
  .shed-checkbox{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;margin-top:8px}
  .shed-checkbox input{width:18px;height:18px;flex:none;accent-color:var(--primary)}
  .shed-fields .shed-error{margin:0;padding:10px 12px;border:1px solid var(--ui-danger);border-radius:7px;color:var(--ui-danger)}
  .shed-view-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-bottom:12px}
  .shed-view-switch{display:inline-flex;border:1px solid var(--border);border-radius:8px;padding:2px;background:var(--background)}
  .shed-view-switch button,.shed-button{min-height:44px;padding:8px 11px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--foreground);font:600 13px Geist,Arial,sans-serif;cursor:pointer;text-decoration:none;text-align:center}
  .shed-view-switch button[aria-pressed=true]{background:var(--muted);box-shadow:inset 0 -2px var(--shed-line,#ce9a34)}
  .shed-button{display:inline-flex;align-items:center;justify-content:center;border-color:var(--input);background:var(--background)}
  .shed-button:hover,.shed-view-switch button:hover{background:var(--muted)}
  .shed-button:disabled{cursor:default;opacity:.55}
  .shed-stage{position:relative;display:grid;place-items:center;overflow:hidden;width:100%;min-width:0;aspect-ratio:600/365;min-height:205px;border:1px solid var(--border);border-radius:9px;background:var(--background);background-image:linear-gradient(var(--border) 1px,transparent 1px),linear-gradient(90deg,var(--border) 1px,transparent 1px);background-size:32px 32px}
  .shed-stage svg,.shed-stage model-viewer{display:block;width:100%;height:100%;min-width:0;min-height:0}
  .shed-stage model-viewer{position:absolute;inset:0}
  .shed-stage svg{color:var(--foreground);font-family:Geist,Arial,sans-serif;font-variant-numeric:tabular-nums}
  .shed-stage svg :is(line,path,polyline){fill:none;stroke-linecap:round;stroke-linejoin:round}
  .shed-stage .diagram-frame{stroke:currentColor;stroke-width:3.5}
  .shed-stage .diagram-purlin{stroke:var(--shed-purlin,#417e9b);stroke-width:2}
  .shed-stage .diagram-tie{stroke:var(--shed-line,#9a6818);stroke-width:2;stroke-dasharray:5 4}
  .shed-stage .diagram-dim{stroke:var(--muted-foreground);stroke-width:1.2}
  .shed-stage .diagram-block{fill:var(--muted);stroke:var(--foreground);stroke-width:1.6}
  .shed-stage text{fill:var(--foreground);font-size:18px;font-weight:620;text-anchor:middle;paint-order:stroke;stroke:var(--background);stroke-width:5px;stroke-linejoin:round}
  html[data-oliveira-theme=dark] .shed-stage{--shed-purlin:#8dc0d7;--shed-line:#e3b456}
  .shed-viewer-status{position:absolute;inset:auto 12px 10px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--card);font-size:13px}
  .shed-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 0}
  .shed-metrics div{min-width:0;padding-top:8px;border-top:1px solid var(--border)}
  .shed-metrics dt,.shed-parts dd{color:var(--muted-foreground);font-size:13px}
  .shed-metrics dd{margin:2px 0 0;font-size:clamp(15px,2vw,20px);font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .shed-bay-summary>summary{min-height:44px;align-content:center;cursor:pointer;font-size:13px;font-weight:600}
  .shed-bay-summary>.shed-note{margin-top:0;overflow-wrap:anywhere}
  .shed-tie-spans{margin:0;padding-inline-start:24px;color:var(--muted-foreground);font-size:13px;line-height:1.6;font-variant-numeric:tabular-nums}
  .shed-parts{margin:0}
  .shed-weight{margin-bottom:12px}
  .shed-weight .shed-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
  .shed-part-weight{display:block;margin-top:3px;color:var(--foreground)}
  .shed-part-profile{display:block;margin-top:2px}
  .shed-parts>div{display:grid;grid-template-columns:minmax(135px,.9fr) minmax(0,1.1fr);gap:8px;padding:10px 0;border-top:1px solid var(--border)}
  .shed-parts dt{font-weight:600}
  .shed-parts dd{margin:0;text-align:end;font-variant-numeric:tabular-nums}
  .shed-parts strong{display:block;color:var(--foreground);font-size:14px;font-weight:600}
  .shed-parts .cut-lengths{display:block;margin-top:2px}
  .shed-parts .cut-patterns{margin:6px 0 0;padding:0;list-style:none}
  .shed-parts .cut-patterns li{padding:4px 0;border-top:1px solid var(--border)}
  @media(max-width:480px){
    .shed-parts>div.shed-shared-stock{grid-template-columns:minmax(0,1fr);gap:4px}
    .shed-parts>.shed-shared-stock dd{text-align:start}
  }
  @media(max-width:1050px){.shed-layout{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}.shed-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
  @media(max-width:850px){.shed-layout{grid-template-columns:minmax(0,1fr)}.shed-title{align-items:start}.shed-jump{display:inline-flex;flex-shrink:0}.shed-card{padding:12px}}
  @media(max-width:390px){.page-estruturas .ui-breadcrumb{max-width:none}.shed-title{flex-wrap:wrap}.shed-metrics dt,.shed-parts dd{font-size:12px}.shed-parts>div{grid-template-columns:minmax(108px,.8fr) minmax(0,1.2fr)}}
}
