:root {
    --ink: #382d26;
    --muted: #82776e;
    --paper: #f8f6f2;
    --white: #fffdf9;
    --green: #70513d;
    --green-deep: #3d2c23;
    --coral: #a9684e;
    --line: #e9e1d8;
    --sand: #d4b895;
    --sage: #788474;
    --shadow: 0 18px 44px rgba(61, 44, 35, .08);
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'Open Sans', sans-serif; }
body a { transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease; }

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 20;
    padding: 10px 16px;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
}
.skip-link:focus { top: 12px; }

header {
    position: relative;
    z-index: 10;
    padding: 0;
    background: var(--green-deep);
    box-shadow: 0 5px 22px rgba(44, 31, 24, .12);
}
header .container { width: min(1180px, calc(100% - 40px)); }
header nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
header #logo { width: auto; }
header #logo .brand-link { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand-icon {
    display: grid;
    width: 48px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 12px;
    color: #e4c9a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}
.brand-name { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1px; line-height: 1.25; }
.brand-name span { display: block; margin-top: 3px; color: #c9b8a8; font-size: 9px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
header nav ul { display: flex; align-items: center; gap: 5px; }
header nav ul li { float: none; }
header nav a { padding: 10px 13px; color: #e2d9d0; font-size: 12px; font-weight: 600; letter-spacing: .15px; }
header nav ul li.active a, header nav ul li a:hover { color: #fff; }
header nav li.last-grid a { margin: 0 0 0 10px; padding: 11px 16px; border: 1px solid #d6bd9e; border-radius: 7px; background: #d6bd9e; color: #39291f; font-size: 12px; font-weight: 700; letter-spacing: .1px; }
header nav li.last-grid a:hover { background: #e5d1b8; color: #39291f; transform: translateY(-1px); }
header nav li.last-grid a span { padding-left: 5px; }
header .toggle { color: #fff; }

.dashboard { overflow: hidden; background: var(--paper); }
.dashboard-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.dashboard-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 82% 25%, rgba(216, 184, 146, .2), transparent 28%),
        radial-gradient(ellipse at 75% 100%, rgba(139, 103, 74, .36), transparent 38%),
        linear-gradient(118deg, #38291f 5%, #4b372a 56%, #624a37 100%);
    color: #fff;
}
.dashboard-hero:after {
    position: absolute;
    right: -85px;
    bottom: -240px;
    width: 510px;
    height: 510px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 86px rgba(255,255,255,.02);
    content: "";
}
.hero-layout { position: relative; z-index: 1; display: flex; min-height: 440px; align-items: center; justify-content: space-between; gap: 50px; padding-top: 40px; padding-bottom: 48px; }
.hero-copy { max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #ddc19d; font-size: 10px; font-weight: 800; letter-spacing: 1.65px; }
.eyebrow-dark { color: #927454; }
.live-dot, .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d7b58d; box-shadow: 0 0 0 4px rgba(215, 181, 141, .16); }
.hero-copy h1 { margin: 21px 0 14px; color: #fff; font-family: 'Poppins', sans-serif; font-size: clamp(36px, 5vw, 58px); font-weight: 600; letter-spacing: -2.5px; line-height: 1.12; }
.hero-copy h1 span { color: #e1c29c; }
.hero-copy > p { max-width: 610px; margin: 0; color: #ddd2c7; font-size: 15px; line-height: 1.8; letter-spacing: .1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 12px; padding: 0 17px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #d6b895; color: #39291f; box-shadow: 0 9px 20px rgba(30, 20, 14, .2); }
.button-primary:hover { background: #e5d1b8; color: #39291f; }
.button-quiet { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.button-quiet:hover { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.06); }
.hero-attribution { margin-top: 32px; color: #c8b7a7; font-size: 11px; }
.hero-attribution strong { color: #f1e9e1; font-weight: 600; }
.hero-aside { width: 235px; flex: 0 0 235px; padding: 35px 27px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.055); backdrop-filter: blur(7px); }
.aside-mark { color: rgba(255,255,255,.94); font-family: 'Poppins', sans-serif; font-size: 58px; font-weight: 600; letter-spacing: -5px; line-height: 1; }
.aside-mark span { color: #d6b895; }
.aside-rule { width: 35px; height: 2px; margin: 24px 0 17px; background: #d6b895; }
.hero-aside p { margin: 0; color: #d1c2b5; font-size: 13px; line-height: 1.7; letter-spacing: .1px; }
.hero-aside p strong { color: #fff; }
.aside-caption { display: block; margin-top: 29px; color: #c2ad99; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }

.dashboard-content { padding-top: 58px; padding-bottom: 75px; }
.section-heading, .report-card-heading, .incident-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.section-heading h2, .incident-heading h2 { margin: 9px 0 5px; font-family: 'Poppins', sans-serif; font-size: 27px; font-weight: 600; letter-spacing: -.8px; }
.section-heading p, .incident-heading p { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.updated-label { padding-bottom: 6px; color: #82776e; font-size: 11px; }
.updated-label strong { color: #514035; font-weight: 700; }
.status-dot { width: 6px; height: 6px; margin-right: 7px; background: #788474; box-shadow: 0 0 0 4px rgba(120,132,116,.15); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.metric-card { position: relative; display: flex; min-height: 165px; flex-direction: column; align-items: flex-start; padding: 22px 23px; border: 1px solid #ece5dc; border-radius: 12px; background: var(--white); box-shadow: 0 5px 18px rgba(61, 44, 35, .035); transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease; }
.has-motion .metric-card, .has-motion .report-card, .has-motion .incident-section { opacity: 0; transform: translateY(12px); }
.metric-card.is-visible, .report-card.is-visible, .incident-section.is-visible { opacity: 1; transform: translateY(0); }
.metric-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.metric-primary { border-color: #634832; background: linear-gradient(145deg, #70513d, #4b3629); color: #fff; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; margin-bottom: 13px; border-radius: 9px; background: rgba(255,255,255,.13); color: #e3c9a9; font-size: 18px; }
.icon-coral { background: #f5ece4; color: #a9684e; }
.icon-gold { background: #f5eee4; color: #927454; }
.metric-label { color: #82776e; font-size: 11px; font-weight: 600; }
.metric-primary .metric-label { color: #e0d1c3; }
.metric-value { margin-top: 3px; color: #44352a; font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.2; }
.metric-primary .metric-value { color: #fff; }
.metric-note { margin-top: auto; padding-top: 9px; color: #91a09c; font-size: 10px; }
.metric-primary .metric-note { color: #d0bdab; }
.metric-context { justify-content: center; background: #f1e8dc; border-color: #f1e8dc; }
.context-value { margin-top: 9px; color: #574230; font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.45px; }
.metric-context .metric-note { margin-top: 2px; }

.report-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 17px; margin-top: 21px; }
.report-card { min-width: 0; padding: 24px 25px 19px; border: 1px solid #ece5dc; border-radius: 12px; background: var(--white); box-shadow: 0 5px 18px rgba(61, 44, 35, .035); transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease; }
.report-card:hover { box-shadow: var(--shadow); }
.report-card-heading { align-items: center; }
.report-card h3 { margin: 6px 0 0; color: #44352a; font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.45px; }
.select-wrap select { min-width: 128px; padding: 9px 28px 9px 11px; border: 1px solid var(--line); border-radius: 6px; outline: none; background: var(--white); color: #514035; font-family: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.select-wrap select:focus, .incident-search:focus-within { border-color: #b79773; box-shadow: 0 0 0 3px rgba(171, 132, 93, .15); }
.chart-frame { position: relative; width: 100%; }
.trend-frame { height: 245px; margin-top: 17px; }
.breakdown-frame { height: 270px; margin-top: 15px; }
.chart-footnote { margin-top: 8px; color: #998f85; font-size: 10px; letter-spacing: 0; }
.chart-switch { display: flex; gap: 3px; padding: 3px; border-radius: 7px; background: #f3eee8; }
.chart-switch-button { padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: #85786c; font-family: inherit; font-size: 9px; font-weight: 700; cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.chart-switch-button.is-active { background: var(--white); color: #5b4030; box-shadow: 0 2px 6px rgba(61, 44, 35, .12); }
.chart-switch-button:focus-visible, .button:focus-visible, a:focus-visible { outline: 3px solid rgba(169, 104, 78, .5); outline-offset: 3px; }

.incident-section { margin-top: 52px; transition: opacity .55s ease, transform .55s ease; }
.incident-heading { align-items: flex-end; margin-bottom: 20px; }
.incident-search { display: flex; width: min(330px, 100%); align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e6ddd3; border-radius: 7px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.incident-search > span:first-child { color: #887a6e; font-size: 23px; line-height: 1; }
.incident-search input { width: 100%; height: 40px; border: 0; outline: 0; background: transparent; color: #514035; font-family: inherit; font-size: 10px; }
.incident-search input::placeholder { color: #9b9085; }
.incident-search kbd { min-width: 19px; padding: 2px 5px; border: 1px solid #e6ddd3; border-radius: 4px; color: #988b80; font-family: inherit; font-size: 9px; text-align: center; }
.incident-table-wrap { overflow: hidden; border: 1px solid #e8e0d7; border-radius: 11px; background: var(--white); box-shadow: 0 5px 18px rgba(61, 44, 35, .035); }
.incident-table { width: 100%; border-collapse: collapse; text-align: left; }
.incident-table th { padding: 13px 17px; background: #f6f1eb; color: #897b6f; font-size: 9px; font-weight: 700; letter-spacing: .75px; text-transform: uppercase; }
.incident-table td { padding: 15px 17px; border-top: 1px solid #eee8e0; color: #5b5047; font-size: 11px; }
.incident-table tbody tr { transition: background .18s ease; }
.incident-table tbody tr:hover { background: #fbf8f4; }
.incident-table tbody tr[hidden] { display: none; }
.incident-type { display: inline-flex; align-items: center; gap: 6px; color: #936047; font-weight: 700; }
.incident-type span { opacity: 0; font-size: 11px; transition: opacity .18s ease, transform .18s ease; }
.incident-type:hover { color: #704531; }
.incident-type:hover span { opacity: 1; transform: translate(2px, -2px); }
.country-tag { display: inline-block; padding: 5px 8px; border-radius: 5px; background: #edf0e9; color: #66745f; font-size: 9px; font-weight: 700; }
.incident-date { white-space: nowrap; color: #82776e !important; }
.empty-state { padding: 28px !important; color: #82776e !important; text-align: center; }
.search-empty { padding: 18px; color: #82776e; font-size: 11px; text-align: center; }
.incident-footer { display: flex; justify-content: space-between; gap: 15px; padding: 13px 2px; color: #958a7f; font-size: 10px; }
.incident-footer a { color: #70513d; font-weight: 700; }
.incident-footer a:hover { color: var(--coral); }

.dashboard-report { min-height: 65vh; background: var(--paper); }
.report-content { padding-top: 45px; padding-bottom: 75px; }
.report-page-heading { max-width: 720px; margin-bottom: 25px; }
.report-page-heading .back-link { display: inline-block; margin-bottom: 23px; color: #806247; font-size: 11px; font-weight: 700; }
.report-page-heading .back-link:hover { color: var(--coral); transform: translateX(-2px); }
.report-page-heading h1 { margin: 8px 0; color: #44352a; font-family: 'Poppins', sans-serif; font-size: clamp(29px, 4vw, 42px); font-weight: 600; letter-spacing: -1.5px; }
.report-page-heading p { color: var(--muted); font-size: 13px; letter-spacing: 0; }
.report-explorer { opacity: 1; transform: none; padding: 27px 29px; }
.report-explorer h2 { font-size: 20px; }
.report-filter { display: flex; min-width: 230px; flex-direction: column; gap: 6px; color: #778681; font-size: 10px; font-weight: 700; }
.report-filter select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; outline: none; background: var(--white); color: #514035; font-family: inherit; font-size: 11px; }
.report-filter select:focus { border-color: #b79773; box-shadow: 0 0 0 3px rgba(171, 132, 93, .15); }
.report-summary { display: flex; align-items: center; gap: 28px; margin: 23px 0 15px; padding: 15px 17px; border-radius: 8px; background: #f3eee8; }
.report-summary div { display: flex; flex-direction: column; gap: 3px; }
.report-summary strong { color: #5b4030; font-family: 'Poppins', sans-serif; font-size: 20px; line-height: 1.15; }
.report-summary span { color: #918478; font-size: 9px; }
.report-summary p { margin-left: auto; color: #82776e; font-size: 10px; letter-spacing: 0; text-align: right; }
.report-chart-frame { position: relative; height: min(58vh, 500px); min-height: 280px; margin-top: 13px; }
.report-empty { padding: 35px 10px; color: #81918b; font-size: 12px; text-align: center; }

footer { background: #3d2c23; color: #e5ddd4; }
footer h4 { color: #fff; font-size: 15px; font-weight: 600; }
footer p, footer a { color: #c9b9a9; font-size: 12px; letter-spacing: 0; }
footer a:hover { color: #fff; }
.copyright { background: #30221b; }
.copyright p { color: #b39f8c; font-size: 10px; letter-spacing: 0; }
.move-top a { color: #d6b895; }

@media (max-width: 900px) {
    header .container { width: calc(100% - 34px); }
    header nav { flex-wrap: wrap; }
    header nav ul { gap: 0; }
    header nav a { padding-right: 9px; padding-left: 9px; font-size: 11px; }
    .hero-aside { width: 195px; flex-basis: 195px; padding: 27px 22px; }
    .report-grid { grid-template-columns: 1fr; }
    .breakdown-frame { height: 300px; }
}
@media (max-width: 991px) {
    header nav { position: relative; display: block; min-height: 0; padding: 13px 0 !important; }
    header #logo { display: block; width: auto; float: none; text-align: left; }
    header .toggle { position: absolute; top: 20px; right: 0; display: block; float: none; margin: 0; padding: 6px 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: transparent; color: #fff; font-size: 17px; }
    header .toggle:hover { background: rgba(255,255,255,.09); color: #fff; }
    header nav ul.menu { display: none; float: none; padding: 13px 0 2px; text-align: left; }
    header #drop:checked + ul.menu { display: block; width: 100%; padding: 13px 0 2px; background: transparent; }
    header nav ul li { display: block; width: 100%; float: none; padding: 0; }
    header nav ul li a { display: block; padding: 11px 4px; color: #e2d9d0; }
    header nav ul li.active a { color: #fff; }
    header nav li.last-grid a { display: inline-block; margin: 7px 0 3px; padding: 10px 15px; border: 1px solid #d6bd9e; color: #39291f; }
}
@media (max-width: 767px) {
    header #drop { position: absolute; top: 15px; right: 0; width: 42px; height: 42px; margin: 0; opacity: 0; }
    .hero-layout { min-height: 0; padding-top: 69px; padding-bottom: 55px; }
    .hero-aside { display: none; }
    .dashboard-content { padding-top: 43px; padding-bottom: 54px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .metric-card { min-height: 150px; padding: 17px; }
    .metric-value { font-size: 30px; }
    .section-heading, .incident-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .updated-label { padding-bottom: 0; }
    .incident-search { width: 100%; }
    .incident-table-wrap { overflow-x: auto; }
    .incident-table { min-width: 700px; }
    .incident-footer { align-items: flex-start; flex-direction: column; }
    .report-content { padding-top: 31px; padding-bottom: 48px; }
    .report-explorer { padding: 20px 16px; }
    .report-filter { min-width: 100%; }
    .report-summary { flex-wrap: wrap; gap: 16px 25px; }
    .report-summary p { width: 100%; margin: 0; text-align: left; }
    .report-chart-frame { height: 360px; }
}
@media (max-width: 480px) {
    .dashboard-shell { width: calc(100% - 30px); }
    .hero-copy h1 { font-size: 37px; letter-spacing: -1.6px; }
    .hero-copy > p { font-size: 13px; }
    .hero-actions { align-items: stretch; flex-direction: column; max-width: 245px; }
    .section-heading h2, .incident-heading h2 { font-size: 23px; }
    .report-card { padding: 18px 15px 15px; }
    .report-card-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
    .trend-frame { height: 220px; }
    .breakdown-frame { height: 260px; }
    .metric-grid { gap: 9px; }
    .metric-card { min-height: 143px; padding: 14px; }
    .metric-label { font-size: 10px; }
    .metric-value { font-size: 27px; }
}
.form-page { min-height: 65vh; padding: 58px 0 76px; background: var(--paper); }
.form-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.form-back-link { display: inline-block; margin-bottom: 27px; color: #806247; font-size: 11px; font-weight: 700; }
.form-back-link:hover { color: #a9684e; transform: translateX(-2px); }
.auth-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .75fr); align-items: center; gap: clamp(45px, 9vw, 125px); min-height: 500px; }
.auth-intro h1, .intake-intro h1, .admin-page-heading h1 { margin: 12px 0 12px; color: #44352a; font-family: 'Poppins', sans-serif; font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -1.7px; line-height: 1.15; }
.auth-intro > p, .intake-intro > p, .admin-page-heading > p { max-width: 480px; color: #82776e; font-size: 14px; letter-spacing: 0; line-height: 1.8; }
.auth-note { display: flex; align-items: center; gap: 13px; margin-top: 37px; padding-top: 22px; border-top: 1px solid #e8dfd5; }
.auth-note-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #eee5da; color: #76563e; font-size: 19px; }
.auth-note div { display: flex; flex-direction: column; gap: 4px; }
.auth-note strong { color: #594637; font-size: 11px; }
.auth-note div span { color: #918478; font-size: 10px; }
.auth-card, .intake-card, .admin-form-card { border: 1px solid #e9e1d8; border-radius: 14px; background: #fffdf9; box-shadow: 0 20px 55px rgba(61, 44, 35, .07); }
.auth-card { padding: clamp(25px, 4vw, 38px); }
.auth-card-heading h2, .intake-card-heading h2 { margin: 7px 0 6px; color: #44352a; font-family: 'Poppins', sans-serif; font-size: 23px; font-weight: 600; letter-spacing: -.7px; }
.auth-card-heading > p, .intake-card-heading p { color: #8a7f75; font-size: 11px; letter-spacing: 0; }
.auth-form { display: grid; gap: 19px; margin-top: 25px; }
.form-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.form-field label { color: #514035; font-size: 10px; font-weight: 700; }
.form-field label > span:not(.optional-label) { color: #a9684e; }
.form-field .optional-label { float: right; color: #9b9085; font-size: 9px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #e5ddd3;
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #443a32;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 125px; resize: vertical; line-height: 1.65; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #aaa096; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #b79773; box-shadow: 0 0 0 3px rgba(171, 132, 93, .14); }
.password-field { position: relative; }
.password-field input { padding-right: 59px; }
.password-toggle { position: absolute; top: 50%; right: 12px; padding: 3px; transform: translateY(-50%); border: 0; background: transparent; color: #806247; font-family: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.password-toggle:focus-visible { outline: 2px solid #a9684e; outline-offset: 3px; }
.form-submit { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; border: 0; border-radius: 7px; background: #70513d; color: #fff; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.form-submit:hover { transform: translateY(-1px); background: #5b4030; color: #fff; box-shadow: 0 8px 18px rgba(61, 44, 35, .15); }
.form-submit:focus-visible { outline: 3px solid rgba(169, 104, 78, .45); outline-offset: 3px; }
.form-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.auth-form .form-submit { margin-top: 3px; }
.auth-help, .success-contact { margin-top: 19px; color: #918478; font-size: 10px; line-height: 1.7; }
.auth-help a, .success-contact a { color: #805c3f; font-weight: 700; }
.auth-help a:hover, .success-contact a:hover { color: #a9684e; }
.form-alert { margin-top: 19px; padding: 11px 13px; border-radius: 6px; font-size: 10px; line-height: 1.6; }
.form-alert-error { border: 1px solid #efd5cb; background: #fbf0eb; color: #8b4937; }

.intake-layout { display: grid; grid-template-columns: minmax(260px, .62fr) minmax(0, 1fr); align-items: start; gap: clamp(35px, 6vw, 75px); }
.intake-intro { position: sticky; top: 28px; padding-top: 3px; }
.intake-intro h1 { max-width: 420px; }
.intake-intro > p { max-width: 390px; }
.intake-points { display: grid; gap: 20px; margin-top: 35px; }
.intake-points > div { display: flex; align-items: flex-start; gap: 13px; }
.point-number { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid #dfcfbb; border-radius: 50%; color: #866749; font-size: 9px; font-weight: 700; }
.intake-points > div > span:last-child { display: flex; flex-direction: column; gap: 4px; padding-top: 1px; }
.intake-points strong { color: #514035; font-size: 11px; }
.intake-points small { color: #93887d; font-size: 10px; line-height: 1.5; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 34px; padding: 14px; border: 1px solid #e9dfd3; border-radius: 8px; background: #f2ece4; }
.privacy-note > span { color: #8b6a48; font-size: 17px; line-height: 1; }
.privacy-note p { color: #7d7063; font-size: 9px; line-height: 1.65; letter-spacing: 0; }
.privacy-note strong { color: #5d4837; }
.intake-card { padding: clamp(22px, 3.5vw, 34px); }
.intake-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 21px; border-bottom: 1px solid #eee7df; }
.intake-card-heading h2 { font-size: 21px; }
.intake-card-heading p > span { color: #a9684e; }
.private-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 20px; background: #edf0e9; color: #68745f; font-size: 9px; font-weight: 700; white-space: nowrap; }
.private-badge span { font-size: 7px; }
.intake-form { padding-top: 21px; }
.form-section-heading { display: flex; align-items: flex-start; gap: 11px; margin: 1px 0 16px; }
.form-section-heading:not(:first-child) { margin-top: 27px; padding-top: 23px; border-top: 1px solid #eee7df; }
.form-section-heading > span { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 7px; background: #eee5da; color: #73533c; font-size: 10px; font-weight: 700; }
.form-section-heading h3 { margin: 1px 0 3px; color: #514035; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: -.2px; }
.form-section-heading p { color: #958a7f; font-size: 9px; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 13px; }
.form-field-wide { grid-column: 1 / -1; }
.field-help-row { display: flex; justify-content: space-between; gap: 12px; color: #978b7f; font-size: 9px; }
.field-help-row small:last-child { flex: 0 0 auto; }
.field-help { color: #978b7f; font-size: 9px; line-height: 1.5; }
.submission-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee7df; }
.submission-footer > p { color: #85796e; font-size: 9px; letter-spacing: 0; }
.submission-footer > p > span { margin-right: 5px; color: #788474; font-size: 8px; }
.submission-footer > p strong { color: #594637; }
.submission-footer .form-submit { min-width: 200px; }
.success-panel { max-width: 470px; margin: 30px auto; text-align: center; }
.success-mark { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 23px; border-radius: 50%; background: #edf0e9; color: #68745f; font-size: 24px; }
.success-panel h2 { margin: 9px 0; color: #44352a; font-family: 'Poppins', sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.6px; }
.success-panel > p { color: #82776e; font-size: 11px; line-height: 1.8; letter-spacing: 0; }
.success-return { margin-top: 22px; text-align: left; }
.success-contact { margin-top: 14px !important; }

.admin-form-shell { max-width: 920px; }
.admin-page-heading { margin: 0 0 24px; }
.admin-page-heading h1 { margin: 7px 0 5px; font-size: 36px; }
.admin-page-heading > p { font-size: 12px; }
.admin-form-card { padding: clamp(20px, 4vw, 35px); }
.form-status-note { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; padding: 13px 15px; border-radius: 7px; background: #f2ece4; }
.form-status-note strong { color: #644a35; font-size: 10px; }
.form-status-note span { color: #897b6d; font-size: 9px; }

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 900px) {
    .auth-layout { grid-template-columns: minmax(0, .8fr) minmax(340px, .9fr); gap: 34px; }
    .intake-layout { grid-template-columns: minmax(230px, .55fr) minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
    .form-page { padding: 37px 0 52px; }
    .form-shell { width: calc(100% - 32px); }
    .auth-layout, .intake-layout { grid-template-columns: 1fr; gap: 28px; }
    .auth-layout { min-height: 0; }
    .intake-intro { position: static; }
    .intake-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 23px; }
    .intake-points > div { gap: 8px; }
    .point-number { width: 25px; height: 25px; flex-basis: 25px; }
    .privacy-note { margin-top: 20px; }
}
@media (max-width: 480px) {
    .auth-layout { gap: 23px; }
    .auth-card { padding: 22px 18px; }
    .auth-intro h1, .intake-intro h1 { font-size: 35px; }
    .intake-points { grid-template-columns: 1fr; gap: 12px; }
    .intake-points > div { align-items: center; }
    .intake-card { padding: 19px 15px; }
    .intake-card-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
    .form-grid { grid-template-columns: 1fr; gap: 13px; }
    .form-field-wide { grid-column: auto; }
    .submission-footer { align-items: stretch; flex-direction: column; }
    .submission-footer .form-submit { width: 100%; }
    .admin-page-heading h1 { font-size: 31px; }
}

.case-management-page { min-height: 70vh; padding: 54px 0 76px; background: var(--paper); }
.case-management-shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.case-management-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.case-management-heading h1 { margin: 8px 0 6px; color: #44352a; font-family: 'Poppins', sans-serif; font-size: clamp(32px, 4vw, 43px); font-weight: 600; letter-spacing: -1.6px; }
.case-management-heading p { max-width: 590px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.case-primary-action, .case-secondary-action { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid #70513d; border-radius: 7px; background: #70513d; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.case-primary-action:hover, .case-secondary-action:hover { transform: translateY(-1px); background: #5b4030; color: #fff; box-shadow: 0 7px 16px rgba(61, 44, 35, .15); }
.case-primary-action > span { font-size: 17px; font-weight: 400; line-height: 1; }
.case-flash { margin: 0 0 18px; padding: 13px 15px; border-radius: 7px; font-size: 11px; line-height: 1.6; }
.case-flash-success { border: 1px solid #d5e0d1; background: #edf2e9; color: #52654b; }
.case-flash-error { border: 1px solid #efd5cb; background: #fbf0eb; color: #8b4937; }
.case-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 21px; }
.case-metric-card { display: flex; min-height: 128px; flex-direction: column; align-items: flex-start; padding: 19px 21px; border: 1px solid #ece5dc; border-radius: 11px; background: var(--white); box-shadow: 0 5px 18px rgba(61, 44, 35, .035); transition: transform .2s ease, box-shadow .2s ease; }
.case-metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.case-metric-highlight { border-color: #634832; background: linear-gradient(145deg, #70513d, #4b3629); }
.case-metric-label { color: #82776e; font-size: 10px; font-weight: 600; }
.case-metric-card strong { margin-top: 5px; color: #44352a; font-family: 'Poppins', sans-serif; font-size: 29px; font-weight: 600; letter-spacing: -1px; line-height: 1.2; }
.case-metric-highlight .case-metric-label, .case-metric-highlight strong { color: #fff; }
.case-metric-caption { margin-top: auto; padding-top: 8px; color: #958a7f; font-size: 9px; }
.case-metric-highlight .case-metric-caption { color: #d3c2b2; }
.case-list-card { overflow: hidden; border: 1px solid #e9e1d8; border-radius: 12px; background: var(--white); box-shadow: 0 12px 35px rgba(61, 44, 35, .045); }
.case-list-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 25px 26px 20px; border-bottom: 1px solid #eee7df; }
.case-list-heading h2 { margin: 6px 0 4px; color: #44352a; font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.case-list-heading p { margin: 0; color: #918478; font-size: 10px; }
.case-search-form { display: flex; min-width: min(420px, 50%); align-items: center; gap: 8px; padding: 4px 5px 4px 10px; border: 1px solid #e5ddd3; border-radius: 7px; background: #fff; }
.case-search-form:focus-within { border-color: #b79773; box-shadow: 0 0 0 3px rgba(171, 132, 93, .14); }
.case-search-form > span { color: #887a6e; font-size: 20px; line-height: 1; }
.case-search-form input { width: 100%; min-width: 80px; height: 34px; padding: 0 2px; border: 0; outline: 0; background: transparent; color: #514035; font: 10px 'Open Sans', sans-serif; }
.case-search-form input::placeholder { color: #9b9085; }
.case-search-form button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 5px; background: #f0e8de; color: #654a35; font: 700 9px 'Open Sans', sans-serif; cursor: pointer; transition: background .2s ease; }
.case-search-form button:hover { background: #e6d6c3; }
.case-clear-search { color: #8e6d4e; font-size: 9px; font-weight: 700; white-space: nowrap; }
.case-table-wrap { overflow-x: auto; }
.case-table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; }
.case-table th { padding: 12px 15px; background: #f6f1eb; color: #897b6f; font-size: 9px; font-weight: 700; letter-spacing: .65px; text-transform: uppercase; }
.case-table td { padding: 14px 15px; border-top: 1px solid #eee8e0; color: #5b5047; font-size: 10px; vertical-align: middle; }
.case-table tbody tr { transition: background .18s ease; }
.case-table tbody tr:hover { background: #fbf8f4; }
.case-type-link { display: block; color: #79583e; font-size: 10px; font-weight: 700; }
.case-type-link:hover { color: #a9684e; }
.case-row-subtitle { display: block; max-width: 220px; overflow: hidden; margin-top: 3px; color: #9a8f84; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.case-date { color: #82776e !important; white-space: nowrap; }
.case-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.case-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.case-status-published { background: #edf0e9; color: #66745f; }
.case-status-pending { background: #f5eee4; color: #927454; }
.case-actions { display: flex; align-items: center; gap: 12px; }
.case-edit-action, .case-delete-action { padding: 4px 0; border: 0; background: none; font: 700 9px 'Open Sans', sans-serif; cursor: pointer; }
.case-edit-action { color: #745238; }
.case-edit-action:hover { color: #a9684e; text-decoration: underline; }
.case-delete-form { margin: 0; }
.case-delete-action { color: #a04f3c; }
.case-delete-action:hover { color: #7d3325; text-decoration: underline; }
.case-edit-action:focus-visible, .case-delete-action:focus-visible, .case-pagination a:focus-visible, .case-search-form button:focus-visible, .case-primary-action:focus-visible { outline: 3px solid rgba(169, 104, 78, .4); outline-offset: 3px; }
.case-list-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid #eee7df; color: #92877c; font-size: 9px; }
.case-pagination { display: flex; align-items: center; gap: 13px; }
.case-pagination a { color: #70513d; font-weight: 700; }
.case-pagination a:hover { color: #a9684e; }
.case-pagination span { color: #82776e; }
.case-empty-state { padding: 58px 20px; text-align: center; }
.case-empty-state > span { display: grid; width: 44px; height: 44px; place-items: center; margin: 0 auto 13px; border-radius: 12px; background: #f2ece4; color: #806247; font-size: 25px; }
.case-empty-state h3 { margin: 0 0 6px; color: #514035; font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 600; }
.case-empty-state p { margin-bottom: 17px; color: #918478; font-size: 10px; }
.case-secondary-action { min-height: 37px; font-size: 10px; }
.case-cancel-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid #e3d9ce; border-radius: 7px; color: #6f5c4c; font-size: 10px; font-weight: 700; }
.case-cancel-action:hover { border-color: #cbb8a4; background: #f8f4ee; color: #5c4431; }
.submission-footer .case-cancel-action { margin-right: auto; }
.case-detail-page { min-height: 70vh; padding: 51px 0 72px; background: var(--paper); }
.case-detail-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.case-detail-hero { position: relative; overflow: hidden; padding: clamp(25px, 5vw, 48px); border-radius: 14px; background: linear-gradient(118deg, #38291f 5%, #4b372a 56%, #624a37 100%); color: #fff; }
.case-detail-hero:after { position: absolute; right: -80px; bottom: -240px; width: 400px; height: 400px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.025), 0 0 0 74px rgba(255,255,255,.02); content: ""; }
.case-detail-hero > * { position: relative; z-index: 1; }
.case-detail-hero .form-back-link { margin-bottom: 28px; color: #e1c29c; }
.case-detail-hero h1 { max-width: 740px; margin: 13px 0 8px; color: #fff; font-family: 'Poppins', sans-serif; font-size: clamp(30px, 4.5vw, 46px); font-weight: 600; letter-spacing: -1.5px; }
.case-detail-hero p { margin: 0; color: #d8cbbf; font-size: 12px; line-height: 1.7; }
.case-detail-hero .case-status { margin-top: 18px; }
.case-detail-hero .case-status-published { background: rgba(224, 238, 215, .14); color: #d8e6ce; }
.case-detail-hero .case-status-pending { background: rgba(231, 206, 170, .16); color: #f0d7b4; }
.case-detail-actions { display: flex; gap: 10px; margin-top: 22px; }
.case-detail-actions a { display: inline-flex; min-height: 37px; align-items: center; padding: 0 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; color: #fff; font-size: 10px; font-weight: 700; }
.case-detail-actions a:hover { border-color: #e1c29c; background: rgba(255,255,255,.08); color: #fff; }
.case-detail-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin-top: 17px; }
.case-detail-card { padding: 23px; border: 1px solid #e9e1d8; border-radius: 11px; background: var(--white); box-shadow: 0 6px 20px rgba(61, 44, 35, .035); }
.case-detail-card h2 { margin: 0 0 18px; color: #514035; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; }
.case-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 20px; margin: 0; }
.case-detail-facts div { min-width: 0; }
.case-detail-facts dt { margin-bottom: 4px; color: #93887d; font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.case-detail-facts dd { margin: 0; color: #51453b; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.case-detail-description { color: #65584d; font-size: 11px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.case-detail-source { display: inline-flex; margin-top: 15px; color: #79583e; font-size: 10px; font-weight: 700; }
.case-detail-source:hover { color: #a9684e; }
.case-detail-empty { margin: 70px auto; text-align: center; }
.case-detail-empty h1 { color: #514035; font-family: 'Poppins', sans-serif; font-size: 28px; }
.case-detail-empty p { color: #82776e; font-size: 12px; }

@media (max-width: 760px) {
    .case-management-heading, .case-list-heading { align-items: stretch; flex-direction: column; }
    .case-management-heading { align-items: flex-start; }
    .case-list-heading { padding: 21px 18px 17px; }
    .case-search-form { min-width: 0; width: 100%; }
    .case-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .case-management-page, .case-detail-page { padding: 35px 0 50px; }
    .case-management-shell, .case-detail-shell { width: calc(100% - 30px); }
    .case-management-heading { gap: 18px; }
    .case-primary-action { align-self: flex-start; }
    .case-metrics { gap: 8px; }
    .case-metric-card { min-height: 106px; padding: 13px 11px; }
    .case-metric-label { font-size: 9px; }
    .case-metric-card strong { font-size: 23px; }
    .case-metric-caption { font-size: 8px; }
    .case-list-footer { align-items: flex-start; flex-direction: column; padding: 13px 15px; }
    .case-pagination { width: 100%; justify-content: space-between; }
    .case-detail-facts { gap: 13px; }
    .case-detail-card { padding: 19px 16px; }
    .case-detail-actions { flex-wrap: wrap; }
}
