:root {
    color-scheme: dark;
    --bg: #070a12;
    --panel: rgba(19, 23, 37, .68);
    --panel-strong: rgba(24, 29, 46, .9);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f5f7ff;
    --muted: #9199b0;
    --green: #7bffb2;
    --green-strong: #27ec7e;
    --cyan: #6fe8ff;
    --violet: #a88cff;
    --amber: #ffc86f;
    --danger: #ff778f;
    --radius: 24px;
    --radius-small: 14px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background:
    radial-gradient(circle at 72% 0%, rgba(74, 43, 140, .16), transparent 30%),
    radial-gradient(circle at 20% 100%, rgba(0, 183, 116, .09), transparent 34%), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.ambient { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(110px); opacity: .17; }
.ambient-one { width: 390px; height: 390px; top: -200px; right: 15%; background: #7b55ff; }
.ambient-two { width: 320px; height: 320px; bottom: -180px; left: 30%; background: #00dc91; }
.glass-panel { background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)), var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(24px) saturate(130%); -webkit-backdrop-filter: blur(24px) saturate(130%); }

.admin-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; min-height: 100vh; padding: 20px; }
.sidebar { position: sticky; top: 20px; height: calc(100vh - 40px); border-radius: 28px; padding: 26px 16px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 9px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, rgba(123,255,178,.26), rgba(123,255,178,.06)); border: 1px solid rgba(123,255,178,.36); box-shadow: inset 0 0 18px rgba(123,255,178,.08), 0 0 28px rgba(39,236,126,.08); transform: rotate(45deg); }
.brand-mark span { display: block; width: 12px; height: 12px; border: 3px solid var(--green); border-radius: 50%; box-shadow: 0 0 11px rgba(123,255,178,.6); }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 13px; letter-spacing: .11em; }
.brand small { margin-top: 5px; color: var(--green); font-size: 9px; letter-spacing: .25em; }
.nav { display: grid; gap: 6px; margin-top: 46px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 14px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color .18s ease, background .18s ease, transform .18s ease; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.045); transform: translateX(2px); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(123,255,178,.15), rgba(123,255,178,.04)); border: 1px solid rgba(123,255,178,.12); }
.nav a.active::before { content: ""; position: absolute; left: -17px; width: 3px; height: 24px; background: var(--green); border-radius: 0 4px 4px 0; box-shadow: 0 0 15px rgba(123,255,178,.7); }
.nav-icon { width: 23px; font-size: 20px; color: currentColor; text-align: center; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 9px; padding: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.content { min-width: 0; padding: 7px 10px 0; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.topbar h1 { margin: 0; max-width: 760px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.035em; }
.admin-identity { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 8px 9px; border-radius: 18px; box-shadow: none; }
.avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, rgba(168,140,255,.32), rgba(111,232,255,.14)); border: 1px solid rgba(255,255,255,.12); font-weight: 800; }
.avatar.soft { background: rgba(255,255,255,.06); color: var(--cyan); }
.identity-copy, .person-copy { min-width: 0; display: grid; flex: 1; }
.identity-copy strong, .person-copy strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.identity-copy small, .person-copy small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.05); }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.09); }
.flash { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; padding: 13px 16px; border-radius: 14px; font-size: 13px; }
.flash.success { color: #b9ffd6; background: rgba(39,236,126,.09); border: 1px solid rgba(39,236,126,.2); }
.flash.danger { color: #ffc0cb; background: rgba(255,119,143,.1); border: 1px solid rgba(255,119,143,.22); }

.hero-strip { min-height: 188px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 40px; border-radius: var(--radius); overflow: hidden; position: relative; }
.hero-strip::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; background: radial-gradient(circle, rgba(123,255,178,.14), transparent 66%); }
.hero-strip > * { position: relative; z-index: 1; }
.hero-strip h2 { margin: 18px 0 8px; font-size: clamp(24px, 4vw, 40px); letter-spacing: -.045em; }
.hero-strip p { margin: 0; max-width: 650px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero-score { width: 120px; aspect-ratio: 1; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border-radius: 50%; background: rgba(8,12,20,.55); border: 1px solid rgba(123,255,178,.22); box-shadow: inset 0 0 32px rgba(123,255,178,.06), 0 0 42px rgba(39,236,126,.07); }
.hero-score span { font-size: 44px; font-weight: 800; line-height: .9; }
.hero-score small { margin-top: 8px; color: var(--green); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.status-pill.healthy { color: var(--green); background: rgba(123,255,178,.065); border-color: rgba(123,255,178,.16); }
.status-pill.warning { color: var(--amber); background: rgba(255,200,111,.065); border-color: rgba(255,200,111,.16); }
.status-pill.danger { color: var(--danger); background: rgba(255,119,143,.065); border-color: rgba(255,119,143,.16); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.metric-card { min-height: 150px; padding: 20px; border-radius: 20px; box-shadow: 0 14px 45px rgba(0,0,0,.2); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; font-size: 14px; }
.metric-icon.violet { color: var(--violet); background: rgba(168,140,255,.12); }.metric-icon.cyan { color: var(--cyan); background: rgba(111,232,255,.1); }.metric-icon.amber { color: var(--amber); background: rgba(255,200,111,.1); }.metric-icon.green { color: var(--green); background: rgba(123,255,178,.1); }
.metric-card > strong { display: block; margin-top: 22px; font-size: 30px; letter-spacing: -.035em; }
.metric-card > small { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.trend-up { color: var(--green); font-style: normal; }
.split-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr); gap: 14px; margin-top: 14px; }
.detail-grid { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: start; }
.section-card, .profile-card, .case-hero { border-radius: var(--radius); padding: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.text-link, .row-action { color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.person-list { display: grid; }
.person-row { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid var(--line); }
.person-row:first-child { border-top: 0; }
.signal-stack { display: grid; }
.signal-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.signal-row:first-child { border-top: 0; }
.signal-row > span:nth-child(2) { display: grid; }
.signal-row strong { font-size: 12px; }.signal-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.signal-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.05); }
.signal-icon.healthy { color: var(--green); }.signal-icon.warning { color: var(--amber); }.signal-icon.danger { color: var(--danger); }
.page-footer { display: flex; justify-content: space-between; margin: 26px 4px 0; padding: 17px 0; color: #5f6678; border-top: 1px solid rgba(255,255,255,.05); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.6; }

.filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) 170px 160px auto; gap: 9px; margin-bottom: 18px; }
.search-field { position: relative; }.search-field > span { position: absolute; left: 13px; top: 11px; color: var(--muted); }.search-field input { padding-left: 36px; }
input, select, textarea { width: 100%; color: var(--text); background: rgba(4,7,13,.54); border: 1px solid var(--line); border-radius: 12px; outline: none; transition: border-color .18s, box-shadow .18s; }
input, select { min-height: 41px; padding: 0 12px; } textarea { padding: 11px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #687085; }
input:focus, select:focus, textarea:focus { border-color: rgba(123,255,178,.48); box-shadow: 0 0 0 3px rgba(123,255,178,.07); }
label > span { display: block; margin-bottom: 7px; color: #c5cad8; font-size: 11px; font-weight: 700; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 12px; font-size: 11px; font-weight: 800; }
.button.primary { color: #07110c; background: linear-gradient(135deg, var(--green), #46e995); box-shadow: 0 9px 25px rgba(39,236,126,.13); }
.button.primary:hover { filter: brightness(1.06); }
.button.secondary { color: var(--text); background: rgba(255,255,255,.065); border-color: var(--line); }
.button.ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.button.wide { width: 100%; }.button.compact { min-height: 38px; margin-left: 6px; }
.button:disabled { opacity: .35; cursor: not-allowed; }
.button-row { display: flex; justify-content: flex-end; gap: 9px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 11px 12px; color: #687085; text-align: left; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; color: #c6cbd9; border-bottom: 1px solid rgba(255,255,255,.055); white-space: nowrap; }
tbody tr { transition: background .15s; } tbody tr:hover { background: rgba(255,255,255,.025); }
.table-person { min-width: 220px; display: flex; align-items: center; gap: 10px; }.table-person > span:last-child { display: grid; }.table-person small { color: var(--muted); margin-top: 3px; }
.role-tag { display: inline-flex; padding: 5px 8px; color: #b7bed0; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.06); border-radius: 7px; font-size: 9px; font-weight: 700; text-transform: capitalize; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; color: var(--muted); font-size: 10px; }.pagination a { color: var(--green); }.pagination strong { color: #c9cedb; }
.empty-state { padding: 24px 4px; color: var(--muted); text-align: center; font-size: 12px; }.empty-state.spacious { min-height: 170px; display: grid; place-content: center; gap: 7px; }.empty-state strong { color: var(--text); font-size: 16px; }.empty-state span { display: block; }

.profile-card { text-align: center; }.profile-avatar { width: 72px; height: 72px; margin: 8px auto 17px; border-radius: 22px; font-size: 25px; }.profile-card h2 { margin: 0; font-size: 22px; }.profile-card > p { margin: 7px 0 24px; color: var(--muted); font-size: 12px; }.profile-facts { display: grid; text-align: left; }.profile-facts > span { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }.profile-facts small { color: var(--muted); }.profile-facts strong { font-size: 11px; }
.form-stack { display: grid; gap: 16px; margin-top: 22px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { display: grid; gap: 4px; padding: 12px 14px; color: #cbd1df; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; font-size: 11px; }.notice.warning { color: #ffe0a8; background: rgba(255,200,111,.06); border-color: rgba(255,200,111,.15); }

.case-list { display: grid; }.case-row { min-width: 750px; display: grid; grid-template-columns: 4px minmax(220px, 1fr) 80px 88px 100px 62px; align-items: center; gap: 13px; padding: 13px 3px; border-top: 1px solid var(--line); }.case-row:hover { background: rgba(255,255,255,.025); }.priority-mark { width: 3px; height: 28px; border-radius: 4px; background: var(--cyan); }.priority-mark.high, .priority-mark.urgent { background: var(--danger); box-shadow: 0 0 10px rgba(255,119,143,.3); }.case-copy { display: grid; }.case-copy strong { font-size: 12px; }.case-copy small, .case-row time { margin-top: 4px; color: var(--muted); font-size: 9px; }
.case-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 14px; }.case-hero h2 { margin: 17px 0 7px; font-size: 25px; }.case-hero p { margin: 0; color: var(--muted); font-size: 11px; }
.timeline-list { display: grid; }.timeline-item { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding: 4px 0 20px; }.timeline-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 9px rgba(255,200,111,.4); }.timeline-dot.action { background: var(--green); box-shadow: 0 0 9px rgba(123,255,178,.4); }.timeline-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }.timeline-title strong { font-size: 12px; }.timeline-title time, .timeline-item small { color: var(--muted); font-size: 9px; }.timeline-item p { margin: 9px 0 0; color: #bac0d0; font-size: 11px; line-height: 1.6; }
.decision-form { display: grid; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }.decision-form h3 { margin: 0 0 4px; font-size: 14px; }
.appeal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.appeal-card { min-width: 0; padding: 18px; background: rgba(4,7,13,.3); border: 1px solid var(--line); border-radius: 17px; }.appeal-top, .appeal-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.appeal-top > span:first-child { display: grid; }.appeal-top small { margin-top: 4px; color: var(--muted); font-size: 9px; }.appeal-card blockquote { min-height: 55px; margin: 17px 0; padding-left: 12px; color: #d1d5e1; border-left: 2px solid rgba(123,255,178,.32); font-size: 11px; line-height: 1.6; }.appeal-meta { color: var(--muted); font-size: 9px; }.appeal-meta a { color: var(--green); }.compact-form { grid-template-columns: 150px minmax(160px, 1fr) auto; align-items: center; }.operations-metrics { margin-top: 0; }

.login-page { overflow-x: hidden; }.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); align-items: center; gap: 8vw; max-width: 1240px; margin: 0 auto; padding: 55px; }.login-story h1 { margin: 28px 0 18px; max-width: 680px; font-size: clamp(42px, 6.2vw, 78px); line-height: .98; letter-spacing: -.065em; }.login-story h1 em { color: var(--green); font-style: normal; text-shadow: 0 0 38px rgba(123,255,178,.13); }.hero-brand { margin-bottom: 70px; padding: 0; }.login-lead { max-width: 540px; color: var(--muted); font-size: 15px; line-height: 1.75; }.match-signal { width: fit-content; display: flex; align-items: center; gap: 13px; margin-top: 40px; padding: 12px 17px; border-radius: 17px; box-shadow: none; }.match-signal > span:last-child { display: grid; }.match-signal strong { font-size: 10px; }.match-signal small { margin-top: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }.pulse-orbit { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(123,255,178,.22); border-radius: 50%; }.pulse-orbit i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }.login-card { border-radius: 28px; padding: 38px; }.login-card h2 { margin: 12px 0 8px; font-size: 25px; letter-spacing: -.035em; }.check-row { display: flex; align-items: center; gap: 9px; }.check-row input { width: 15px; min-height: 15px; accent-color: var(--green); }.check-row span { margin: 0; color: var(--muted); font-weight: 500; }.security-note { margin: 20px 0 0; color: #626a7d; font-size: 9px; line-height: 1.5; text-align: center; }

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split-grid, .detail-grid { grid-template-columns: 1fr; }
    .login-shell { gap: 4vw; padding: 35px; }.login-story h1 { font-size: 54px; }
}
@media (max-width: 820px) {
    .admin-shell { display: block; padding: 10px; }
    .sidebar { position: relative; top: 0; width: 100%; height: auto; padding: 14px; border-radius: 21px; }
    .sidebar .brand, .sidebar-footer { display: none; }
    .nav { display: flex; margin: 0; overflow-x: auto; }.nav a { min-width: max-content; min-height: 42px; }.nav a.active::before { display: none; }
    .content { padding: 14px 4px 0; }.topbar { min-height: 70px; }.admin-identity { min-width: auto; }.identity-copy { display: none; }
    .hero-strip { padding: 26px; }.hero-score { width: 90px; }.hero-score span { font-size: 34px; }
    .login-shell { grid-template-columns: 1fr; max-width: 560px; padding: 28px 20px; }.login-story { display: none; }
    .appeal-grid { grid-template-columns: 1fr; }.filter-bar { grid-template-columns: 1fr 1fr; }.search-field { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .topbar h1 { font-size: 21px; }.admin-identity { padding: 6px; }.hero-strip { min-height: auto; }.hero-score { display: none; }.hero-strip h2 { font-size: 26px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { min-height: 134px; padding: 15px; }.metric-card > strong { font-size: 25px; }.metric-card > small { line-height: 1.4; }
    .section-card, .profile-card, .case-hero { padding: 18px; border-radius: 20px; }.section-heading { align-items: flex-start; }.section-heading form { display: flex; }
    .form-grid, .filter-bar { grid-template-columns: 1fr; }.search-field { grid-column: auto; }.button-row { display: grid; grid-template-columns: 1fr 1fr; }
    .case-hero { align-items: flex-start; flex-direction: column; }.compact-form { grid-template-columns: 1fr; }.page-footer { display: none; }
    .login-card { padding: 25px; }.login-shell { padding: 18px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
