:root {
    --safety-bg: #f7f9f7;
    --safety-surface: #ffffff;
    --safety-surface-muted: #edf2ef;
    --safety-border: #d9e1dc;
    --safety-border-strong: #b9c8bf;
    --safety-ink: #26332d;
    --safety-muted: #617068;
    --safety-accent: #0d5641;
    --safety-accent-dark: #094632;
    --safety-accent-soft: #e5efe9;
    --safety-brand-maroon: #551123;
    --safety-high-risk: #b42318;
    --safety-low-risk: #18794e;
    --safety-info: #236e9a;
    --safety-teal: #168c83;
    --safety-teal-soft: #e4f4f1;
    --safety-sky-soft: #eaf3f8;
    --safety-radius: 12px;
    --safety-shadow: 0 8px 24px rgba(19, 49, 39, 0.07);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 320px; max-width: 100%; overflow-x: clip; background: var(--safety-bg); }

body {
    color: var(--safety-ink);
    font-family: "Bahnschrift", "Aptos", "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9f7 58%, #eff4f0 100%);
}

button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-language-picker {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--safety-border);
    color: var(--safety-ink);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.5rem max(1rem, calc((100vw - 1120px) / 2));
    width: 100%;
}

.app-language-picker label { color: var(--safety-muted); font-size: 0.8rem; font-weight: 700; }
.app-language-picker select { background: white; border: 1px solid var(--safety-border-strong); border-radius: 5px; color: var(--safety-ink); max-width: 160px; padding: 0.35rem 0.5rem; }

.safety-shell {
    min-height: 100vh;
    width: 100%;
    overflow-x: clip;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9f7 58%, #eff4f0 100%);
    color: var(--safety-ink);
    display: flex;
    flex-direction: column;
}

.safety-topbar {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 1rem max(1rem, calc((100vw - 1120px) / 2));
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(105deg, #0d5641, #094632);
    color: white;
}

.safety-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--safety-ink);
    color: var(--safety-accent);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.25rem;
}
.safety-brand-logo { width: 40px; height: 40px; object-fit: contain; }

.safety-brand-name { font-weight: 800; letter-spacing: 0; }
.safety-brand-subtitle, .safety-user-chip { color: rgba(255, 255, 255, 0.76); font-size: 0.78rem; }
.safety-user-chip {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

.safety-settings-menu { position: relative; flex: 0 0 auto; }
.safety-settings-menu summary { width: 40px; height: 40px; display: grid; place-items: center; list-style: none; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 8px; color: white; cursor: pointer; }
.safety-settings-menu summary::-webkit-details-marker { display: none; }
.safety-settings-menu summary span { font-size: 1.3rem; line-height: 1; }
.safety-settings-menu summary:hover, .safety-settings-menu[open] summary { background: rgba(255, 255, 255, 0.14); }
.safety-settings-menu summary:focus-visible { outline: 2px solid #f4cc76; outline-offset: 2px; }
.safety-settings-options { position: absolute; z-index: 20; top: calc(100% + 0.5rem); right: 0; width: 190px; padding: 0.35rem; border: 1px solid var(--safety-border); border-radius: 6px; background: white; box-shadow: 0 10px 28px rgba(16, 45, 35, 0.2); }
.safety-settings-options button { width: 100%; padding: 0.7rem 0.65rem; border: 0; border-radius: 4px; background: transparent; color: var(--safety-ink); text-align: left; font: inherit; cursor: pointer; }
.safety-settings-options button:hover, .safety-settings-options button:focus-visible { background: #edf5f1; }

.safety-home {
    width: min(100% - 2rem, 860px);
    margin: 0 auto;
    padding: 1.35rem 0 0.75rem;
}

.safety-welcome { max-width: 620px; margin-bottom: 1.15rem; }
.safety-eyebrow {
    margin: 0 0 0.35rem;
    color: #0e6247;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.safety-welcome h1, .safety-form-intro h1 {
    margin: 0;
    color: var(--safety-ink);
    font-size: 3rem;
    letter-spacing: 0;
    line-height: 1.05;
}

.safety-lede, .safety-form-intro p { color: var(--safety-muted); max-width: 580px; margin: 0.9rem 0 0; }
.safety-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.safety-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.safety-secondary-actions { margin-top: 1rem; }

.safety-action-card, .safety-stats-panel {
    min-height: 84px;
    border: 1px solid var(--safety-border);
    border-radius: var(--safety-radius);
    background: var(--safety-surface);
    color: var(--safety-ink);
    box-shadow: var(--safety-shadow);
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.safety-action-card:hover, .safety-stats-panel:hover { transform: translateY(-3px); border-color: var(--safety-teal); box-shadow: 0 14px 30px rgba(22, 140, 131, 0.14); }
.safety-action-card { min-height: 68px; padding: 0.55rem 0.75rem; display: flex; flex-direction: row; align-items: center; gap: 0.7rem; }
.safety-action-card span:nth-child(2) { flex: 1; min-width: 0; }
.safety-action-primary { min-height: 72px; background: var(--safety-accent); color: white; border-color: var(--safety-accent); box-shadow: 0 10px 24px rgba(13, 86, 65, 0.16); }
.safety-action-primary:nth-child(2) { background: var(--safety-brand-maroon); border-color: var(--safety-brand-maroon); }
.safety-action-card strong, .safety-stats-panel strong, .safety-metric-card strong { display: block; font-size: 0.92rem; }
.safety-action-card small, .safety-stats-panel small, .safety-metric-card small { display: block; color: var(--safety-muted); font-size: 0.74rem; line-height: 1.3; margin-top: 0.15rem; }
.safety-action-primary small { color: #d1e3dc; }
.safety-resource-action { position: relative; overflow: visible; }
.safety-resource-new-badge { position: absolute; top: 0.45rem; right: 0.45rem; padding: 0.16rem 0.42rem; border-radius: 999px; background: #c92c2c; color: white; font-size: 0.62rem; font-weight: 850; line-height: 1.3; }
.safety-action-icon, .safety-stats-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #d8eddf;
    color: var(--safety-accent-dark);
    font-size: 1.4rem;
    font-weight: 800;
}
.safety-action-icon-muted { background: var(--safety-teal-soft); color: var(--safety-teal); }
.safety-arrow { margin-left: auto; font-size: 1.25rem; color: var(--safety-accent-dark); }
.safety-action-primary .safety-arrow { color: #a8d8c2; }

.safety-stats-panel { width: 100%; min-height: auto; margin-top: 0.75rem; padding: 1.1rem; display: flex; align-items: center; gap: 0.9rem; }
.safety-stats-icon { background: var(--safety-sky-soft); color: var(--safety-info); font-size: 0.9rem; letter-spacing: 0.08em; }
.safety-version { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.65rem; color: var(--safety-muted); font-size: 0.75rem; }
.safety-version small { display: block; margin-top: 0.2rem; color: #718179; font-size: 0.7rem; }
.safety-footer-logo { width: 28px; height: 28px; object-fit: contain; }
.safety-logout-button { min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 8px; background: transparent; color: white; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.safety-logout-button:hover { background: rgba(255, 255, 255, 0.12); }

.home-announcement-banner { width: 100%; background: #f4cc76; color: #352b18; border-bottom: 1px solid #ddbd75; }
.home-announcement-inner { width: min(100%, 1120px); min-height: 54px; margin: 0 auto; padding: 0.4rem 1rem; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 34px 34px; grid-template-areas: "prev copy dots next close"; align-items: center; gap: 0.5rem; }
.announcement-prev { grid-area: prev; }
.home-announcement-copy { grid-area: copy; }
.announcement-pagination { grid-area: dots; }
.announcement-next { grid-area: next; }
.announcement-dismiss { grid-area: close; }
.home-announcement-copy { min-width: 0; display: flex; align-items: center; gap: 0.6rem; }
.home-announcement-copy p { min-width: 0; margin: 0; font-size: 0.82rem; font-weight: 700; }
.home-announcement-copy a { flex: 0 0 auto; color: #3f3219; font-size: 0.75rem; font-weight: 750; text-underline-offset: 2px; }
.home-announcement-new { flex: 0 0 auto; padding: 0.16rem 0.38rem; border-radius: 3px; background: #8d4e11; color: white; font-size: 0.6rem; font-weight: 850; }
.announcement-arrow, .announcement-dismiss { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.announcement-arrow:hover, .announcement-dismiss:hover { background: rgba(63, 50, 25, 0.1); }
.announcement-arrow:focus-visible, .announcement-dismiss:focus-visible, .announcement-dot:focus-visible { outline: 2px solid #3f3219; outline-offset: 2px; }
.announcement-pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; }
.announcement-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #9e895c; cursor: pointer; }
.announcement-dot.is-active { background: #342a17; }

.leadership-section { width: 100vw; margin: 1.75rem 0 0 calc(50% - 50vw); padding: 0.85rem max(1rem, calc((100vw - 1120px) / 2)) 0.75rem; background: #35d9a1; color: #103d31; }
.leadership-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 0 auto 0.65rem; max-width: 1120px; }
.leadership-heading-row .safety-eyebrow { margin-bottom: 0.15rem; }
.leadership-heading-row h2 { margin: 0; color: var(--safety-ink); font-size: 1.2rem; }
.leadership-track { display: flex; gap: 1rem; max-width: 1120px; margin: 0 auto; overflow-x: auto; padding: 0.12rem 0.5rem 0.55rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(16, 61, 49, 0.45) transparent; }
.leadership-card { flex: 0 0 min(340px, 72%); min-width: 0; overflow: hidden; border: 1px solid rgba(16, 61, 49, 0.16); border-radius: 9px; background: white; color: var(--safety-ink); box-shadow: 0 5px 16px rgba(19, 49, 39, 0.12); scroll-snap-align: start; }
.leadership-card:hover { border-color: var(--safety-teal); box-shadow: 0 10px 22px rgba(22, 89, 76, 0.12); }
.leadership-card-header { min-height: 46px; padding: 0.45rem 0.7rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: #104b39; }
.leadership-card-header h3 { min-width: 0; margin: 0; color: white; font-size: 0.78rem; font-weight: 800; line-height: 1.2; }
.leadership-card-header img { flex: 0 0 auto; width: 48px; height: 30px; object-fit: contain; }
.leadership-open-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--safety-accent-dark); font-size: 0.72rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.leadership-open-link:focus-visible { outline: 3px solid var(--safety-teal); outline-offset: 2px; }
.leadership-thumbnail { position: relative; height: 108px; display: grid; place-items: center; overflow: hidden; }
.leadership-thumbnail-video { background-color: #104b39; background-image: repeating-linear-gradient(135deg, transparent 0 24px, rgba(255,255,255,0.045) 24px 25px); }
.leadership-thumbnail-article { background-color: #145a60; background-image: repeating-linear-gradient(45deg, transparent 0 28px, rgba(255,255,255,0.045) 28px 29px); }
.leadership-watermark { position: absolute; right: 0.7rem; top: 50%; color: rgba(255,255,255,0.16); font-size: 5.4rem; line-height: 1; transform: translateY(-50%); pointer-events: none; }
.leadership-format { position: absolute; top: 0.55rem; left: 0.6rem; padding: 0.22rem 0.48rem; border-radius: 999px; background: rgba(8, 40, 32, 0.78); color: white; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }
.leadership-duration { position: absolute; right: 0.55rem; bottom: 0.5rem; padding: 0.2rem 0.42rem; border-radius: 4px; background: rgba(8, 40, 32, 0.78); color: white; font-size: 0.68rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.leadership-play { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.8); border-radius: 50%; background: rgba(12, 47, 39, 0.58); color: white; font-size: 0.9rem; transform: translate(-50%, -50%); box-shadow: 0 3px 12px rgba(0,0,0,0.2); }
.leadership-card-emergency .leadership-watermark { font-size: 5.8rem; }
.leadership-card-copy { padding: 0.6rem 0.75rem 0.7rem; }
.leadership-card-copy h3 { margin: 0; font-size: 0.92rem; line-height: 1.3; }
.leadership-story-role { margin: 0.28rem 0 0.55rem; color: var(--safety-muted); font-size: 0.75rem; }
.leadership-byline { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.4rem; }
.leadership-avatar { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #d4e4dc; border-radius: 50%; background: #e7f2ec; color: #215541; font-size: 0.58rem; font-weight: 800; }
.leadership-byline strong { color: var(--safety-ink); font-size: 0.72rem; }

.safety-form-header {
    width: 100%;
    margin: 0 auto;
    padding: 1rem max(1rem, calc((100vw - 1120px) / 2));
    display: grid;
    grid-template-columns: auto 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(105deg, #103f32, #17624c);
    color: white;
}
.safety-form-header h2 { margin: 0; color: white; font-size: 1.05rem; letter-spacing: 0; }
.safety-form-header > div { min-width: 0; }
.safety-form-header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.safety-form-header .safety-eyebrow { margin-bottom: 0.15rem; color: #a8d8c2; }
.safety-header-logo { width: 32px; height: 32px; object-fit: contain; }
.safety-back-button { min-height: 44px; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0.65rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; background: transparent; color: white; font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.safety-back-button > span:first-child { font-size: 1.2rem; line-height: 1; }
.safety-back-button:hover, .safety-refresh-button:hover { background: rgba(255, 255, 255, 0.12); }
.safety-refresh-button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: white; font-size: 1.35rem; cursor: pointer; }
.safety-header-actions { display: flex; align-items: center; justify-content: flex-end; }
.safety-submit-btn { min-height: 48px; padding: 0.65rem 1.15rem; border: 0; border-radius: 9px; background: var(--safety-accent-dark); color: white; font-weight: 750; cursor: pointer; }
.safety-submit-btn:hover { background: #094c38; }
.safety-submit-btn:disabled { opacity: 0.55; cursor: wait; }
.safety-step-count { color: var(--safety-muted); font-size: 0.78rem; font-weight: 700; }
.safety-form-header .safety-step-count { color: #e4f1ea; }
.safety-privacy-note { margin: 1rem 0 1.25rem; padding: 0.8rem 0.9rem; border-left: 3px solid var(--safety-teal); border-radius: 0 8px 8px 0; background: #eaf4f0; color: #31594b; font-size: 0.8rem; }
.safety-privacy-note strong { display: block; margin-bottom: 0.2rem; color: #174c3c; }
.safety-privacy-note p { margin: 0; line-height: 1.45; }
.safety-progress { display: flex; align-items: flex-start; list-style: none; margin: 0 0 2rem; padding: 0; }
.safety-progress li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--safety-muted); text-align: center; }
.safety-progress li:not(:last-child)::after { position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 4px; border-radius: 4px; background: #dce7e1; content: ""; }
.safety-progress li.completed:not(:last-child)::after { background: var(--safety-accent); }
.safety-progress li > span { z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--safety-border-strong); border-radius: 50%; background: var(--safety-bg); color: var(--safety-muted); font-size: 0.8rem; font-weight: 800; }
.safety-progress li.active > span, .safety-progress li.completed > span { border-color: var(--safety-accent); background: var(--safety-accent); color: white; }
.safety-progress li small { max-width: 100%; font-size: 0.72rem; font-weight: 700; line-height: 1.2; }
.safety-wizard-section { min-height: 390px; }
.safety-secondary-btn { min-height: 48px; padding: 0.65rem 1rem; border: 1px solid var(--safety-border-strong); border-radius: 8px; background: var(--safety-surface); color: var(--safety-ink); font-weight: 700; cursor: pointer; }
.safety-secondary-btn:hover { border-color: var(--safety-ink); }
.safety-wizard-actions { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.safety-review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.safety-review-grid > div, .safety-review-description { padding: 0.9rem; border: 1px solid var(--safety-border); border-radius: 9px; background: var(--safety-surface); }
.safety-review-grid span, .safety-review-description span { display: block; color: var(--safety-muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.safety-review-grid strong { display: block; margin-top: 0.25rem; font-size: 0.95rem; }
.safety-review-description { margin-top: 0.75rem; }
.safety-review-description p { margin: 0.5rem 0 0; white-space: pre-wrap; }
.safety-review-note { padding: 0.85rem 1rem; border-left: 3px solid var(--safety-accent); background: var(--safety-accent-soft); color: var(--safety-muted); font-size: 0.85rem; }
.safety-dashboard-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1rem 0 1.25rem; }
.safety-dashboard-summary span { padding: 0.9rem; border: 1px solid var(--safety-border); border-radius: 9px; background: var(--safety-surface); }
.safety-dashboard-summary strong { display: block; font-size: 1.35rem; }
.safety-dashboard-summary small { color: var(--safety-muted); font-size: 0.78rem; }
.safety-report-list { border-top: 1px solid var(--safety-border); }
.safety-report-row { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--safety-border); cursor: pointer; }
.safety-report-row:hover { background: var(--safety-accent-soft); }
.safety-report-row strong, .safety-report-row small { display: block; }
.safety-report-row small { margin-top: 0.2rem; color: var(--safety-muted); font-size: 0.78rem; }
.safety-report-type, .safety-case-status { font-size: 0.75rem; font-weight: 800; }
.safety-case-status { color: var(--safety-high-risk); }
.safety-case-status.status-closed { color: var(--safety-low-risk); }

.meeting-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 1rem 0; }
.meeting-tab { min-height: 48px; border: 1px solid var(--safety-border); border-radius: 8px; background: var(--safety-surface); color: var(--safety-ink); font-weight: 750; cursor: pointer; }
.meeting-tab.active { border-color: var(--safety-accent-dark); background: var(--safety-accent-soft); color: var(--safety-accent-dark); }
.meeting-record-action { margin: 1rem 0; }
.meeting-row { cursor: default; }
.meeting-row:hover { background: transparent; }
.meeting-include-self { display: flex; align-items: center; gap: 0.5rem; margin: 0.25rem 0 0.6rem; font-weight: 650; }
.meeting-attendee-entry { display: flex; gap: 0.5rem; }
.meeting-attendee-entry input { flex: 1; min-width: 0; }
.meeting-attendee-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.meeting-attendee-chips li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.35rem 0.3rem 0.7rem; border: 1px solid var(--safety-border-strong); border-radius: 999px; background: var(--safety-accent-soft); font-size: 0.85rem; }
.meeting-attendee-chips button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--safety-muted); cursor: pointer; }
.meeting-attendee-chips button:hover { background: rgba(0, 0, 0, 0.08); }

.safety-form-body { width: min(100% - 2rem, 720px); margin: 0 auto; padding: 2.5rem 0 4rem; }
.dashboard-page { width: min(100% - 4rem, 1120px); }
.safety-form-intro { margin-bottom: 2rem; }
.safety-form-intro h1 { font-size: 2.25rem; }
.safety-field { margin-bottom: 1.25rem; }
.safety-field label { display: block; margin-bottom: 0.45rem; color: var(--safety-ink); font-size: 0.82rem; font-weight: 750; }
.safety-field label .required { color: var(--safety-high-risk); margin-right: 0.25rem; }
.safety-readonly-value { min-height: 42px; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--safety-border); color: var(--safety-muted); font-weight: 650; }
.safety-input-wrap { display: flex; align-items: stretch; background: var(--safety-surface); border: 1px solid var(--safety-border-strong); border-radius: 8px; overflow: hidden; }
.safety-input-wrap:focus-within { border-color: var(--safety-accent-dark); outline: 3px solid var(--safety-accent-soft); }
.safety-input-wrap input, .safety-input-wrap select, .safety-input-wrap textarea { width: 100%; flex: 1; min-height: 48px; padding: 0.7rem 0.85rem; border: 0; outline: 0; background: transparent; color: var(--safety-ink); }
.safety-input-wrap select { cursor: pointer; }
.safety-input-wrap textarea { min-height: 120px; resize: vertical; }
.safety-input-wrap input::placeholder, .safety-input-wrap textarea::placeholder { color: #87959b; }

.priority-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.priority-option { min-height: 48px; display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.8rem; border: 1px solid var(--safety-border-strong); border-radius: 8px; background: var(--safety-surface); color: var(--safety-muted); cursor: pointer; font-size: 0.83rem; font-weight: 750; }
.priority-option.selected.high { border-color: var(--safety-high-risk); background: #fff0ee; color: var(--safety-high-risk); }
.priority-option.selected.low { border-color: var(--safety-low-risk); background: #edf9f2; color: var(--safety-low-risk); }
.priority-dot { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.priority-option.selected .priority-dot { box-shadow: inset 0 0 0 3px var(--safety-surface); background: currentColor; }
.safety-status-open { color: var(--safety-high-risk); font-weight: 700; }
.safety-attachments-hint { color: var(--safety-muted); font-size: 0.85rem; }
.safety-add-photo { margin-top: 0.65rem; padding: 0.6rem 0.85rem; border: 1px dashed var(--safety-border-strong); border-radius: 8px; background: transparent; color: var(--safety-info); font-weight: 700; cursor: pointer; }
.photo-capture-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.photo-capture-button { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.6rem 0.85rem; border: 1px solid var(--safety-border-strong); border-radius: 8px; background: var(--safety-surface); color: var(--safety-ink); font-size: 0.82rem; font-weight: 750; cursor: pointer; }
.photo-capture-button:hover { border-color: var(--safety-teal); background: var(--safety-teal-soft); }
.photo-capture-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-capture-upload { color: var(--safety-info); }
.photo-capture-icon { font-size: 1.1rem; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; margin-top: 0.8rem; }
.photo-preview-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--safety-border); }
.safety-form-actions { display: flex; justify-content: flex-end; margin-top: 2rem; }
.safety-submit-large { min-width: 150px; min-height: 46px; }

.safety-metric-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; margin-bottom: 0.75rem; border: 1px solid var(--safety-border); border-radius: var(--safety-radius); background: var(--safety-surface); box-shadow: var(--safety-shadow); }
.safety-metric-value { width: 58px; height: 58px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--safety-accent-soft); color: var(--safety-accent-dark); font-size: 1.45rem; font-weight: 800; }
.metric-secondary { background: #eaf2fb; color: var(--safety-info); }
.safety-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.25rem 0; }
.safety-status-card { padding: 0.9rem; border: 1px solid transparent; border-left: 4px solid; border-radius: var(--safety-radius); box-shadow: var(--safety-shadow); }
.safety-status-card strong { display: block; font-size: 0.72rem; letter-spacing: 0.06em; }
.safety-status-card span { display: block; margin-top: 0.25rem; font-size: 1.45rem; font-weight: 800; }
.safety-status-card small { display: block; margin-top: 0.25rem; color: var(--safety-muted); font-size: 0.72rem; font-weight: 600; }
.status-open { border-color: #d97706; background: #fff6e8; color: #9a5b00; }
.status-closed { border-color: var(--safety-low-risk); background: #eaf6ef; color: var(--safety-low-risk); }
.status-rejected { border-color: var(--safety-high-risk); background: #fff0ee; color: var(--safety-high-risk); }
.status-unassigned { border-color: var(--safety-info); background: #eaf3f8; color: var(--safety-info); }
.status-total { border-color: #174c3c; background: #e9f1ed; color: #174c3c; }
.dashboard-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.dashboard-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.dashboard-chart-card { padding: 1rem; border: 1px solid var(--safety-border); border-radius: var(--safety-radius); background: var(--safety-surface); box-shadow: var(--safety-shadow); }
.dashboard-card-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.8rem; }
.dashboard-card-heading small { color: var(--safety-muted); font-size: 0.72rem; }
.dashboard-bar-row { display: grid; grid-template-columns: minmax(95px, 1fr) 2fr 28px; gap: 0.5rem; align-items: center; margin: 0.55rem 0; font-size: 0.75rem; }
.dashboard-bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-bar-row div { height: 8px; overflow: hidden; border-radius: 8px; background: var(--safety-surface-muted); }
.dashboard-bar-row i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14734f, #2e9a70); }
.dashboard-bar-row i.bar-secondary { background: var(--safety-teal); }
.dashboard-bar-row b { text-align: right; font-size: 0.75rem; }
.dashboard-timeline { margin-bottom: 1rem; }
.timeline-chart { height: 190px; display: flex; align-items: end; gap: clamp(0.35rem, 1.3vw, 1rem); padding: 1rem 0.5rem 0; border-bottom: 1px solid var(--safety-border); }
.timeline-column { min-width: 0; flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 0.3rem; }
.timeline-column i { width: min(28px, 70%); min-height: 8px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #36a982, #126344); }
.timeline-value { color: var(--safety-ink); font-size: 0.7rem; font-weight: 800; }
.timeline-column small { color: var(--safety-muted); font-size: 0.65rem; white-space: nowrap; }
.dashboard-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem; align-items: center; margin: 1.25rem 0 0.75rem; }
.dashboard-toolbar .dashboard-search { grid-column: span 2; }
.dashboard-toolbar input, .dashboard-toolbar select { min-width: 0; height: 48px; padding: 0 0.65rem; border: 1px solid var(--safety-border-strong); border-radius: 8px; background: var(--safety-surface); color: var(--safety-ink); }
.dashboard-search { display: flex; align-items: center; gap: 0.35rem; height: 42px; padding: 0 0.65rem; border: 1px solid var(--safety-border-strong); border-radius: 8px; background: var(--safety-surface); }
.dashboard-search:focus-within { border-color: var(--safety-accent-dark); outline: 3px solid var(--safety-accent-soft); }
.dashboard-search input { width: 100%; height: 100%; padding: 0; border: 0; outline: 0; }
.dashboard-table-meta { display: flex; justify-content: space-between; color: var(--safety-muted); font-size: 0.78rem; margin-bottom: 0.25rem; }
.dashboard-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; color: var(--safety-muted); font-size: 0.85rem; }
.dashboard-print-report { display: none; }
.dashboard-view-tabs { display: none; }
.dashboard-view-panel { display: contents; }
.dashboard-empty-state { margin: 1rem 0; padding: 1.5rem; border: 1px solid var(--safety-border); border-radius: var(--safety-radius); background: var(--safety-surface); text-align: center; }
.dashboard-empty-state h2 { margin: 0; color: var(--safety-ink); font-size: 1.15rem; }
.dashboard-empty-state p { margin: 0.45rem 0 1rem; color: var(--safety-muted); }
.dashboard-case-table-wrap { max-height: min(70vh, 720px); overflow: auto; border: 1px solid var(--safety-border); border-radius: var(--safety-radius); background: var(--safety-surface); box-shadow: var(--safety-shadow); }
.dashboard-case-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 0.82rem; }
.dashboard-case-table th { position: sticky; top: 0; z-index: 1; padding: 0.75rem; background: #e9f1ed; color: #31594b; text-align: left; font-size: 0.72rem; font-weight: 800; }
.sort-header { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.sort-header:hover, .sort-header.active { color: #0e6247; }
.sort-header:focus-visible { outline: 2px solid var(--safety-teal); outline-offset: 2px; }
.sort-indicator { font-size: 0.65rem; opacity: 0.45; }
.sort-header.active .sort-indicator { opacity: 1; }
.dashboard-case-table td { padding: 0.75rem; border-bottom: 1px solid var(--safety-border); color: var(--safety-ink); }
.dashboard-case-table td strong, .dashboard-case-table td small { display: block; }
.dashboard-case-table td small { margin-top: 0.2rem; color: var(--safety-muted); }
.dashboard-case-table a { color: var(--safety-accent-dark); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.dashboard-case-table tbody tr { min-height: 52px; cursor: pointer; }
.dashboard-case-table tbody tr:hover { background: #f0f7f3; }
.dashboard-case-table tbody tr:focus-visible { outline: 3px solid var(--safety-teal); outline-offset: -3px; }

.safety-resource-list { display: grid; gap: 0.65rem; margin-top: 1.5rem; }
.safety-resource-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 1.2rem; border: 1px solid var(--safety-border); border-radius: 8px; background: var(--safety-surface); }
.safety-resource-copy { min-width: 0; }
.safety-resource-copy .safety-eyebrow { margin-bottom: 0.2rem; }
.safety-resource-copy h2 { margin: 0; font-size: 1.05rem; }
.safety-resource-copy > p:last-child { margin: 0.3rem 0 0; color: var(--safety-muted); font-size: 0.85rem; }
.safety-resource-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.45rem; color: var(--safety-accent-dark); font-size: 0.85rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.safety-resource-link:focus-visible { outline: 3px solid var(--safety-teal); outline-offset: 3px; }
.safety-resource-source { margin: 1rem 0 0; color: var(--safety-muted); font-size: 0.78rem; }

@media (max-width: 640px) {
    .safety-topbar { padding: 1rem; }
    .safety-home { width: min(100% - 1.5rem, 520px); padding-top: 1rem; }
    .safety-welcome h1 { font-size: 2.25rem; }
    .safety-form-intro h1 { font-size: 1.75rem; }
    .safety-action-grid { grid-template-columns: 1fr; }
    .safety-action-card { min-height: 62px; padding: 0.45rem 0.65rem; flex-direction: row; align-items: center; }
    .safety-primary-actions { grid-template-columns: 1fr; }
    .safety-secondary-actions { grid-template-columns: 1fr; }
    .home-announcement-inner { grid-template-columns: 28px minmax(0, 1fr) 28px 28px; grid-template-areas: "prev copy next close" ". dots dots ."; gap: 0.15rem 0.25rem; padding: 0.4rem 0.5rem; }
    .home-announcement-copy { align-items: flex-start; flex-wrap: wrap; gap: 0.25rem 0.45rem; }
    .home-announcement-copy p { flex: 1 1 calc(100% - 60px); font-size: 0.72rem; line-height: 1.25; }
    .home-announcement-copy a { margin-left: 0; font-size: 0.68rem; }
    .announcement-pagination { min-height: 12px; justify-content: center; }
    .announcement-dot { width: 8px; height: 8px; }
    .safety-primary-actions .safety-action-card { min-height: 64px; padding: 0.45rem 0.7rem; }
    .safety-primary-actions .safety-action-icon { width: 38px; height: 38px; }
    .leadership-section { padding: 0.75rem 0.75rem 0.55rem; }
    .leadership-card { flex-basis: 72%; }
    .leadership-thumbnail { height: 96px; }
    .safety-form-header { padding: 0.75rem; grid-template-columns: auto 28px minmax(0, 1fr) auto; gap: 0.45rem; }
    .safety-back-button { gap: 0.2rem; padding: 0 0.35rem; }
    .safety-header-logo { width: 28px; height: 28px; }
    .safety-progress li small { font-size: 0.68rem; }
    .safety-form-body { width: min(100% - 1.5rem, 720px); padding-top: 1.75rem; }
    .safety-input-wrap input, .safety-input-wrap select, .safety-input-wrap textarea { min-height: 52px; font-size: 16px; }
    .login-field input, .login-field select { height: 52px; font-size: 16px; }
    .login-sso-button, .login-local-button { min-height: 52px; }
    .safety-status-grid { gap: 0.45rem; }
    .safety-status-card { padding: 0.65rem; }
    .safety-status-card span { font-size: 1.2rem; }
    .safety-review-grid { grid-template-columns: 1fr; }
    .safety-resource-row { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
    .safety-wizard-section { min-height: 0; }
    .safety-dashboard-summary { gap: 0.45rem; }
    .safety-dashboard-summary span { padding: 0.65rem; }
    .safety-report-row { grid-template-columns: 1fr 1fr; }
    .safety-report-row > div:last-child { grid-column: 1 / -1; }
    .dashboard-summary { grid-template-columns: repeat(2, 1fr); }
    .dashboard-charts { grid-template-columns: 1fr; }
    .dashboard-page { width: min(100% - 1.5rem, 720px); }
    .dashboard-toolbar { grid-template-columns: 1fr 1fr; }
    .dashboard-search { grid-column: 1 / -1; }
    .dashboard-toolbar .safety-secondary-btn, .dashboard-toolbar .safety-submit-btn { width: 100%; }
    .dashboard-view-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin: 1rem 0; }
    .dashboard-view-tabs button { min-height: 48px; border: 1px solid var(--safety-border); border-radius: 8px; background: var(--safety-surface); color: var(--safety-ink); font-weight: 750; }
    .dashboard-view-tabs button[aria-pressed="true"] { border-color: var(--safety-accent-dark); background: var(--safety-accent-soft); color: var(--safety-accent-dark); }
    .dashboard-view-panel { display: none; }
    .dashboard-view-panel.is-active { display: block; }
    .dashboard-case-table-wrap { margin-top: 0.5rem; }
    .dashboard-table-meta { gap: 0.5rem; flex-direction: column; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .dashboard-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-search { grid-column: 1 / -1; }
    .dashboard-toolbar .safety-secondary-btn, .dashboard-toolbar .safety-submit-btn { width: 100%; }
}

@media print {
    @page { size: landscape; margin: 12mm; }
    body { background: white; color: #111; }
    .dashboard-no-print, .safety-topbar { display: none !important; }
    .dashboard-print-report { display: block; }
    .dashboard-print-report h1 { margin: 0; font-size: 22px; }
    .dashboard-print-report p { color: #555; }
    .dashboard-print-report table { width: 100%; border-collapse: collapse; font-size: 9px; }
    .dashboard-print-report th, .dashboard-print-report td { padding: 5px; border: 1px solid #ccc; text-align: left; }
    .dashboard-print-report th { background: #eee; }
}

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background-color: #0d4234; background-image: linear-gradient(125deg, rgba(10, 54, 42, 0.97), rgba(19, 91, 68, 0.94)), repeating-linear-gradient(135deg, transparent 0 42px, rgba(255, 255, 255, 0.035) 42px 43px); }
.login-panel { width: min(100%, 440px); padding: 2rem; border: 1px solid var(--safety-border); border-radius: 16px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 20px 50px rgba(23, 37, 45, 0.12); }
.login-brand { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--safety-border); }
.login-brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; mix-blend-mode: multiply; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font-size: 1rem; }
.login-brand span { color: var(--safety-muted); font-size: 0.75rem; }
.login-copy { margin: 2rem 0 1.25rem; }
.login-copy h1 { margin: 0; font-size: 2.2rem; letter-spacing: 0; }
.login-copy p:last-child { color: var(--safety-muted); margin-bottom: 0; }
.login-sso-button, .login-local-button { width: 100%; min-height: 46px; border: 0; border-radius: 8px; font-weight: 800; cursor: pointer; }
.login-sso-button { display: flex; align-items: center; justify-content: center; gap: 0.6rem; background: #183a50; color: white; }
.login-sso-button:hover { background: #102b3d; }
.login-microsoft-mark { display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); gap: 2px; width: 18px; height: 18px; }
.login-microsoft-mark i:nth-child(1) { background: #f25022; }
.login-microsoft-mark i:nth-child(2) { background: #7fba00; }
.login-microsoft-mark i:nth-child(3) { background: #00a4ef; }
.login-microsoft-mark i:nth-child(4) { background: #ffb900; }
.login-divider { display: flex; align-items: center; gap: 0.7rem; margin: 1.5rem 0; color: var(--safety-muted); font-size: 0.75rem; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--safety-border); }
.login-field { margin-bottom: 0.9rem; }
.login-field label { display: block; margin-bottom: 0.35rem; font-size: 0.78rem; font-weight: 750; }
.login-field input, .login-field select { width: 100%; height: 44px; padding: 0 0.75rem; border: 1px solid var(--safety-border-strong); border-radius: 8px; color: var(--safety-ink); background: white; }
.login-field input:focus, .login-field select:focus { border-color: var(--safety-teal); outline: 3px solid var(--safety-teal-soft); }
.login-local-button { margin-top: 0.5rem; background: var(--safety-accent); color: white; }
.login-local-button:hover { background: var(--safety-accent-dark); }
.login-notice { margin-top: 0.75rem; padding: 0.75rem; border-left: 3px solid var(--safety-teal); background: var(--safety-teal-soft); color: var(--safety-muted); font-size: 0.78rem; }
.login-error { color: var(--safety-high-risk); font-size: 0.82rem; font-weight: 700; }
.login-security-note { margin: 1rem 0 0; color: var(--safety-muted); font-size: 0.7rem; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
    .safety-action-card, .safety-stats-panel { transition: none; }
}
