:root {
  color-scheme: dark;
  --bg: #07090d;
  --sidebar: #0b0e13;
  --surface: #0f131a;
  --surface-2: #141922;
  --surface-3: #191f2a;
  --line: #252c38;
  --line-soft: #1b212b;
  --text: #f3f5f7;
  --muted: #8994a5;
  --muted-2: #5f6978;
  --accent: #e9b949;
  --accent-soft: rgba(233, 185, 73, .12);
  --green: #45d490;
  --green-soft: rgba(69, 212, 144, .12);
  --red: #f16d7a;
  --red-soft: rgba(241, 109, 122, .12);
  --orange: #f4a261;
  --orange-soft: rgba(244, 162, 97, .12);
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: Inter, "Segoe UI Variable", "Segoe UI", sans-serif; background: radial-gradient(circle at 82% -20%, rgba(233,185,73,.055), transparent 32%), var(--bg); color: var(--text); }
button, input, select { font: inherit; }
a { color: inherit; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 252px; padding: 22px 16px 16px; display: flex; flex-direction: column; overflow-y: auto; background: rgba(10,13,18,.98); border-right: 1px solid var(--line-soft); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #f2ca67, #c88b23); color: #171107; font-weight: 900; box-shadow: 0 8px 24px rgba(233,185,73,.18); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand small { margin-top: 2px; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.icon-button.sidebar-close { display: none; }
.server-switcher { display: flex; align-items: center; gap: 10px; margin: 28px 4px 22px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.server-switcher span:nth-child(2) { flex: 1; }
.server-switcher small, .server-switcher strong { display: block; }
.server-switcher small { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.server-switcher strong { margin-top: 3px; font-size: 13px; }
.status-pulse, .live-indicator i, .data-freshness i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(69,212,144,.65); }
.chevron { color: var(--muted); }
.primary-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { margin: 17px 12px 7px; color: #4f5866; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.primary-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 620; transition: .16s ease; }
.primary-nav a:hover { color: var(--text); background: var(--surface); }
.primary-nav a.active { color: #f7d986; background: var(--accent-soft); }
.primary-nav a.active::before { content: ""; position: absolute; left: -16px; width: 2px; height: 22px; border-radius: 2px; background: var(--accent); }
.nav-icon { width: 19px; text-align: center; color: currentColor; font-size: 17px; }
.nav-new { margin-left: auto; padding: 2px 5px; border-radius: 4px; background: var(--accent); color: #171106; font-size: 8px; font-weight: 900; }
.primary-nav .portal-switch { margin-top: 2px; border: 1px solid rgba(233,185,73,.22); background: linear-gradient(90deg, rgba(233,185,73,.13), rgba(233,185,73,.035)); color: var(--accent); }
.primary-nav .portal-switch:hover { border-color: rgba(233,185,73,.42); background: linear-gradient(90deg, rgba(233,185,73,.19), rgba(233,185,73,.06)); }
.portal-switch strong, .portal-switch small { display: block; }
.portal-switch strong { color: var(--text); font-size: 11px; }
.portal-switch small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid var(--line-soft); }
.user-avatar, .avatar { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #2b3340, #151a22); border: 1px solid #343d4b; color: #dfe5ed; font-weight: 800; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 12px; }
.user-meta small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.logout-link { color: var(--muted); text-decoration: none; }

.workspace { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; top: 0; z-index: 20; height: 68px; padding: 0 30px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line-soft); background: rgba(7,9,13,.86); backdrop-filter: blur(16px); }
.global-search { width: min(620px, 60vw); display: flex; align-items: center; gap: 10px; }
.global-search > span { color: var(--muted); font-size: 22px; }
.global-search input { width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.global-search input::placeholder { color: #5f6978; }
kbd { padding: 4px 7px; border: 1px solid var(--line); border-bottom-color: #3a4351; border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 9px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; }
.menu-button { display: none; }
.content { max-width: 1600px; margin: 0 auto; padding: 36px 36px 60px; }

.page-heading { margin-bottom: 26px; }
.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-heading h1 { margin: 6px 0 6px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.eyebrow { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .19em; }
.data-freshness { display: flex; align-items: center; gap: 10px; min-width: 260px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.data-freshness span, .data-freshness strong, .data-freshness small { display: block; min-width: 0; }
.data-freshness strong { font-size: 11px; }
.data-freshness small { max-width: 300px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.data-freshness.unhealthy i { background: var(--red); box-shadow: 0 0 12px rgba(241,109,122,.55); }

.command-search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.search-hero { margin-bottom: 18px; padding: 8px 8px 8px 18px; }
.search-glyph { color: var(--accent); font-size: 23px; }
.command-search input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.command-search button, .filter-bar button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--accent); color: #1b1407; font-weight: 850; cursor: pointer; }
.clear-search, .filter-reset { color: var(--muted); font-size: 12px; text-decoration: none; }
.module-search { margin-top: 18px; }

.panel, .metric-card, .empty-panel, .profile-hero, .vehicle-detail-hero { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,23,31,.98), rgba(13,17,23,.98)); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.panel { margin-top: 18px; padding: 20px; }
.data-panel { padding: 0; overflow: hidden; }
.data-panel .panel-title { padding: 19px 20px 16px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-title > div > h2, .panel-title h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.panel-title > div > span, .panel-title > span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.panel-title a { color: var(--accent); font-size: 11px; text-decoration: none; }
.schema-chip { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted) !important; font-family: Consolas, monospace; font-size: 8px !important; }
.empty-panel { display: grid; justify-items: center; padding: 60px 24px; text-align: center; }
.empty-panel h1, .empty-panel h2 { margin: 12px 0 4px; }
.empty-panel p { max-width: 620px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 24px; font-weight: 900; }
.standalone-empty { margin-top: 12vh; }
.inline-empty { padding: 30px; color: var(--muted); text-align: center; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 16px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); background: rgba(5,7,10,.28); color: #626d7e; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgba(255,255,255,.018); }
tbody tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; }
.identity-cell, .vehicle-cell, .owner-card { display: flex; align-items: center; gap: 11px; }
.identity-cell strong, .identity-cell small, .vehicle-cell strong, .vehicle-cell small, .owner-card strong, .owner-card small { display: block; }
.identity-cell strong, .vehicle-cell strong { color: #eef2f7; }
.identity-cell small, .vehicle-cell small, .owner-card small { max-width: 240px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.status-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-badge.success { border-color: rgba(69,212,144,.2); background: var(--green-soft); color: var(--green); }
.status-badge.danger { border-color: rgba(241,109,122,.25); background: var(--red-soft); color: var(--red); }
.status-badge.warning { border-color: rgba(244,162,97,.25); background: var(--orange-soft); color: var(--orange); }
.status-badge.muted { background: rgba(137,148,165,.07); }
.metric-pill { display: inline-grid; place-items: center; min-width: 27px; height: 25px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.economy-cell strong, .economy-cell small { display: block; }
.economy-cell strong { color: #e8edf3; font-size: 11px; }
.economy-cell small { margin-top: 4px; color: var(--accent); font-size: 8px; white-space: nowrap; }
.economy-cell i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 7px rgba(233,185,73,.45); }
.capacity-track, .health-track { display: block; width: 88px; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #252c36; }
.capacity-track i, .health-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b98324, var(--accent)); }
.health-track { width: 76px; }
.health-track i { background: linear-gradient(90deg, #25875a, var(--green)); }
.health-value { color: var(--green); font-weight: 800; }
.health-value.attention { color: var(--orange); }
.health-value.attention + .health-track i { background: linear-gradient(90deg, #b85d39, var(--orange)); }
.date-primary, .date-secondary, .block { display: block; }
.date-secondary, small.block { margin-top: 3px; color: var(--muted); font-size: 9px; }
.squad-name { color: #c9d0da; }
.muted-text { color: var(--muted-2); }
.row-action { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); text-decoration: none; }
.row-action:hover { border-color: rgba(233,185,73,.5); color: var(--accent); }
.vehicle-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.vehicle-symbol.image { flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; background: radial-gradient(circle at 50% 65%, rgba(233,185,73,.18), rgba(233,185,73,.025) 68%); }
.vehicle-symbol.image img { width: 94%; height: 94%; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0,0,0,.48)); }
.mono, .log-data { font-family: "Cascadia Code", Consolas, monospace; }
.log-data { min-width: 360px; white-space: pre-wrap; color: #cbd2dc; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { position: relative; min-height: 116px; padding: 18px; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; right: -25px; bottom: -35px; width: 100px; height: 100px; border-radius: 50%; background: var(--accent-soft); filter: blur(2px); }
.metric-card span, .metric-card small, .metric-card strong { position: relative; z-index: 1; display: block; }
.metric-card span { color: var(--muted); font-size: 10px; }
.metric-card strong { margin-top: 12px; font-size: 27px; letter-spacing: -.03em; }
.metric-card small { margin-top: 5px; color: var(--muted-2); font-size: 9px; }
.metric-card.gold strong { color: var(--accent); }
.metric-card.warning::after { background: var(--orange-soft); }

.filter-bar { display: flex; align-items: center; gap: 9px; margin: 18px 0; }
.filter-search { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 280px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.filter-search span { color: var(--muted); }
.filter-search input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: var(--text); }
.filter-bar select { height: 42px; max-width: 220px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.button { display: inline-flex; min-height: 38px; padding: 0 14px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--accent); color: #1b1407; font-size: 11px; font-weight: 800; text-decoration: none; }
.button.secondary { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }

.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 10px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs strong { color: #cdd4de; }
.profile-hero, .vehicle-detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; }
.profile-identity { display: flex; align-items: center; gap: 18px; }
.profile-avatar { display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid rgba(233,185,73,.3); border-radius: 18px; background: linear-gradient(135deg, rgba(233,185,73,.2), rgba(233,185,73,.04)); color: var(--accent); font-size: 26px; font-weight: 900; }
.profile-title-line { display: flex; align-items: center; gap: 12px; }
.profile-title-line h1, .vehicle-detail-hero h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.profile-identity p, .vehicle-detail-hero p { margin: 7px 0; color: var(--muted); font-size: 11px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: #aab3c0; font-size: 8px; }
.tag.accent { border-color: rgba(233,185,73,.2); color: var(--accent); }
.profile-activity { min-width: 190px; padding-left: 24px; border-left: 1px solid var(--line); text-align: right; }
.profile-activity small, .profile-activity strong, .profile-activity span { display: block; }
.profile-activity small { color: var(--muted-2); font-size: 8px; letter-spacing: .12em; }
.profile-activity strong { margin-top: 7px; font-size: 15px; }
.profile-activity span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.profile-metrics { margin-top: 12px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.detail-panel { margin-top: 0; }
.details-grid { margin-top: 14px; }
.span-2 { grid-column: span 2; }
.detail-list { margin: 0; }
.detail-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 0; max-width: 65%; font-size: 11px; text-align: right; word-break: break-word; }
.vehicle-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.vehicle-mini-card { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.012); text-decoration: none; }
.vehicle-mini-card > span:nth-child(2) { min-width: 0; flex: 1; }
.vehicle-mini-card strong, .vehicle-mini-card small { display: block; }
.vehicle-mini-card strong { font-size: 11px; }
.vehicle-mini-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.lock-state { color: var(--orange); font-size: 7px; font-weight: 850; }
.lock-state.locked { color: var(--green); }
.base-list { display: grid; gap: 7px; }
.base-list article { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 9px; }
.base-list strong, .base-list small { display: block; }
.base-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.base-icon { color: var(--accent); }
.base-cell { display: flex; align-items: center; gap: 10px; }
.base-cell strong, .base-cell small { display: block; }
.base-cell small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.base-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.vehicle-detail-symbol { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid rgba(233,185,73,.3); border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 34px; }
.vehicle-detail-symbol.image { flex: 0 0 104px; width: 104px; height: 88px; overflow: hidden; background: radial-gradient(ellipse at 50% 70%, rgba(233,185,73,.22), rgba(233,185,73,.025) 70%); }
.vehicle-detail-symbol.image img { width: 96%; height: 96%; object-fit: contain; filter: drop-shadow(0 9px 9px rgba(0,0,0,.55)); }
.vehicle-detail-hero > div:nth-child(2) { flex: 1; }
.vehicle-detail-badges { display: flex; gap: 7px; }
.owner-card { padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.012); }
.dashboard-date { color: var(--muted); font-size: 10px; }
.quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.quick-actions a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.quick-actions a:hover { transform: translateY(-1px); border-color: rgba(233,185,73,.35); }
.quick-actions a > span:nth-child(2) { flex: 1; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { font-size: 11px; }
.quick-actions small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.quick-actions a > span:last-child { color: var(--accent); }
.quick-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 14px; }
.server-overview, .restart-panel { margin-top: 14px; }
.restart-target { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; }
.restart-target > span:nth-child(2) { flex: 1; }
.restart-target strong, .restart-target small { display: block; }
.restart-target small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.restart-panel p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.restart-button { width: 100%; cursor: pointer; }
.dashboard-logs { margin-top: 14px; }

.squad-information p { margin: 0; color: #c5cdd8; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.economy-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .72fr); gap: 14px; margin-top: 18px; align-items: start; }
.wealth-panel { margin-top: 0; }
.economy-side { display: grid; gap: 10px; }
.economy-side .panel { margin-top: 0; }
.liquidity-total { display: block; margin-top: 4px; color: var(--accent); font-size: 28px; letter-spacing: -.035em; }
.liquidity-card > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.outpost-card { padding: 15px; }
.outpost-card > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.outpost-card > div:first-child strong { font-size: 12px; }
.outpost-index { padding: 4px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 8px; font-weight: 900; }
.outpost-card .detail-list > div { padding: 7px 0; }
.runtime-id { display: block; margin-top: 8px; overflow: hidden; color: var(--muted-2); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.rank-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-weight: 850; }
.gold-value { color: var(--accent); font-weight: 800; }

.stats-grid, .server-grid, .restart-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat-card, .server-card, .restart-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-card span, .server-card small, .restart-card span { display: block; color: var(--muted); font-size: 10px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 26px; }
.server-grid, .restart-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.server-card>strong { display: block; margin-top: 14px; font-size: 28px; }
.server-name { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.status-dot.online { background: var(--green); box-shadow: 0 0 10px rgba(69,212,144,.6); }
.player-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.player-list span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: #b9c1cc; font-size: 9px; }
.restart-card { display: flex; align-items: center; justify-content: space-between; }
.restart-card strong { display: block; margin-bottom: 4px; }
.alert { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.alert-success { border-color: rgba(69,212,144,.3); background: var(--green-soft); color: #bff2d6; }
.alert-error { border-color: rgba(241,109,122,.3); background: var(--red-soft); color: #ffd1d6; }
.danger-button { background: var(--red); color: #21080b; }
.filters { display: flex; gap: 9px; margin-bottom: 16px; }
.filters input, .filters select, .filters button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.filters input { min-width: 280px; }
.filters button { background: var(--accent); color: #18130a; font-weight: 800; cursor: pointer; }
.auth-page { display: grid; place-items: center; width: 100%; min-height: 100vh; padding: 24px; }
.auth-card { max-width: 460px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }

.nav-alert-count, .notification-link [data-alert-count] { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #1e080b; font-size: 8px; font-weight: 900; }
.nav-alert-count { margin-left: auto; }
.notification-link { position: relative; text-decoration: none; }
.notification-link [data-alert-count] { position: absolute; top: -6px; right: -7px; }
.live-indicator.disconnected { color: var(--red); }
.live-indicator.disconnected i { background: var(--red); box-shadow: 0 0 12px rgba(241,109,122,.55); }
.status-badge.critical { border-color: rgba(241,109,122,.25); background: var(--red-soft); color: var(--red); }
.alert-metric strong { color: var(--red); }
.alert-metric::after { background: var(--red-soft); }

.map-console { display: grid; grid-template-columns: 238px minmax(0,1fr); min-height: min(760px, calc(100vh - 165px)); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #080b0f; box-shadow: var(--shadow); }
.map-controls { position: relative; z-index: 4; padding: 18px 14px; overflow-y: auto; border-right: 1px solid var(--line); background: rgba(10,14,19,.98); }
.map-control-section { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); }
.map-control-section:first-child { padding-top: 0; }
.map-control-label { display: block; margin-bottom: 10px; color: #586272; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.map-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.map-search span { color: var(--accent); }
.map-search input { width: 100%; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.layer-toggle { display: flex; align-items: center; gap: 9px; min-height: 34px; cursor: pointer; }
.layer-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.layer-toggle > i { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; opacity: .35; }
.layer-toggle input:checked + i { opacity: 1; background: currentColor; box-shadow: 0 0 10px currentColor; }
.layer-toggle > span { display: flex; flex: 1; align-items: center; justify-content: space-between; color: #bdc5d0; font-size: 10px; }
.layer-toggle small { color: var(--muted); }
.player-layer { color: var(--green); }
.vehicle-layer { color: #79aef7; }
.base-layer { color: var(--accent); }
.alert-layer { color: var(--red); }
.compact-check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; cursor: pointer; }
.compact-check input { accent-color: var(--accent); }
.map-legend { display: grid; gap: 8px; }
.map-style-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.map-style-grid label { cursor: pointer; }
.map-style-grid input { position: absolute; opacity: 0; pointer-events: none; }
.map-style-grid span { display: grid; place-items: center; min-height: 30px; padding: 0 5px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 7px; font-weight: 800; }
.map-style-grid input:checked + span { border-color: rgba(233,185,73,.48); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(233,185,73,.08); }
.map-legend > span:not(.map-control-label) { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.player { background: var(--green); }.legend-dot.vehicle { background: #79aef7; }.legend-dot.base { background: var(--accent); }.legend-dot.alert { background: var(--red); }
.map-source-status { display: flex; align-items: center; gap: 9px; margin: 16px 4px 0; padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.map-source-status strong, .map-source-status small { display: block; }
.map-source-status strong { font-size: 9px; }.map-source-status small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.map-stage { position: relative; min-width: 0; overflow: hidden; background: #06090d; }
.map-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.map-viewport.dragging { cursor: grabbing; }
.map-world { --map-scale: 1; --map-x: 0px; --map-y: 0px; position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 1; transform: translate(calc(-50% + var(--map-x)), calc(-50% + var(--map-y))) scale(var(--map-scale)); transform-origin: center; transition: transform .08s ease-out; user-select: none; }
.map-viewport.dragging .map-world { transition: none; }
.map-world > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.86) contrast(1.04); }
.map-console[data-map-style="topographic"] .map-world > img { filter: saturate(.72) brightness(.78) contrast(1.08); }
.map-console[data-map-style="grey"] .map-world > img { filter: brightness(.72) contrast(1.12); }
.map-world::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 48%, rgba(4,7,10,.34) 100%); }
.sector-grid { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-columns: repeat(5,1fr); grid-template-rows: repeat(5,1fr); pointer-events: none; }
.sector-grid span { display: grid; place-items: start; padding: 7px; border-right: 1px solid rgba(255,255,255,.11); border-bottom: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.42); font-size: 9px; font-weight: 900; text-shadow: 0 1px 4px #000; }
.map-markers { position: absolute; inset: 0; z-index: 2; }
.map-marker { position: absolute; z-index: 3; display: grid; place-items: center; width: 17px; height: 17px; padding: 0; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: #121820; color: #fff; box-shadow: 0 2px 9px rgba(0,0,0,.8); cursor: pointer; }
.map-marker > span { font-size: 7px; line-height: 1; }
.map-marker > small { position: absolute; top: 20px; left: 50%; display: none; max-width: 150px; padding: 4px 6px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.14); border-radius: 5px; background: rgba(5,8,12,.92); color: #fff; font-size: 7px; white-space: nowrap; }
.map-marker:hover, .map-marker.selected { z-index: 12; transform: translate(-50%,-50%) scale(1.3); }
.map-marker:hover > small, .map-marker.selected > small { display: block; }
.map-marker.player.online { border-color: var(--green); background: #153d2c; color: var(--green); }.map-marker.player.offline { border-color: #788495; color: #a6afbc; opacity: .62; }
.map-marker.vehicle { border-color: #79aef7; background: #172a43; color: #9bc3fb; border-radius: 5px; }
.map-marker.base { border-color: var(--accent); background: #423116; color: #f2cc6d; border-radius: 5px; }
.map-marker.alert { width: 22px; height: 22px; border-color: var(--red); background: #561e27; color: #ffd8dc; animation: alertPulse 1.5s infinite; }
@keyframes alertPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(241,109,122,.45); } 50% { box-shadow: 0 0 0 8px rgba(241,109,122,0); } }
.map-toolbar { position: absolute; top: 14px; left: 14px; z-index: 6; display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: rgba(9,13,18,.9); backdrop-filter: blur(10px); }
.map-toolbar button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: var(--surface-3); color: var(--text); cursor: pointer; }
.map-toolbar span { min-width: 46px; align-self: center; color: var(--muted); font-size: 8px; text-align: center; }
.map-loading { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(6,9,13,.78); color: var(--muted); font-size: 11px; backdrop-filter: blur(5px); }
.map-loading[hidden] { display: none; }.map-loading.error { color: var(--red); }
.map-inspector { position: absolute; right: 14px; bottom: 14px; z-index: 7; width: min(310px, calc(100% - 28px)); padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,16,22,.94); box-shadow: 0 18px 60px rgba(0,0,0,.5); backdrop-filter: blur(14px); }
.map-inspector[hidden] { display: none; }.map-inspector > button { position: absolute; top: 10px; right: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.map-inspector h2 { margin: 6px 0; font-size: 20px; }.map-inspector > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.map-inspector .button { width: 100%; margin-top: 12px; }

.timeline-panel { padding: 0; overflow: hidden; }.timeline-panel > .panel-title { padding: 19px 20px 16px; margin: 0; border-bottom: 1px solid var(--line); }
.investigation-timeline { margin: 0; padding: 12px 20px 12px 28px; list-style: none; }
.timeline-event { position: relative; display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 18px; padding: 15px 0 18px 21px; border-left: 1px solid var(--line); }
.timeline-node { position: absolute; top: 20px; left: -5px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 2px var(--line); }
.timeline-event.warning .timeline-node { background: var(--orange); box-shadow: 0 0 0 2px rgba(244,162,97,.25); }.timeline-event.critical .timeline-node { background: var(--red); box-shadow: 0 0 0 2px rgba(241,109,122,.25); }
.timeline-time strong, .timeline-time small { display: block; }.timeline-time strong { font-size: 11px; }.timeline-time small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.timeline-event article { min-width: 0; padding: 13px 15px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.012); }
.timeline-event-head { display: flex; align-items: center; gap: 8px; }.event-type { color: var(--muted); font-family: "Cascadia Code",Consolas,monospace; font-size: 8px; }
.timeline-event h3 { margin: 8px 0 4px; font-size: 13px; }.timeline-event p { margin: 0; color: #aab3c0; font-size: 10px; line-height: 1.6; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 10px; }.timeline-meta a, .timeline-meta span { color: var(--muted); font-size: 8px; text-decoration: none; }.timeline-meta a:hover { color: var(--accent); }
.timeline-empty span { color: var(--muted); font-size: 32px; }.timeline-empty h3 { margin: 10px 0 2px; }.timeline-empty p { margin: 0; color: var(--muted); font-size: 10px; }

.alert-feed { display: grid; gap: 10px; margin-top: 18px; }.alert-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 15px; padding: 17px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 12px; background: linear-gradient(145deg,rgba(18,23,31,.98),rgba(13,17,23,.98)); }
.alert-card.critical { border-left-color: var(--red); }.alert-card-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--orange-soft); color: var(--orange); font-weight: 900; }.alert-card.critical .alert-card-icon { background: var(--red-soft); color: var(--red); }
.alert-card-head { display: flex; align-items: center; gap: 8px; }.alert-card-head time { margin-left: auto; color: var(--muted); font-size: 8px; }.alert-card h2 { margin: 8px 0 4px; font-size: 15px; }.alert-card-body > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.alert-evidence { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.012); }.alert-evidence strong, .alert-evidence span { display: block; }.alert-evidence strong { color: var(--accent); font-size: 8px; }.alert-evidence span { margin-top: 4px; color: #aeb7c4; font-size: 9px; }
.alert-actions { display: flex; min-width: 130px; align-items: flex-end; flex-direction: column; justify-content: center; gap: 7px; }.alert-actions .button { width: 100%; }
.empty-icon.healthy { background: var(--green-soft); color: var(--green); }

/* Player UCP */
.ucp-body { background: radial-gradient(circle at 76% -10%, rgba(233,185,73,.09), transparent 32%), radial-gradient(circle at 20% 110%, rgba(69,212,144,.035), transparent 28%), var(--bg); }
.ucp-sidebar { background: linear-gradient(180deg, rgba(12,15,20,.99), rgba(8,11,15,.99)); }
.ucp-sidebar .primary-nav a.active { background: linear-gradient(90deg, rgba(233,185,73,.14), rgba(233,185,73,.045)); }
.player-server { border-color: rgba(69,212,144,.16); }
.ucp-topbar { justify-content: space-between; }
.ucp-page-context small, .ucp-page-context strong { display: block; }
.ucp-page-context small { color: var(--muted-2); font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.ucp-page-context strong { margin-top: 3px; font-size: 12px; }
.ucp-content { max-width: 1460px; }

.ucp-auth-page { position: relative; overflow-x: hidden; background: radial-gradient(circle at 50% 0, rgba(233,185,73,.12), transparent 33%), var(--bg); }
.ucp-auth-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.ucp-auth-card { position: relative; width: min(100%, 540px); max-width: 540px; padding: 44px; background: linear-gradient(145deg, rgba(18,23,31,.98), rgba(10,13,18,.98)); box-shadow: 0 28px 90px rgba(0,0,0,.42); text-align: left; }
.auth-brand { width: max-content; margin-bottom: 42px; }
.ucp-auth-card h1 { margin: 8px 0 10px; font-size: clamp(30px, 7vw, 43px); line-height: 1.02; letter-spacing: -.045em; }
.auth-lead { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-provider-list { display: grid; gap: 10px; }
.auth-provider { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; min-height: 70px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); text-decoration: none; transition: .16s ease; }
.auth-provider:hover { transform: translateY(-1px); border-color: #465164; background: rgba(255,255,255,.035); }
.auth-provider.steam:hover { border-color: rgba(102,192,244,.46); }
.auth-provider.discord:hover { border-color: rgba(88,101,242,.62); }
.provider-mark, .account-provider { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; font-weight: 900; }
.auth-provider.steam .provider-mark, .account-provider.steam { background: linear-gradient(135deg, #25384b, #111b27); color: #66c0f4; }
.auth-provider.discord .provider-mark, .account-provider.discord { background: rgba(88,101,242,.16); color: #9ca5ff; }
.auth-provider strong, .auth-provider small { display: block; }
.auth-provider strong { font-size: 13px; }
.auth-provider small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.auth-provider > span:last-child { color: var(--muted); }
.auth-note { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.auth-note > span { display: grid; flex: 0 0 auto; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 900; }
.auth-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.admin-entry { display: block; margin-top: 20px; color: var(--muted-2); font-size: 9px; text-align: center; text-decoration: none; }
.admin-entry:hover { color: var(--accent); }
.link-card { text-align: center; }
.link-card .eyebrow { display: block; }
.link-card .auth-provider { text-align: left; }
.link-card .empty-icon { margin: 0 auto 22px; }
.primary-link { margin-top: 6px; }
.link-progress { display: flex; align-items: center; width: 110px; margin: 0 auto 34px; }
.link-progress span { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(233,185,73,.38); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 900; }
.link-progress span.done { border-color: rgba(69,212,144,.3); background: var(--green-soft); color: var(--green); }
.link-progress i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--green), var(--accent)); }

.ucp-welcome { position: relative; display: flex; min-height: 230px; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; padding: 36px 38px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(circle at 82% 45%, rgba(233,185,73,.15), transparent 24%), linear-gradient(135deg, #141922, #0c1016); box-shadow: var(--shadow); }
.ucp-welcome::after { content: ""; position: absolute; right: -70px; width: 360px; height: 360px; border: 1px solid rgba(233,185,73,.09); border-radius: 50%; box-shadow: 0 0 0 45px rgba(233,185,73,.025), 0 0 0 90px rgba(233,185,73,.018); }
.ucp-welcome > div { position: relative; z-index: 1; }
.ucp-welcome h1 { margin: 7px 0 7px; font-size: clamp(32px,4vw,48px); letter-spacing: -.045em; }
.ucp-welcome p { max-width: 650px; margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.survivor-emblem { display: grid; flex: 0 0 auto; place-items: center; width: 124px; height: 124px; border: 1px solid rgba(233,185,73,.24); border-radius: 32px; background: linear-gradient(145deg, rgba(233,185,73,.16), rgba(233,185,73,.03)); box-shadow: inset 0 0 40px rgba(233,185,73,.04), 0 18px 50px rgba(0,0,0,.28); }
.survivor-emblem span { color: var(--accent); font-size: 45px; font-weight: 900; }
.survivor-emblem small { margin-top: -24px; color: var(--muted); font-size: 7px; letter-spacing: .12em; }
.ucp-metrics { margin-top: 14px; }
.ucp-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.75fr); gap: 14px; }
.attention-count { display: grid !important; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--orange-soft); color: var(--orange) !important; font-size: 10px !important; font-weight: 900; }
.attention-list { display: grid; gap: 8px; }
.attention-list a, .all-good { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; color: inherit; text-decoration: none; }
.attention-list a:hover { border-color: rgba(233,185,73,.25); background: rgba(255,255,255,.016); }
.attention-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 900; }
.attention-icon.warning { background: var(--orange-soft); color: var(--orange); }
.attention-list strong, .attention-list small, .all-good strong, .all-good small { display: block; }
.attention-list strong, .all-good strong { font-size: 11px; }
.attention-list small, .all-good small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.all-good > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-weight: 900; }
.ucp-server-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.ucp-server-row:first-of-type { border-top: 0; }
.ucp-server-row strong, .ucp-server-row small { display: block; }
.ucp-server-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.ucp-server-row > strong { color: var(--accent); font-size: 20px; }
.ucp-server-row > strong small { display: inline; }
.ucp-quick-actions { grid-template-columns: repeat(4,minmax(0,1fr)); }

.ucp-stat-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.ucp-stat-list > div { align-items: flex-start; flex-direction: column; gap: 7px; padding: 6px 18px; border-bottom: 0; border-left: 1px solid var(--line-soft); }
.ucp-stat-list > div:first-child { border-left: 0; padding-left: 0; }
.ucp-stat-list dd { font-size: 17px; }
.asset-section { margin-top: 14px; }
.ucp-vehicle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.ucp-vehicle-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.012); }
.vehicle-art { display: grid; height: 128px; place-items: center; background: radial-gradient(circle at 50% 75%, rgba(233,185,73,.15), transparent 55%), #0b0f14; }
.vehicle-art img { width: 85%; height: 110px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.5)); }
.vehicle-art > span { color: var(--accent); font-size: 35px; }
.vehicle-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 14px 8px; }
.vehicle-card-heading strong, .vehicle-card-heading small { display: block; }
.vehicle-card-heading strong { font-size: 12px; }
.vehicle-card-heading small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.ucp-vehicle-card .detail-list { padding: 0 14px 11px; }
.warning-text { color: var(--orange); }
.vehicle-limit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.managed-vehicle-grid { align-items: stretch; }
.managed-vehicle-card { display: flex; flex-direction: column; }
.vehicle-live-state { display: flex; min-height: 31px; align-items: center; justify-content: space-between; gap: 8px; margin: 0 14px; padding: 8px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 8px; }
.vehicle-live-state > span:first-child { display: flex; align-items: center; gap: 6px; }
.vehicle-live-state i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.vehicle-live-state i.online { background: var(--green); box-shadow: 0 0 8px rgba(69,212,144,.55); }
.vehicle-live-state i.offline { background: var(--muted-2); }
.vehicle-facts { border-bottom: 1px solid var(--line-soft); }
.insurance-state { display: flex; align-items: center; gap: 10px; margin: 12px 14px 0; padding: 11px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.012); }
.insurance-state.insured { border-color: rgba(69,212,144,.2); background: var(--green-soft); }
.insurance-icon { display: grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.insurance-state.insured .insurance-icon { background: rgba(69,212,144,.16); color: var(--green); }
.insurance-state strong, .insurance-state small { display: block; }
.insurance-state strong { font-size: 10px; }
.insurance-state small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.vehicle-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; margin: auto 14px 0; padding-top: 12px; }
.vehicle-actions form, .vehicle-actions button { width: 100%; }
.vehicle-actions .danger-button { min-width: 64px; }
.vehicle-actions button:disabled, .claim-list button:disabled { opacity: .42; cursor: not-allowed; }
.vehicle-blocked-reason { min-height: 30px; margin: 8px 14px 13px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.claim-section { border-color: rgba(244,162,97,.2); }
.claim-list { display: grid; gap: 8px; }
.claim-list article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 9px; }
.claim-list strong, .claim-list small, .claim-list em { display: block; }
.claim-list strong { font-size: 11px; }
.claim-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.claim-list em { margin-top: 5px; color: var(--orange); font-size: 8px; font-style: normal; }

.ucp-map-console { min-height: min(720px,calc(100vh - 180px)); }
.operations-hero { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(260px,.58fr); align-items: center; gap: 22px; margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 12% 30%,rgba(233,185,73,.08),transparent 28%),var(--surface); box-shadow: var(--shadow); }
.operations-hero h2 { margin: 5px 0 7px; font-size: 22px; }.operations-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.readiness-ring,.achievement-completion-ring { --ring-color: var(--green); position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--ring-color) calc(var(--readiness, var(--completion)) * 1%),var(--surface-3) 0); box-shadow: 0 0 28px color-mix(in srgb,var(--ring-color) 18%,transparent); }
.readiness-ring::before,.achievement-completion-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.readiness-ring > span,.achievement-completion-ring > span { position: relative; z-index: 1; text-align: center; }.readiness-ring strong,.achievement-completion-ring strong { display: block; font-size: 23px; }.readiness-ring small,.achievement-completion-ring small { color: var(--muted); font-size: 8px; }
.readiness-ring.warning { --ring-color: var(--orange); }.readiness-ring.critical { --ring-color: var(--red); }
.operation-telemetry { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.015); }
.operation-telemetry div { min-width: 0; padding: 12px; border-left: 1px solid var(--line-soft); }.operation-telemetry div:first-child { border-left: 0; }.operation-telemetry dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }.operation-telemetry dd { margin: 5px 0 0; overflow: hidden; color: var(--text); font-size: 10px; font-weight: 800; text-overflow: ellipsis; }
.operations-metrics { margin-top: 12px; }.operations-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }.operations-grid > .panel { margin-top: 14px; }
.operation-task-list,.personal-event-list { display: grid; gap: 8px; }
.operation-task { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; color: var(--text); text-decoration: none; transition: border-color .15s ease,transform .15s ease; }.operation-task:hover { border-color: rgba(233,185,73,.3); transform: translateY(-1px); }.operation-task.critical { border-color: rgba(239,86,101,.18); }.operation-task strong,.operation-task small { display: block; }.operation-task strong { font-size: 10px; }.operation-task small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.45; }.operation-task em { color: var(--accent); font-size: 8px; font-style: normal; white-space: nowrap; }
.personal-event-list article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }.personal-event-list article:last-child { border-bottom: 0; }.personal-event-list i { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: #738094; }.personal-event-list i.warning { background: var(--orange); }.personal-event-list i.critical { background: var(--red); box-shadow: 0 0 8px rgba(239,86,101,.45); }.personal-event-list strong,.personal-event-list small { display: block; }.personal-event-list strong { font-size: 9px; }.personal-event-list small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }.personal-event-list time { color: var(--muted-2); font-size: 7px; white-space: nowrap; }

.ucp-economy-grid { display: grid; grid-template-columns: minmax(300px,.75fr) minmax(0,1.35fr); gap: 14px; }.ucp-economy-grid > .panel { margin-top: 14px; }
.wealth-stack { display: grid; gap: 9px; }.wealth-stack article { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 9px; }.wealth-stack strong,.wealth-stack small { display: block; }.wealth-stack strong { font-size: 12px; }.wealth-stack small { margin-top: 3px; color: var(--muted); font-size: 8px; }.wealth-icon { display: grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 900; }.wealth-icon.gold { background: rgba(233,185,73,.15); }.wealth-icon.assets { background: rgba(121,174,247,.1); color: #9bc3fb; }
.economy-period-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }.economy-period-summary > span { padding: 11px; border: 1px solid var(--line-soft); border-radius: 9px; }.economy-period-summary small,.economy-period-summary strong { display: block; }.economy-period-summary small { color: var(--muted); font-size: 7px; }.economy-period-summary strong { margin-top: 5px; font-size: 13px; }
.positive { color: var(--green)!important; }.negative { color: var(--red)!important; }
.economy-change-list { display: grid; }.economy-change-list article { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }.economy-change-list article:last-child { border-bottom: 0; }.economy-change-list strong,.economy-change-list small { display: block; }.economy-change-list > article > span:nth-child(2) strong { font-size: 9px; }.economy-change-list > article > span:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 7px; }.economy-change-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-weight: 900; }.economy-change-icon.out { background: rgba(239,86,101,.1); color: var(--red); }.economy-deltas { text-align: right; }.economy-deltas strong { font-size: 9px; }.economy-deltas small { margin-top: 4px; font-size: 7px; }

.achievement-profile-hero { align-items: center; }.achievement-completion { display: flex; align-items: center; gap: 14px; }.achievement-completion-ring { --ring-color: var(--accent); --readiness: var(--completion); width: 82px; height: 82px; }.achievement-completion > div:last-child > small,.achievement-completion > div:last-child > strong,.achievement-completion > div:last-child > span { display: block; }.achievement-completion > div:last-child > small { color: var(--muted); font-size: 7px; }.achievement-completion > div:last-child > strong { margin-top: 4px; color: var(--accent); font-size: 22px; }.achievement-completion > div:last-child > span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }.achievement-card { position: relative; padding: 14px; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255,255,255,.012); opacity: .72; }.achievement-card.completed { border-color: rgba(69,212,144,.2); background: linear-gradient(145deg,rgba(69,212,144,.065),rgba(255,255,255,.012)); opacity: 1; }.achievement-card.epic.completed { border-color: rgba(174,125,255,.28); background: linear-gradient(145deg,rgba(139,92,246,.09),rgba(255,255,255,.012)); }.achievement-card-head { display: flex; align-items: center; gap: 8px; }.achievement-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--surface-3); color: var(--accent); font-size: 14px; }.achievement-tier { color: var(--muted); font-size: 7px; font-weight: 900; letter-spacing: .12em; }.achievement-card.epic .achievement-tier { color: #ae8bff; }.achievement-card.rare .achievement-tier { color: #79aef7; }.achievement-check { margin-left: auto; color: var(--green); font-size: 13px; }.achievement-card h3 { margin: 11px 0 5px; font-size: 11px; }.achievement-card p { min-height: 28px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }.achievement-progress { height: 4px; margin-top: 12px; overflow: hidden; border-radius: 10px; background: var(--surface-3); }.achievement-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }.achievement-card.completed .achievement-progress span { background: var(--green); }.achievement-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }.achievement-progress-label strong { font-size: 8px; }.achievement-progress-label small { color: var(--muted); font-size: 7px; text-align: right; }

.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.service-card { display: flex; min-height: 235px; flex-direction: column; margin: 0; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.service-card h2 { margin: 18px 0 7px; font-size: 16px; }
.service-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.service-card code { width: max-content; margin-top: auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #090c11; color: #bec7d3; font-size: 9px; }
.service-card .status-badge { width: max-content; margin-top: 9px; }

.support-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 14px; }
.support-primary { margin: 18px 0 0; padding: 28px; background: radial-gradient(circle at 95% 10%, rgba(233,185,73,.15), transparent 35%), var(--surface); }
.support-primary h2 { margin: 18px 0 7px; font-size: 22px; }
.support-primary p { max-width: 650px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.support-primary > small { display: block; margin-top: 16px; color: var(--muted-2); font-size: 8px; }
.support-glyph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 18px; font-weight: 900; }
.support-links { display: grid; }
.support-links a { display: flex; justify-content: space-between; padding: 14px 2px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }

.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.connected-account { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: flex-start; gap: 16px; min-height: 180px; margin: 0; padding: 24px; }
.connected-account h2 { margin: 10px 0 4px; }
.connected-account p { margin: 0 0 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.connected-account small { color: var(--muted-2); font-size: 8px; }
.account-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; }
.account-connect { margin-top: 12px; }
.account-security { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-security > div { display: flex; align-items: center; gap: 12px; }
.account-security strong, .account-security small { display: block; }
.account-security small { max-width: 700px; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.secondary-button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }

.sidebar-backdrop { display: none; }
@media (max-width: 1050px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .icon-button.sidebar-close, .menu-button { display: grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .workspace { margin-left: 0; }
  .metric-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content { padding: 28px 24px 48px; }
  .map-console { grid-template-columns: 205px minmax(0,1fr); }
}
@media (max-width: 760px) {
  .topbar { height: 62px; padding: 0 16px; }
  .global-search { width: auto; flex: 1; }
  .global-search kbd, .live-indicator { display: none; }
  .content { padding: 24px 14px 40px; }
  .split-heading, .profile-hero, .vehicle-detail-hero { align-items: stretch; flex-direction: column; }
  .data-freshness { min-width: 0; }
  .metric-grid, .stats-grid, .server-grid, .restart-grid, .details-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-search { min-width: 0; }
  .filter-bar select { max-width: none; }
  .profile-activity { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .vehicle-card-grid { grid-template-columns: 1fr; }
  .quick-actions, .dashboard-grid, .economy-layout { grid-template-columns: 1fr; }
  .map-console { grid-template-columns: 1fr; min-height: 820px; }
  .map-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; max-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .map-stage { min-height: 570px; }
  .timeline-event { grid-template-columns: 1fr; gap: 6px; }
  .timeline-time { display: flex; gap: 8px; align-items: center; }
  .timeline-time small { margin: 0; }
  .alert-card { grid-template-columns: auto minmax(0,1fr); }
  .alert-actions { grid-column: span 2; min-width: 0; align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .alert-actions .button { width: auto; flex: 1; }
  .ucp-dashboard-grid, .support-grid { grid-template-columns: 1fr; }
  .operations-hero { grid-template-columns: auto minmax(0,1fr); }.operation-telemetry { grid-column: span 2; }
  .operations-grid,.ucp-economy-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: 1fr 1fr; }
  .ucp-quick-actions, .ucp-vehicle-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-limit-grid { grid-template-columns: 1fr 1fr; }
  .ucp-stat-list { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ucp-stat-list > div { border-left: 0; padding: 6px 0; }
}
@media (max-width: 520px) {
  .metric-grid, .stats-grid, .server-grid, .restart-grid, .details-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .profile-identity { align-items: flex-start; }
  .profile-avatar { width: 52px; height: 52px; border-radius: 14px; }
  .profile-title-line { align-items: flex-start; flex-direction: column; gap: 6px; }
  .base-list article { grid-template-columns: auto 1fr; }
  .base-list article > span:nth-last-child(-n+2) { display: none; }
  .filters { flex-direction: column; }
  .filters input { min-width: 0; }
  .map-controls { grid-template-columns: 1fr; max-height: 300px; }
  .map-stage { min-height: 480px; }
  .investigation-timeline { padding-left: 18px; padding-right: 10px; }
  .timeline-event { padding-left: 14px; }
  .alert-card { grid-template-columns: 1fr; }
  .alert-card-icon { display: none; }
  .alert-actions { grid-column: auto; }
  .ucp-auth-card { padding: 30px 20px; }
  .ucp-welcome { min-height: 0; padding: 28px 22px; }
  .survivor-emblem { display: none; }
  .ucp-quick-actions, .ucp-vehicle-grid, .service-grid, .account-grid, .ucp-stat-list { grid-template-columns: 1fr; }
  .vehicle-limit-grid { grid-template-columns: 1fr; }
  .operations-hero { grid-template-columns: 1fr; text-align: center; }.readiness-ring { margin: auto; }.operation-telemetry { grid-column: auto; }.operation-task { grid-template-columns: auto minmax(0,1fr); }.operation-task em { grid-column: 2; }.achievement-completion { margin-top: 18px; }.achievement-grid { grid-template-columns: 1fr; }.ucp-economy-grid { grid-template-columns: 1fr; }.economy-period-summary { grid-template-columns: 1fr; }
  .claim-list article { grid-template-columns: auto minmax(0,1fr); }
  .claim-list form { grid-column: span 2; }
  .connected-account { grid-template-columns: auto minmax(0,1fr); }
  .connected-account .account-check { display: none; }
  .account-security { align-items: stretch; flex-direction: column; }
}
