:root {
  --void: #010104;
  --bone: #e8f4ef;
  --ash: #8d9aa3;
  --hair: rgba(126, 255, 196, 0.14);
  --life: #7effc4;
}

#sky {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background: #070614 url(/galaxy.jpg) center center / cover no-repeat;
  transform: scale(1.42);
  transform-origin: center center;
  filter: brightness(1.18) saturate(1.22) contrast(1.06);
}
#cosmos {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
body.gate-body.cosmos { cursor: none; }
body.gate-body.cosmos input, body.gate-body.cosmos textarea { cursor: text; }

* { box-sizing: border-box; }
html, body { height: 100%; }
::selection { background: rgba(236, 232, 223, 0.16); }

body.room {
  margin: 0;
  background: #010104;
  color: var(--bone);
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 300;
  letter-spacing: 0.06em;
  display: grid;
  grid-template-columns: 148px 1fr;
  overflow: hidden;
}

.mark svg { width: 100%; height: 100%; overflow: visible; }
.mark .a-stroke, .mark .a-bar {
  fill: none;
  stroke: var(--bone);
  stroke-width: 5.5;
  stroke-linejoin: miter;
  stroke-linecap: square;
}
.mark .ouroboros { transform-origin: 60px 52px; animation: devour 22s linear infinite; }
.mark .ouroboros circle { fill: none; stroke: var(--life); stroke-width: 1.1; }
.mark .ouroboros circle.inner { stroke-width: 0.5; opacity: 0.35; }
.mark .ouroboros text {
  fill: var(--life);
  font-family: ui-monospace, monospace;
  font-size: 5.2px;
  letter-spacing: 0.7px;
}
@keyframes devour { to { transform: rotate(360deg); } }
.mark { width: 44px; height: 48px; }
.mark.tall { width: 120px; height: 132px; }

#boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 2, 10, 0.22);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  transition: opacity 1s ease, visibility 1s;
}
#boot.out { opacity: 0; visibility: hidden; }
#boot p {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.8em;
}

.slit {
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 16px 28px;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 4, 0.18);
  backdrop-filter: blur(8px);
}
.seal {
  writing-mode: vertical-rl;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.55em;
  margin: 24px 0 0;
}

nav {
  margin-top: 48px;
  display: grid;
  gap: 18px;
  justify-items: center;
  width: 100%;
}
.nav-item, .leave, .cmd, .enter {
  appearance: none;
  border: 0;
  background: none;
  color: var(--bone);
  font: inherit;
  cursor: pointer;
  padding: 14px 20px;
  letter-spacing: 0.12em;
}
.nav-item, .leave {
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  width: 100%;
  min-height: 78px;
}
.nav-item.active, .nav-item:hover, .leave:hover, .cmd:hover, .starbox.star-hot {
  color: var(--bone);
}

.starbox {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.star-skin {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.starbox > :not(.star-skin) { position: relative; z-index: 2; }
.star-label, .well-copy, .head h2, .figures b, .seal, .block h3, #panel-settings h3 {
  text-shadow: 0 0 22px #000, 0 2px 10px #000, 0 0 4px #000;
}
.leave { margin-top: auto; }

main {
  overflow: auto;
  padding: 48px 56px 80px;
  position: relative;
  z-index: 2;
  background: transparent;
}
main::-webkit-scrollbar { width: 8px; }
main::-webkit-scrollbar-thumb { background: var(--hair); }

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}
.head h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 42px;
  letter-spacing: 0.2em;
}
.head-acts { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.cmd {
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  min-width: 92px;
  min-height: 64px;
  display: inline-grid;
  place-items: center;
}
.cmd.primary { color: var(--bone); }

.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.figures b {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 40px;
  letter-spacing: 0.04em;
}
.figures span {
  display: block;
  margin-top: 8px;
  color: var(--ash);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.wells { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.well {
  display: block;
  min-height: 240px;
  padding: 32px 28px;
  border: 0;
  cursor: pointer;
  background: transparent;
}
.well-copy {
  display: block;
  max-width: 38ch;
}
.well.over, .well.star-hot { color: var(--bone); }
.well em {
  font-style: normal;
  color: var(--ash);
  font-size: 11px;
  letter-spacing: 0.28em;
}
.well strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--bone);
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.12em;
}
.well p { margin: 0; color: var(--ash); line-height: 1.85; max-width: 36ch; font-size: 13px; }
.well i { display: block; margin-top: 22px; font-style: normal; font-size: 12px; color: var(--bone); opacity: 0.55; }
code { font-family: inherit; color: var(--bone); }

.block h3, #panel-settings h3 {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.16em;
}
.block-note { color: var(--ash); margin: 0 0 20px; line-height: 1.8; }
.cols, .row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 0.6fr;
  gap: 20px;
}
.cols.four, .row.four { grid-template-columns: 1.1fr 1fr 1.3fr 0.7fr; }
.cols {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hair);
  color: var(--ash);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.ledger { display: grid; }
.row {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
  letter-spacing: 0.04em;
  align-items: baseline;
}
.empty { color: var(--ash); padding: 16px 0; font-size: 13px; }

.law {
  max-width: 28em;
  line-height: 2.1;
  color: var(--ash);
  margin: 0 0 36px;
}
.star-field {
  position: relative;
}
.field {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--ash);
  margin-bottom: 28px;
  padding: 16px 18px 14px;
  width: min(280px, 100%);
}
.field input {
  width: 120px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hair);
  color: var(--bone);
  font: inherit;
  padding: 8px 0;
  outline: none;
  border-radius: 0;
}
.field input:focus { border-bottom-color: var(--bone); }
.note { color: var(--ash); min-height: 1.4em; font-size: 13px; }
.hidden { display: none; }

#toast[hidden] { display: none; }
#toast {
  position: fixed;
  left: 148px;
  bottom: 28px;
  z-index: 20;
  color: var(--ash);
  font-size: 13px;
  letter-spacing: 0.12em;
}

body.room.gate-body {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
}
.gate {
  text-align: center;
  width: min(360px, 86vw);
}
.gate h1 {
  margin: 36px auto 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.55em;
  writing-mode: vertical-rl;
  text-indent: 0;
  line-height: 1.15;
}
.whisper {
  margin: 14px 0 0;
  color: var(--ash);
  font-size: 12px;
  letter-spacing: 0.36em;
}
.gate form {
  margin-top: 56px;
  position: relative;
}
.gate input {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hair);
  color: var(--bone);
  font: inherit;
  letter-spacing: 0.28em;
  padding: 12px 0 10px;
  outline: none;
  border-radius: 0;
  text-align: center;
}
.gate input:focus { border-bottom-color: var(--bone); }
.gate label {
  display: block;
  margin-top: 12px;
  color: var(--ash);
  font-size: 11px;
  letter-spacing: 0.4em;
}
.enter {
  display: inline-block;
  margin-top: 28px;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  letter-spacing: 0.46em;
  color: var(--bone);
}

.hint {
  margin-top: 28px;
  color: var(--ash);
  font-size: 12px;
  letter-spacing: 0.28em;
}

body.room.vista,
body.vista {
  --ink: #ece8e0;
  --mute: rgba(236, 232, 224, 0.55);
  --life: #8fd4a4;
  --bone: #ece8e0;
  --gold: #e8c56b;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --glass: #14151c;
  --glass-edge: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  background: #0b0c10;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0;
  cursor: auto;
  height: 100%;
  overflow: hidden;
}
body.vista .topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px 20px;
  width: 100%;
  background: #0b0c10;
}
body.vista .brand {
  appearance: none;
  border: 0;
  background: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  cursor: pointer;
  color: inherit;
}
body.vista .brand .mark { width: 22px; height: 24px; }
body.vista .seal {
  writing-mode: horizontal-tb;
  letter-spacing: 0.28em;
  margin: 0;
  text-align: left;
  text-shadow: none;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
}
body.vista .brand.active .seal { color: var(--ink); }
body.vista .brand:hover .seal { color: var(--gold); }
body.vista nav {
  margin: 0 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: auto;
}
body.vista .nav-item,
body.vista .leave {
  min-height: 36px;
  width: auto;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(236, 232, 224, 0.72);
  letter-spacing: 0.16em;
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  background: none;
  transition: color 0.25s ease, background 0.25s ease;
}
body.vista .nav-item:hover,
body.vista .leave:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
body.vista .nav-item.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}
body.vista .leave { margin: 0 0 0 8px; }
body.vista .mark .a-stroke,
body.vista .mark .a-bar { stroke: #ece8e0; }
body.vista .mark .ouroboros { animation-duration: 56s; }
body.vista .mark .ouroboros circle { stroke: var(--gold); }
body.vista .mark .ouroboros text { fill: var(--gold); }
body.vista .hero-sec {
  padding: 0 16px 16px;
}
body.vista .stage {
  position: relative;
  z-index: 1;
  max-width: 1696px;
  min-height: 1700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
}
body.vista .stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.vista .stage-bg img {
  position: absolute;
  left: 0;
  right: 0;
  top: -68%;
  width: 100%;
  height: 210%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
  transform: scale(1.05);
  animation: vista-drift 96s ease-in-out infinite alternate;
}
@keyframes vista-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(0, -2.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.vista .stage-bg img {
    animation: none;
    transform: scale(1.05);
  }
}
body.vista #boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #090b10 url("/dawn.jpg") center / cover no-repeat;
  transition: opacity 1.1s var(--spring), visibility 1.1s;
}
body.vista #boot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.35);
}
body.vista #boot .mark,
body.vista #boot p { position: relative; z-index: 1; }
body.vista #boot p {
  letter-spacing: 0.55em;
  font-size: 16px;
  color: #fff8ee;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
body.vista .hero {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  text-align: center;
  width: 100%;
  padding: 88px 24px 56px;
  min-height: 0;
}
@media (min-width: 1024px) {
  body.vista .hero { padding: 72px 159px 48px; }
}
body.vista .weather {
  margin: 0 auto 16px;
  max-width: 20em;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
body.vista .launch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
}
body.vista .go {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1408;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  cursor: pointer;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--spring), filter 0.25s ease, background 0.25s ease;
}
body.vista .go.alt {
  background: rgba(10, 12, 18, 0.72);
  color: #f4eee4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  letter-spacing: 0.22em;
  margin: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.vista .go.alt:hover {
  color: #fff;
  background: rgba(10, 12, 18, 0.88);
  transform: translateY(-1px);
}
body.vista .go:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
body.vista .go:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  filter: none;
}
body.vista .launch-hint {
  margin: 12px auto 0;
  color: rgba(255, 248, 236, 0.72);
  font-size: 13px;
  max-width: 32em;
  line-height: 1.6;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
body.vista .console-slot {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(0, 1020px) 1fr;
  width: 100%;
}
body.vista .console {
  position: relative;
  z-index: 2;
  flex: none;
  grid-column: 2;
  width: auto;
  aspect-ratio: 1442 / 1026;
  max-height: min(620px, calc(100vh - 420px));
  height: auto;
  margin: 0 32px;
  display: flex;
  flex-direction: column;
  background: #0d0c14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
body.vista .stage-foot {
  position: relative;
  z-index: 10;
  margin-top: auto;
  min-height: 280px;
  flex-shrink: 0;
}
body.vista .console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
body.vista #console-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(236, 232, 224, 0.78);
}
body.vista .console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 197, 107, 0.55);
}
body.vista .console-dot.on {
  background: var(--life);
  box-shadow: 0 0 10px rgba(143, 212, 164, 0.55);
}
body.vista .console-dot.alert {
  background: #e08a7a;
  box-shadow: 0 0 10px rgba(224, 138, 122, 0.45);
}
body.vista main {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 28px 36px;
  background-color: transparent;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
body.vista main::-webkit-scrollbar { width: 8px; }
body.vista main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}
body.vista .panel { padding: 0; max-width: none; }
body.vista .board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 28px;
  margin: 0 0 20px;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.14em;
}
body.vista .board-head b {
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-left: 8px;
}
body.vista .board-head .ok,
body.vista .board-head .ok b { color: var(--life); }
body.vista .board-head .bad,
body.vista .board-head .bad b { color: #e08a7a; }
body.vista .cols.board,
body.vista .row.board {
  grid-template-columns: 3.2em 3.6em minmax(7em, 1.15fr) minmax(7em, 1.2fr) minmax(6em, 1fr) minmax(5.5em, 1fr);
  align-items: center;
}
body.vista .cols.board.px,
body.vista .row.board.px {
  grid-template-columns: 3.2em 1.4fr 5.5em 1fr 5em;
}
body.vista .row.board {
  padding: 9px 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
body.vista .ledger.lies {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.vista .ledger.lies.empty {
  min-height: 9em;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  letter-spacing: 0.16em;
}
body.vista .lie {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease;
}
body.vista .lie:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}
body.vista .lie-idx {
  color: var(--mute);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding-top: 7px;
}
body.vista .lie-main { min-width: 0; }
body.vista .lie-phone {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.25;
}
body.vista .lie-name {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-size: 13px;
  letter-spacing: 0.12em;
}
body.vista .lie-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 12px;
}
body.vista .lie-fact {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
body.vista .lie-fact em {
  font-style: normal;
  margin-right: 8px;
  color: rgba(236, 232, 224, 0.38);
  font-size: 11px;
  letter-spacing: 0.18em;
}
body.vista .lie .st {
  justify-self: end;
  font-size: 13px;
  padding-top: 6px;
  white-space: nowrap;
}
body.vista .st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.vista .st i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
body.vista .st.ok { color: var(--life); }
body.vista .st.bad { color: #e08a7a; }
body.vista .st.busy { color: var(--gold); }
body.vista .star-label,
body.vista .well-copy,
body.vista .head h2,
body.vista .figures b,
body.vista .seal,
body.vista .block h3,
body.vista #panel-settings h3 { text-shadow: none; }
body.vista .figures {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
body.vista .figures > div {
  background: #14151c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
}
body.vista .figures b {
  font-family: "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow: none;
}
body.vista .figures span {
  color: var(--mute);
  letter-spacing: 0.18em;
  font-size: 11px;
  display: block;
  margin-top: 6px;
}
body.vista .wells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  max-width: none;
}
body.vista .well {
  min-height: 0;
  background: #14151c;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 16px 12px;
  backdrop-filter: none;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
body.vista .well:hover,
body.vista .well.over {
  background: #1a1c24;
  transform: none;
  box-shadow: none;
  border-color: rgba(232, 197, 107, 0.45);
  border-style: solid;
}
body.vista .well:hover strong,
body.vista .well.over strong { color: var(--gold); }
body.vista .well em { display: none; }
body.vista .well strong {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--gold);
}
body.vista .well p,
body.vista .block-note,
body.vista .law,
body.vista .note,
body.vista .empty {
  color: var(--mute);
}
body.vista .well p { max-width: none; }
body.vista .well i { display: none; }
body.vista code { color: var(--ink); }
body.vista .block { background: none; padding: 0; max-width: none; }
body.vista .block h3,
body.vista #panel-settings h3 {
  font-family: inherit;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--mute);
  letter-spacing: 0.22em;
}
body.vista .cols {
  color: var(--mute);
  letter-spacing: 0.12em;
  border-bottom-color: var(--line);
}
body.vista .row {
  border-bottom-color: var(--line);
  color: var(--ink);
}
body.vista .row .ok { color: var(--life); }
body.vista .row .bad { color: #e08a7a; }
body.vista .row .busy { color: var(--mute); }
body.vista .field {
  padding: 12px 14px;
  background: #14151c;
  border-radius: 10px;
  color: var(--mute);
  backdrop-filter: none;
  width: min(280px, 100%);
}
body.vista .field input,
body.vista textarea {
  background: #14151c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  width: min(100%, 560px);
}
body.vista textarea {
  display: block;
  min-height: 8em;
  resize: vertical;
  line-height: 1.7;
  margin-bottom: 8px;
}
body.vista .field input {
  width: 120px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0;
}
body.vista .field input:focus,
body.vista textarea:focus {
  outline: none;
  border-color: rgba(232, 197, 107, 0.55);
  box-shadow: none;
}
body.vista .cmd {
  min-width: auto;
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--mute);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.28em;
}
body.vista .cmd:hover,
body.vista .cmd.primary:hover {
  color: var(--ink);
  background: none;
}
body.vista .cmd.primary {
  background: none;
  color: var(--gold);
  margin-top: 12px;
}
body.vista .law { margin: 0 0 16px; max-width: 36em; }
body.vista .more {
  max-width: 1400px;
  margin: 28px auto 0;
  min-height: 70vh;
}
body.vista #toast {
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  letter-spacing: 0.06em;
  background: rgba(12, 13, 18, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  padding: 12px 18px;
}

body.vista .work {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  min-height: 0;
}
body.vista .rail {
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #101117;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
body.vista .filters {
  display: flex;
  gap: 8px;
  padding: 14px 16px 8px;
}
body.vista .pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--mute);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
body.vista .pill.on {
  background: #ece8e0;
  color: #121318;
  border-color: #ece8e0;
}
body.vista .rail-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 12px;
  color: var(--mute);
  font-size: 13px;
}
body.vista .seek {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
body.vista .seek input {
  width: 108px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  padding: 4px 0;
  outline: none;
}
body.vista .goods {
  flex: 1;
  overflow: auto;
  padding: 0 8px 12px;
  scrollbar-width: thin;
}
body.vista .goods.empty {
  display: grid;
  place-items: center;
  color: var(--mute);
  letter-spacing: 0.12em;
  font-size: 13px;
}
body.vista .good {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
}
body.vista .good:hover,
body.vista .good.on {
  background: rgba(255, 255, 255, 0.045);
}
body.vista .face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 197, 107, 0.16);
  color: var(--gold);
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
}
body.vista .face.ok { background: rgba(143, 212, 164, 0.2); color: var(--life); }
body.vista .face.bad { background: rgba(224, 138, 122, 0.2); color: #e08a7a; }
body.vista .good-main b {
  display: block;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
body.vista .good-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  min-height: 18px;
}
body.vista .good-meta.big { gap: 10px; margin: 14px 0 0; }
body.vista .dev {
  width: 16px;
  height: 16px;
  color: var(--mute);
  flex: none;
}
body.vista .flag {
  height: 14px;
  width: auto;
  border-radius: 2px;
  display: block;
}
body.vista .vip {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #1a1408;
  background: var(--gold);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 500;
}
body.vista .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-block;
}
body.vista .pip.ok { background: var(--life); box-shadow: 0 0 8px rgba(143, 212, 164, 0.55); }
body.vista .pip.bad { background: #e08a7a; }
body.vista .pip.busy { background: var(--gold); }
body.vista .view {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--mute);
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
body.vista .view:hover,
body.vista .good.on .view {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
}
body.vista .rail-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.vista .well.mini {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  min-height: 0;
}
body.vista .well.mini p { margin: 4px 0 0; font-size: 11px; }

body.vista .vista-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #07080c;
}
body.vista .film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) contrast(0.96) brightness(0.92);
}
body.vista .film-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 9, 14, 0.28) 0%, transparent 42%);
  pointer-events: none;
}
body.vista .film-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  z-index: 2;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  letter-spacing: 0.08em;
}
body.vista .vista-detail,
body.vista .sheet {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 28px;
  bottom: auto;
  width: min(440px, calc(100% - 56px));
  max-height: calc(100% - 56px);
  overflow: auto;
  padding: 28px 28px 32px;
  border-radius: 16px;
  background: rgba(10, 12, 16, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.vista .vista-detail.hidden,
body.vista .sheet.hidden { display: none; }
body.vista .vista-detail h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 36px;
  letter-spacing: 0.04em;
}
body.vista .handle {
  margin: 8px 0 0;
  color: var(--mute);
  letter-spacing: 0.06em;
}
body.vista .bio {
  margin: 14px 0 0;
  max-width: 28em;
  line-height: 1.7;
  color: var(--mute);
}
body.vista .hlabel { color: var(--mute); font-size: 13px; }
body.vista .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
}
body.vista .bit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.04em;
}
body.vista .bit em { font-style: normal; }
body.vista .vista-detail .launch { margin-top: 28px; justify-content: flex-start; }
body.vista .vista-detail .launch-hint {
  margin: 12px 0 0;
  text-align: left;
  max-width: 32em;
}
body.vista .sheet h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--mute);
}
body.vista .sheet h3 b {
  margin-left: 8px;
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: 22px;
}
body.vista .px-row {
  display: grid;
  grid-template-columns: 1fr 5em 4em;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
body.vista .px-row b { font-weight: 400; }

@media (max-width: 800px) {
  body.vista .work { grid-template-columns: 1fr; }
  body.vista .rail { max-height: 46vh; }
  body.vista .vista-detail,
  body.vista .sheet {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
}

@media (max-width: 800px) {
  body.room { grid-template-columns: 1fr; }
  .slit {
    flex-direction: row;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--hair);
    gap: 16px;
  }
  .seal { writing-mode: horizontal-tb; letter-spacing: 0.4em; margin: 0; font-size: 14px; }
  nav { margin: 0 0 0 auto; display: flex; gap: 16px; }
  .leave { margin-left: 8px; }
  main { padding: 8vh 8vw 12vh; }
  .head { flex-direction: column; align-items: flex-start; }
  .head h2 { font-size: 32px; }
  .figures, .wells, .cols, .row, .cols.four, .row.four { grid-template-columns: 1fr 1fr; }
  body.vista {
    padding: 0;
  }
  body.vista .hero-sec { padding: 0 8px 8px; }
  body.vista .topbar {
    min-height: 48px;
    padding: 2px 12px 6px;
  }
  body.vista .seal { font-size: 13px; letter-spacing: 0.18em; }
  body.vista nav { gap: 0; }
  body.vista .nav-item,
  body.vista .leave { padding: 8px 10px; }
  body.vista .hero { padding: 72px 16px 40px; min-height: 0; }
  body.vista .weather { font-size: 28px; }
  body.vista .console-slot { grid-template-columns: 1fr; }
  body.vista .console { grid-column: 1; width: auto; margin: 0 12px; border-radius: 10px; }
  body.vista .stage { min-height: 1200px; padding: 0; border-radius: 14px; }
  body.vista .stage-foot { min-height: 160px; }
  body.vista main { padding: 16px 14px 24px; overflow-x: auto; }
  body.vista .lie {
    grid-template-columns: 2.2em minmax(0, 1fr);
  }
  body.vista .lie .st {
    grid-column: 2;
    justify-self: start;
    padding-top: 0;
  }
  body.vista .cols.board,
  body.vista .row.board { min-width: 640px; }
  body.vista .cols.board.px,
  body.vista .row.board.px { min-width: 480px; }
  body.vista .wells { grid-template-columns: 1fr; }
  body.vista #toast { left: 50%; }
}
