@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
:root {
  --osh-primary: #145ea8;
  --osh-primary-dark: #0f3f78;
  --osh-navy: #0f172a;
  --osh-accent: #f5b700;
  --osh-danger: #b42318;
  --osh-success: #157347;
  --osh-bg: #f5f7fb;
  --osh-card: #ffffff;
  --osh-border: #dbe3ef;
  --osh-muted: #64748b;
  --osh-text: #1e293b;
  --osh-radius: 14px;
  --osh-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  --gov-blue: var(--osh-primary);
  --gov-red: var(--osh-danger);
  --gov-green: var(--osh-success);
  --soft-line: var(--osh-border);
}
body { background: var(--osh-bg); color: var(--osh-text); font-family: 'Poppins', sans-serif; line-height: 1.58; }
.page-title { color: var(--osh-navy); font-weight: 800; letter-spacing: 0; }
.btn { font-weight: 600; border-radius: 10px; }
.btn-primary { background: var(--osh-primary); border-color: var(--osh-primary); box-shadow: 0 8px 18px rgba(20, 94, 168, .16); }
.btn-primary:hover, .btn-primary:focus { background: var(--osh-primary-dark); border-color: var(--osh-primary-dark); }
.btn-outline-primary { color: var(--osh-primary); border-color: #b7d0eb; background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary.active { color: #fff; background: var(--osh-primary); border-color: var(--osh-primary); }
.form-control, .form-select { border-color: #ccd8e6; border-radius: 10px; min-height: 42px; font-weight: 500; }
.form-control:focus, .form-select:focus { border-color: var(--osh-primary); box-shadow: 0 0 0 .18rem rgba(20, 94, 168, .14); }
.form-label { color: #334155; font-weight: 600; font-size: .82rem; margin-bottom: .35rem; }
.card { border-color: var(--osh-border); border-radius: var(--osh-radius); box-shadow: var(--osh-shadow); }
.card-header { border-color: #edf2f7; background: #fff; }
.card-title { color: var(--osh-navy); font-weight: 700; }
label.required::after, .form-label.required::after { content: " *"; color: var(--gov-red); font-weight: 800; }
.app-navbar { background: rgba(255, 255, 255, .96); border-bottom: 1px solid #dbe7f4; backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(15, 23, 42, .04); }
.navbar-nav { gap: .45rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.nav-action { margin-right: 0 !important; min-height: 38px; display: inline-flex; align-items: center; }
.brand-lockup { display: inline-flex; align-items: center; gap: .55rem; letter-spacing: .02em; }
.brand-lockup img { width: 34px; height: 34px; object-fit: contain; }
.brand-lockup span { color: var(--osh-primary-dark); font-weight: 800; }
.hero-gov { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 80% 20%, #dff0ff 0, transparent 34%), linear-gradient(135deg, #ffffff 0%, #eef7ff 58%, #f8fbff 100%); }
.hero-gov::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#dbeafe 1px, transparent 1px), linear-gradient(90deg, #dbeafe 1px, transparent 1px); background-size: 44px 44px; opacity: .28; }
.hero-content { position: relative; z-index: 2; padding-top: 1.6rem; padding-bottom: 1.1rem; }
.hero-grid { display: grid; grid-template-columns: minmax(420px, .74fr) minmax(560px, 1.26fr); gap: .5rem; align-items: center; }
.hero-copy { max-width: 650px; }
.agency-line { display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid #dce8f5; border-radius: 8px; padding: .4rem .65rem; margin-bottom: 1rem; color: #143b64; font-weight: 700; box-shadow: 0 8px 20px rgba(15, 23, 42, .06); }
.agency-line img { width: 32px; height: 32px; object-fit: contain; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-reminder { margin-top: 1.25rem; color: #475569; background: rgba(255, 255, 255, .82); border-left: 4px solid var(--gov-blue); padding: .75rem .9rem; max-width: 560px; }
.hero-visual { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; margin-right: -5.5rem; margin-top: -1.25rem; margin-bottom: -1.75rem; }
.hero-visual::before { content: ""; position: absolute; width: min(108%, 820px); aspect-ratio: 1.25; bottom: 1.6rem; border-radius: 50%; background: linear-gradient(135deg, rgba(20,94,168,.18), rgba(21,115,71,.13)); filter: blur(4px); }
.hero-visual::after { content: ""; position: absolute; width: 72%; height: 16px; bottom: 1.35rem; border-radius: 50%; background: rgba(15, 23, 42, .16); filter: blur(12px); }
.hero-visual img { position: relative; z-index: 2; width: min(128%, 1080px); max-width: none; height: auto; object-fit: contain; filter: drop-shadow(0 24px 26px rgba(15, 23, 42, .16)); }
.hero-visual-card { position: absolute; z-index: 3; left: 3rem; bottom: 2rem; max-width: 286px; background: rgba(255,255,255,.9); border: 1px solid #dbe7f4; border-radius: 8px; padding: .75rem .9rem; box-shadow: 0 18px 36px rgba(15, 23, 42, .14); display: grid; gap: .25rem; }
.hero-visual-card strong { color: #123b63; }
.hero-visual-card span { color: #64748b; font-size: .88rem; }
.home-band { background: #fff; border-top: 1px solid #dbe7f4; border-bottom: 1px solid #dbe7f4; padding: 1rem 0; }
.home-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #dbe7f4; border: 1px solid #dbe7f4; border-radius: 8px; overflow: hidden; }
.home-metrics div { background: #fff; padding: 1rem; display: grid; gap: .2rem; }
.home-metrics strong { color: #123b63; }
.home-metrics span { color: #64748b; font-size: .9rem; }
.info-panel, .form-section, .upload-card { background: #fff; border: 1px solid var(--soft-line); border-radius: 8px; box-shadow: 0 8px 20px rgba(15, 23, 42, .04); }
.info-panel { padding: 1.25rem; }
.report-wizard { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.wizard-summary { position: sticky; top: 1rem; }
.summary-card { background: #0f2f4f; color: #fff; border-radius: 8px; padding: 1.1rem; box-shadow: 0 16px 34px rgba(15, 23, 42, .14); }
.summary-kicker { color: #9dd7ff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.summary-card h2 { font-size: 1.15rem; margin: .35rem 0 1rem; }
.summary-card dl { display: grid; gap: .8rem; margin: 0; }
.summary-card dt { color: #9dd7ff; font-size: .72rem; text-transform: uppercase; font-weight: 700; }
.summary-card dd { margin: 0; color: #f8fafc; }
.wizard-main { min-width: 0; }
.form-section { padding: 1.1rem; margin-bottom: 1rem; }
.form-section h2 { font-size: 1.35rem; margin: 0; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: stepIn .18s ease-out; }
@keyframes stepIn { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.step-pill { border: 1px solid var(--soft-line); background: #fff; color: #475569; font-weight: 700; border-radius: 8px; padding: .65rem .5rem; text-align: center; font-size: .82rem; }
.step-pill span { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #e9f1fb; color: var(--gov-blue); margin-right: .25rem; }
.step-pill.active { background: var(--gov-blue); color: #fff; border-color: var(--gov-blue); }
.step-pill.active span { background: #fff; color: var(--gov-blue); }
.step-pill.complete { border-color: #b7dbc6; color: var(--gov-green); }
.section-heading { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.section-heading p { margin: .2rem 0 0; color: #64748b; }
.section-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 8px; background: #e9f1fb; color: var(--gov-blue); font-weight: 800; }
.focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.field-card { background: #f8fafc; border: 1px solid #e5edf6; border-radius: 8px; padding: .8rem; }
.field-card-wide { grid-column: 1 / -1; }
.field-help { margin-top: .35rem; color: #64748b; font-size: .82rem; }
.advanced-fields summary { cursor: pointer; color: var(--gov-blue); font-weight: 700; }
.conditional-panel { display: none; background: #fff; border: 1px solid #cfe0f4; border-radius: 8px; padding: .9rem; }
.conditional-panel.active { display: block; }
.conditional-panel h3 { font-size: 1rem; margin: 0 0 .75rem; }
.construction-note { display: none; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 6px; padding: .45rem .6rem; font-size: .84rem; line-height: 1.35; }
.construction-note.active { display: block; }
.autocomplete-panel { position: absolute; z-index: 20; background: #fff; border: 1px solid var(--soft-line); border-radius: 6px; width: calc(100% - 1.5rem); max-height: 260px; overflow: auto; display: none; }
.autocomplete-item { padding: .65rem .75rem; border-bottom: 1px solid #eef2f7; cursor: pointer; }
.autocomplete-item:hover { background: #eef6ff; }
.address-preview { border: 1px dashed var(--gov-blue); background: #eef6ff; border-radius: 6px; padding: .8rem; color: #15395b; }
.violation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.violation-item { border: 1px solid var(--soft-line); border-radius: 6px; padding: .45rem .55rem; background: #fff; transition: border-color .15s, background .15s; font-size: .86rem; line-height: 1.25; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.violation-item.selected { border-color: var(--gov-blue); background: #f4f9ff; }
.violation-label { display: grid; grid-template-columns: 1rem 1.35rem minmax(0, 1fr); gap: .4rem; align-items: start; }
.violation-item .form-check-input { width: 1rem; height: 1rem; margin: .05rem 0 0; }
.concern-icon { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 6px; background: #eef6ff; color: #145ea8; font-size: 1rem; line-height: 1; }
.violation-item.selected .concern-icon { background: #145ea8; color: #fff; }
.upload-card { padding: 1rem; height: 100%; }
.upload-card h3 { font-size: 1rem; }
.video-drive-note { display: grid; gap: .25rem; background: #eef6ff; border: 1px solid #cfe4f7; border-radius: 10px; padding: .85rem; color: #15395b; }
.video-drive-note a { color: var(--osh-primary-dark); font-weight: 800; overflow-wrap: anywhere; }
.video-drive-note span { color: #475569; font-size: .85rem; }
.file-preview { margin-top: .75rem; display: grid; gap: .5rem; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1px solid #e5e7eb; border-radius: 6px; padding: .5rem; font-size: .85rem; }
.file-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.file-row span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.file-count { color: #475569; font-size: .78rem; font-weight: 700; }
.file-notice { padding: .45rem .6rem; border-radius: 7px; background: #fff6da; color: #7a4f00; font-size: .78rem; }
.file-remove { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #dbe3ef; border-radius: 8px; background: #fff; color: #b42318; }
.file-remove:hover { background: #fff1f0; border-color: #f1b8b4; }
.recommendation { background: #f8fafc; border-left: 4px solid var(--gov-blue); padding: .8rem; }
.review-panel { display: grid; gap: .6rem; margin-bottom: 1rem; }
.review-row { display: flex; justify-content: space-between; gap: 1rem; background: #f8fafc; border: 1px solid #e5edf6; border-radius: 8px; padding: .7rem .8rem; }
.review-row strong { color: #334155; }
.wizard-actions { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: 1rem; }
.invalid-step-message { border: 1px solid #fecaca; background: #fff1f2; color: #991b1b; border-radius: 8px; padding: .65rem .8rem; margin-bottom: .8rem; }
.is-invalid-lite { border-color: #dc2626 !important; }
.status-badge { border-radius: 999px; padding: .25rem .6rem; font-weight: 700; font-size: .75rem; background: #e9f1fb; color: #145ea8; }
.login-shell { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(circle at 75% 12%, #dff0ff 0, transparent 32%), linear-gradient(135deg, #f8fbff 0%, #eef5fb 52%, #f6f8fb 100%); }
.login-card { border: 1px solid #dbe7f4; border-radius: var(--osh-radius); box-shadow: 0 22px 50px rgba(15, 23, 42, .08); }
.login-card input[type="text"], .login-card input[type="email"], .login-card input[type="password"] { width: 100%; border: 1px solid #ccd8e6; border-radius: 10px; min-height: 42px; padding: .5rem .75rem; }
.login-card select { width: 100%; min-height: 42px; padding: .5rem 2.5rem .5rem .75rem; border: 1px solid #ccd8e6; border-radius: 10px; background-color: #fff; color: #1e293b; font: inherit; cursor: pointer; }
.login-card select:focus { border-color: var(--osh-primary); outline: 0; box-shadow: 0 0 0 .18rem rgba(20, 94, 168, .14); }
.login-logo { width: 54px; height: 54px; object-fit: contain; margin-bottom: .85rem; }
.container-tight input[type="text"], .container-tight input[type="password"] { display: block; width: 100%; padding: .4375rem .75rem; font-size: .875rem; line-height: 1.4285714; color: inherit; background-color: #fff; background-clip: padding-box; border: 1px solid #d9dbde; border-radius: 4px; }
.chart-card canvas { min-height: 320px; }
.dashboard-page { color: #0f172a; }
.dashboard-hero { display: flex; justify-content: space-between; gap: 1.25rem; align-items: center; padding: 1.35rem; border-radius: var(--osh-radius); background: linear-gradient(135deg, #0f3f78 0%, #145ea8 62%, #157347 100%); color: #fff; box-shadow: 0 18px 42px rgba(15, 47, 79, .18); }
.dashboard-hero h1 { margin: .15rem 0 .35rem; font-size: 1.8rem; letter-spacing: 0; }
.dashboard-hero p { margin: 0; color: rgba(255,255,255,.82); max-width: 720px; }
.dashboard-kicker { color: #bfe4ff; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.dashboard-actions .btn-primary { background: #fff; color: #0f2f4f; border-color: #fff; }
.admin-page-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.admin-page-header .text-secondary { max-width: 720px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.admin-card { background: var(--osh-card); border: 1px solid var(--osh-border); border-radius: var(--osh-radius); box-shadow: var(--osh-shadow); overflow: hidden; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid #edf2f7; background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%); }
.admin-card-header h2 { margin: 0; color: var(--osh-navy); font-size: 1.05rem; font-weight: 700; }
.admin-card-header span { color: var(--osh-muted); font-size: .84rem; }
.filter-panel { background: #fff; border: 1px solid #dbe7f4; border-radius: var(--osh-radius); padding: 1rem; box-shadow: var(--osh-shadow); }
.compact-filter { padding: .95rem; }
.filter-panel-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: .85rem; margin-bottom: .85rem; border-bottom: 1px solid #edf2f7; }
.filter-panel-header div { display: grid; gap: .1rem; }
.filter-panel-header strong { color: #0f2f4f; font-size: 1rem; }
.filter-panel-header span { color: #64748b; font-size: .86rem; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
.metric-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #dbe7f4; border-radius: var(--osh-radius); padding: 1rem; min-height: 132px; display: grid; align-content: space-between; box-shadow: var(--osh-shadow); }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #145ea8; }
.metric-card span { color: #475569; font-weight: 700; font-size: .86rem; }
.metric-card strong { color: #0f172a; font-size: 2.15rem; line-height: 1; letter-spacing: 0; }
.metric-card small { color: #64748b; }
.metric-primary { background: #0f2f4f; border-color: #0f2f4f; }
.metric-primary::before { background: #8dd8ff; }
.metric-primary span, .metric-primary small { color: rgba(255,255,255,.75); }
.metric-primary strong { color: #fff; }
.dashboard-section-title { display: flex; justify-content: space-between; align-items: end; margin: 1rem 0 .65rem; }
.dashboard-section-title h2 { font-size: 1.15rem; color: #0f2f4f; margin: 0; }
.dashboard-section-title p { margin: .1rem 0 0; color: #64748b; }
.analytics-card { background: #fff; border: 1px solid #dbe7f4; border-radius: var(--osh-radius); padding: 1rem; min-height: 0; box-shadow: var(--osh-shadow); }
.chart-box { position: relative; height: 300px; max-height: 300px; overflow: hidden; }
.chart-box canvas { display: block; width: 100% !important; height: 300px !important; max-height: 300px !important; }
.analytics-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.analytics-card-header h3 { margin: 0; font-size: 1rem; color: #0f2f4f; }
.list-card { min-height: 380px; }
.rank-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid #edf2f7; padding: .7rem 0; }
.rank-row span { color: #334155; }
.rank-row strong { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; border-radius: 999px; background: #e9f1fb; color: #145ea8; }
.empty-state { margin: 1rem 0 0; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 1rem; text-align: center; }
.report-table-card { border-radius: var(--osh-radius); }
.report-table { margin-bottom: 0; min-width: 0; width: 100%; table-layout: fixed; }
.report-table thead th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #475569; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; border-bottom: 1px solid #dbe3ef; padding: .52rem .55rem; white-space: nowrap; }
.report-table tbody td { padding: .48rem .55rem; vertical-align: middle; color: #334155; font-size: .76rem; border-color: #edf2f7; line-height: 1.3; }
.report-table th:nth-child(1), .report-table td:nth-child(1) { width: 16%; }
.report-table th:nth-child(2), .report-table td:nth-child(2) { width: 8%; }
.report-table th:nth-child(3), .report-table td:nth-child(3) { width: 12%; }
.report-table th:nth-child(4), .report-table td:nth-child(4) { width: 13%; }
.report-table th:nth-child(5), .report-table td:nth-child(5) { width: 25%; }
.report-table th:nth-child(6), .report-table td:nth-child(6) { width: 12%; }
.report-table th:nth-child(7), .report-table td:nth-child(7) { width: 8%; }
.report-table th:nth-child(8), .report-table td:nth-child(8) { width: 6%; }
.report-table tbody tr { transition: background .15s ease, box-shadow .15s ease; }
.report-table tbody tr:hover { background: #f8fbff; }
.reference-code { color: var(--osh-primary-dark); font-weight: 700; font-size: .7rem; white-space: normal; overflow-wrap: anywhere; }
.table-location { color: #334155; font-weight: 600; line-height: 1.25; }
.table-location small, .table-secondary, .table-muted { color: var(--osh-muted); font-weight: 500; }
.table-site-name { color: var(--osh-navy); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-secondary { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osh-badge { display: inline-flex; align-items: center; max-width: 100%; padding: .14rem .38rem; border-radius: 7px; font-size: .62rem; font-weight: 700; line-height: 1.15; margin: .04rem .08rem .04rem 0; border: 1px solid transparent; white-space: normal; }
.badge-status { color: #0f3f78; background: #e8f2fc; border-color: #c9def3; }
.badge-site { color: #1f4e68; background: #edf6fb; border-color: #cfe4ef; }
.badge-concern { color: #7a4f00; background: #fff6da; border-color: #f5dea0; }
.badge-attachment { color: #0f5132; background: #e8f6ee; border-color: #c7e8d5; }
.badge-muted, .badge-more { color: #475569; background: #f1f5f9; border-color: #dbe3ef; }
.table-view-btn { padding: .2rem .55rem; font-weight: 700; border-radius: 8px; font-size: .72rem; }
.report-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.modal-content { border: 0; border-radius: var(--osh-radius); box-shadow: 0 24px 70px rgba(15, 23, 42, .2); }
.modal-header, .modal-footer { border-color: #edf2f7; }
.report-preview-body { padding: 1.5rem; }
.report-preview-heading { margin: 0 0 .85rem; color: var(--osh-navy); font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.report-detail-grid { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: .65rem 1rem; margin: 0; }
.report-detail-grid dt { color: #475569; font-weight: 700; }
.report-detail-grid dd { margin: 0; min-width: 0; }
.report-detail-grid-compact { gap: .75rem 1.25rem; padding: 1rem; border: 1px solid #e5edf6; border-radius: 12px; background: #f8fafc; }
.concern-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.concern-summary-item { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; padding: .65rem .7rem; border: 1px solid #f0dca5; border-radius: 10px; background: #fffaf0; color: #334155; line-height: 1.25; }
.concern-summary-item i { flex: 0 0 auto; margin-top: .05rem; color: #b77900; font-size: 1rem; }
.concern-summary-item strong { display: block; font-size: .82rem; }
.concern-summary-item small { display: block; margin-top: .25rem; color: #64748b; }
.observation-summary { padding: .85rem 1rem; border-left: 4px solid var(--osh-primary); border-radius: 0 10px 10px 0; background: #f3f8fd; }
.observation-summary h3 { margin-bottom: .35rem; }
.observation-summary p { margin: 0; color: #334155; line-height: 1.55; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.evidence-item { border: 1px solid #e5edf6; border-radius: 8px; overflow: hidden; background: #fff; min-width: 0; }
.evidence-item img, .evidence-item video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #0f172a; }
.document-preview { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f1f5f9; color: #475569; font-weight: 700; }
.narrative-document { background: #fff; border: 1px solid #dbe7f4; border-radius: var(--osh-radius); padding: 2rem; box-shadow: var(--osh-shadow); }
.narrative-document h1 { font-size: 1.55rem; color: #0f2f4f; }
.narrative-document h2 { font-size: 1.05rem; color: #0f2f4f; margin-top: 1.4rem; border-bottom: 1px solid #e5edf6; padding-bottom: .35rem; }
.narrative-document h3 { font-size: .92rem; color: #334155; }
.analyst-report { max-width: 1120px; margin: 0 auto; }
.analyst-cover { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; border-bottom: 3px solid var(--osh-primary); padding-bottom: 1rem; margin-bottom: 1.15rem; }
.analyst-cover h1 { text-align: left; margin: .25rem 0; font-size: 1.75rem; }
.analyst-cover p { margin: 0; color: #64748b; }
.analyst-period { min-width: 220px; background: #f8fafc; border: 1px solid #dbe3ef; border-radius: 12px; padding: .8rem; display: grid; gap: .25rem; }
.analyst-period span { color: #64748b; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.analyst-period strong { color: var(--osh-primary-dark); font-size: .92rem; }
.insight-panel { background: #f8fbff; border: 1px solid #cfe4f7; border-left: 5px solid var(--osh-primary); border-radius: 12px; padding: 1rem; margin: 1rem 0; }
.insight-panel h2 { margin-top: 0; border-bottom: 0; padding-bottom: 0; }
.analyst-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.analyst-summary div, .analyst-card { border: 1px solid #dbe3ef; border-radius: 12px; background: #f8fafc; padding: .85rem; display: grid; gap: .2rem; break-inside: avoid; }
.analyst-summary span, .analyst-card span { color: #64748b; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.analyst-summary strong, .analyst-card strong { color: var(--osh-primary-dark); font-size: 1.25rem; line-height: 1.2; }
.analyst-summary small, .analyst-card small { color: #64748b; }
.analyst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: .75rem 0; }
.distribution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.section-note { color: #64748b; margin-bottom: .75rem; }
.analytics-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: .5rem 0 1rem; font-size: .86rem; }
.analytics-table th, .analytics-table td { border: 1px solid #dbe3ef; padding: .55rem .65rem; vertical-align: top; overflow-wrap: anywhere; }
.analytics-table th { background: #f1f5f9; color: #334155; font-weight: 800; }
.analytics-table td { color: #1e293b; }
.scope-table th { width: 28%; }
.observation-table th:nth-child(1), .observation-table td:nth-child(1) { width: 17%; }
.observation-table th:nth-child(2), .observation-table td:nth-child(2) { width: 18%; }
.observation-table th:nth-child(3), .observation-table td:nth-child(3) { width: 16%; }
.observation-table th:nth-child(4), .observation-table td:nth-child(4) { width: 22%; }
.analyst-list { padding-left: 1.25rem; }
.analyst-list li { margin-bottom: .45rem; }
.validation-note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #dbe3ef; color: #475569; font-size: .9rem; }
.narrative-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.narrative-stats div { border: 1px solid #e5edf6; border-radius: 12px; padding: .8rem; background: #f8fafc; display: grid; gap: .25rem; }
.narrative-stats span { color: #64748b; font-size: .82rem; }
.narrative-stats strong { color: #0f2f4f; font-size: 1.45rem; }
.narrative-line { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #eef2f7; padding: .35rem 0; }
.narrative-report-row { border: 1px solid #e5edf6; border-radius: 8px; padding: .75rem; margin-bottom: .6rem; }
.narrative-report-row span { display: block; color: #64748b; font-size: .86rem; margin: .15rem 0 .35rem; }
.timeline { border-left: 3px solid var(--soft-line); padding-left: 1rem; }
.timeline-item { position: relative; margin-bottom: 1rem; }
.timeline-item:before { content: ""; width: .7rem; height: .7rem; background: var(--gov-blue); border-radius: 50%; position: absolute; left: -1.43rem; top: .35rem; }
@media (max-width: 640px) {
  .hero-gov { min-height: auto; align-items: flex-start; }
  .hero-gov::before { opacity: .18; }
  .hero-content { padding-top: 1.25rem; padding-bottom: 1.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: auto; margin: -.8rem 0 -1rem; }
  .hero-visual img { width: 122%; margin-left: -11%; }
  .hero-visual::before { bottom: 1.25rem; }
  .hero-visual::after { bottom: .8rem; }
  .hero-visual-card { position: relative; left: auto; bottom: auto; margin-top: -1rem; max-width: none; }
  .agency-line { font-size: .82rem; }
  .home-metrics { grid-template-columns: 1fr; }
  .navbar-nav .btn { padding: .35rem .55rem; }
  .admin-page-header, .admin-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .admin-actions .btn { width: 100%; }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; width: 100%; }
  .dashboard-actions .btn { flex: 1 1 auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .filter-panel-header { align-items: flex-start; flex-direction: column; }
  .report-wizard { grid-template-columns: 1fr; }
  .wizard-summary { position: static; order: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step-pill { text-align: left; }
  .focus-grid, .violation-list { grid-template-columns: 1fr; }
  .evidence-grid, .report-detail-grid, .concern-summary-grid { grid-template-columns: 1fr; }
  .narrative-document { padding: 1.2rem; }
  .narrative-stats { grid-template-columns: 1fr 1fr; }
  .analyst-cover, .distribution-grid { grid-template-columns: 1fr; display: grid; }
  .analyst-summary, .analyst-grid { grid-template-columns: 1fr; }
  .analytics-table { font-size: .78rem; }
  .report-pagination { align-items: stretch; flex-direction: column; text-align: center; }
  .violation-item { font-size: .92rem; min-height: 46px; }
  .display-5 { font-size: 2rem; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  body { background: #fff; }
  .app-navbar, .admin-page-header, .dashboard-hero, .filter-panel, .report-pagination, .d-print-none { display: none !important; }
  .narrative-page { padding: 0 !important; }
  .narrative-document { border: 0; box-shadow: none; padding: 0; }
  .narrative-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .analyst-cover, .insight-panel, .analyst-summary, .analyst-grid, .analytics-table, .validation-note { break-inside: avoid; }
  .analyst-summary, .analyst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  a[href]::after { content: ""; }
}
