.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--blue-600), #4f8cf7); color: #fff; font-size: 23px; box-shadow: 0 8px 16px rgba(37,99,235,.22); }
.brand b { display: block; font-size: 17px; letter-spacing: -.02em; }
.brand small, .profile small { display: block; margin-top: 2px; color: var(--ink-500); font-size: 11px; }
.nav-groups { flex: 1; padding: 18px 12px; overflow-y: auto; }
.nav-groups > div + div { margin-top: 22px; }
.nav-groups p { margin: 0 12px 7px; color: var(--ink-500); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 42px; margin: 2px 0; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink-700); font-size: 14px; font-weight: 600; }
.nav-item:hover { background: var(--surface-muted); color: var(--blue-700); }
.nav-item-active { background: var(--blue-600); color: #fff; box-shadow: 0 5px 12px rgba(37,99,235,.2); }
.nav-item-active:hover { background: var(--blue-700); color: #fff; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.sidebar-footer { margin: 12px; padding: 11px 12px; border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--ink-500); font-size: 11px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green-600); }
.main-content { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 32px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.breadcrumb { color: var(--ink-500); font-size: 13px; }.breadcrumb strong { color: var(--ink-950); }
.topbar__tools { display: flex; align-items: center; gap: 12px; }.icon-button { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-700); }.icon-button:hover { background: var(--surface-muted); color: var(--blue-700); }
.tenant-switch, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: #fff; color: var(--ink-700); font-size: 13px; font-weight: 700; }.tenant-switch .icon { width: 15px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #d9e9ff; color: var(--blue-700); font-size: 12px; font-weight: 800; }.profile b { font-size: 12px; }.page-content { max-width: 1680px; padding: 30px 32px 48px; margin: 0 auto; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }.page-header p { margin: 0 0 5px; color: var(--blue-700); font-size: 12px; font-weight: 800; letter-spacing: .08em; }.page-header h1 { margin: 0; font-size: 28px; letter-spacing: -.035em; }.page-header span { display: block; margin-top: 8px; color: var(--ink-500); font-size: 13px; }.page-header__actions { display: flex; gap: 8px; }
.button-primary { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }.button-primary:hover { background: var(--blue-700); }.button-secondary:hover { border-color: #b9c9df; background: var(--surface-muted); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }.search-field { display: flex; align-items: center; min-width: 260px; flex: 1 1 280px; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-500); }.search-field input { min-width: 0; width: 100%; height: 36px; border: 0; outline: none; color: var(--ink-950); }.filter-bar select { min-height: 38px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink-700); font-size: 13px; }.filter-static { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--ink-700); font-size: 12px; font-weight: 700; }.filter-static .icon { width: 16px; color: var(--ink-500); }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }.metric-card { min-height: 130px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }.metric-card__meta { display: flex; align-items: center; justify-content: space-between; color: var(--ink-700); font-size: 12px; font-weight: 800; }.metric-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); }.metric-card strong { display: block; margin: 14px 0 8px; font-size: 27px; letter-spacing: -.04em; }.metric-card strong small { margin-left: 3px; font-size: 12px; font-weight: 700; letter-spacing: 0; }.metric-card p { margin: 0; color: var(--ink-500); font-size: 11px; line-height: 1.45; }.metric-green .metric-dot { background: var(--green-600); }.metric-amber .metric-dot { background: var(--amber-600); }.metric-red .metric-dot { background: var(--red-500); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); gap: 18px; margin-bottom: 18px; }.content-grid-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }.panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }.panel h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }.panel__heading > div > span { display: block; margin-top: 4px; color: var(--ink-500); font-size: 12px; }.static-setting { display: grid; gap: 7px; padding: 2px 0; color: var(--ink-700); font-size: 13px; }.static-setting strong { color: var(--ink-950); }.static-setting span { color: var(--ink-500); font-size: 12px; }
.chart-wrap { min-width: 0; overflow: hidden; }.line-chart { width: 100%; min-height: 220px; }.chart-axis { fill: var(--ink-500); font-size: 10px; }.chart-grid { stroke: #edf1f7; stroke-width: 1; }.chart-line { fill: none; stroke: var(--blue-600); stroke-width: 3; }.chart-area { fill: url(#area-gradient); }.bar-track { height: 10px; overflow: hidden; border-radius: 20px; background: #edf2f8; }.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), #76a8ff); }.rank-row, .region-row { display: grid; grid-template-columns: minmax(85px, 1fr) 80px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef2f7; font-size: 12px; }.rank-row:last-child, .region-row:last-child { border-bottom: 0; }.rank-row strong, .region-row strong { text-align: right; }.region-map { display: grid; min-height: 240px; place-items: center; border-radius: var(--radius-sm); background: radial-gradient(circle at 70% 28%, #d9e9ff 0 8%, transparent 8.5%), radial-gradient(circle at 30% 70%, #a9ccff 0 7%, transparent 7.5%), linear-gradient(135deg, #f2f7ff, #edf4ff); color: var(--blue-700); font-size: 14px; font-weight: 800; }
.table-scroll { overflow-x: auto; }.data-table { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 13px; }.data-table th { padding: 12px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f2f6fd; color: var(--ink-700); font-size: 11px; text-align: left; white-space: nowrap; }.data-table th:first-child { border-left: 1px solid var(--line); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }.data-table th:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }.data-table td { padding: 14px; border-bottom: 1px solid #e9eff7; color: var(--ink-700); white-space: nowrap; }.data-table tr:hover td { background: #f8faff; }.data-table td strong { color: var(--ink-950); }.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }.table-action { border: 0; background: none; color: var(--blue-700); font-weight: 800; }.status-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status-success { background: var(--green-100); color: var(--green-600); }.status-notice { background: var(--amber-100); color: var(--amber-600); }.status-neutral { background: #eef2f7; color: var(--ink-700); }
.notice-strip { display: flex; align-items: center; gap: 9px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid #f0d9b4; border-radius: var(--radius-sm); background: #fffaf0; color: #81500d; font-size: 12px; }.notice-strip .icon { width: 16px; }
.tree { margin: 0; padding: 0; list-style: none; }.tree li { position: relative; padding: 9px 0 9px 24px; color: var(--ink-700); font-size: 13px; }.tree li::before { position: absolute; left: 0; top: 14px; width: 12px; height: 12px; border: 2px solid #96b8f5; border-radius: 50%; content: ''; }.tree li:nth-child(n+2) { margin-left: 22px; }.tree li b { color: var(--ink-950); }.tree small { display: block; margin-top: 3px; color: var(--ink-500); }
.drawer-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(16,35,60,.35); }.drawer { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(520px, 96vw); overflow-y: auto; background: #fff; box-shadow: -14px 0 30px rgba(16,35,60,.16); }.drawer__header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }.drawer__header p { margin: 0 0 4px; color: var(--blue-700); font-size: 12px; font-weight: 800; }.drawer__header h2 { margin: 0; font-size: 21px; }.drawer__body { padding: 22px 24px; }.drawer__body section + section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }.drawer h3 { margin: 0 0 12px; font-size: 14px; }.detail-grid { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; margin: 0; font-size: 12px; }.detail-grid dt { color: var(--ink-500); }.detail-grid dd { margin: 0; color: var(--ink-950); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }.timeline { margin: 0; padding: 0; list-style: none; }.timeline li { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--ink-700); font-size: 13px; }.timeline li i { width: 10px; height: 10px; border: 2px solid #a8b8ca; border-radius: 50%; background: #fff; }.timeline-current { color: var(--blue-700) !important; font-weight: 800; }.timeline-current i { border-color: var(--blue-600); background: var(--blue-600); }.toast { position: fixed; z-index: 40; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--ink-950); color: #fff; box-shadow: var(--shadow); font-size: 13px; }.empty-state { display: grid; min-height: 300px; place-items: center; align-content: center; border: 1px dashed #b9c9df; border-radius: var(--radius-md); background: #fff; text-align: center; }.empty-state h1 { margin: 0; font-size: 21px; }.empty-state p { color: var(--ink-500); }
@media (max-width: 1300px) { .metric-grid { grid-template-columns: repeat(3, 1fr); }.content-grid { grid-template-columns: 1fr; }.profile { display: none; } }
@media (max-width: 900px) { .sidebar { position: static; width: 100%; min-height: auto; }.brand { min-height: 60px; }.nav-groups { display: flex; gap: 12px; padding: 8px 12px; overflow-x: auto; }.nav-groups > div { display: flex; gap: 4px; align-items: center; }.nav-groups > div + div { margin: 0; }.nav-groups p { display: none; }.nav-item { margin: 0; white-space: nowrap; }.sidebar-footer { display: none; }.main-content { margin-left: 0; }.topbar { min-height: 60px; padding: 0 16px; }.breadcrumb { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.tenant-switch { display: none; }.page-content { padding: 22px 16px 32px; }.metric-grid { grid-template-columns: repeat(2, 1fr); }.page-header { align-items: flex-start; flex-direction: column; }.content-grid-equal { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .metric-grid { grid-template-columns: 1fr; }.topbar__tools { gap: 4px; }.avatar { display: none; }.search-field { min-width: 100%; }.page-header h1 { font-size: 24px; } }

.panel__meta { color: var(--ink-500); font-size: 12px; font-weight: 500; }

.country-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: stretch; }
.country-map { min-width: 0; padding: 12px; border: 1px solid #dce8f8; border-radius: var(--radius-sm); background: linear-gradient(145deg, #f8fbff, #edf5ff); }
.country-map__canvas { display: grid; min-height: 360px; place-items: center; overflow: hidden; border-radius: 8px; background: #eaf3ff; }
.country-map__canvas svg { display: block; width: 100%; height: auto; max-height: 440px; }
.country-map__country { fill: #d5dfec; stroke: #fff; stroke-width: .8; vector-effect: non-scaling-stroke; }
.country-map__country--active { fill: #4b8af2; cursor: pointer; }
.country-map__country--active:hover, .country-map__country--selected { fill: #1558c0; stroke: #0e3f8d; stroke-width: 1.3; }
.country-map__country:focus { outline: none; stroke: #102a56; stroke-width: 2; }
.country-map__loading, .country-map__error { color: var(--ink-500); font-size: 13px; }
.country-map__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--ink-500); font-size: 11px; }
.country-map__legend span { display: inline-flex; align-items: center; gap: 6px; }
.country-map__legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #4b8af2; }
.country-map__legend-dot--plain { background: #d5dfec; }
.country-map__detail { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f9fbfe; }
.country-map__detail p { margin: 0 0 5px; color: var(--ink-500); font-size: 12px; }
.country-map__detail > strong { display: block; margin-bottom: 16px; color: var(--ink-950); font-size: 19px; }
.country-map__detail dl { display: grid; gap: 9px; margin: 0; }
.country-map__detail dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #e6edf7; }
.country-map__detail dt { color: var(--ink-500); font-size: 12px; }
.country-map__detail dd { margin: 0; color: var(--ink-950); font-size: 12px; font-weight: 800; }
.country-map__detail small { display: block; margin-top: 16px; color: var(--ink-500); font-size: 11px; line-height: 1.55; }

.metric-granularity { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-500); font-size: 12px; }.metric-granularity__label { margin-right: 4px; }.metric-granularity__option { min-width: 28px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); color: var(--ink-500); text-align: center; font-weight: 700; }.metric-granularity__option-active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }

@media (max-width: 1300px) { .country-map-layout { grid-template-columns: 1fr; } }
