/* Shared Graphite Command tokens and surfaces; camera and map behavior stays separate. */
:root { color-scheme: dark; --graphite-bg: #1c1c1c; --graphite-panel: #2b2b2b; --graphite-ink: #f1f1f1; --graphite-muted: #bbbbbb; --graphite-accent: #eeeeee; }
.graphite-shell { --cs-data-font: "Segoe UI", Arial, sans-serif; --cs-operator-font: "Segoe UI", Arial, sans-serif; }
.graphite-shell :is(.topbar-icon-link.active, .map-mode-button.active, .compact-icon-button.active) { background: #27473b !important; color: #c2ffe5 !important; border-color: #85e6c244 !important; box-shadow: inset 0 -2px #85e6c2 !important; }
.graphite-shell :is(.topbar-icon-link:hover, .compact-icon-button:hover:not(:disabled)) { background: #2b3a35 !important; box-shadow: none !important; border-color: transparent !important; }
.graphite-shell .live-grid-panel::before, .graphite-shell .live-grid-panel::after { display: none; }
.graphite-shell .live-grid-scale { background: transparent !important; border: 0 !important; padding: 0; color: #a4b5b0; }
.graphite-shell { --cs-blue: #85e6c2; --cs-cyan: #85e6c2; --cs-text: #e6eeeb; --cs-muted: #a4b5b0; --cs-slim-tech: "Segoe UI", Arial, sans-serif; --cs-tech: "Segoe UI", Arial, sans-serif; background: var(--graphite-bg); color: var(--graphite-ink); font: 14px/1.5 "Segoe UI", Arial, sans-serif; }
.graphite-shell *, .graphite-shell *::before, .graphite-shell *::after { letter-spacing: 0 !important; }
.graphite-shell .premium-topbar { display: flex !important; flex-wrap: nowrap; align-items: center; min-height: 64px; padding: 10px 24px !important; background: #192023 !important; border: 0; box-shadow: 0 1px 0 #ffffff09; gap: 18px; }
.graphite-shell .premium-topbar::before, .graphite-shell .premium-topbar::after { display: none; }
.graphite-shell .brand { font: 600 20px/1.2 "Segoe UI", Arial, sans-serif !important; }
.graphite-shell .brand::before, .graphite-shell .brand::after { color: var(--graphite-accent); }
.graphite-shell .brand-mark { border-color: #85e6c230; color: var(--graphite-accent); background: #ffffff04; }
.graphite-shell .subtitle { font: 10px/1.4 "Segoe UI", Arial, sans-serif; color: var(--graphite-muted); }
.graphite-shell .topbar-user { gap: 12px; flex-wrap: nowrap; }
.graphite-shell .topbar-icon-link { width: auto !important; min-width: 40px; height: 40px; gap: 8px; padding: 8px 10px; border: 0; border-radius: 3px; background: transparent; box-shadow: none; color: #b9c8c3; font: 500 14px/1.3 "Segoe UI", Arial, sans-serif; }
.graphite-shell .topbar-icon-link.active { color: #c2ffe5; background: #85e6c208; box-shadow: inset 0 -2px #85e6c2; }
.graphite-shell .topbar-icon-link:hover { background: #ffffff09; }
.graphite-shell .topbar-icon-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.graphite-shell .user-label { font: 12px/1.4 "Segoe UI", Arial, sans-serif; }
.graphite-shell > main { width: 100%; max-width: 1680px; padding: 24px; }
.graphite-shell h1, .graphite-shell h2, .graphite-shell h3 { color: #e8f3ed; font-family: "Segoe UI", Arial, sans-serif !important; text-transform: none; }
.graphite-shell h1 { font-size: 23px !important; line-height: 1.3; }
.graphite-shell h2 { font-size: 17px; }
.graphite-shell h1::before, .graphite-shell h2::before { color: var(--graphite-accent); }
.graphite-shell .muted, .graphite-shell .toolbar p { color: var(--graphite-muted); font: 14px/1.5 "Segoe UI", Arial, sans-serif; }
.graphite-shell :is(button, input, select, textarea, .button) { font-family: "Segoe UI", Arial, sans-serif !important; text-transform: none; }
.graphite-shell :is(input, select, textarea) { background-color: #202b2d; border-color: #a3b9b51f; color: #e6eeeb; border-radius: 4px; }
.graphite-shell .button { min-height: 38px; padding: 8px 14px; font-size: 14px; background: #293438; border-color: #a3b9b51f; color: #e6eeeb; box-shadow: none; }
.graphite-shell .button.primary { background: #286c57; border-color: #77d7b966; color: #f0fff8; }
.graphite-shell .button.danger { background: #432d32; color: #ffb9bd; }
.graphite-shell :focus-visible { outline: 2px solid var(--graphite-accent); outline-offset: 2px; }
.graphite-shell :is(.admin-panel, .access-user-card, .camera-details-sidebar, .camera-details-main, .detail-section, .camera-drawer-section) { background: #1a2225; border-color: #ffffff0e; box-shadow: none; }
.graphite-shell .admin-panel { border: 0; border-radius: 0; border-top: 1px solid #ffffff12; padding: 20px 0; background: transparent; }
.graphite-shell :is(th, td) { border-color: #ffffff0c; font-size: 14px; }
.graphite-shell th { background: #20292c; color: #c4d7ce; }
.graphite-shell .camera-drawer { background: #141c1f; border-color: #ffffff14; color: var(--graphite-ink); }
.graphite-shell:has(.camera-workspace) { background-color: #111719; }
.graphite-shell:has(.camera-workspace) .dashboard-header-tools { position: static; inset: auto; width: 100%; justify-content: flex-end; margin: 0; height: 48px; min-height: 48px; }
.graphite-shell .compact-icon-button { background: #ffffff06; border-color: transparent; box-shadow: none; color: #b9d4c9; }
.graphite-shell .compact-icon-button.start { color: #8fe2bd; }
.graphite-shell .compact-icon-button.stop { color: #f59b9f; }
.graphite-shell .camera-workspace { --wall-surface: #1b2528; --wall-muted: #a9bdb5; --wall-border: #ffffff17; }
.graphite-shell .workspace-toolbar { gap: 12px; }
.graphite-shell .workspace-grid { gap: 8px; }
.graphite-shell .workspace-tile { border-radius: 4px; background: #0a1012; }
.graphite-shell .workspace-tile-header { position: absolute; inset: 0 0 auto; min-height: 54px; padding: 8px 10px 12px; background: linear-gradient(#071012dc, #07101270 55%, transparent); pointer-events: none; z-index: 3; }
.graphite-shell .workspace-tile-header > * { pointer-events: auto; }
.graphite-shell .workspace-tile-header strong { color: #f5fff9; text-shadow: 0 1px 3px #000; }
.graphite-shell .workspace-tile-header .wall-tool { color: #e6f5ee; background: #07101220; border: 0; filter: drop-shadow(0 1px 1px #0008); }
.graphite-shell .workspace-tile-header .wall-tool:hover { background: #071012c0; }
.graphite-shell .workspace-tile-footer { position: absolute; inset: auto 0 34px; min-height: 46px; padding: 12px 10px 5px; background: linear-gradient(transparent, #071012b0); pointer-events: none; z-index: 3; }
.graphite-shell .workspace-tile-footer > * { pointer-events: auto; }
.graphite-shell .workspace-tile-footer select { background: #101b1dc9; color: #effcf5; border-color: #ffffff22; }
.graphite-shell .workspace-rate { color: #e4f4ec; text-shadow: 0 1px 3px #000; }
.graphite-shell .workspace-position { color: #b0f0cd; text-decoration: none; text-shadow: 0 1px 3px #000; padding: 5px 3px; border-radius: 3px; }
.graphite-shell .workspace-position:hover { color: #fff; background: #15352b; text-decoration: underline; }
.graphite-shell .workspace-video { height: 100%; flex: 1; }
.graphite-shell .workspace-reconnecting { bottom: 94px; }
.graphite-shell .workspace-tile-settings { top: 56px; max-height: calc(100% - 62px); }
.graphite-shell .workspace-video .offline { background: #121b1e; }
.graphite-shell .workspace-library, .graphite-shell .workspace-tile-settings { background: #1b292b; }
.graphite-shell .map-page { max-width: none; margin: 0; display: flex; flex-direction: column; height: calc(100dvh - 112px); min-height: 480px; gap: 14px; }
.graphite-shell:has(.map-page) > main { max-width: none; }
.graphite-shell .map-page-header { flex-shrink: 0; margin: 0; }
.graphite-shell .map-page-header p { color: #96b4a7; font: 12px/1.5 "Segoe UI", Arial, sans-serif; }
.graphite-shell .map-page-panel { flex: 1; min-height: 0; padding: 0; margin: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; background: transparent; overflow: hidden; }
.graphite-shell .map-page-map-head { min-height: 30px; padding: 0 4px 8px; }
.graphite-shell .map-page-wrap { flex: 1; min-height: 0; margin: 0; border: 0; }
.graphite-shell .map-page-wrap .accurate-map-shell, .graphite-shell .map-page-canvas { height: 100% !important; min-height: 0 !important; border-radius: 4px; border: 0; }
.graphite-shell .map-mode-button { min-height: 38px; padding: 7px 14px; font: 14px/1.4 "Segoe UI", Arial, sans-serif; color: #bbcec6; background: transparent; border-color: transparent; }
.graphite-shell .map-mode-button.active { color: #adffdb; background: #27473b; box-shadow: inset 0 -2px #85e6c2; }
.graphite-shell .map-mode-buttons { border-color: #ffffff16; background: #1b2528; }
.graphite-shell .map-camera-strip { margin: 0; padding: 10px 0 0; max-height: 145px; overflow: auto; flex-shrink: 0; }
.graphite-shell .map-camera-strip:empty { display: none; }
.graphite-shell .map-camera-chip { border: 0; background: #1b292b; padding: 10px 14px; color: #e6f3eb; }
.graphite-shell .map-camera-chip.selected { box-shadow: inset 3px 0 #85e6c2; }
.graphite-shell .map-no-positions { padding: 10px 0 0; color: #9fb6ab; font-size: 13px; }
.graphite-shell .offline-camera-marker.selected { outline: 2px solid #8df6cc; outline-offset: 3px; border-radius: 4px; }
.graphite-shell .offline-grid-label, .graphite-shell .offline-map-status { color: #bdd3c8; background: #111b1ddd; border-color: #ffffff16; font: 11px/1.4 Consolas, monospace; }
.graphite-shell .offline-camera-label { background: #152523ed; color: #e2f9eb; border-color: #ffffff1f; }
.graphite-shell .offline-camera-label strong { font: 600 13px/1.4 "Segoe UI", Arial, sans-serif; }
.graphite-shell .offline-camera-label small { font: 12px/1.4 Consolas, monospace; color: #b0d9bf; }
.graphite-shell .maplibregl-ctrl-group { background: #263b35; }
.graphite-shell .maplibregl-ctrl-group button { width: 36px; height: 36px; }
.graphite-shell .premium-topbar { height: 72px !important; min-height: 72px !important; gap: 32px; background: linear-gradient(110deg, #242b2c, #171d1f) !important; }
.graphite-shell .brand-lockup { flex-shrink: 0; }
.graphite-shell .brand { text-transform: none !important; font-size: 20px !important; font-weight: 500 !important; }
.graphite-shell .brand::before, .graphite-shell .brand::after { content: none !important; }
.graphite-shell .brand-mark { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #b4c8c0; outline: 1px solid #81948d55; outline-offset: 4px; background: transparent; }
.graphite-shell .subtitle { font-size: 11px !important; color: #9faeaa; }
.graphite-shell .topbar-user { flex: 1; justify-content: flex-start; gap: 14px; }
.graphite-shell .user-identity { margin-left: auto; border-left: 1px solid #c8d8d229; padding-left: 22px; }
.graphite-shell .topbar-icon-link { font-size: 14px !important; }
.graphite-shell .topbar-icon-link.active { background: transparent !important; border-radius: 0; }
.graphite-shell .camera-workspace { font-size: 14px; }
.graphite-shell .workspace-toolbar { min-height: 56px; padding-block: 6px; }
.graphite-shell .workspace-tile-header { pointer-events: auto; }
.graphite-shell .workspace-tile-header strong { font-size: 15px !important; font-weight: 500; }
.graphite-shell .workspace-tile-header .wall-tool { width: 38px; min-width: 38px; flex-basis: 38px; height: 38px; }
.graphite-shell .workspace-tile-header .workspace-grip { width: 28px; min-width: 28px; flex-basis: 28px; }
.graphite-shell .workspace-tile-footer :is(select, .workspace-rate, .workspace-position) { font-size: 13px; }
.graphite-shell .workspace-footer { color: #aebeb8; }
.graphite-shell:has(.auth-shell) { background: #151b1d; background-image: linear-gradient(#b4c8c007 1px, transparent 1px), linear-gradient(90deg, #b4c8c007 1px, transparent 1px); background-size: 64px 64px; }
.graphite-shell .auth-shell { min-height: calc(100dvh - 150px); padding: 32px 0; }
.graphite-shell .auth-card { width: min(100%, 460px); padding: 40px; background: #20282a !important; border: 1px solid #bdd4c927 !important; border-radius: 4px !important; box-shadow: 0 20px 60px #0003 !important; }
.graphite-shell .auth-card::before { background: #a6d5bf !important; width: 64px; height: 2px; }
.graphite-shell .auth-logo { font: 500 26px/1.3 "Segoe UI", Arial, sans-serif !important; text-transform: none !important; color: #edf3ef !important; margin-bottom: 24px; }
.graphite-shell .auth-logo::before, .graphite-shell .auth-logo::after { content: none !important; }
.graphite-shell .auth-card h1 { font-size: 20px !important; margin-bottom: 8px; }
.graphite-shell .auth-card .muted { font: 14px/1.6 "Segoe UI", Arial, sans-serif !important; margin-bottom: 28px; }
.graphite-shell .auth-card .field-label { font: 500 13px/1.5 "Segoe UI", Arial, sans-serif !important; text-transform: none; margin-top: 18px; }
.graphite-shell .auth-input { min-height: 48px; font-size: 16px !important; background: #151d1f !important; border: 1px solid #bbd4c833 !important; }
.graphite-shell .auth-button { min-height: 46px; margin-top: 26px; font: 600 15px/1.4 "Segoe UI", Arial, sans-serif !important; background: #95d8b9 !important; color: #11271f !important; border: 0 !important; }
.graphite-shell .map-page { height: calc(100dvh - 120px); }
@media (max-width: 1000px) {
    .graphite-shell .graphite-nav-label, .graphite-shell .graphite-nav > span:not(.wall-icon) { display: none; }
    .graphite-shell .topbar-user { gap: 6px; }
}
@media (max-width: 700px) {
    .graphite-shell .premium-topbar { height: 60px !important; min-height: 60px !important; }
    .graphite-shell .topbar-user { justify-content: flex-end; }
    .graphite-shell .auth-card { padding: 28px; }
    .graphite-shell .premium-topbar { min-height: 56px; padding: 6px 10px !important; gap: 4px; }
    .graphite-shell .brand { font-size: 15px !important; }
    .graphite-shell .brand-mark, .graphite-shell .subtitle, .graphite-shell .user-identity { display: none; }
    .graphite-shell .topbar-icon-link { min-width: 32px; padding: 6px; }
    .graphite-shell .topbar-user { gap: 0; }
    .graphite-shell > main { padding: 12px; }
    .graphite-shell .map-page { height: calc(100dvh - 80px); min-height: 440px; }
    .graphite-shell .map-page-header { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
    .graphite-shell .map-page h1 { font-size: 19px !important; }
    .graphite-shell .map-camera-strip { max-height: 110px; }
    .graphite-shell .workspace-position { font-size: 11px; }
}

/* Command surfaces deliberately outrank the legacy premium theme. */
.shell.graphite-shell :is(.user-row, .permission-card) {
    background: #272d2f !important; border: 1px solid #bdcdc329 !important;
    border-radius: 4px !important; box-shadow: none !important; padding: 18px;
}
.shell.graphite-shell :is(.user-row, .permission-card)::before,
.shell.graphite-shell :is(.user-row, .permission-card)::after { display: none !important; }
.shell.graphite-shell :is(.access-all-row, .check-row) {
    background: transparent !important; border: 0 !important; border-top: 1px solid #bdcdc320 !important;
    border-radius: 0 !important; padding: 14px 4px; box-shadow: none !important;
}
.shell.graphite-shell :is(.access-all-row, .check-row):hover { background: #c1e4d308 !important; }
.shell.graphite-shell input[type=checkbox] { accent-color: #71efc5; width: 16px; height: 16px; flex-shrink: 0; }
.shell.graphite-shell :is(.user-row, .permission-card) :is(.meta, small) { color: #b4c2bc !important; font-size: 13px !important; }
.shell.graphite-shell :is(.user-name, .permission-heading h2) { font: 600 16px/1.4 "Segoe UI", Arial, sans-serif !important; color: #f2f5f3; }
.shell.graphite-shell .compact-empty { background: #252b2bcc; border-color: #bdcdc329 !important; color: #b4c2bc; }
.shell.graphite-shell .message { background: #30342e !important; border: 1px solid #c6b68b40 !important; color: #e4e5d7 !important; border-radius: 4px !important; box-shadow: none !important; }
.shell.graphite-shell > main > .toolbar { padding: 18px 12px; background: #2b3233; border-bottom: 1px solid #bdcdc329; margin-bottom: 12px; }
.shell.graphite-shell :is(.user-list, .access-columns) { padding: 0 12px 12px; }
.shell.graphite-shell .admin-panel { padding: 18px 12px; }
.shell.graphite-shell .access-columns .admin-panel { padding-inline: 0; }
.shell.graphite-shell :is(.user-create-row, .form-row) { gap: 10px; flex-wrap: wrap; }
.shell.graphite-shell :is(.status.live, .status.stopped) { border-radius: 3px !important; background: #1d3028 !important; border-color: #71efc533 !important; color: #a3efc9 !important; }
.shell.graphite-shell .status.stopped { background: #382a29 !important; border-color: #e2ac7733 !important; color: #e4c092 !important; }
.shell.premium-shell.graphite-shell {
    box-sizing: border-box; padding: 18px; min-height: 100dvh;
    background: #1b1f20 url('images/graphite-contours.png') center / 1536px 1024px repeat !important;
    --cs-blue: #71efc5; --cs-cyan: #71efc5;
}
.shell.premium-shell.graphite-shell::before { display: none !important; }
.shell.graphite-shell > .premium-topbar {
    flex-shrink: 0; height: 70px !important; min-height: 70px !important;
    background: linear-gradient(115deg, #2b3031, #1c2123 65%) !important;
    border: 1px solid #becac62b !important; border-bottom: 0 !important;
    box-shadow: inset 0 1px #ffffff0b !important; padding: 12px 24px !important;
    position: relative;
}
.shell.graphite-shell > main {
    box-sizing: border-box; position: relative; width: 100% !important; max-width: none !important;
    margin: 0 !important; padding: 0 12px 12px !important;
    border: 1px solid #becac62b; border-top: 0; background: #1b2021e8;
}
.shell.graphite-shell > :is(main, .premium-topbar)::after {
    content: '' !important; display: block !important; position: absolute; inset: 0;
    pointer-events: none; z-index: 5;
    background: linear-gradient(#71efc5,#71efc5) left bottom / 14px 1px no-repeat,
                linear-gradient(#71efc5,#71efc5) left bottom / 1px 14px no-repeat,
                linear-gradient(#71efc5,#71efc5) right bottom / 14px 1px no-repeat,
                linear-gradient(#71efc5,#71efc5) right bottom / 1px 14px no-repeat;
    border: 0; box-shadow: none;
}
.shell.graphite-shell > .premium-topbar::after { transform: rotate(180deg); }
.shell.graphite-shell .brand-mark { border-radius: 50% !important; width: 30px !important; height: 30px !important; min-width: 30px; box-shadow: 0 0 0 3px #202627, 0 0 0 4px #a1c2b6 !important; outline: 1px solid #76efc466; outline-offset: 7px; }
.shell.graphite-shell .brand { color: #f2f4f3 !important; font-size: 18px !important; }
.shell.graphite-shell .subtitle { display: none; }
.shell.graphite-shell .topbar-icon-link { color: #d5dcda !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.shell.graphite-shell .topbar-icon-link.active { color: #f5fffb !important; box-shadow: inset 0 -2px #71efc5 !important; }
.shell.graphite-shell .topbar-icon-link:hover { background: #ffffff08 !important; box-shadow: inset 0 -1px #71efc566 !important; }
.shell.graphite-shell .user-label { font-size: 14px !important; text-transform: none !important; }
.shell.graphite-shell .user-presence { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(#717575,#454949); box-shadow: inset 0 0 0 1px #ffffff33; }
.shell.graphite-shell .dashboard-header-tools { background: transparent !important; height: 42px !important; min-height: 42px !important; padding: 2px 10px !important; }
.shell.graphite-shell :is(.workspace-toolbar, .map-page-header) {
    background: linear-gradient(110deg, #303638, #252b2d) !important;
    border: 0 !important; border-top: 1px solid #d4e2dc16 !important; border-bottom: 1px solid #0006 !important;
    padding: 12px 16px !important; gap: 16px; min-height: 64px; margin: 0 0 8px;
    box-shadow: inset 0 1px #ffffff04;
}
.shell.graphite-shell .workspace-toolbar { flex-basis: 64px; }
.shell.graphite-shell :is(.workspace-group-select, .workspace-tile-footer select, .map-mode-buttons) {
    background: linear-gradient(#303638,#24292b) !important; border: 1px solid #bcc8c43b !important; border-radius: 3px !important;
    color: #f1f5f3 !important; box-shadow: inset 0 1px #ffffff06 !important;
}
.shell.graphite-shell :is(.wall-tool, .compact-icon-button) { color: #dce8e2 !important; border-radius: 3px !important; }
.shell.graphite-shell :is(.wall-tool:hover, .compact-icon-button:hover:not(:disabled)) { background: #b3dac414 !important; box-shadow: inset 0 0 0 1px #9dbbae33 !important; }
.shell.graphite-shell :is(.wall-tool.active, .map-mode-button.active) { color: #8dffd2 !important; background: #171e1c !important; border: 1px solid #71efc5 !important; box-shadow: inset 0 0 0 2px #71efc510 !important; border-radius: 3px !important; }
.shell.graphite-shell .workspace-grid { gap: 6px; }
.shell.graphite-shell .workspace-tile { border-radius: 3px; background: #171a1b; }
.shell.graphite-shell .workspace-tile-header { background: linear-gradient(#13181ad9, #13181a55 65%, transparent); }
.shell.graphite-shell .workspace-tile-header strong { color: #fff !important; font-size: 16px !important; }
.shell.graphite-shell .workspace-tile-footer { background: linear-gradient(transparent,#121718b8); }
.shell.graphite-shell .workspace-position { color: #edf8f2 !important; }
.shell.graphite-shell .workspace-footer { background: #202627; padding: 8px 12px; margin-top: 6px; }
.shell.graphite-shell .map-page { width: 100% !important; max-width: none !important; height: calc(100dvh - 120px); padding-top: 0; gap: 0; }
.shell.graphite-shell .map-page-header h1::before { content: none !important; }
.shell.graphite-shell .map-page-header h1 { font-size: 20px !important; margin: 0; }
.shell.graphite-shell .map-page-header p { margin: 3px 0 0; color: #c0cac5; }
.shell.graphite-shell .map-page-panel { width: 100% !important; max-width: none !important; }
.shell.graphite-shell .map-page-map-head { min-height: 26px; padding: 3px 8px 8px; }
.shell.graphite-shell .map-page-wrap { width: 100% !important; max-width: none !important; }
.shell.graphite-shell .maplibregl-ctrl-group { background: #303638 !important; border: 1px solid #b8c8bf3b; box-shadow: none; }
.shell.graphite-shell .maplibregl-ctrl-group button { background: #303638 !important; border-color: #b8c8bf33 !important; }
.shell.graphite-shell .maplibregl-ctrl-group button:hover { background: #46504b !important; }
.shell.graphite-shell .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); }
.shell.graphite-shell :is(.camera-drawer, .workspace-library, .workspace-tile-settings, .compact-admin-panel, .auth-card) { background: #252b2d !important; border-color: #b8c8bf33 !important; }
.shell.graphite-shell:has(.auth-shell) > main { background: #171c1db3; }
.shell.graphite-shell .auth-card { box-shadow: 0 16px 50px #0004 !important; }
@media (max-width: 1000px) {
    .shell.graphite-shell > .premium-topbar { gap: 18px; padding-inline: 16px !important; }
}

/* Monochrome chrome. Operational live/offline status colors remain meaningful. */
.shell.premium-shell.graphite-shell { background-color: #1c1c1c !important; background-blend-mode: luminosity; --cs-blue: #ddd; --cs-cyan: #eee; --cs-muted: #bbb; --wall-border: #ffffff24; }
.shell.graphite-shell > main { background: #1b1b1beb; }
.shell.graphite-shell > :is(main, .premium-topbar)::after, .shell.graphite-shell .brand-mark { filter: grayscale(1); }
.shell.graphite-shell :is(.premium-topbar, .workspace-toolbar, .map-page-header) { background: linear-gradient(110deg, #323232, #252525) !important; border-color: #ffffff20 !important; }
.shell.graphite-shell :is(.camera-drawer, .drawer-section, .detail-section, .camera-details-sidebar, .camera-details-main, .workspace-library, .workspace-tile-settings, .user-row, .permission-card, .auth-card) { background: #272727 !important; border-color: #ffffff20 !important; color: #eee; }
.shell.graphite-shell .drawer-section { border: 0 !important; border-top: 1px solid #ffffff1c !important; border-radius: 0 !important; }
.shell.graphite-shell :is(.drawer-section-title, .workspace-position, .workspace-rate, .brand, .brand-mark),
.shell.graphite-shell .drawer-section-title::before,
.shell.graphite-shell h1::before,
.shell.graphite-shell h2::before { color: #ededed !important; }
.shell.graphite-shell :is(.camera-drawer-head, .camera-drawer-actions) { background: #242424; border-color: #ffffff20; }
.shell.graphite-shell .camera-drawer-close { background: #303030; color: #eee; border-color: #ffffff2b; }
.shell.graphite-shell .camera-drawer-video,
.shell.graphite-shell .camera-drawer-video .offline { background: #191919 !important; border-color: #ffffff18; }
.shell.graphite-shell .camera-drawer-video .offline span { background: #242424; border-color: #555; }
.shell.graphite-shell .offline span { color: #bbb !important; letter-spacing: 0 !important; }
.shell.graphite-shell .drawer-metadata > div { border-color: #ffffff12; }
.shell.graphite-shell :is(.drawer-metadata dt, .drawer-empty, .camera-drawer-title span:not(.camera-drawer-state)) { color: #bbb; }
.shell.graphite-shell .drawer-metadata dd { color: #eee; }
/* Full-details surfaces share the drawer's neutral palette. */
.shell.graphite-shell .operations-page { padding: 16px; color: #eee; }
.operations-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.operations-heading h1 { margin: 0; font-size: 24px; }
.operations-summary { display: flex; flex-wrap: wrap; gap: 32px; padding: 20px 0; border-bottom: 1px solid #ffffff20; }
.operations-summary dt, .operations-page h2 small { color: #bbb; font-size: 13px; font-weight: 400; }
.operations-summary dd { margin: 6px 0 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.operations-page h2 { font-size: 18px; margin: 24px 0 12px; }
.operations-table-wrap { overflow: auto; }
.operations-page table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.operations-page th, .operations-page td { padding: 12px; border-bottom: 1px solid #ffffff18; overflow-wrap: anywhere; }
.operations-page th { background: #292929; color: #ddd; position: sticky; top: 0; }
.operations-events { max-height: 480px; }
@media (max-width: 700px) { .operations-page table { min-width: 560px; } }
.shell.graphite-shell .camera-details-toolbar { background: linear-gradient(110deg, #323232, #252525) !important; border-color: #ffffff20 !important; }
.shell.graphite-shell .camera-details-toolbar .muted { color: #bbb; }
.shell.graphite-shell .camera-details-layout :is(.camera-details-sidebar, .camera-details-main) { background: transparent !important; }
.shell.graphite-shell .camera-details-layout .detail-panel { background: transparent; border: 0; border-top: 1px solid #ffffff20; border-radius: 0; }
.shell.graphite-shell .camera-details-layout .metadata-list > div { border-color: #ffffff18; }
.shell.graphite-shell .camera-details-layout :is(.meta, .field-label, .metadata-list dt, .quality-profile-row label) { color: #bbb; }
.shell.graphite-shell .camera-details-layout :is(h2, .metadata-list dd, .quality-profile-name strong) { color: #eee; }
.shell.graphite-shell .camera-details-layout .detail-video-shell { border-color: #ffffff20; border-radius: 4px 4px 0 0; }
.shell.graphite-shell .camera-details-layout .detail-video-shell .offline { background: #191919; }
.shell.graphite-shell .camera-details-layout .offline span { background: #242424; border-color: #555; }
.shell.graphite-shell .camera-details-layout .detail-video-footer { background: #242424; color: #eee; border-color: #ffffff20; border-radius: 0 0 4px 4px; }
.shell.graphite-shell .camera-details-layout .quality-profile-row { background: #272727; border-color: #ffffff20; border-radius: 4px; }
.shell.graphite-shell .camera-details-layout .source-cap-box { background: #242424; border-color: #ffffff20; color: #ccc; border-radius: 4px; }
.shell.graphite-shell :is(select, input:not([type=checkbox]), .button, .workspace-group-select, .map-mode-buttons) { background: #303030 !important; color: #eee !important; border-color: #ffffff2b !important; }
.shell.graphite-shell option { background: #292929; color: #eee; }
.shell.graphite-shell .button.primary { background: #d4d4d4 !important; color: #171717 !important; border-color: #eee !important; }
.shell.graphite-shell :is(.topbar-icon-link.active, .wall-tool.active, .map-mode-button.active) { color: #fff !important; background: #171717 !important; border-color: #ddd !important; box-shadow: inset 0 -2px #eee !important; }
.shell.graphite-shell :is(.topbar-icon-link:hover, .wall-tool:hover, .compact-icon-button:hover:not(:disabled)) { background: #ffffff12 !important; box-shadow: none !important; }
.shell.graphite-shell :focus-visible { outline-color: #eee !important; }
.shell.graphite-shell input[type=checkbox] { accent-color: #ddd; }
.shell.graphite-shell .workspace-video .offline { background: #191919 !important; }
.shell.graphite-shell .workspace-tile-header { background: linear-gradient(#101010d9, #10101055 65%, transparent); }
.shell.graphite-shell .workspace-tile-footer { background: transparent; min-width: 0; gap: 8px; }
/* Extend the scrim beneath the reserved native playback controls without intercepting them. */
.shell.graphite-shell .workspace-tile-footer::before { content: ''; position: absolute; inset: 0 0 -34px; background: linear-gradient(transparent, #101010d9); z-index: -1; pointer-events: none; }
.shell.graphite-shell .workspace-tile-footer .quality-cog { width: 30px; height: 30px; min-width: 30px; min-height: 30px; flex: 0 0 30px; padding: 6px; color: #eee; }
.shell.graphite-shell .workspace-position { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; line-height: 1.3; margin-left: auto; }
.shell.graphite-shell .workspace-quality-menu { position: absolute; z-index: 6; left: 8px; bottom: 80px; display: grid; width: 132px; max-height: calc(100% - 90px); overflow: auto; padding: 4px; background: #252525; border: 1px solid #777; border-radius: 4px; box-shadow: 0 8px 24px #0008; }
.shell.graphite-shell .workspace-quality-menu button { justify-content: flex-start; min-height: 34px; background: transparent; border: 0; color: #ddd; }
.shell.graphite-shell .workspace-quality-menu button.selected { background: #e0e0e0; color: #151515; font-weight: 600; }
.shell.graphite-shell .workspace-quality-menu button:hover { box-shadow: inset 0 0 0 1px #bbb; }
.shell.graphite-shell .map-empty-state { flex: 1; min-height: 0 !important; height: auto !important; margin: 0; background: #202020 !important; border: 1px solid #ffffff1c !important; }
.shell.graphite-shell .map-empty-icon { color: #ddd; background: #292929; border-color: #666; }
.shell.graphite-shell .map-page-local-grid { flex: 1; width: 100%; height: 100% !important; min-height: 0 !important; max-height: 100%; }
.shell.graphite-shell .live-grid-bg { fill: #202020; }
.shell.graphite-shell .map-page-canvas canvas { filter: grayscale(1); }
.shell.graphite-shell :is(.accurate-map-shell, .accurate-map, .offline-map-shell, .offline-map, .map-page-canvas, .offline-map-unavailable) { background: #202020; color: #ddd; }
.shell.graphite-shell :is(.map-camera-chip, .offline-camera-label, .offline-grid-label, .offline-map-status) { background: #252525ed; color: #eee; border-color: #ffffff24; }
.shell.graphite-shell :is(.map-camera-chip small, .offline-camera-label small) { color: #bbb; }
.shell.graphite-shell .map-camera-chip-copy strong { color: #eee; }
.shell.graphite-shell .map-camera-chip:hover { background: #383838; border-color: #777; }
.shell.graphite-shell .maplibregl-ctrl-attrib { background: #242424ed !important; color: #bbb; }
.shell.graphite-shell .maplibregl-ctrl-attrib a { color: #ddd; }
.shell.graphite-shell .map-camera-chip.selected { box-shadow: inset 3px 0 #ddd; }
.shell.graphite-shell .offline-camera-marker.selected { outline-color: #ddd; }
.shell.graphite-shell .maplibregl-ctrl-group,
.shell.graphite-shell .maplibregl-ctrl-group button { background: #303030 !important; border-color: #ffffff24 !important; }
.shell.graphite-shell .maplibregl-ctrl-group button:hover { background: #444 !important; }
.shell.graphite-shell .map-empty-state { background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px) !important; background-size: 48px 48px !important; }
.shell.graphite-shell :is(.live-grid-line, .live-grid-major) { stroke: #888; }
.shell.graphite-shell :is(.live-grid-axis, .north-label, .map-page-header p) { color: #bbb; }
.camera-link-preview { position: fixed; right: 20px; bottom: 20px; z-index: 2000; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; background: #242424; border: 1px solid #888; border-radius: 4px; color: #eee; box-shadow: 0 12px 50px #0009; }
.camera-link-preview header { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.camera-link-preview strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 14px/1.4 "Segoe UI", sans-serif; }
.camera-link-preview button { background: transparent; color: #eee; border: 0; width: 32px; height: 32px; font-size: 23px; }
.camera-link-preview iframe { width: 100%; height: 280px; max-height: calc(100dvh - 140px); border: 0; background: #171717; }
.camera-link-preview > a { color: #eee; padding: 12px; text-align: center; border-top: 1px solid #555; }
.camera-preview-document .shell.premium-shell.graphite-shell { padding: 0; }
.camera-preview-document .graphite-shell > .premium-topbar,
.camera-preview-document :is(.dashboard-header-tools, .workspace-toolbar, .workspace-pagebar, .map-page-header, .map-page-map-head, .map-camera-strip, .map-no-positions, .workspace-tile-header, .workspace-tile-footer) { display: none !important; }
.camera-preview-document .graphite-shell > main { padding: 0 !important; border: 0; }
.camera-preview-document .shell.graphite-shell .map-page { height: 100dvh !important; min-height: 0 !important; }
.camera-preview-document :is([data-preview-url], .offline-camera-marker) { pointer-events: none; }
@media (max-width: 700px) {
    .shell.premium-shell.graphite-shell { padding: 7px; }
    .shell.graphite-shell > .premium-topbar { height: 58px !important; min-height: 58px !important; padding: 6px 10px !important; gap: 4px; }
    .shell.graphite-shell > main { padding: 0 5px 5px !important; }
    .shell.graphite-shell .brand { font-size: 15px !important; }
    .shell.graphite-shell :is(.workspace-toolbar, .map-page-header) { padding: 8px !important; gap: 8px; }
    .shell.graphite-shell .workspace-toolbar { flex-basis: 56px; min-height: 56px; }
    .shell.graphite-shell .workspace-tile-header strong { font-size: 14px !important; }
    .shell.graphite-shell .map-page { height: calc(100dvh - 80px); }
}
