.sr-dialog { width:calc(100% - 32px); max-width:1100px; max-height:90vh; padding:0 24px 24px; border:1px solid #d8e0e8; border-radius:10px; background:#fff; color:#243447; box-shadow:0 16px 60px #0005; font:14px/1.5 Arial,sans-serif; }
.sr-dialog:not([open]) { display:none; }
.sr-dialog::backdrop { background:rgba(17,24,39,.65); }
.sr-toolbar { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; background:white; border-bottom:1px solid #d8e0e8; z-index:1; }
.sr-toolbar h2 { font-size:18px; margin:0; }
.sr-toolbar > div { display:flex; gap:8px; }
.sr-toolbar button { padding:7px 12px; border:1px solid #bac9d4; border-radius:5px; background:#f5f8fa; color:#243447; cursor:pointer; }
.sr-toolbar button:disabled { opacity:.5; cursor:default; }
.sr-identification { padding:12px 0; margin-bottom:12px; border-bottom:1px solid #d8e0e8; }
.sr-identification summary { font-weight:600; cursor:pointer; }
.sr-fields { display:grid; grid-template-columns:2fr 2fr 2fr 1fr; gap:12px; margin-top:12px; }
.sr-fields label { font-size:12px; }
.sr-fields input { display:block; width:100%; max-width:none; margin-top:4px; padding:6px 8px; height:34px; border:1px solid #bac9d4; border-radius:4px; box-sizing:border-box; }
#steelReportMessage:empty { display:none; }
#steelReportMessage { background:#fff6e7; border-left:3px solid #b47b23; padding:12px; }
.sr-report { max-width:1000px; margin:20px auto 0; color:#243447; font:13px/1.5 Arial,sans-serif; }
.sr-header { display:grid; grid-template-columns:86px 1fr auto; gap:16px; align-items:center; padding-bottom:18px; border-bottom:2px solid var(--sr-primary); margin-bottom:22px; }
.sr-logo { width:80px; height:80px; object-fit:contain; }
.sr-brand { color:var(--sr-primary); font-size:22px; font-weight:700; }
.sr-powered { color:#667785; font-size:11px; }
.sr-report h1 { font-size:25px; font-weight:700; color:var(--sr-secondary); margin:5px 0; }
.sr-subtitle { margin:0; color:#627586; }
.sr-meta { text-align:right; max-width:210px; overflow-wrap:anywhere; font-size:12px; }
.sr-meta small { display:block; color:#667785; margin-top:5px; }
.sr-section { margin:0 0 22px; border:1px solid #d8e0e8; border-radius:8px; background:#fff; }
.sr-section > h2 { display:block; margin:0; padding:10px 16px; background:var(--sr-primary); color:#fff; border-radius:7px 7px 0 0; font-size:16px; font-weight:600; break-after:avoid; }
.sr-section > p { margin:12px 16px; overflow-wrap:anywhere; }
.sr-report table { width:100%; border-collapse:collapse; font-size:12px; table-layout:fixed; }
.sr-report th,.sr-report td { padding:8px 12px; border-bottom:1px solid #e2e8ed; vertical-align:top; overflow-wrap:anywhere; }
.sr-report th { text-align:left; font-weight:600; }
.sr-report thead th { color:var(--sr-secondary); background:#f0f4f7; }
.sr-report tbody tr:nth-child(even) { background:#f8fafc; }
.sr-report tr:last-child > * { border-bottom:0; }
.sr-overview { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:24px; padding:16px; }
.sr-ratio { font-size:42px; line-height:1.2; font-weight:700; color:var(--sr-secondary); margin-top:10px; }
.sr-status { display:inline-block; padding:4px 12px; border-radius:4px; font-size:12px; font-weight:700; }
.sr-pass { color:#17603d; background:#e9f4ed; }
.sr-fail { color:#9c2525; background:#fceceb; }
.sr-summary p { margin:8px 0; }
.sr-note { font-size:12px; color:#627586; }
.sr-drawing { display:block; width:100%; max-height:270px; }
.sr-drawing text { font:12px Arial,sans-serif; fill:#425964; }
.sr-equation { font-size:12px; white-space:pre-wrap; }
.sr-note-heading { font-weight:700; color:var(--sr-secondary); padding-top:8px; border-top:1px solid #e2e8ed; }
.sr-footer { display:flex; justify-content:space-between; gap:12px; padding-top:12px; border-top:1px solid #d8e0e8; font-size:11px; color:#667785; }
.sr-footer a { color:var(--sr-primary); }
@media(max-width:700px) {
    .sr-dialog { padding:0 12px 12px; }
    .sr-toolbar { flex-wrap:wrap; }
    .sr-fields { grid-template-columns:1fr 1fr; }
    .sr-header { grid-template-columns:64px 1fr; gap:10px; }
    .sr-logo { width:60px; height:60px; }
    .sr-meta { grid-column:1/-1; max-width:none; text-align:left; }
    .sr-report h1 { font-size:21px; }
    .sr-overview { grid-template-columns:1fr; }
    .sr-report th,.sr-report td { padding:7px; font-size:11px; }
}
@media print {
    @page { size:A4 portrait; margin:14mm 12mm; }
    body { padding:0 !important; margin:0 !important; background:white !important; }
    body *:not([data-steel-print-path]):not(#steelReport):not(#steelReport *) { display:none !important; }
    [data-steel-print-path] { display:block !important; position:static !important; float:none !important; width:auto !important; max-width:none !important; min-height:0 !important; height:auto !important; max-height:none !important; margin:0 !important; padding:0 !important; border:0 !important; box-shadow:none !important; overflow:visible !important; background:white !important; }
    .sr-dialog::backdrop { display:none; }
    #steelReport { display:block !important; max-width:none; margin:0; font-size:11px; }
    #steelReport .sr-header { grid-template-columns:70px 1fr auto; gap:12px; break-inside:avoid; }
    #steelReport .sr-meta { grid-column:auto; text-align:right; }
    #steelReport .sr-logo { width:62px; height:62px; }
    #steelReport h1 { font-size:21px; }
    #steelReport .sr-section { border-radius:0; }
    #steelReport .sr-section > h2 { padding:8px 12px; border-radius:0; font-size:13px; }
    #steelReport .sr-overview { grid-template-columns:1fr 1fr; break-inside:avoid; }
    #steelReport .sr-drawing { max-height:220px; }
    #steelReport table { font-size:10px; }
    #steelReport th,#steelReport td { padding:4px 9px; font-size:10px; }
    #steelReport .sr-section:nth-of-type(3),
    #steelReport .sr-section:nth-of-type(6),
    #steelReport .sr-section:nth-of-type(8) { break-before:page; }
    #steelReport[data-report-type="Composite"] .sr-section:nth-of-type(5) { break-before:page; }
    #steelReport[data-report-type="Composite"] .sr-section:nth-of-type(6) { break-before:auto; }
    #steelReport .sr-section > h2 { color:white !important; background:var(--sr-primary) !important; }
    #steelReport .sr-brand { color:var(--sr-primary) !important; }
    #steelReport h1,#steelReport .sr-ratio { color:var(--sr-secondary) !important; }
    #steelReport thead th { color:var(--sr-secondary) !important; background:#f0f4f7 !important; }
    #steelReport tbody tr:nth-child(even) > * { background:#f8fafc !important; }
    #steelReport .sr-pass { color:#17603d !important; background:#e9f4ed !important; }
    #steelReport .sr-fail { color:#9c2525 !important; background:#fceceb !important; }
    #steelReport thead { display:table-header-group; }
    #steelReport tr { break-inside:avoid; }
    #steelReport .sr-equation { font-size:10.5px; }
    #steelReport .sr-footer { break-inside:avoid; }
    #steelReport a:after { content:none !important; }
    #steelReport * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}
