/* 与宿主共用蓝色面板、字体和 1672×941 缩放画布；所有模块样式限定在根节点内。 */
#navigation a { flex: 1 1 0; min-width: 0; gap: 10px; }
.sikong-page {
  display: grid; grid-template-rows: 56px minmax(0, 1fr) 172px 22px;
  gap: 10px; color: var(--text);
}
.sikong-page [hidden] { display: none !important; }
.sikong-page h1 { font-size: 19px; letter-spacing: 1px; }
.sikong-page h2 { font-size: inherit; font-weight: inherit; }
.sikong-page h3 { font-size: 16px; }
.sikong-page i { font-style: normal; }
.sikong-page .amber { color: var(--orange); }
.sikong-page .sk-toolbar { display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 0 14px; }
.sikong-page .sk-module-title { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sikong-page .sk-module-title img { width: 38px; height: 38px; }
.sikong-page .sk-module-title span { color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.sikong-page .fleet-overview { display: flex; align-items: center; gap: 22px; }
.sikong-page .fleet-overview > span { display: flex; gap: 10px; align-items: center; color: var(--muted); white-space: nowrap; }
.sikong-page .fleet-overview b { font-size: 26px; color: var(--cyan); font-variant-numeric: tabular-nums; }
.sikong-page .source-control { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 12px; flex-shrink: 0; }
.sikong-page .source-control.demo-mode { color: var(--yellow); }
.sikong-page .source-control select { font-size: 13px; width: 124px; min-width: 124px; flex: 0 0 124px; padding: 5px 28px 5px 12px; line-height: 20px; }
.sikong-page .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 31px; min-width: 31px; height: 31px; padding: 0; font-size: 19px; border-radius: 4px; }
.sikong-page .workspace { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 10px; min-height: 0; }
.sikong-page .video-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 108px; gap: 10px; }
.sikong-page .information-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(190px, 1fr) 141px 111px; gap: 10px; }
.sikong-page .panel-title { height: 34px; font-size: 16px; padding-left: 18px; gap: 8px; }
.sikong-page .panel-title::before { height: 18px; top: 8px; }
.sikong-page .sk-subtitle { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.sikong-page .hero { position: relative; background: #021627; min-height: 0; }
.sikong-page .hero > video, .sikong-page .demo-image { position: absolute; top: 34px; left: 0; width: 100%; height: calc(100% - 34px); object-fit: contain; background: #021627; }
.sikong-page .demo-image { object-fit: cover; }
.sikong-page .video-topbar { position: absolute; top: 45px; left: 12px; right: 12px; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sikong-page .video-selects { display: flex; gap: 7px; max-width: 77%; flex-wrap: wrap; }
.sikong-page .video-selects label { max-width: 100%; }
.sikong-page .video-selects select { background: transparent; border-color: transparent; box-shadow: none; text-shadow: 0 1px 2px #001522, 0 0 5px #00152299; font-size: 16px; font-weight: 600; max-width: 100%; height: 32px; text-overflow: ellipsis; padding: 3px 25px 3px 8px; }
.sikong-page .video-selects option { background: #032039; color: var(--text); text-shadow: none; }
.sikong-page .video-selects .camera-select { font-size: 13px; max-width: 170px; }
.sikong-page .video-actions { display: flex; align-items: center; gap: 9px; }
.sikong-page .live-badge { font-size: 12px; border: 1px solid #10557c; border-radius: 3px; padding: 6px 10px; background: #032039e8; color: var(--muted); white-space: nowrap; }
.sikong-page .live-badge.playing { color: var(--green); border-color: #16775c; }
.sikong-page .live-badge.demo { color: var(--yellow); border-color: #716342; }
.sikong-page .video-meta { position: absolute; top: 85px; left: 13px; right: 13px; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 12px; pointer-events: none; }
.sikong-page .video-meta > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; text-shadow: 0 1px 2px #001522, 0 0 5px #00152299; }
.sikong-page .cache-notice { color: var(--muted); }
.sikong-page .cache-notice.is-cached { color: var(--orange); }
.sikong-page .cache-notice:empty { display: none; }
.sikong-page .video-placeholder { position: absolute; inset: 106px 15px 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.sikong-page .video-placeholder > i { font-size: 44px; color: #387397; }
.sikong-page .video-placeholder h2 { font-size: 18px; }
.sikong-page .video-placeholder p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 95%; overflow-wrap: anywhere; }
.sikong-page .primary-button { padding: 4px 16px; color: var(--cyan); border-color: #168bff; background: #063a60; }
.sikong-page .telemetry-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 67px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px 22px; gap: 12px; background: #031d35ed; border-top: 1px solid #136185; }
.sikong-page .telemetry { display: flex; align-items: center; gap: 15px; min-width: 0; }
.sikong-page .telemetry > i { color: var(--cyan); font-size: 30px; }
.sikong-page .telemetry > div { display: flex; flex-direction: column; gap: 1px; }
.sikong-page .telemetry span { color: var(--muted); font-size: 12px; }
.sikong-page .telemetry strong { font-size: 23px; font-variant-numeric: tabular-nums; line-height: 1.3; white-space: nowrap; }
.sikong-page .telemetry small { font-size: 13px; margin-left: 3px; font-weight: 400; }
.sikong-page .device-previews { display: grid; gap: 10px; overflow: auto; min-height: 0; }
.sikong-page .device-card { position: relative; padding: 0; min-width: 0; min-height: 108px; background: #03223b; border: 1px solid #10557c; overflow: hidden; text-align: left; }
.sikong-page .device-card.selected { border: 2px solid var(--cyan); }
.sikong-page .device-card img, .sikong-page .preview-video { width: 100%; height: 100%; object-fit: cover; }
.sikong-page .device-card-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 7px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; background: #02203beb; font-size: 13px; }
.sikong-page .device-card-footer strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sikong-page .device-tag { font-size: 11px; color: var(--green); flex-shrink: 0; }
.sikong-page .device-tag.offline { color: #8296ac; }
.sikong-page .device-card-placeholder { display: grid; place-items: center; height: 100%; padding-bottom: 28px; background: radial-gradient(ellipse at center, #074164, #031c35); }
.sikong-page .device-card-placeholder > i { font-size: 37px; color: #5dcaff; }
.sikong-page .offline-device > i { color: #61788c; }
.sikong-page .map-panel { display: flex; flex-direction: column; min-height: 0; }
.sikong-page .map-panel .panel-title { flex-shrink: 0; }
.sikong-page .map-types { display: flex; gap: 4px; margin-left: auto; }
.sikong-page .map-types button { padding: 2px 12px; height: 24px; min-height: 24px; font-size: 12px; border-radius: 3px; }
.sikong-page .map-types button.active { background: linear-gradient(#08699b, #03426f); border-color: #15b7e9; }
.sikong-page .map-body { position: relative; min-height: 0; flex: 1; background: #07293d; }
.sikong-page #sk-map { width: 100%; height: 100%; background: #05233b; }
.sikong-page .map-message { position: absolute; top: 7px; left: 8px; right: 8px; z-index: 500; background: #04223de8; padding: 6px 8px; font-size: 12px; color: var(--yellow); }
.sikong-page .map-fit { position: absolute; right: 9px; top: 9px; z-index: 450; background: #032039ed; }
.sikong-page .map-legend { position: absolute; left: 8px; top: auto; right: auto; bottom: 6px; width: auto; height: auto; z-index: 450; display: flex; gap: 12px; background: #032039df; padding: 4px 7px; font-size: 11px; }
.sikong-page .map-legend span::before { display: inline-block; content: ""; width: 18px; margin-right: 5px; border-top: 2px dashed var(--cyan); vertical-align: middle; }
.sikong-page .map-legend .track-key::before { border-top: 2px solid var(--yellow); }
.sikong-page .wayline-control { display: flex; align-items: center; gap: 8px; flex-shrink: 0; height: 33px; padding: 2px 10px; font-size: 12px; border-top: 1px solid #08446b; }
.sikong-page .wayline-control > i { font-size: 17px; color: var(--cyan); }
.sikong-page .wayline-control select { flex: 1; width: 0; min-width: 50px; height: 25px; padding: 0 18px 0 7px; font-size: 12px; }
.sikong-page #sk-waylineSummary { color: var(--muted); white-space: nowrap; }
.sikong-page .device-marker > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #a5f4ff; background: #0876b9; box-shadow: 0 0 9px #20d9ff88; color: #fff; font-size: 19px; }
.sikong-page .dock-marker > i { border-color: #9bf2d7; background: #087970; }
.sikong-page .cached-marker > i { background: #535f70; border-color: #b2c3cd; box-shadow: none; }
.sikong-page .device-marker > span { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); background: #04213fdb; padding: 2px 7px; border-radius: 3px; white-space: nowrap; color: #fff; font-size: 11px; }
.sikong-page .leaflet-popup-content-wrapper, .sikong-page .leaflet-popup-tip { background: #063455; color: #eef6ff; }
.sikong-page .leaflet-control-attribution { font-size: 9px; background: #032039c9; color: var(--muted); }
.sikong-page .leaflet-control-scale-line { color: white; text-shadow: 0 1px #012; background: #03203966; border-color: #b4d5e5; }
.sikong-page .task-content { padding: 8px 13px 5px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; }
.sikong-page .task-title-row { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; min-width: 0; }
.sikong-page .task-title-row h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sikong-page .status-pill { margin-left: auto; padding: 2px 9px; border: 1px solid #33697e; border-radius: 3px; font-size: 12px; white-space: nowrap; color: var(--muted); }
.sikong-page .status-pill.executing { color: var(--cyan); border-color: #168bff; background: #044078; }
.sikong-page .status-pill.success { color: var(--green); border-color: #087764; }
.sikong-page .status-pill.failed { color: var(--red); border-color: #9b3b54; }
.sikong-page .task-progress { display: flex; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }
.sikong-page .task-progress span, .sikong-page .task-time span { color: var(--muted); white-space: nowrap; }
.sikong-page .task-progress progress { flex: 1; min-width: 35px; width: 60px; }
.sikong-page .task-progress strong { font-size: 12px; white-space: nowrap; }
.sikong-page .task-time { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sikong-page .task-empty-text { color: var(--muted); grid-column: 1 / -1; font-size: 12px; line-height: 1.4; }
.sikong-page .section-note { margin-left: auto; font-size: 11px; color: var(--orange); font-weight: 400; }
.sikong-page .dock-environment { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; padding: 0 12px; border-top: 1px solid #08446b; background: #042742; color: var(--muted); font-size: 11px; }
.sikong-page .dock-environment > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sikong-page .dock-environment > span:first-child { max-width: 42%; overflow: hidden; text-overflow: ellipsis; }
.sikong-page .dock-environment i { color: #5dcaff; font-size: 15px; }
.sikong-page .task-panel { display: flex; flex-direction: column; }
.sikong-page .task-panel .task-content { flex: 1; min-height: 0; overflow: auto; }
.sikong-page .text-button { background: transparent; border: 0; box-shadow: none; padding: 0 4px; min-height: 22px; color: #7ed5fb; font-size: 12px; }
.sikong-page .health-panel .text-button { margin-left: auto; font-weight: 400; }
.sikong-page .health-list { height: calc(100% - 34px); overflow: auto; padding: 1px 12px; }
.sikong-page .alarm-row { display: grid; grid-template-columns: 15px minmax(60px, 1fr) minmax(80px, 2fr) auto; gap: 8px; min-height: 24px; align-items: center; font-size: 12px; border-bottom: 1px solid #114061; }
.sikong-page .alarm-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sikong-page .alarm-row > i { color: var(--yellow); font-size: 15px; }
.sikong-page .alarm-row.warning > i { color: var(--orange); }
.sikong-page .alarm-code, .sikong-page .alarm-row time { color: var(--muted); font-size: 11px; }
.sikong-page .health-empty { min-height: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sikong-page .health-empty > i { color: var(--green); font-size: 22px; }
.sikong-page .health-empty.failed > i { color: var(--orange); }
.sikong-page .task-table-heading { justify-content: space-between; }
.sikong-page .task-filters { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.sikong-page .task-filters select { height: 26px; font-size: 12px; padding: 1px 25px 1px 10px; }
.sikong-page #sk-taskCounts b { color: var(--cyan); }
.sikong-page #sk-taskCounts .error-count { color: var(--red); }
.sikong-page .table-scroll { height: calc(100% - 34px); overflow: auto; position: relative; }
.sikong-page table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 13px; }
.sikong-page th { text-align: left; position: sticky; top: 0; height: 31px; background: #063150; color: #b5d6ee; font-weight: 400; z-index: 1; }
.sikong-page td { height: 32px; border-bottom: 1px solid #07375a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sikong-page th, .sikong-page td { padding: 4px 16px; }
.sikong-page th.row-number { width: 60px; }
.sikong-page th:last-child { width: 300px; }
.sikong-page .task-row { cursor: pointer; }
.sikong-page .task-row:nth-child(even) { background: #06335655; }
.sikong-page .task-row:hover { background: #084169; }
.sikong-page .task-row.selected { background: #064074; box-shadow: inset 3px 0 var(--cyan); }
.sikong-page .task-row.executing td:nth-child(4) { color: var(--cyan); }
.sikong-page .task-row.success td:nth-child(4) { color: var(--green); }
.sikong-page .task-row.failed td:nth-child(4) { color: var(--red); }
.sikong-page .progress-wrap { display: flex; align-items: center; gap: 12px; }
.sikong-page .progress-wrap span { min-width: 56px; }
.sikong-page progress { height: 5px; border: 0; border-radius: 3px; background: #123f5e; accent-color: var(--cyan); overflow: hidden; }
.sikong-page progress::-webkit-progress-bar { background: #123f5e; }
.sikong-page progress::-webkit-progress-value { background: linear-gradient(90deg, #168bff, #20d9ff); }
.sikong-page .progress-wrap progress { width: 90px; }
.sikong-page .table-empty { min-height: 90px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; padding: 14px; }
.sikong-page .table-empty > i { font-size: 24px; color: #3686b7; }
.sikong-page .statusbar, .sikong-page .connection-status { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); }
.sikong-page .statusbar { justify-content: space-between; padding: 0 4px; }
.sikong-page .connection-status > i { color: var(--cyan); }
.sikong-page .separator { opacity: .45; }
.sikong-page .refresh-button { font-size: 16px; }
.sikong-page .alarms-dialog { background: #03213b; color: var(--text); border: 1px solid #168bff; border-radius: 8px; width: min(760px, 92vw); max-height: 75vh; padding: 0 20px 16px; }
.sikong-page .alarms-dialog::backdrop { background: #001022b3; }
.sikong-page .dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; font-size: 20px; }
.sikong-page .alarms-dialog .alarm-row { min-height: 44px; font-size: 14px; }
.sikong-page .dialog-footnote { color: var(--muted); font-size: 12px; line-height: 1.7; padding-top: 16px; }
.sikong-page .toast { position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); z-index: 2000; background: #07395beb; border: 1px solid var(--cyan); border-radius: 4px; padding: 10px 18px; max-width: 80%; color: white; }
.sikong-page:fullscreen { width: 100vw; height: 100dvh; padding: 16px; background: #031c35; }
.sikong-page .hero:fullscreen { width: 100vw; height: 100dvh; border-radius: 0; }
@media (max-width: 1099px) {
  #navigation a { flex: 0 0 133px; }
  .sikong-page { width: 100%; height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; }
  .sikong-page > .panel { min-height: 0; }
  .sikong-page .sk-toolbar { flex-wrap: wrap; padding: 12px; gap: 12px; }
  .sikong-page .fleet-overview { margin-left: auto; gap: 16px; }
  .sikong-page .source-control { margin-left: 0; }
  .sikong-page .workspace { grid-template-columns: minmax(0, 1fr); }
  .sikong-page .video-column { grid-template-rows: 410px 105px; }
  .sikong-page .information-column { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 150px 130px; }
  .sikong-page .map-panel { grid-row: span 2; }
  .sikong-page .today-tasks { height: 225px; }
  .sikong-page .panel-title { flex-wrap: nowrap; min-height: 34px !important; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
  .sikong-page table { min-width: 900px; }
  .sikong-page .task-filters { gap: 10px; }
  .sikong-page #sk-taskCounts { display: none; }
  .sikong-page .statusbar { flex-wrap: wrap; padding-bottom: 8px; }
  .sikong-page:fullscreen { overflow: auto; }
}
@media (max-width: 679px) {
  .sikong-page .sk-module-title { flex: 1; }
  .sikong-page .fleet-overview { order: 3; width: 100%; justify-content: space-between; gap: 6px; margin: 0; }
  .sikong-page .fleet-overview > span { font-size: 12px; gap: 5px; }
  .sikong-page .fleet-overview b { font-size: 23px; }
  .sikong-page .source-control > span { display: none; }
  .sikong-page .video-column { grid-template-rows: 350px 102px; }
  .sikong-page .information-column { grid-template-columns: minmax(0, 1fr); grid-template-rows: 290px 153px 133px; }
  .sikong-page .map-panel { grid-row: auto; }
  .sikong-page .video-selects select { font-size: 13px; max-width: 205px; }
  .sikong-page .video-selects { max-width: 65%; }
  .sikong-page .video-meta { top: 113px; flex-wrap: wrap; }
  .sikong-page .video-placeholder { top: 142px; }
  .sikong-page .video-placeholder > i { display: none; }
  .sikong-page .video-placeholder h2 { font-size: 16px; }
  .sikong-page .telemetry-bar { padding: 8px; gap: 6px; }
  .sikong-page .telemetry { gap: 3px; }
  .sikong-page .telemetry > i { display: none; }
  .sikong-page .telemetry strong { font-size: 21px; }
  .sikong-page .device-card-footer { padding: 5px; flex-wrap: wrap; gap: 2px; }
  .sikong-page .device-card-footer strong { font-size: 11px; width: 100%; }
  .sikong-page .connection-status { flex-wrap: wrap; gap: 5px; }
  .sikong-page .alarms-dialog .alarm-row { grid-template-columns: 15px minmax(40px, 1fr) minmax(60px, 2fr); }
  .sikong-page .alarms-dialog .alarm-code, .sikong-page .alarms-dialog time { grid-column: 2 / -1; }
}
