:root {
    --green-950: #080808;
    --green-900: #0f0f0f;
    --green-800: #1b1b1b;
    --green-700: #806a10;
    --green-600: #9a7e0a;
    --green-500: #dbbb2b;
    --green-100: #fff0a6;
    --green-50: #fff9df;
    --gold: #dbbb2b;
    --gold-bright: #ffd83f;
    --gold-light: #ffe169;
    --gold-pale: #fff4a8;
    --gold-dark: #8a7010;
    --gold-soft: #fff7cf;
    --gray-950: #111111;
    --gray-800: #272727;
    --gray-700: #444444;
    --gray-600: #626262;
    --gray-500: #7d7d7d;
    --gray-400: #a0a0a0;
    --gray-300: #cccccc;
    --gray-200: #e1e1e1;
    --gray-100: #eeeeee;
    --gray-50: #f7f7f5;
    --white: #fff;
    --red: #c64a45;
    --red-soft: #fbe9e7;
    --yellow-soft: #fff4d1;
    --blue-soft: #e7f1fa;
    --purple-soft: #f1eafb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --shadow: 0 14px 40px rgba(0, 0, 0, .09);
    --shadow-lg: 0 28px 75px rgba(0, 0, 0, .16);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Manrope", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--gray-950); font-family: var(--font-body); font-size: 15px; background: var(--gray-50); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 820px; }
.skip-link { position: fixed; z-index: 1000; top: -60px; left: 20px; padding: 12px 18px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.honeypot { position: absolute !important; left: -10000px !important; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 174px; height: auto; }
.footer-logo { width: 192px; }
.sidebar-logo { width: 158px; }
.login-logo { width: 185px; }

.public-body { background: white; }
.public-header { position: relative; z-index: 30; height: 80px; background: rgba(8,8,8,.97); border-bottom: 1px solid rgba(219,187,43,.24); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.public-header nav { display: flex; align-items: center; height: 100%; gap: 34px; }
.public-header nav a { position: relative; color: rgba(255,255,255,.72); font-weight: 600; font-size: 14px; transition: .2s; }
.public-header nav a:hover, .public-header nav a.active { color: var(--gold-bright); }
.public-header nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -29px; height: 3px; background: var(--gold); border-radius: 4px; }
.public-header nav .nav-admin { padding: 10px 16px; color: var(--gold-bright); border: 1px solid rgba(219,187,43,.45); border-radius: 9px; }
.public-header nav .nav-admin:hover { color: #080808; background: var(--gold); border-color: var(--gold); }
.public-header nav .nav-admin::after { display: none; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 23px; color: var(--gold-bright); }

.hero { position: relative; min-height: 665px; display: flex; align-items: center; overflow: hidden; background:
    radial-gradient(circle at 82% 43%, rgba(219,187,43,.28) 0 4%, transparent 31%),
    linear-gradient(105deg, #fffdf6 0%, #fffefb 49%, #fff4b9 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(#b4971b 1px, transparent 1px); background-size: 27px 27px; mask-image: linear-gradient(to right, black, transparent 57%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(480px, .97fr); gap: 58px; align-items: center; padding-block: 72px 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--green-700); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.eyebrow i { width: 22px; height: 2px; background: var(--gold); }
.eyebrow.light { color: rgba(255,255,255,.75); }
.eyebrow.centered { justify-content: center; color: var(--green-700); }
.hero h1 { margin-bottom: 23px; color: var(--green-950); font-size: clamp(43px, 5vw, 67px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 em, .login-visual h1 em { color: var(--gold-dark); font-style: normal; }
.hero-copy > p { max-width: 600px; margin-bottom: 31px; color: var(--gray-600); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--green-800); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.button-primary:hover { background: var(--green-950); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.button-secondary { color: var(--green-800); background: white; border-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.button-secondary:hover { border-color: var(--green-600); }
.button-ghost { color: var(--gray-600); background: transparent; border-color: var(--gray-200); }
.button-dark { color: white; background: var(--gray-950); }
.button-gold { color: var(--green-950); background: var(--gold); }
.button-block { width: 100%; }
.trust-row { display: flex; gap: 28px; margin-top: 28px; color: var(--gray-600); font-size: 12px; font-weight: 600; }
.trust-row span::first-letter { color: var(--gold-dark); }

.hero-visual { position: relative; min-height: 510px; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-orbit { position: absolute; border: 1px solid rgba(219,187,43,.28); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; }
.orbit-two { width: 525px; height: 525px; }
.hero-photo { margin: 0; background: var(--gray-200); overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { position: relative; z-index: 2; width: 430px; height: 440px; margin-right: 25px; border: 8px solid rgba(255,255,255,.82); border-radius: 44px 44px 120px 44px; box-shadow: var(--shadow-lg); }
.hero-photo-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.16), transparent 42%); pointer-events: none; }
.hero-photo-main > img { object-position: 25% center; }
.hero-photo-team { position: absolute; z-index: 5; right: -8px; bottom: 2px; width: 195px; height: 145px; border: 6px solid white; border-radius: 20px; box-shadow: 0 18px 45px rgba(24,19,4,.24); transform: rotate(2deg); }
.hero-photo-team > img { object-position: center 48%; }
.community-message { position: absolute; z-index: 4; left: 19px; right: 19px; bottom: 20px; display: flex; flex-direction: column; padding: 17px 18px 16px 51px; color: var(--green-950); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.8); border-radius: 13px; box-shadow: var(--shadow); }
.community-message i { position: absolute; top: 6px; left: 18px; color: var(--gold); font: 800 40px/1 Georgia,serif; }
.community-message strong { font: 700 14px/1.4 var(--font-display); }
.community-message small { margin-top: 3px; color: var(--gray-600); font-size: 10px; }
.floating-pill { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 11px 15px; background: white; border: 1px solid rgba(219,187,43,.28); border-radius: 10px; box-shadow: var(--shadow); font-size: 11px; }
.floating-pill span { display: grid; place-items: center; width: 27px; height: 27px; color: var(--green-700); background: var(--green-100); border-radius: 7px; }
.pill-secure { left: -13px; top: 91px; }
.pill-track { right: -10px; top: 55px; }

.community-promises { position: relative; z-index: 8; margin-top: -38px; }
.promises-card { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 22px; background: white; border: 1px solid rgba(138,112,16,.13); border-radius: 18px; box-shadow: 0 20px 55px rgba(71,57,7,.12); }
.promises-card article { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 6px 24px; }
.promises-card article + article { border-left: 1px solid var(--gray-100); }
.promises-card article > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--gold-dark); background: var(--gold-soft); border-radius: 50%; font: 800 10px/1 var(--font-display); }
.promises-card article div { display: flex; flex-direction: column; }
.promises-card strong { color: var(--gray-950); font: 700 13px/1.35 var(--font-display); }
.promises-card small { margin-top: 4px; color: var(--gray-500); font-size: 10px; line-height: 1.45; }

.how-section { padding: 102px 0 105px; text-align: center; background: linear-gradient(180deg, #fff 0%, #faf9f4 100%); }
.section-kicker, .page-kicker, .card-kicker { display: block; margin-bottom: 8px; color: var(--green-600); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.how-section h2, .portal-cta h2 { margin-bottom: 9px; color: var(--green-950); font-size: 34px; letter-spacing: -.025em; }
.section-lead { color: var(--gray-600); }
.steps-row { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; align-items: center; margin-top: 48px; }
.steps-row article { position: relative; min-height: 240px; padding: 30px 24px 26px; background: white; border: 1px solid var(--gray-100); border-radius: 19px; box-shadow: 0 10px 35px rgba(0,0,0,.045); }
.step-number { position: absolute; top: 23px; right: 24px; color: var(--gray-100); font: 800 42px/1 var(--font-display); }
.step-icon { position: relative; display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 20px; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100); border-radius: 18px; font-size: 27px; }
.steps-row h3 { margin-bottom: 10px; color: var(--green-950); font-size: 17px; }
.steps-row p { color: var(--gray-600); font-size: 13px; line-height: 1.7; }
.step-line { height: 1px; border-top: 1px dashed var(--gray-300); }

.people-section { padding: 105px 0 120px; overflow: hidden; background: white; }
.people-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: 72px; align-items: center; }
.people-copy h2 { max-width: 440px; margin-bottom: 18px; color: var(--green-950); font-size: 40px; line-height: 1.15; letter-spacing: -.035em; }
.people-copy > p { max-width: 475px; color: var(--gray-600); font-size: 15px; line-height: 1.75; }
.people-checks { display: grid; gap: 13px; margin: 27px 0 30px; padding: 0; list-style: none; }
.people-checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--gray-700); font-size: 13px; line-height: 1.55; }
.people-checks span { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; color: var(--green-950); background: var(--gold); border-radius: 50%; font-size: 10px; font-weight: 800; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--green-950); border-bottom: 1px solid var(--gold); font-weight: 800; font-size: 13px; }
.text-link span { color: var(--gold-dark); transition: transform .2s; }
.text-link:hover span { transform: translateX(3px); }
.people-gallery { position: relative; display: grid; grid-template-columns: 1.18fr .82fr; grid-template-rows: 216px 216px; gap: 14px; min-height: 492px; padding: 18px 0 42px 30px; }
.people-gallery::before { content: ""; position: absolute; z-index: 0; top: -35px; right: -62px; width: 245px; height: 245px; background: var(--gold-soft); border-radius: 50%; }
.gallery-photo { position: relative; z-index: 1; margin: 0; overflow: hidden; background: var(--gray-100); border-radius: 19px; box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo-main { grid-row: 1 / 3; border-radius: 72px 20px 20px 20px; }
.gallery-photo-main img { object-position: center; }
.gallery-photo-top img { object-position: center 69%; }
.gallery-photo-bottom img { object-position: center 64%; }
.gallery-photo-accent { position: absolute; z-index: 3; left: 0; bottom: 0; width: 190px; height: 130px; border: 6px solid white; border-radius: 17px; transform: rotate(-3deg); }
.gallery-photo-accent img { object-position: center 60%; }

.portal-cta { padding-bottom: 90px; }
.cta-card { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 44px 50px; color: white; background: linear-gradient(115deg, #080808, #242424); border: 1px solid rgba(219,187,43,.3); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.cta-card::after { content: ""; position: absolute; top: -90px; right: 23%; width: 190px; height: 190px; border: 35px solid rgba(219,187,43,.1); border-radius: 50%; pointer-events: none; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: white; }
.cta-card p { margin: 0; color: rgba(255,255,255,.67); }

.public-footer { padding: 48px 0 20px; color: rgba(255,255,255,.68); background: #080808; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr; align-items: center; gap: 55px; padding-bottom: 35px; }
.footer-grid p { margin: 0; font-size: 12px; line-height: 1.7; }
.footer-grid > div:last-child { font-size: 12px; line-height: 1.7; }
.footer-grid > div:last-child strong { color: white; }
.footer-bottom { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.09); font-size: 10px; }

.page-hero { background: linear-gradient(130deg, #fff5bc, #fffdf3); text-align: center; }
.page-hero.compact { padding: 44px 0 48px; }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero h1 { margin-bottom: 8px; color: var(--green-950); font-size: 35px; letter-spacing: -.03em; }
.page-hero p { margin: 0; color: var(--gray-600); }
.form-section { padding: 45px 0 80px; background: var(--gray-50); }
.form-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 30px; align-items: start; }
.wizard-sidebar { position: sticky; top: 24px; padding: 12px 0; }
.wizard-steps { margin: 0; padding: 0; list-style: none; }
.wizard-steps li { position: relative; display: flex; gap: 13px; min-height: 76px; color: var(--gray-500); }
.wizard-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; left: 15px; bottom: -2px; border-left: 1px dashed var(--gray-300); }
.wizard-steps li > span { position: relative; z-index: 2; display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; color: var(--gray-500); background: white; border: 1px solid var(--gray-300); border-radius: 50%; font-size: 11px; font-weight: 800; }
.wizard-steps li div { padding-top: 3px; display: flex; flex-direction: column; }
.wizard-steps li strong { color: var(--gray-700); font-size: 13px; }
.wizard-steps li small { margin-top: 4px; font-size: 10px; }
.wizard-steps li.active > span, .wizard-steps li.complete > span { color: white; background: var(--green-700); border-color: var(--green-700); }
.wizard-steps li.active strong { color: var(--green-800); }
.wizard-steps li.complete:not(:last-child)::after { border-color: var(--green-500); }
.privacy-note { display: flex; gap: 12px; margin-top: 24px; padding: 15px; color: var(--green-800); background: var(--green-100); border-radius: 11px; }
.privacy-note > span { font-size: 20px; }
.privacy-note strong { font-size: 11px; }
.privacy-note p { margin: 4px 0 0; color: var(--gray-600); font-size: 10px; line-height: 1.5; }
.privacy-note.wide { padding: 18px; }
.privacy-content { max-width: 860px; margin-inline: auto; padding: 38px 42px; }
.privacy-content h2 { margin: 25px 0 8px; color: var(--green-950); font-size: 18px; }
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content > p { color: var(--gray-600); font-size: 13px; line-height: 1.75; }
.wizard-progress-mobile { display: none; }
.wizard-card { min-height: 555px; padding: 40px 46px 28px; background: white; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.wizard-panel { display: none; min-height: 410px; }
.wizard-panel.active { display: block; animation: panel-in .24s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } }
.form-step-label { display: block; margin-bottom: 7px; color: var(--green-600); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.wizard-panel h2, .login-card h2 { margin-bottom: 7px; color: var(--green-950); font-size: 26px; letter-spacing: -.025em; }
.form-intro { margin-bottom: 27px; color: var(--gray-600); font-size: 13px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 28px; }
.choice-card { position: relative; min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 19px 12px; text-align: center; background: white; border: 1px solid var(--gray-200); border-radius: 13px; cursor: pointer; transition: .2s; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card .choice-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 11px; color: var(--green-700); background: var(--green-50); border-radius: 11px; font-size: 21px; }
.choice-card strong { color: var(--gray-800); font-size: 13px; }
.choice-card small { margin-top: 5px; color: var(--gray-500); font-size: 9px; line-height: 1.4; }
.choice-card > i { position: absolute; top: 8px; right: 8px; display: none; place-items: center; width: 19px; height: 19px; color: white; background: var(--green-600); border-radius: 50%; font-size: 10px; font-style: normal; }
.choice-card:has(input:checked) { background: var(--green-50); border: 2px solid var(--green-600); box-shadow: 0 7px 18px rgba(219,187,43,.14); }
.choice-card:has(input:checked) > i { display: grid; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
label { display: flex; flex-direction: column; gap: 7px; color: var(--gray-700); font-size: 12px; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--gray-950); background: white; border: 1px solid var(--gray-300); border-radius: 8px; outline: none; transition: border .2s, box-shadow .2s; }
textarea { line-height: 1.55; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--gray-400); font-weight: 400; }
input:focus, textarea:focus, select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(219,187,43,.18); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--red); }
.field-full { grid-column: 1 / -1; }
.check-field { align-self: end; min-height: 43px; flex-direction: row; align-items: center; padding: 10px 12px; background: var(--gray-50); border-radius: 8px; }
.check-field input { width: 17px; min-height: 17px; height: 17px; accent-color: var(--green-700); }
.check-field.inline { align-self: auto; min-height: auto; padding: 5px 0; background: transparent; }
.check-field span { font-weight: 500; }
.anonymous-message { display: flex; gap: 16px; margin-bottom: 20px; padding: 18px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 11px; }
.anonymous-message > span { font-size: 28px; color: var(--green-600); }
.anonymous-message strong { display: block; color: var(--green-800); }
.anonymous-message p { margin: 5px 0 0; color: var(--gray-600); font-size: 12px; line-height: 1.6; }
.minor-field, .priority-reason { display: none; }
form:has(input[name="is_minor"]:checked) .minor-field, form:has(input[name="is_priority"]:checked) .priority-reason { display: flex; }
.char-count { display: block; align-self: flex-end; color: var(--gray-400); font-weight: 500; }
.upload-zone { min-height: 185px; align-items: center; justify-content: center; padding: 25px; text-align: center; background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: 13px; cursor: pointer; }
.upload-zone:hover { border-color: var(--green-600); background: var(--green-50); }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-zone .upload-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--green-700); background: var(--green-100); border-radius: 12px; font-size: 23px; }
.upload-zone strong { color: var(--green-900); font-size: 13px; }
.upload-zone small { color: var(--gray-500); font-weight: 400; }
.upload-zone b { color: var(--gray-600); font-size: 10px; }
.privacy-box { display: flex; gap: 15px; margin-top: 18px; padding: 18px; background: var(--gold-soft); border-radius: 11px; }
.privacy-box > span { color: var(--gold-dark); font-size: 22px; }
.privacy-box strong { color: var(--gray-800); font-size: 12px; }
.privacy-box p { margin: 5px 0 8px; color: var(--gray-600); font-size: 10px; line-height: 1.55; }
.submission-summary { margin-top: 15px; padding: 15px 18px; border: 1px solid var(--gray-200); border-radius: 10px; }
.submission-summary strong { font-size: 12px; }
.submission-summary p { margin: 4px 0 0; color: var(--gray-600); font-size: 10px; line-height: 1.5; }
.wizard-actions { display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--gray-100); }
.form-errors { margin-bottom: 22px; padding: 14px 17px; color: #8e2d29; background: var(--red-soft); border-left: 3px solid var(--red); border-radius: 8px; font-size: 12px; }
.form-errors ul { margin: 7px 0 0; padding-left: 17px; }
.form-errors.compact { margin-bottom: 15px; }
.flash { margin-top: 17px; padding: 13px 17px; border-radius: 9px; font-size: 13px; }
.flash.success { color: #1b6331; background: #e4f5e7; border: 1px solid #c3e8c9; }
.flash.error { color: #8e2d29; background: var(--red-soft); border: 1px solid #f2c7c3; }

.lookup-section { min-height: 660px; display: flex; align-items: center; padding: 70px 0 80px; background: linear-gradient(115deg, #fff8d6 0 51%, white 51%); }
.lookup-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 100px; align-items: center; }
.lookup-copy h1 { margin-bottom: 18px; color: var(--green-950); font-size: 48px; line-height: 1.14; letter-spacing: -.04em; }
.lookup-copy > p { max-width: 520px; color: var(--gray-600); font-size: 15px; line-height: 1.75; }
.lookup-benefits { margin-top: 35px; display: grid; gap: 17px; }
.lookup-benefits > div { display: flex; gap: 13px; align-items: center; }
.lookup-benefits > div > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: var(--green-700); background: white; border: 1px solid var(--green-100); border-radius: 10px; }
.lookup-benefits div div { display: flex; flex-direction: column; }
.lookup-benefits strong { color: var(--gray-800); font-size: 12px; }
.lookup-benefits small { margin-top: 3px; color: var(--gray-500); font-size: 10px; }
.lookup-card { max-width: 420px; width: 100%; justify-self: center; padding: 40px; background: white; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lookup-lock { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 20px; color: var(--green-700); background: var(--green-100); border-radius: 13px; font-size: 24px; }
.lookup-card h2 { margin-bottom: 7px; color: var(--green-950); font-size: 25px; }
.lookup-card > p { margin-bottom: 25px; color: var(--gray-600); font-size: 12px; line-height: 1.5; }
.lookup-card label { margin-bottom: 17px; }
.lookup-help { display: block; margin-top: 17px; color: var(--gray-500); text-align: center; font-size: 9px; line-height: 1.5; }

.confirmation-section { padding: 70px 0 90px; background: linear-gradient(145deg, var(--green-50), white); }
.confirmation-card { padding: 48px; text-align: center; background: white; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.success-seal { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 19px; color: white; background: var(--green-600); border: 9px solid var(--green-100); border-radius: 50%; font-size: 25px; box-sizing: content-box; }
.confirmation-card h1 { margin-bottom: 9px; color: var(--green-950); font-size: 32px; }
.confirmation-card > p { max-width: 540px; margin: 0 auto 28px; color: var(--gray-600); font-size: 13px; line-height: 1.65; }
.credentials-panel { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 26px; align-items: center; padding: 26px; color: white; background: var(--green-950); border-radius: 13px; }
.credentials-panel > span { width: 1px; height: 50px; background: rgba(255,255,255,.14); }
.credentials-panel div { display: flex; flex-direction: column; }
.credentials-panel small { color: rgba(255,255,255,.55); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.credentials-panel strong { margin-top: 7px; color: var(--gold); font: 800 24px/1.2 var(--font-display); letter-spacing: .07em; }
.case-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 23px 0 29px; }
.case-mini-grid div { display: flex; flex-direction: column; padding: 14px; background: var(--gray-50); border-radius: 9px; }
.case-mini-grid small { color: var(--gray-500); font-size: 9px; }
.case-mini-grid strong { margin-top: 4px; color: var(--gray-800); font-size: 11px; }
.confirmation-actions { display: flex; justify-content: center; gap: 11px; }
.warning-note { display: flex; align-items: center; gap: 11px; margin-top: 28px; padding: 13px 16px; text-align: left; background: var(--yellow-soft); border-radius: 9px; }
.warning-note span { display: grid; place-items: center; width: 25px; height: 25px; color: #816800; border: 1px solid #d6b928; border-radius: 50%; }
.warning-note p { margin: 0; color: #6f5e15; font-size: 10px; }

.track-header { padding: 40px 0 30px; background: linear-gradient(130deg, #fff5bc, #fffdf3); border-bottom: 1px solid var(--gray-100); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--green-700); font-size: 11px; font-weight: 700; }
.track-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.track-title .eyebrow { margin-bottom: 4px; }
.track-title h1 { margin-bottom: 5px; color: var(--green-950); font-size: 32px; letter-spacing: -.02em; }
.track-title p { margin: 0; color: var(--gray-600); }
.status-badge { display: inline-flex; align-items: center; width: max-content; padding: 6px 10px; color: #285a36; background: var(--green-100); border-radius: 30px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; margin-right: 6px; background: currentColor; border-radius: 50%; }
.status-pending_approval { color: #76528e; background: var(--purple-soft); }
.status-pending_delivery { color: #8c5c0e; background: #fff0d6; }
.status-returned, .status-voided, .status-rejected, .status-overdue { color: #9b3935; background: var(--red-soft); }
.status-registered, .status-pending_assignment, .status-requested { color: #8c6d0e; background: var(--yellow-soft); }
.status-in_progress, .status-assigned, .status-in_support { color: #27618a; background: var(--blue-soft); }
.status-closed, .status-resolved, .status-responded { color: #2b6b3a; background: var(--green-100); }
.track-content { padding: 38px 0 80px; background: var(--gray-50); }
.track-grid { display: grid; grid-template-columns: minmax(0,1fr) 305px; gap: 24px; align-items: start; }
.content-card, .admin-card { background: white; border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.content-card { margin-bottom: 22px; padding: 27px 29px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.card-heading h2 { margin: 0; color: var(--green-950); font-size: 19px; }
.due-chip { padding: 8px 11px; color: var(--gray-600); background: var(--gray-50); border-radius: 7px; font-size: 9px; }
.public-timeline, .admin-timeline { margin: 0; padding: 0; list-style: none; }
.public-timeline li { position: relative; display: flex; gap: 15px; min-height: 82px; }
.public-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 12px; bottom: 0; border-left: 1px solid var(--gray-200); }
.public-timeline li > span { position: relative; z-index: 2; display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; color: white; background: var(--green-600); border-radius: 50%; font-size: 9px; }
.public-timeline li.current > span { color: var(--gold-dark); background: var(--gold-soft); border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(219,187,43,.09); }
.public-timeline li div { display: flex; flex-direction: column; }
.public-timeline strong { color: var(--gray-800); font-size: 12px; }
.public-timeline small { margin-top: 3px; color: var(--gray-400); font-size: 9px; }
.public-timeline p { margin: 6px 0 0; color: var(--gray-600); font-size: 10px; }
.response-ready { display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; margin-bottom: 22px; padding: 24px 27px; color: white; background: linear-gradient(120deg, #080808, #292929); border: 1px solid rgba(219,187,43,.3); border-radius: var(--radius); box-shadow: var(--shadow); }
.response-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--green-900); background: var(--gold); border-radius: 12px; }
.response-ready .card-kicker { color: rgba(255,255,255,.55); }
.response-ready h2 { margin-bottom: 3px; font-size: 17px; }
.response-ready p { margin: 0; color: rgba(255,255,255,.63); font-size: 10px; }
.document-list { display: grid; gap: 8px; }
.document-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; background: var(--gray-50); border-radius: 8px; }
.document-list a > span { color: var(--green-700); font-size: 20px; }
.document-list a div { display: flex; flex-direction: column; }
.document-list strong { font-size: 11px; }
.document-list small { color: var(--gray-500); font-size: 9px; }
.rating-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 21px 0 14px; }
.survey-card > p { color: var(--gray-600); font-size: 12px; }
.survey-card form > label { margin-bottom: 14px; }
.track-summary { position: sticky; top: 20px; }
.track-summary .content-card { padding: 23px; }
.track-summary dl { margin: 17px 0 0; }
.track-summary dl div { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.track-summary dl div:last-child { border: 0; }
.track-summary dt { color: var(--gray-500); font-size: 9px; }
.track-summary dd { margin: 3px 0 0; color: var(--gray-800); font-size: 11px; font-weight: 700; }

.login-section { min-height: calc(100vh - 80px); display: grid; grid-template-columns: 1fr 1fr; }
.login-visual { position: relative; display: flex; align-items: flex-end; padding: 70px max(60px, calc((100vw - 1180px)/2)); color: white; background:
    linear-gradient(0deg, rgba(0,0,0,.94), rgba(0,0,0,.48)),
    radial-gradient(circle at 70% 20%, #dbbb2b, transparent 36%),
    linear-gradient(135deg, #353535, #080808);
    overflow: hidden;
}
.login-visual::before, .login-visual::after { content: ""; position: absolute; width: 330px; height: 470px; right: -40px; bottom: -180px; border: 60px solid rgba(219,187,43,.12); border-radius: 100% 0; transform: rotate(-25deg); }
.login-visual::after { width: 180px; height: 310px; right: 220px; bottom: -170px; border-color: rgba(255,255,255,.09); }
.login-visual > div { position: relative; z-index: 2; }
.login-visual h1 { font-size: 43px; line-height: 1.14; letter-spacing: -.04em; }
.login-visual p { max-width: 430px; color: rgba(255,255,255,.66); line-height: 1.7; }
.login-form-wrap { display: grid; place-items: center; padding: 60px; }
.login-card { width: min(390px, 100%); }
.login-card .brand { margin-bottom: 58px; padding: 13px 18px; background: #080808; border-radius: 12px; box-shadow: var(--shadow); }
.login-card h2 { margin-top: 9px; }
.login-card > p { margin-bottom: 26px; color: var(--gray-600); font-size: 12px; }
.login-card > label { margin-bottom: 17px; }
.login-card .button { margin-top: 15px; }
.back-home { display: block; margin-top: 25px; color: var(--gray-500); text-align: center; font-size: 10px; font-weight: 600; }

/* Administrative workspace */
.admin-body { min-height: 100vh; background: #f5f5f2; }
.sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 246px; display: flex; flex-direction: column; color: rgba(255,255,255,.69); background: #080808; box-shadow: 8px 0 30px rgba(0,0,0,.12); border-right: 1px solid rgba(219,187,43,.18); }
.sidebar-brand { height: 78px; padding: 0 24px; color: white; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand small { color: rgba(255,255,255,.5); }
.sidebar-nav { flex: 1; padding: 20px 13px; overflow-y: auto; }
.sidebar-nav .nav-caption { display: block; margin: 17px 12px 7px; color: rgba(255,255,255,.31); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.sidebar-nav .nav-caption:first-child { margin-top: 0; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; min-height: 41px; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; transition: .2s; }
.sidebar-nav a > span { width: 20px; color: rgba(255,255,255,.48); font-size: 17px; text-align: center; }
.sidebar-nav a:hover { color: white; background: rgba(255,255,255,.05); }
.sidebar-nav a.active { color: white; background: rgba(219,187,43,.13); }
.sidebar-nav a.active > span { color: var(--gold); }
.sidebar-user { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-height: 73px; padding: 13px 16px; background: rgba(0,0,0,.12); border-top: 1px solid rgba(255,255,255,.07); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; color: var(--green-950); background: var(--gold); border-radius: 9px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.avatar.small { width: 30px; height: 30px; flex: 0 0 30px; background: var(--green-100); color: var(--green-700); }
.sidebar-user > div { display: flex; min-width: 0; flex-direction: column; }
.sidebar-user strong { overflow: hidden; color: white; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { margin-top: 2px; color: rgba(255,255,255,.44); font-size: 8px; }
.sidebar-user button { color: rgba(255,255,255,.45); background: transparent; border: 0; cursor: pointer; }
.admin-shell { min-height: 100vh; margin-left: 246px; }
.admin-topbar { position: sticky; z-index: 40; top: 0; height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--gray-200); backdrop-filter: blur(12px); }
.sidebar-toggle { display: none; background: transparent; border: 0; font-size: 20px; }
.top-search { width: min(370px, 45vw); display: flex; align-items: center; gap: 8px; }
.top-search > span { color: var(--gray-400); font-size: 19px; }
.top-search input { min-height: 38px; padding-left: 0; background: transparent; border: 0; box-shadow: none; font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 20px; color: var(--gray-500); font-size: 9px; }
.system-online { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: var(--green-50); border-radius: 20px; }
.system-online i { width: 6px; height: 6px; background: var(--green-500); border-radius: 50%; box-shadow: 0 0 0 3px var(--green-100); }
.admin-content { width: min(1480px, 100%); margin: 0 auto; padding: 31px 34px 60px; }
.admin-content > .flash:first-child { margin-top: 0; margin-bottom: 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin-bottom: 5px; color: var(--gray-950); font-size: 27px; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--gray-500); font-size: 11px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 13px; margin-bottom: 20px; }
.stat-card { min-width: 0; display: flex; align-items: flex-start; gap: 11px; min-height: 112px; padding: 18px 15px; background: white; border: 1px solid var(--gray-100); border-radius: 11px; box-shadow: var(--shadow-sm); }
.stat-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 8px; font-size: 16px; }
.stat-icon.green { color: var(--green-700); background: var(--green-100); }
.stat-icon.gold { color: #846b08; background: var(--gold-soft); }
.stat-icon.blue { color: #39729d; background: var(--blue-soft); }
.stat-icon.purple { color: #73528c; background: var(--purple-soft); }
.stat-icon.red { color: var(--red); background: var(--red-soft); }
.stat-icon.gray { color: var(--gray-600); background: var(--gray-100); }
.stat-card > div { min-width: 0; display: flex; flex-direction: column; }
.stat-card small { overflow: hidden; color: var(--gray-500); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.stat-card strong { margin-top: 5px; font: 800 23px/1.2 var(--font-display); color: var(--gray-950); }
.stat-card p { margin: 4px 0 0; color: var(--gray-400); font-size: 8px; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr .85fr; gap: 18px; margin-bottom: 18px; }
.admin-card { padding: 22px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.admin-card-head > div { display: flex; flex-direction: column; }
.admin-card-head h2 { margin: 0; color: var(--gray-950); font-size: 16px; }
.admin-card-head a { color: var(--green-700); font-size: 9px; font-weight: 700; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 28px; gap: 12px; align-items: center; color: var(--gray-600); font-size: 9px; }
.bar-row > i { height: 8px; background: var(--gray-100); border-radius: 8px; overflow: hidden; }
.bar-row > i b { display: block; height: 100%; background: linear-gradient(90deg, var(--green-700), var(--green-500)); border-radius: 8px; }
.bar-row > strong { color: var(--gray-800); text-align: right; }
.deadline-card { display: grid; grid-template-columns: 1fr 140px; align-items: center; }
.deadline-card .admin-card-head { grid-column: 1/-1; }
.donut { --percent: 0; width: 124px; height: 124px; display: grid; place-items: center; margin: auto; background: conic-gradient(var(--green-600) calc(var(--percent)*1%), var(--gray-100) 0); border-radius: 50%; }
.donut::before { content: ""; grid-area: 1/1; width: 88px; height: 88px; background: white; border-radius: 50%; }
.donut > div { z-index: 2; grid-area: 1/1; display: flex; flex-direction: column; text-align: center; }
.donut strong { font: 800 22px/1 var(--font-display); }
.donut small { margin-top: 4px; color: var(--gray-400); font-size: 8px; }
.deadline-legend { display: grid; gap: 14px; }
.deadline-legend span { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; color: var(--gray-600); font-size: 8px; }
.deadline-legend i { width: 7px; height: 7px; border-radius: 50%; }
.green-dot { background: var(--green-600); }.red-dot { background: var(--red); }.gray-dot { background: var(--gray-300); }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 9px 12px; color: var(--gray-400); background: var(--gray-50); border-bottom: 1px solid var(--gray-100); text-align: left; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 12px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td > small, .data-table td > a + small, .data-table td > strong + small { display: block; max-width: 190px; margin-top: 3px; color: var(--gray-400); font-size: 8px; }
.tracking-link { color: var(--green-700); font-weight: 800; white-space: nowrap; }
.row-action { display: grid; place-items: center; width: 28px; height: 28px; color: var(--green-700); background: var(--green-50); border-radius: 7px; font-weight: 800; }
.traffic { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-700); font-size: 9px; font-weight: 700; white-space: nowrap; }
.traffic i { width: 7px; height: 7px; background: var(--gray-400); border-radius: 50%; box-shadow: 0 0 0 3px var(--gray-100); }
.traffic-green i { background: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.traffic-yellow i { background: #d5a71a; box-shadow: 0 0 0 3px var(--yellow-soft); }
.traffic-red i, .traffic-overdue i { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.empty-state { padding: 45px 20px; color: var(--gray-500); text-align: center; }
.empty-state.small { padding: 18px; }
.empty-state span { display: block; margin-bottom: 8px; font-size: 25px; }
.empty-state h3 { margin-bottom: 5px; color: var(--gray-700); font-size: 14px; }
.empty-state p { margin: 0; font-size: 10px; }

.filter-card { margin-bottom: 17px; padding: 16px 18px 0; background: white; border: 1px solid var(--gray-100); border-radius: 11px; box-shadow: var(--shadow-sm); }
.filter-grid { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(4,minmax(110px,1fr)) auto auto; gap: 9px; }
.filter-grid input, .filter-grid select { min-height: 38px; font-size: 10px; }
.filter-grid .button { min-height: 38px; padding: 8px 14px; font-size: 10px; }
.search-field { position: relative; display: flex; flex-direction: row; align-items: center; }
.search-field > span { position: absolute; left: 11px; z-index: 2; color: var(--gray-400); font-size: 16px; }
.search-field input { padding-left: 33px; }
.quick-filters { display: flex; gap: 27px; margin-top: 14px; }
.quick-filters a { padding: 0 1px 12px; color: var(--gray-500); border-bottom: 2px solid transparent; font-size: 9px; font-weight: 700; }
.quick-filters a.active { color: var(--green-700); border-color: var(--gold); }
.table-card { padding: 0; overflow: hidden; }
.case-table td { padding-block: 15px; }
.case-table td:nth-child(2) strong, .case-table td:nth-child(3) strong { display: block; max-width: 180px; color: var(--gray-800); font-size: 10px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-cell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.manager-cell i { display: grid; place-items: center; width: 24px; height: 24px; color: var(--green-700); background: var(--green-100); border-radius: 7px; font-size: 7px; font-style: normal; font-weight: 800; }
.manager-cell > span { color: var(--gray-400); }
.pagination { padding: 14px 18px; border-top: 1px solid var(--gray-100); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.pager-summary { color: var(--gray-500); font-size: 9px; white-space: nowrap; }
.pager-summary strong { color: var(--gray-700); }
.pager-controls { display: flex; align-items: center; gap: 5px; }
.pager-link { min-width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; color: var(--gray-600); background: white; border: 1px solid var(--gray-200); border-radius: 7px; font-size: 9px; font-weight: 700; transition: .2s; }
.pager-link:hover { color: var(--green-800); background: var(--green-50); border-color: var(--green-500); }
.pager-link.active { color: white; background: var(--green-800); border-color: var(--green-800); box-shadow: 0 4px 10px rgba(23,63,43,.16); }
.pager-link.disabled { color: var(--gray-300); background: var(--gray-50); border-color: var(--gray-100); cursor: not-allowed; }
.pager-direction { gap: 6px; }
.pager-ellipsis { padding: 0 3px; color: var(--gray-400); font-size: 10px; }
.pagination svg, .pager svg { width: 15px !important; height: 15px !important; }
.company-chip { display: inline-flex; width: fit-content; align-items: center; gap: 5px; margin-top: 5px; padding: 3px 7px; color: var(--gray-700); background: color-mix(in srgb, var(--chip-color, var(--green-700)) 10%, white); border: 1px solid color-mix(in srgb, var(--chip-color, var(--green-700)) 28%, white); border-radius: 20px; font-size: 7px; font-weight: 800; line-height: 1; }
.company-chip::before { content: ""; width: 6px; height: 6px; background: var(--chip-color, var(--green-700)); border-radius: 50%; }
.company-chip.large { margin: 0; padding: 6px 10px; font-size: 9px; }
.company-summary { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: -7px 0 18px; padding: 12px 15px; background: white; border: 1px solid var(--gray-100); border-radius: 10px; color: var(--gray-500); font-size: 9px; }
.company-summary > strong { color: var(--gray-700); }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.step-circle { display: grid; place-items: center; width: 27px; height: 27px; margin-bottom: 7px; color: white; background: var(--green-700); border-radius: 8px; font-size: 10px; font-weight: 800; }
.admin-form-grid .field-grid { gap: 14px; }
.admin-form-grid input, .admin-form-grid textarea, .admin-form-grid select { min-height: 40px; font-size: 10px; }
.form-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--gray-100); }

.case-top { margin: -31px -34px 0; padding: 25px 34px 21px; background: white; border-bottom: 1px solid var(--gray-200); }
.case-top .back-link { margin-bottom: 13px; }
.case-title-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.case-title-row h1 { margin-bottom: 3px; color: var(--gray-950); font-size: 24px; }
.case-title-row p { margin: 0; color: var(--gray-600); font-size: 11px; }
.case-title-badges { display: flex; gap: 8px; }
.priority-badge { display: inline-flex; align-items: center; padding: 6px 9px; color: var(--gray-600); background: var(--gray-100); border-radius: 30px; font-size: 9px; font-weight: 800; }
.priority-high, .priority-urgent { color: #9b3935; background: var(--red-soft); }
.case-metrics { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.case-metrics div { display: flex; flex-direction: column; padding: 0 18px; border-right: 1px solid var(--gray-100); }
.case-metrics div:first-child { padding-left: 0; }
.case-metrics div:last-child { border: 0; }
.case-metrics small { color: var(--gray-400); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.case-metrics strong { margin-top: 5px; color: var(--gray-800); font-size: 10px; }
.case-tabs { display: flex; gap: 25px; margin: 0 -34px 24px; padding: 0 34px; background: white; border-bottom: 1px solid var(--gray-200); overflow-x: auto; }
.case-tabs a { padding: 14px 1px 12px; color: var(--gray-500); border-bottom: 2px solid transparent; font-size: 9px; font-weight: 700; white-space: nowrap; }
.case-tabs a.active, .case-tabs a:hover { color: var(--green-700); border-color: var(--gold); }
.case-tabs a span { padding: 2px 5px; background: var(--gray-100); border-radius: 5px; font-size: 7px; }
.case-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 18px; align-items: start; }
.case-section { margin-bottom: 17px; scroll-margin-top: 95px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0; }
.detail-grid div { padding-bottom: 13px; border-bottom: 1px solid var(--gray-100); }
.detail-grid .detail-full { grid-column: 1/-1; }
.detail-grid dt { color: var(--gray-400); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.detail-grid dd { margin: 5px 0 0; color: var(--gray-800); font-size: 10px; }
.detail-grid .long-copy { line-height: 1.7; white-space: pre-line; }
.priority-detail { padding: 12px !important; background: var(--red-soft); border: 0 !important; border-radius: 8px; }
.confidential-chip, .version-chip { padding: 5px 8px; color: var(--green-700); background: var(--green-50); border-radius: 6px; font-size: 8px; font-weight: 700; }
.notes-list { display: grid; gap: 13px; }
.notes-list article { display: flex; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--gray-100); }
.notes-list article > div { display: flex; flex-direction: column; }
.notes-list strong { color: var(--gray-800); font-size: 10px; }
.notes-list small { margin-top: 2px; color: var(--gray-400); font-size: 8px; }
.notes-list p { margin: 7px 0 0; color: var(--gray-600); font-size: 10px; line-height: 1.55; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.inline-form label { flex: 1; }
.inline-form .button { flex: 0 0 auto; margin-bottom: 1px; }
.document-table { display: grid; gap: 6px; }
.document-table > a { display: grid; grid-template-columns: auto 1fr auto auto; gap: 11px; align-items: center; padding: 10px 12px; background: var(--gray-50); border-radius: 8px; }
.doc-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--green-700); background: white; border-radius: 7px; font-size: 17px; }
.document-table a > div { display: flex; flex-direction: column; }
.document-table strong { color: var(--gray-800); font-size: 9px; }
.document-table small { margin-top: 2px; color: var(--gray-400); font-size: 7px; }
.visibility-chip { padding: 4px 7px; color: var(--gray-500); background: white; border-radius: 5px; font-size: 7px; text-transform: uppercase; }
.document-upload { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 9px; align-items: end; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--gray-100); }
.document-upload input, .document-upload select { min-height: 37px; font-size: 9px; }
.document-upload .button { min-height: 37px; font-size: 9px; }
.support-list { display: grid; gap: 11px; }
.support-list > article { padding: 15px; border: 1px solid var(--gray-100); border-radius: 10px; }
.support-head { display: flex; align-items: center; justify-content: space-between; }
.support-head > div { display: flex; gap: 10px; align-items: center; }
.area-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #39729d; background: var(--blue-soft); border-radius: 8px; }
.support-head div div { display: flex; flex-direction: column; }
.support-head strong { color: var(--gray-800); font-size: 10px; }
.support-head small { color: var(--gray-400); font-size: 8px; }
.support-list article > p { margin: 12px 0; color: var(--gray-600); font-size: 9px; line-height: 1.6; }
.support-meta { display: flex; gap: 20px; color: var(--gray-400); font-size: 8px; }
.support-response { margin-top: 12px; padding: 12px; background: var(--green-50); border-radius: 8px; }
.support-response strong { color: var(--green-700); font-size: 9px; }
.support-response p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }
.support-list form { margin-top: 14px; }
.action-details { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.action-details summary { color: var(--green-700); font-size: 10px; font-weight: 800; cursor: pointer; }
.action-details form { margin-top: 15px; }
.action-details input, .action-details select, .action-details textarea { min-height: 38px; font-size: 9px; }
.response-history { display: flex; flex-direction: column; margin-bottom: 14px; padding: 12px 14px; background: var(--gray-50); border-radius: 8px; }
.response-history strong { color: var(--gray-800); font-size: 10px; text-transform: capitalize; }
.response-history span { margin-top: 3px; color: var(--gray-400); font-size: 8px; }
.response-history p { margin: 7px 0 0; color: var(--red); font-size: 9px; }
.response-editor { border: 1px solid var(--gray-200); border-radius: 9px; overflow: hidden; }
.template-bar { display: flex; justify-content: space-between; padding: 9px 12px; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-200); font-size: 8px; }
.response-editor textarea { border: 0; border-radius: 0; box-shadow: none; font: 400 11px/1.75 var(--font-body); }
.editor-actions { display: flex; justify-content: flex-end; padding: 10px; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.submit-approval { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding: 13px 15px; background: var(--gold-soft); border-radius: 9px; }
.submit-approval div { display: flex; flex-direction: column; }
.submit-approval strong { font-size: 10px; }
.submit-approval small { margin-top: 2px; color: var(--gray-600); font-size: 8px; }
.approval-preview { margin-bottom: 15px; padding: 15px; background: var(--gray-50); border-radius: 8px; }
.response-copy { max-height: 330px; overflow-y: auto; color: var(--gray-700); font-size: 10px; line-height: 1.75; white-space: pre-wrap; }
.review-form { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: end; }
.approved-banner { display: flex; align-items: center; gap: 11px; padding: 15px; color: var(--green-800); background: var(--green-50); border-radius: 9px; }
.approved-banner > span { display: grid; place-items: center; width: 33px; height: 33px; color: white; background: var(--green-600); border-radius: 50%; }
.approved-banner > div { flex: 1; display: flex; flex-direction: column; }
.approved-banner strong { font-size: 10px; }
.approved-banner small { margin-top: 2px; font-size: 8px; }
.approved-banner a { font-size: 8px; font-weight: 700; }
.delivery-record { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px; border: 1px solid var(--gray-100); border-radius: 8px; }
.delivery-record > span { color: var(--green-600); }
.delivery-record div { display: flex; flex-direction: column; }
.delivery-record strong { font-size: 9px; text-transform: capitalize; }
.delivery-record small { color: var(--gray-400); font-size: 8px; }
.close-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.admin-timeline li { position: relative; display: flex; gap: 13px; min-height: 67px; }
.admin-timeline li:not(:last-child)::after { content:""; position: absolute; top: 18px; left: 5px; bottom: 0; border-left: 1px solid var(--gray-200); }
.admin-timeline li > span { position: relative; z-index: 2; width: 11px; height: 11px; margin-top: 2px; flex: 0 0 11px; background: var(--green-500); border: 3px solid var(--green-100); border-radius: 50%; box-sizing: content-box; }
.admin-timeline li > div { display: flex; flex-direction: column; }
.admin-timeline strong { color: var(--gray-800); font-size: 10px; }
.admin-timeline small { margin-top: 2px; color: var(--gray-400); font-size: 8px; }
.admin-timeline p { margin: 5px 0 0; color: var(--gray-600); font-size: 9px; }
.case-aside { position: sticky; top: 84px; display: grid; gap: 13px; }
.aside-card { padding: 17px; }
.aside-card h3 { margin-bottom: 13px; color: var(--gray-800); font-size: 13px; }
.aside-card label { margin-bottom: 10px; }
.aside-card input, .aside-card select { min-height: 37px; font-size: 9px; }
.aside-card .button { min-height: 38px; font-size: 9px; }
.big-traffic { display: flex; align-items: center; gap: 12px; }
.big-traffic > i { width: 15px; height: 15px; background: var(--gray-400); border: 4px solid var(--gray-100); border-radius: 50%; box-sizing: content-box; }
.big-traffic.traffic-green > i { background: var(--green-500); border-color: var(--green-100); }
.big-traffic.traffic-yellow > i { background: #d5a71a; border-color: var(--yellow-soft); }
.big-traffic.traffic-red > i, .big-traffic.traffic-overdue > i { background: var(--red); border-color: var(--red-soft); }
.big-traffic > div { display: flex; flex-direction: column; }
.big-traffic strong { color: var(--gray-800); font: 800 17px/1.2 var(--font-display); }
.big-traffic small { color: var(--gray-400); font-size: 8px; }
.deadline-track { height: 6px; margin: 15px 0 10px; background: var(--gray-100); border-radius: 6px; }
.deadline-track b { display: block; height: 100%; background: var(--green-500); border-radius: 6px; }
.aside-card > p { margin: 0; color: var(--gray-500); font-size: 8px; }

.report-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.report-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: flex-start; min-height: 140px; padding: 20px; background: white; border: 1px solid var(--gray-100); border-radius: 11px; box-shadow: var(--shadow-sm); }
.report-card > span { display: grid; place-items: center; width: 37px; height: 37px; color: var(--green-700); background: var(--green-100); border-radius: 9px; font-size: 18px; }
.report-card h3 { margin-bottom: 7px; color: var(--gray-800); font-size: 12px; }
.report-card p { margin: 0; color: var(--gray-500); font-size: 9px; line-height: 1.55; }
.report-card > b { color: var(--gray-300); }
.report-note { display: flex; gap: 14px; margin-top: 18px; color: #735e13; background: var(--gold-soft); border: 0; }
.report-note > span { font-size: 22px; }
.report-note strong { font-size: 11px; }
.report-note p { margin: 5px 0 0; font-size: 9px; line-height: 1.5; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.setting-card form > label { margin-bottom: 13px; }
.setting-card input { min-height: 38px; font-size: 10px; }
.catalog-list { display: grid; gap: 3px; max-height: 260px; overflow-y: auto; }
.catalog-list > div { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; padding: 8px 10px; background: var(--gray-50); border-radius: 6px; }
.catalog-list > div > span { width: 7px; height: 7px; background: var(--green-500); border-radius: 50%; }
.catalog-list strong { color: var(--gray-700); font-size: 9px; }
.catalog-list small { color: var(--gray-400); font-size: 8px; }
.catalog-list b { color: var(--green-600); font-size: 7px; }
.catalog-list.compact > div { grid-template-columns: auto 1fr auto; }
.mini-create { display: grid; grid-template-columns: 1fr 75px 35px; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--gray-100); }
.mini-create button { color: white; background: var(--green-700); border: 0; border-radius: 7px; cursor: pointer; }
.mini-create.stack { grid-template-columns: 1fr 1fr auto; }
.mini-create.stack .button { color: var(--green-800); background: white; border: 1px solid var(--gray-200); }
.users-setting { margin-top: 17px; }
.company-setting { margin-bottom: 17px; }
.company-setting .admin-card-head p { margin: 4px 0 0; color: var(--gray-500); font-size: 9px; }
.company-setting-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.company-setting-item { border: 1px solid var(--gray-100); border-radius: 9px; background: var(--gray-50); overflow: hidden; }
.company-setting-item summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 13px; cursor: pointer; list-style: none; }
.company-setting-item summary::-webkit-details-marker { display: none; }
.company-setting-item summary > div { display: flex; min-width: 0; flex-direction: column; }
.company-setting-item summary strong { color: var(--gray-800); font-size: 10px; }
.company-setting-item summary small { margin-top: 3px; overflow: hidden; color: var(--gray-400); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.company-color { display: grid; place-items: center; width: 30px; height: 30px; color: white; border-radius: 8px; font-size: 14px; font-weight: 800; }
.new-company .company-color { background: var(--green-700); }
.company-setting-item form { padding: 14px; background: white; border-top: 1px solid var(--gray-100); }
.company-setting-item input { min-height: 38px; font-size: 10px; }
.company-setting-item input[type="color"] { padding: 4px; }
.company-setting-item form .button { justify-self: start; }

/* Gestor documental */
.file-page-heading { align-items: center; margin-bottom: 18px; }
.file-filter-card { margin-bottom: 14px; padding: 18px; }
.file-filter-grid { display: grid; grid-template-columns: minmax(210px, 1.55fr) repeat(3, minmax(125px, .8fr)) repeat(2, minmax(120px, .7fr)) auto auto; gap: 10px; align-items: end; }
.file-filter-grid label > span, .document-filter-bottom label > span { color: var(--gray-400); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.file-filter-grid input, .file-filter-grid select { min-height: 40px; font-size: 10px; }
.file-filter-grid .button { min-height: 40px; font-size: 10px; }
.file-results-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 14px; color: var(--gray-500); font-size: 9px; }
.file-results-bar strong { color: var(--green-800); font-size: 12px; }
.case-folder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.case-folder-card { min-width: 0; padding: 17px; background: white; border: 1px solid var(--gray-100); border-radius: 13px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.case-folder-card:hover { transform: translateY(-2px); border-color: #ccdfd0; box-shadow: var(--shadow); }
.folder-card-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.folder-card-top > div { min-width: 0; display: flex; flex-direction: column; }
.folder-card-top a:not(.file-icon-button) { overflow: hidden; color: #60788f; font: 800 10px/1.35 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.folder-card-top small { margin-top: 3px; color: var(--gray-400); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-symbol, .root-folder-symbol { position: relative; display: inline-block; width: 24px; height: 18px; flex: 0 0 auto; background: var(--gold); border-radius: 3px; }
.folder-symbol::before, .root-folder-symbol::before { content: ""; position: absolute; top: -4px; left: 2px; width: 10px; height: 6px; background: inherit; border-radius: 3px 3px 0 0; }
.folder-symbol i, .root-folder-symbol i { position: absolute; inset: 5px 3px 3px; background: rgba(255,255,255,.2); border-radius: 2px; }
.folder-symbol.small { width: 28px; height: 20px; }
.file-icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 34px; color: var(--green-800); background: var(--gray-50); border: 0; border-radius: 8px; font-size: 14px; font-weight: 800; cursor: pointer; }
.file-icon-button:hover { color: white; background: var(--green-700); }
.case-folder-card > p { min-height: 32px; margin: 14px 0 10px; overflow: hidden; color: var(--gray-700); font-size: 10px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.folder-card-counts { display: flex; gap: 14px; color: var(--gray-500); font-size: 9px; }
.folder-card-counts strong { color: var(--gray-800); }
.folder-card-meta { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 9px 0 12px; padding-top: 9px; border-top: 1px solid var(--gray-100); }
.folder-card-meta small { color: var(--gray-400); font-size: 8px; }
.folder-card-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; }
.folder-card-actions .button { min-height: 39px; padding-inline: 10px; font-size: 10px; }
.folder-card-actions .file-icon-button { width: 39px; height: 39px; }
.mini-folder { font-size: 15px; }
.empty-files { grid-column: 1/-1; min-height: 300px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-folder-icon { display: block; color: var(--gold); font-size: 50px; }
.empty-files h2 { margin: 9px 0 4px; font-size: 17px; }
.empty-files p { color: var(--gray-500); font-size: 10px; }
.file-pagination { margin-top: 16px; padding: 12px 16px; }

.explorer-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 15px; padding: 15px 18px; }
.explorer-title { min-width: 0; display: flex; align-items: center; gap: 13px; }
.explorer-title > div { min-width: 0; }
.explorer-title .page-kicker { margin-bottom: 2px; }
.explorer-title h1 { margin: 0; color: var(--gray-800); font-size: 17px; letter-spacing: -.02em; }
.explorer-folder-icon { position: relative; width: 30px; height: 23px; flex: 0 0 30px; background: var(--green-900); border-radius: 4px; }
.explorer-folder-icon::before { content: ""; position: absolute; left: 3px; top: -5px; width: 13px; height: 7px; background: inherit; border-radius: 3px 3px 0 0; }
.explorer-folder-icon i { position: absolute; inset: 7px 4px 4px; background: rgba(255,255,255,.12); border-radius: 2px; }
.explorer-folder-icon.response { background: #8e4040; }
.file-breadcrumb { display: flex; gap: 7px; align-items: center; margin-top: 6px; color: var(--gray-400); font-size: 8px; overflow: hidden; white-space: nowrap; }
.file-breadcrumb a { color: #2877af; }
.file-breadcrumb strong { max-width: 260px; overflow: hidden; color: var(--gray-600); text-overflow: ellipsis; }
.explorer-actions { display: flex; gap: 7px; align-items: center; }
.explorer-actions .button { min-height: 39px; font-size: 9px; }
.file-case-summary { display: grid; grid-template-columns: 2fr 1fr .8fr 1fr; gap: 1px; margin-bottom: 15px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: 11px; overflow: hidden; box-shadow: var(--shadow-sm); }
.file-case-summary > div { min-width: 0; min-height: 67px; display: flex; justify-content: center; flex-direction: column; padding: 12px 16px; background: white; }
.file-case-summary strong { overflow: hidden; color: var(--gray-700); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.explorer-body { padding: 18px; }
.file-total-chip { padding: 6px 9px; color: var(--green-700); background: var(--green-50); border-radius: 7px; font-size: 8px; font-weight: 700; }
.root-folder-list { display: grid; gap: 8px; }
.root-folder-list > article { display: grid; grid-template-columns: minmax(250px, 1.5fr) minmax(180px, .7fr) auto; gap: 18px; align-items: center; min-height: 76px; padding: 13px 15px; background: #fafbfa; border: 1px solid var(--gray-100); border-radius: 10px; }
.root-folder-info { display: flex; align-items: center; gap: 13px; min-width: 0; }
.root-folder-symbol { width: 36px; height: 27px; background: var(--gold); }
.root-folder-symbol::before { top: -5px; width: 15px; height: 7px; }
.root-folder-symbol.response { background: #768492; }
.root-folder-info > div { min-width: 0; display: flex; flex-direction: column; }
.root-folder-info strong { color: var(--gray-800); font-size: 11px; }
.root-folder-info small { margin-top: 4px; color: var(--gray-400); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.root-folder-data { display: flex; gap: 19px; color: var(--gray-500); font-size: 8px; }
.root-folder-list .button { min-height: 38px; font-size: 9px; }
.subfolder-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 28px 0 13px; padding-top: 19px; border-top: 1px solid var(--gray-100); }
.subfolder-heading h2 { margin: 0; color: var(--gray-800); font-size: 14px; }
.subfolder-heading small { color: var(--gray-400); font-size: 8px; }
.document-folder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.document-folder-card { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; min-height: 66px; padding: 12px; background: white; border: 1px solid var(--gray-200); border-radius: 9px; transition: .2s; }
.document-folder-card:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.document-folder-card.empty { opacity: .55; }
.document-folder-card > div { min-width: 0; display: flex; flex-direction: column; }
.document-folder-card strong { overflow: hidden; color: var(--gray-700); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.document-folder-card small { margin-top: 4px; color: var(--gray-400); font-size: 7px; }
.document-folder-card b { color: var(--gray-300); }

.document-filter-form { margin-bottom: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-100); }
.document-filter-top { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(150px, .7fr) minmax(210px, 1fr); gap: 9px; }
.document-filter-bottom { display: grid; grid-template-columns: minmax(150px, .6fr) minmax(150px, .6fr) auto auto 1fr; gap: 9px; align-items: end; margin-top: 9px; }
.document-filter-form input, .document-filter-form select { min-height: 39px; font-size: 10px; }
.document-filter-form .button { min-height: 39px; font-size: 9px; }
.file-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin: 0 0 17px; }
.file-stat-grid article { min-height: 73px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 9px; box-shadow: var(--shadow-sm); }
.file-stat-grid small { color: #445167; font-size: 8px; font-weight: 700; }
.file-stat-grid strong { margin-top: 6px; color: #45556a; font: 800 17px/1 var(--font-display); }
.file-stat-grid .all { background: #f2f4ff; }
.file-stat-grid .pdf { background: #fff7df; }
.file-stat-grid .image { background: #e7f8ef; }
.file-stat-grid .video { background: #e8f4fd; }
.file-stat-grid .audio { background: #f4e7fd; }
.file-stat-grid .size { background: #f5f5f5; }
.file-table-wrap { overflow-x: auto; }
.file-explorer-table { width: 100%; border-collapse: collapse; }
.file-explorer-table th { padding: 10px 11px; color: var(--gray-600); border-bottom: 1px solid var(--gray-200); text-align: left; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.file-explorer-table th:last-child { text-align: right; }
.file-explorer-table td { padding: 11px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); font-size: 9px; vertical-align: middle; }
.file-explorer-table td:last-child { text-align: right; }
.file-explorer-table td > strong { display: block; color: var(--gray-600); font-size: 9px; }
.file-explorer-table td > small { color: var(--gray-400); font-size: 7px; }
.file-name-cell { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.file-name-cell > div { min-width: 0; display: flex; flex-direction: column; }
.file-name-cell strong { max-width: 320px; overflow: hidden; color: var(--gray-800); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-name-cell small { margin-top: 3px; color: var(--gray-400); font-size: 7px; }
.file-type-icon { width: 32px; height: 35px; display: inline-grid; place-items: center; flex: 0 0 32px; color: var(--gray-600); background: var(--gray-100); border-radius: 5px 8px 5px 5px; font-size: 13px; font-weight: 800; }
.file-type-icon.pdf { color: #a23c38; background: var(--red-soft); }
.file-type-icon.image { color: #28794a; background: var(--green-100); }
.file-type-icon.video { color: #276b96; background: var(--blue-soft); }
.file-type-icon.audio { color: #754a91; background: var(--purple-soft); }
.file-type-icon.large { width: 47px; height: 52px; flex-basis: 47px; font-size: 9px; }
.file-folder-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 210px; padding: 5px 7px; overflow: hidden; color: var(--gray-600); background: var(--gray-50); border-radius: 6px; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.file-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.file-row-actions .button { min-height: 35px; padding: 7px 13px; font-size: 9px; }
.file-row-actions .file-icon-button { width: 35px; height: 35px; font-size: 12px; }
.file-table-footer { min-height: 53px; display: flex; align-items: center; justify-content: space-between; padding-top: 11px; color: var(--gray-500); font-size: 8px; }
.file-table-footer .pagination { padding: 0; border: 0; }
.approved-file-list { display: grid; gap: 9px; }
.approved-file-list > article { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 14px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 10px; }
.approved-file-list article > div:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.approved-file-list strong { overflow: hidden; color: var(--gray-800); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.approved-file-list small { margin-top: 3px; color: var(--gray-400); font-size: 8px; }
.approved-file-list article > div:nth-child(2) > span { margin-top: 6px; color: var(--green-700); font-size: 7px; font-weight: 700; }

@media (min-width: 1120px) {
    .hero h1 em { white-space: nowrap; }
}

@media (max-width: 1180px) {
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .case-metrics { grid-template-columns: repeat(3,1fr); gap: 13px 0; }
    .report-grid { grid-template-columns: repeat(2,1fr); }
    .case-folder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .file-filter-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-grid { grid-template-columns: repeat(3, 1fr); }
    .document-folder-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .public-header nav { display: none; position: absolute; top: 79px; left: 0; right: 0; height: auto; padding: 18px 20px; flex-direction: column; align-items: stretch; gap: 12px; background: #080808; border-bottom: 1px solid rgba(219,187,43,.25); box-shadow: var(--shadow); }
    .public-header nav.open { display: flex; }
    .public-header nav a.active::after { display: none; }
    .mobile-menu { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { position: relative; z-index: 2; text-align: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-visual { min-height: 505px; width: min(100%, 560px); margin-inline: auto; }
    .community-promises { margin-top: -28px; }
    .promises-card article { padding-inline: 15px; }
    .steps-row { grid-template-columns: 1fr; gap: 35px; }
    .step-line { display: none; }
    .steps-row article { width: min(100%, 560px); margin-inline: auto; }
    .people-grid { grid-template-columns: 1fr; gap: 55px; }
    .people-copy { max-width: 620px; text-align: center; margin-inline: auto; }
    .people-copy h2, .people-copy > p { margin-inline: auto; }
    .people-checks { width: fit-content; margin-inline: auto; text-align: left; }
    .people-gallery { width: min(100%, 720px); margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .form-layout { grid-template-columns: 1fr; }
    .wizard-sidebar { position: static; }
    .wizard-steps { display: none; }
    .wizard-progress-mobile { display: flex; flex-direction: column; gap: 8px; }
    .wizard-progress-mobile span { color: var(--green-700); font-size: 10px; font-weight: 800; }
    .wizard-progress-mobile i { height: 5px; background: var(--gray-200); border-radius: 5px; overflow: hidden; }
    .wizard-progress-mobile b { display: block; width: 25%; height: 100%; background: var(--green-600); transition: .2s; }
    .wizard-sidebar .privacy-note { display: none; }
    .lookup-section { background: linear-gradient(#fff8d6 0 47%, white 47%); }
    .lookup-grid { grid-template-columns: 1fr; gap: 60px; }
    .lookup-copy { text-align: center; }
    .lookup-copy > p { margin-inline: auto; }
    .lookup-benefits { max-width: 450px; margin-inline: auto; text-align: left; }
    .login-section { grid-template-columns: 1fr; }
    .login-visual { min-height: 390px; padding: 55px 40px; }
    .login-form-wrap { padding: 55px 30px; }
    .login-card .brand { margin-bottom: 45px; }
    .sidebar { transform: translateX(-100%); transition: .25s; }
    .sidebar.open { transform: translateX(0); }
    .admin-shell { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .admin-topbar { padding-inline: 20px; }
    .dashboard-grid, .case-layout, .admin-form-grid { grid-template-columns: 1fr; }
    .case-aside { position: static; grid-row: 1; grid-template-columns: repeat(2,1fr); }
    .filter-grid { grid-template-columns: repeat(3,1fr); }
    .document-upload { grid-template-columns: 1fr 1fr; }
    .case-folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explorer-header { align-items: flex-start; flex-direction: column; }
    .file-case-summary { grid-template-columns: 1fr 1fr; }
    .file-stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1180px); }
    .public-header { height: 69px; }
    .public-header nav { top: 68px; }
    .brand-logo { width: 152px; }
    .footer-logo { width: 176px; }
    .sidebar-logo { width: 150px; }
    .login-logo { width: 172px; }
    .hero { min-height: auto; }
    .hero-grid { padding-block: 50px 68px; gap: 36px; }
    .hero h1 { font-size: 42px; }
    .hero-copy > p { font-size: 15px; }
    .hero-actions { flex-direction: column; }
    .trust-row { flex-direction: column; gap: 8px; }
    .hero-visual { min-height: 400px; width: 100%; margin: 0; }
    .orbit-one { width: 340px; height: 340px; }
    .orbit-two { width: 405px; height: 405px; }
    .hero-photo-main { width: calc(100% - 30px); height: 380px; margin: 0 15px 0 0; border-width: 6px; border-radius: 34px 34px 86px 34px; }
    .hero-photo-team { right: -2px; bottom: -8px; width: 148px; height: 108px; border-width: 4px; border-radius: 14px; }
    .community-message { left: 13px; right: 13px; bottom: 14px; padding: 14px 12px 13px 45px; }
    .community-message i { left: 14px; font-size: 35px; }
    .community-message strong { font-size: 12px; }
    .community-message small { max-width: 190px; font-size: 9px; }
    .floating-pill { gap: 7px; padding: 8px 10px; font-size: 9px; }
    .floating-pill span { width: 23px; height: 23px; }
    .pill-secure { left: -2px; top: 39px; }
    .pill-track { right: -2px; top: 20px; }
    .community-promises { margin: 0; padding: 14px 0 0; }
    .promises-card { grid-template-columns: 1fr; padding: 9px 17px; box-shadow: 0 13px 35px rgba(71,57,7,.09); }
    .promises-card article { padding: 12px 5px; }
    .promises-card article + article { border-left: 0; border-top: 1px solid var(--gray-100); }
    .how-section { padding: 65px 0; }
    .steps-row article { min-height: auto; padding-block: 27px; }
    .people-section { padding: 72px 0 88px; }
    .people-grid { gap: 35px; }
    .people-copy h2 { font-size: 34px; }
    .people-gallery { grid-template-rows: 155px 155px; min-height: 355px; gap: 9px; padding: 9px 0 27px; }
    .gallery-photo { border-radius: 13px; }
    .gallery-photo-main { border-radius: 38px 13px 13px 13px; }
    .gallery-photo-accent { left: -3px; width: 128px; height: 88px; border-width: 4px; border-radius: 11px; }
    .people-gallery::before { top: -18px; right: -35px; width: 150px; height: 150px; }
    .cta-card { padding: 30px; flex-direction: column; align-items: flex-start; gap: 25px; }
    .wizard-card { padding: 28px 20px 22px; }
    .choice-grid { grid-template-columns: 1fr; }
    .choice-card { min-height: 100px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; text-align: left; align-items: center; justify-items: start; }
    .choice-card .choice-icon { grid-row: 1/3; margin: 0; }
    .field-grid, .rating-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .wizard-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
    .wizard-actions > span { display: none; }
    .wizard-actions .button { width: 100%; }
    .lookup-section { padding: 55px 0; }
    .lookup-copy h1 { font-size: 37px; }
    .lookup-card { padding: 27px 22px; }
    .confirmation-card { padding: 35px 20px; }
    .credentials-panel { grid-template-columns: 1fr; gap: 18px; }
    .credentials-panel > span { width: 100%; height: 1px; }
    .credentials-panel strong { font-size: 19px; }
    .case-mini-grid { grid-template-columns: 1fr; }
    .confirmation-actions { flex-direction: column; }
    .track-title { align-items: flex-start; flex-direction: column; }
    .track-grid { grid-template-columns: 1fr; }
    .track-summary { position: static; }
    .card-heading { align-items: flex-start; flex-direction: column; }
    .response-ready { grid-template-columns: auto 1fr; }
    .response-ready .button { grid-column: 1/-1; }
    .admin-content { padding: 24px 15px 50px; }
    .top-search, .system-online, .top-date { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 100px; }
    .deadline-card { grid-template-columns: 1fr; gap: 20px; }
    .case-aside, .settings-grid, .company-setting-grid, .report-grid { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr; }
    .quick-filters { gap: 18px; overflow-x: auto; }
    .case-top { margin: -24px -15px 0; padding-inline: 15px; }
    .case-title-row { align-items: flex-start; flex-direction: column; }
    .case-metrics { grid-template-columns: 1fr 1fr; }
    .case-metrics div { padding: 0 10px; }
    .case-tabs { margin-inline: -15px; padding-inline: 15px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid .detail-full { grid-column: auto; }
    .inline-form, .submit-approval { align-items: stretch; flex-direction: column; }
    .document-upload, .review-form, .close-form { grid-template-columns: 1fr; }
    .mini-create, .mini-create.stack { grid-template-columns: 1fr; }
    .mini-create button { min-height: 38px; }
    .file-filter-grid, .case-folder-grid, .document-folder-grid, .document-filter-top, .document-filter-bottom { grid-template-columns: 1fr; }
    .file-results-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .explorer-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .explorer-actions .button { width: 100%; }
    .file-case-summary { grid-template-columns: 1fr; }
    .root-folder-list > article { grid-template-columns: 1fr; gap: 11px; }
    .root-folder-data { justify-content: space-between; }
    .root-folder-list .button { width: 100%; }
    .subfolder-heading { align-items: flex-start; flex-direction: column; }
    .file-stat-grid { grid-template-columns: 1fr 1fr; }
    .approved-file-list > article { grid-template-columns: auto 1fr; }
    .approved-file-list .file-row-actions { grid-column: 1/-1; width: 100%; }
    .approved-file-list .file-row-actions .button { flex: 1; }
    .pager { align-items: stretch; flex-direction: column; }
    .pager-summary { text-align: center; }
    .pager-controls { justify-content: center; flex-wrap: wrap; }
    .pager-direction span { display: none; }
}
