:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #100d18; color: #f6f1f7; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 10% 0%, #2f1942 0, #100d18 36rem); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #d8a9ff; outline-offset: 2px; }
.staff-login-logo { --ginger-logo-size: 96px; justify-self: center; margin-bottom: 8px; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-card { display: grid; width: min(100%, 440px); gap: 16px; padding: 34px; border: 1px solid #5e4572; border-radius: 22px; background: #1d1528; box-shadow: 0 22px 70px #0008; }
.login-card h1, .page-heading h1 { margin: 0; color: #fff; letter-spacing: -.04em; }
.login-card p, .login-card small, .page-heading p, .privacy-copy { margin: 0; color: #cbbbd4; line-height: 1.55; }
.eyebrow { color: #f1bb6d; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.form-stack { display: grid; gap: 14px; }
fieldset.form-stack { min-width: 0; margin: 0; padding: 0; border: 0; }
button:disabled { cursor: wait; opacity: .65; }
.form-stack label, .filter-row label { display: grid; gap: 7px; color: #eadff0; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #6a507c; border-radius: 9px; background: #120d1a; color: #fff; }
textarea { min-height: 94px; resize: vertical; }
.primary, .secondary, .danger, .quiet, .nav-link, .wordmark, .link-button, .back-link { border: 0; border-radius: 9px; font-weight: 800; }
.primary { min-height: 43px; padding: 10px 16px; background: #e5a34d; color: #221304; }
.primary:hover { background: #ffc779; }
.secondary { min-height: 39px; padding: 8px 13px; border: 1px solid #835fa1; background: #32203f; color: #f1dcff; }
.secondary:hover { background: #4a2d60; }
.danger { min-height: 42px; padding: 9px 13px; background: #b94b5d; color: #fff; }
.danger:hover { background: #d15a6e; }
.alert { margin: 0 0 18px; padding: 11px 13px; border-radius: 9px; font-size: 14px; }
.alert.error { border: 1px solid #db6e7b; background: #4d1c29; color: #ffccd3; }
.alert.success { border: 1px solid #70bd8e; background: #173b2a; color: #c5f2d6; }
.dashboard-shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); grid-template-rows: 67px minmax(calc(100vh - 67px), 1fr); min-height: 100vh; }
.topbar { z-index: 1; display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; min-height: 67px; gap: 12px; padding: 0 28px; border-bottom: 1px solid #3d2c4c; background: #1a1324eF; backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 10px; padding: 0; background: transparent; color: #fff4e7; --ginger-logo-size: 44px; }
.wordmark .staff-label { color: #e5a34d; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-user { display: flex; align-items: center; gap: 10px; color: #dfd1e7; font-size: 13px; }
.quiet { padding: 8px; background: transparent; color: #cab9d5; }
.quiet:hover { color: #fff; }
.sidebar { padding: 20px 14px; border-right: 1px solid #3d2c4c; background: #16101e; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { padding: 11px 12px; background: transparent; color: #bfadc9; text-align: left; }
.nav-link:hover, .nav-link.active { background: #382448; color: #fff; }
.nav-link.active { box-shadow: inset 3px 0 #e5a34d; }
.sidebar p { margin: 25px 12px; color: #927da1; font-size: 12px; line-height: 1.5; }
.content { width: min(1380px, 100%); padding: 34px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading > div { display: grid; gap: 7px; }
.page-heading h1 { font-size: clamp(28px, 4vw, 38px); }
.case-heading { align-items: start; }
.assignment { margin: 0; padding: 10px 13px; border: 1px solid #5c4670; border-radius: 9px; color: #dfd1e7; }
.case-notice { margin: -8px 0 22px; padding: 12px 14px; border: 1px solid #c79655; border-radius: 10px; background: #3f2b1c; color: #ffe0b4; line-height: 1.55; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 14px; margin-bottom: 25px; }
.metric { display: grid; min-height: 128px; align-content: space-between; gap: 15px; padding: 18px; border: 1px solid #4d395e; border-radius: 14px; background: #21172d; color: #d8c8e0; text-align: left; }
button.metric:hover { border-color: #a477c3; background: #2c1d3b; }
.metric b { color: #fff; font-size: 34px; letter-spacing: -.06em; }
.metric span { font-size: 13px; font-weight: 700; }
.metric.urgent { border-color: #c26370; background: #341923; }
.panel { margin-bottom: 22px; padding: 21px; border: 1px solid #4c395b; border-radius: 14px; background: #20172b; box-shadow: 0 10px 28px #0002; }
.panel h2 { margin: 0 0 16px; color: #fff; font-size: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.activity-list, .notes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.activity-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid #3d2d4a; color: #d6c9dc; font-size: 14px; }
.activity-list li:first-child { border-top: 0; }
.activity-list b { color: #fff; }
.activity-list time { flex: 0 0 auto; color: #aa97b6; font-size: 12px; }
.empty { margin: 0; color: #a998b2; line-height: 1.5; }
.filter-row, .search-row { display: flex; align-items: end; gap: 12px; margin-bottom: 19px; }
.filter-row label { width: min(220px, 100%); }
.search-row input { max-width: 520px; }
.table-panel { overflow-x: auto; padding: 0; }
table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 16px; border-bottom: 1px solid #3d2d4a; vertical-align: top; color: #ded3e3; font-size: 13px; }
th { color: #a997b5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td b, td small { display: block; }
td small { margin-top: 5px; color: #ae9bb9; font-size: 11px; line-height: 1.4; }
.attention { color: #ffcf86; font-weight: 800; }
.conflict { color: #ffd09b; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #291d35; }
.pill { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 4px 8px; border: 1px solid #635070; border-radius: 99px; background: #2c2135; color: #e8dbea; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.pill.urgent, .pill.banned { border-color: #d26c77; background: #50222b; color: #ffd5d9; }
.pill.new, .pill.under_review { border-color: #d99f59; background: #49321d; color: #ffe2b5; }
.pill.suspended { border-color: #b680de; background: #362246; color: #ebd7ff; }
.pill.active, .pill.resolved { border-color: #74bd91; background: #1e4030; color: #d0f5db; }
.link-button, .back-link { padding: 0; background: transparent; color: #e7b369; text-decoration: none; }
.link-button:hover, .back-link:hover { color: #ffd292; text-decoration: underline; }
.back-link { margin-bottom: 17px; font-size: 14px; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.details { display: grid; grid-template-columns: minmax(105px, .45fr) 1fr; gap: 12px 16px; margin: 0; }
.details dt { color: #ab97b7; font-size: 12px; font-weight: 800; }
.details dd { margin: 0; color: #ece4f0; white-space: pre-wrap; line-height: 1.45; }
.details dd { overflow-wrap: anywhere; }
.credit-panel { border-color: #9a743f; }
.credit-panel h2 { margin-top: 8px; }
.credit-panel > p { color: #cbbbd4; line-height: 1.5; }
.credit-panel .form-stack { max-width: 640px; }
.audit-details { min-width: 220px; max-width: 420px; white-space: pre-wrap; overflow-wrap: anywhere; }
.staff-setup { align-items: start; }
.staff-permissions { margin: 0 0 20px; }
.staff-permissions dt { margin-top: 16px; color: #f1bb6d; font-weight: 800; }
.staff-permissions dt:first-child { margin-top: 0; }
.staff-permissions dd { margin: 6px 0 0; color: #cbbbd4; font-size: 13px; line-height: 1.6; }
.role-help { margin: 0; padding: 12px; border: 1px solid #6a507c; border-radius: 9px; background: #2b1e36; color: #decce9; font-size: 13px; line-height: 1.5; }
.notes li { padding: 13px 0; border-top: 1px solid #3d2d4a; }
.notes b { color: #fff; font-size: 13px; }
.notes time { margin-left: 8px; color: #a997b5; font-size: 11px; }
.notes p { margin: 7px 0 0; color: #d6cadc; white-space: pre-wrap; line-height: 1.5; }
.compact { margin-top: 17px; }
.moderation-panel { border-color: #8c5062; }
.moderation-panel > p { margin: -8px 0 15px; color: #cfbac5; font-size: 13px; line-height: 1.5; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; }
.evidence-grid img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
.inline-form { display: flex; gap: 8px; }
.inline-form select { min-width: 130px; min-height: 35px; padding: 5px 7px; }
.inline-form .secondary { min-height: 35px; }
.loading { padding: 100px 0; color: #cdbbd8; text-align: center; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.report-tabs [aria-pressed="true"] { border-color: #e5a34d; background: #49321d; color: #ffe2b5; }
.pagination { display: flex; align-items: center; justify-content: end; gap: 14px; margin: 20px 0; color: #bfadc9; font-size: 13px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.case-status-panel { border-color: #9a743f; }
.case-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.case-toolbar .back-link { margin-bottom: 0; }
.case-status-panel p { color: #cbbbd4; line-height: 1.6; }
.case-status-panel .form-stack { max-width: 680px; }
.audit-case { padding: 0; }
.audit-case summary { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; cursor: pointer; list-style: none; }
.audit-case summary::-webkit-details-marker { display: none; }
.audit-case summary::before { content: '+'; color: #e5a34d; font-size: 22px; }
.audit-case[open] summary::before { content: '−'; }
.audit-case summary:hover { background: #291d35; border-radius: 14px; }
.audit-case-title { flex: 1 1 260px; color: #f6edf9; overflow-wrap: anywhere; }
.audit-case-title small, .audit-events small { display: block; margin-top: 7px; color: #ae9bb9; font-size: 12px; }
.audit-case time, .audit-count { color: #ae9bb9; font-size: 12px; }
.audit-case-body { padding: 0 22px 22px; border-top: 1px solid #3d2d4a; }
.audit-events { margin-bottom: 15px; }
.audit-events li { flex-wrap: wrap; }
.audit-events p { margin: 8px 0 0; line-height: 1.5; }
.audit-events .audit-details { min-width: 0; max-width: 750px; }
@media (max-width: 980px) { .metrics { grid-template-columns: repeat(3, 1fr); } .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .dashboard-shell { display: block; } .topbar { position: sticky; top: 0; padding: 0 16px; } .topbar-user > span:first-child { display: none; } .sidebar { position: sticky; top: 67px; z-index: 1; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid #3d2c4c; } .sidebar nav { display: flex; width: max-content; } .sidebar p { display: none; } .content { padding: 22px 16px; } .metrics { grid-template-columns: repeat(2, 1fr); } .metric { min-height: 105px; } .page-heading { align-items: start; flex-direction: column; } .filter-row, .search-row { align-items: stretch; flex-direction: column; } .filter-row label, .search-row input { max-width: none; width: 100%; } }
