@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-ExtraLight.woff?v=1.1.2") format("woff"), url("../fonts/Cairo-ExtraLight.ttf?v=1.1.2") format("truetype");
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-Light.woff?v=1.1.2") format("woff"), url("../fonts/Cairo-Light.ttf?v=1.1.2") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-Regular.woff?v=1.1.2") format("woff"), url("../fonts/Cairo-Regular.ttf?v=1.1.2") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-SemiBold.woff?v=1.1.2") format("woff"), url("../fonts/Cairo-SemiBold.ttf?v=1.1.2") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-Bold.woff?v=1.1.2") format("woff"), url("../fonts/Cairo-Bold.ttf?v=1.1.2") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-Black.woff?v=1.1.2") format("woff"), url("../fonts/Cairo-Black.ttf?v=1.1.2") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --olive-950: #292718;
    --olive-900: #413d25;
    --olive-800: #514b2d;
    --orange-600: #d57d13;
    --orange-500: #e59025;
    --orange-100: #fff0dc;
    --sand-500: #c6bb8b;
    --sand-200: #e9e3cd;
    --sand-100: #f4f1e6;
    --brown-700: #6f5d34;
    --ink: #18170f;
    --muted: #625f51;
    --paper: #ffffff;
    --surface: #fbfaf6;
    --line: #ded9c8;
    --danger: #9d2f2f;
    --danger-bg: #fff0ef;
    --success: #276442;
    --success-bg: #eaf6ee;
    --focus: #125fcc;
    --shadow-sm: 0 8px 24px rgba(41, 39, 24, 0.07);
    --shadow-md: 0 20px 55px rgba(41, 39, 24, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 118px;
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
    font-synthesis: none;
}

body, button, input, select, textarea, optgroup {
    font-family: "Cairo", Tahoma, Arial, sans-serif !important;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font-size: 1rem; }
button, select { cursor: pointer; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

::selection { color: var(--olive-950); background: #ffd89f; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(850px, calc(100% - 40px)); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
    position: fixed;
    inset-inline-start: 18px;
    top: -90px;
    z-index: 1000;
    padding: 10px 18px;
    color: #fff;
    background: #000;
    border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.secure-session-bar {
    color: #fff;
    background: var(--olive-950);
    font-size: 0.76rem;
    font-weight: 600;
}
.secure-session-bar .shell { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.secure-session-bar i { margin-inline-end: 7px; color: #71cf8c; font-size: 0.62rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(222, 217, 200, 0.9);
    box-shadow: 0 4px 18px rgba(41, 39, 24, 0.035);
    backdrop-filter: blur(16px);
}
.staff-session .site-header { top: 31px; }
.nav-shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { min-width: max-content; display: flex; align-items: center; gap: 14px; color: var(--olive-900); text-decoration: none; font-weight: 900; }
.brand img { width: 126px; height: 54px; object-fit: contain; }
.brand span { max-width: 150px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); line-height: 1.35; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.main-nav a, .link-button { position: relative; padding: 9px 11px; border: 0; border-radius: 8px; color: var(--olive-900); background: transparent; text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.main-nav a:not(.report-link):hover, .main-nav a:not(.report-link).active, .link-button:hover { background: var(--sand-100); }
.main-nav .report-link { margin-inline: 5px; padding-inline: 16px; color: var(--olive-950); background: var(--orange-500); box-shadow: 0 7px 18px rgba(229, 144, 37, 0.22); }
.main-nav .report-link:hover { background: #ed9b36; transform: translateY(-1px); }
.main-nav .language-link { color: var(--brown-700); border: 1px solid var(--line); }
.main-nav form { margin: 0; }
.nav-toggle { display: none; width: 44px; height: 42px; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--olive-900); transition: 0.2s ease; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: var(--brown-700); font-size: 0.73rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow > span { width: 24px; height: 3px; background: var(--orange-500); border-radius: 4px; }
.eyebrow.light { color: var(--sand-200); }

.hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 86px;
    background:
        radial-gradient(circle at 83% 10%, rgba(229, 144, 37, 0.19), transparent 24rem),
        linear-gradient(135deg, #f7f3e8 0%, #fff 55%, #f9f8f3 100%);
}
.hero::before { content: ""; position: absolute; inset: auto -100px -180px auto; width: 420px; height: 420px; border: 80px solid rgba(198, 187, 139, 0.12); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr); align-items: center; gap: 56px; }
.hero h1, .page-hero h1, .form-band h1, .staff-heading h1, .case-heading h1, .success-page h1, .auth-intro h1 {
    margin: 0 0 22px;
    color: var(--olive-900);
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: -0.035em;
}
.hero-copy .lead { max-width: 690px; }
.lead { color: var(--muted); font-size: 1.13rem; line-height: 1.9; }
.trust-list { display: flex; flex-wrap: wrap; gap: 9px 16px; margin: 25px 0 0; padding: 0; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 7px; color: var(--olive-800); font-size: 0.88rem; font-weight: 700; }
.trust-list li span { display: grid; width: 21px; height: 21px; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: 0.7rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 800; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: 0.68; transform: none; }
.button.primary { color: var(--olive-950); background: var(--orange-500); box-shadow: 0 10px 24px rgba(229, 144, 37, 0.22); }
.button.primary:hover { background: #ed9b36; box-shadow: 0 13px 28px rgba(229, 144, 37, 0.28); }
.button.secondary { color: var(--olive-900); background: #fff; border-color: var(--olive-900); }
.button.ghost { color: var(--olive-900); background: rgba(255, 255, 255, 0.72); border-color: var(--line); }
.button.danger { color: #fff; background: var(--danger); }
.button.large { min-height: 54px; padding: 14px 25px; font-size: 1rem; }
.hero-contact { margin: 22px 0 0; color: var(--muted); font-size: 0.88rem; }
.hero-contact span { margin-inline-end: 5px; color: var(--orange-600); }
.hero-contact a, .footer-copy a, .auth-contact a { color: var(--orange-600); font-weight: 800; }

.hero-side { position: relative; width: min(420px, 100%); min-height: 0; display: grid; align-content: center; justify-self: center; gap: 18px; }
.sfh-visual, [dir="ltr"] .sfh-visual { position: relative; inset: auto; width: min(360px, 100%); margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transform: none; }
.sfh-visual::after { content: ""; position: absolute; inset: 13px; pointer-events: none; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 18px; }
.sfh-visual img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; object-position: center; }
.sfh-visual figcaption { padding: 11px 18px; color: #fff; background: var(--olive-900); text-align: center; font-size: 0.8rem; font-weight: 700; }
.privacy-card, [dir="ltr"] .privacy-card { position: relative; z-index: 2; width: 100%; max-width: 420px; display: flex; gap: 17px; align-items: flex-start; margin: 0 auto; padding: 24px; color: #fff; background: var(--olive-900); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-md); box-shadow: var(--shadow-md); transform: none; }
.privacy-card h2 { margin: 2px 0 7px; font-size: 1.25rem; }
.privacy-card p { margin: 0; color: #eee9d8; font-size: 0.87rem; line-height: 1.75; }
.privacy-card small { color: var(--sand-500); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; }
.privacy-icon { display: grid; flex: 0 0 auto; width: 37px; height: 37px; place-items: center; color: var(--olive-900); background: var(--orange-500); border-radius: 50%; }

.emergency { border-block: 1px solid #efc896; background: #fff7e9; }
.emergency-inner { min-height: 86px; display: flex; align-items: center; gap: 18px; }
.emergency-icon { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--danger); border-radius: 50%; font-weight: 900; }
.emergency strong { color: #6e300f; }
.emergency p { margin: 2px 0 0; color: #714819; font-size: 0.9rem; }

.process-section, .knowledge-section, .article { padding: 84px 0; }
.process-section { background: #fff; }
.section-intro { max-width: 710px; margin-bottom: 34px; }
.section-intro h2, .knowledge-section h2, .home-cta h2 { margin: 0; color: var(--olive-900); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.35; }
.section-intro > p:last-child { margin: 10px 0 0; color: var(--muted); }
.split-intro { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.text-link { color: var(--brown-700); font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--orange-500); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-card { position: relative; min-height: 225px; padding: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.process-card::after { content: ""; position: absolute; inset: auto -30px -45px auto; width: 110px; height: 110px; border: 24px solid rgba(229, 144, 37, 0.09); border-radius: 50%; }
.process-number { color: var(--orange-600); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; }
.process-card h3 { margin: 24px 0 9px; color: var(--olive-900); font-size: 1.15rem; }
.process-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.knowledge-section { background: var(--sand-100); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.knowledge-card { position: relative; min-height: 250px; display: flex; flex-direction: column; padding: 28px; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; box-shadow: var(--shadow-sm); transition: 0.2s ease; }
.knowledge-card:hover { border-color: var(--orange-500); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.knowledge-card > span { color: var(--orange-600); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.1em; }
.knowledge-card h3 { margin: 35px 0 8px; color: var(--olive-900); font-size: 1.3rem; }
.knowledge-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.knowledge-card > b { position: absolute; inset-inline-end: 26px; bottom: 23px; color: var(--orange-600); font-size: 1.35rem; }

.home-cta { padding: 58px 0; color: #fff; background: var(--olive-900); }
.home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.home-cta h2 { color: #fff; }
.home-cta p { max-width: 780px; margin: 10px 0 0; color: #e5e0ce; }

.page-hero { padding: 72px 0; background: linear-gradient(145deg, var(--sand-100), #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 4rem); }
.knowledge-hero .notice { margin: 28px 0 0; font-size: 0.9rem; }
.knowledge-page { background: #fff; }
.knowledge-layout { display: grid; grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.65fr); gap: 58px; align-items: start; }
.knowledge-index { position: sticky; top: 128px; max-height: calc(100vh - 155px); padding: 24px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.staff-session .knowledge-index { top: 155px; }
.knowledge-index strong { color: var(--olive-900); }
.knowledge-index ol { margin: 15px 0 0; padding-inline-start: 22px; }
.knowledge-index li { margin: 8px 0; color: var(--muted); font-size: 0.86rem; }
.knowledge-index a { text-decoration: none; }
.knowledge-index a:hover { color: var(--orange-600); }
.knowledge-content article { padding: 38px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 125px; }
.knowledge-content article:first-child { padding-top: 0; }
.section-number { display: inline-block; margin-bottom: 4px; color: var(--orange-600); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; }
.knowledge-content h2, .source-panel h2, .knowledge-cta h2 { margin: 0 0 14px; color: var(--olive-900); line-height: 1.4; }
.knowledge-content p { color: #49473b; }
.guidance-list { display: grid; gap: 9px; padding-inline-start: 24px; }
.guidance-list li::marker { color: var(--orange-600); }
.source-panel { margin-top: 36px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.source-panel li { margin: 7px 0; }
.source-panel a { color: var(--brown-700); font-weight: 700; }
.knowledge-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 30px; color: #fff; background: var(--olive-900); border-radius: var(--radius-md); }
.knowledge-cta h2, .knowledge-cta p { margin: 0; color: #fff; }

.form-band, .staff-band, .success-page { min-height: 70vh; padding: 62px 0 96px; background: var(--surface); }
.form-shell { max-width: 920px; }
.form-hero { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: end; gap: 38px; margin-bottom: 26px; }
.form-band h1 { font-size: clamp(2.15rem, 4.5vw, 3.8rem); }
.security-seal { display: flex; gap: 12px; align-items: center; padding: 17px; color: #fff; background: var(--olive-900); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.security-seal > span { color: #79d593; font-size: 0.75rem; }
.security-seal div { display: flex; flex-direction: column; }
.security-seal small { color: var(--sand-200); font-size: 0.75rem; }
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.form-progress li { display: flex; align-items: center; gap: 9px; padding: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 0.8rem; font-weight: 700; }
.form-progress li span { display: grid; width: 26px; height: 26px; place-items: center; color: var(--olive-950); background: var(--orange-500); border-radius: 50%; font-size: 0.7rem; }

.notice { display: flex; gap: 13px; align-items: flex-start; margin: 15px auto; padding: 16px 19px; border: 1px solid transparent; border-radius: 11px; }
.notice p { margin: 3px 0 0; }
.notice-icon { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; font-size: 0.74rem; font-weight: 900; }
.notice.urgent { color: #642020; background: var(--danger-bg); border-color: #ecc4c1; }
.notice.urgent .notice-icon { color: #fff; background: var(--danger); }
.notice.privacy { color: var(--olive-900); background: var(--sand-100); border-color: var(--sand-500); }
.notice.privacy .notice-icon { color: #fff; background: var(--brown-700); }
.notice.success { color: var(--success); background: var(--success-bg); border-color: #b9dfc6; }
.global-notice { margin-top: 18px; }
.error-summary { margin: 20px 0; padding: 18px 22px; color: #711d1d; background: var(--danger-bg); border: 1px solid #e7aaa6; border-radius: 11px; }
.error-summary ul { margin-bottom: 0; }

.report-form, .case-section, .case-main, .case-aside, .tool-card, .work-section, .auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.report-form { margin-top: 28px; padding: 0 34px 34px; overflow: hidden; }
.report-form fieldset { margin: 0; padding: 34px 0; border: 0; border-bottom: 1px solid var(--line); }
.report-form legend { width: 100%; display: flex; align-items: center; gap: 14px; padding: 0; color: var(--olive-900); font-size: 1.2rem; font-weight: 900; }
.report-form legend > span:last-child { display: flex; flex-direction: column; }
.report-form legend small { margin-top: 2px; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.step-token { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; color: var(--orange-600); background: var(--orange-100); border-radius: 50%; font-size: 0.72rem; }
.choice-grid, .field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.choice { position: relative; min-height: 108px; display: flex; gap: 12px; align-items: flex-start; padding: 18px; border: 1px solid #cfc9b3; border-radius: 12px; cursor: pointer; transition: 0.18s ease; }
.choice:hover { border-color: var(--orange-500); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-mark { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; border: 2px solid #aaa38b; border-radius: 50%; box-shadow: inset 0 0 0 4px #fff; }
.choice:has(input:checked) { background: #fffaf2; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(229, 144, 37, 0.14); }
.choice:has(input:checked) .choice-mark { background: var(--orange-500); border-color: var(--orange-500); }
.choice b { color: var(--olive-900); }
.choice small, .check small { display: block; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { color: var(--olive-900); font-size: 0.9rem; font-weight: 750; }
.field i, .check i { margin-inline-start: 4px; color: var(--danger); font-size: 0.67rem; font-style: normal; font-weight: 700; }
.field input, .field select, .field textarea, .filters input, .filters select, .retention input { width: 100%; color: var(--ink); background: #fff; border: 1px solid #aaa590; border-radius: 9px; padding: 12px 13px; transition: border 0.16s ease, box-shadow 0.16s ease; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--brown-700); }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--orange-600); box-shadow: 0 0 0 4px rgba(229, 144, 37, 0.17); }
.field-help { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.78rem; }
.field-help output { direction: ltr; white-space: nowrap; }
.field-alert { padding: 9px 12px; color: #6d3210; background: var(--orange-100); border-inline-start: 3px solid var(--orange-500); border-radius: 6px; }
.form-help { color: var(--muted); font-size: 0.8rem; }
.named-fields { margin-top: 19px; }
.js .named-fields[hidden], [hidden] { display: none !important; }
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { display: grid; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; place-items: center; background: #fff; border: 2px solid #aaa590; border-radius: 6px; }
.check:has(input:checked) .check-box { background: var(--orange-500); border-color: var(--orange-500); }
.check:has(input:checked) .check-box::after { content: "✓"; color: var(--olive-950); font-size: 0.78rem; font-weight: 900; }
.check:has(input:focus-visible), .choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.urgent-check { color: var(--danger); font-weight: 800; }
.submit-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 30px; }
.submit-panel p { max-width: 520px; margin: 4px 0 0; color: var(--muted); font-size: 0.8rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.settings-form fieldset { display: grid; gap: 14px; }

.staff-heading, .case-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 29px; }
.staff-heading h1, .case-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
.dashboard-heading p { margin: 0; color: var(--muted); }
.user-chip { min-width: 240px; display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.user-chip > span:last-child { display: flex; flex-direction: column; line-height: 1.45; }
.user-chip small { color: var(--muted); font-size: 0.72rem; }
.avatar { display: grid; flex: 0 0 auto; width: 44px; height: 44px; place-items: center; color: #fff; background: var(--olive-900); border-radius: 50%; font-weight: 900; }
.operational-alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; margin-bottom: 20px; padding: 16px 20px; color: #652323; background: var(--danger-bg); border: 1px solid #e9bab6; border-radius: 13px; }
.operational-alert p { margin: 2px 0 0; font-size: 0.82rem; }
.alert-pulse { width: 12px; height: 12px; background: var(--danger); border-radius: 50%; box-shadow: 0 0 0 6px rgba(157, 47, 47, 0.12); }
.alert-total, .count-badge { display: inline-grid; min-width: 32px; height: 32px; place-items: center; padding-inline: 8px; color: #fff; background: var(--olive-900); border-radius: 999px; font-size: 0.78rem; font-weight: 900; }
.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0 0 30px; }
.metric-card { min-height: 156px; display: flex; flex-direction: column; padding: 17px; border-top: 4px solid var(--sand-500); box-shadow: none; }
.metric-card > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.73rem; font-weight: 700; }
.metric-icon { display: grid; width: 25px; height: 25px; place-items: center; color: var(--olive-900); background: var(--sand-100); border-radius: 7px; font-size: 0.65rem; font-weight: 900; }
.metric-card strong { margin-top: 12px; color: var(--olive-900); font-size: 2rem; line-height: 1; }
.metric-card small { margin-top: auto; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.metric-urgent, .metric-critical { border-top-color: var(--danger); }
.metric-urgent .metric-icon, .metric-critical .metric-icon { color: var(--danger); background: var(--danger-bg); }
.metric-actions { border-top-color: var(--orange-500); }
.metric-retention { border-top-color: var(--brown-700); }
.dashboard-tools { margin: 5px 0 29px; }
.dashboard-tools > .section-head { margin-bottom: 14px; }
.tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tool-card { min-height: 108px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 17px; text-decoration: none; box-shadow: none; transition: 0.18s ease; }
.tool-card:hover { border-color: var(--orange-500); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.tool-card > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.45; }
.tool-card small { margin-top: 4px; color: var(--muted); font-size: 0.68rem; }
.tool-card > i { color: var(--orange-600); font-style: normal; }
.tool-icon { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; color: var(--olive-900); background: var(--orange-100); border-radius: 10px; font-size: 0.8rem; font-weight: 900; }
.work-section { padding: 0; margin: 20px 0; overflow: hidden; box-shadow: none; }
.work-section > .section-head { padding: 20px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-head h2, .section-head p { margin: 0; }
.section-head .eyebrow { margin-bottom: 3px; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; background: #fff; }
.table-wrap th, .table-wrap td { padding: 14px 17px; border-bottom: 1px solid #ece8da; text-align: start; vertical-align: middle; }
.table-wrap th { color: var(--muted); background: #fcfbf7; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.035em; text-transform: uppercase; }
.table-wrap tbody tr { transition: background 0.15s ease; }
.table-wrap tbody tr:hover { background: #fffdf7; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.urgent-row { background: #fff7f4; }
.urgent-row:hover { background: #fff1ed !important; }
.reference-link, .reference-text { color: var(--olive-900); font-weight: 900; letter-spacing: 0.02em; }
.reference-link { text-decoration-color: var(--orange-500); text-underline-offset: 4px; }
.table-action { display: inline-flex; align-items: center; gap: 6px; color: var(--brown-700); font-size: 0.8rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.table-action:hover { color: var(--orange-600); }
.table-empty { padding: 28px; color: var(--muted); text-align: center; }
.row-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.danger-text { color: var(--danger); }
.status, .risk { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 10px; background: #eeece4; border-radius: 999px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.status.on { color: var(--success); background: var(--success-bg); }
.status.off { color: var(--danger); background: #f4e8e8; }
.risk-critical { color: #781919; background: #f7dedd; }
.risk-high { color: #783707; background: #fbe4cd; }
.risk-medium { color: #665000; background: #fff2bd; }
.risk-low { color: #24572e; background: #e5f2e7; }
.filters { display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; margin: 18px 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tabs { display: flex; gap: 8px; margin: 18px 0; border-bottom: 1px solid var(--line); }
.tabs a { margin-bottom: -1px; padding: 9px 15px; border-bottom: 3px solid transparent; text-decoration: none; }
.tabs a.active { color: var(--olive-900); border-color: var(--orange-500); font-weight: 800; }
.empty-state { padding: 55px 28px; background: #fff; border: 1px dashed var(--sand-500); border-radius: var(--radius-md); text-align: center; }
.empty-state h2 { color: var(--olive-900); }
.empty-state p { max-width: 600px; margin: 0 auto 20px; color: var(--muted); }
.empty-icon { display: grid; width: 54px; height: 54px; margin: 0 auto; place-items: center; color: var(--olive-900); background: var(--orange-100); border-radius: 16px; font-weight: 900; }

.case-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 0.72fr); gap: 20px; align-items: start; }
.case-main, .case-aside, .case-section { padding: 25px; }
.case-main { display: flex; flex-direction: column; gap: 18px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.case-aside { position: sticky; top: 130px; display: grid; gap: 0; }
.staff-session .case-aside { top: 158px; }
.case-aside section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.case-aside section:first-child { padding-top: 0; }
.case-aside section:last-child { padding-bottom: 0; border: 0; }
.case-section h2, .case-aside h2 { margin-top: 0; color: var(--olive-900); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 18px 0; }
.facts > div { padding: 13px; background: var(--surface); border: 1px solid #ece8da; border-radius: 9px; }
.facts dt, .case-aside dt { color: var(--muted); font-size: 0.72rem; }
.facts dd, .case-aside dd { margin: 3px 0 0; font-weight: 700; }
.narrative { padding: 18px; white-space: pre-wrap; background: #fffdf8; border-inline-start: 4px solid var(--orange-500); border-radius: 8px; }
.timeline { position: relative; margin: 15px 0; padding: 16px; background: var(--surface); border: 1px solid #ece8da; border-radius: 10px; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.timeline time, .timeline small { color: var(--muted); font-size: 0.72rem; }
.action-meta { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.inline-workflow, .workflow details { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.inline-workflow summary, .workflow summary { padding: 13px 15px; color: var(--olive-900); font-weight: 800; cursor: pointer; }
.inline-workflow form, .workflow details form { display: grid; gap: 14px; padding: 0 15px 16px; }
.workflow { display: grid; gap: 8px; }
.two-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.auth-page { min-height: 74vh; display: grid; place-items: center; padding: 70px 0; color: #fff; background: linear-gradient(135deg, var(--olive-950), var(--olive-900)); }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; gap: 75px; }
.auth-intro h1 { color: #fff; font-size: clamp(2.3rem, 4vw, 4rem); }
.auth-intro > p:not(.eyebrow) { max-width: 620px; color: #ded8c3; font-size: 1.05rem; }
.auth-intro ul { display: grid; gap: 10px; margin-top: 25px; padding: 0; list-style: none; }
.auth-intro li::before { content: "✓"; display: inline-grid; width: 24px; height: 24px; margin-inline-end: 10px; place-items: center; color: var(--olive-950); background: var(--orange-500); border-radius: 50%; font-size: 0.7rem; font-weight: 900; }
.auth-card { position: relative; max-width: 470px; margin: 0; padding: 39px; color: var(--ink); text-align: center; box-shadow: 0 28px 75px rgba(0, 0, 0, 0.24); }
.auth-card > img { width: 155px; height: 78px; object-fit: contain; }
.auth-lock { display: grid; width: 46px; height: 46px; margin: 19px auto 12px; place-items: center; color: var(--olive-950); background: var(--orange-500); border-radius: 50%; }
.auth-card h2 { margin: 0 0 6px; color: var(--olive-900); font-size: 1.55rem; }
.auth-card > p { color: var(--muted); font-size: 0.87rem; }
.button.microsoft { width: 100%; margin-top: 14px; color: #fff; background: #171717; }
.button.microsoft:hover { background: #000; }
.auth-error { display: block; text-align: start; }
.auth-error small { display: block; margin-top: 6px; }
.auth-contact { margin: 18px 0 0 !important; }

.success-page { text-align: center; }
.success-icon { display: grid; width: 72px; height: 72px; margin: 10px auto 22px; place-items: center; color: #fff; background: var(--success); border-radius: 50%; font-size: 34px; }
.reference { max-width: 520px; display: flex; flex-direction: column; gap: 6px; margin: 30px auto; padding: 24px; background: #fff; border: 2px dashed var(--sand-500); border-radius: 12px; }
.reference strong { color: var(--olive-900); font-size: 1.5rem; }

.site-footer { padding: 43px 0; color: #fff; background: var(--olive-950); border-top: 5px solid var(--orange-500); }
.footer-grid { display: grid; grid-template-columns: 190px 1fr 240px; align-items: center; gap: 36px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand img { width: 145px; height: 72px; object-fit: contain; }
.footer-brand strong { font-size: 0.82rem; }
.footer-copy p { margin: 5px 0; color: #e6e1ce; font-size: 0.85rem; }
.footer-copy small { color: #9f9a86; }
.footer-manager { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.footer-manager small { color: var(--sand-500); }
.footer-manager img { width: 210px; max-height: 95px; object-fit: contain; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 25px 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; }
.pagination a:hover { border-color: var(--orange-500); }
.pagination .current { color: var(--olive-950); background: var(--orange-500); border-color: var(--orange-500); font-weight: 900; }
.pagination .disabled { color: #aaa; background: #f3f1eb; }

@media (max-width: 1080px) {
    .main-nav { gap: 1px; }
    .main-nav a, .link-button { padding-inline: 8px; font-size: 0.8rem; }
    .hero-grid { gap: 35px; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .tool-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
    .nav-toggle { display: grid; }
    .main-nav { position: absolute; inset: calc(100% + 1px) 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--shadow-md); }
    .main-nav.open { display: flex; }
    .main-nav a, .main-nav .report-link, .link-button { width: 100%; margin: 0; padding: 11px 13px; text-align: start; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { min-height: 0; width: min(420px, 100%); margin-inline: auto; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .knowledge-layout, .case-grid, .auth-shell { grid-template-columns: 1fr; }
    .knowledge-index { position: static; max-height: none; }
    .case-aside { position: static; }
    .auth-shell { gap: 38px; }
    .auth-intro { text-align: center; }
    .auth-intro > p:not(.eyebrow) { margin-inline: auto; }
    .auth-intro .eyebrow { justify-content: center; }
    .auth-intro ul { width: max-content; max-width: 100%; margin-inline: auto; text-align: start; }
    .auth-card { width: min(470px, 100%); margin-inline: auto; }
    .footer-grid { grid-template-columns: 160px 1fr; }
    .footer-manager { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

@media (max-width: 680px) {
    body { font-size: 15px; }
    .shell, .narrow { width: min(100% - 28px, 1180px); }
    .secure-session-bar .shell { align-items: flex-start; flex-direction: column; gap: 0; padding-block: 5px; line-height: 1.45; }
    .staff-session .site-header { top: 43px; }
    .nav-shell { min-height: 70px; }
    .brand img { width: 100px; height: 45px; }
    .brand span { max-width: 120px; font-size: 0.78rem; }
    .main-nav { inset-inline: 14px; }
    .hero { padding: 51px 0 68px; }
    .hero h1, .page-hero h1, .form-band h1, .staff-heading h1, .case-heading h1, .success-page h1, .auth-intro h1 { letter-spacing: -0.02em; }
    .lead { font-size: 1rem; }
    .trust-list { flex-direction: column; }
    .hero-side {
        min-height: 0;
        width: min(420px, 100%);
        display: grid;
        align-items: stretch;
        justify-items: center;
        gap: 16px;
    }
    .sfh-visual,
    [dir="ltr"] .sfh-visual {
        position: relative;
        inset: auto;
        width: min(330px, 100%);
        margin: 0 auto;
        transform: none;
    }
    .privacy-card,
    [dir="ltr"] .privacy-card {
        width: 100%;
        padding: 19px;
        transform: none;
    }
    .emergency-inner { align-items: flex-start; padding-block: 16px; }
    .process-section, .knowledge-section, .article { padding: 60px 0; }
    .process-grid, .card-grid, .choice-grid, .field-grid, .two-columns { grid-template-columns: 1fr; }
    .split-intro, .home-cta-inner, .submit-panel, .staff-heading, .case-heading { align-items: flex-start; flex-direction: column; }
    .knowledge-card { min-height: 220px; }
    .form-hero { grid-template-columns: 1fr; gap: 16px; }
    .security-seal { width: 100%; }
    .form-progress { grid-template-columns: 1fr; }
    .form-progress li { min-height: 47px; }
    .report-form { padding: 0 20px 24px; }
    .report-form legend { align-items: flex-start; }
    .submit-panel .button { width: 100%; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-card { min-height: 145px; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card { min-height: 88px; }
    .dashboard-heading .user-chip { width: 100%; }
    .filters { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; }
    .timeline-head, .action-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
    .auth-page { padding: 52px 0; }
    .auth-card { padding: 29px 21px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-manager { grid-column: auto; }
}

@media (max-width: 410px) {
    .brand span { display: none; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 125px; }
    .hero-side { min-height: 0; }
    .sfh-visual, [dir="ltr"] .sfh-visual { width: min(290px, 94%); }
    .privacy-card, [dir="ltr"] .privacy-card { width: 100%; padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .site-header, .secure-session-bar, .site-footer, .knowledge-index, .knowledge-cta, .button { display: none !important; }
    body { color: #000; background: #fff; font-size: 11pt; }
    .article, .staff-band { padding: 0; }
    .knowledge-layout { display: block; }
    .knowledge-content article { break-inside: avoid; }
}
