:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #ededed;
  background: #0c0c0c;
  color-scheme: dark;
  font-synthesis: none;
  --accent: #b9d0ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
}
a {
  color: inherit;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.app {
  height: 100dvh;
  min-height: 400px;
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr);
}
.header {
  position: relative;
  z-index: 10;
  background: #131313;
  border-bottom: 1px solid #303030;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 700;
  white-space: nowrap;
}
.brand span {
  font:
    8px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 1px;
  color: #8c8c8c;
  border-left: 1px solid #3a3a3a;
  padding: 4px 0 4px 8px;
}
#controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  gap: 8px;
  margin-left: auto;
}
.place-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 9px;
  color: #999;
  letter-spacing: 0.3px;
}
#controls .place-field {
  flex: 1 1 140px;
  max-width: 190px;
}
select,
.search-select input {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid #393939;
  border-radius: 6px;
  background: #222;
  color: #eee;
  font-size: 12px;
  letter-spacing: 0;
}
select {
  cursor: pointer;
}
#roll,
#more-toggle {
  height: 34px;
  flex-shrink: 0;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
#roll {
  min-width: 86px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #111a2b;
  font-weight: 650;
  transition: background 0.15s ease;
}
#roll:hover:not(:disabled) {
  background: #d1dfff;
}
#more-toggle {
  color: #aaa;
  border: 1px solid #393939;
  background: transparent;
}
#more-toggle:hover,
#more-toggle[aria-expanded="true"] {
  color: #eee;
  border-color: #777;
}
button:disabled,
select:disabled {
  opacity: 0.45;
  cursor: default;
}
.privacy {
  flex-shrink: 0;
  font-size: 11px;
  color: #999;
  text-decoration: none;
}
.privacy:hover {
  color: #eee;
}
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #292929;
  padding: 8px 20px;
  min-height: 30px;
  color: #999;
  font-size: 10px;
}
.statusbar p {
  margin: 0;
}
.location {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
#place {
  font:
    9px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.7px;
  color: #aaa;
}
#open {
  color: #ccc;
  text-decoration: none;
}
.viewer {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #101010;
}
#live,
iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
#live {
  position: relative;
  z-index: 1;
}
#empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 40%, #202020, transparent 65%), #101010;
}
#empty h1 {
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 500;
  margin: 14px 0;
}
#empty p {
  margin: 0;
  color: #999;
  font-size: 13px;
  line-height: 1.6;
}
#empty .eyebrow {
  font:
    9px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 2px;
  margin-top: 28px;
  color: var(--accent);
}
.orb {
  position: relative;
  width: 96px;
  height: 96px;
  border: 1px solid #777;
  border-radius: 50%;
  transform: rotate(-22deg);
  opacity: 0.65;
}
.orb:before,
.orb:after,
.orb span {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #777;
  border-radius: 50%;
}
.orb:before {
  left: 28%;
  right: 28%;
}
.orb:after {
  top: 28%;
  bottom: 28%;
}
.orb span {
  inset: 15% -12%;
  border-left-color: transparent;
  border-right-color: transparent;
  transform: rotate(-30deg);
}
.searching .statusbar {
  color: var(--accent);
}
.loading .orb,
.awaiting-view .orb {
  animation: rotate 12s linear infinite;
}
@keyframes rotate {
  to {
    transform: rotate(338deg);
  }
}
#more-areas,
fieldset {
  border: 0;
  border-top: 1px solid #292929;
  margin: 0;
  padding: 12px 20px;
}
#more-areas select {
  width: min(100%, 300px);
}
legend {
  float: left;
  width: 100%;
  font-size: 10px;
  color: #aaa;
  margin-bottom: 10px;
}
.bound-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(60px, 120px));
  gap: 10px;
}
.bound-fields label {
  color: #999;
  font-size: 10px;
}
.bound-fields input {
  width: 100%;
  display: block;
  margin-top: 5px;
  padding: 7px;
  background: #222;
  color: #eee;
  border: 1px solid #393939;
  border-radius: 5px;
}
.hint {
  font-size: 10px;
  color: #999;
  line-height: 1.6;
  margin: 10px 0 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body > main:not(.app) {
  max-width: 800px;
  margin: 50px auto;
  padding: 24px;
  line-height: 1.7;
}
body > main:not(.app) h1 {
  font-weight: 500;
  letter-spacing: -1px;
}
@media (max-width: 1100px) {
  .toolbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }
  .brand {
    font-size: 22px;
  }
  .privacy {
    margin-left: auto;
    order: 1;
  }
  #controls {
    order: 2;
    width: 100%;
    margin: 0;
    flex-basis: 100%;
  }
  #controls .place-field {
    max-width: none;
  }
}
@media (max-width: 760px) {
  #controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .statusbar {
    padding: 7px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .location {
    width: 100%;
    justify-content: space-between;
  }
  #more-areas,
  fieldset {
    padding: 12px 16px;
  }
  .bound-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading .orb,
  .awaiting-view .orb {
    animation: none;
  }
  #roll {
    transition: none;
  }
}

/* All place controls use the same Base UI combobox primitive. */
#root {
  min-height: 100dvh;
  isolation: isolate;
}
.place-field label {
  color: #999;
  font-size: 9px;
  letter-spacing: 0.3px;
}
.combo-control {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  border: 1px solid #393939;
  border-radius: 6px;
  background: #222;
}
.combo-control:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.combo-control[data-disabled] {
  opacity: 0.45;
}
.combo-control input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 7px 56px 7px 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eee;
  font-size: 12px;
}
.combo-control input::placeholder {
  color: #bbb;
  opacity: 1;
}
.combo-control input:focus-visible {
  outline: 0;
}
.combo-actions {
  position: absolute;
  right: 4px;
  top: 4px;
  display: flex;
  align-items: center;
}
.combo-trigger,
.combo-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 15px;
}
.combo-trigger:hover,
.combo-clear:hover {
  color: #fff;
}
.combo-positioner {
  z-index: 100;
}
.combo-popup {
  width: max(220px, var(--anchor-width));
  max-width: calc(100vw - 24px);
  max-height: min(320px, var(--available-height));
  overflow: auto;
  padding: 4px;
  border: 1px solid #494949;
  border-radius: 7px;
  background: #1d1d1d;
  color: #eee;
  box-shadow: 0 12px 32px #0009;
}
.combo-list {
  outline: none;
}
.combo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: default;
}
.combo-option[data-highlighted] {
  background: #2b3548;
  color: var(--accent);
}
.combo-check {
  color: var(--accent);
  font-size: 11px;
}
.combo-empty {
  font-size: 12px;
  line-height: 1.5;
  color: #aaa;
}
.combo-empty:not(:empty) {
  padding: 12px 10px;
}
#more-areas {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
}
#more-areas .place-field {
  width: 260px;
  max-width: 100%;
}
#more-areas fieldset {
  padding: 0;
  border: 0;
}
.panel-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-size: 11px;
  padding-bottom: 10px;
  color: #aaa;
}
.panel-links a {
  text-decoration: none;
}
.panel-links a:hover {
  color: #fff;
}
.retry {
  background: none;
  color: var(--accent);
  border: 0;
  padding: 0 4px;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.document {
  max-width: 780px;
  margin: 40px auto;
  padding: 24px;
  line-height: 1.75;
  color: #ccc;
}
.document nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  margin-bottom: 44px;
}
.document h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1.3px;
  color: #f0f0f0;
}
.document h2 {
  margin-top: 32px;
  font-size: 19px;
  font-weight: 500;
  color: #eee;
}
.document a {
  color: var(--accent);
}
.document pre {
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: 7px;
  padding: 16px;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 12px;
}
.document code {
  font-size: 0.9em;
}
@media (max-width: 760px) {
  .panel-links {
    margin-left: 0;
    flex-wrap: wrap;
  }
  .document {
    margin: 10px auto;
    padding: 20px;
  }
}
