.impact3d-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  color: #e9f3ff;
  background: #08111c;
  box-shadow: none;
  backdrop-filter: none;
  font-family: Manrope, Arial, sans-serif;
}
.impact3d-dialog::backdrop {
  background: #040910;
}
.i3-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: 72px minmax(0, 1fr) 96px;
}
.i3-header {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 25px;
  border-bottom: 1px solid #294354;
  background: linear-gradient(110deg, #0d1d2b, #0e1627);
}
.i3-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.i3-brand > strong {
  font-size: 16px;
  font-weight: 500;
  color: #b9ccdf;
}
.i3-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #87e7d5;
}
.impact3d-dialog button,
.impact3d-dialog input,
.impact3d-dialog select {
  font:
    14px Manrope,
    Arial,
    sans-serif;
}
.impact3d-dialog button {
  cursor: pointer;
  min-height: 40px;
  border-radius: 7px;
  padding: 10px 13px;
  border: 1px solid #395363;
  color: #c4d9e9;
  background: #15283a;
  line-height: 1.4;
}
.impact3d-dialog button:hover:not(:disabled) {
  background: #284454;
  border-color: #75b2ad;
}
.impact3d-dialog button.active {
  border-color: #85dec7;
  background: #1b4a45;
  color: #c5fff1;
}
.impact3d-dialog .i3-primary {
  background: #9aeed8;
  color: #08211e;
  border: 1px solid #c2ffed;
  font-weight: 700;
  box-shadow: 0 0 20px #80f6d522;
}
.impact3d-dialog .i3-primary:hover:not(:disabled) {
  background: #c1ffea;
}
.impact3d-dialog .i3-close {
  background: #0a1723;
  border: 1px solid #375366;
  padding: 9px 15px;
  color: #c4d5e5;
  flex-shrink: 0;
}
.i3-stage {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: #253a4a;
}
.i3-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
.i3-stage-title {
  position: absolute;
  top: 26px;
  left: 26px;
  pointer-events: none;
  text-shadow: 0 2px 10px #0009;
}
.i3-stage-title h2 {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 9px 0;
}
.i3-stage-title p {
  font-size: 14px;
  margin: 0;
  color: #cbdde8;
}
.i3-stage-title .i3-kicker {
  font-size: 12px;
  color: #bcefe5;
}
.i3-metrics {
  position: absolute;
  top: 144px;
  left: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-width: calc(100% - 52px);
  pointer-events: none;
}
.i3-metric {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  background: #081723bd;
  border: 1px solid #7293a53f;
  border-radius: 8px;
  backdrop-filter: blur(12px);
  min-width: 100px;
}
.i3-metric small {
  font-size: 12px;
  color: #a8bfcc;
  white-space: nowrap;
}
.i3-metric strong {
  font-size: 18px;
  font-weight: 600;
  color: #e4fff5;
  white-space: nowrap;
}
.i3-views {
  position: absolute;
  left: 24px;
  right: 20px;
  bottom: 64px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.i3-views button {
  font-size: 13px;
  min-height: 38px;
  padding: 8px 12px;
  background: #0a1a29dc;
  backdrop-filter: blur(10px);
}
.i3-phase {
  position: absolute;
  left: 26px;
  bottom: 119px;
  max-width: calc(100% - 52px);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 9px 12px;
  color: #d6fff2;
  border-left: 2px solid #8aefca;
  background: #0b1a29b0;
  pointer-events: none;
}
.i3-hint {
  position: absolute;
  left: 26px;
  bottom: 37px;
  font-size: 12px;
  line-height: 1.4;
  color: #c1d0db;
  pointer-events: none;
  text-shadow: 0 1px 5px #000;
}
.i3-attribution {
  position: absolute;
  right: 12px;
  bottom: 8px;
  background: #0b1825b8;
  color: #bed9e1;
  padding: 4px 7px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 4px;
}
.i3-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #09141ded;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 30px;
  color: #c5dae6;
  font-size: 16px;
}
.i3-loading[hidden] {
  display: none;
}
.i3-loading p {
  margin: 0;
}
.i3-panel {
  border-left: 1px solid #294353;
  background: linear-gradient(#101f2c, #0c1523);
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #365363 transparent;
}
.i3-panel-tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 16px 20px 12px;
  background: #101e2bf5;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #294052;
}
.i3-panel-tabs button {
  flex: 1;
  font-size: 14px;
  background: transparent;
  border-color: transparent;
}
.i3-settings,
.i3-facts {
  padding: 2px 20px 24px;
}
.i3-panel h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 23px 0 15px;
}
.i3-panel p {
  font-size: 16px;
  line-height: 1.7;
  color: #b4c7d8;
}
.i3-panel .i3-muted {
  font-size: 12px;
  line-height: 1.65;
  color: #8fa8bf;
  display: block;
}
.i3-panel input,
.i3-panel select {
  width: 100%;
  min-width: 0;
  border: 1px solid #354e65;
  background: #091726;
  color: #d8e6f0;
  border-radius: 7px;
  padding: 11px;
  line-height: 1.4;
}
.i3-panel input[type='search'] {
  margin-top: 10px;
}
.i3-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #acc2d3;
}
.i3-point-row {
  margin: 10px 0;
}
.i3-point-row button {
  width: 100%;
  background: #122f3a;
  border-color: #416370;
}
.i3-asteroid-name {
  display: block;
  font-size: 19px;
  color: #d3fff1;
  margin: 21px 0 4px;
  overflow-wrap: anywhere;
}
.i3-source {
  display: block;
  font-size: 12px;
  color: #94d9d7;
  line-height: 1.6;
  margin-bottom: 12px;
  text-decoration: none;
}
.i3-source:hover {
  text-decoration: underline;
}
.i3-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.i3-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #b3c7d9;
  line-height: 1.5;
}
.i3-search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.i3-search-results:empty {
  display: none;
}
.i3-search-results button {
  font-size: 12px;
  min-height: 32px;
  padding: 6px 8px;
}
.i3-settings > button {
  font-size: 12px;
  width: 100%;
  margin-top: 8px;
}
.i3-playback {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 25px;
  background: #0b1925;
  border-top: 1px solid #355568;
  z-index: 2;
}
.i3-playback > .i3-primary {
  min-width: 172px;
}
.i3-timeline-wrap {
  flex: 1;
  min-width: 60px;
}
.i3-timeline-wrap small {
  display: block;
  font-size: 12px;
  color: #8daabe;
  margin-top: 9px;
}
.i3-timeline {
  width: 100%;
  height: 5px;
  accent-color: #9aefdb;
  cursor: pointer;
}
.i3-time {
  font: 14px monospace;
  min-width: 40px;
  color: #b9f8e4;
}
.i3-playback select {
  width: 75px;
  background: #15283b;
  border-color: #3f5c70;
  padding: 10px;
  color: #c9e7ec;
}
.i3-open-lab {
  display: block;
  width: 100%;
  margin: 14px 0 22px;
  padding: 15px !important;
  font-size: 16px !important;
  border-radius: 10px !important;
  background: linear-gradient(100deg, #134740, #152e48) !important;
  border: 1px solid #68b7ac !important;
  color: #c8fff0 !important;
}
.detail #impact3dButton {
  margin-top: 12px;
  margin-bottom: 4px;
  width: 100%;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .i3-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: 66px minmax(0, 1fr) 94px;
  }
  .i3-metrics {
    grid-template-columns: 1fr 1fr;
    top: 130px;
  }
  .i3-metric {
    min-width: 135px;
  }
  .i3-stage-title h2 {
    font-size: 31px;
  }
  .i3-views {
    gap: 5px;
    bottom: 68px;
  }
  .i3-views button {
    padding: 8px;
    font-size: 12px;
  }
  .i3-phase {
    bottom: 168px;
  }
  .i3-hint {
    max-width: calc(100% - 45px);
    font-size: 12px;
  }
  .i3-playback {
    gap: 10px;
    padding: 15px;
  }
  .i3-playback > .i3-primary {
    min-width: 145px;
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .impact3d-dialog {
    height: 100dvh;
  }
  .i3-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 58px minmax(210px, 1fr) minmax(110px, 27dvh) 108px;
  }
  .i3-header {
    padding: 10px 12px;
    gap: 10px;
  }
  .i3-brand > strong {
    display: none;
  }
  .i3-brand .i3-kicker {
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .impact3d-dialog .i3-close {
    font-size: 12px;
    padding: 8px 10px;
    min-height: 35px;
  }
  .i3-stage-title {
    top: 15px;
    left: 15px;
  }
  .i3-stage-title h2 {
    font-size: 25px;
    margin: 5px 0;
  }
  .i3-stage-title p {
    font-size: 12px;
  }
  .i3-stage-title .i3-kicker {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .i3-metrics {
    top: 14px;
    left: auto;
    right: 12px;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    max-width: 51%;
  }
  .i3-metric {
    min-width: 0;
    padding: 7px 8px;
    gap: 4px;
  }
  .i3-metric small {
    font-size: 10px;
  }
  .i3-metric strong {
    font-size: 13px;
  }
  .i3-views {
    left: 12px;
    right: 12px;
    bottom: 27px;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .i3-views button {
    flex-shrink: 0;
    font-size: 12px;
    padding: 7px 9px;
    min-height: 33px;
  }
  .i3-hint {
    display: none;
  }
  .i3-phase {
    left: 14px;
    bottom: 70px;
    padding: 6px 8px;
    font-size: 11px;
    max-width: calc(100% - 28px);
    letter-spacing: 0.08em;
  }
  .i3-attribution {
    font-size: 10px;
    bottom: 4px;
    right: 8px;
    padding: 2px 5px;
  }
  .i3-panel {
    border-left: 0;
    border-top: 1px solid #315469;
  }
  .i3-panel-tabs {
    padding: 8px 12px;
    position: sticky;
  }
  .i3-panel-tabs button {
    min-height: 34px;
    padding: 7px;
    font-size: 13px;
  }
  .i3-settings,
  .i3-facts {
    padding: 0 14px 20px;
  }
  .i3-panel h3 {
    margin: 16px 0 10px;
    font-size: 17px;
  }
  .i3-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .i3-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    font-size: 14px;
  }
  .i3-inputs > .i3-stack {
    grid-column: 1/-1;
  }
  .i3-settings > select,
  .i3-settings > input {
    font-size: 14px;
  }
  .i3-playback {
    padding: 10px 12px;
    gap: 9px;
    flex-wrap: wrap;
    align-content: center;
  }
  .i3-playback > .i3-primary {
    min-width: 0;
    flex: 1;
    font-size: 14px;
  }
  .i3-playback > button {
    min-height: 36px;
    padding: 8px 11px;
  }
  .i3-playback select {
    width: 66px;
    min-height: 36px;
    padding: 7px;
    font-size: 13px;
  }
  .i3-timeline-wrap {
    order: 5;
    flex-basis: 100%;
  }
  .i3-timeline-wrap small {
    margin-top: 6px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .i3-time {
    font-size: 12px;
    min-width: 30px;
  }
  .i3-timeline {
    margin: 0;
  }
  .i3-source {
    font-size: 12px;
  }
}
@media (max-height: 600px) and (min-width: 761px) {
  .i3-layout {
    grid-template-rows: 54px minmax(0, 1fr) 75px;
  }
  .i3-brand > strong {
    display: none;
  }
  .i3-metrics {
    top: 110px;
  }
  .i3-stage-title {
    top: 15px;
  }
  .i3-stage-title h2 {
    font-size: 26px;
  }
  .i3-metric {
    padding: 8px;
  }
  .i3-phase {
    bottom: 100px;
  }
  .i3-views {
    bottom: 40px;
  }
  .i3-hint {
    display: none;
  }
}

.i3-views {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.i3-views button {
  flex-shrink: 0;
  white-space: nowrap;
}
.i3-panel .i3-muted {
  font-size: 14px;
}
.i3-hint {
  font-size: 12px;
}
.i3-city-status {
  max-width: min(480px, 70vw);
  font-size: 14px;
  line-height: 1.5;
  color: #d5eaf0;
  pointer-events: auto;
}
.i3-city-status button {
  display: block;
  margin-top: 8px;
}
