.bd-panel{color:#0f172a;min-width:0;scroll-margin-top:6rem}.bd-panel [hidden]{display:none!important}.bd-heading{margin:1.25rem 0}.bd-heading h2{font-size:1.55rem;font-weight:800;margin:.2rem 0}.bd-heading p{margin:.25rem 0;color:#475569}.bd-eyebrow{font-size:.72rem;text-transform:uppercase;font-weight:800;letter-spacing:.08em}.bd-badge{padding:.4rem .65rem;background:#ecfbfb;color:#2d7172;border-radius:6px;white-space:nowrap;font-size:.75rem;font-weight:700}.bd-work{min-width:0}.bd-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:1rem;align-items:start}.bd-card{border:1px solid #cbd5e1;background:white;border-radius:10px;padding:1.15rem;margin-bottom:1rem;min-width:0}.bd-card h3{font-size:1.05rem;font-weight:800;margin:0 0 .8rem}.bd-card label{display:flex;flex-direction:column;font-size:.8rem;font-weight:700;gap:.35rem;margin-bottom:.85rem;min-width:0}.bd-card select,.bd-card input:not([type=checkbox]){width:100%;min-width:0;min-height:40px;padding:.5rem .6rem;border:1px solid #cbd5e1;border-radius:6px;color:#0f172a;background:white;font:inherit;font-weight:500}.bd-card input:focus,.bd-card select:focus,.bd-panel button:focus-visible,.bd-panel summary:focus-visible{outline:3px solid #a8eaeb;outline-offset:2px}.bd-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.bd-help,.bd-card small{color:#64748b;font-size:.76rem;line-height:1.6;font-weight:400;margin:.25rem 0 .9rem}.bd-card .bd-check{display:flex;flex-direction:row;align-items:flex-start;gap:.55rem;font-weight:500;line-height:1.5}.bd-check input{margin-top:.2rem;accent-color:#378e8f;flex:none}.bd-panel summary{cursor:pointer;font-size:.8rem;font-weight:700;padding:.5rem 0}.bd-service summary span{display:block;font-weight:400;color:#64748b;font-size:.72rem}.bd-service,.bd-search-options{border-top:1px solid #e2e8f0;margin-top:.65rem;padding-top:.25rem}.bd-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:.6rem 0}.bd-panel button{min-height:40px;padding:.5rem .85rem;border-radius:6px;font-size:.8rem;font-weight:700;cursor:pointer}.bd-panel button:disabled{opacity:.55;cursor:default}.bd-primary{background:#47b8b8;color:white;border:1px solid #47b8b8}.bd-primary:hover{background:#378e8f;border-color:#378e8f}.bd-secondary{background:white;color:#378e8f;border:1px solid #a8eaeb}.bd-secondary:hover{background:#ecfbfb;border-color:#61cccd}.bd-text{color:#378e8f;background:transparent;border:0}.bd-section-choice{display:flex;gap:.6rem;align-items:flex-end}.bd-section-choice label{flex:1;margin-bottom:0}.bd-notice{padding:.85rem 1rem;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px;font-size:.82rem;line-height:1.6;margin:0 0 1rem}.bd-notice[data-error=true]{background:#fff5f2;border-color:#efb5a6;color:#963e27}.bd-result-head{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start}.bd-status{font-size:.76rem;font-weight:800;padding:.35rem .55rem;border-radius:5px;background:#e7f5ee;color:#1d694b}.bd-status[data-status=fail]{background:#fff0e8;color:#9a431e}.bd-status[data-status=unsupported]{background:#f1f5f9;color:#475569}.bd-table-wrap{max-width:100%;overflow-x:auto}.bd-panel table{width:100%;border-collapse:collapse;font-size:.78rem;text-align:left}.bd-panel th,.bd-panel td{padding:.65rem .5rem;border-bottom:1px solid #e2e8f0;vertical-align:top;white-space:nowrap}.bd-panel th{color:#64748b;font-size:.7rem;font-weight:700}.bd-ratio{display:block;width:72px;height:4px;background:#e2e8f0;border-radius:3px;margin-top:.3rem;overflow:hidden}.bd-ratio i{display:block;height:100%;background:#47b8b8}.bd-ratio[data-fail=true] i{background:#b45232}.bd-trace{border-bottom:1px solid #e2e8f0;padding:.2rem 0}.bd-trace p,.bd-scope p{font-size:.76rem;line-height:1.7;color:#475569;margin:.4rem 0}.bd-trace dl{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;font-size:.75rem;margin:.5rem 0}.bd-trace dt{color:#64748b}.bd-trace dd{text-align:right;margin:0}.bd-candidate[data-selected=true]{background:#ecfbfb}.bd-candidate input{accent-color:#378e8f}.bd-compare-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.65rem}.bd-compare-item{padding:.85rem;border:1px solid #e2e8f0;border-radius:8px}.bd-compare-item h4{font-size:1rem;font-weight:800;margin:0 0 .5rem}.bd-compare-item p{font-size:.76rem;line-height:1.6}.bd-compare-item button{margin-top:.4rem;width:100%}.bd-scope{background:#f8fafc}.bd-scope h3{font-size:.85rem}.bd-scenario-group{border:0;padding:0;margin:0 0 .7rem}.bd-scenario-group legend{font-weight:700;font-size:.78rem;margin-bottom:.4rem}.bd-scenario-group .bd-check{margin-bottom:.35rem;font-size:.75rem}.bd-disclosure-list{padding-left:1.2rem;font-size:.76rem;color:#475569;line-height:1.7}.bd-export{margin-top:.75rem}.bd-assumptions{font-size:.77rem;color:#475569;line-height:1.7}@media(max-width:850px){.bd-layout{grid-template-columns:minmax(0,1fr)}.bd-heading{align-items:flex-start}.bd-badge{white-space:normal;text-align:right}.bd-card{padding:.9rem}.bd-heading h2{font-size:1.3rem}}@media(max-width:420px){.bd-section-choice{flex-wrap:wrap}.bd-section-choice label{flex-basis:100%}.bd-fields{grid-template-columns:minmax(0,1fr);gap:.4rem}.bd-panel button{padding:.5rem .65rem}}

@media(max-width:420px){.bd-check-table th,.bd-check-table td{white-space:normal;padding:.55rem .3rem}.bd-check-table .bd-ratio{width:48px}.bd-result-head{flex-wrap:wrap}.bd-trace dd{overflow-wrap:anywhere}}

/* Keep setup concise, then let the results use the available width. */
.bd-setup-card>summary{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:0;font-size:.95rem;list-style:none}
.bd-setup-card>summary::-webkit-details-marker{display:none}
.bd-setup-summary{display:block;margin-top:.3rem;font-size:.76rem;font-weight:400;line-height:1.6;color:#475569}
.bd-edit-setup{flex:none;font-size:.78rem;color:#2d7172;text-decoration:underline}
.bd-setup-card[open] .bd-edit-setup,.bd-setup-card[open] .bd-setup-summary{display:none}
.bd-setup-card[open]>summary{margin-bottom:1rem}
.bd-layout:has(>.bd-setup-card:not([open])){grid-template-columns:minmax(0,1fr);gap:0}
.bd-setup-group{border-top:1px solid #e2e8f0;margin-top:.8rem;padding-top:1rem}
.bd-setup-group h3{font-size:.85rem;margin-bottom:.75rem}
.bd-explanation{margin:.25rem 0 .75rem}
.bd-explanation>summary{color:#378e8f;font-size:.75rem}
.bd-save-help{font-size:.72rem;line-height:1.6;color:#64748b;margin:0}
.bd-field-error{color:#a23d27;font-size:.78rem;line-height:1.5;margin:.15rem 0 .75rem}
.bd-panel :is(input,select,textarea)[aria-invalid=true]{border-color:#b45232!important;outline:2px solid #efc4b7}
#bd-results,#bd-comparison,#bd-detail{scroll-margin-top:6rem}
#bd-results:focus,#bd-comparison:focus,#bd-detail:focus{outline:none}
.bd-moduli{display:flex;flex-wrap:wrap;gap:.45rem 1.5rem;margin:0 0 .85rem;padding:.6rem .85rem;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;font-size:.8rem}
.bd-moduli>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 .45rem}
.bd-moduli dt{color:#475569}
.bd-moduli dd{margin:0;color:#0f172a;font-weight:700;font-variant-numeric:tabular-nums}
.bd-recommendation{border-color:#a8eaeb;background:#f5fdfd}
.bd-recommendation h3{font-size:1.35rem;margin:.35rem 0}
.bd-recommendation>p:not([class]){font-size:.9rem;font-weight:700}
.bd-current-check{margin:0 0 1rem}
.bd-compare-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.65rem 0;font-size:.78rem;font-weight:600;background:white;border-bottom:1px solid #e2e8f0;margin-bottom:.7rem}
.bd-compare-toolbar>span{margin-right:auto}
.bd-compare-grid{margin-bottom:1rem}
.bd-row-sub,.bd-current-label{display:block;margin:.2rem 0!important}
.bd-panel td .bd-status{display:inline-block;margin-top:.4rem;font-size:.68rem;padding:.2rem .4rem}
.bd-row-actions button{display:block;width:100%;white-space:nowrap;padding:.4rem .55rem;font-size:.74rem}
#bd-detail{margin:1rem 0;border-bottom:1px solid #cbd5e1;padding-bottom:.5rem}
#bd-detail>.bd-card{margin-bottom:0}
@media(max-width:767px){body:has(#beam-design-panel[aria-hidden=false]) #beam-mobile-run{display:none!important}.bd-setup-card>summary{align-items:flex-start}#bd-results,#bd-comparison,#bd-detail{scroll-margin-top:5rem}}
.bd-recommendation [data-apply]{background:#47b8b8;color:white;border-color:#47b8b8}
@media(max-width:640px){
    .bd-compare-toolbar{position:sticky;top:80px;z-index:2}
    .bd-candidate-table,.bd-candidate-table tbody{display:block}
    .bd-candidate-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
    .bd-candidate-table .bd-candidate{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.65rem;padding:.85rem 0;border-bottom:1px solid #cbd5e1}
    .bd-candidate-table td{display:block;white-space:normal;border:0;padding:0;min-width:0}
    .bd-candidate-table td:nth-child(1){order:2;text-align:right;padding-top:.3rem}
    .bd-candidate-table td:nth-child(1)::after{content:'Compare';font-size:.72rem;margin-left:.4rem}
    .bd-candidate-table td:nth-child(2){order:1}
    .bd-candidate-table td:nth-child(3){order:3}
    .bd-candidate-table td:nth-child(4){order:4}
    .bd-candidate-table td:nth-child(5){order:5}
    .bd-candidate-table td:nth-child(6){order:6}
    .bd-candidate-table [data-label]::before{content:attr(data-label);display:block;color:#64748b;font-size:.68rem;margin-bottom:.25rem}
    .bd-candidate-table .bd-row-actions{display:flex;flex-wrap:wrap;gap:.2rem}
    .bd-candidate-table .bd-row-actions button{width:auto;flex:1}
}
.bd-card .bd-compare-choice{display:flex;flex-direction:row;align-items:center;gap:.4rem;min-height:40px;margin:0;font-weight:500;cursor:pointer}
.bd-calculations{margin-top:.6rem;border-top:1px solid #e2e8f0;padding-top:.35rem}
.bd-calculation{list-style:none;padding:0;margin:.7rem 0;counter-reset:calculation}
.bd-calculation li{counter-increment:calculation;padding:.85rem 0 .85rem 1.8rem;position:relative;border-top:1px solid #f1f5f9;min-width:0}
.bd-calculation li:before{content:counter(calculation);position:absolute;left:0;top:.9rem;font-size:.72rem;font-weight:700;color:#378e8f}
.bd-step-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;font-size:.78rem}
.bd-step-heading span{color:#64748b;font-size:.71rem}
.bd-calculation .bd-formula,.bd-calculation .bd-substitution{overflow-wrap:anywhere;font-variant-numeric:tabular-nums;line-height:1.65;margin:.35rem 0;font-size:.76rem}
.bd-calculation .bd-formula{color:#475569}
.bd-calculation .bd-substitution{color:#0f172a}
.bd-calculation .bd-step-note{font-size:.72rem;color:#64748b;margin:.35rem 0 0}
.bd-compare-choice input{width:18px;height:18px;margin:0}
.bd-compare-choice span{display:none}
@media(max-width:640px){.bd-card .bd-compare-choice{justify-content:flex-end}.bd-compare-choice span{display:inline}.bd-candidate-table td:nth-child(1)::after{content:none}}
@media(max-width:640px){#bd-comparison,#bd-detail{scroll-margin-top:200px}}
/* Loading is edited once, beside the entered loads and combination factors. */
.beam-weight-control{border-top:1px solid #e2e8f0;margin-top:1rem;padding-top:1rem}
.beam-weight-control label{display:block;font-size:.82rem;font-weight:700;margin-bottom:.4rem}
.beam-weight-control select,.beam-loading-tools select{width:100%;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:.6rem;font-size:.82rem;min-height:40px;margin:.25rem 0 .5rem}
.beam-weight-control .beam-muted{font-size:.76rem;line-height:1.65;margin:.35rem 0}
.beam-loading-tools{border-top:1px solid #e2e8f0;padding-top:1rem;margin-top:1rem}
.beam-loading-tools [hidden],.beam-weight-control [hidden],.beam-weight-control[hidden]{display:none!important}
.beam-loading-tools>details{margin:1rem 0;border:1px solid #e2e8f0;border-radius:8px;padding:.8rem}
.beam-loading-tools summary,.beam-design-usage summary{cursor:pointer;font-weight:700;font-size:.82rem}
.beam-loading-tools label{display:block;font-weight:600;font-size:.8rem}
#beam-basic-preview-content ul{list-style:none;padding:0;margin:.7rem 0}
#beam-basic-preview-content li{border-bottom:1px solid #e2e8f0;padding:.7rem 0;font-size:.8rem}
#beam-basic-preview-content span,#beam-basic-preview-content small{display:block;margin-top:.25rem;line-height:1.5}
.beam-combination-card .beam-design-usage{grid-column:1/-1;width:100%;border-top:1px solid #e2e8f0;padding-top:.7rem}
.beam-design-usage{margin:.4rem 0}
.beam-usage-grid{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;padding-top:.6rem}
.beam-workspace-dialog .beam-usage-grid label{display:flex;flex-direction:row;align-items:center;gap:.5rem;font-size:.78rem;font-weight:500;min-height:36px;margin:0}
.beam-usage-grid input{width:18px!important;height:18px!important;margin:0!important;accent-color:#378e8f}
.beam-case-design-choice{border-bottom:1px solid #e2e8f0;padding:.6rem 0}
.bd-loading-setup{display:grid;gap:.65rem;min-width:0}
.bd-card .bd-loading-setup h3{margin:0;font-size:.9rem}
.bd-loading-meta{display:flex;flex-wrap:wrap;gap:.15rem .75rem;color:#475569;font-size:.76rem;line-height:1.5;overflow-wrap:anywhere}
.bd-loading-meta p,.bd-loading-preset{margin:0}
.bd-loading-preset,.bd-loading-group{font-size:.78rem;line-height:1.55;overflow-wrap:anywhere}
.bd-loading-group+.bd-loading-group{margin-top:.65rem}
.bd-loading-group ul{list-style:none;padding:0;margin:.3rem 0 0}
.bd-loading-group li{padding:.35rem .6rem;background:#f8fafc;border-radius:5px;margin-top:.25rem}
.bd-loading-group small{display:block;font-size:.72rem;margin:0}
.bd-loading-setup :is(.bd-loading-guidance,.bd-field-error){margin:0;padding:.55rem .65rem;border-radius:6px;font-size:.78rem;line-height:1.5;overflow-wrap:anywhere}
.bd-loading-guidance{background:#f1f5f9;color:#334155}
.bd-loading-setup .bd-field-error{background:#fff5f2;color:#963e27}
.bd-loading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .5rem}
.bd-panel .bd-loading-actions button{min-height:44px}
.bd-panel .bd-loading-actions .bd-text{padding-inline:.25rem}
@media(max-width:440px){.beam-usage-grid{grid-template-columns:1fr}.beam-combination-card .beam-design-usage{flex-basis:100%}}
.beam-weight-status{display:flex;align-items:center;gap:.8rem;max-width:100%;text-align:left;border:0;border-radius:5px;background:#fff8ec;color:#885d19;padding:.4rem .65rem;margin-top:.5rem;font-size:.75rem;line-height:1.5;cursor:pointer}
.beam-weight-status-action{text-decoration:underline;font-weight:600;white-space:nowrap}
.beam-section-weight{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.25rem .7rem;margin-top:.75rem;padding:.35rem 0;color:#334155}
#beam-section-weight label{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-weight:600;margin:0;cursor:pointer}
#beam-section-weight input{flex-shrink:0;width:18px;height:18px;margin:0;accent-color:#378e8f}
#beam-section-weight-value{justify-self:end;font-size:.8rem;color:#475569;font-variant-numeric:tabular-nums}
.beam-weight-info{position:relative}
.beam-weight-info summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:#64748b;cursor:pointer;list-style:none;border-radius:4px}
.beam-weight-info summary::-webkit-details-marker{display:none}
.beam-weight-info summary:hover{background:#f1f5f9;color:#334155}
.beam-weight-info summary:focus-visible{outline:2px solid #378e8f;outline-offset:2px}
#beam-section-weight .beam-weight-info p{position:absolute;z-index:5;right:0;top:100%;width:17rem;max-width:calc(100vw - 4rem);margin:.25rem 0 0;padding:.65rem .8rem;border:1px solid #e2e8f0;border-radius:6px;background:#fff;box-shadow:0 3px 12px #0f172a14;font-size:.78rem;line-height:1.5;color:#475569;font-weight:400}
#beam-section-weight-help{grid-column:1/-1;margin:.2rem 0 0;font-size:.78rem;line-height:1.5;color:#885d19}
.beam-weight-status[hidden],#beam-section-weight[hidden],#beam-section-weight [hidden]{display:none!important}
#beam-section-weight-case-label{grid-column:1/-1;padding-top:.4rem;flex-wrap:wrap}
#beam-section-weight-case{max-width:260px}
@media(max-width:640px){.beam-section-weight{grid-template-columns:1fr auto;gap:0 .5rem}#beam-section-weight-value{grid-column:1;grid-row:2;justify-self:start;margin-left:1.625rem}.beam-weight-info{grid-column:2;grid-row:1}}

.bd-access{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;background:#ecfbfb;border:1px solid #a8eaeb;border-radius:12px;padding:14px 18px;margin:0 0 16px;color:#0f172a}
.bd-access p{margin:0;font-size:.8rem;line-height:1.6}
.bd-heading-top{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
.bd-heading-top .bd-eyebrow{margin:0;white-space:nowrap}
.bd-access-status{min-width:0;color:#475569;font-size:.75rem;font-weight:600;line-height:1.35;text-align:right}
.bd-access-link{color:#276b6c;text-decoration:none}
.bd-access-link:hover,.bd-access-link:focus-visible{color:#164f51;text-decoration:underline;text-underline-offset:.16em}
.bd-access-link:focus-visible{outline:2px solid #378e8f;outline-offset:3px;border-radius:2px}
@media(max-width:500px){.bd-heading-top:has(.bd-access-status:not([hidden])) .bd-eyebrow-scope{display:none}}
/* Missing beam inputs: shown inside the Find a section card, next to the buttons it disables. */
.bd-inline-notice{display:flex;align-items:center;justify-content:space-between;gap:.25rem .75rem;flex-wrap:wrap;margin:-.35rem 0 .75rem;padding:.35rem .35rem .35rem .75rem;border-left:3px solid #47b8b8;background:#f5fcfc;border-radius:0 6px 6px 0;font-size:.8rem;line-height:1.5;color:#334155}
.bd-inline-notice p{margin:0}.bd-panel .bd-inline-notice button{min-height:32px;padding:.25rem .5rem}
#bd-empty:not([hidden])+#bd-current-info{display:none}
/* Brief highlight on the Beam Input element that Go to Beam Input lands on. */
.bd-attention{animation:bd-attention 1.8s ease-out}
@keyframes bd-attention{0%,35%{box-shadow:0 0 0 3px #47b8b8,0 0 0 8px rgb(71 184 184 / .18)}100%{box-shadow:0 0 0 3px transparent,0 0 0 8px transparent}}
@media(prefers-reduced-motion:reduce){.bd-attention{animation:none;box-shadow:0 0 0 3px #47b8b8}}

/* Keep the section source tabs and footer in view while the form scrolls. */
.beam-calculator-page #section-modal:has(#section-source-tabs) .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 48px);
    margin: 0;
}
#section-modal:has(#section-source-tabs) :is(.modal-header, #section-source-tabs, .modal-footer) { flex-shrink: 0; }
#section-modal:has(#section-source-tabs) .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .625rem 1rem .75rem;
}
#section-modal:has(#section-source-tabs) .modal-header,
#section-modal:has(#section-source-tabs) .modal-footer { padding-block: .75rem; }
#section-modal .modal-footer #section-modal-error { margin: 0; }
#section-modal:has(#section-source-tabs) #add-section:disabled { opacity: .55; cursor: not-allowed; }
#section-source-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: .75rem 1rem 0;
    border: 1px solid #d8e3eb;
    border-radius: 8px;
    background: #f4f7fa;
}
#section-source-tabs button {
    min-height: 44px;
    padding: .4rem .25rem;
    border: 2px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    font-size: .825rem;
    font-weight: 600;
    line-height: 1.25;
}
#section-source-tabs button[aria-selected="true"] {
    border-color: #378e8f;
    background: #fff;
    color: #0f6667;
}
#section-source-tabs button:focus-visible {
    outline: 2px solid #14686b;
    outline-offset: 2px;
}
#section-modal #section-source-options { grid-template-columns: minmax(0, 1fr); }
#section-modal:has(#section-source-tabs) #section-details-panel { margin-top: .5rem; }
#section-modal:has(#section-source-tabs) #section-details-panel > .ob-tool-panel__body {
    padding: .65rem .75rem;
}
#section-start-blank { margin-top: .25rem; }
#section-saved-actions:not(:has(button:not([hidden]))) { display: none; }
#section-modal:has(#section-source-tabs) #section-geometry-heading { flex-wrap: wrap; }
#section-geometry-heading #section-custom-help { margin: 0; }
#section-modal #section-geometry-layout { grid-template-columns: minmax(0, 1fr); }
#section-modal:has(#section-source-tabs) #section-geometry-layout {
    grid-template-areas: "material" "properties";
    row-gap: .5rem;
}
#section-modal:has(#section-source-tabs) #section-geometry-editor { display: contents; }
#section-material-fields { grid-area: material; }
#section-geometry-properties { grid-area: properties; }
#section-catalog-figure,
#section-modal:has(#section-source-tabs) #section-input-figure {
    grid-area: schematic;
    min-width: 0;
    margin: 0;
    align-self: start;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}
#section-modal:has(#section-source-tabs) #section-input-figure {
    height: auto;
    padding: .5rem;
}
#section-modal:has(#section-source-tabs) #section-input-figure img {
    width: min(100%, 270px);
    height: auto;
    min-height: 0;
    flex: none;
}
#section-catalog-diagram svg {
    display: block;
    width: min(100%, 340px);
    height: auto;
    margin: 0 auto;
}
#section-catalog-diagram [data-dimension-value] text { font-size: 15px; }
#section-catalog-caption { padding: 0 .4rem .5rem; color: #475569; font-size: .75rem; }
#section-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
    align-items: center;
}
#section-detail-actions .beam-section-weight {
    flex: 1 1 260px;
    margin-top: 0;
    padding: 0;
}
#section-library-save { margin-inline-start: auto; }

@media (min-width: 680px) {
    .beam-calculator-page #section-modal:has(#section-source-tabs) { padding-block: 16px; }
    .beam-calculator-page #section-modal:has(#section-source-tabs) .modal-content { max-height: calc(100dvh - 32px); }
    #section-modal:has(#section-source-tabs) #section-details-panel .form-control {
        min-height: 36px;
        padding-block: .375rem;
    }
    #section-modal:has(#section-source-tabs) #section-geometry-heading { margin-bottom: .25rem; }
    #section-modal:has(#section-source-tabs) #section-geometry-fields { gap: .5rem; }
    #section-catalog-diagram svg { width: min(100%, 264px); }
    #section-modal:has(#section-source-tabs) #section-input-figure img { width: min(100%, 235px); }
    #section-modal:has(#section-source-tabs) #steel-catalog-results {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: .4rem .75rem;
    }
    #section-modal:has(#section-source-tabs) #steel-catalog-results > * { margin: 0; }
    #section-modal:has(#section-source-tabs) #steel-catalog-toolbar {
        grid-area: 1 / 2;
        margin-top: 1.25rem;
        min-height: 40px;
        align-items: center;
    }
    #section-modal:has(#section-source-tabs) :is(#steel-browse-fields, #steel-search-field) { grid-area: 1 / 1; }
    #section-modal:has(#section-source-tabs) #steel-browse-fields:not([hidden]) {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: .65rem;
    }
    #section-modal:has(#section-source-tabs) #steel-browse-fields > * { margin: 0; }
    #section-modal:has(#section-source-tabs) #steel-shape-fields { display: contents; }
    #section-modal:has(#section-source-tabs) #steel-catalog-retry { justify-self: end; }
    #section-modal:has(#section-source-tabs) #section-saved-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: .75rem;
    }
    #section-modal:has(#section-source-tabs) #section-saved-controls > * { margin: 0; }
    #section-modal #section-saved-actions { padding-bottom: .1875rem; }
    #section-modal:has(#section-source-tabs) #section-name-and-range { grid-template-columns: 1fr 1fr; }
    #section-modal:has(#section-source-tabs) #section-geometry-layout:has(> figure:not([hidden])) {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        grid-template-areas: "material schematic" "properties schematic";
        grid-template-rows: auto 1fr;
    }
}
@media (min-width: 900px) {
    .beam-calculator-page #section-modal:has(#section-source-tabs) .modal-dialog {
        width: min(100%, 820px);
        max-width: 820px;
    }
}
@media (max-width: 679px) {
    .beam-calculator-page #section-modal:has(#section-source-tabs) .modal-content { max-height: calc(100dvh - 28px); }
    #section-modal:has(#section-source-tabs) :is(.form-control, .modal-footer .btn, #steel-picker-mode, #section-library-save .btn, #section-saved-actions .btn) {
        min-height: 44px;
    }
    #section-modal:has(#section-source-tabs) .form-control { font-size: max(1rem, 16px); }
    #section-modal:has(#section-source-tabs) #section-geometry-layout:has(> #section-catalog-figure:not([hidden])) {
        grid-template-areas: "material" "properties" "schematic";
    }
    #section-modal:has(#section-source-tabs) #section-geometry-layout:has(> #section-input-figure:not([hidden])) {
        grid-template-areas: "material" "schematic" "properties";
    }
    #section-modal:has(#section-source-tabs) #section-input-figure {
        justify-self: start;
        width: min(100%, 220px);
    }
    #section-modal:has(#section-source-tabs) #section-input-figure img { width: min(100%, 192px); }
}
