.salt-spray-page { overflow-x: hidden; }
.salt-spray-page .sop-identity { background: var(--surface-dark); }
.salt-spray-page .sop-identity .section-kicker { color: var(--accent); }
.salt-spray-page .sop-intro > div { background: var(--surface-soft); }
.salt-spray-page .condition-grid { background: var(--surface-soft); }
.salt-spray-page .timeline-index { border-color: var(--accent); background: var(--accent-soft); }
.salt-spray-heading { align-items: end; }
.salt-spray-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.7fr); gap: 16px; align-items: start; }
.salt-spray-sidebar { position: sticky; top: 18px; display: grid; gap: 14px; }
.sop-identity { padding: 22px; background: #202a31; color: #fff; }
.sop-identity h2 { margin: 7px 0 4px; color: #fff; font-size: 24px; letter-spacing: 0; }
.sop-identity p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.7; }
.sop-identity dl { display: grid; gap: 10px; margin: 22px 0 0; }
.sop-identity dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.16); }
.sop-identity dt { color: rgba(255,255,255,.56); font-size: 10px; }
.sop-identity dd { margin: 0; color: #fff; font-size: 11px; text-align: right; }
.section-kicker, .record-code { color: var(--lab); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.sop-identity .section-kicker { color: #e9a27c; }
.implementation-panel { overflow: hidden; }
.implementation-timeline { display: grid; padding: 4px 18px 18px; }
.implementation-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 0 14px; }
.implementation-item:not(:last-child)::after { position: absolute; top: 45px; bottom: -2px; left: 16px; width: 1px; background: #d6dde2; content: ""; }
.timeline-index { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d7a17f; border-radius: 50%; background: #fff8f3; color: var(--lab); font-size: 10px; font-weight: 800; }
.implementation-item strong, .implementation-item small, .implementation-item p, .implementation-item b { display: block; }
.implementation-item strong { color: var(--navy); font-size: 12px; }
.implementation-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.implementation-item p { margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.implementation-item b { color: var(--lab); font-size: 10px; }
.salt-spray-main { display: grid; gap: 14px; min-width: 0; }
.sop-panel, .record-panel, .records-panel, .salt-report-preview { padding: 20px; }
.panel-help { margin: -3px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sop-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.sop-intro > div { padding: 13px; border-left: 3px solid var(--lab); background: #f7f8f8; }
.sop-intro span, .sop-intro strong { display: block; }
.sop-intro span { color: var(--muted); font-size: 10px; }
.sop-intro strong { margin-top: 6px; color: var(--navy); font-size: 11px; line-height: 1.65; font-weight: 600; }
.sop-step-list { display: grid; gap: 7px; }
.sop-step { border: 1px solid var(--line); background: #fff; }
.sop-step summary { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 13px; cursor: pointer; list-style: none; }
.sop-step summary::-webkit-details-marker { display: none; }
.sop-step summary > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--lab-soft); color: var(--lab); font-size: 10px; font-weight: 800; }
.sop-step summary strong { color: var(--navy); font-size: 12px; }
.sop-step summary small { color: var(--muted); font-size: 10px; }
.sop-step-body { padding: 0 14px 13px 55px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.sop-step-body p { margin: 5px 0; }
.sop-step-body b { color: var(--navy); }
.form-section { padding-top: 15px; border-top: 1px solid var(--line); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section h3 { margin: 0 0 12px; color: var(--navy); font-size: 13px; }
.salt-spray-form .form-grid, .condition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.salt-spray-form .field { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.salt-spray-form .field > span { color: var(--muted); font-size: 10px; }
.salt-spray-form .field > span b { color: var(--danger); }
.salt-spray-form input, .salt-spray-form select, .salt-spray-form textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy); font: inherit; font-size: 11px; }
.salt-spray-form input, .salt-spray-form select { height: 36px; padding: 0 9px; }
.salt-spray-form textarea { min-height: 67px; padding: 8px 9px; resize: vertical; }
.salt-spray-form input:focus, .salt-spray-form select:focus, .salt-spray-form textarea:focus { outline: 2px solid rgba(191,104,67,.25); border-color: var(--lab); }
.span-2 { grid-column: span 2; }
.field-error { color: var(--danger); font-size: 10px; line-height: 1.5; }
.condition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; padding: 14px; background: #f7f8f8; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.form-note { color: var(--muted); font-size: 10px; line-height: 1.5; }
.salt-record-table { overflow-x: auto; }
.salt-record-head, .salt-record-row { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr .8fr .7fr .7fr; gap: 10px; align-items: center; min-width: 720px; }
.salt-record-head { padding: 0 12px 9px; color: var(--muted); font-size: 10px; }
.salt-record-row { min-height: 62px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 11px; }
.salt-record-row > div strong, .salt-record-row > div small { display: block; }
.salt-record-row > div strong { color: var(--navy); }
.salt-record-row > div small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.text-button { color: var(--lab); font-size: 11px; font-weight: 800; }
.result-PASS { color: var(--ok); font-weight: 800; }
.result-FAIL { color: var(--danger); font-weight: 800; }
.result-PENDING { color: var(--warning); font-weight: 800; }
.report-actions { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.report-sheet { width: min(940px, 100%); margin: 4px auto 0; padding: 34px; border: 1px solid #bfc6cb; background: #fff; color: #20262c; }
.report-sheet-header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 2px solid #273038; }
.report-sheet-header div { display: flex; flex-direction: column; gap: 4px; }
.report-sheet-header strong { font-size: 16px; }
.report-sheet-header span, .report-sheet-header small, .report-sheet-header b { color: #687681; font-size: 9px; }
.report-sheet-header div:last-child { align-items: end; }
.report-sheet-header div:last-child strong { color: #20262c; font-size: 14px; }
.report-sheet > h3 { margin: 26px 0; text-align: center; font-size: 19px; }
.report-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid #cdd3d7; }
.report-facts div { min-height: 49px; padding: 9px 11px; border: 1px solid #cdd3d7; }
.report-facts dt { color: #687681; font-size: 9px; }
.report-facts dd { margin: 5px 0 0; font-size: 11px; }
.report-sheet h4 { margin: 22px 0 8px; font-size: 12px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.report-table th, .report-table td { padding: 8px; border: 1px solid #aeb7bd; text-align: left; vertical-align: top; line-height: 1.55; }
.report-table th { width: 18%; background: #f3f5f6; font-weight: 700; }
.result-table th { width: auto; text-align: center; }
.result-table td { text-align: center; }
.report-conclusion { font-weight: 800; }
.report-note { margin-top: 19px; padding: 10px 12px; background: #f7f8f8; font-size: 9px; line-height: 1.6; }
.report-note p { margin: 4px 0 0; }
.report-signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; padding-top: 15px; border-top: 1px solid #bfc6cb; }
.report-signatures div { display: flex; min-height: 43px; flex-direction: column; justify-content: space-between; }
.report-signatures span { color: #687681; font-size: 9px; }
.report-signatures strong { font-size: 11px; }
.report-empty { min-height: 180px; }

@media (max-width: 1120px) {
    .salt-spray-layout { grid-template-columns: 1fr; }
    .salt-spray-sidebar { position: static; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
    .salt-spray-form .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .salt-spray-sidebar { grid-template-columns: 1fr; }
    .sop-intro, .salt-spray-form .form-grid, .condition-grid, .report-facts, .report-signatures { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .form-actions, .report-actions { align-items: stretch; flex-direction: column; }
    .report-sheet { padding: 18px; }
    .report-sheet-header { flex-direction: column; }
    .report-sheet-header div:last-child { align-items: start; }
}
@media print {
    .app-header, .app-footer, .salt-spray-heading, .salt-spray-sidebar, .sop-panel, .record-panel, .records-panel, .salt-report-preview > .panel-header { display: none !important; }
    .app-main, .page-container, .salt-spray-layout, .salt-spray-main, .salt-report-preview { display: block !important; max-width: none; margin: 0; padding: 0; }
    .salt-report-preview { border: 0; box-shadow: none; }
    .report-sheet { width: 100%; margin: 0; border: 0; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    .salt-spray-page * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
