:root {
    --cp-bg: #080c14;
    --cp-header: rgba(10, 15, 24, 0.92);
    --cp-surface: rgba(16, 21, 30, 0.9);
    --cp-surface-solid: #10151e;
    --cp-inset: rgba(100, 116, 139, 0.06);
    --cp-border: rgba(100, 116, 139, 0.18);
    --cp-hair: rgba(100, 116, 139, 0.15);
    --cp-hair-soft: rgba(100, 116, 139, 0.08);
    --cp-field: #0e1420;
    --cp-field-border: rgba(100, 116, 139, 0.3);
    --cp-white: #ffffff;
    --cp-body: #e2e8f0;
    --cp-soft: #cbd5e1;
    --cp-muted: #94a3b8;
    --cp-dim: #7c8799;
    --cp-accent: #00e5ff;
    --cp-cyan: #22d3ee;
    --cp-red: #ef4444;
    --cp-amber: #f59e0b;
    --cp-green: #22c55e;
    --cp-slate: #64748b;
}

.cp-root {
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: radial-gradient(900px 340px at 50% -90px, rgba(0, 229, 255, 0.07), rgba(0, 229, 255, 0) 70%), var(--cp-bg);
    color: var(--cp-white);
    font-family: Inter, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
}

.cp-root *,
.cp-root *::before,
.cp-root *::after {
    box-sizing: border-box;
}

.cp-root button {
    font-family: inherit;
}

.cp-main {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 32px 40px;
}

.cp-tone-red { --tone: #ef4444; --tone-bg: rgba(239, 68, 68, 0.12); --tone-line: rgba(239, 68, 68, 0.4); }
.cp-tone-amber { --tone: #f59e0b; --tone-bg: rgba(245, 158, 11, 0.12); --tone-line: rgba(245, 158, 11, 0.4); }
.cp-tone-cyan { --tone: #22d3ee; --tone-bg: rgba(34, 211, 238, 0.12); --tone-line: rgba(34, 211, 238, 0.4); }
.cp-tone-accent { --tone: #00e5ff; --tone-bg: rgba(0, 229, 255, 0.12); --tone-line: rgba(0, 229, 255, 0.4); }
.cp-tone-green { --tone: #22c55e; --tone-bg: rgba(34, 197, 94, 0.12); --tone-line: rgba(34, 197, 94, 0.4); }
.cp-tone-slate { --tone: #94a3b8; --tone-bg: rgba(100, 116, 139, 0.15); --tone-line: rgba(100, 116, 139, 0.3); }

.cp-t { color: var(--tone, var(--cp-body)); }
.cp-t-white { color: var(--cp-white); }
.cp-t-body { color: var(--cp-body); }
.cp-t-soft { color: var(--cp-soft); }
.cp-t-muted { color: var(--cp-muted); }
.cp-t-dim { color: var(--cp-dim); }
.cp-fw-5 { font-weight: 500; }
.cp-fw-6 { font-weight: 600; }
.cp-fs-11 { font-size: 11px; line-height: 16px; }
.cp-fs-12 { font-size: 12px; line-height: 18px; }
.cp-fs-13 { font-size: 13px; line-height: 20px; }
.cp-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cp-right { text-align: right; }
.cp-center { text-align: center; }
.cp-flex { display: flex; align-items: center; }
.cp-flex-wrap { flex-wrap: wrap; }
.cp-gap-6 { gap: 6px; }
.cp-gap-8 { gap: 8px; }
.cp-gap-12 { gap: 12px; }
.cp-gap-16 { gap: 16px; }
.cp-grow { flex: 1; min-width: 0; }
.cp-ml-auto { margin-left: auto; }
.cp-mt-4 { margin-top: 4px; }
.cp-mt-8 { margin-top: 8px; }
.cp-mt-12 { margin-top: 12px; }
.cp-mb-16 { margin-bottom: 16px; }
.cp-mb-20 { margin-bottom: 20px; }
.cp-stack { display: flex; flex-direction: column; gap: 20px; }
.cp-stack-16 { display: flex; flex-direction: column; gap: 16px; }

.cp-header {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
    padding: 0 32px;
    flex-shrink: 0;
    background: var(--cp-header);
    border-bottom: 1px solid var(--cp-border);
}

.cp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.cp-brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    border: 2px solid var(--cp-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cp-brand-mark::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--cp-accent);
}

.cp-brand-name {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.08em;
}

.cp-brand-div {
    width: 1px;
    height: 18px;
    background: rgba(100, 116, 139, 0.35);
    margin: 0 4px;
}

.cp-brand-sub {
    font-size: 13px;
    color: var(--cp-dim);
}

.cp-site-switch {
    position: relative;
    margin-left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 34px;
    border-radius: 6px;
    background: var(--cp-field);
    border: 1px solid var(--cp-field-border);
    color: var(--cp-body);
    font-size: 13px;
}

.cp-site-switch:focus-within {
    border-color: var(--cp-accent);
}

.cp-site-switch i {
    color: var(--cp-dim);
    font-size: 13px;
}

.cp-site-switch select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--cp-body);
    font-family: inherit;
    font-size: 13px;
    padding-right: 18px;
    max-width: 260px;
    cursor: pointer;
}

.cp-site-switch select option {
    background: #10151e;
    color: #e2e8f0;
}

.cp-site-switch .cp-caret {
    position: absolute;
    right: 12px;
    pointer-events: none;
    font-size: 11px;
}

.cp-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-iconbtn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--cp-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.15s, color 0.15s;
}

.cp-iconbtn:hover {
    background: rgba(100, 116, 139, 0.14);
    color: var(--cp-white);
}

.cp-iconbtn:focus-visible,
.cp-btn:focus-visible,
.cp-chip:focus-visible,
.cp-tab:focus-visible,
.cp-seg-item:focus-visible {
    outline: 2px solid var(--cp-accent);
    outline-offset: 2px;
}

.cp-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--cp-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.cp-vdiv {
    width: 1px;
    height: 22px;
    background: rgba(100, 116, 139, 0.3);
    margin: 0 6px;
}

.cp-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--cp-accent);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cp-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--cp-body);
    line-height: 16px;
}

.cp-user-sub {
    font-size: 11px;
    line-height: 14px;
    color: var(--cp-dim);
}

.cp-tabbar {
    display: flex;
    align-items: center;
    padding: 0 32px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.14);
}

.cp-tabs {
    display: flex;
    gap: 2px;
}

.cp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 46px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.15s;
}

.cp-tab:hover {
    color: var(--cp-white);
}

.cp-tab.is-active {
    color: var(--cp-white);
    border-bottom-color: var(--cp-accent);
}

.cp-tab.is-active i {
    color: var(--cp-accent);
}

.cp-tab i {
    font-size: 14px;
}

.cp-live {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--cp-dim);
}

.cp-live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: var(--cp-green);
}

.cp-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cp-h1 {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--cp-white);
}

.cp-lead {
    font-size: 14px;
    color: var(--cp-muted);
    margin-top: 2px;
}

.cp-panel {
    border-radius: 10px;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    min-width: 0;
}

.cp-panel--hero {
    box-shadow: inset 0 1px 0 rgba(0, 229, 255, 0.35), 0 0 40px rgba(0, 229, 255, 0.05);
}

.cp-panel--alert {
    box-shadow: inset 0 1px 0 rgba(239, 68, 68, 0.4);
}

.cp-panel-head {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--cp-hair);
    min-height: 46px;
}

.cp-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--cp-white);
    white-space: nowrap;
}

.cp-panel-meta {
    font-size: 12px;
    color: var(--cp-dim);
}

.cp-panel-body {
    padding: 16px 20px;
}

.cp-panel-foot {
    padding: 10px 20px;
    border-top: 1px solid rgba(100, 116, 139, 0.12);
    font-size: 12px;
    color: var(--cp-dim);
}

.cp-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--tone, var(--cp-cyan));
    flex-shrink: 0;
}

.cp-dot--lg {
    width: 8px;
    height: 8px;
    border-radius: 4px;
}

.cp-dot--pulse {
    animation: cp-pulse 1.6s ease-in-out infinite;
}

@keyframes cp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.cp-row {
    padding: 12px 20px;
    border-bottom: 1px solid var(--cp-hair-soft);
}

.cp-row:last-child {
    border-bottom: 0;
}

.cp-row--click {
    cursor: pointer;
    transition: background 0.12s;
}

.cp-row--click:hover {
    background: rgba(255, 255, 255, 0.03);
}

.cp-row.is-selected {
    background: rgba(0, 229, 255, 0.06);
}

.cp-grid {
    display: grid;
    grid-template-columns: var(--cols, 1fr);
    gap: 14px;
    align-items: center;
}

.cp-colhead {
    padding: 8px 20px;
    background: var(--cp-inset);
    border-bottom: 1px solid rgba(100, 116, 139, 0.14);
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cp-dim);
}

.cp-label {
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cp-dim);
}

.cp-figure {
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
    color: var(--cp-white);
}

.cp-figure.cp-t {
    color: var(--tone);
}

.cp-figure--md {
    font-size: 24px;
    line-height: 32px;
}

.cp-figure small {
    font-size: 16px;
    font-weight: 500;
    color: var(--cp-dim);
}

.cp-strip {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.cp-pill {
    display: inline-block;
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--tone-bg, rgba(100, 116, 139, 0.15));
    color: var(--tone, #94a3b8);
    white-space: nowrap;
}

.cp-tag {
    display: inline-block;
    font-size: 11px;
    line-height: 16px;
    padding: 1px 8px;
    border-radius: 4px;
    background: var(--tone-bg, rgba(100, 116, 139, 0.15));
    color: var(--tone, #94a3b8);
    white-space: nowrap;
}

.cp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(100, 116, 139, 0.15);
    color: var(--cp-muted);
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
    background: rgba(100, 116, 139, 0.14);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: var(--cp-soft);
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.cp-btn:hover {
    background: rgba(100, 116, 139, 0.24);
}

.cp-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cp-btn--primary {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--cp-accent);
}

.cp-btn--primary:hover {
    background: rgba(0, 229, 255, 0.2);
}

.cp-btn--go {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--cp-green);
}

.cp-btn--go:hover {
    background: rgba(34, 197, 94, 0.22);
}

.cp-btn--stop {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.cp-btn--stop:hover {
    background: rgba(239, 68, 68, 0.2);
}

.cp-btn--sm {
    padding: 4px 12px;
    font-size: 12px;
}

.cp-btn--square {
    width: 34px;
    height: 34px;
    padding: 0;
}

.cp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    cursor: pointer;
    background: rgba(100, 116, 139, 0.14);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: var(--cp-soft);
    transition: background 0.15s;
}

.cp-chip:hover {
    background: rgba(100, 116, 139, 0.24);
}

.cp-chip--lg {
    padding: 5px 12px;
    font-size: 13px;
}

.cp-chip.cp-tone-red,
.cp-chip.cp-tone-amber,
.cp-chip.cp-tone-cyan {
    background: var(--tone-bg);
    border-color: var(--tone-line);
    color: var(--tone);
}

.cp-chip.is-active {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--cp-accent);
}

.cp-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 8px;
    background: rgba(100, 116, 139, 0.12);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.cp-seg-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    background: transparent;
    color: var(--cp-muted);
    cursor: pointer;
}

.cp-seg-item:hover {
    color: var(--cp-white);
}

.cp-seg-item.is-active {
    background: rgba(0, 229, 255, 0.12);
    border-color: rgba(0, 229, 255, 0.35);
    color: var(--cp-accent);
}

.cp-input,
.cp-select {
    background: var(--cp-field);
    border: 1px solid var(--cp-field-border);
    border-radius: 6px;
    padding: 7px 12px;
    color: var(--cp-body);
    font-family: inherit;
    font-size: 13px;
    line-height: 18px;
    outline: 0;
}

.cp-input:focus,
.cp-select:focus {
    border-color: var(--cp-accent);
}

.cp-input[type='date'],
.cp-input[type='time'] {
    color-scheme: dark;
}

.cp-input::placeholder {
    color: var(--cp-dim);
}

.cp-input--search {
    padding-left: 34px;
}

.cp-input-wrap {
    position: relative;
    display: inline-block;
}

.cp-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cp-dim);
    font-size: 13px;
    pointer-events: none;
}

.cp-input-wrap .cp-input {
    width: 100%;
}

.cp-field-label {
    display: block;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cp-dim);
    margin-bottom: 6px;
}

.cp-toolbar {
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--cp-surface);
    border: 1px solid var(--cp-border);
    margin-bottom: 20px;
}

.cp-skel {
    background: rgba(100, 116, 139, 0.14);
    border-radius: 6px;
    animation: cp-pulse 1.6s ease-in-out infinite;
}

.cp-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(100, 116, 139, 0.18);
    overflow: hidden;
}

.cp-bar > span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--tone, var(--cp-cyan));
}

.cp-bar--sm {
    height: 6px;
    border-radius: 3px;
}

.cp-barrow {
    display: grid;
    grid-template-columns: var(--label-w, 130px) minmax(0, 1fr) var(--value-w, 32px);
    gap: 12px;
    align-items: center;
}

.cp-inset {
    border-radius: 6px;
    background: rgba(100, 116, 139, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.14);
    padding: 12px 14px;
}

.cp-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--cp-dim);
}

.cp-empty i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    color: rgba(100, 116, 139, 0.6);
}

.cp-empty-title {
    color: var(--cp-soft);
    font-weight: 500;
}

.cp-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 20px;
    border-top: 1px solid rgba(100, 116, 139, 0.12);
    flex-wrap: wrap;
}

.cp-split-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.cp-split-1-1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.cp-split-5-7 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.cp-split-7-5 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.cp-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
}

.cp-hero-verdict {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-right: 1px solid rgba(100, 116, 139, 0.16);
}

.cp-hero-stats {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-hero-stat {
    padding: 0 20px;
    border-left: 1px solid rgba(100, 116, 139, 0.16);
}

.cp-hero-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.cp-hero-stat:last-child {
    padding-right: 0;
}

.cp-hero-stat .cp-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-kpi {
    padding: 0 24px;
    border-left: 1px solid rgba(100, 116, 139, 0.16);
}

.cp-kpi:first-child {
    border-left: 0;
}

.cp-tl {
    display: flex;
    padding: 12px 20px 8px;
}

.cp-tl-names {
    width: 240px;
    flex-shrink: 0;
}

.cp-tl-track {
    position: relative;
    flex: 1;
    min-width: 0;
}

.cp-tl-row {
    height: 44px;
    position: relative;
    background-image: linear-gradient(to right, rgba(100, 116, 139, 0.16) 1px, transparent 1px);
    background-size: 17.647% 100%;
}

.cp-tl-namecell {
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 12px;
    min-width: 0;
}

.cp-tl-axis {
    height: 22px;
    position: relative;
    font-size: 11px;
    color: var(--cp-dim);
}

.cp-tl-axis span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

.cp-tl-block {
    position: absolute;
    top: 7px;
    bottom: 7px;
    border-radius: 5px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--cp-soft);
}

.cp-tl-block.is-open {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.65);
    color: var(--cp-amber);
    font-weight: 600;
}

.cp-tl-now {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 229, 255, 0.7);
}

.cp-tl-now::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 4px;
    background: var(--cp-accent);
}

.cp-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--cp-muted);
}

.cp-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-radius: 2px;
    margin-right: 6px;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.cp-legend-swatch.is-open {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.65);
}

.cp-steps {
    display: flex;
    align-items: center;
}

.cp-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cp-dim);
}

.cp-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 11px;
    border: 1px dashed rgba(100, 116, 139, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.cp-step.is-done {
    color: var(--cp-body);
}

.cp-step.is-done .cp-step-dot {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: var(--cp-green);
}

.cp-step-line {
    flex: 1;
    height: 1px;
    background: rgba(100, 116, 139, 0.3);
    margin: 0 12px;
}

.cp-step-line.is-done {
    background: rgba(34, 197, 94, 0.4);
}

.cp-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: rgba(100, 116, 139, 0.18);
    border: 1px solid rgba(100, 116, 139, 0.4);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.cp-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 7px;
    background: var(--cp-dim);
    transition: transform 0.15s, background 0.15s;
}

.cp-toggle.is-on {
    background: rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.5);
}

.cp-toggle.is-on::after {
    transform: translateX(16px);
    background: var(--cp-accent);
}

.cp-toggle:focus-visible {
    outline: 2px solid var(--cp-accent);
    outline-offset: 2px;
}

.cp-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(100, 116, 139, 0.5);
    background: transparent;
    color: var(--cp-accent);
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.cp-check.is-on {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--cp-accent);
}

.cp-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(2, 4, 8, 0.62);
    display: flex;
    justify-content: flex-end;
}

.cp-drawer {
    width: min(640px, 100%);
    height: 100%;
    background: #0a0f18;
    border-left: 1px solid rgba(100, 116, 139, 0.22);
    display: flex;
    flex-direction: column;
}

.cp-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 64px;
    border-bottom: 1px solid var(--cp-border);
    flex-shrink: 0;
}

.cp-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cp-drawer-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-top: 1px solid var(--cp-border);
    flex-shrink: 0;
}

.cp-notif {
    position: relative;
}

.cp-popover {
    position: absolute;
    top: 44px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 40;
    border-radius: 10px;
    background: #0d121b;
    border: 1px solid rgba(100, 116, 139, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.cp-toasts {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 340px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}

.cp-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #0d121b;
    border: 1px solid var(--tone-line, rgba(100, 116, 139, 0.3));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.cp-toast i.cp-toast-icon {
    color: var(--tone, var(--cp-amber));
    margin-top: 2px;
}

.cp-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cp-map {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cp-border);
    min-height: 520px;
    background: #0b111b;
}

.cp-mobile-only {
    display: none;
}

@media (max-width: 1100px) {
    .cp-header,
    .cp-tabbar {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cp-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cp-user-sub {
        display: none;
    }

    .cp-site-switch {
        margin-left: 8px;
    }

    .cp-site-switch select {
        max-width: 200px;
    }
}

@media (max-width: 960px) {
    .cp-user-text,
    .cp-logout-text {
        display: none;
    }

    .cp-split-2-1,
    .cp-split-1-1,
    .cp-split-5-7,
    .cp-split-7-5 {
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-hero-verdict {
        border-right: 0;
        border-bottom: 1px solid rgba(100, 116, 139, 0.16);
    }

    .cp-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-cols-4 .cp-kpi {
        padding: 14px 20px;
        border-left: 0;
        border-top: 1px solid rgba(100, 116, 139, 0.16);
    }

    .cp-cols-4 .cp-kpi:nth-child(-n + 2) {
        border-top: 0;
    }

    .cp-cols-4 .cp-kpi:nth-child(even) {
        border-left: 1px solid rgba(100, 116, 139, 0.16);
    }
}

@media (max-width: 820px) {
    .cp-header {
        padding: 8px 16px 10px;
        gap: 8px 10px;
        height: auto;
        flex-wrap: wrap;
    }

    .cp-brand {
        height: 40px;
    }

    .cp-brand-div,
    .cp-brand-sub,
    .cp-user-text,
    .cp-live,
    .cp-vdiv,
    .cp-logout-text {
        display: none;
    }

    .cp-site-switch {
        order: 3;
        margin-left: 0;
        flex: 1 0 100%;
        min-width: 0;
        height: 44px;
    }

    .cp-site-switch select {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .cp-header-right {
        gap: 2px;
    }

    .cp-iconbtn {
        width: 44px;
        height: 44px;
    }

    .cp-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        padding: 0;
        height: 64px;
        background: rgba(10, 15, 24, 0.97);
        border-top: 1px solid rgba(100, 116, 139, 0.22);
        border-bottom: 0;
    }

    .cp-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
    }

    .cp-tab {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        height: 64px;
        padding: 0 2px;
        font-size: 11px;
        line-height: 14px;
        border-bottom: 0;
        color: var(--cp-muted);
    }

    .cp-tab i {
        font-size: 18px;
    }

    .cp-tab.is-active {
        color: var(--cp-accent);
    }

    .cp-container {
        padding: 16px 16px 88px;
    }

    .cp-h1 {
        font-size: 22px;
        line-height: 30px;
    }

    .cp-hero-stats {
        padding: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-hero-stat,
    .cp-hero-stat:first-child,
    .cp-hero-stat:last-child {
        padding: 14px 18px;
        border-left: 0;
        border-bottom: 1px solid rgba(100, 116, 139, 0.16);
    }

    .cp-hero-stat:nth-child(odd) {
        border-right: 1px solid rgba(100, 116, 139, 0.16);
    }

    .cp-hero-stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .cp-hero-verdict {
        padding: 18px;
        gap: 16px;
    }

    .cp-strip {
        gap: 24px;
        padding: 16px;
    }

    .cp-cols-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .cp-cols-3 .cp-kpi {
        padding: 14px 16px;
        border-left: 0;
        border-top: 1px solid rgba(100, 116, 139, 0.16);
    }

    .cp-cols-3 .cp-kpi:first-child {
        border-top: 0;
    }

    .cp-cols-4 .cp-kpi {
        padding: 14px 16px;
    }

    .cp-panel-head,
    .cp-row,
    .cp-panel-body,
    .cp-pager,
    .cp-panel-foot {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cp-panel-head {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .cp-colhead {
        display: none;
    }

    .cp-grid.cp-stack-m {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .cp-tl {
        display: none;
    }

    .cp-mobile-only {
        display: block;
    }

    .cp-desktop-only {
        display: none;
    }

    .cp-toolbar {
        padding: 12px;
    }

    .cp-toasts {
        bottom: 80px;
    }

    .cp-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-drawer-head,
    .cp-drawer-body,
    .cp-drawer-foot {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.cp-sites-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cp-sites-scroll { overflow-y: auto; }
.cp-sites-hero-head { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--cp-hair); }
.cp-sites-hero-title { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--cp-white); }
.cp-sites-col { padding: 20px 24px; min-width: 0; border-left: 1px solid rgba(100, 116, 139, 0.14); }
.cp-sites-col:first-child { border-left: 0; }
.cp-sites-col .cp-pager { padding: 10px 0 0; border-top: 0; }
.cp-sites-head { margin-bottom: 12px; }
.cp-sites-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cp-hair-soft); min-width: 0; }
.cp-sites-line:last-child { border-bottom: 0; }
.cp-sites-shift { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--cp-hair-soft); font-size: 13px; line-height: 20px; }
.cp-sites-shift:last-child { border-bottom: 0; }
.cp-sites-shift-guard { max-width: 130px; }
.cp-sites-figs { display: flex; gap: 32px; margin-bottom: 12px; }
.cp-sites-incident { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--cp-hair-soft); font-size: 13px; line-height: 20px; }
.cp-sites-incident-list { margin-top: 8px; }
.cp-sites-strip { border-bottom: 1px solid var(--cp-hair); }
.cp-sites-cov .cp-panel-head { flex-wrap: wrap; }

.cp-map .cp-sites-canvas { position: absolute; inset: 0; }
.cp-sites-fill { position: absolute; inset: 0; }
.cp-sites-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }

.cp-sites-pin { width: 24px; height: 24px; border-radius: 50%; background: var(--pin-halo); cursor: pointer; z-index: 3; }
.cp-sites-pin::after { content: ''; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--pin); }
.cp-sites-pin::before { content: ''; position: absolute; left: -8px; top: -8px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #00e5ff; opacity: 0.7; display: none; box-sizing: border-box; }
.cp-sites-pin.is-selected { z-index: 4; }
.cp-sites-pin.is-selected::before { display: block; }
.cp-sites-pin:focus-visible { outline: 2px solid #00e5ff; outline-offset: 2px; }
.cp-sites-car { width: 26px; height: 26px; border-radius: 50%; background: #10151e; border: 2px solid var(--car); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); color: #ffffff; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.cp-sites-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); cursor: pointer; z-index: 1; }

.cp-sites-popup { z-index: 5; }
.cp-sites-popup .mapboxgl-popup-content { background: #10151e; border: 1px solid rgba(0, 229, 255, 0.4); border-radius: 8px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); color: #ffffff; font-family: Inter, -apple-system, 'Segoe UI', sans-serif; }
.cp-sites-popup.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip,
.cp-sites-popup.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.cp-sites-popup.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip { border-top-color: #10151e; }
.cp-sites-popup.mapboxgl-popup-anchor-top .mapboxgl-popup-tip,
.cp-sites-popup.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.cp-sites-popup.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip { border-bottom-color: #10151e; }
.cp-sites-popup.mapboxgl-popup-anchor-left .mapboxgl-popup-tip { border-right-color: #10151e; }
.cp-sites-popup.mapboxgl-popup-anchor-right .mapboxgl-popup-tip { border-left-color: #10151e; }
.cp-sites-popup .mapboxgl-popup-close-button { color: #94a3b8; font-size: 16px; padding: 2px 6px; }
.cp-sites-popup .mapboxgl-popup-close-button:hover { color: #ffffff; background: transparent; }
.cp-sites-popup-title { font-size: 13px; line-height: 18px; font-weight: 600; color: #ffffff; padding-right: 8px; }
.cp-sites-popup-line { font-size: 11px; line-height: 16px; color: #94a3b8; }
.cp-sites-popup-line.is-amber { color: #f59e0b; }
.cp-sites-popup-line.is-cyan { color: #22d3ee; }

.cp-map .mapboxgl-ctrl-group { background: #10151e; border: 1px solid rgba(100, 116, 139, 0.3); box-shadow: none; }
.cp-map .mapboxgl-ctrl-group button + button { border-top: 1px solid rgba(100, 116, 139, 0.3); }
.cp-map .mapboxgl-ctrl-group .mapboxgl-ctrl-icon { filter: invert(1); }
.cp-map .mapboxgl-ctrl-attrib { background: rgba(8, 12, 20, 0.7); }
.cp-map .mapboxgl-ctrl-attrib a { color: #94a3b8; }

@media (max-width: 820px) {
    .cp-sites-col { padding: 16px; border-left: 0; border-top: 1px solid rgba(100, 116, 139, 0.14); }
    .cp-sites-col:first-child { border-top: 0; }
    .cp-sites-hero-head { padding: 16px; }
    .cp-sites-figs { gap: 24px; }
}
