:root {
  --bg: #05080b;
  --panel: #0a1116;
  --panel-2: #0d161d;
  --line: #16323d;
  --ink: #c9e2e6;
  --dim: #5f8290;
  --cyan: #4fd8e0;
  --amber: #f0b429;
  --red: #e05252;
  --green: #57d68a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -15%, rgba(24, 66, 80, 0.5), transparent 62%),
    radial-gradient(900px 520px at 82% 112%, rgba(12, 44, 58, 0.55), transparent 66%),
    linear-gradient(180deg, #05080b 0%, #04070a 52%, #060c11 100%);
  background-attachment: fixed;
}

#depth {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(79, 216, 224, 0.09), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  z-index: 1;
}

#app {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 60px;
}

a {
  color: var(--cyan);
}

/* ---------- auth ---------- */

.auth {
  max-width: 520px;
  margin: 8vh auto 0;
}

.auth pre {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  margin: 0 0 14px;
  text-shadow: 0 0 18px rgba(79, 216, 224, 0.45);
  white-space: pre;
  overflow-x: auto;
}

.auth .sub {
  color: var(--dim);
  margin-bottom: 22px;
  max-width: 46ch;
}

.field {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.field label {
  width: 78px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

input,
textarea,
select {
  /* A basis, not just a share: with flex: 1 and min-width: 0 these collapsed
     to about fifty pixels beside a button, which is unreadable on a phone. */
  flex: 1 1 140px;
  min-width: 0;
  background-color: #070e13;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.14));
  border: 1px solid #1b3a46;
  border-radius: 7px;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  min-height: 42px;
  letter-spacing: 0.03em;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

textarea {
  min-height: 88px;
  resize: vertical;
  padding: 11px 12px;
}

input::placeholder,
textarea::placeholder {
  color: #3d5a66;
}

input:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
  border-color: #24505f;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(79, 216, 224, 0.72);
  background-color: #0a1a21;
  box-shadow:
    0 0 0 3px rgba(79, 216, 224, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.14)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6L6 6.4l5-4.8' fill='none' stroke='%235f8290' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position:
    0 0,
    right 13px center;
  background-size:
    auto,
    10px 7px;
  padding-right: 36px;
  cursor: pointer;
}

select:focus {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.14)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.6L6 6.4l5-4.8' fill='none' stroke='%234fd8e0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select option {
  background: #071016;
  color: var(--ink);
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button {
  font: inherit;
  background: #0e1a20;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

button:hover:not(:disabled) {
  background: #12252d;
  border-color: var(--cyan);
  color: #eaffff;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button.primary {
  border-color: rgba(79, 216, 224, 0.6);
  color: var(--cyan);
}

button.danger {
  border-color: rgba(224, 82, 82, 0.5);
  color: var(--red);
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.err {
  color: var(--red);
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
}

/* ---------- header ---------- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  font-size: 15px;
  letter-spacing: 0.34em;
  color: var(--cyan);
}

.brand small {
  display: block;
  letter-spacing: 0.18em;
  font-size: 9px;
  color: var(--dim);
  margin-top: 2px;
}

.who {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
  text-align: right;
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
}

.who b {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.who .sep {
  color: #2c4a55;
}

.who .whotitle {
  color: var(--cyan);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.who .whocred {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.who .whocred small {
  color: #4d7481;
  font-size: 9px;
}

.ranktitle {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 5px;
}

.ranknum {
  color: var(--dim);
  margin-right: 5px;
}

/* ---------- layout ---------- */

.grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), #070d11);
  padding: 12px 13px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dim);
  text-transform: uppercase;
  font-weight: 400;
}

.panel + .panel {
  margin-top: 14px;
}

/* ---------- navigation drawer ---------- */

.brandrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: #0a161b;
  flex: 0 0 auto;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  opacity: 0.85;
  transition: width 0.18s ease, opacity 0.18s ease;
}

.menu-btn span:nth-child(2) {
  width: 66%;
}

.menu-btn:hover span {
  opacity: 1;
  width: 100%;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(2, 6, 8, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.scrim.open.closing {
  opacity: 0;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(310px, 86vw);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  background: linear-gradient(180deg, #08141b 0%, #050b0f 100%);
  border-right: 1px solid var(--line);
  box-shadow: 40px 0 70px -40px #000;
  transform: translateX(-105%);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer.open {
  transform: none;
}

.drawer.open.closing {
  transform: translateX(-105%);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.iconbtn {
  border: 1px solid var(--line);
  background: #0a161b;
  color: var(--dim);
  padding: 6px 10px;
  line-height: 1;
}

.drawer-user {
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: #071016;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-user b {
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.drawer-user span {
  color: var(--dim);
  font-size: 11px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  flex: 1;
}

.navitem {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  text-align: left;
}

.navitem i {
  font-style: normal;
  width: 16px;
  text-align: center;
  color: var(--cyan);
  opacity: 0.7;
}

.navitem span {
  letter-spacing: 0.12em;
}

.navitem:hover {
  background: #0c1a21;
  color: var(--ink);
}

.navitem.on {
  background: #0c1c24;
  border-color: var(--line);
  color: var(--ink);
}

.navitem.on i {
  opacity: 1;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.drawer-foot button {
  width: 100%;
}

body.locked {
  overflow: hidden;
}

/* ---------- view transitions ---------- */

.view.enter {
  animation: viewIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.flash.enter {
  animation: flashIn 0.3s ease-out;
}

@keyframes flashIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- meters ---------- */

.meter {
  margin-bottom: 10px;
}

.meter .lab {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
}

.meter .lab b {
  color: var(--ink);
  letter-spacing: 0.04em;
}

.track {
  height: 6px;
  background: #071116;
  border: 1px solid #10242c;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.fill {
  height: 100%;
  transition: width 0.3s;
}

.fill.air {
  background: linear-gradient(90deg, #2a8f9b, var(--cyan));
}
.fill.nerve {
  background: linear-gradient(90deg, #8a5ad1, #b98cf0);
}
.fill.vitals {
  background: linear-gradient(90deg, #2f8f5c, var(--green));
}
.fill.red {
  background: linear-gradient(90deg, #8d2f2f, var(--red));
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dotted #12262e;
  font-size: 12px;
}

.stat-row span:first-child {
  color: var(--dim);
}

.stat-row span:last-child {
  color: var(--ink);
}

.big {
  font-size: 18px;
  color: var(--amber);
  letter-spacing: 0.05em;
}

/* ---------- compact resource strip (mobile only) ---------- */

.mobilestrip {
  display: none;
}

.mobilestrip .cell {
  position: relative;
  border: 1px solid rgba(30, 62, 74, 0.9);
  background: linear-gradient(180deg, rgba(17, 33, 40, 0.96), rgba(7, 13, 17, 0.96));
  padding: 6px 7px 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mobilestrip .cell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent, var(--cyan));
  opacity: 0.9;
}

.mobilestrip .cell.air {
  --accent: var(--cyan);
}

.mobilestrip .cell.nerve {
  --accent: #b98cf0;
}

.mobilestrip .cell.vitals {
  --accent: var(--green);
}

.mobilestrip .cell.rank {
  --accent: var(--amber);
}

.mobilestrip .cell.low {
  --accent: var(--red);
}

.mobilestrip .cell.low .v {
  color: var(--red);
}

.mobilestrip .k {
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.mobilestrip .v {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.mobilestrip .v span {
  font-size: 10px;
  color: #3d616d;
}

.mobilestrip .mini {
  height: 3px;
  background: #07161c;
  margin: 3px 0 2px;
}

.mobilestrip .mini i {
  display: block;
  height: 100%;
  background: var(--accent, var(--cyan));
  opacity: 0.85;
}

.mobilestrip .cell small {
  display: block;
  font-size: 8.5px;
  color: #3d616d;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tablewrap table {
  min-width: 440px;
}

/* ---------- cards / lists ---------- */

.card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 10px 12px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
  border-color: rgba(79, 216, 224, 0.35);
}

/* ---------- bazaar ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  border: 1px solid var(--line);
  background: #08141a;
  color: var(--dim);
  padding: 7px 11px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.chip b {
  color: #3d616d;
  margin-left: 6px;
  font-weight: 400;
}

.chip:hover {
  color: var(--ink);
  border-color: rgba(79, 216, 224, 0.4);
}

.chip.on {
  color: var(--cyan);
  border-color: rgba(79, 216, 224, 0.55);
  background: #0b1c22;
}

.chip.on b {
  color: var(--cyan);
}

.shopgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 10px;
}

.shopcard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), #070d11);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.shopcard:hover {
  border-color: rgba(79, 216, 224, 0.45);
  transform: translateY(-2px);
}

.shopcard.poor {
  opacity: 0.72;
}

.shophead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.shophead .name {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11.5px;
  color: var(--ink);
}

.shophead .price {
  color: var(--amber);
  font-size: 12px;
  white-space: nowrap;
}

.shophead .price small {
  color: #4d7481;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.shopmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.shopcard .blurb {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shopactions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.shopactions button {
  flex: 1 1 auto;
  min-height: 36px;
}

.npcbanner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #2b5a6b;
  background: linear-gradient(90deg, rgba(79, 216, 224, 0.08), rgba(8, 20, 26, 0));
}

.npcface {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #2b5a6b;
  filter: saturate(0.85);
}

.npcwords {
  flex: 1;
  min-width: 0;
}

.npcrole {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.npcname {
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 0;
}

.npcquip {
  margin: 5px 0 0;
  min-height: 2.9em;
  color: #8fb3bf;
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.45;
}

.npcprofile {
  flex: 0 0 auto;
}

/* ---------- command deck ---------- */

.hq-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.rankbadge {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 1px solid rgba(79, 216, 224, 0.35);
  background: radial-gradient(circle at 50% 30%, rgba(79, 216, 224, 0.14), transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rankbadge b {
  font-size: 24px;
  color: var(--cyan);
  line-height: 1;
}

.rankbadge span {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 3px;
}

.rankmeta {
  flex: 1;
  min-width: 0;
}

.rankline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rankline b {
  color: var(--ink);
  font-weight: 400;
}

.track.big {
  height: 8px;
}

.hq-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.hq-stats > div {
  border: 1px solid var(--line);
  background: #071016;
  padding: 8px 10px;
}

.hq-stats span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.hq-stats b {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink);
}

.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.quick button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  min-height: 64px;
  border: 1px solid var(--line);
  background: #08141a;
}

.quick button i {
  font-style: normal;
  color: var(--cyan);
  font-size: 14px;
}

.quick button span {
  letter-spacing: 0.1em;
}

.quick button small {
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.quick button:hover {
  border-color: rgba(79, 216, 224, 0.5);
  background: #0c1c24;
}

.log.compact div {
  padding: 2px 0;
}

.card .head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.card .name {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ink);
}

.card .meta {
  font-size: 11px;
  color: var(--dim);
}

.card .blurb {
  color: var(--dim);
  font-size: 11.5px;
  margin: 5px 0 8px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--dim);
  text-transform: uppercase;
  margin-right: 4px;
}

.tag.good {
  color: var(--green);
  border-color: rgba(87, 214, 138, 0.4);
}
.tag.warn {
  color: var(--amber);
  border-color: rgba(240, 180, 41, 0.4);
}
.tag.bad {
  color: var(--red);
  border-color: rgba(224, 82, 82, 0.4);
}
.tag.info {
  color: var(--cyan);
  border-color: rgba(79, 216, 224, 0.4);
}

.log {
  font-size: 11.5px;
  color: var(--dim);
  max-height: 220px;
  overflow-y: auto;
}

.log div {
  padding: 2px 0;
  border-bottom: 1px dotted #102028;
}

.log time {
  color: #35525c;
  margin-right: 6px;
}

.fightlog {
  border: 1px solid rgba(240, 180, 41, 0.35);
  background: #12100a;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.fightlog .title {
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px;
}

.fightlog ol {
  margin: 0;
  padding-left: 18px;
  color: var(--dim);
  font-size: 11.5px;
}

.fightlog li {
  margin-bottom: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  text-align: left;
  color: var(--dim);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 5px 6px;
}

td {
  padding: 5px 6px;
  border-bottom: 1px dotted #102028;
}

tr.me td {
  color: var(--cyan);
}

.hint {
  color: var(--dim);
  font-size: 11.5px;
}

.banner {
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  padding: 8px 11px;
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 12px;
}

.banner b {
  color: var(--ink);
  font-weight: 400;
}

.flash {
  border: 1px solid rgba(79, 216, 224, 0.35);
  background: #08151a;
  color: var(--ink);
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 12px;
}

.adminedit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dotted var(--line);
}

.adminedit label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 3px;
}

.adminedit input {
  width: 100%;
  padding: 6px 8px;
}

.adminedit button {
  width: 100%;
}

.flash.bad {
  border-color: rgba(224, 82, 82, 0.4);
  background: #170b0b;
}

.foot {
  color: #33505a;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 26px;
}

/* ---------- responsive ---------- */

.grid > * {
  min-width: 0;
}

.card .name {
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .panel,
  .card,
  .tablewrap {
    min-width: 0;
    max-width: 100%;
  }

  .grid > .main {
    order: 1;
  }

  .grid > .side {
    order: 2;
  }

  .mobilestrip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin: 0 -16px 10px;
    padding: 6px 16px 6px;
    position: sticky;
    top: 0;
    z-index: 6;
    background: rgba(5, 8, 11, 0.93);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    border-bottom: 1px solid rgba(30, 62, 74, 0.9);
    box-shadow: 0 14px 22px -16px #000;
  }

}

@media (max-width: 640px) {
  html,
  body {
    font-size: 13.5px;
  }

  #app {
    padding: 12px 11px calc(44px + env(safe-area-inset-bottom, 0px));
  }

  .mobilestrip {
    margin: 0 -11px 10px;
    padding: 6px 11px 6px;
  }

  .top {
    align-items: center;
    gap: 8px;
  }

  .brand {
    font-size: 13px;
    letter-spacing: 0.22em;
  }

  .who {
    font-size: 10.5px;
    gap: 4px;
  }

  .who .whotitle {
    font-size: 9.5px;
  }

  .panel {
    padding: 11px;
  }

  .big {
    font-size: 16px;
  }

  button {
    min-height: 42px;
    padding: 9px 13px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
    padding: 9px 11px;
  }

  .pricehint {
    font-size: 11px;
  }

  /* 16px stops iOS zooming the page when a field takes focus, and gives the
     numbers room to be read in full. */
  input,
  textarea,
  select {
    font-size: 16px;
    min-height: 46px;
  }

  #marketform select {
    flex: 1 1 100%;
  }

  #marketform input[name="price"] {
    flex: 1 1 auto;
    min-width: 108px;
  }

  .row button {
    flex: 1 1 auto;
  }

  .auth {
    margin: 3vh auto 0;
    background: rgba(5, 8, 11, 0.55);
    padding: 4px 2px 10px;
  }

  .auth pre {
    font-size: 11px;
  }

  .auth .sub {
    font-size: 12px;
  }

  .field {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .field label {
    width: auto;
  }

  .fightlog ol {
    padding-left: 15px;
  }

  .log {
    max-height: 280px;
  }

  .foot {
    font-size: 9.5px;
  }
}

@media (max-width: 380px) {
  .auth pre {
    font-size: 10px;
  }

  .brand {
    letter-spacing: 0.13em;
    font-size: 12px;
  }

  .who {
    font-size: 11px;
  }

  .hq-top {
    gap: 10px;
  }

  .rankbadge {
    width: 54px;
    height: 54px;
  }

  .rankbadge b {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------ item icons */
.itemname {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.itemicon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: #071219;
  color: var(--cyan);
}

.itemicon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.itemicon.slot-weapon {
  color: var(--cyan);
}

.itemicon.slot-suit {
  color: var(--green);
}

.itemicon.slot-rig {
  color: #9c8cf5;
}

.itemicon.slot-pack {
  color: var(--amber);
}

.itemicon.slot-use {
  color: #7fd7c4;
}

/* ------------------------------------------------------------- chat dock */
.chat {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  width: 330px;
  max-width: calc(100vw - 32px);
  border: 1px solid #1d3947;
  background: rgba(7, 18, 25, 0.74);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
}

.chat.enter {
  animation: chatRise 0.35s ease-out both;
}

.chathead {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.chathead:hover {
  color: var(--ink);
}

.chathead .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
  animation: pulseDot 2.6s ease-out infinite;
}

.chatlabel {
  color: var(--ink);
  flex: 0 0 auto;
}

.chatpeek {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4e7381;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.chatcaret {
  flex: 0 0 auto;
  color: #3d616d;
  font-size: 10px;
}

.chatbody {
  display: none;
  border-top: 1px solid #162c36;
}

.chat.open .chatbody {
  display: block;
  animation: chatIn 0.18s ease-out;
}

.chatlog {
  max-height: 196px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: thin;
}

.msg {
  font-size: 12px;
  color: #93b6c1;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.msg .chatwho {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 6px;
}

.msg time {
  color: #3d616d;
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.msg.mine .chatwho {
  color: var(--amber);
}

.chatrow {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid #162c36;
}

.chatrow input {
  flex: 1;
  min-width: 0;
  padding: 7px 9px;
  font-size: 12px;
  font-family: inherit;
  background: rgba(4, 12, 17, 0.72);
  border: 1px solid #1a3340;
  color: var(--ink);
}

.chatrow input:focus {
  outline: none;
  border-color: #2f6274;
}

.chatrow button {
  padding: 0 13px;
  font-size: 14px;
  line-height: 1;
}

.chaterr {
  padding: 0 12px 9px;
  color: var(--red);
  font-size: 11px;
}

/* --------------------------------------------------------- private lines */
.dmlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.dmrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: rgba(8, 22, 29, 0.6);
  border: 1px solid #17303b;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.dmrow:hover {
  border-color: #2f6274;
}

.dmname {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
}

.dmlast {
  color: var(--dim);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dmrow time {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--dim);
  font-size: 10px;
}

.dmlog {
  max-height: 46vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 0 14px;
  scrollbar-width: thin;
}

.dmlog .msg {
  padding: 2px 0;
}

/* --------------------------------------------------------------- drop-in */
#dropin {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 16px));
  z-index: 120;
  pointer-events: none;
}

.dropin {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  background: rgba(7, 20, 27, 0.97);
  border: 1px solid #2f6274;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  animation: dropIn 0.18s ease-out;
}

.dropinbody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
  cursor: pointer;
}

.dropinkind {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.dropinbody b {
  font-size: 13px;
}

.dropintext {
  color: var(--dim);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropinx {
  background: none;
  border: 0;
  color: var(--dim);
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
}

.dropinx:hover {
  color: var(--ink);
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.locked #dropin {
  z-index: 130;
}

@keyframes chatRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(87, 214, 138, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(87, 214, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(87, 214, 138, 0);
  }
}

@media (max-width: 860px) {
  .chat {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
  }

  .chatlog {
    max-height: 150px;
  }

  .foot {
    padding-bottom: 44px;
  }
}

/* ---------------------------------------------------------------- dialog */
.modalwrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modalscrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 13, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.16s ease-out;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  border: 1px solid #23485a;
  background: linear-gradient(180deg, #0a1922, #071118);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  animation: modalIn 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}

.modaltitle {
  padding: 14px 16px 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.modalbody {
  padding: 9px 16px 16px;
  font-size: 12.5px;
  color: #9dbcc7;
  line-height: 1.55;
}

.modalactions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #162c36;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------------------------ nav glyphs */
.navitem i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex: 0 0 auto;
}

.navitem i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.linkname {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-align: left;
}

.linkname:hover {
  color: var(--cyan);
  text-decoration: underline dotted;
}

.presence {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #26414c;
  flex: 0 0 auto;
}

.presence.on {
  background: var(--green);
  box-shadow: 0 0 6px rgba(87, 214, 138, 0.7);
}

/* ------------------------------------------------------------------- map */
.hereline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--dim);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hereline b {
  color: var(--ink);
  font-weight: 400;
}

.lochead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.locicon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent, var(--cyan));
  background: #071219;
}

.locicon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loctitle b {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}

.loctitle small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.loctier {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--accent, var(--cyan));
  border: 1px solid currentColor;
  padding: 2px 6px;
  white-space: nowrap;
}

.locbrief {
  font-size: 11.5px;
  line-height: 1.5;
  color: #7d9aa6;
}

.locreq,
.locstats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.locactions {
  margin-top: auto;
}

.locactions button {
  width: 100%;
}

/* ----------------------------------------------------------------- crews */
.crewhead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.crewtag {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  border: 1px solid #2b5a6b;
  color: var(--cyan);
  padding: 5px 9px;
  background: rgba(79, 216, 224, 0.07);
  white-space: nowrap;
}

.crewtag.small {
  font-size: 9.5px;
  padding: 2px 5px;
  letter-spacing: 0.1em;
}

.crewtitle h2 {
  margin: 0 0 3px;
}

.crewmotto {
  margin-top: 10px;
  font-size: 12px;
  color: #8fb3bf;
  font-style: italic;
}

.crewstats,
.profgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 12px 0;
}

.crewstats > div,
.profgrid > div {
  background: #08141a;
  padding: 9px 11px;
}

.crewstats span,
.profgrid span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.crewstats b,
.profgrid b {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}

.crewactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crewlist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.crewrow {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #08141a;
  padding: 8px 10px;
  flex-wrap: wrap;
}

.crewrow .meta {
  flex: 1;
  min-width: 0;
}

.crewbtns {
  display: flex;
  gap: 6px;
}

.crewgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.crewcard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.crewcard-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crewcard-top b {
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.crewcardmotto {
  font-size: 11px;
  color: #6f8f9b;
  font-style: italic;
}

.crewform {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.crewform input {
  flex: 1 1 140px;
}

/* --------------------------------------------------------------- profile */
.profhead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profavatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cyan);
  border: 1px solid #2b5a6b;
  background: rgba(79, 216, 224, 0.06);
}

.profid h2 {
  margin: 0 0 3px;
}

.npcprofilehead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.npcbig {
  width: 148px;
  height: 148px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #2b5a6b;
}

.npcblurb {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.55;
}

.collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.collection .card .blurb {
  margin-top: 7px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.5;
}

.proftitle {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
}

/* ------------------------------------------------------------ chat tabs */
.chattabs {
  display: flex;
  border-bottom: 1px solid #162c36;
}

.chattab {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--dim);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 0;
  cursor: pointer;
}

.chattab.on {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.chattab:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .crewgrid {
    grid-template-columns: 1fr;
  }

  .crewstats,
  .profgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crewrow .meta {
    flex-basis: 100%;
    order: 5;
  }

  .crewbtns {
    margin-left: auto;
  }

  .profavatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .npcbanner {
    flex-wrap: wrap;
  }

  .npcface {
    width: 64px;
    height: 64px;
  }

  .npcprofile {
    flex: 0 0 auto;
  }

  .npcprofilehead {
    flex-direction: column;
  }

  .npcbig {
    width: 100%;
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat.enter {
    animation: none;
  }
}

/* ------------------------------------------------------------- city map */
.maplayout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 12px;
}

.mapbox {
  position: relative;
  isolation: isolate;
  aspect-ratio: 100 / 66;
  min-height: 250px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(24, 66, 80, 0.35), transparent 62%),
    linear-gradient(180deg, #061019, #04090d);
  overflow: hidden;
}

/* The survey sheet: painted, torn, and kept quiet so the nodes read first. */
.mapplate {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
}

/* Darkens the middle of the chart so the live map stays legible over it. */
.mapbox::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    125% 95% at 50% 44%,
    rgba(4, 9, 13, 0.5),
    rgba(4, 9, 13, 0.16) 58%,
    rgba(4, 9, 13, 0.62)
  );
}

.maproutes,
.mapnode,
.maplegend {
  z-index: 2;
}

.maproutes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.maproutes .route {
  fill: none;
  stroke: #1d3b47;
  stroke-width: 0.5;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
}

.maproutes .route.live {
  stroke: #2e6b7c;
}

.maproutes .contours path {
  fill: none;
  stroke: rgba(79, 216, 224, 0.07);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.mapnode {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  background: none;
  border: 0;
  cursor: pointer;
}

.mapnode .dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, var(--cyan));
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 14px var(--accent, var(--cyan));
}

.mapnode .nodename {
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
}

.mapnode:hover .nodename,
.mapnode.sel .nodename {
  color: var(--ink);
}

.mapnode.sel .dot {
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.55),
    0 0 0 2px var(--accent, var(--cyan)),
    0 0 20px var(--accent, var(--cyan));
}

.mapnode.locked .dot {
  opacity: 0.45;
}

.mapnode.sealed .dot {
  background: transparent;
  border: 1px dashed var(--accent, var(--red));
  box-shadow: none;
  opacity: 0.8;
}

.mapnode.current .dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--accent, var(--cyan));
  border-radius: 50%;
  animation: mapPulse 2.6s ease-out infinite;
}

.maplegend {
  position: absolute;
  left: 10px;
  bottom: 8px;
  display: flex;
  gap: 12px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3f606c;
  pointer-events: none;
}

.maplegend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.maplegend .lg {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}

.maplegend .lg.here {
  box-shadow: 0 0 0 3px rgba(79, 216, 224, 0.25);
}

.maplegend .lg.sealed {
  background: transparent;
  border: 1px dashed var(--red);
}

.locdetail {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--cyan));
  background: linear-gradient(180deg, rgba(13, 22, 29, 0.95), rgba(8, 16, 22, 0.95));
}

.locdetail .locactions {
  margin-top: auto;
}

.locdetail .locactions button {
  width: 100%;
}

/* Travel is a wait now: the ride has a clock, and the map says how long. */
.ridebar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(79, 216, 224, 0.3);
  background: rgba(79, 216, 224, 0.06);
  padding: 8px 10px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.ridebar b {
  margin-left: auto;
  color: var(--cyan);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.banner.transit {
  border-left-color: var(--cyan);
}

.banner.transit b {
  color: var(--cyan);
}

/* ---------- the ride down ---------- */

body.ride-open {
  overflow: hidden;
}

.ride.leaving {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.ride {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 8, 0.86);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: rideIn 0.3s ease both;
}

@keyframes rideIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ridecard {
  width: min(540px, 100%);
  border: 1px solid #1d3947;
  background: linear-gradient(180deg, #071219 0%, #04090d 100%);
  box-shadow: 0 30px 80px -40px #000;
}

.ridehead {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.ridehead b {
  color: var(--cyan);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.ridehead em {
  margin-left: auto;
  font-style: normal;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ridesvg {
  display: block;
  width: 100%;
  height: auto;
  background: #040b10;
}

.ridetrack {
  position: relative;
  height: 7px;
  margin: 0 12px;
  background: #0c1a21;
  border: 1px solid #16303c;
  overflow: hidden;
}

.ridetrack i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(79, 216, 224, 0.25), var(--cyan));
  box-shadow: 0 0 12px rgba(79, 216, 224, 0.5);
}

.ridefoot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  font-size: 10.5px;
  color: var(--dim);
}

.ridefoot button {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .ride {
    animation: none;
  }
}

@keyframes mapPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.chaticon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--cyan);
}

.chaticon.crew {
  color: var(--amber);
}

.chaticon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .maplayout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mapbox {
    min-height: 230px;
  }

  .mapnode .nodename {
    display: none;
  }

  .mapnode.sel .nodename,
  .mapnode.current .nodename {
    display: block;
  }

  .maplegend {
    gap: 8px;
    font-size: 8px;
  }
}

/* ---------------------------------------------------------------- top bar */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0a1a20, #061116);
}

.mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brandsub {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.brandsub b {
  color: var(--ink);
  font-weight: 400;
}

.brandsub em {
  font-style: normal;
  color: #33505b;
}

/* --------------------------------------------------------------- missions */
.mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.msection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 9px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a6b77;
}

.msection:first-of-type {
  margin-top: 4px;
}

.msection::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.msection-title {
  white-space: nowrap;
}

.mission {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(9, 17, 22, 0.7);
}

.mission .mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mission .mhead b {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.mission .mbrief {
  font-size: 11.5px;
  line-height: 1.5;
  color: #7d97a2;
}

.mission .mfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.mission .mreward {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.mission .mreward i {
  font-style: normal;
  color: #3d5a65;
  margin: 0 5px;
}

.mission.ready {
  border-color: rgba(79, 216, 224, 0.45);
  box-shadow: inset 0 0 0 1px rgba(79, 216, 224, 0.12);
}

.mission.done {
  opacity: 0.55;
}

.mission.locked {
  opacity: 0.4;
}

.mission .track .fill.good {
  background: linear-gradient(90deg, #2f8f5c, var(--green));
}

.dimtag {
  color: #4f6a75;
  border-color: #1b3038;
}

button.sm {
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.navdot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .brandsub em {
    display: none;
  }

  .mark {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 700px) {
  .mgrid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------- warden console */
.wardenhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wardenhead h2 {
  margin: 0 0 4px;
}

.subtabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  overflow-x: auto;
}

.subtab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 9px 13px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.subtab:hover:not(:disabled) {
  background: rgba(79, 216, 224, 0.05);
  color: var(--ink);
  border-bottom-color: rgba(79, 216, 224, 0.3);
}

.subtab.on {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(79, 216, 224, 0.06);
}

/* The face behind a job on the board. */
.mwho {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.4;
}

.mwho img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(0.3);
  flex: 0 0 auto;
}

.mwho i {
  font-style: normal;
  color: var(--ink);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.kpi {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0a161b, #071116);
  padding: 11px 12px;
}

.kpi span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.kpi b {
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin: 5px 0 3px;
}

.kpi small {
  font-size: 10px;
  color: #4f6a75;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chart {
  min-width: 0;
}

.charthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}

.charthead b {
  color: var(--ink);
  font-weight: 400;
  font-size: 12px;
}

.chartfoot {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #3f606c;
  margin-top: 6px;
  letter-spacing: 0.08em;
}

.spark {
  width: 100%;
  height: 84px;
  display: block;
}

.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.spark-area {
  fill: var(--accent);
  opacity: 0.12;
  stroke: none;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 84px;
}

.bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(16, 36, 44, 0.45), transparent);
}

.bar i {
  display: block;
  width: 100%;
  background: var(--accent);
  opacity: 0.55;
  min-height: 2px;
  transition: opacity 0.12s;
}

.bar:hover i {
  opacity: 1;
}

.barlabels {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}

.barlabels span {
  flex: 1;
  text-align: center;
  font-size: 8px;
  color: #3f606c;
}

.hbars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hbar {
  display: grid;
  grid-template-columns: 96px 1fr 48px;
  align-items: center;
  gap: 8px;
}

.hlabel {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.htrack {
  height: 8px;
  background: #071116;
  border: 1px solid #10242c;
  display: block;
}

.htrack i {
  display: block;
  height: 100%;
  background: var(--accent);
  opacity: 0.7;
}

.hbar b {
  text-align: right;
  font-weight: 400;
  color: var(--ink);
  font-size: 11px;
}

.admingrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.toplist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toprow {
  display: grid;
  grid-template-columns: 16px auto auto 1fr auto 8px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.toprank {
  color: #3f606c;
  font-size: 10px;
  text-align: right;
}

.topbar {
  height: 4px;
  background: #071116;
  display: block;
  min-width: 30px;
}

.topbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2a8f9b, var(--cyan));
}

.toprow b {
  font-weight: 400;
  color: var(--ink);
  font-size: 10.5px;
}

.panelasof {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #3f606c;
  margin-left: 8px;
  text-transform: uppercase;
}

.aplayers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: rgba(9, 17, 22, 0.6);
}

.arow.on {
  border-color: #193944;
}

.amain {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.aname {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.ameta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #5d7c88;
  letter-spacing: 0.04em;
}

.anums {
  display: flex;
  gap: 14px;
  align-items: center;
}

.anums span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.anums small {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3f606c;
}

.anums b {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--ink);
}

.abtns {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

button.mini {
  padding: 4px 9px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.adminedit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px 11px 12px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(6, 16, 21, 0.85);
}

.aeditrow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adminedit .aeditrow button {
  width: auto;
  flex: 0 0 auto;
}

.aeditlabel {
  width: 66px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3f606c;
}

.afields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  padding-top: 6px;
  border-top: 1px dotted var(--line);
}

.afields label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.afields span {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3f606c;
}

.afields input {
  width: 100%;
}

.chip i {
  font-style: normal;
  color: #3d616d;
  margin-left: 6px;
}

.chip.on {
  color: var(--cyan);
  border-color: rgba(79, 216, 224, 0.5);
  background: #0a1c22;
}

.chip.on i {
  color: var(--cyan);
}

.banner.bulletin {
  border-left-color: var(--amber);
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  background: rgba(224, 178, 80, 0.04);
}

.banner.bulletin b {
  color: var(--amber);
  letter-spacing: 0.14em;
  font-size: 10px;
}

.bwhen {
  margin-left: auto;
  font-size: 9.5px;
  color: #4f6a75;
}

.bulletin.live {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  border: 1px solid rgba(224, 178, 80, 0.3);
  background: rgba(224, 178, 80, 0.05);
  padding: 9px 11px;
  font-size: 12px;
  color: var(--ink);
}

.bulletin.live b {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.bulletin.live span {
  margin-left: auto;
  font-size: 9.5px;
  color: #4f6a75;
}

.notes {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  color: #7d97a2;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .charts,
  .admingrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .arow {
    grid-template-columns: 1fr;
  }

  .anums {
    gap: 16px;
  }

  .hbar {
    grid-template-columns: 80px 1fr 42px;
  }

  .barlabels span:nth-child(even) {
    visibility: hidden;
  }

  .aeditlabel {
    width: 100%;
  }

  .toprow {
    grid-template-columns: 14px auto auto 1fr auto;
  }

  .toprow .presence {
    display: none;
  }
}

.grid.solo {
  grid-template-columns: minmax(0, 1fr);
}

/* ------------------------------------------------------------------- tides */
.tidebar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(10, 24, 30, 0.9), rgba(7, 16, 21, 0.9));
  padding: 7px 11px;
  margin-bottom: 12px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.tidedot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
  flex: 0 0 auto;
  animation: tidePulse 3.2s ease-in-out infinite;
}

.tidebar b {
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 10.5px;
}

.tidetags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tidetags i {
  font-style: normal;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  padding: 1px 6px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa9b4;
}

.tidebrief {
  display: none;
  color: #4f6a75;
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

@media (min-width: 1440px) {
  .tidebrief {
    display: block;
  }
}

.tidewhen {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f6a75;
  white-space: nowrap;
}

.tidewhen span {
  color: var(--ink);
}

.tidenext {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #33505b;
  white-space: nowrap;
}

@keyframes tidePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (max-width: 560px) {
  .tidebar {
    gap: 7px;
    font-size: 10px;
  }

  .tidenext {
    display: none;
  }

  .tidetags i {
    font-size: 8.5px;
  }
}

/* ------------------------------------------------------------------ landing */
.landing {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 64px;
  z-index: 1;
}

.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(24, 78, 92, 0.28), transparent 62%),
    radial-gradient(70% 50% at 12% 90%, rgba(10, 40, 50, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(3, 8, 11, 0.15), rgba(3, 8, 11, 0.72));
  z-index: -1;
}

.landbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.landmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  letter-spacing: 0.34em;
  font-size: 13px;
}

.landmark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(79, 216, 224, 0.5));
}

.landmark b {
  font-weight: 400;
}

.landnow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f6a75;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.78fr);
  gap: 44px;
  align-items: start;
}

.eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4f6a75;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(46px, 8vw, 100px);
  line-height: 0.9;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: #dcf6fa;
  text-shadow: 0 0 52px rgba(79, 216, 224, 0.22);
}

.hero h1 span {
  color: var(--cyan);
  text-shadow: 0 0 44px rgba(79, 216, 224, 0.55);
}

.lede {
  font-size: clamp(15px, 1.7vw, 19px);
  color: #cfe7ee;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.hero .body {
  max-width: 56ch;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.herobtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

button.big {
  padding: 13px 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.herostats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 26px;
  justify-content: start;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.herostats dt {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f606c;
  margin-bottom: 6px;
}

.herostats dd {
  margin: 0;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* auth card */
.hero-auth {
  position: sticky;
  top: 24px;
}

.authcard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 24, 30, 0.96), rgba(6, 14, 19, 0.98));
  padding: 20px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(79, 216, 224, 0.04);
}

.authtabs {
  display: flex;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.authtabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 9px 6px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #4f6a75;
}

.authtabs button:hover:not(:disabled) {
  background: rgba(79, 216, 224, 0.05);
  color: var(--ink);
}

.authtabs button.on {
  color: var(--cyan);
  background: rgba(79, 216, 224, 0.07);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.authcard h2 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}

.authnote {
  color: #5d7c88;
  font-size: 11.5px;
  line-height: 1.5;
  margin: 0 0 16px;
}

button.wide {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  letter-spacing: 0.18em;
}

.authcard .field label {
  width: 74px;
}

.authfine {
  margin: 14px 0 0;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #33505b;
}

/* tide card */
.tidecard {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(12, 27, 33, 0.9), rgba(7, 15, 20, 0.85));
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tidecard .th {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.tidecard .th b {
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--accent);
}

.tidecard p {
  margin: 0;
  color: #7d97a2;
  font-size: 12.5px;
  line-height: 1.55;
}

.tidecard small {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3f606c;
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}

.fcard {
  border: 1px solid var(--line);
  background: rgba(8, 17, 22, 0.72);
  padding: 19px 18px;
  transition: border-color 0.15s, background 0.15s;
}

.fcard:hover {
  border-color: rgba(79, 216, 224, 0.28);
  background: rgba(10, 22, 28, 0.85);
}

.fcard svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 13px;
  opacity: 0.9;
}

.fcard h3 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink);
}

.fcard p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #7d97a2;
}

/* districts */
.citystrip {
  margin-top: 44px;
}

.districts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dchip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 17, 22, 0.6);
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.dchip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: 0 0 auto;
}

.dchip small {
  color: #33505b;
  font-size: 8.5px;
}

.dchip.sealed {
  opacity: 0.45;
  border-style: dashed;
}

.landfoot {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #33505b;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-auth {
    position: static;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .landbar {
    margin-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .landing {
    padding: 20px 16px 48px;
  }

  .herostats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .herostats dd {
    font-size: 16px;
  }

  .herobtns button {
    flex: 1 1 100%;
  }

  .authcard {
    padding: 16px;
  }
}

/* ---------------------------------------------- bounties, vault, ground, wear */
.bounty-sum {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.bounty-sum div {
  border: 1px solid var(--line);
  background: rgba(8, 17, 22, 0.6);
  padding: 10px 12px;
}

.bounty-sum span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f606c;
  margin-bottom: 5px;
}

.bounty-sum b {
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
}

.bountyrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(79, 216, 224, 0.07);
}

.bountyrow:last-child {
  border-bottom: 0;
}

.bmain {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bmain b {
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.03em;
}

.bmain small {
  flex: 1 0 100%;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3f606c;
}

.bamt {
  font-size: 16px;
  color: var(--cyan);
  white-space: nowrap;
}

.bamt small {
  font-size: 9px;
  color: #3f606c;
  margin-left: 2px;
}

.bountyform,
.bankform {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bountyform select,
.bountyform input,
.bankform input {
  flex: 1 1 140px;
  min-width: 0;
}

.bank-top {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bankbal {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: rgba(9, 20, 26, 0.75);
  padding: 14px 16px;
}

.bankbal span {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f606c;
}

.bankbal b {
  display: block;
  font-weight: 400;
  font-size: 30px;
  color: var(--cyan);
  margin: 4px 0 2px;
  letter-spacing: 0.02em;
}

.bankbal small {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: #4f6a75;
}

.bankrate {
  flex: 1 1 170px;
  border: 1px solid var(--line);
  background: rgba(8, 17, 22, 0.5);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.bankrate b {
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
}

.bankrate span {
  font-size: 9.5px;
  line-height: 1.5;
  color: #4f6a75;
}

.depthline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 14px;
}

.depthmeter {
  display: flex;
  gap: 5px;
}

.depthmeter i {
  flex: 1;
  height: 26px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 14, 0.7);
  position: relative;
}

.depthmeter i.on {
  background: linear-gradient(180deg, rgba(79, 216, 224, 0.28), rgba(79, 216, 224, 0.06));
  border-color: rgba(79, 216, 224, 0.45);
  box-shadow: inset 0 0 12px rgba(79, 216, 224, 0.18);
}

.depthmeta {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}

.depthmeta b {
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
}

.depthmeta span {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f6a75;
}

.depthmeta .risk {
  color: var(--amber, #e0b34f);
  margin-left: auto;
}

.holds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.hold {
  border: 1px solid var(--line);
  border-left: 2px solid #33505b;
  background: rgba(8, 17, 22, 0.6);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hold.mine {
  border-left-color: var(--cyan);
  background: rgba(79, 216, 224, 0.06);
}

.hold b {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.hold span {
  font-size: 10px;
  color: #6f8d99;
}

.hold small {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3f606c;
}

.claimgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.claimgrid button {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: left;
  padding: 9px 11px;
}

.claimgrid button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.claimgrid button small {
  flex: 1 0 100%;
  padding-left: 14px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3f606c;
}

.labourbtn {
  margin-left: 10px;
  padding: 4px 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
}

button.mini {
  padding: 2px 7px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.stat-row .low {
  color: var(--red, #e0708a);
}

@media (max-width: 620px) {
  .bounty-sum {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bountyrow {
    flex-wrap: wrap;
  }

  .bamt {
    margin-left: auto;
  }

  .depthmeta .risk {
    margin-left: 0;
    flex: 1 0 100%;
  }
}

/* ------------------------------------------------------- heat & sealed crates */
.heatline {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(79, 216, 224, 0.12);
}

.heatline .stat-row span:last-child {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.heatline b {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
}

.heatline small {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f6a75;
}

.heatline .fill {
  background: #4f6a75;
}

.heatline.warm .fill {
  background: #7d97a2;
}

.heatline.flagged .fill {
  background: #e0b250;
}

.heatline.watched .fill {
  background: #e08a50;
}

.heatline.hunted .fill {
  background: var(--red, #e0708a);
  box-shadow: 0 0 10px rgba(224, 112, 138, 0.6);
}

.heatline.watched b,
.heatline.hunted b {
  color: var(--red, #e0708a);
}

.heatnote {
  margin-top: 6px;
  font-size: 9.5px;
  line-height: 1.5;
  color: #4f6a75;
}

.banner.patrol {
  border-left-color: #e0b250;
  color: #dcb46a;
}

.crate-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cratebox {
  width: 74px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cratelid {
  height: 14px;
  border: 1px solid rgba(79, 216, 224, 0.3);
  background: repeating-linear-gradient(90deg, rgba(79, 216, 224, 0.14) 0 6px, transparent 6px 12px);
}

.cratebody {
  height: 58px;
  border: 1px solid rgba(79, 216, 224, 0.24);
  background: rgba(9, 22, 28, 0.85);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: rgba(79, 216, 224, 0.6);
  box-shadow: inset 0 0 22px rgba(79, 216, 224, 0.08);
}

.cratecopy {
  flex: 1 1 240px;
  min-width: 0;
}

.crateprice {
  margin: 0 0 4px;
  font-size: 26px;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.crateprice small {
  font-size: 11px;
  color: #4f6a75;
}

.cratecopy .hint {
  margin-bottom: 10px;
}

.cratesplit {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px dashed rgba(79, 216, 224, 0.12);
}

.cw {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 4px 7px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5d7c88;
}

.cw b {
  font-weight: 400;
  color: #7d97a2;
}

.cw-jackpot {
  border-color: rgba(224, 178, 80, 0.5);
  color: #e0b250;
}

.cw-jackpot b {
  color: #e0b250;
}

.cw-rare {
  border-color: rgba(185, 140, 240, 0.45);
  color: #b98cf0;
}

.cw-rare b {
  color: #b98cf0;
}

.cratelog {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(79, 216, 224, 0.12);
}

.cratelog .eyebrow {
  margin-bottom: 8px;
}

.craterow {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid rgba(79, 216, 224, 0.06);
  font-size: 11px;
}

.craterow:last-child {
  border-bottom: 0;
}

.craterow span {
  color: #7d97a2;
  flex: 0 0 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.craterow small {
  color: #5d7c88;
  font-size: 10.5px;
  line-height: 1.5;
}

.craterow.mine span {
  color: var(--cyan);
}

.craterow.mine small {
  color: var(--ink);
}

@media (max-width: 620px) {
  .cratebox {
    width: 56px;
  }

  .cratebody {
    height: 46px;
  }
}

.mobilestrip .cell.heat {
  --accent: #e0b250;
}

.mobilestrip .cell.heat.watched,
.mobilestrip .cell.heat.hunted {
  --accent: var(--red, #e0708a);
}

.mobilestrip .cell.heat small {
  font-size: 7px;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------- groups, links, moderation */
.navgroup {
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #33505b;
  padding: 14px 12px 5px;
}

.navgroup:first-child {
  padding-top: 4px;
}

.linkbtn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 3px 0;
  background: none;
  border: 0;
  color: #4f6a75;
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.linkbtn:hover:not(:disabled) {
  background: none;
  color: var(--cyan);
}

.authlinks {
  margin-top: 10px;
}

button.mini.lie {
  margin-top: 8px;
  width: 100%;
}

.modlist {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.modrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 6px;
  border: 1px solid rgba(79, 216, 224, 0.08);
  background: rgba(8, 17, 22, 0.5);
  font-size: 11px;
}

.modrow b {
  flex: 0 0 92px;
  font-weight: 400;
  color: var(--cyan);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modrow span {
  flex: 1;
  min-width: 0;
  color: #93b3bf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modrow small {
  color: #33505b;
  font-size: 9px;
}

.modrow button {
  flex: 0 0 auto;
  padding: 1px 6px;
  font-size: 9px;
}

/* ------------------------------------------------- contracts, armory, prefs */
.prefrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(79, 216, 224, 0.08);
}

.prefrow > div {
  flex: 1;
  min-width: 0;
}

.prefrow b {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #dceef4;
}

.prefrow span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #5d7d89;
  line-height: 1.5;
}

button.pref {
  flex: 0 0 62px;
  padding: 4px 0;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f6a75;
}

button.pref.on {
  color: #04181c;
  background: var(--cyan);
  border-color: var(--cyan);
}

body.nodock #chatdock {
  display: none;
}

/* The navigation drawer is a modal, but it lives inside the app wrapper's
   stacking context while the comms floater does not — z-index alone cannot put
   the drawer on top, so the floater steps aside while the drawer is open
   (otherwise it sits on the logout button on a phone). */
body.locked #chatdock {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.16s ease,
    visibility 0.16s;
}

/* Second layer, in case that rule is ever served stale: lift the whole app,
   drawer included, over the floater's stacking context. */
body.locked #app {
  z-index: 30;
}

body.compact .panel {
  padding: 12px 12px;
}

body.compact .card,
body.compact .mission {
  padding: 8px 9px;
}

body.compact .hint {
  font-size: 10px;
}

body.nomotion .view.enter,
body.nomotion .enter {
  animation: none !important;
}

body.nomotion * {
  transition-duration: 0s !important;
}

/* --------------------------------------------------------------- ladder */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ladderrow {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-left: 2px solid rgba(79, 216, 224, 0.08);
  background: rgba(8, 17, 22, 0.35);
  opacity: 0.55;
}

.ladderrow.reached {
  opacity: 1;
  border-left-color: rgba(79, 216, 224, 0.35);
}

.ladderrow.now {
  background: rgba(79, 216, 224, 0.07);
  border-left-color: var(--cyan);
}

.lr-rank {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.lr-rank b {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 400;
  min-width: 18px;
}

.lr-rank span {
  font-size: 11px;
  color: #dceef4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lr-meta {
  font-size: 9.5px;
  color: #5d7d89;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ladderrow {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
  }

  .lr-meta {
    grid-column: 1 / -1;
  }
}

/* ----------------------------------------------------------------- next up */
.nextup {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

button.nextrow {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid rgba(79, 216, 224, 0.1);
  background: rgba(8, 17, 22, 0.5);
  color: inherit;
}

button.nextrow:hover:not(:disabled) {
  border-color: rgba(79, 216, 224, 0.4);
  background: rgba(79, 216, 224, 0.06);
}

button.nextrow .nk {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #33505b;
}

button.nextrow b {
  font-weight: 400;
  font-size: 11.5px;
  color: #dceef4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.nextrow small {
  font-size: 9.5px;
  color: #5d7d89;
  white-space: nowrap;
}

@media (max-width: 700px) {
  button.nextrow {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* ----------------------------------------------------- guided onboarding */
.tour {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.tour:not(.on) {
  display: none;
}

/* four panes tiled around the lit control: the hole passes clicks straight through */
.tour-shade {
  position: fixed;
  background: rgba(2, 7, 11, 0.845);
  pointer-events: auto;
  transition:
    left 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    top 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    width 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    height 0.34s cubic-bezier(0.22, 0.8, 0.24, 1);
  will-change: left, top, width, height;
}

/* while the page or the drawer is scrolling the frame must track the control
   exactly, so the glide is switched off for a moment */
.tour.tracking .tour-shade,
.tour.tracking .tour-ring {
  transition: none;
}

.tour-ring {
  position: fixed;
  border: 1.5px solid rgba(79, 216, 224, 0.9);
  border-radius: 13px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(79, 216, 224, 0.16);
  transition:
    left 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    top 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    width 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    height 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 0.2s ease-out;
  will-change: left, top, width, height;
}

/* the glow breathes on its own layer: animating box-shadow repaints the frame */
.tour-ring::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  box-shadow:
    0 0 30px 2px rgba(79, 216, 224, 0.45),
    inset 0 0 24px rgba(79, 216, 224, 0.2);
  opacity: 0.4;
  will-change: opacity;
}

.tour-ring.lit {
  opacity: 1;
  animation: tourPulse 2.8s ease-in-out infinite;
}

.tour-ring.lit::after {
  animation: tourGlow 2.8s ease-in-out infinite;
}

@keyframes tourGlow {
  0%,
  100% {
    opacity: 0.32;
  }
  50% {
    opacity: 0.78;
  }
}

@keyframes tourPulse {
  0%,
  100% {
    border-color: rgba(79, 216, 224, 0.7);
  }
  50% {
    border-color: rgba(120, 240, 250, 0.95);
  }
}

.tour-tip {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  padding: 13px 15px 12px;
  border: 1px solid #21505f;
  border-left: 3px solid var(--cyan);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(10, 28, 36, 0.985), rgba(6, 17, 23, 0.985));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(79, 216, 224, 0.07);
  transition:
    transform 0.34s cubic-bezier(0.22, 0.8, 0.24, 1),
    opacity 0.2s ease-out;
  will-change: transform;
}

.tour-kicker {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4c8494;
}

.tour-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #e4f6fa;
}

.tour-body {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #9dc2cc;
}

.tour-last {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(79, 216, 224, 0.18);
  font-size: 10.5px;
  color: var(--green);
}

.tour-hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4d7480;
}

.pricehint {
  margin-top: 7px;
  font-size: 10.5px;
  color: #6f96a2;
}

.pricehint b {
  color: var(--cyan);
  font-weight: 500;
}

body.nomotion .tour-ring.lit,
body.nomotion .tour-ring::after {
  animation: none;
}

/* ------------------------------------------------------- marketing site */

.landbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: #0e1a20;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
}

.landbtn:hover {
  border-color: #2b5a68;
  color: var(--ink);
}

.landbtn.primary {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(79, 216, 224, 0.07);
  box-shadow: 0 0 24px -12px rgba(79, 216, 224, 0.8);
}

.landbtn.primary:hover {
  background: rgba(79, 216, 224, 0.14);
}

.landbtn.big {
  font-size: 14px;
  padding: 12px 20px;
}

.landbtn.wide {
  width: 100%;
}

.landbtn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.shot {
  margin: 0;
  border: 1px solid rgba(30, 62, 74, 0.9);
  background: #060d11;
  overflow: hidden;
  box-shadow: 0 18px 40px -28px #000;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.02);
}

.shot figcaption {
  padding: 10px 12px 12px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--dim);
  border-top: 1px solid rgba(30, 62, 74, 0.6);
}

.shot figcaption b {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9.5px;
  margin-right: 4px;
}

.hero-shot {
  align-self: start;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 56px 0 0;
}

.landclose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 64px 0 0;
  padding: 26px 24px;
  border: 1px solid rgba(30, 62, 74, 0.9);
  background: linear-gradient(180deg, rgba(10, 26, 33, 0.9), rgba(5, 12, 16, 0.9));
}

.landclose h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.landclose .body {
  margin: 0;
  max-width: 46ch;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.landfoot {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 62, 74, 0.6);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3f5a64;
}

@media (max-width: 900px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ jack-in page */

.enterbody {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #05080b;
}

.enterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  z-index: 1;
}

.enterbrand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.3em;
  font-size: 12px;
}

.enterbrand svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enterbrand b {
  font-weight: 400;
}

.enterback {
  color: #4f6a75;
  text-decoration: none;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.enterback:hover {
  color: var(--ink);
}

.entershell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 16px 60px;
  z-index: 1;
}

.entercard {
  width: 100%;
  max-width: 430px;
  border: 1px solid rgba(30, 62, 74, 0.95);
  background: linear-gradient(180deg, rgba(9, 22, 29, 0.97), rgba(5, 12, 16, 0.97));
  box-shadow: 0 30px 70px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 16px 16px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.enterbrand-in {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  letter-spacing: 0.28em;
  font-size: 10.5px;
  margin-bottom: 14px;
}

.enterbrand-in svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enterbrand-in b {
  font-weight: 400;
}

.entertabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.entertabs button {
  flex: 1;
  padding: 9px 6px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f6a75;
  background: rgba(8, 18, 24, 0.8);
  border: 1px solid rgba(30, 62, 74, 0.9);
}

.entertabs button.on {
  color: var(--ink);
  border-color: rgba(79, 216, 224, 0.55);
  background: rgba(79, 216, 224, 0.08);
}

.entercard h1 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.enterkicker {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.enternote {
  margin: 0 0 16px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.enterfine {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: #4f6a75;
}

.entererr {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(226, 90, 90, 0.5);
  background: rgba(226, 90, 90, 0.08);
  color: #ff9b9b;
  font-size: 11px;
  line-height: 1.5;
}

.enterlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 62, 74, 0.6);
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: #5f8290;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.linkish:hover {
  color: var(--cyan);
}

.enterrow {
  margin-top: 14px;
}

.backupcode {
  padding: 16px 12px;
  border: 1px solid rgba(79, 216, 224, 0.45);
  background: rgba(79, 216, 224, 0.06);
  color: #bdf3f7;
  font-size: 19px;
  letter-spacing: 0.2em;
  text-align: center;
  user-select: all;
  margin-bottom: 4px;
}

.entercard .field label {
  width: 84px;
}

@media (max-width: 640px) {
  .entershell {
    padding: 8px 12px 40px;
  }

  .entercard {
    max-width: 100%;
    padding: 14px 13px 16px;
  }

  .backupcode {
    font-size: 16px;
    letter-spacing: 0.14em;
  }

  .landclose {
    padding: 20px 16px;
  }

  .hero {
    gap: 28px;
  }
}

/* ------------------------------------------------------------------ story */

.storybar {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 4px;
}

.storybar b {
  font-size: 22px;
  color: var(--cyan);
}

.storybar span {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.storyact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 8px;
}

.storyact span {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(79, 216, 224, 0.35);
  padding: 3px 7px;
}

.storyact b {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
}

.storyact::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.storycard {
  border: 1px solid rgba(30, 62, 74, 0.9);
  background: linear-gradient(180deg, rgba(9, 22, 29, 0.85), rgba(5, 12, 16, 0.85));
  padding: 12px 13px;
  margin-bottom: 8px;
}

.storycard.locked {
  opacity: 0.55;
}

.storycard.ready {
  border-color: rgba(240, 180, 41, 0.55);
}

.storycard.filed {
  border-color: rgba(79, 216, 160, 0.3);
}

.storytop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.storytop b {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.storybrief {
  margin: 0 0 9px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.storygoal {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4f6a75;
  margin-bottom: 5px;
}

.storycard .track {
  margin-bottom: 6px;
}

.storyclaim {
  width: 100%;
  margin: 4px 0 8px;
}

.storylore {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 62, 74, 0.6);
}

.storylore p {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.68;
  color: #a9c6cf;
}

.storylore p:last-child {
  margin-bottom: 0;
}

.storywiki {
  display: inline-block;
  margin-top: 10px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5f8290;
  text-decoration: none;
}

.storywiki:hover {
  color: var(--cyan);
}

.navlink {
  text-decoration: none;
}

/* ------------------------------------------------------------------- wiki */

.wikibody {
  background: #05080b;
}

.wikibar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(30, 62, 74, 0.6);
}

.wikinav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wikinav a {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f8290;
  text-decoration: none;
}

.wikinav a:hover {
  color: var(--cyan);
}

.wikinav .wikinav-play {
  color: var(--cyan);
  border: 1px solid rgba(79, 216, 224, 0.5);
  padding: 6px 12px;
}

.wikimain {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}

.wikihero h1 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.wikihero .lede {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: #b9d3db;
}

.wikigrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.wikicard {
  display: block;
  border: 1px solid rgba(30, 62, 74, 0.9);
  background: linear-gradient(180deg, rgba(9, 22, 29, 0.9), rgba(5, 12, 16, 0.9));
  padding: 14px;
  text-decoration: none;
}

.wikicard:hover {
  border-color: rgba(79, 216, 224, 0.5);
}

.wikicard span {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f6a75;
}

.wikicard b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.wikicard p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dim);
}

.wikigrid.small {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.wikistart {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(30, 62, 74, 0.9);
  background: rgba(9, 22, 29, 0.6);
}

.wikistart h2,
.wikisee h2 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 400;
}

.wikistart p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--dim);
}

.wikistart a,
.wikiart p a {
  color: var(--cyan);
}

.wikiart {
  max-width: 72ch;
}

.wikiart h1 {
  margin: 6px 0 10px;
  font-size: clamp(24px, 4.4vw, 32px);
  font-weight: 400;
  color: var(--ink);
}

.wikiart .lede {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.72;
  color: #b9d3db;
}

.wikicrumb {
  margin-bottom: 14px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4f6a75;
}

.wikicrumb a {
  color: #5f8290;
  text-decoration: none;
}

.wikisec h2 {
  margin: 26px 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 400;
}

.wikisec p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.78;
  color: #b9d3db;
}

.wikisec ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.wikisec li {
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #b9d3db;
}

.wikisec blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--cyan);
  background: rgba(79, 216, 224, 0.06);
  font-size: 14px;
  line-height: 1.6;
  color: #d7eef3;
  font-style: italic;
}

.wikisee {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(30, 62, 74, 0.6);
}

.wikipager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 62, 74, 0.6);
}

.wikipager a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f8290;
  text-decoration: none;
}

.wikipager a:hover {
  color: var(--cyan);
}

.wikifoot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 20px 40px;
  border-top: 1px solid rgba(30, 62, 74, 0.6);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3f5a64;
}

.wikifoot a {
  color: #5f8290;
  text-decoration: none;
}

.landbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landwiki {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5f8290;
  text-decoration: none;
  border: 1px solid rgba(30, 62, 74, 0.9);
  padding: 5px 10px;
}

.landwiki:hover {
  color: var(--cyan);
  border-color: rgba(79, 216, 224, 0.45);
}

.landfoot a {
  color: #5f8290;
  text-decoration: none;
}

.landfoot a:hover {
  color: var(--cyan);
}

/* ------------------------------------------------------- changelog + env */
.landenv {
  font: 600 9px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0b429;
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 3px;
  padding: 5px 7px 4px;
  margin-left: 10px;
}

.clog {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.clogitem {
  border-left: 2px solid rgba(79, 216, 224, 0.3);
  padding: 2px 0 2px 18px;
}

.cloghead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.cloghead b {
  color: #e8f0f8;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.clogtag {
  font: 700 9px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 6px 3px;
  border-radius: 3px;
}

.clogtag.city {
  color: #4fd8e0;
  background: rgba(79, 216, 224, 0.12);
}

.clogtag.android {
  color: #f0b429;
  background: rgba(240, 180, 41, 0.12);
}

.clogmeta {
  color: #687c91;
  font: 11px/1.6 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  margin: 8px 0 6px;
}

.clognotes {
  margin: 0;
  padding-left: 18px;
  color: #9fb3c8;
  font-size: 13.5px;
  line-height: 1.75;
}

.clognotes li { margin-bottom: 4px; }

/* ------------------------------------------------------- retired build wall */
.updatewall {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 7, 11, 0.95);
  backdrop-filter: blur(6px);
}

.updatecard {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 28px 24px;
  border: 1px solid rgba(224, 82, 82, 0.4);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 12, 14, 0.95), rgba(6, 9, 14, 0.95));
}

.updatecard h2 {
  margin: 10px 0 12px;
  color: #e8f0f8;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.updatecard p {
  margin: 0 0 10px;
  color: #9fb3c8;
  font-size: 13.5px;
  line-height: 1.7;
}

.updatecard .hint {
  color: #687c91;
  font-size: 12px;
}

.updatecard .btn {
  margin-top: 14px;
  width: 100%;
}

/* ------------------------------------------------------------------ intro */
body.intro-open {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #010507;
  transition: opacity 0.4s ease;
}

.intro.closing {
  opacity: 0;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.intro-skip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 7px 12px;
  background: rgba(5, 8, 11, 0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.intro-skip:hover,
.intro-skip:focus-visible {
  color: var(--ink);
  border-color: var(--cyan);
}

/* The same corner, on the other side: the words for anyone who would rather
   read them than wait for them. */
.intro-tx {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  background: rgba(5, 8, 11, 0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font: inherit;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.intro-tx:hover,
.intro-tx:focus-visible {
  color: var(--ink);
  border-color: var(--cyan);
}

.intro-transcript {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 14px;
  right: 14px;
  max-height: 62%;
  overflow: auto;
  padding: 20px 22px 8px;
  background: rgba(3, 9, 12, 0.96);
  border: 1px solid rgba(79, 216, 224, 0.3);
  border-radius: 4px;
  color: #c9e2e6;
  font-size: 13.5px;
  line-height: 1.75;
}

.intro-transcript ol {
  margin: 0;
  padding-left: 20px;
}

.intro-transcript li {
  margin-bottom: 12px;
}

.intro-transcript li::marker {
  color: rgba(79, 216, 224, 0.6);
}

/* The hull sits behind the captions at every viewport, so the words get their
   own floor to stand on rather than relying on the drawing staying out of it. */
.intro-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(1, 5, 7, 0), rgba(1, 5, 7, 0.9) 58%);
}

.intro-cap {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 78px;
  width: min(720px, calc(100% - 40px));
  transform: translateX(-50%);
  text-align: center;
}

.intro-cap p {
  margin: 0;
  font-size: clamp(13px, 2.1vw, 16px);
  line-height: 1.75;
  color: var(--ink);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.intro-cap p.swap {
  opacity: 0;
  transform: translateY(5px);
}

.intro-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(79, 216, 224, 0.14);
}

.intro-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
}

/* ------------------------------------------------------- warden server tab */
.healthrow {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.healthrow:last-of-type {
  border-bottom: 0;
}

.healthrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(87, 214, 138, 0.45);
}

.healthrow.warn .dot {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(240, 180, 41, 0.45);
}

.healthrow.fail .dot {
  background: var(--red);
  box-shadow: 0 0 8px rgba(224, 82, 82, 0.55);
}

.healthlabel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.healthlabel small {
  color: var(--dim);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.healthms {
  color: var(--dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.healthoverall {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.healthoverall.ok {
  color: var(--green);
}

.healthoverall.warn {
  color: var(--amber);
}

.healthoverall.fail {
  color: var(--red);
}

.serverlog {
  max-height: 420px;
  overflow-y: auto;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.logline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(22, 50, 61, 0.55);
  font-size: 11.5px;
  white-space: nowrap;
}

.logline:last-child {
  border-bottom: 0;
}

.logline time {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.logline b {
  width: 30px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

.logline.warn b {
  color: var(--amber);
}

.logline.error b {
  color: var(--red);
}

.logline .method {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.logline code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logline em {
  color: var(--amber);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logline .logms {
  margin-left: auto;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
