/* packages/widgets/Source/shared.css */
.cesium-svgPath-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cesium-button {
  display: inline-block;
  position: relative;
  background: #303336;
  border: 1px solid #444;
  color: #edffff;
  fill: #edffff;
  border-radius: 4px;
  padding: 5px 12px;
  margin: 2px 3px;
  cursor: pointer;
  overflow: hidden;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.cesium-button:focus {
  color: #fff;
  fill: #fff;
  border-color: #ea4;
  outline: none;
}
.cesium-button:hover {
  color: #fff;
  fill: #fff;
  background: #48b;
  border-color: #aef;
  box-shadow: 0 0 8px #fff;
}
.cesium-button:active {
  color: #000;
  fill: #000;
  background: #adf;
  border-color: #fff;
  box-shadow: 0 0 8px #fff;
}
.cesium-button:disabled,
.cesium-button-disabled,
.cesium-button-disabled:focus,
.cesium-button-disabled:hover,
.cesium-button-disabled:active {
  background: #303336;
  border-color: #444;
  color: #646464;
  fill: #646464;
  box-shadow: none;
  cursor: default;
}
.cesium-button option {
  background-color: #000;
  color: #eee;
}
.cesium-button option:disabled {
  color: #777;
}
.cesium-button input,
.cesium-button label {
  cursor: pointer;
}
.cesium-button input {
  vertical-align: sub;
}
.cesium-toolbar-button {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border-radius: 14%;
  padding: 0;
  vertical-align: middle;
  z-index: 0;
}
.cesium-performanceDisplay-defaultContainer {
  position: absolute;
  top: 50px;
  right: 10px;
  text-align: right;
}
.cesium-performanceDisplay {
  background-color: rgba(40, 40, 40, 0.7);
  padding: 7px;
  border-radius: 5px;
  border: 1px solid #444;
  font: bold 12px sans-serif;
}
.cesium-performanceDisplay-fps {
  color: #e52;
}
.cesium-performanceDisplay-throttled {
  color: #a42;
}
.cesium-performanceDisplay-ms {
  color: #de3;
}

/* packages/widgets/Source/Animation/Animation.css */
.cesium-animation-theme {
  visibility: hidden;
  display: block;
  position: absolute;
  z-index: -100;
}
.cesium-animation-themeNormal {
  color: #222;
}
.cesium-animation-themeHover {
  color: #4488b0;
}
.cesium-animation-themeSelect {
  color: #242;
}
.cesium-animation-themeDisabled {
  color: #333;
}
.cesium-animation-themeKnob {
  color: #222;
}
.cesium-animation-themePointer {
  color: #2e2;
}
.cesium-animation-themeSwoosh {
  color: #8ac;
}
.cesium-animation-themeSwooshHover {
  color: #aef;
}
.cesium-animation-svgText {
  fill: #edffff;
  font-family: Sans-Serif;
  font-size: 15px;
  text-anchor: middle;
}
.cesium-animation-blank {
  fill: #000;
  fill-opacity: 0.01;
  stroke: none;
}
.cesium-animation-rectButton {
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.cesium-animation-rectButton .cesium-animation-buttonGlow {
  fill: #fff;
  stroke: none;
  display: none;
}
.cesium-animation-rectButton:hover .cesium-animation-buttonGlow {
  display: block;
}
.cesium-animation-rectButton .cesium-animation-buttonPath {
  fill: #edffff;
}
.cesium-animation-rectButton .cesium-animation-buttonMain {
  stroke: #444;
  stroke-width: 1.2;
}
.cesium-animation-rectButton:hover .cesium-animation-buttonMain {
  stroke: #aef;
}
.cesium-animation-rectButton:active .cesium-animation-buttonMain {
  fill: #abd6ff;
}
.cesium-animation-buttonDisabled {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.cesium-animation-buttonDisabled .cesium-animation-buttonMain {
  stroke: #555;
}
.cesium-animation-buttonDisabled .cesium-animation-buttonPath {
  fill: #818181;
}
.cesium-animation-buttonDisabled .cesium-animation-buttonGlow {
  display: none;
}
.cesium-animation-buttonToggled .cesium-animation-buttonGlow {
  display: block;
  fill: #2e2;
}
.cesium-animation-buttonToggled .cesium-animation-buttonMain {
  stroke: #2e2;
}
.cesium-animation-buttonToggled:hover .cesium-animation-buttonGlow {
  fill: #fff;
}
.cesium-animation-buttonToggled:hover .cesium-animation-buttonMain {
  stroke: #2e2;
}
.cesium-animation-shuttleRingG {
  cursor: pointer;
}
.cesium-animation-shuttleRingPointer {
  cursor: pointer;
}
.cesium-animation-shuttleRingPausePointer {
  cursor: pointer;
}
.cesium-animation-shuttleRingBack {
  fill: #181818;
  fill-opacity: 0.8;
  stroke: #333;
  stroke-width: 1.2;
}
.cesium-animation-shuttleRingSwoosh line {
  stroke: #8ac;
  stroke-width: 3;
  stroke-opacity: 0.2;
  stroke-linecap: round;
}
.cesium-animation-knobOuter {
  cursor: pointer;
  stroke: #444;
  stroke-width: 1.2;
}
.cesium-animation-knobInner {
  cursor: pointer;
}

/* packages/widgets/Source/BaseLayerPicker/BaseLayerPicker.css */
.cesium-baseLayerPicker-selected {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.cesium-baseLayerPicker-dropDown {
  display: block;
  position: absolute;
  box-sizing: content-box;
  top: auto;
  right: 0;
  width: 320px;
  max-height: 500px;
  margin-top: 5px;
  background-color: rgba(38, 38, 38, 0.75);
  border: 1px solid #444;
  padding: 6px;
  overflow: auto;
  border-radius: 10px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transform: translate(0, -20%);
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s 0.2s,
    opacity 0.2s ease-in,
    transform 0.2s ease-in;
}
.cesium-baseLayerPicker-dropDown-visible {
  transform: translate(0, 0);
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.cesium-baseLayerPicker-sectionTitle {
  display: block;
  font-family: sans-serif;
  font-size: 16pt;
  text-align: left;
  color: #edffff;
  margin-bottom: 4px;
}
.cesium-baseLayerPicker-choices {
  margin-bottom: 5px;
}
.cesium-baseLayerPicker-categoryTitle {
  color: #edffff;
  font-size: 11pt;
}
.cesium-baseLayerPicker-choices {
  display: block;
  border: 1px solid #888;
  border-radius: 5px;
  padding: 5px 0;
}
.cesium-baseLayerPicker-item {
  display: inline-block;
  vertical-align: top;
  margin: 2px 5px;
  width: 64px;
  text-align: center;
  cursor: pointer;
}
.cesium-baseLayerPicker-itemLabel {
  display: block;
  font-family: sans-serif;
  font-size: 8pt;
  text-align: center;
  vertical-align: middle;
  color: #edffff;
  cursor: pointer;
  word-wrap: break-word;
}
.cesium-baseLayerPicker-item:hover .cesium-baseLayerPicker-itemLabel,
.cesium-baseLayerPicker-item:focus .cesium-baseLayerPicker-itemLabel {
  text-decoration: underline;
}
.cesium-baseLayerPicker-itemIcon {
  display: inline-block;
  position: relative;
  width: inherit;
  height: auto;
  background-size: 100% 100%;
  border: solid 1px #444;
  border-radius: 9px;
  color: #edffff;
  margin: 0;
  padding: 0;
  cursor: pointer;
  box-sizing: border-box;
}
.cesium-baseLayerPicker-item:hover .cesium-baseLayerPicker-itemIcon {
  border-color: #fff;
  box-shadow: 0 0 8px #fff, 0 0 8px #fff;
}
.cesium-baseLayerPicker-selectedItem .cesium-baseLayerPicker-itemLabel {
  color: rgb(189, 236, 248);
}
.cesium-baseLayerPicker-selectedItem .cesium-baseLayerPicker-itemIcon {
  border: double 4px rgb(189, 236, 248);
}

/* packages/engine/Source/Widget/CesiumWidget.css */
.cesium-widget {
  font-family: sans-serif;
  font-size: 16px;
  overflow: hidden;
  display: block;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.cesium-widget,
.cesium-widget canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
}
.cesium-widget-credits {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  color: #fff;
  font-size: 10px;
  text-shadow: 0px 0px 2px #000000;
  padding-right: 5px;
}
.cesium-widget-errorPanel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
}
.cesium-widget-errorPanel:before {
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  content: "";
}
.cesium-widget-errorPanel-content {
  width: 75%;
  max-width: 500px;
  display: inline-block;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #510c00;
  border-radius: 7px;
  background-color: #f0d9d5;
  font-size: 14px;
  color: #510c00;
}
.cesium-widget-errorPanel-content.expanded {
  max-width: 75%;
}
.cesium-widget-errorPanel-header {
  font-size: 18px;
  font-family:
    "Open Sans",
    Verdana,
    Geneva,
    sans-serif;
  background: #d69d93;
  border-bottom: 2px solid #510c00;
  padding-bottom: 10px;
  border-radius: 3px 3px 0 0;
  padding: 15px;
}
.cesium-widget-errorPanel-scroll {
  overflow: auto;
  font-family:
    "Open Sans",
    Verdana,
    Geneva,
    sans-serif;
  white-space: pre-wrap;
  padding: 0 15px;
  margin: 10px 0 20px 0;
}
.cesium-widget-errorPanel-buttonPanel {
  padding: 0 15px;
  margin: 10px 0 20px 0;
  text-align: right;
}
.cesium-widget-errorPanel-buttonPanel button {
  border-color: #510c00;
  background: #d69d93;
  color: #202020;
  margin: 0;
}
.cesium-widget-errorPanel-buttonPanel button:focus {
  border-color: #510c00;
  background: #f0d9d5;
  color: #510c00;
}
.cesium-widget-errorPanel-buttonPanel button:hover {
  border-color: #510c00;
  background: #f0d9d5;
  color: #510c00;
}
.cesium-widget-errorPanel-buttonPanel button:active {
  border-color: #510c00;
  background: #b17b72;
  color: #510c00;
}
.cesium-widget-errorPanel-more-details {
  text-decoration: underline;
  cursor: pointer;
}
.cesium-widget-errorPanel-more-details:hover {
  color: #2b0700;
}

/* packages/widgets/Source/CesiumInspector/CesiumInspector.css */
.cesium-cesiumInspector {
  border-radius: 5px;
  transition: width ease-in-out 0.25s;
  background: rgba(48, 51, 54, 0.8);
  border: 1px solid #444;
  color: #edffff;
  display: inline-block;
  position: relative;
  padding: 4px 12px;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: hidden;
}
.cesium-cesiumInspector-button {
  text-align: center;
  font-size: 11pt;
}
.cesium-cesiumInspector-visible .cesium-cesiumInspector-button {
  border-bottom: 1px solid #aaa;
  padding-bottom: 3px;
}
.cesium-cesiumInspector input:enabled,
.cesium-cesiumInspector-button {
  cursor: pointer;
}
.cesium-cesiumInspector-visible {
  width: 185px;
  height: auto;
}
.cesium-cesiumInspector-hidden {
  width: 122px;
  height: 17px;
}
.cesium-cesiumInspector-sectionContent {
  max-height: 600px;
}
.cesium-cesiumInspector-section-collapsed .cesium-cesiumInspector-sectionContent {
  max-height: 0;
  padding: 0 !important;
  overflow: hidden;
}
.cesium-cesiumInspector-dropDown {
  margin: 5px 0;
  font-family: sans-serif;
  font-size: 10pt;
  width: 185px;
}
.cesium-cesiumInspector-frustumStatistics {
  padding-left: 10px;
  padding: 5px;
  background-color: rgba(80, 80, 80, 0.75);
}
.cesium-cesiumInspector-pickButton {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
  color: #edffff;
  border-radius: 5px;
  padding: 3px 7px;
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0 auto;
}
.cesium-cesiumInspector-pickButton:focus {
  outline: none;
}
.cesium-cesiumInspector-pickButton:active,
.cesium-cesiumInspector-pickButtonHighlight {
  color: #000;
  background: #adf;
  border-color: #fff;
  box-shadow: 0 0 8px #fff;
}
.cesium-cesiumInspector-center {
  text-align: center;
}
.cesium-cesiumInspector-sectionHeader {
  font-weight: bold;
  font-size: 10pt;
  margin: 0;
  cursor: pointer;
}
.cesium-cesiumInspector-pickSection {
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 3px;
  margin-bottom: 5px;
}
.cesium-cesiumInspector-sectionContent {
  margin-bottom: 10px;
  transition: max-height 0.25s;
}
.cesium-cesiumInspector-tileText {
  padding-bottom: 10px;
  border-bottom: 1px solid #aaa;
}
.cesium-cesiumInspector-relativeText {
  padding-top: 10px;
}
.cesium-cesiumInspector-sectionHeader::before {
  margin-right: 5px;
  content: "-";
  width: 1ch;
  display: inline-block;
}
.cesium-cesiumInspector-section-collapsed .cesium-cesiumInspector-sectionHeader::before {
  content: "+";
}

/* packages/widgets/Source/Cesium3DTilesInspector/Cesium3DTilesInspector.css */
ul.cesium-cesiumInspector-statistics {
  margin: 0;
  padding-top: 3px;
  padding-bottom: 3px;
}
ul.cesium-cesiumInspector-statistics + ul.cesium-cesiumInspector-statistics {
  border-top: 1px solid #aaa;
}
.cesium-cesiumInspector-slider {
  margin-top: 5px;
}
.cesium-cesiumInspector-slider input[type=number] {
  text-align: left;
  background-color: #222;
  outline: none;
  border: 1px solid #444;
  color: #edffff;
  width: 100px;
  border-radius: 3px;
  padding: 1px;
  margin-left: 10px;
  cursor: auto;
}
.cesium-cesiumInspector-slider input[type=number]::-webkit-outer-spin-button,
.cesium-cesiumInspector-slider input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cesium-cesiumInspector-slider input[type=range] {
  margin-left: 5px;
  vertical-align: middle;
}
.cesium-cesiumInspector-hide .cesium-cesiumInspector-styleEditor {
  display: none;
}
.cesium-cesiumInspector-styleEditor {
  padding: 10px;
  border-radius: 5px;
  background: rgba(48, 51, 54, 0.8);
  border: 1px solid #444;
}
.cesium-cesiumInspector-styleEditor textarea {
  width: 100%;
  height: 300px;
  background: transparent;
  color: #edffff;
  border: none;
  padding: 0;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
.cesium-3DTilesInspector {
  width: 300px;
  pointer-events: all;
}
.cesium-3DTilesInspector-statistics {
  font-size: 11px;
}
.cesium-3DTilesInspector-disabledElementsInfo {
  margin: 5px 0 0 0;
  padding: 0 0 0 20px;
  color: #eed202;
}
.cesium-3DTilesInspector div,
.cesium-3DTilesInspector input[type=range] {
  width: 100%;
  box-sizing: border-box;
}
.cesium-cesiumInspector-error {
  color: #ff9e9e;
  overflow: auto;
}
.cesium-3DTilesInspector .cesium-cesiumInspector-section {
  margin-top: 3px;
}
.cesium-3DTilesInspector .cesium-cesiumInspector-sectionHeader + .cesium-cesiumInspector-show {
  border-top: 1px solid white;
}
input.cesium-cesiumInspector-url {
  overflow: hidden;
  white-space: nowrap;
  overflow-x: scroll;
  background-color: transparent;
  color: white;
  outline: none;
  border: none;
  height: 1em;
  width: 100%;
}
.cesium-cesiumInspector .field-group {
  display: table;
}
.cesium-cesiumInspector .field-group > label {
  display: table-cell;
  font-weight: bold;
}
.cesium-cesiumInspector .field-group > .field {
  display: table-cell;
  width: 100%;
}

/* packages/widgets/Source/VoxelInspector/VoxelInspector.css */
.cesium-VoxelInspector {
  width: 300px;
  pointer-events: all;
}
.cesium-VoxelInspector div,
.cesium-VoxelInspector input[type=range] {
  width: 100%;
  box-sizing: border-box;
}
.cesium-VoxelInspector .cesium-cesiumInspector-section {
  margin-top: 3px;
}
.cesium-VoxelInspector .cesium-cesiumInspector-sectionHeader + .cesium-cesiumInspector-show {
  border-top: 1px solid white;
}

/* packages/widgets/Source/FullscreenButton/FullscreenButton.css */
.cesium-button.cesium-fullscreenButton {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}

/* packages/widgets/Source/VRButton/VRButton.css */
.cesium-button.cesium-vrButton {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
}

/* packages/widgets/Source/Geocoder/Geocoder.css */
.cesium-viewer-geocoderContainer .cesium-geocoder-input {
  border: solid 1px #444;
  background-color: rgba(40, 40, 40, 0.7);
  color: white;
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 32px;
  margin: 0;
  padding: 0 32px 0 0;
  border-radius: 0;
  box-sizing: border-box;
  transition: width ease-in-out 0.25s, background-color 0.2s ease-in-out;
  -webkit-appearance: none;
}
.cesium-viewer-geocoderContainer:hover .cesium-geocoder-input {
  border-color: #aef;
  box-shadow: 0 0 8px #fff;
}
.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus {
  border-color: #ea4;
  background-color: rgba(15, 15, 15, 0.9);
  box-shadow: none;
  outline: none;
}
.cesium-viewer-geocoderContainer:hover .cesium-geocoder-input,
.cesium-viewer-geocoderContainer .cesium-geocoder-input:focus,
.cesium-viewer-geocoderContainer .cesium-geocoder-input-wide {
  padding-left: 4px;
  width: 250px;
}
.cesium-viewer-geocoderContainer .search-results {
  position: absolute;
  background-color: #000;
  color: #eee;
  overflow-y: auto;
  opacity: 0.8;
  width: 100%;
}
.cesium-viewer-geocoderContainer .search-results ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.cesium-viewer-geocoderContainer .search-results ul li {
  font-size: 14px;
  padding: 3px 10px;
}
.cesium-viewer-geocoderContainer .search-results ul li:hover {
  cursor: pointer;
}
.cesium-viewer-geocoderContainer .search-results ul li.active {
  background: #48b;
}
.cesium-geocoder-searchButton {
  background-color: #303336;
  display: inline-block;
  position: absolute;
  cursor: pointer;
  width: 32px;
  top: 1px;
  right: 1px;
  height: 30px;
  vertical-align: middle;
  fill: #edffff;
}
.cesium-geocoder-searchButton:hover {
  background-color: #48b;
}

/* packages/widgets/Source/InfoBox/InfoBox.css */
.cesium-infoBox {
  display: block;
  position: absolute;
  top: 50px;
  right: 0;
  width: 40%;
  max-width: 480px;
  background: rgba(38, 38, 38, 0.95);
  color: #edffff;
  border: 1px solid #444;
  border-right: none;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  box-shadow: 0 0 10px 1px #000;
  transform: translate(100%, 0);
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s 0.2s,
    opacity 0.2s ease-in,
    transform 0.2s ease-in;
}
.cesium-infoBox-visible {
  transform: translate(0, 0);
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.cesium-infoBox-title {
  display: block;
  height: 20px;
  padding: 5px 30px 5px 25px;
  background: rgba(84, 84, 84, 1);
  border-top-left-radius: 7px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: content-box;
}
.cesium-infoBox-bodyless .cesium-infoBox-title {
  border-bottom-left-radius: 7px;
}
button.cesium-infoBox-camera {
  display: block;
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: transparent;
  border-color: transparent;
  border-radius: 3px;
  padding: 0 5px;
  margin: 0;
}
button.cesium-infoBox-close {
  display: block;
  position: absolute;
  top: 5px;
  right: 5px;
  height: 20px;
  background: transparent;
  border: none;
  border-radius: 2px;
  font-weight: bold;
  font-size: 16px;
  padding: 0 5px;
  margin: 0;
  color: #edffff;
}
button.cesium-infoBox-close:focus {
  background: rgba(238, 136, 0, 0.44);
  outline: none;
}
button.cesium-infoBox-close:hover {
  background: #888;
  color: #000;
}
button.cesium-infoBox-close:active {
  background: #a00;
  color: #000;
}
.cesium-infoBox-bodyless .cesium-infoBox-iframe {
  display: none;
}
.cesium-infoBox-iframe {
  border: none;
  width: 100%;
  width: calc(100% - 2px);
}

/* packages/widgets/Source/SceneModePicker/SceneModePicker.css */
span.cesium-sceneModePicker-wrapper {
  display: inline-block;
  position: relative;
  margin: 0 3px;
}
.cesium-sceneModePicker-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s linear;
}
.cesium-sceneModePicker-hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.25s, opacity 0.25s linear;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-none {
  display: none;
}
.cesium-sceneModePicker-slide-svg {
  transition: left 2s;
  top: 0;
  left: 0;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon {
  box-sizing: border-box;
  padding: 0;
  margin: 3px 0;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button3D,
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-buttonColumbusView,
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button2D {
  margin: 0 0 3px 0;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button3D .cesium-sceneModePicker-icon2D {
  left: 100%;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button3D .cesium-sceneModePicker-iconColumbusView {
  left: 200%;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-buttonColumbusView .cesium-sceneModePicker-icon3D {
  left: -200%;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-buttonColumbusView .cesium-sceneModePicker-icon2D {
  left: -100%;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button2D .cesium-sceneModePicker-icon3D {
  left: -100%;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-button2D .cesium-sceneModePicker-iconColumbusView {
  left: 100%;
}
.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-selected {
  border-color: #2e2;
  box-shadow: 0 0 8px #fff, 0 0 8px #fff;
}

/* packages/widgets/Source/ProjectionPicker/ProjectionPicker.css */
span.cesium-projectionPicker-wrapper {
  display: inline-block;
  position: relative;
  margin: 0 3px;
}
.cesium-projectionPicker-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s linear;
}
.cesium-projectionPicker-hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.25s, opacity 0.25s linear;
}
.cesium-projectionPicker-wrapper .cesium-projectionPicker-none {
  display: none;
}
.cesium-projectionPicker-wrapper .cesium-projectionPicker-dropDown-icon {
  box-sizing: border-box;
  padding: 0;
  margin: 3px 0;
}
.cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonPerspective,
.cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonOrthographic {
  margin: 0 0 3px 0;
}
.cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonPerspective .cesium-projectionPicker-iconOrthographic {
  left: 100%;
}
.cesium-projectionPicker-wrapper .cesium-projectionPicker-buttonOrthographic .cesium-projectionPicker-iconPerspective {
  left: -100%;
}
.cesium-projectionPicker-wrapper .cesium-projectionPicker-selected {
  border-color: #2e2;
  box-shadow: 0 0 8px #fff, 0 0 8px #fff;
}

/* packages/widgets/Source/PerformanceWatchdog/PerformanceWatchdog.css */
.cesium-performance-watchdog-message-area {
  position: relative;
  background-color: yellow;
  color: black;
  padding: 10px;
}
.cesium-performance-watchdog-message {
  margin-right: 30px;
}
.cesium-performance-watchdog-message-dismiss {
  position: absolute;
  right: 0;
  margin: 0 10px 0 0;
}

/* packages/widgets/Source/NavigationHelpButton/NavigationHelpButton.css */
.cesium-navigationHelpButton-wrapper {
  position: relative;
  display: inline-block;
}
.cesium-navigation-help {
  visibility: hidden;
  position: absolute;
  top: 38px;
  right: 2px;
  width: 250px;
  border-radius: 10px;
  transform: scale(0.01);
  transform-origin: 234px -10px;
  transition: visibility 0s 0.25s, transform 0.25s ease-in;
}
.cesium-navigation-help-visible {
  visibility: visible;
  transform: scale(1);
  transition: transform 0.25s ease-out;
}
.cesium-navigation-help-instructions {
  border: 1px solid #444;
  background-color: rgba(38, 38, 38, 0.75);
  padding-bottom: 5px;
  border-radius: 0 0 10px 10px;
}
.cesium-click-navigation-help {
  display: none;
}
.cesium-touch-navigation-help {
  display: none;
  padding-top: 5px;
}
.cesium-click-navigation-help-visible {
  display: block;
}
.cesium-touch-navigation-help-visible {
  display: block;
}
.cesium-navigation-help-pan {
  color: #66ccff;
  font-weight: bold;
}
.cesium-navigation-help-zoom {
  color: #65fd00;
  font-weight: bold;
}
.cesium-navigation-help-rotate {
  color: #ffd800;
  font-weight: bold;
}
.cesium-navigation-help-tilt {
  color: #d800d8;
  font-weight: bold;
}
.cesium-navigation-help-details {
  color: #ffffff;
}
.cesium-navigation-button {
  color: #fff;
  background-color: transparent;
  border-bottom: none;
  border-top: 1px solid #444;
  border-right: 1px solid #444;
  margin: 0;
  width: 50%;
  cursor: pointer;
}
.cesium-navigation-button-icon {
  vertical-align: middle;
  padding: 5px 1px;
}
.cesium-navigation-button:focus {
  outline: none;
}
.cesium-navigation-button-left {
  border-radius: 10px 0 0 0;
  border-left: 1px solid #444;
}
.cesium-navigation-button-right {
  border-radius: 0 10px 0 0;
  border-left: none;
}
.cesium-navigation-button-selected {
  background-color: rgba(38, 38, 38, 0.75);
}
.cesium-navigation-button-unselected {
  background-color: rgba(0, 0, 0, 0.75);
}
.cesium-navigation-button-unselected:hover {
  background-color: rgba(76, 76, 76, 0.75);
}

/* packages/widgets/Source/SelectionIndicator/SelectionIndicator.css */
.cesium-selection-wrapper {
  position: absolute;
  width: 160px;
  height: 160px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.2s, opacity 0.2s ease-in;
}
.cesium-selection-wrapper-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}
.cesium-selection-wrapper svg {
  fill: #2e2;
  stroke: #000;
  stroke-width: 1.1px;
}

/* packages/widgets/Source/Timeline/Timeline.css */
.cesium-timeline-main {
  position: relative;
  left: 0;
  bottom: 0;
  overflow: hidden;
  border: solid 1px #888;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.cesium-timeline-trackContainer {
  width: 100%;
  overflow: auto;
  border-top: solid 1px #888;
  position: relative;
  top: 0;
  left: 0;
}
.cesium-timeline-tracks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.cesium-timeline-needle {
  position: absolute;
  left: 0;
  top: 1.7em;
  bottom: 0;
  width: 1px;
  background: #f00;
}
.cesium-timeline-bar {
  position: relative;
  left: 0;
  top: 0;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 1.7em;
  background:
    linear-gradient(
      to bottom,
      rgba(116, 117, 119, 0.8) 0%,
      rgba(58, 68, 82, 0.8) 11%,
      rgba(46, 50, 56, 0.8) 46%,
      rgba(53, 53, 53, 0.8) 81%,
      rgba(53, 53, 53, 0.8) 100%);
}
.cesium-timeline-ruler {
  visibility: hidden;
  white-space: nowrap;
  font-size: 80%;
  z-index: -200;
}
.cesium-timeline-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #08f;
}
.cesium-timeline-ticLabel {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-size: 80%;
  color: #eee;
}
.cesium-timeline-ticMain {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 50%;
  background: #eee;
}
.cesium-timeline-ticSub {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 33%;
  background: #aaa;
}
.cesium-timeline-ticTiny {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 25%;
  background: #888;
}
.cesium-timeline-icon16 {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  background-image: url(data:text/plain;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sIDBITKIVzLEMAAAKNSURBVEjHxdXNSxRhHAfw7zzrqhuoWJnSkrippUVSEKsHI9BTUYdAJA/RoYMREV26rAdn6tAfUARi16hQqkOBQRgUEYFWEC3OwczMjdZd92VmdWfmeelgTjO7q7gb0VzmmZnn85vvPPPMM8B/3qTcE2PPpuTZKB1eWuUQACgXYACYwVFbCTTVeZXB/i55o4LFelcAZfStYD4vpAoPGAGo4GBcQEgSOAUMQyAezwK6iQfDPXnhS/FkHZ+/8VLMWxxqWkfH3gbMRNOYi2roavbja0zHQmoFPYf8ED4Ko4aivm9MOG/u9I8mwrafeK7a/tVrNc/bARYN5noadeq7q0342vXw9CIMU6BmW8rVP9cPBPe52uu+v3O/y9sB4gkTWs6Qsk0mj5ExXMelejvA8WafYmkmGPHanTijdtvif8rx5RiCjdWKs2Cp3jWRDl96KhrbqlBeJqBOLyLQXg0IgbkZDS0dO8EZxZfPSTA9jvDDK3mT0OmP1FXh3XwEEAKdTX5MRWLgjCK4pwH3xt/YnjgLHAv4lHTCAKMMu/wV+KZGob6PoKyMQ0+sgBpZVJZn0NterxQaVqef/DRn+/EXYds/mZx2eVeAW9d65dhCEsaKCb7K8HH0gqTevyh9GDkn0VULRiaLzJKGBu9swfdaiie5RVo9ESURN8E8BE0n7ggACJy8KzghSCzp6DmwWxkaCm24EBXr8wI8Hrkq06QBiRC0t24HALS11IBTCyJl4vb1AXmzpbVYTwoVOXN0h7L8Mwtm8bXPybIQ/5FCX3dA2cr6XowvGCA02CvztAnz9+JiZk1AMxG6fEreSoBiPNmoyNnuWiWVzAIAtISO08E6pZi/3N96AIDn4E3h3P8L/wshP+txtEs4JAAAAABJRU5ErkJggg==);
  background-repeat: no-repeat;
}

/* packages/widgets/Source/Viewer/Viewer.css */
.cesium-viewer {
  font-family: sans-serif;
  font-size: 16px;
  overflow: hidden;
  display: block;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.cesium-viewer-cesiumWidgetContainer {
  width: 100%;
  height: 100%;
}
.cesium-viewer-bottom {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  padding-right: 5px;
}
.cesium-viewer .cesium-widget-credits {
  display: inline;
  position: static;
  bottom: auto;
  left: auto;
  padding-right: 0;
  color: #ffffff;
  font-size: 10px;
  text-shadow: 0 0 2px #000000;
}
.cesium-viewer-timelineContainer {
  position: absolute;
  bottom: 0;
  left: 169px;
  right: 29px;
  height: 27px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
}
.cesium-viewer-animationContainer {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0;
  width: 169px;
  height: 112px;
}
.cesium-viewer-fullscreenContainer {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0;
  width: 29px;
  height: 29px;
  overflow: hidden;
}
.cesium-viewer-vrContainer {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0;
  width: 29px;
  height: 29px;
  overflow: hidden;
}
.cesium-viewer-toolbar {
  display: block;
  position: absolute;
  top: 5px;
  right: 5px;
}
.cesium-viewer-cesiumInspectorContainer {
  display: block;
  position: absolute;
  top: 50px;
  right: 10px;
}
.cesium-viewer-geocoderContainer {
  position: relative;
  display: inline-block;
  margin: 0 3px;
}
.cesium-viewer-cesium3DTilesInspectorContainer {
  display: block;
  position: absolute;
  top: 50px;
  right: 10px;
  max-height: calc(100% - 120px);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}
.cesium-viewer-voxelInspectorContainer {
  display: block;
  position: absolute;
  top: 50px;
  right: 10px;
  max-height: calc(100% - 120px);
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

/* packages/widgets/Source/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css */
.cesium-viewer-i3s-explorer ul {
  list-style-type: none;
}
.cesium-viewer-i3s-explorer .layersList {
  padding: 0;
}
.cesium-viewer-i3s-explorer input {
  margin: 0 3px 0 0;
}
.cesium-viewer-i3s-explorer .expandItem {
  cursor: pointer;
  user-select: none;
  width: 20px;
}
.cesium-viewer-i3s-explorer .nested,
.cesium-viewer-i3s-explorer #bsl-wrapper {
  display: none;
}
.cesium-viewer-i3s-explorer .active {
  display: block;
}
.cesium-viewer-i3s-explorer .li-wrapper {
  display: flex;
  flex-direction: row;
  align-content: center;
}

/* packages/widgets/Source/widgets.css */
/* Material 3 Expressive — Shared styles */
/* Used by both Electron and web versions */

:root {
  /* M3 Color Roles (dark mode defaults — overridden dynamically by applyTheme) */
  --md-primary: #00cc44;
  --md-on-primary: #ffffff;
  --md-primary-container: rgba(0, 204, 68, 0.15);
  --md-on-primary-container: #00cc44;
  --md-surface: #121212;
  --md-surface-container: rgba(20, 34, 25, 0.78);
  --md-surface-container-solid: rgb(20, 34, 25);
  --md-surface-container-highest: rgba(36, 50, 41, 0.28);
  --md-on-surface: #e0e0e0;
  --md-on-surface-variant: rgba(255, 255, 255, 0.6);
  --md-on-surface-disabled: rgba(255, 255, 255, 0.25);
  --md-outline: rgba(255, 255, 255, 0.3);
  --md-outline-variant: rgba(255, 255, 255, 0.12);

  /* M3 Shape tokens */
  --md-shape-xs: 4px;
  --md-shape-sm: 8px;
  --md-shape-md: 12px;
  --md-shape-lg: 16px;
  --md-shape-xl: 28px;
  --md-shape-full: 9999px;

  /* M3 Elevation shadows */
  --md-elevation-1: 0 1px 3px 1px rgba(0,0,0,0.15), 0 1px 2px 0 rgba(0,0,0,0.3);
  --md-elevation-2: 0 2px 6px 2px rgba(0,0,0,0.15), 0 1px 2px 0 rgba(0,0,0,0.3);
  --md-elevation-3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px 0 rgba(0,0,0,0.3);

  /* M3 Motion */
  --md-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-motion-easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --md-motion-easing-spring: cubic-bezier(0.35, 1.5, 0.65, 1);
  --md-motion-duration-short: 150ms;
  --md-motion-duration-medium: 300ms;
  --md-motion-duration-long: 500ms;

  /* M3 Type scale */
  --md-typescale-body-small: 500 14px/19px 'Roboto Flex', sans-serif;
  --md-typescale-body-medium: 400 15px/21px 'Roboto Flex', sans-serif;
  --md-typescale-body-large: 400 17px/25px 'Roboto Flex', sans-serif;
  --md-typescale-label-small: 500 13px/17px 'Roboto Flex', sans-serif;
  --md-typescale-label-medium: 500 14px/19px 'Roboto Flex', sans-serif;
  --md-typescale-label-large: 500 15px/21px 'Roboto Flex', sans-serif;
  --md-typescale-title-medium: 500 17px/25px 'Roboto Flex', sans-serif;
  --md-typescale-title-large: 500 23px/29px 'Roboto Flex', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--md-surface);
  color: var(--md-on-surface);
  font-family: 'Roboto Flex', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#cesiumContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Hide default Cesium UI elements we don't need */
.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-fullscreenContainer,
.cesium-viewer-vrContainer,
.cesium-viewer-geocoderContainer,
.cesium-viewer-infoBoxContainer,
.cesium-viewer-selectionIndicatorContainer,
.cesium-viewer-bottom,
.cesium-credit-logoContainer,
.cesium-credit-expand-link,
.cesium-widget-credits {
  display: none !important;
}

/* Override Cesium credit bar */
.cesium-viewer .cesium-widget-credits {
  display: none !important;
}

/* HUD */
#hud {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
}

#hud-stats {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  font: var(--md-typescale-label-small);
  color: var(--md-on-surface-variant);
  white-space: nowrap;
}

#clock {
  font: var(--md-typescale-label-medium);
  font-weight: 500;
}

.hud-sep {
  opacity: 0.35;
}

#hud-instructions {
  position: fixed;
  bottom: 16px;
  right: 16px;
  text-align: right;
  font: var(--md-typescale-label-small);
  color: var(--md-on-surface-variant);
  line-height: 1.6;
  pointer-events: none;
  z-index: 10;
}

#throttle-warning {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #93000a;
  color: #ffdad6;
  text-align: center;
  padding: 6px 16px;
  font: var(--md-typescale-label-medium);
  font-weight: 500;
}

#throttle-warning.hidden { display: none; }
#throttle-warning:not(.hidden) ~ #flight-search-wrap {
  top: 46px;
}


/* Controls Panel */
#controls {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  background: var(--md-surface-container);
  border-radius: var(--md-shape-lg);
  padding: 14px 22px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: var(--md-typescale-label-medium);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: visible;
  transition: transform var(--md-motion-duration-medium) var(--md-motion-easing-emphasized);
}

/* Controls handle: vertical bar on the right edge (desktop) */
#controls > .sheet-handle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 54px;
  margin: 0;
}

#controls.collapsed {
  transform: translateX(calc(-100% + 20px));
}

.control-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#controls .control-group:last-child {
  border-top: 1px solid var(--md-outline-variant);
  padding-top: 10px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--md-outline);
  border-radius: var(--md-shape-xs);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background var(--md-motion-duration-short) var(--md-motion-easing-standard),
              border-color var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.toggle-label input[type="checkbox"]:checked {
  background: var(--md-primary);
  border-color: var(--md-primary);
}

.toggle-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--md-on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.toggle-label input[type="checkbox"]:disabled {
  border-color: var(--md-on-surface-disabled);
  background: transparent;
  cursor: default;
}

.toggle-label input[type="checkbox"]:checked:disabled {
  background: var(--md-on-surface-disabled);
  border-color: var(--md-on-surface-disabled);
}

.toggle-label:has(input[type="checkbox"]:disabled) {
  color: var(--md-on-surface-disabled);
  cursor: default;
}

.theme-light .toggle-label input[type="checkbox"]:not(:checked) {
  background: #ffffff;
}

.range-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: var(--md-outline-variant);
  border-radius: var(--md-shape-full);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--md-primary);
  cursor: pointer;
  box-shadow: var(--md-elevation-1);
  transition: transform var(--md-motion-duration-short) var(--md-motion-easing-spring);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.map-layer-label-text {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  color: var(--md-on-surface);
  opacity: 0.7;
  margin-left: 12px;
}

/* Custom map layer dropdown */
.map-layer-select {
  position: relative;
}

.map-layer-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--md-surface);
  color: var(--md-on-surface);
  border: 1px solid var(--md-outline);
  border-radius: var(--md-shape-sm);
  padding: 6px 8px;
  min-height: 36px;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: border-color var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.map-layer-btn:focus,
.map-layer-select.open .map-layer-btn {
  border-color: var(--md-primary);
}

.map-layer-chevron {
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.map-layer-select.open .map-layer-chevron {
  transform: rotate(180deg);
}

.map-layer-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--md-surface-container-solid);
  border-radius: var(--md-shape-md);
  box-shadow: 0 2px 6px 2px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.28);
  padding: 4px 0;
  z-index: 200;
  overflow: hidden;
}

.map-layer-select.open .map-layer-menu {
  display: block;
}

.map-layer-option {
  padding: 10px 16px;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  color: var(--md-on-surface);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.map-layer-option:hover {
  background: color-mix(in srgb, var(--md-on-surface) 8%, transparent);
}

.map-layer-option.selected {
  color: var(--md-primary);
  background: color-mix(in srgb, var(--md-primary) 12%, transparent);
}

.map-layer-divider {
  height: 1px;
  margin: 4px 12px;
  background: color-mix(in srgb, var(--md-on-surface) 12%, transparent);
}

.scope-btn {
  background: #000000;
  border: none;
  border-radius: var(--md-shape-full);
  color: var(--md-on-surface);
  padding: 0 16px;
  min-height: 40px;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--md-motion-duration-short) var(--md-motion-easing-standard),
              color var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.scope-btn:hover {
  background: var(--md-surface-container-highest);
}

.scope-btn:active {
  background: var(--md-outline-variant);
}

.scope-btn.active {
  background: var(--md-primary);
  color: #000000;
}

.theme-light .scope-btn {
  background: #ffffff;
}

.theme-light .scope-btn:hover {
  background: #f0f0f0;
}

.theme-light .scope-btn:active {
  background: #e4e4e4;
}

.theme-light .scope-btn.active {
  background: var(--md-primary);
  color: #ffffff;
}

.scope-btn:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.scope-btn-group {
  display: inline-flex;
  border-radius: var(--md-shape-full);
  background: var(--md-surface-container-highest);
  padding: 3px;
  gap: 2px;
}

.scope-btn-group .scope-btn:not(.active) {
  background: transparent;
}

.theme-light .scope-btn-group {
  background: #ffffff;
}

.theme-light .scope-btn-group .scope-btn:not(.active) {
  background: transparent;
}

/* Panel shadow overlays — ::after with z-index: 0 paints the shadow ON TOP of
   the z-index: -1 toggle tabs, so the panel appears to cast a shadow on them. */
#controls::after,
#aircraft-info::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--md-elevation-2);
  pointer-events: none;
  z-index: 0;
}


#info-collapsible {
  overflow: hidden;
  transition: max-height var(--md-motion-duration-medium) var(--md-motion-easing-emphasized),
              opacity var(--md-motion-duration-medium) var(--md-motion-easing-standard);
  max-height: 800px; /* must exceed tallest possible content */
  opacity: 1;
}

#aircraft-info.collapsed #info-collapsible {
  max-height: 0;
  opacity: 0;
}

#aircraft-info.collapsed #info-callsign {
  margin-bottom: 0;
}

/* Aircraft Info Panel */
#aircraft-info {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: var(--md-surface-container);
  border-radius: var(--md-shape-xl);
  padding: 20px 20px 10px;
  min-width: 240px;
  font: var(--md-typescale-body-small);
  line-height: 1.6;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: visible;
}

#aircraft-info > .sheet-handle {
  margin: 14px auto 0;
}

#aircraft-info.hidden {
  display: none;
}

#info-close,
#settings-close {
  font-size: 29px;
  font-weight: 400;
  padding: 0;
  width: 40px;
}

#info-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

#info-callsign {
  font: var(--md-typescale-title-medium);
  font-weight: 500;
  color: var(--md-on-surface);
  margin-bottom: 8px;
}

#info-details {
  color: var(--md-on-surface);
}

#info-details div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--md-outline-variant);
  padding: 3px 0;
}

#info-details div:last-child {
  border-bottom: none;
}

#info-details .label {
  color: var(--md-on-surface-variant);
  margin-right: 8px;
}

#info-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

#info-buttons.hidden { display: none; }

#info-buttons .scope-btn {
  flex: 1;
}

/* Flight search wrapper */
#flight-search-wrap {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 420px;
  transition: top 0.3s ease;
}

/* Flight search input */
#flight-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
}

#flight-search {
  flex: 1;
  min-width: 0;
  background: var(--md-surface-container-solid);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-shape-full) 0 0 var(--md-shape-full);
  color: var(--md-on-surface);
  padding: 0 20px;
  height: 48px;
  font-family: 'Roboto Flex', sans-serif;
  font-size: 15px;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.search-history-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--md-surface-container-solid);
  border: 1px solid var(--md-outline-variant);
  border-left: none;
  border-radius: 0 var(--md-shape-full) var(--md-shape-full) 0;
  color: var(--md-on-surface-variant);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.search-history-btn:hover,
.search-history-btn:active,
.search-history-btn:focus {
  background: var(--md-surface-container-solid);
  color: var(--md-on-surface);
  outline: none;
  filter: brightness(1.4);
}

.theme-light .search-history-btn {
  background: #ffffff;
}

.theme-light .search-history-btn:hover,
.theme-light .search-history-btn:active,
.theme-light .search-history-btn:focus {
  background: #f0f0f0;
  filter: none;
}

#flight-search:focus {
  border-color: var(--md-outline-variant);
}

.theme-light #flight-search {
  background: #ffffff;
}

#flight-search::placeholder {
  color: var(--md-on-surface-variant);
}

/* Flight search results dropdown */
#flight-results {
  margin-top: 4px;
  background: var(--md-surface-container);
  border: 1px solid var(--md-outline-variant);
  border-radius: var(--md-shape-lg);
  max-height: 320px;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--md-elevation-3);
  /* Standard scrollbar (Firefox, future browsers) */
  scrollbar-width: thin;
  scrollbar-color: rgba(73, 69, 79, 0.28) transparent;
}

/* Chromium scrollbar — M3-aligned (thin, rounded, themed) */
#flight-results::-webkit-scrollbar {
  width: 8px;
}

#flight-results::-webkit-scrollbar-track {
  background: transparent;
}

#flight-results::-webkit-scrollbar-thumb {
  background: rgba(73, 69, 79, 0.28);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#flight-results::-webkit-scrollbar-thumb:hover {
  background: rgba(73, 69, 79, 0.48);
  background-clip: padding-box;
}

.theme-dark #flight-results {
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.theme-dark #flight-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  background-clip: padding-box;
}

.theme-dark #flight-results::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
  background-clip: padding-box;
}

#flight-results.hidden {
  display: none;
}

.theme-light #flight-results {
  background: #ffffff;
}

.flight-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--md-outline-variant);
  font: var(--md-typescale-body-small);
}

.flight-result-item:last-child {
  border-bottom: none;
}

.flight-result-item:hover {
  background: var(--md-surface-container-highest);
}

.flight-result-badge {
  font: var(--md-typescale-label-small);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--md-shape-xs);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 72px;
  text-align: center;
}

.badge-enroute {
  background: rgba(0, 204, 68, 0.2);
  color: var(--md-primary);
}

.badge-upcoming {
  background: rgba(66, 165, 245, 0.2);
  color: #42A5F5;
}

.badge-past {
  background: rgba(255, 255, 255, 0.08);
  color: var(--md-on-surface-variant);
}

.theme-light .badge-past {
  background: rgba(0, 0, 0, 0.06);
}

.flight-result-ident {
  font-weight: 600;
  white-space: nowrap;
  min-width: 60px;
}

.flight-result-route {
  color: var(--md-on-surface-variant);
  flex: 1;
}

.flight-result-time {
  color: var(--md-on-surface-variant);
  font-size: 12px;
  white-space: nowrap;
}

/* Search history items */
.search-history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--md-outline-variant);
  font: var(--md-typescale-body-small);
  color: var(--md-on-surface);
}

.search-history-item:last-child {
  border-bottom: none;
}

.search-history-item:hover {
  background: var(--md-surface-container-highest);
}

.search-history-item svg {
  flex-shrink: 0;
  color: var(--md-on-surface-variant);
}

.search-history-ident {
  font-weight: 600;
  flex: 1;
}

.search-history-empty {
  padding: 14px;
  text-align: center;
  color: var(--md-on-surface-variant);
  font: var(--md-typescale-body-small);
}

/* Flight Plan Timeline Scrubber */
#timeline-panel {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--md-surface-container);
  border-radius: var(--md-shape-xl);
  padding: 12px 20px;
  min-width: 460px;
  max-width: 690px;
  box-shadow: var(--md-elevation-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#timeline-panel.hidden {
  display: none;
}

#timeline-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
}

#timeline-origin  { grid-column: 1; grid-row: 1; }
#timeline-track   { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 6px; }
#timeline-dest    { grid-column: 3; grid-row: 1; }

.timeline-delay-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: lime;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.4);
}
#origin-weather   { grid-column: 1; grid-row: 2; }
#timeline-time    { grid-column: 2; grid-row: 2; text-align: center; }
#dest-weather     { grid-column: 3; grid-row: 2; }

.timeline-airport {
  font: var(--md-typescale-label-large);
  font-weight: 600;
  color: var(--md-primary);
  min-width: 32px;
  text-align: center;
  white-space: nowrap;
}

.timeline-weather {
  font: var(--md-typescale-body-small);
  color: var(--md-on-surface-variant);
  white-space: nowrap;
  text-align: center;
  min-height: 1em;
}

#timeline-slider {
  width: 100%;
  min-width: 180px;
  height: 8px;
}

#timeline-slider::-webkit-slider-thumb {
  background: transparent;
  border: 3px solid var(--md-primary);
  box-shadow: none;
}

#timeline-slider::-moz-range-thumb {
  background: transparent;
  border: 3px solid var(--md-primary);
  box-shadow: none;
}

#timeline-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

#timeline-time {
  font: var(--md-typescale-body-small);
  color: var(--md-on-surface-variant);
  white-space: nowrap;
  min-height: 1em;
}

/* Sheet handle pill — embedded toggle bar with enlarged hit area via ::before */
.sheet-handle {
  position: relative;
  width: 54px;
  height: 4px;
  background: var(--md-on-surface-variant);
  border-radius: 2px;
  margin: 0 auto;
  opacity: 0.4;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity var(--md-motion-duration-short) var(--md-motion-easing-standard);
}

.sheet-handle::before {
  content: '';
  position: absolute;
  inset: -10px -16px;
}

.sheet-handle:hover {
  opacity: 0.7;
}

/* Settings icon button — square icon variant of scope-btn, centered */
.scope-btn-icon {
  padding: 0;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Settings button always right-justified in the controls row */
#btn-settings {
  margin-left: 12px;
}

.timeline-live-btn {
  font-size: 12px;
  min-height: 28px;
  padding: 0 12px;
}

/* ============================================================
   Mobile layout (portrait / narrow screens)
   ============================================================ */

@media (max-width: 767px) {
  /* Hide keyboard/mouse interaction hints */
  #hud-instructions {
    display: none;
  }

  /* Full-width search bar */
  #flight-search-wrap {
    width: calc(100% - 32px);
  }


  /* ---- Bottom sheet wrapper: timeline stacks above controls ---- */
  #bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--md-motion-duration-medium) var(--md-motion-easing-emphasized);
  }

  #bottom-sheet.collapsed {
    /* Slide down leaving the handle bar visible (≈ 36px) */
    transform: translateY(calc(100% - 36px));
  }

  /* Controls: static inside flex column, full width, top corners rounded */
  #controls {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: var(--md-shape-xl) var(--md-shape-xl) 0 0;
    font: var(--md-typescale-label-large);
    padding-top: 12px;
  }

  /* Suppress the leftward-slide collapse (wrapper handles hide on mobile) */
  #controls.collapsed {
    transform: none;
  }

  /* Revert handle to horizontal bar at top on mobile */
  #controls > .sheet-handle {
    position: static;
    width: 54px;
    height: 4px;
    transform: none;
    margin: 0 auto 10px;
  }

  /* Timeline: floats just above the bottom sheet, moves with it during transition */
  #timeline-panel {
    position: absolute;
    bottom: 100%;
    left: 8px;
    right: 8px;
    transform: none;
    width: auto;
    max-width: none;
    min-width: unset;
    border-radius: var(--md-shape-xl);
    margin-bottom: 8px;
  }

  /* ---- Aircraft info: full-width top sheet ---- */
  #aircraft-info {
    top: 0;
    left: 0;
    right: 0;
    min-width: unset;
    border-radius: 0 0 var(--md-shape-xl) var(--md-shape-xl);
    padding-bottom: 12px;
    transition: transform var(--md-motion-duration-medium) var(--md-motion-easing-emphasized);
  }

  /* Collapse upward leaving handle bar visible at top of screen */
  #aircraft-info.mob-collapsed {
    transform: translateY(calc(-100% + 36px));
  }

  /* Match control panel proportions: 12px padding at panel edge, 20px to handle
     Total bottom strip = 12 + 20 + 4px pill = 36px = exact stowed reveal height */
  /* Handle sits at bottom of the aircraft info panel */
  #aircraft-info .sheet-handle {
    margin: 20px auto 0;
  }

  /* Hide 2D/3D buttons, North up, and Auto rotate on mobile */
  .scope-btn-group,
  #btn-north,
  label:has(#toggle-rotate) {
    display: none;
  }

  /* Larger checkboxes for touch targets */
  .toggle-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  /* Search bar shifts down when aircraft info panel is stowed (showing handle only) */
  body:has(#aircraft-info.mob-collapsed) #flight-search-wrap {
    top: 44px;
  }
}
