/* GRAZ RP — shared visual language for the citizen portal and faction desks. */
:root {
  color-scheme: dark;
  --ink: #101216;
  --ink2: #14171d;
  --panel: #181b22;
  --panel2: #1d2129;
  --text: #f0f2f6;
  --muted: #9299a8;
  --line: rgba(226,232,245,.08);
  --accent: #b2f36c;
  --accent-rgb: 178,243,108;
  --green: var(--accent);
  --green2: var(--accent);
  --red: #ff7c88;
  --gold: #f4bd70;
  --shadow: 0 24px 75px rgba(0,0,0,.24);
  --radius: 16px;
  background: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body[data-theme="citizen"] { --accent: #b2f36c; --accent-rgb: 178,243,108; }
body[data-theme="police"] { --accent: #72a7ff; --accent-rgb: 114,167,255; }
body[data-theme="medical"] { --accent: #ff7e91; --accent-rgb: 255,126,145; }
body[data-theme="mechanic"] { --accent: #f4bd70; --accent-rgb: 244,189,112; }
body[data-theme="tuner"] { --accent: #b4a0ff; --accent-rgb: 180,160,255; }
body[data-theme="admin"] { --accent: #c2cedd; --accent-rgb: 194,206,221; }
body {
  --green: var(--accent);
  --green2: var(--accent);
  background: #101216;
  color: var(--text);
  min-width: 320px;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 35% at 70% 0, rgba(var(--accent-rgb),.045), transparent);
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none!important; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection { background: rgba(var(--accent-rgb),.27); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #363c49 transparent; }
svg { flex-shrink: 0; }
.icon svg, .ghost-button svg, .primary-button svg, .danger-button svg,
.logout svg, .announcement svg, .workspace-header svg, .search-form svg,
.person-result svg, .workspace-tabs svg, .dossier-tabs svg, .login-features svg,
.login-button svg, .login-foot svg, .citizen-welcome svg, .record-toolbar svg,
.composer-head svg, .composer-context svg, .welcome-orbit svg,
.login-location svg, .login-bottom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; margin: -1px!important; padding: 0!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.brand-row, .wordmark { text-decoration: none; color: var(--text); }

/* Navigation stays quiet; each department keeps its own visual identity. */
.layout { grid-template-columns: 238px minmax(0,1fr); }
.sidebar {
  height: 100dvh;
  padding: 30px 18px 20px;
  background: #121419;
  border-color: var(--line);
  z-index: 5;
  overflow-y: auto;
}
.sidebar .brand-row { margin: 0 7px 35px; gap: 11px; }
.brand-mark, .sidebar .brand-mark {
  width: 45px;
  height: 48px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
}
.brand-logo { filter: none; object-fit: contain; }
.brand-copy strong, .sidebar .brand-copy strong { font-size: 12px; letter-spacing: .08em; font-weight: 800; }
.brand-copy small { font: 10px Manrope,sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7f8795; margin-top: 5px; }
.nav { gap: 4px; }
.nav-group-label { padding: 21px 14px 9px; font-size: 10px; letter-spacing: .16em; font-weight: 700; color: #69717e; text-transform: uppercase; }
.nav-group-label:first-child { padding-top: 0; }
.nav button {
  position: relative;
  gap: 12px;
  min-height: 45px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 600;
  color: #9299a8;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.nav .icon { display: flex; align-items: center; width: 20px; }
.nav button:hover { color: #f3f5fa; background: rgba(255,255,255,.035); }
.nav button[data-page="vcp-police"], .nav button[data-page="police"], .nav button[data-panel="police"] { --nav-accent: #72a7ff; --nav-rgb: 114,167,255; }
.nav button[data-page="vcp-medical"], .nav button[data-page="medical"], .nav button[data-panel="medical"] { --nav-accent: #ff7e91; --nav-rgb: 255,126,145; }
.nav button[data-page="vcp-mechanic"], .nav button[data-page="mechanic"], .nav button[data-panel="mechanic"] { --nav-accent: #f4bd70; --nav-rgb: 244,189,112; }
.nav button[data-page="vcp-tuner"], .nav button[data-page="tuner"], .nav button[data-panel="tuner"] { --nav-accent: #b4a0ff; --nav-rgb: 180,160,255; }
.nav button[data-view="vcp-police"] { --nav-accent: #72a7ff; --nav-rgb: 114,167,255; }
.nav button[data-view="vcp-medical"] { --nav-accent: #ff7e91; --nav-rgb: 255,126,145; }
.nav button[data-view="vcp-mechanic"] { --nav-accent: #f4bd70; --nav-rgb: 244,189,112; }
.nav button[data-view="vcp-tuner"] { --nav-accent: #b4a0ff; --nav-rgb: 180,160,255; }
.nav button[data-view^="vcp-"] .icon { color: var(--nav-accent); }
.nav button[data-page^="vcp-"] .icon, .nav button[data-panel] .icon { color: var(--nav-accent, var(--accent)); }
.nav button.active {
  color: var(--nav-accent, var(--accent));
  background: rgba(var(--nav-rgb, var(--accent-rgb)),.095);
  border-color: rgba(var(--nav-rgb, var(--accent-rgb)),.14);
}
.nav button.active::after { content: ""; position: absolute; right: 12px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; gap: 14px; }
.profile-mini { border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; padding: 18px 9px 0; gap: 11px; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--panel2); color: var(--accent); }
.profile-mini strong { font-size: 12px; }
.profile-mini small { font: 10px Manrope,sans-serif; color: #808895; }
.logout { color: #747d8b; font-size: 11px; padding-left: 10px; }
.logout:hover { color: #ff8996; }
.main { max-width: 1560px; padding: 33px clamp(25px,3.3vw,58px) 64px; }
.topbar { align-items: center; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.eyebrow { font: 600 10px Manrope,sans-serif; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
.page-title { font-size: clamp(25px,2.65vw,37px); line-height: 1.14; letter-spacing: -.055em; margin-top: 9px; font-weight: 800; }
.top-actions { gap: 18px; }
.sync-indicator { padding: 0; font: 11px Manrope,sans-serif; color: #828c9c; gap: 8px; }
.sync-indicator i { width: 5px; height: 5px; background: #9adb9a; box-shadow: 0 0 9px rgba(154,219,154,.18); animation: none; }
.announcement { border-color: rgba(244,189,112,.15); background: rgba(244,189,112,.055); color: #dac099; border-radius: 10px; padding: 12px 16px; font-size: 12px; }
.page-enter { animation: pageReveal .42s cubic-bezier(.2,.75,.25,1) both; }
@keyframes pageReveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* Shared surfaces, controls and typography. */
.card { background: #171a20; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; padding: 23px; }
.content-grid { gap: 16px; }
.metric { min-height: 118px; }
.metric-label { font: 600 11px Manrope,sans-serif; color: #929ba9; letter-spacing: .035em; text-transform: none; }
.metric-value { font-size: 30px; letter-spacing: -.045em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.metric-note { color: #74808f; font-size: 11px; margin-top: 7px; }
.section-head { margin: 30px 0 16px; }
.section-head h2 { font-size: 17px; letter-spacing: -.035em; }
.section-head p { font-size: 12px; line-height: 1.65; color: var(--muted); margin-top: 5px; }
.section-head.mini { margin: 0 0 16px; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select,
.field input, .field textarea, .field select, .select, .admin-search input,
.license-action-form input, .license-revoke-row input {
  min-width: 0;
  max-width: 100%;
  min-height: 43px;
  padding: 11px 13px;
  border: 1px solid rgba(222,231,247,.095);
  border-radius: 9px;
  color: #edf0f7;
  background: #101318;
  font: 12px Manrope,sans-serif;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder, textarea::placeholder { color: #646e7e; opacity: 1; }
input:focus, textarea:focus, select:focus, .select:focus {
  border-color: rgba(var(--accent-rgb),.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.075);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.field { gap: 8px; }
.field label { color: #939eae; font: 600 11px Manrope,sans-serif; text-transform: none; letter-spacing: .02em; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
select, .select { cursor: pointer; }
.primary-button, .ghost-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.primary-button { color: #11161d; background: var(--accent); border: 1px solid var(--accent); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(var(--accent-rgb),.12); filter: brightness(1.07); }
.ghost-button { color: #bec7d5; background: rgba(255,255,255,.025); border-color: rgba(222,231,247,.12); }
.ghost-button:hover { color: var(--text); border-color: rgba(var(--accent-rgb),.3); background: rgba(var(--accent-rgb),.055); }
.danger-button { color: #ff8c97; background: rgba(255,124,136,.045); border-color: rgba(255,124,136,.23); }
.danger-button:hover { background: rgba(255,124,136,.11); border-color: rgba(255,124,136,.38); }
.tag { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.035); color: #a9b2c0; padding: 5px 8px; font-size: 10px; border-radius: 5px; }
.tag.green { color: var(--accent); background: rgba(var(--accent-rgb),.08); border-color: rgba(var(--accent-rgb),.1); }
.empty { background: transparent; color: #7c8899; border: 0; border-radius: 0; padding: 28px 16px; line-height: 1.75; font-size: 12px; }
.empty.compact { font-size: 12px; padding: 14px 0; text-align: left; }
.list-row { border-color: var(--line); padding: 16px 0; }
.list-primary { font-size: 12px; }
.list-secondary { color: #808b9b; font-size: 11px; line-height: 1.6; }
.amount { color: var(--accent); font: 600 12px Manrope,sans-serif; }
.amount.out { color: #ef8e99; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.data-table { font-size: 12px; }
.data-table th { background: rgba(255,255,255,.018); color: #8c96a5; font: 600 10px Manrope,sans-serif; letter-spacing: .03em; text-transform: none; padding: 13px 15px; }
.data-table td { border-color: var(--line); padding: 15px; line-height: 1.55; }
.data-table tbody tr:hover { background: rgba(255,255,255,.014); }
.data-table .status { color: var(--accent); }
.toast { background: #232b32; color: #ecf1f7; border-color: rgba(var(--accent-rgb),.25); padding: 15px 19px; border-radius: 12px; font-size: 12px; box-shadow: 0 12px 50px rgba(0,0,0,.3); z-index: 120; }

/* A desk, rather than a stack of empty dashboards. */
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 3px 0 25px; }
.workspace-header h2 { font-size: clamp(24px,2.4vw,32px); font-weight: 800; letter-spacing: -.055em; margin: 0 0 8px; }
.workspace-header p { max-width: 650px; color: #939cab; font-size: 12px; line-height: 1.75; margin: 0; }
.workspace-header .eyebrow { display: block; margin-bottom: 10px; }
.workspace-header .action-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(var(--accent-rgb),.08); color: var(--accent); margin: 0; }
.department-symbol { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(var(--accent-rgb),.13); border-radius: 50%; color: var(--accent); }
.department-symbol svg { width: 18px; height: 18px; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 25px 0 22px; }
.workspace-tabs { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #13161b; width: fit-content; }
.workspace-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: #7f8a9a; border: 1px solid transparent; border-radius: 6px; padding: 9px 15px; font-size: 11px; font-weight: 700; transition: .18s ease; }
.workspace-tabs button:hover { color: var(--text); }
.workspace-tabs button[aria-selected="true"] { background: #252b35; border-color: rgba(255,255,255,.035); color: var(--accent); box-shadow: 0 2px 7px rgba(0,0,0,.12); }
.workspace-tabs svg { width: 15px; height: 15px; }
.stat-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 20px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.stat-item { min-width: 0; padding: 0 25px; border-right: 1px solid var(--line); }
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: 0; }
.stat-item label, .stat-item>span { display: block; color: #8e98a8; font-size: 11px; line-height: 1.5; }
.stat-item strong { display: block; color: #e8edf5; margin-top: 9px; font-size: 26px; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat-item small { display: block; color: #6f7a8a; font-size: 10px; margin-top: 5px; }
.stat-item.danger strong { color: #ff8b97; }
.stat-strip:has(.stat-item:nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.desk-grid { display: grid; grid-template-columns: 305px minmax(0,1fr); gap: 22px; align-items: start; }
.search-pane { padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #171a20; min-width: 0; }
.search-pane .section-head { margin-top: 0; }
.search-pane h3 { font-size: 14px; margin: 0 0 5px; letter-spacing: -.025em; }
.search-pane>p { color: #8590a0; font-size: 11px; margin: 0 0 18px; line-height: 1.7; }
.search-form { display: flex; align-items: center; gap: 8px; width: 100%; position: relative; }
.search-form>svg { position: absolute; left: 12px; width: 15px; height: 15px; color: #7b8799; pointer-events: none; }
.search-form input { flex: 1; width: 0; }
.search-form>svg+input { padding-left: 35px; }
.search-form input#workspace-search { padding-left: 34px; padding-right: 39px; width: 100%; }
.search-form>button:not(.primary-button):not(.ghost-button) { display: grid; place-items: center; position: absolute; right: 5px; width: 31px; height: 31px; padding: 7px; border: 0; border-radius: 6px; background: rgba(var(--accent-rgb),.085); color: var(--accent); transition: background .18s ease; }
.search-form>button:not(.primary-button):not(.ghost-button):hover { background: rgba(var(--accent-rgb),.18); }
.search-form .primary-button, .search-form .ghost-button { padding: 10px 12px; min-height: 43px; }
.search-form button>svg { width: 16px; height: 16px; }
.search-hint { display: flex; align-items: center; gap: 6px; color: #727e90; font-size: 10px; line-height: 1.6; margin: 12px 0 0; }
.search-footer { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.search-footer>span { display: flex; align-items: center; gap: 6px; color: #8190a2; font-size: 10px; }
.search-footer svg { width: 12px; height: 12px; fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: .75; }
.search-footer>small { display: block; font-size: 9px; color: #59677b; margin-top: 6px; padding-left: 18px; }
.search-results { display: grid; gap: 5px; margin-top: 17px; max-height: 580px; overflow-y: auto; }
.person-result { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); padding: 10px 8px; transition: border-color .18s ease, background .18s ease; }
.person-result:hover { background: rgba(255,255,255,.027); border-color: rgba(255,255,255,.07); }
.person-result.selected { background: rgba(var(--accent-rgb),.07); border-color: rgba(var(--accent-rgb),.2); }
.person-result img { width: 40px; height: 46px; border-radius: 7px; object-fit: cover; object-position: center 20%; background: #252b34; }
.person-result>span { min-width: 0; }
.person-result strong { display: block; font-size: 11px; font-weight: 700; line-height: 1.45; }
.person-result small { display: block; margin-top: 5px; color: #7c8899; font: 9px 'DM Mono',monospace; line-height: 1.5; }
.person-result>svg { width: 14px; height: 14px; color: #687688; }
.person-result.selected>svg { color: var(--accent); }
.person-result .police-flags { position: static; gap: 3px; align-items: flex-end; }
.person-result .police-flags span { font-size: 8px; }
.result-flags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.result-flags b { background: rgba(255,124,136,.09); border: 1px solid rgba(255,124,136,.15); border-radius: 4px; color: #ec8c99; padding: 2px 4px; font-size: 8px; font-weight: 600; }
.person-result.wanted { animation: wanted-alert 1.7s steps(1,end) infinite; }
.dossier-pane { border: 1px solid var(--line); border-radius: var(--radius); background: #171a20; min-width: 0; overflow: hidden; }
.desk-welcome { min-height: 410px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 30px; }
.welcome-orbit { width: 112px; height: 112px; display: grid; place-items: center; position: relative; border: 1px solid rgba(var(--accent-rgb),.11); border-radius: 50%; background: rgba(var(--accent-rgb),.018); margin: 0 auto 25px; }
.welcome-orbit::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(var(--accent-rgb),.08); border-radius: 50%; }
.welcome-orbit::after { content: ""; position: absolute; top: 12px; right: 18px; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 15px rgba(var(--accent-rgb),.3); }
.welcome-orbit svg { width: 35px; height: 35px; stroke-width: 1.3; color: var(--accent); opacity: .75; }
.desk-welcome h2 { font-size: 21px; letter-spacing: -.035em; margin: 0 0 10px; }
.desk-welcome>.eyebrow { margin-bottom: 13px; font-size: 8px; }
.desk-welcome p { color: #828d9f; font-size: 12px; max-width: 360px; margin: 0; line-height: 1.9; }
.welcome-steps { display: flex; gap: 22px; justify-content: center; margin-top: 32px; border-top: 1px solid var(--line); padding-top: 22px; }
.welcome-steps>span, .welcome-steps>div { display: flex; align-items: center; gap: 8px; color: #8994a4; font-size: 10px; }
.welcome-steps b { font: 9px 'DM Mono',monospace; color: var(--accent); opacity: .7; }
.person-header { display: flex; align-items: center; gap: 18px; padding: 25px 27px; background: rgba(var(--accent-rgb),.018); }
.person-header>img { width: 79px; height: 95px; object-fit: cover; object-position: center 18%; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); }
.person-header>div { min-width: 0; }
.person-header h2 { font-size: 26px; letter-spacing: -.055em; line-height: 1.2; margin: 7px 0; }
.person-header p { margin: 0; color: #8b96a7; font-size: 11px; line-height: 1.7; }
.person-header .eyebrow { font: 10px 'DM Mono',monospace; letter-spacing: .06em; }
.person-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.person-badges .wanted-label { margin-top: 0; }
.person-badges .jail-mini { display: inline-block; padding: 4px 7px; border-radius: 5px; border: 1px solid rgba(255,124,136,.17); color: #ed99a3; background: rgba(255,124,136,.07); font: 600 9px Manrope,sans-serif; }
.person-header.wanted { animation: wanted-alert 1.7s steps(1,end) infinite; border: 1px solid #f26777; border-radius: 15px 15px 0 0; }
.dossier-tabs { display: flex; gap: 23px; padding: 0 27px; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.055); }
.dossier-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; border: 0; background: transparent; padding: 16px 0; color: #8290a2; font-size: 11px; font-weight: 700; }
.dossier-tabs button:hover { color: #d9e1eb; }
.dossier-tabs button[aria-selected="true"] { color: var(--accent); }
.dossier-tabs button[aria-selected="true"]::after { content: ""; position: absolute; bottom: 0; right: 0; left: 0; height: 2px; background: var(--accent); }
.dossier-tabs svg { width: 14px; height: 14px; }
.dossier-content { padding: 25px 27px 28px; }
.dossier-content .detail-facts.compact { margin: 0 0 23px; }
.dossier-pane>.detail-facts.compact { margin: 0; padding: 0 27px 19px; }
.dossier-content>.section-head:first-child { margin-top: 0; }
.detail-facts, .detail-facts.compact { gap: 0; background: transparent; border: 0; border-radius: 0; margin-bottom: 23px; }
.detail-facts div { padding: 13px 18px; background: transparent; border-right: 1px solid var(--line); }
.detail-facts div:first-child { padding-left: 0; }
.detail-facts div:last-child { border-right: 0; }
.detail-facts span { color: #7b8799; font: 10px Manrope,sans-serif; text-transform: none; letter-spacing: .015em; }
.detail-facts strong { color: #cdd6e4; font-size: 12px; font-weight: 600; margin-top: 8px; }
.department-home { display: grid; grid-template-columns: minmax(0,1fr); gap: 23px; }
.department-home>.card { padding: 25px; }
.department-home .desk-welcome { min-height: 270px; }
.record-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 19px; }
.record-toolbar h3 { margin: 0; font-size: 15px; letter-spacing: -.03em; }
.record-toolbar p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.record-list, .vcp-records { display: grid; gap: 0; max-height: none; overflow: visible; }
.vcp-record { padding: 15px 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; gap: 12px; }
.vcp-record:last-child { border-bottom: 0; }
.vcp-record strong { font-size: 12px; line-height: 1.5; color: #d7dfea; font-weight: 600; }
.vcp-record small { color: #7d8899; font: 10px Manrope,sans-serif; margin-top: 5px; line-height: 1.65; }
.record-button:hover { background: rgba(var(--accent-rgb),.035); border-color: var(--line); transform: none; }
.record-button.wanted-record { border-color: rgba(255,124,136,.2); }
.record-button.wanted-record .priority { background: #ff7c88; box-shadow: none; }
.record-empty { display: flex; align-items: center; gap: 10px; color: #808da0; font-size: 12px; line-height: 1.8; padding: 18px 0; }
.record-empty svg { color: var(--accent); opacity: .55; }
.vehicle-results { min-width: 0; }
.vehicle-results { padding: 25px 27px; }
.vehicle-result { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 17px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.vehicle-result:last-child { border-bottom: 0; }
.vehicle-plate { display: inline-block; position: relative; border: 1px solid #8091a4; border-radius: 5px; background: #dfe6ed; color: #24323f; padding: 8px 10px 8px 16px; font: 700 12px 'DM Mono',monospace; letter-spacing: .02em; white-space: nowrap; box-shadow: inset 5px 0 #3d5e9d; }
.vehicle-result h3 { font-size: 13px; color: #d0d9e7; letter-spacing: -.025em; margin: 0; }
.vehicle-result p { font-size: 11px; color: #9aa6b7; margin: 6px 0; }
.vehicle-result small { font: 9px 'DM Mono',monospace; color: #687b95; overflow-wrap: anywhere; }
.vehicle-result>.ghost-button { grid-column: 2/-1; justify-self: start; font-size: 10px; min-height: 33px; }
.section-label { font-size: 12px; color: #a7b5c8; margin: 25px 0 10px; font-weight: 700; }
.vehicle-results .vcp-record { padding: 17px 5px; }
.vehicle-mark { color: var(--accent); background: rgba(var(--accent-rgb),.06); border-radius: 8px; width: 36px; height: 36px; }
.vcp-record:has(.vehicle-mark) { grid-template-columns: 40px minmax(0,1fr) auto; }
.license-control { margin-bottom: 0; }
.license-owned, .license-suspended { padding: 14px 15px; background: #12161c; border-color: var(--line); border-radius: 10px; }
.license-owned span, .license-suspended span { font-size: 11px; line-height: 1.65; }
.license-owned strong { color: var(--accent); font-size: 12px; }
.license-suspended { background: rgba(255,124,136,.045); border-color: rgba(255,124,136,.19); }
.license-suspended strong { color: #ff8c97; font-size: 12px; line-height: 1.6; }
.license-action-form { grid-template-columns: 133px minmax(0,1fr) auto; gap: 8px; margin-top: 13px; }
.license-revoke-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 10px; }
.license-action-form select, .license-action-form input, .license-revoke-row input { width: 100%; font-size: 11px; }
.license-action-form button, .license-revoke-row button { font-size: 10px; padding-left: 11px; padding-right: 11px; }
.license-options { margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); }
.license-options summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; color: #adbbcF; font-size: 11px; font-weight: 600; cursor: pointer; }
.license-options summary::-webkit-details-marker { display: none; }
.license-options summary svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.6; transition: transform .18s ease; }
.license-options[open] summary svg { transform: rotate(90deg); }
.license-options h4 { color: #8b99ad; font-size: 10px; font-weight: 600; margin: 23px 0 0; }
.medical-document { margin-top: 23px; }
.medical-document h4 { color: var(--accent); font-size: 12px; margin: 0 0 9px; }
.quick-note { margin-bottom: 20px; }
.quick-note textarea { min-height: 86px; }
.quick-note-disclosure { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 18px; }
.quick-note-disclosure summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; color: var(--accent); font-size: 11px; font-weight: 600; }
.quick-note-disclosure summary::-webkit-details-marker { display: none; }
.quick-note-disclosure summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.quick-note-disclosure[open] summary { margin-bottom: 15px; }
.action-icon { background: rgba(var(--accent-rgb),.08); color: var(--accent); }
.wanted-label, .wanted-mini { color: #ffb0b8; background: rgba(255,104,122,.15); border: 1px solid rgba(255,124,136,.22); font: 600 9px Manrope,sans-serif; letter-spacing: .04em; }
.police-flags .wanted-mini, .police-flags .jail-mini, .police-flags .fine-mini { font: 600 8px Manrope,sans-serif; letter-spacing: 0; }
.police-flags .wanted-mini { background: rgba(255,104,122,.17); color: #ffb0b8; }
.police-flags .jail-mini { background: rgba(255,124,136,.12); color: #ffb0b8; }
.police-flags .fine-mini { background: rgba(244,189,112,.12); color: #e3c495; }

/* Compact, readable case histories. */
.police-history { margin-top: 0; padding-top: 0; border-top: 0; }
.police-section { margin-top: 23px; }
.police-section:first-child { margin-top: 0; }
.police-section>h3 { color: #c0cada; font: 700 12px Manrope,sans-serif; text-transform: none; letter-spacing: -.01em; margin-bottom: 12px; }
.police-section>h3 span { background: rgba(var(--accent-rgb),.07); color: var(--accent); font: 10px Manrope,sans-serif; }
.police-entry { background: #13171d; border-color: var(--line); border-radius: 10px; margin-bottom: 9px; }
.police-entry.danger { background: rgba(255,124,136,.03); border-color: rgba(255,124,136,.18); }
.police-entry.warning { margin-top: 0; background: rgba(244,189,112,.03); border-color: rgba(244,189,112,.16); padding: 0; }
.police-entry summary { padding: 15px 14px; gap: 11px; grid-template-columns: 15px minmax(0,1fr) auto; }
.police-entry summary:before { color: var(--accent); font-size: 16px; }
.police-entry summary strong { color: #d1dae7; font-size: 12px; white-space: normal; line-height: 1.6; }
.police-entry summary small { color: #7e8a9c; font: 11px Manrope,sans-serif; line-height: 1.65; margin-top: 4px; }
.police-status { background: rgba(var(--accent-rgb),.075); color: var(--accent); font: 600 10px Manrope,sans-serif; padding: 5px 8px; }
.police-status.danger { background: rgba(255,124,136,.1); color: #ff97a1; }
.police-status.warning { background: rgba(244,189,112,.1); color: #eac28b; margin: 0; border: 0; }
.police-entry-body { padding: 5px 15px 16px 40px; border-color: var(--line); }
.police-detail-grid { gap: 0 20px; }
.police-detail-grid>div { padding: 12px 0; background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; }
.police-detail-grid span { color: #8490a1; font: 11px Manrope,sans-serif; text-transform: none; }
.police-detail-grid strong { color: #c1ccdb; font-size: 12px; font-weight: 500; line-height: 1.7; margin-top: 6px; }
.police-laws { margin-top: 14px; gap: 6px; }
.police-laws span { color: #abc0df; background: rgba(var(--accent-rgb),.04); border-color: rgba(var(--accent-rgb),.12); padding: 6px 8px; font: 10px Manrope,sans-serif; }
.police-muted { color: #748095; font-size: 11px; line-height: 1.7; margin-top: 13px; }
.police-alert { border-radius: 10px; padding: 15px 17px; }
.police-alert.danger { border-color: rgba(255,124,136,.23); background: rgba(255,124,136,.05); }
.police-alert strong { font: 700 11px Manrope,sans-serif; letter-spacing: .03em; color: #ff8f9b; }
.police-alert span { color: #d1aab1; font-size: 12px; line-height: 1.7; }
.police-live { background: transparent; border: 0; padding: 0; }
.police-summary { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.police-summary>div, .police-summary>div.danger { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0 18px; min-height: 58px; }
.police-summary>div:first-child { padding-left: 0; }
.police-summary>div:last-child { border: 0; }
.police-summary span { font: 10px Manrope,sans-serif; text-transform: none; letter-spacing: .01em; }
.police-summary strong { font-size: 24px; }

/* Modal composition keeps forms out of the browsing workspace. */
.composer-overlay, .record-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(6,8,12,.73); backdrop-filter: blur(12px); padding: 25px; animation: veilIn .18s ease both; }
.composer-dialog, .record-dialog { position: relative; width: min(680px,100%); max-height: 90dvh; overflow-y: auto; background: #191d25; border: 1px solid rgba(231,240,255,.12); border-radius: 20px; box-shadow: 0 30px 120px rgba(0,0,0,.5); padding: 28px; animation: dialogIn .3s cubic-bezier(.2,.75,.2,1) both; }
.composer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 23px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.composer-head h2 { font-size: 23px; letter-spacing: -.045em; margin: 6px 0; }
.composer-head p { font-size: 12px; color: #8793a5; line-height: 1.7; margin: 0; }
.composer-head .ghost-button { width: 33px; height: 33px; min-height: 33px; padding: 7px; border-radius: 50%; }
.composer-form { display: grid; gap: 17px; }
.composer-form .form-grid { gap: 17px; }
.composer-form textarea { min-height: 155px; }
.composer-context { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: rgba(var(--accent-rgb),.045); border: 1px solid rgba(var(--accent-rgb),.11); padding: 12px 14px; border-radius: 9px; color: #bdc9da; font-size: 12px; line-height: 1.7; }
.composer-context svg { color: var(--accent); }
.composer-context small { color: #7f90a7; }
.composer-context { margin-bottom: 20px; }
.composer-context img { width: 35px; height: 42px; object-fit: cover; border-radius: 5px; }
.composer-context strong, .composer-context small { display: block; }
.composer-context strong { font-size: 11px; }
.composer-context small { font: 9px 'DM Mono',monospace; margin-top: 4px; }
.composer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 21px; margin-top: 3px; border-top: 1px solid var(--line); }
.composer-footer>small { margin-right: auto; max-width: 250px; color: #718198; font-size: 10px; line-height: 1.7; }
.composer-footer>span { margin-right: auto; color: #718198; font-size: 10px; line-height: 1.7; }
.record-dialog h2 { font-size: 25px; letter-spacing: -.045em; margin: 10px 35px 23px 0; }
.record-close { background: rgba(255,255,255,.035); color: #9da9bb; width: 32px; height: 32px; font-size: 20px; }
.record-meta { gap: 0 22px; }
.record-meta>div { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 13px 0; }
.record-meta span { font: 11px Manrope,sans-serif; text-transform: none; color: #8290a3; }
.record-meta strong { color: #c5d0e0; font-size: 12px; font-weight: 600; margin-top: 8px; overflow-wrap: anywhere; }
.record-content { padding: 18px 20px; color: #b9c6d9; font-size: 13px; line-height: 1.9; background: #131820; border-left-color: var(--accent); }
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Citizen identity cards and financial overview. */
.citizen-welcome { position: relative; overflow: hidden; min-height: 235px; margin: 0 0 34px; padding: 17px 280px 26px 0; border-bottom: 1px solid var(--line); }
.citizen-welcome>h2 { position: relative; z-index: 1; font-size: clamp(29px,3.6vw,47px); letter-spacing: -.06em; line-height: 1.12; margin: 18px 0 15px; }
.citizen-welcome>h2 span { color: var(--accent); }
.citizen-welcome>p { position: relative; z-index: 1; max-width: 450px; color: #8594a3; line-height: 1.85; font-size: 12px; margin: 0; }
.welcome-logo { position: absolute; width: 255px; height: 255px; object-fit: contain; right: 15px; bottom: -12px; opacity: .9; filter: drop-shadow(0 12px 20px rgba(0,0,0,.28)); }
.citizen-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.citizen-topline h2 { margin: 0 0 9px; font-size: 30px; letter-spacing: -.055em; }
.citizen-topline p { margin: 0; color: #8f9bab; font-size: 12px; line-height: 1.8; max-width: 600px; }
.citizen-summary { display: flex; align-items: center; gap: 25px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); color: #8996a6; font-size: 12px; }
.citizen-summary strong { color: var(--accent); font-weight: 600; }
.character-grid { grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 21px; align-items: start; }
.character-card { display: block; background: #181c22; border: 1px solid rgba(223,236,255,.09); border-radius: 17px; width: 100%; padding: 0; text-align: left; color: var(--text); box-shadow: none; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.character-card:hover { transform: translateY(-5px); border-color: rgba(var(--accent-rgb),.3); box-shadow: 0 16px 30px rgba(0,0,0,.17); }
.character-card.active { border-color: rgba(var(--accent-rgb),.55); box-shadow: 0 0 0 1px rgba(var(--accent-rgb),.06),0 12px 30px rgba(0,0,0,.14); }
.character-accent { height: 2px; background: var(--accent); opacity: .7; }
.mugshot-wrap { height: 250px; background: #212730; }
.mugshot-wrap img { object-position: center 23%; filter: saturate(.83); transition: transform .6s cubic-bezier(.2,.75,.2,1); }
.character-card:hover .mugshot-wrap img { transform: scale(1.035); }
.mugshot-wrap::after { background: linear-gradient(0deg,rgba(19,24,31,.82),transparent 60%); }
.mugshot-stamp { color: var(--accent); background: rgba(13,18,23,.65); border-color: rgba(var(--accent-rgb),.25); font-size: 9px; letter-spacing: .08em; padding: 6px 8px; right: 17px; bottom: 16px; }
.character-body { padding: 23px; }
.character-name { font-size: 22px; letter-spacing: -.045em; line-height: 1.2; }
.character-uid { font-size: 10px; margin-top: 8px; color: #8596aa; }
.slot { font: 10px Manrope,sans-serif; padding: 5px 7px; background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.06); color: #7f8fa3; }
.character-meta { margin-top: 21px; gap: 6px; }
.character-card-foot { font: 700 11px Manrope,sans-serif; color: var(--accent); margin-top: 23px; padding-top: 17px; border-color: var(--line); }
.character-card-foot svg { margin-left: auto; }
.detail-header { padding: 21px 23px; border-color: var(--line); background: #181c23; border-radius: 14px; }
.detail-person>img { border-color: var(--line); }
.detail-name { font-size: 23px; }
.detail-name small { color: var(--accent); }
.overview-activity { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 30px; }
.overview-activity>.section-head { margin-top: 0; margin-bottom: 10px; }
.overview-activity .card { padding: 23px; }
.overview-activity h2 { font-size: 17px; margin: 0 0 5px; }
.overview-activity p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.finance-actions { gap: 20px; }
.action-card { min-height: auto; }
.action-card>div>p { font-size: 12px; line-height: 1.8; }
.invoice-pay { border-color: var(--line); }
.invoice-pay small { font: 10px Manrope,sans-serif; text-transform: none; }
.invoice-pay b { font: 600 12px Manrope,sans-serif; color: var(--accent); }
.invoice-online-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0 0 16px; }
.invoice-pay>div { min-width: 0; }
.invoice-pay>div:first-child { flex: 1; overflow-wrap: anywhere; }
.invoice-pay>div:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 10px; max-width: 52%; }
.invoice-payment-state { display: grid; gap: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.invoice-payment-state small { font-size: 10px; }
.invoice-pay button { flex-shrink: 0; }
@media (max-width: 520px) {
  .invoice-pay { flex-wrap: wrap; align-items: flex-start; }
  .invoice-pay>div:first-child { flex-basis: 100%; }
  .invoice-pay>div:last-child { max-width: 100%; width: 100%; justify-content: space-between; }
}
.admin-layout { gap: 23px; }
.result-row { border-color: var(--line); border-radius: 7px; }
.result-row:hover { background: rgba(var(--accent-rgb),.045); }
.access-grid>div { padding: 13px; border-color: var(--line); background: #13171e; }
.access-grid strong { font: 700 11px Manrope,sans-serif; color: var(--accent); text-transform: capitalize; }
.access-grid span { font-size: 12px; }
.access-grid small { font-size: 11px; }

/* The entry experience: generous composition, subtle motion, one clear action. */
.login-stage { isolation: isolate; position: relative; width: 100%; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: #0c100e; }
.login-ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.login-ambient::before { content: ""; position: absolute; width: 740px; height: 740px; left: calc(50% - 640px); top: calc(50% - 365px); border-radius: 50%; background: radial-gradient(circle,rgba(108,178,66,.075),transparent 65%); }
.login-ambient::after { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(209,231,214,.28) .55px,transparent .55px); background-size: 24px 24px; mask-image: linear-gradient(90deg,transparent,#000 25%,transparent 75%); }
.login-ambient i { position: absolute; width: 1px; height: 100%; top: 0; left: 8%; background: linear-gradient(transparent,rgba(192,217,198,.05),transparent); }
.login-ambient i+i { left: auto; right: 8%; }
.login-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1280px,100%); padding: 28px 44px; margin: 0 auto; animation: loginReveal .7s ease .05s both; }
.wordmark { display: flex; align-items: center; gap: 10px; color: #e3eee0; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.wordmark b, .brand-copy b, .intro-wordmark span { color: #b2f36c; }
.wordmark img { display: block; width: 37px; height: 42px; object-fit: contain; }
.wordmark span, .wordmark strong { display: block; }
.wordmark small { display: block; color: #5e7467; font: 9px Manrope,sans-serif; letter-spacing: .17em; text-transform: uppercase; margin-top: 4px; }
.login-location { display: flex; align-items: center; gap: 7px; color: #758779; font: 10px Manrope,sans-serif; letter-spacing: .07em; }
.login-location svg { width: 13px; height: 13px; color: #a6d68a; }
.login-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: 66px; flex: 1; width: min(1120px,100%); padding: 45px 30px 65px; margin: 0 auto; }
.login-art { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; display: grid; place-items: center; margin: auto; }
.login-art-halo { position: absolute; inset: 11%; border-radius: 50%; background: radial-gradient(circle,rgba(146,221,89,.08),transparent 68%); filter: blur(18px); animation: artBreath 7s ease-in-out infinite; }
.login-art-orbit { position: absolute; inset: 3%; border: 1px solid rgba(154,190,139,.1); border-radius: 50%; transform: rotate(-22deg); animation: artOrbitReveal 1.7s ease .1s both; }
.login-art-orbit::before { content: ""; position: absolute; inset: 20px; border: 1px dashed rgba(154,190,139,.07); border-radius: 50%; }
.login-art-orbit::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #b2f36c; top: 26%; right: 5.7%; box-shadow: 0 0 17px rgba(178,243,108,.55); }
.login-logo { position: relative; z-index: 1; display: block; width: 107%; max-width: none; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 25px 28px rgba(0,0,0,.45)); animation: loginLogoReveal 1.2s cubic-bezier(.17,.8,.2,1) .12s both; }
.art-caption { position: absolute; bottom: -13px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #667967; font: 9px 'DM Mono',monospace; letter-spacing: .19em; text-transform: uppercase; animation: loginReveal 1s ease .8s both; }
.art-caption::before, .art-caption::after { content: ""; height: 1px; width: 25px; background: #30422d; }
.art-caption { font-size: 7px; gap: 10px; white-space: nowrap; }
.art-caption i { display: inline-block; width: 3px; height: 3px; background: #6b825e; border-radius: 50%; }
.art-caption::before, .art-caption::after { display: none; }
.login-copy { max-width: 420px; padding-bottom: 2px; }
.login-copy>.eyebrow { display: flex; align-items: center; gap: 9px; color: #abd47e; font-size: 9px; letter-spacing: .2em; animation: loginReveal .7s ease .3s both; }
.login-copy>.eyebrow::before { content: ""; width: 17px; height: 1px; background: #abd47e; }
.login-copy h1 { font-size: clamp(45px,4.4vw,62px); letter-spacing: -.065em; line-height: 1.065; font-weight: 800; margin: 23px 0; color: #ecf0ea; animation: loginReveal .8s ease .38s both; }
.login-copy h1 span { color: #b2f36c; }
.login-copy>p { color: #87968d; font-size: 13px; line-height: 1.9; margin: 0; max-width: 385px; animation: loginReveal .8s ease .47s both; }
.login-features { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 18px; margin: 27px 0 32px; animation: loginReveal .8s ease .55s both; }
.login-features span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #99a79b; }
.login-features svg { width: 14px; height: 14px; color: #abc38e; stroke-width: 1.5; }
.login-copy .login-button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; padding: 18px 20px; border: 1px solid rgba(195,255,144,.2); border-radius: 11px; background: #b2f36c; color: #1a2911; text-decoration: none; font-size: 13px; font-weight: 800; box-shadow: 0 7px 22px rgba(127,196,69,.06); animation: loginReveal .8s ease .62s both; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.login-copy .login-button:hover { background: #c1fc87; box-shadow: 0 9px 25px rgba(127,196,69,.14); transform: translateY(-2px); }
.login-copy .login-button>svg:first-child { width: 22px; height: 22px; }
.login-copy .login-button>svg:last-child { margin-left: auto; width: 17px; height: 17px; opacity: .7; }
.login-copy .login-button span { font-size: 13px; }
.login-copy .login-foot { display: flex; align-items: center; justify-content: center; gap: 7px; font: 10px Manrope,sans-serif; color: #697d6b; margin: 16px 0 0; line-height: 1.7; text-align: center; animation: loginReveal .8s ease .72s both; }
.login-foot svg { width: 12px; height: 12px; }
.login-copy .warning { font-size: 11px; line-height: 1.7; margin-top: 18px; }
.demo-link { display: block; font-size: 11px; color: #8d9f82; text-decoration: underline; text-underline-offset: 4px; margin-top: 14px; }
.login-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1280px,100%); padding: 0 44px 26px; margin: 0 auto; color: #53675b; font-size: 9px; letter-spacing: .04em; line-height: 1.8; animation: loginReveal .7s ease .3s both; }
.login-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.login-bottom svg { width: 12px; height: 12px; }
@keyframes loginReveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loginLogoReveal { from { opacity: 0; transform: translateY(24px) scale(.92); filter: blur(8px) drop-shadow(0 25px 28px rgba(0,0,0,.45)); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 25px 28px rgba(0,0,0,.45)); } }
@keyframes artOrbitReveal { from { opacity: 0; transform: rotate(-40deg) scale(.88); } to { opacity: 1; transform: rotate(-22deg) scale(1); } }
@keyframes artBreath { 0%,100% { opacity: .5; transform: scale(.95); } 50% { opacity: .95; transform: scale(1.05); } }

.portal-intro { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0c100e; overflow: hidden; opacity: 1; visibility: visible; transition: opacity .65s ease, visibility .65s ease; }
.intro-halo { position: absolute; width: min(620px,110vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,rgba(150,230,98,.065),transparent 67%); pointer-events: none; }
.intro-orbit { position: absolute; width: min(400px,78vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(167,204,151,.07); transform: translateY(-40px); }
.intro-orbit::after { content: ""; position: absolute; width: 4px; height: 4px; top: 10%; left: 20%; border-radius: 50%; background: #b2f36c; box-shadow: 0 0 15px rgba(178,243,108,.6); }
.intro-logo { position: relative; width: min(285px,60vw); height: auto; aspect-ratio: 1; object-fit: contain; animation: introLogoIn .9s cubic-bezier(.2,.8,.2,1) both; transition: transform .75s cubic-bezier(.2,.8,.2,1), opacity .5s ease; }
.intro-wordmark { position: relative; margin-top: 21px; color: #e0edd9; font-size: 13px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; animation: loginReveal .7s ease .35s both; }
.intro-caption { position: relative; color: #637f64; font-size: 10px; letter-spacing: .07em; margin-top: 10px; animation: loginReveal .7s ease .45s both; }
.intro-progress { position: relative; width: 90px; height: 2px; margin-top: 31px; border-radius: 2px; overflow: hidden; background: #1a2a1c; }
.intro-progress::after { content: ""; position: absolute; inset: 0; background: #b2f36c; transform-origin: left; animation: introProgress 1.8s cubic-bezier(.1,.5,.2,1) both; }
.portal-intro.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.portal-intro.is-leaving .intro-logo { transform: translateY(-8px) scale(1.06); opacity: 0; }
@keyframes introLogoIn { from { opacity: 0; transform: translateY(14px) scale(.93); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes introProgress { from { transform: scaleX(.05); } to { transform: scaleX(1); } }

/* At smaller sizes the same hierarchy becomes a compact, touch-friendly desk. */
@media (min-width: 1600px) {
  .main { padding-top: 40px; }
  .desk-grid { grid-template-columns: 335px minmax(0,1fr); gap: 27px; }
  .dossier-content { padding: 29px 32px 32px; }
  .person-header { padding: 29px 32px; }
  .dossier-tabs { padding: 0 32px; }
  .dossier-pane>.detail-facts.compact { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 1250px) {
  .layout { grid-template-columns: 211px minmax(0,1fr); }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .sidebar .brand-row { gap: 8px; margin-left: 4px; }
  .sidebar .brand-copy strong { font-size: 10px; }
  .sidebar .brand-copy small { font-size: 8px; }
  .main { padding-left: 26px; padding-right: 26px; }
  .desk-grid { grid-template-columns: 270px minmax(0,1fr); gap: 18px; }
  .search-pane { padding: 19px 15px; }
  .person-header { padding: 22px; }
  .person-header h2 { font-size: 22px; }
  .dossier-content { padding: 22px; }
  .dossier-tabs { padding: 0 22px; gap: 20px; }
  .dossier-pane>.detail-facts.compact { padding-left: 22px; padding-right: 22px; }
  .license-action-form { grid-template-columns: 130px minmax(0,1fr); }
  .license-action-form button { grid-column: 1/-1; justify-self: end; }
  .license-revoke-row { grid-template-columns: 1fr; }
  .license-revoke-row button { justify-self: end; }
  .stat-item { padding-left: 18px; padding-right: 18px; }
  .login-layout { gap: 42px; max-width: 1020px; }
}
@media (max-width: 1050px) {
  .layout { grid-template-columns: 190px minmax(0,1fr); }
  .sidebar { padding-top: 25px; }
  .sidebar .brand-mark { width: 35px; height: 40px; }
  .sidebar .brand-copy strong { font-size: 9px; letter-spacing: .04em; }
  .sidebar .brand-copy small { font-size: 7px; }
  .nav button { font-size: 11px; padding: 10px; gap: 8px; }
  .nav-group-label { padding-left: 10px; font-size: 9px; }
  .main { padding: 27px 22px 50px; }
  .topbar { padding-bottom: 21px; margin-bottom: 26px; }
  .desk-grid { grid-template-columns: 240px minmax(0,1fr); gap: 16px; }
  .search-pane { padding: 16px 12px; }
  .search-form { gap: 5px; }
  .search-form .primary-button, .search-form .ghost-button { padding: 10px 9px; }
  .search-form input { font-size: 11px; padding-left: 10px; padding-right: 8px; }
  .search-form>svg+input { padding-left: 29px; }
  .search-form>svg { left: 9px; width: 13px; height: 13px; }
  .person-result { gap: 8px; padding-left: 5px; padding-right: 5px; grid-template-columns: 34px minmax(0,1fr) auto; }
  .person-result img { width: 34px; height: 41px; }
  .person-result strong { font-size: 10px; }
  .person-result small { font-size: 8px; }
  .person-header { padding: 20px 17px; gap: 12px; }
  .person-header>img { width: 62px; height: 78px; }
  .person-header h2 { font-size: 21px; }
  .person-header p { font-size: 10px; }
  .dossier-tabs { padding: 0 17px; gap: 17px; }
  .dossier-content { padding: 20px 17px; }
  .dossier-pane>.detail-facts.compact { padding-left: 17px; padding-right: 17px; }
  .vehicle-results { padding: 22px 17px; }
  .detail-facts div { padding: 10px; }
  .detail-facts strong { font-size: 11px; }
  .stat-item { padding: 0 13px; }
  .stat-item>span, .stat-item label { font-size: 10px; }
  .stat-item strong { font-size: 23px; }
  .stat-item small { font-size: 9px; }
  .welcome-steps { flex-wrap: wrap; gap: 12px 18px; }
  .overview-activity { grid-template-columns: 1fr; }
  .character-grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
  .mugshot-wrap { height: 220px; }
  .citizen-welcome { padding-right: 190px; }
  .welcome-logo { width: 195px; height: 195px; right: -6px; bottom: 12px; }
  .login-layout { gap: 30px; padding: 30px 42px 65px; }
  .login-copy h1 { font-size: 48px; }
  .login-copy>p { font-size: 12px; }
  .login-features { gap: 12px; }
  .login-features span { font-size: 9px; }
  .login-copy .login-button { padding: 16px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .desk-grid { grid-template-columns: 1fr; }
  .search-pane { padding: 19px; }
  .search-results { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 190px; }
  .person-result { grid-template-columns: 38px minmax(0,1fr) auto; }
  .person-result strong { font-size: 11px; }
  .person-result small { font-size: 9px; }
  .desk-welcome { min-height: 300px; }
  .top-actions .sync-indicator { display: none; }
  .license-action-form { grid-template-columns: 130px minmax(0,1fr) auto; }
  .license-action-form button { grid-column: auto; }
  .license-revoke-row { grid-template-columns: minmax(0,1fr) auto; }
}
@media (max-width: 760px) {
  .layout { display: block; }
  .sidebar { height: auto; position: relative; padding: 15px 18px 12px; border-bottom: 1px solid var(--line); border-right: 0; overflow: visible; }
  .sidebar .brand-row { margin: 0 0 13px; gap: 9px; }
  .sidebar .brand-mark { width: 31px; height: 36px; }
  .sidebar .brand-copy strong { font-size: 10px; }
  .sidebar .brand-copy small { font-size: 8px; margin-top: 3px; }
  .sidebar-bottom { display: none; }
  .nav { display: flex; flex-direction: row; overflow-x: auto; margin: 0 -5px; padding: 0 5px 3px; gap: 5px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-group-label { display: none; }
  .nav button { flex-shrink: 0; min-height: 39px; justify-content: center; padding: 9px 12px; font-size: 10px; gap: 7px; border-radius: 8px; }
  .nav .icon { width: 16px; }
  .nav .icon svg { width: 15px; height: 15px; }
  .nav button.active::after { display: none; }
  .main { padding: 24px 20px 45px; }
  .topbar { margin-bottom: 25px; padding-bottom: 21px; }
  .page-title { font-size: 28px; }
  .top-actions { display: none; }
  .workspace-header { margin-bottom: 21px; }
  .workspace-header h2 { font-size: 25px; }
  .workspace-header p { font-size: 11px; }
  .workspace-header .action-icon { width: 39px; height: 39px; }
  .workspace-toolbar { margin: 19px 0; gap: 10px; }
  .workspace-tabs { max-width: 100%; overflow-x: auto; padding: 3px; }
  .workspace-tabs button { padding: 9px 11px; gap: 6px; white-space: nowrap; font-size: 10px; }
  .workspace-tabs svg { width: 13px; height: 13px; }
  .workspace-toolbar>.primary-button { font-size: 10px; padding: 9px 11px; }
  .stat-strip { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 20px 0; padding: 17px 0; }
  .stat-item { padding: 0 10px; }
  .stat-item strong { font-size: 22px; }
  .stat-item small { font-size: 8px; }
  .stat-item>span, .stat-item label { font-size: 9px; }
  .desk-grid { grid-template-columns: 1fr; gap: 18px; }
  .search-pane { padding: 19px; }
  .search-form input { font-size: 12px; }
  .search-form>svg+input { padding-left: 34px; }
  .search-form>svg { left: 12px; width: 15px; height: 15px; }
  .search-form .primary-button, .search-form .ghost-button { padding: 10px 15px; }
  .search-results { max-height: 225px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .person-result { grid-template-columns: 37px minmax(0,1fr) auto; }
  .person-result img { width: 37px; height: 45px; }
  .person-result strong { font-size: 11px; }
  .person-result small { font-size: 9px; }
  .desk-welcome { min-height: 335px; padding: 33px 24px; }
  .desk-welcome h2 { font-size: 21px; }
  .desk-welcome p { font-size: 12px; }
  .person-header { padding: 23px; gap: 15px; }
  .person-header>img { width: 66px; height: 82px; }
  .person-header h2 { font-size: 24px; }
  .person-header p { font-size: 11px; }
  .dossier-tabs { padding: 0 23px; gap: 21px; }
  .dossier-content { padding: 23px; }
  .dossier-pane>.detail-facts.compact { padding-left: 23px; padding-right: 23px; }
  .vehicle-results { padding: 23px; }
  .detail-facts.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .detail-facts div { padding-left: 12px; padding-right: 12px; }
  .detail-facts strong { font-size: 12px; }
  .record-toolbar { gap: 12px; }
  .license-action-form { grid-template-columns: 135px minmax(0,1fr); }
  .license-action-form button { grid-column: 1/-1; }
  .license-revoke-row { grid-template-columns: minmax(0,1fr) auto; }
  .police-entry summary { grid-template-columns: 14px minmax(0,1fr) auto; padding: 13px 12px; gap: 9px; }
  .police-entry summary strong { font-size: 12px; }
  .police-entry summary small { font-size: 11px; }
  .police-status { grid-column: auto; font-size: 9px; }
  .police-entry-body { padding-left: 35px; padding-right: 15px; }
  .police-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .police-summary { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px 0; }
  .police-summary>div:nth-child(4) { padding-left: 0; }
  .police-summary>div:nth-child(3) { border: 0; }
  .cards-4, .cards-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .card { padding: 20px; }
  .metric { min-height: 112px; }
  .metric-value { font-size: 27px; }
  .character-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .mugshot-wrap { height: 220px; }
  .character-body { padding: 18px; }
  .character-name { font-size: 20px; }
  .character-top { flex-wrap: wrap; }
  .character-meta { margin-top: 17px; }
  .citizen-topline { align-items: flex-start; }
  .citizen-topline h2 { font-size: 26px; }
  .citizen-welcome { min-height: 200px; padding-right: 185px; padding-top: 5px; }
  .citizen-welcome>h2 { font-size: 33px; }
  .welcome-logo { width: 190px; height: 190px; right: -9px; bottom: 2px; }
  .citizen-summary { gap: 18px; flex-wrap: wrap; font-size: 11px; }
  .overview-activity { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field.full { grid-column: 1/-1; }
  .quick-note { grid-template-columns: 1fr; }
  .quick-note button { justify-self: end; }
  .data-table { min-width: 570px; }
  .composer-dialog, .record-dialog { padding: 24px; border-radius: 17px; }
  .composer-overlay, .record-modal { padding: 20px; }
  .record-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .login-topbar { padding: 22px 25px; }
  .login-layout { max-width: 550px; grid-template-columns: 1fr; gap: 29px; padding: 8px 36px 45px; }
  .login-art { width: 250px; max-width: 70vw; }
  .login-art-orbit { inset: 0; }
  .login-logo { width: 108%; }
  .art-caption { display: none; }
  .login-copy { max-width: 420px; width: 100%; margin: 0 auto; text-align: center; }
  .login-copy>.eyebrow { justify-content: center; font-size: 8px; }
  .login-copy h1 { font-size: 45px; margin-top: 17px; margin-bottom: 18px; }
  .login-copy>p { margin: 0 auto; font-size: 12px; max-width: 360px; }
  .login-features { justify-content: center; margin-top: 21px; margin-bottom: 24px; gap: 16px; }
  .login-features span { font-size: 9px; }
  .login-bottom { padding: 0 25px 20px; font-size: 8px; gap: 14px; }
  .login-ambient::before { width: 550px; height: 550px; top: 20px; left: calc(50% - 275px); }
  .login-ambient::after { mask-image: linear-gradient(0deg,transparent,#000 80%,transparent); opacity: .14; }
}
@media (max-width: 480px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .page-title { font-size: 26px; }
  .workspace-toolbar { flex-wrap: wrap; }
  .workspace-tabs { flex: 1; }
  .workspace-tabs button { flex: 1; padding-left: 9px; padding-right: 9px; }
  .workspace-toolbar>.primary-button { min-height: 37px; }
  .workspace-header h2 { font-size: 24px; }
  .workspace-header .action-icon { display: none; }
  .stat-strip { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 18px; }
  .stat-item:nth-child(3) { padding-left: 0; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item label, .stat-item>span { font-size: 10px; }
  .stat-item small { font-size: 9px; }
  .search-results { grid-template-columns: 1fr; max-height: 240px; }
  .person-result { grid-template-columns: 39px minmax(0,1fr) auto; padding: 9px 7px; }
  .person-result img { width: 39px; height: 47px; }
  .person-result strong { font-size: 12px; }
  .person-header { padding: 20px 17px; gap: 13px; }
  .person-header h2 { font-size: 22px; }
  .person-header .eyebrow { font-size: 9px; }
  .dossier-content { padding: 20px 17px; }
  .dossier-pane>.detail-facts.compact { padding-left: 17px; padding-right: 17px; padding-bottom: 17px; }
  .vehicle-results { padding: 20px 17px; }
  .vehicle-result { gap: 13px; grid-template-columns: auto minmax(0,1fr); }
  .vehicle-result>.tag { grid-column: 2; justify-self: start; }
  .vehicle-result>.ghost-button { grid-column: 2; }
  .vehicle-plate { padding: 8px 9px 8px 13px; font-size: 11px; }
  .dossier-tabs { padding: 0 17px; gap: 20px; }
  .detail-facts.compact { grid-template-columns: 1fr; gap: 0; }
  .detail-facts.compact div { border-right: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; }
  .detail-facts.compact strong { margin: 0; }
  .record-toolbar { align-items: flex-start; }
  .record-toolbar .ghost-button { font-size: 10px; }
  .license-action-form { grid-template-columns: 1fr; }
  .license-action-form button { grid-column: auto; }
  .license-revoke-row { grid-template-columns: 1fr; }
  .license-action-form button, .license-revoke-row button { width: 100%; }
  .police-entry summary { grid-template-columns: 13px minmax(0,1fr); }
  .police-status { grid-column: 2; justify-self: start; }
  .police-entry-body { padding-left: 14px; }
  .police-detail-grid { grid-template-columns: 1fr; }
  .police-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .police-summary>div:nth-child(3) { padding-left: 0; border-right: 1px solid var(--line); }
  .police-summary>div:nth-child(4) { padding-left: 18px; }
  .police-summary>div:nth-child(2), .police-summary>div:nth-child(4) { border: 0; }
  .police-summary>div:nth-child(5) { padding-left: 0; }
  .cards-4, .cards-3 { gap: 12px; }
  .metric { padding: 18px 15px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 25px; }
  .character-grid { grid-template-columns: 1fr; gap: 20px; }
  .mugshot-wrap { height: 280px; }
  .character-body { padding: 23px; }
  .character-name { font-size: 24px; }
  .citizen-welcome { padding-right: 60px; min-height: 213px; }
  .citizen-welcome>h2 { font-size: 35px; }
  .citizen-welcome>p { max-width: 245px; font-size: 11px; }
  .welcome-logo { width: 175px; height: 175px; opacity: .14; right: -48px; bottom: -2px; }
  .character-top { flex-wrap: nowrap; }
  .form-grid { grid-template-columns: 1fr; }
  .composer-overlay, .record-modal { padding: 12px; }
  .composer-dialog, .record-dialog { padding: 22px 19px; max-height: 93dvh; }
  .composer-head h2 { font-size: 22px; }
  .composer-footer { flex-wrap: wrap; }
  .composer-footer>small { max-width: none; width: 100%; }
  .record-meta { gap: 0 16px; }
  .record-meta strong { font-size: 11px; }
  .record-dialog h2 { font-size: 23px; }
  .toast { right: 15px; bottom: 15px; left: 15px; text-align: center; }
  .login-topbar { padding: 18px 22px; }
  .wordmark { font-size: 10px; }
  .wordmark img { width: 30px; height: 34px; }
  .wordmark small { font-size: 7px; }
  .login-location { font-size: 8px; }
  .login-layout { padding: 3px 27px 38px; gap: 23px; }
  .login-art { width: 220px; }
  .login-copy h1 { font-size: 42px; }
  .login-copy>p { font-size: 11px; }
  .login-features { gap: 12px; }
  .login-features span { font-size: 8px; gap: 5px; }
  .login-features svg { width: 12px; height: 12px; }
  .login-copy .login-button { font-size: 12px; padding: 16px 18px; }
  .login-copy .login-button span { font-size: 12px; }
  .login-copy .login-foot { font-size: 9px; }
  .login-bottom { flex-direction: column; gap: 5px; text-align: center; padding: 0 22px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-delay: 0ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
  .login-art-halo, .login-logo, .login-art-orbit, .login-copy>*, .login-topbar, .login-bottom, .intro-logo, .intro-wordmark, .intro-caption { opacity: 1; transform: none; }
  .intro-progress::after { transform: scaleX(1); }
  .person-header.wanted, .person-result.wanted, .vcp-results>button.wanted, .vcp-person-head.wanted { animation: none!important; border-color: #ff7c88; }
}

/* Context and compact history navigation are deliberately not separate cards. */
.service-card { margin:0 0 32px; padding:26px 28px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(115deg,rgba(var(--accent-rgb),.065),transparent 70%),#141820; }
.service-card-heading,.service-dialog-heading { display:flex; align-items:center; gap:14px; }
.service-symbol { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border:1px solid rgba(var(--accent-rgb),.2); border-radius:12px; color:var(--accent); background:rgba(var(--accent-rgb),.06); }
.service-symbol svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.5; }
.service-card h2,.service-dialog h2 { font-size:21px; margin:4px 0 0; letter-spacing:-.6px; }
.service-card .eyebrow,.service-dialog .eyebrow { font-size:9px; }
.service-state { margin-left:auto; color:var(--muted); border:1px solid var(--line); border-radius:30px; padding:7px 11px; font-size:11px; }
.service-state.is-ready { color:var(--accent); border-color:rgba(var(--accent-rgb),.2); }
.service-metrics { display:grid; grid-template-columns:minmax(0,1.3fr) 1fr 1fr; gap:22px; margin:24px 0; padding-bottom:22px; border-bottom:1px solid var(--line); }
.service-metrics>div { min-width:0; }
.service-metrics span { display:block; font-size:11px; color:var(--muted); margin-bottom:7px; }
.service-metrics strong { display:block; overflow-wrap:anywhere; color:var(--text); font-size:12px; font-weight:500; }
.service-card-footer { display:flex; align-items:center; justify-content:space-between; gap:28px; }
.service-card-footer p { color:var(--muted); font-size:12px; line-height:1.75; margin:0; max-width:760px; }
.service-card-footer button { display:flex; align-items:center; justify-content:center; flex-shrink:0; gap:9px; }
.service-card-footer button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; }
.service-card button:disabled { opacity:.45; cursor:not-allowed; }
.service-dialog { box-sizing:border-box; width:min(540px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow-y:auto; border:1px solid #353c49; border-radius:18px; padding:30px; background:#191d25; color:var(--text); box-shadow:0 30px 120px #0008; }
.service-dialog::backdrop { background:#060a10d9; backdrop-filter:blur(7px); }
.service-dialog>p { margin:22px 0; font-size:13px; line-height:1.85; color:var(--muted); }
.service-dialog .field { display:flex; flex-direction:column; gap:10px; }
.service-dialog label { font-size:12px; color:var(--muted); }
.service-dialog label strong { color:var(--text); font-weight:600; letter-spacing:1px; }
.service-dialog input { box-sizing:border-box; width:100%; min-width:0; border:1px solid var(--line); border-radius:9px; background:#11151c; color:var(--text); padding:14px; font:inherit; font-size:14px; letter-spacing:1.5px; }
.service-dialog input:focus { outline:2px solid rgba(var(--accent-rgb),.45); outline-offset:2px; }
.service-dialog-actions,.service-recovery-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; }
.service-dialog [hidden] { display:none!important; }
.service-dialog button:disabled { opacity:.45; cursor:not-allowed; }
.service-progress { border-left:2px solid var(--accent); background:rgba(var(--accent-rgb),.045); padding:16px; font-size:13px; line-height:1.9; color:var(--text); }
.service-dialog[data-phase="waiting"] .service-symbol svg { animation:service-pulse 1.8s ease-in-out infinite; }
@keyframes service-pulse { 50% { opacity:.35; transform:rotate(-15deg); } }
@media(max-width:760px) {
  .service-card { padding:20px; }
  .service-card-heading { flex-wrap:wrap; }
  .service-state { margin-left:58px; }
  .service-metrics { grid-template-columns:1fr; gap:15px; }
  .service-card-footer { flex-direction:column; align-items:stretch; gap:16px; }
  .service-dialog { padding:23px; }
  .service-dialog-actions,.service-recovery-actions { flex-direction:column-reverse; }
}
@media(prefers-reduced-motion:reduce) { .service-dialog[data-phase="waiting"] .service-symbol svg { animation:none; } }
.personal-context { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin-bottom:28px; }
.personal-context>span { color:var(--muted); font-size:12px; }
.personal-context .select { width:auto; max-width:100%; min-width:230px; }
.history-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.history-tabs button { display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:7px; padding:9px 12px; background:transparent; color:var(--muted); font-size:12px; cursor:pointer; }
.history-tabs button[aria-selected="true"] { background:rgba(var(--accent-rgb),.1); color:var(--accent); border-color:rgba(var(--accent-rgb),.3); }
.history-tabs button span { font-size:10px; opacity:.7; }
.modal-open { overflow:hidden; }
.rights-management { margin:38px 0 28px; }
.rights-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 0 22px; }
.rights-heading h2 { margin:7px 0 8px; font-size:27px; letter-spacing:-.8px; }
.rights-heading p { margin:0; color:var(--muted); font-size:13px; line-height:1.7; }
.rights-audit-note { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:10px; white-space:nowrap; padding-bottom:4px; }
.rights-audit-note svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; }
.rights-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.rights-panel { min-width:0; background:#171a20; border:1px solid var(--line); border-radius:17px; overflow:hidden; }
.rights-panel-header { display:flex; align-items:center; gap:13px; padding:23px 24px; border-bottom:1px solid var(--line); background:linear-gradient(120deg,#ffffff03,transparent); }
.rights-heading-icon { display:grid; place-items:center; flex:0 0 39px; width:39px; height:39px; border-radius:12px; background:#d6dff20a; color:#c5d0e2; }
.rights-heading-icon svg,.rights-entry-symbol svg { width:19px; height:19px; stroke:currentColor; stroke-width:1.6; fill:none; }
.rights-panel-header h3 { margin:0; font-size:17px; letter-spacing:-.4px; }
.rights-panel-header p { margin:5px 0 0; font-size:11px; color:var(--muted); }
.rights-count { margin-left:auto; border:1px solid var(--line); border-radius:30px; padding:5px 8px; font-size:10px; color:var(--muted); white-space:nowrap; }
.rights-list { max-height:398px; overflow:auto; scrollbar-width:thin; scrollbar-color:#3d4655 transparent; padding:0 24px; }
.rights-empty { margin:0; padding:24px 0; color:var(--muted); font-size:12px; line-height:1.8; }
.rights-entry { display:flex; align-items:center; gap:12px; min-width:0; padding:18px 0; border-bottom:1px solid #d6e0ef0c; }
.rights-entry:last-child { border-bottom:0; }
.rights-entry.is-inactive .rights-entry-copy { opacity:.58; }
.rights-entry-symbol { display:grid; place-items:center; color:#a6b1c2; width:30px; flex:0 0 30px; }
.rights-entry-copy { min-width:0; flex:1; }
.rights-entry-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.rights-entry-title strong { font-size:13px; font-weight:650; color:#ecf0f7; overflow-wrap:anywhere; }
.rights-kind { font-size:9px; color:#a5afc1; border:1px solid #d6e0ef18; padding:2px 6px; border-radius:5px; white-space:nowrap; }
.rights-entry-copy code { display:block; margin:6px 0 3px; color:#9aabc1; font-size:10px; letter-spacing:.03em; overflow-wrap:anywhere; }
.rights-entry-copy>small { color:var(--muted); font-size:10px; }
.rights-row-actions { display:flex; flex-direction:column; align-items:flex-end; gap:2px; flex-shrink:0; }
.rights-text-button { border:0; border-radius:5px; background:transparent; color:#bdc9da; padding:6px 0 6px 8px; font:600 10px Manrope,sans-serif; cursor:pointer; white-space:nowrap; }
.rights-text-button:hover { color:#fff; }
.rights-text-button.danger { color:#d69099; }
.rights-text-button.danger:hover { color:#ffbbc1; }
.rights-text-button:disabled { opacity:.32; cursor:not-allowed; }
.rights-text-button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.rights-job { --rights-accent:#a9b6ca; }
.rights-job[data-rights-department="police"] { --rights-accent:#79aaff; }
.rights-job[data-rights-department="medical"] { --rights-accent:#fa8594; }
.rights-job[data-rights-department="mechanic"] { --rights-accent:#eab86b; }
.rights-job[data-rights-department="tuner"] { --rights-accent:#b9a3fb; }
.rights-job .rights-entry-symbol,.rights-job .rights-entry-title strong { color:var(--rights-accent); }
.rights-job-name { display:block; margin-top:6px; font-size:11px; color:#d0d6e1; overflow-wrap:anywhere; }
.rights-job-name>small { font-size:10px; color:var(--muted); }
.rights-capabilities { display:flex; flex-wrap:wrap; gap:4px 11px; margin-top:6px; }
.rights-capabilities span { display:inline-flex; align-items:center; gap:4px; font-size:9px; color:#95a4b8; }
.rights-capabilities span::before { content:''; width:3px; height:3px; border-radius:100%; background:var(--rights-accent); }
.rights-editor { padding:22px 24px 24px; border-top:1px solid var(--line); background:#11141a66; }
.rights-editor-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:19px; min-height:26px; }
.rights-editor-heading h4 { margin:0; font-size:13px; font-weight:600; color:#d4dce8; }
.rights-form fieldset { margin:0; padding:0; min-width:0; border:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px 14px; }
.rights-form fieldset:disabled { opacity:.5; }
.rights-form .full { grid-column:1/-1; }
.rights-form .field { align-content:start; }
.rights-form .field label { font-size:10px; letter-spacing:.01em; color:#a1afc3; }
.rights-form input:not([type="checkbox"]),.rights-form select { width:100%; box-sizing:border-box; min-height:42px; font-size:11px; }
.rights-form input[readonly],.rights-form select:disabled { color:#90a0b6; background:#ffffff03; cursor:not-allowed; }
.rights-help { display:block; margin:0; font-size:10px; line-height:1.65; color:#8494a9; }
.rights-grade { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.rights-grade label { display:block; margin-bottom:6px; }
.rights-grade input[type="number"] { width:90px; flex:0 0 90px; min-height:42px; }
.rights-grade+.rights-help { margin-top:-8px; }
.rights-checks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.rights-check { display:flex; align-items:flex-start; gap:9px; padding:12px 10px; border:1px solid #cbd6e717; border-radius:9px; cursor:pointer; background:#ffffff02; }
.rights-check:has(input:checked) { border-color:#acbdd346; background:#adbcce0a; }
.rights-check input[type="checkbox"] { width:17px; height:17px; min-width:17px; min-height:17px; max-width:17px; flex:0 0 17px; padding:0; margin:1px 0 0; border-radius:4px; accent-color:#c2d0e4; appearance:auto; box-shadow:none; cursor:pointer; }
.rights-check input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.rights-check>span { min-width:0; }
.rights-check strong { display:block; font-size:10px; font-weight:600; color:#d7dfeb; }
.rights-check small { display:block; margin-top:5px; color:#8292a6; font-size:9px; line-height:1.65; }
.rights-form-footer { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; margin-top:5px; padding-top:19px; border-top:1px solid #d6e0ef0c; }
.rights-form-footer>small { flex:1 1 150px; color:#8594a8; font-size:10px; line-height:1.7; }
.rights-form-footer>.primary-button { flex-shrink:0; padding:11px 14px; font-size:10px; min-height:40px; }
.rights-form-footer>.primary-button:disabled { opacity:.4; cursor:not-allowed; }
.rights-discord-status { display:flex; gap:9px; align-items:flex-start; border-top:1px solid var(--line); padding-top:17px; margin-top:20px; }
.rights-discord-status>svg { flex:0 0 15px; width:15px; height:15px; stroke:currentColor; stroke-width:1.4; fill:none; color:#8c9db6; margin-top:2px; }
.rights-discord-status p { margin:0; color:#8c9db6; font-size:10px; line-height:1.8; overflow-wrap:anywhere; }
.rights-discord-status code { color:#b0c0d6; font-size:10px; }
.rights-discord-status span { display:block; }
.rights-notice { border-left:2px solid #7186a5; color:#adbacd; font-size:11px; line-height:1.8; padding:8px 13px; margin:0 0 18px; background:#bacde408; }
@media(max-width:1320px) {
  .rights-audit-note { display:none; }
  .rights-layout { grid-template-columns:1fr; }
  .rights-list { max-height:365px; }
  .rights-form fieldset { gap:16px; }
  .rights-checks { gap:12px; }
}
@media(max-width:600px) {
  .rights-heading h2 { font-size:24px; }
  .rights-heading p { font-size:12px; }
  .rights-panel-header { gap:10px; padding:20px 17px; flex-wrap:wrap; }
  .rights-panel-header h3 { font-size:16px; }
  .rights-panel-header p { font-size:10px; }
  .rights-heading-icon { width:32px; height:32px; flex-basis:32px; }
  .rights-count { font-size:9px; }
  .rights-list { padding:0 17px; }
  .rights-editor { padding:19px 17px; }
  .rights-entry { gap:9px; flex-wrap:wrap; }
  .rights-entry-symbol { width:22px; flex-basis:22px; }
  .rights-entry-copy { flex:1 1 calc(100% - 35px); }
  .rights-row-actions { flex-direction:row; gap:20px; padding-left:31px; }
  .rights-text-button { padding-left:0; font-size:11px; }
  .rights-form fieldset { grid-template-columns:1fr; gap:15px; }
  .rights-checks { grid-template-columns:1fr; gap:8px; }
  .rights-check { align-items:center; padding:11px 12px; gap:11px; }
  .rights-check>span { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 9px; }
  .rights-check strong { font-size:11px; }
  .rights-check small { margin:0; font-size:10px; }
  .rights-form-footer { flex-direction:column; align-items:stretch; }
  .rights-form-footer>small { flex-basis:auto; }
  .rights-form-footer>.primary-button { width:100%; }
}
.intro-active .login-stage *, .intro-active .page-enter { animation-play-state:paused!important; }
.announcement { display:flex; align-items:center; gap:10px; }
.composer-dialog,.record-dialog { background:#191d25; }
.main { width:100%; margin-inline:auto; }
.nav button { font-size:14px; }
.search-pane h3,.record-toolbar h3 { font-size:16px; }
.person-result strong,.vcp-record strong,.police-entry summary strong { font-size:14px; }
.workspace-tabs button,.dossier-tabs button,.quick-note-disclosure summary,.license-options summary { font-size:13px; }
.workspace-header p,.search-pane>p,.desk-welcome p,.record-toolbar p,.record-empty,.person-header p,.login-copy>p { font-size:14px; }
.person-result small,.vcp-record small,.police-entry summary small { font-size:11px; line-height:1.7; }
@media(max-width:760px) {
  .nav button { font-size:12px; }
  .workspace-tabs button,.dossier-tabs button { font-size:12px; }
  .sidebar-bottom { display:block; position:absolute; top:12px; right:18px; margin:0; padding:0; }
  .sidebar-bottom .profile-mini { display:none; }
  .sidebar-bottom .logout { display:flex; align-items:center; gap:5px; padding:8px; margin:0; }
  .workspace-toolbar { flex-direction:column; align-items:stretch; }
  .workspace-tabs { width:100%; overflow-x:auto; }
  .workspace-toolbar>.primary-button { align-self:flex-end; }
  .nav { scrollbar-width:thin; padding-bottom:7px; }
  .nav::-webkit-scrollbar { display:block; height:3px; }
}
