:root {
  color-scheme: dark;
  --bg: #05070c;
  --panel: rgba(12, 16, 24, 0.72);
  --panel-solid: #0c1018;
  --line: rgba(140, 170, 210, 0.14);
  --line-strong: rgba(140, 170, 210, 0.28);
  --text: #e8eef8;
  --muted: #8b97ad;
  --ink: #ffffff;
  --ink-soft: #eaf2ff;
  --cyan: #6ec8ff;
  --blue: #3d7cff;
  --ok: #3dffa8;
  --ok-dim: rgba(61, 255, 168, 0.14);
  --warn: #ff8a3d;
  --warn-dim: rgba(255, 138, 61, 0.14);
  --danger: #ff5d6c;
  --glow: 0 0 40px rgba(62, 130, 255, 0.18);
  --nav-bg: rgba(6, 9, 16, 0.75);
  --elevated: rgba(10, 16, 28, 0.92);
  --elevated-solid: #0c121c;
  --input-bg: rgba(10, 20, 40, 0.65);
  --hover-bg: rgba(40, 90, 160, 0.18);
  --overlay: rgba(0, 0, 0, 0.45);
  --dropdown-bg: rgba(8, 14, 26, 0.98);
  --card-bg: rgba(10, 16, 28, 0.88);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 6, 20, 0.28);
  --autofill-fill: rgba(6, 12, 22, 0.96);
  --space-mesh-a: rgba(40, 80, 160, 0.22);
  --space-mesh-b: rgba(20, 90, 120, 0.16);
  --space-base-a: #060910;
  --space-base-b: #04060b;
  --star: rgba(255, 255, 255, 0.55);
  --theme-color: #05070c;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* Optional light theme ? dark remains the default (no data-theme / data-theme="dark") */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #0f172a;
  --muted: #64748b;
  --ink: #0f172a;
  --ink-soft: #334155;
  --cyan: #0284c7;
  --blue: #2563eb;
  --ok: #059669;
  --ok-dim: rgba(5, 150, 105, 0.12);
  --warn: #ea580c;
  --warn-dim: rgba(234, 88, 12, 0.12);
  --danger: #dc2626;
  --glow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --elevated: #ffffff;
  --elevated-solid: #ffffff;
  --input-bg: #ffffff;
  --hover-bg: rgba(37, 99, 235, 0.06);
  --overlay: rgba(15, 23, 42, 0.36);
  --dropdown-bg: #ffffff;
  --card-bg: #ffffff;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 2px 8px rgba(15, 23, 42, 0.05);
  --autofill-fill: #f8fafc;
  --space-mesh-a: rgba(37, 99, 235, 0.055);
  --space-mesh-b: rgba(14, 165, 233, 0.04);
  --space-base-a: #f7f8fb;
  --space-base-b: #eef1f6;
  --star: rgba(37, 99, 235, 0.12);
  --theme-color: #f4f6fa;
}

* { box-sizing: border-box; }

/* Kill mobile tap / focus flash (blue square) on all interactive controls */
html,
body {
  -webkit-tap-highlight-color: transparent;
}
*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
summary,
label,
[role="button"],
[role="menuitem"],
[role="menuitemradio"],
[role="tab"],
[role="option"],
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
a:focus,
button:focus,
summary:focus,
[role="button"]:focus,
[role="menuitem"]:focus,
[role="menuitemradio"]:focus,
[role="tab"]:focus,
[role="option"]:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}
/* Touch / coarse pointers: no momentary focus ring after tap */
@media (hover: none), (pointer: coarse) {
  a:focus,
  button:focus,
  summary:focus,
  [role="button"]:focus,
  [role="menuitem"]:focus,
  [role="menuitemradio"]:focus,
  [role="tab"]:focus,
  [role="option"]:focus,
  .btn-apps:focus,
  .btn-back:focus,
  .btn-logout:focus,
  .who-profile:focus,
  .app-tile:focus,
  .mode-pill:focus,
  .tab:focus,
  .fleet-item:focus,
  .chat-item:focus,
  .panel-tab:focus,
  .panel-subtab:focus,
  .panel-section-more:focus,
  .panel-subtabs-more:focus {
    outline: none !important;
  }
  a:focus-visible,
  button:focus-visible,
  summary:focus-visible,
  [role="button"]:focus-visible {
    outline: none !important;
  }
}
html.apk-webview,
html.apk-webview * {
  -webkit-tap-highlight-color: transparent !important;
}

/* Hidden scrollbars everywhere (scroll still works) */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
}
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:start:decrement,
*::-webkit-scrollbar-button:vertical:start:increment,
*::-webkit-scrollbar-button:vertical:end:decrement,
*::-webkit-scrollbar-button:vertical:end:increment,
*::-webkit-scrollbar-button:horizontal:start:decrement,
*::-webkit-scrollbar-button:horizontal:start:increment,
*::-webkit-scrollbar-button:horizontal:end:decrement,
*::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
}
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-corner {
  display: none !important;
  background: transparent !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
}

.hidden { display: none !important; }

.space-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 70% 40%, var(--space-mesh-a), transparent 55%),
    radial-gradient(900px 500px at 15% 80%, var(--space-mesh-b), transparent 50%),
    linear-gradient(180deg, var(--space-base-a) 0%, var(--space-base-b) 100%);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, var(--star), transparent),
    radial-gradient(1px 1px at 30% 70%, var(--star), transparent),
    radial-gradient(1.5px 1.5px at 55% 25%, var(--star), transparent),
    radial-gradient(1px 1px at 75% 60%, var(--star), transparent),
    radial-gradient(1px 1px at 88% 18%, var(--star), transparent),
    radial-gradient(1px 1px at 42% 48%, var(--star), transparent),
    radial-gradient(1.5px 1.5px at 18% 42%, var(--star), transparent);
  animation: twinkle 8s ease-in-out infinite;
}

.nebula {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 40% 30% at 65% 45%, rgba(50, 110, 220, 0.12), transparent),
    radial-gradient(ellipse 35% 25% at 30% 60%, rgba(30, 160, 180, 0.08), transparent);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite;
}

#app {
  height: 100%;
  min-height: 0;
}

/* ?? Login ?? */
.login-stage {
  position: relative;
  height: 100%;
  overflow: auto;
  animation: rise 0.55s ease both;
}

.login-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-stars {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-image:
    radial-gradient(1px 1px at 4% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(180,220,255,0.9), transparent),
    radial-gradient(1px 1px at 22% 8%, #fff, transparent),
    radial-gradient(1px 1px at 31% 44%, rgba(255,255,255,0.55), transparent),
    radial-gradient(2px 2px at 48% 18%, rgba(160,210,255,0.85), transparent),
    radial-gradient(1px 1px at 61% 6%, #fff, transparent),
    radial-gradient(1px 1px at 73% 22%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 84% 14%, #fff, transparent),
    radial-gradient(1px 1px at 91% 36%, rgba(180,220,255,0.7), transparent),
    radial-gradient(1px 1px at 16% 62%, #fff, transparent),
    radial-gradient(1px 1px at 38% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 57% 58%, rgba(160,255,210,0.55), transparent),
    radial-gradient(1px 1px at 69% 78%, #fff, transparent),
    radial-gradient(1px 1px at 88% 66%, rgba(255,255,255,0.45), transparent);
  animation: twinkle 7s ease-in-out infinite;
}

.login-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 35% at 70% 40%, rgba(50, 120, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 30% at 45% 55%, rgba(40, 200, 180, 0.12), transparent 55%),
    radial-gradient(ellipse 35% 28% at 80% 70%, rgba(90, 70, 220, 0.1), transparent 50%);
  filter: blur(28px);
  animation: drift 18s ease-in-out infinite;
}

.login-beams {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent 0 70px,
      rgba(110, 180, 255, 0.025) 70px 71px
    );
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
}

.login-horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(4, 8, 16, 0.55) 30%, rgba(4, 8, 16, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(100, 160, 255, 0.07) 48px 49px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(100, 160, 255, 0.06) 34px 35px);
  transform: perspective(500px) rotateX(58deg);
  transform-origin: center bottom;
  opacity: 0.7;
}

.login-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(110, 200, 255, 0.04) 48%,
    rgba(110, 200, 255, 0.1) 50%,
    rgba(110, 200, 255, 0.04) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: login-scan 5.5s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.login-world {
  position: absolute;
  right: -2%;
  top: 46%;
  transform: translateY(-50%);
  width: min(720px, 72vw);
  height: min(720px, 72vw);
}

.fin-rings {
  position: absolute;
  inset: 8%;
  z-index: 0;
}
.fin-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, 0.16);
  transform: translate(-50%, -50%);
}
.fin-ring.r1 { width: 48%; height: 48%; }
.fin-ring.r2 { width: 64%; height: 64%; border-style: dashed; animation: spin-slow 48s linear infinite; }
.fin-ring.r3 { width: 80%; height: 80%; border-color: rgba(61, 255, 168, 0.14); animation: spin-slow 64s linear infinite reverse; }
.fin-ring.r4 {
  width: 96%;
  height: 96%;
  border-color: rgba(140, 160, 255, 0.12);
  box-shadow: 0 0 40px rgba(40, 100, 220, 0.12);
}

.fin-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.fin-hub-glow {
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 255, 168, 0.22), rgba(50, 120, 255, 0.18) 40%, transparent 70%);
  filter: blur(12px);
  animation: pulse 4s ease-in-out infinite;
}

.fin-hub-core {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle at 30% 28%, rgba(160, 220, 255, 0.28), transparent 40%),
    linear-gradient(160deg, #12325a 0%, #0a1a30 50%, #061018 100%);
  border: 1px solid rgba(140, 200, 255, 0.35);
  box-shadow:
    inset 0 0 40px rgba(40, 120, 255, 0.2),
    0 0 50px rgba(40, 120, 255, 0.28);
}

.fin-hub-grid {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(140, 200, 255, 0.08) 14px 15px),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(140, 200, 255, 0.08) 14px 15px);
  opacity: 0.7;
  animation: spin-slow 70s linear infinite;
}

.fin-hub-chip {
  display: none;
}

.fin-paycard {
  position: relative;
  z-index: 1;
  width: 54%;
  aspect-ratio: 1.6 / 1;
  border-radius: 10px;
  border: 1px solid rgba(180, 220, 255, 0.35);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 42%),
    linear-gradient(160deg, #1c4f8c 0%, #0d2748 55%, #081624 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(80, 160, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.fin-paycard-chip {
  position: absolute;
  left: 12%;
  top: 22%;
  width: 18%;
  height: 28%;
  border-radius: 3px;
  border: 1px solid rgba(230, 210, 140, 0.55);
  background:
    linear-gradient(135deg, #f0e0a8, #b8963e 45%, #8a6a28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.fin-paycard-line {
  position: absolute;
  left: 38%;
  height: 4px;
  border-radius: 2px;
  background: rgba(200, 230, 255, 0.35);
}
.fin-paycard-line.l1 { top: 24%; width: 42%; }
.fin-paycard-line.l2 { top: 40%; width: 34%; opacity: 0.7; }
.fin-paycard-line.l3 { top: 56%; width: 28%; opacity: 0.5; }

.fin-paycard-wave {
  position: absolute;
  right: 10%;
  bottom: 16%;
  width: 28%;
  height: 22%;
  border-radius: 999px 999px 0 0;
  border: 1.5px solid rgba(120, 220, 255, 0.55);
  border-bottom: 0;
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(110, 200, 255, 0.35);
}

.fin-hub-mark {
  display: none;
}

.fin-hub-label {
  position: absolute;
  bottom: 12%;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.fin-gauge {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.fin-gauge circle {
  fill: none;
  stroke: rgba(140, 180, 255, 0.12);
  stroke-width: 3;
}
.fin-gauge-arc {
  stroke: url(#none);
  stroke: #3dffa8;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 72 100;
  filter: drop-shadow(0 0 6px rgba(61, 255, 168, 0.7));
  animation: gauge-pulse 3.2s ease-in-out infinite;
}

.fin-card {
  position: absolute;
  z-index: 3;
  width: min(168px, 28%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 190, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(30, 60, 110, 0.55), rgba(8, 14, 24, 0.88));
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(40, 100, 220, 0.12);
  display: grid;
  gap: 2px;
  animation: card-float 5.5s ease-in-out infinite;
}
.fin-card strong {
  font-size: 0.95rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.fin-card em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}
.fin-card-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--ok);
  margin-bottom: 2px;
}
.fin-card-tag.out { color: var(--warn); }
.fin-card.c1 { left: 8%; top: 22%; }
.fin-card.c2 { right: 6%; top: 34%; animation-delay: 0.8s; }
.fin-card.c3 { left: 14%; bottom: 18%; animation-delay: 1.4s; }

.fin-bars {
  position: absolute;
  right: 14%;
  bottom: 16%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 190, 255, 0.2);
  background: rgba(6, 12, 22, 0.55);
  backdrop-filter: blur(10px);
}
.fin-bars i {
  display: block;
  width: 7px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #8fd0ff, #3dffa8);
  opacity: 0.85;
  animation: bars 1.8s ease-in-out infinite;
}
.fin-bars i:nth-child(odd) { animation-delay: 0.15s; }
.fin-bars i:nth-child(3n) { animation-delay: 0.35s; }

.fin-token {
  position: absolute;
  z-index: 3;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #eaf4ff;
  border: 1px solid rgba(140, 200, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(110, 180, 255, 0.22), rgba(10, 20, 36, 0.85));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 16px rgba(60, 130, 255, 0.2);
  animation: card-float 5.5s ease-in-out infinite;
}
.fin-token.n1 { left: 26%; top: 14%; }
.fin-token.n2 { right: 16%; top: 18%; color: #b7f0d5; border-color: rgba(61, 255, 168, 0.35); animation-delay: 0.6s; }
.fin-token.n3 { right: 20%; bottom: 28%; animation-delay: 1.1s; }
.fin-token.n4 { left: 32%; bottom: 30%; color: #ffd2b0; border-color: rgba(255, 176, 74, 0.4); animation-delay: 1.7s; }

.fin-coin { display: none; }

.fin-flows {
  position: absolute;
  inset: 10%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.fin-flows path {
  fill: none;
  stroke: rgba(120, 190, 255, 0.28);
  stroke-width: 0.4;
  stroke-dasharray: 3 5;
  animation: dash-flow 10s linear infinite;
}
.fin-flows path:nth-child(2) {
  stroke: rgba(61, 255, 168, 0.28);
  animation-duration: 14s;
}
.fin-flows path:nth-child(3) {
  stroke: rgba(255, 176, 74, 0.22);
  animation-duration: 18s;
  animation-direction: reverse;
}

.login-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px 22px 14px;
}

.login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(140, 170, 210, 0.1);
  animation: rise 0.45s ease both;
}

.login-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  vertical-align: 1px;
  animation: sat-pulse 1.8s ease-in-out infinite;
}

.login-clock {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 36px;
  align-items: center;
  padding: 4vh 0;
  max-width: 1180px;
}

.login-copy {
  animation: rise 0.55s ease 0.05s both;
  max-width: 34ch;
}

.login-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.login-pulse::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: sat-pulse 1.6s ease-in-out infinite;
}

.login-brand {
  margin: 10px 0 0;
  font-size: clamp(3.6rem, 10vw, 6.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: #fff;
  text-shadow:
    0 0 30px rgba(80, 150, 255, 0.45),
    0 0 80px rgba(40, 100, 255, 0.25);
}
.login-brand-accent {
  background: linear-gradient(120deg, #fff 20%, #7ec8ff 55%, #3dffa8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-tagline {
  margin: 18px 0 0;
  color: #b7c4d8;
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 28ch;
  white-space: normal;
}

.login-ticker {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.login-ticker span {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(110, 200, 255, 0.22);
  background: rgba(40, 90, 180, 0.12);
  animation: ticker-fade 4s ease-in-out infinite;
}
.login-ticker span:nth-child(2) { animation-delay: 0.4s; color: var(--ok); border-color: rgba(61, 255, 168, 0.22); }
.login-ticker span:nth-child(3) { animation-delay: 0.8s; }
.login-ticker span:nth-child(4) { animation-delay: 1.2s; }

.login-stats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-width: 280px;
}

.login-stats li {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 170, 210, 0.16);
  background:
    linear-gradient(90deg, rgba(61, 124, 255, 0.1), transparent 55%),
    rgba(6, 10, 18, 0.62);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2px 10px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-stats span {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-stats strong {
  grid-column: 2;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ok);
  text-align: right;
}

.stat-bar {
  grid-column: 1 / -1;
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.stat-bar b {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--ok));
  box-shadow: 0 0 8px rgba(61, 255, 168, 0.45);
  animation: bar-in 1.1s ease both;
}

.login-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 40%),
    var(--panel);
  backdrop-filter: blur(20px);
  box-shadow:
    var(--shadow),
    var(--glow),
    inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
  animation: rise 0.55s ease 0.12s both;
  overflow: hidden;
}

.hud-corners::before,
.hud-corners::after,
.login-form::before,
.login-form::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(110, 200, 255, 0.75);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}
.login-form::before { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.login-form::after { right: 8px; top: 8px; border-width: 2px 2px 0 0; }
.hud-corners::before { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; }
.hud-corners::after { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }

.login-form-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(110, 200, 255, 0.08), transparent);
  background-size: 100% 40%;
  animation: form-scan 3.8s ease-in-out infinite;
  pointer-events: none;
}

.login-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.login-form-head h2 { font-size: 1.4rem; }
.login-form-id {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(110, 200, 255, 0.25);
}

.login-field {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.login-field input,
input {
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-field input:focus,
input:focus {
  border-color: color-mix(in srgb, var(--cyan) 70%, transparent);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent), 0 0 24px color-mix(in srgb, var(--blue) 15%, transparent);
}

.login-field input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.login-submit {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(40, 110, 255, 0.35);
}

.login-submit-arrow {
  font-size: 1.1rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.login-submit:hover .login-submit-arrow {
  transform: translateX(4px);
}

.login-foot-mid code {
  color: var(--ok);
  font-family: inherit;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(140, 170, 210, 0.1);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  animation: rise 0.5s ease 0.2s both;
}
.login-foot-mid { color: var(--cyan); }

.error {
  position: relative;
  z-index: 1;
  color: var(--danger);
  min-height: 1.2em;
  margin: 0;
  font-size: 0.88rem;
}
.empty {
  color: var(--muted);
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

@keyframes login-scan {
  0% { background-position: 0 -40%; opacity: 0; }
  12%, 88% { opacity: 1; }
  100% { background-position: 0 140%; opacity: 0; }
}
@keyframes form-scan {
  0% { transform: translateY(-120%); opacity: 0; }
  18% { opacity: 0.85; }
  82% { opacity: 0.85; }
  100% { transform: translateY(120%); opacity: 0; }
}
@keyframes dash-flow {
  to { stroke-dashoffset: -80; }
}
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes coin-spin {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-6px) rotateY(28deg); }
}
@keyframes gauge-pulse {
  0%, 100% { stroke-dasharray: 68 100; opacity: 0.85; }
  50% { stroke-dasharray: 78 100; opacity: 1; }
}
@keyframes ticker-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes bar-in {
  from { width: 0; }
  to { width: var(--w); }
}

/* iOS/Chrome autofill ? match active theme fill */
.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--autofill-fill) inset;
  transition: background-color 99999s ease-out;
}

@media (max-width: 860px) {
  .login-stage {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .login-shell {
    padding:
      max(12px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(18px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    min-height: 100dvh;
  }

  .login-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 22px;
    padding: 2.2vh 0 1.2vh;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  .login-copy {
    max-width: none;
    text-align: center;
  }

  .login-pulse {
    justify-content: center;
  }

  .login-brand {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
    letter-spacing: 0.06em;
  }

  .login-tagline {
    margin: 12px auto 0;
    font-size: 0.98rem;
    max-width: 26ch;
  }

  /* Decorative theater overlaps brand on phones ? keep sky only */
  .login-world {
    display: none;
  }

  .login-horizon {
    opacity: 0.28;
    height: 32%;
  }

  .login-beams,
  .login-scan {
    opacity: 0.35;
  }

  .login-ticker,
  .login-stats {
    display: none;
  }

  .login-top {
    padding-bottom: 10px;
  }

  .login-top .brand-sub {
    display: none;
  }

  .login-top-meta .chip {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .login-clock {
    display: none;
  }

  .login-form {
    padding: 18px 16px 16px;
    border-radius: 16px;
    gap: 14px;
  }

  .login-form-head h2 {
    font-size: 1.28rem;
  }

  .login-field {
    font-size: 0.78rem;
    gap: 8px;
  }

  .login-field input {
    padding: 14px 14px;
    font-size: 1.02rem;
    border-radius: 12px;
    background: rgba(4, 8, 16, 0.72);
  }

  .login-submit {
    margin-top: 2px;
    min-height: 48px;
    padding: 14px 16px;
  }

  .login-foot {
    gap: 6px;
    justify-content: center;
    text-align: center;
    padding-top: 14px;
    padding-bottom: 2px;
  }

  .login-foot > span:first-child {
    display: none;
  }

  .login-foot-mid {
    width: 100%;
    order: -1;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 420px) {
  .login-brand {
    font-size: 2.35rem;
  }

  .login-tagline {
    font-size: 0.92rem;
  }

  .login-top-meta .chip span,
  .login-top-meta .chip {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ?? Mission shell ?? */
.mission {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.brand-block { display: flex; align-items: baseline; gap: 10px; min-width: 160px; }
.brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.tab.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--blue) 28%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 35%, transparent);
}
.tab:disabled { opacity: 0.35; cursor: not-allowed; }

.topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.who-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(42vw, 16rem);
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  border: 1px solid rgba(140, 170, 210, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(8, 12, 20, 0.55);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.who-profile:hover {
  border-color: rgba(110, 190, 255, 0.4);
  background: rgba(40, 90, 160, 0.18);
}
.who-profile.is-ok {
  border-color: rgba(61, 255, 168, 0.28);
  box-shadow: 0 0 16px rgba(61, 255, 168, 0.08);
}
.who-profile.is-ok:hover {
  border-color: rgba(61, 255, 168, 0.48);
  background: rgba(30, 90, 60, 0.2);
}
.who-profile.is-sync {
  border-color: rgba(110, 200, 255, 0.35);
  box-shadow: 0 0 16px rgba(110, 200, 255, 0.1);
}
.who-profile.is-sync:hover {
  border-color: rgba(110, 200, 255, 0.55);
}
.who-profile.is-bad,
.who-profile.is-down {
  border-color: rgba(255, 138, 61, 0.4);
  box-shadow: 0 0 16px rgba(255, 138, 61, 0.1);
}
.who-profile.is-down {
  border-color: rgba(255, 93, 108, 0.45);
  box-shadow: 0 0 16px rgba(255, 93, 108, 0.12);
}
.who-profile.is-bad:hover,
.who-profile.is-down:hover {
  border-color: rgba(255, 160, 90, 0.55);
  background: rgba(90, 40, 20, 0.22);
}
.who-avatar {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background:
    url("/static/avatar-default.svg") center / cover no-repeat,
    #163a70;
}
.who-profile.is-ok .who-login {
  color: #b7f0d5;
}
.who-profile.is-sync .who-login {
  color: var(--cyan, #6ec8ff);
}
.who-profile.is-bad .who-login {
  color: #ffd2b0;
}
.who-profile.is-down .who-login {
  color: #ffb0b8;
}
.who-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.who-avatar-img.is-cache-ready {
  opacity: 1;
}
.who-avatar-img[hidden] {
  display: none !important;
}
.who-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #eaf4ff;
}
.who-avatar-fallback[hidden] {
  display: none !important;
}
.who-login,
.who {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 140, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 120, 140, 0.14), rgba(40, 10, 18, 0.35));
  color: #ffd0d8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-apps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(110, 180, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(90, 150, 255, 0.14), rgba(12, 24, 48, 0.45));
  color: #cfe4ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-apps.hidden,
.btn-apps[hidden] {
  display: none !important;
}
.btn-apps-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(90, 150, 255, 0.16);
  color: #8ec4ff;
}
.btn-apps:hover {
  border-color: rgba(140, 200, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(90, 150, 255, 0.22), rgba(18, 36, 70, 0.55));
  box-shadow: 0 0 18px rgba(90, 150, 255, 0.18);
  transform: translateY(-1px);
}
.btn-apps:active {
  transform: translateY(0);
}
.btn-sound {
  display: none !important;
}
.btn-sound-icon {
  display: none !important;
}
.btn-logout-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 93, 108, 0.16);
  color: #ff8fa0;
}
.btn-logout:hover {
  border-color: rgba(255, 140, 160, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 120, 140, 0.22), rgba(60, 14, 24, 0.45));
  box-shadow: 0 0 18px rgba(255, 93, 108, 0.18);
  transform: translateY(-1px);
}
.btn-logout:active {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .btn-logout-text,
  .btn-apps-text { display: none; }
  .btn-logout,
  .btn-apps { padding: 7px; }
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(250px, 300px);
  gap: 12px;
  padding: 12px;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

.fleet-panel .empty {
  margin: 8px 14px 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(140, 170, 210, 0.22);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%),
    var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rise 0.45s ease both;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 16px 10px;
  flex-shrink: 0;
}

.eyebrow {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow.warn { color: var(--warn); }
.eyebrow.ok { color: var(--ok); }

h1, h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: 1.7rem; }
h2 { font-size: 1.15rem; color: #fff; }

.lede {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 42ch;
}

.badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  border: 1px solid var(--line-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip-ok {
  color: var(--ok);
  background: var(--ok-dim);
  border-color: rgba(61, 255, 168, 0.28);
}
.chip-warn {
  color: var(--warn);
  background: var(--warn-dim);
  border-color: rgba(255, 138, 61, 0.35);
}

.btn-primary,
.btn-warn,
.btn-ghost,
.mode-pill {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
}

.btn-primary {
  border: 0;
  padding: 12px 16px;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(180deg, #8fd0ff, #3d7cff);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-warn {
  border: 0;
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff7a5c, #e04830);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

/* ?? Fleet ?? */
.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 12px;
  flex-shrink: 0;
}

.mode-pill {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.mode-pill.is-active {
  color: #fff;
  border-color: rgba(110, 200, 255, 0.45);
  background: rgba(61, 124, 255, 0.2);
  box-shadow: 0 0 16px rgba(61, 124, 255, 0.2);
}

.fleet-list,
.chat-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-content: stretch;
}

.fleet-panel,
.chat-panel {
  position: relative;
  z-index: 5;
}

.chat-head h2 {
  letter-spacing: -0.02em;
}

.chat-filters {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2px;
}

.fleet-li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fleet-item,
.chat-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 11px 12px 11px 10px;
  border: 1px solid rgba(90, 160, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(40, 110, 220, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(6, 10, 18, 0.88));
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  box-shadow:
    inset 0 1px 0 rgba(140, 200, 255, 0.08),
    0 8px 20px rgba(0, 20, 50, 0.28);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.chat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #7ec8ff, #2a6dff 55%, transparent);
  opacity: 0.55;
  pointer-events: none;
}
.chat-item:hover {
  background:
    linear-gradient(115deg, rgba(50, 130, 255, 0.28), transparent 48%),
    linear-gradient(180deg, rgba(16, 32, 58, 0.96), rgba(8, 14, 26, 0.92));
  border-color: rgba(110, 190, 255, 0.38);
  transform: translateX(2px);
  box-shadow:
    inset 0 1px 0 rgba(160, 220, 255, 0.12),
    0 0 24px rgba(40, 120, 255, 0.18);
}
.chat-item.is-active {
  background:
    linear-gradient(115deg, rgba(60, 140, 255, 0.34), transparent 50%),
    linear-gradient(180deg, rgba(18, 40, 78, 0.98), rgba(8, 16, 34, 0.95));
  border-color: rgba(120, 200, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(180, 230, 255, 0.14),
    0 0 28px rgba(50, 130, 255, 0.28);
}
.chat-item.is-active::before {
  opacity: 1;
  width: 4px;
  background: linear-gradient(180deg, #b8e4ff, #3d9dff, #1a5cff);
  box-shadow: 0 0 12px rgba(90, 180, 255, 0.65);
}

.chat-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  box-shadow:
    0 0 0 1px rgba(140, 200, 255, 0.35),
    0 0 18px rgba(50, 130, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.chat-avatar.tone-0 {
  background: linear-gradient(145deg, #6eb0ff, #1e4fb8 55%, #0d2a6a);
}
.chat-avatar.tone-1 {
  background: linear-gradient(145deg, #5ec8ff, #1a6a9a 55%, #0d3a58);
}
.chat-avatar.tone-2 {
  background: linear-gradient(145deg, #7b9fff, #2a4a9a 55%, #152860);
}
.chat-avatar.tone-3 {
  background: linear-gradient(145deg, #4db8ff, #1a5a9a 55%, #0e3060);
}
.chat-avatar.tone-4 {
  background: linear-gradient(145deg, #8fd0ff, #2a6ab0 55%, #163a70);
}
.chat-avatar.tone-5 {
  background: linear-gradient(145deg, #6a9fff, #2548a0 55%, #12285a);
}

.chat-avatar-letters {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 20, 60, 0.55);
}

.chat-online {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #6ec8ff;
  border: 2px solid #0b1018;
  box-shadow: 0 0 10px rgba(110, 200, 255, 0.8);
}
.chat-online.has-mail {
  background: #9fe0ff;
  box-shadow: 0 0 12px rgba(159, 224, 255, 0.95);
  animation: chat-pulse 1.6s ease-in-out infinite;
}
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(110, 200, 255, 0.55); }
  50% { box-shadow: 0 0 16px rgba(140, 220, 255, 0.95); }
}

.chat-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.chat-row-top,
.chat-row-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chat-name {
  position: relative;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eaf4ff;
  background: linear-gradient(90deg, #ffffff 10%, #8ecfff 55%, #4aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(90, 170, 255, 0.25));
  padding-bottom: 2px;
}
.chat-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(42%, 4.5rem);
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #6ec8ff, transparent);
  opacity: 0.85;
}

.chat-time {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: rgba(140, 190, 230, 0.78);
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.chat-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: rgba(150, 185, 220, 0.72);
  line-height: 1.3;
}
.chat-preview.is-unread {
  color: #d7ecff;
  font-weight: 600;
}

.chat-item.has-unread .chat-name {
  font-weight: 800;
  filter: drop-shadow(0 0 14px rgba(110, 190, 255, 0.4));
}
.chat-item.has-unread {
  border-color: rgba(100, 190, 255, 0.32);
  background:
    linear-gradient(115deg, rgba(50, 130, 255, 0.26), transparent 46%),
    linear-gradient(180deg, rgba(14, 28, 52, 0.96), rgba(6, 12, 24, 0.9));
}

.chat-unread {
  flex-shrink: 0;
  color: #6ab6ff;
  font-size: 0.55rem;
  line-height: 1;
}
.chat-unread-badge {
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 750;
  color: #031018;
  background: linear-gradient(90deg, #7ec8ff, #3d9dff 55%, #2fd4c8);
  box-shadow: 0 0 16px rgba(70, 170, 255, 0.45);
}
/* Safety: if badge was wrongly appended to .chat-item (2-col grid), pin to content col */
.chat-item > .chat-unread-badge {
  grid-column: 2;
  justify-self: end;
  align-self: end;
}

/* legacy asset styles kept for safety */
.asset-icon { display: none; }
.status-tag { display: none; }

/* ?? Theater / ledger ?? */
.theater-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(40, 90, 180, 0.18), transparent 62%),
    radial-gradient(ellipse 40% 30% at 18% 78%, rgba(61, 255, 168, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.2), rgba(4, 8, 16, 0.55));
}

.telemetry-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(70, 140, 255, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 18%, rgba(61, 255, 168, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.55), rgba(6, 10, 18, 0.82));
}
.tele-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tele-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
}
.tele-orb.o1 {
  width: 160px;
  height: 160px;
  top: -40px;
  right: -30px;
  background: rgba(80, 150, 255, 0.35);
  animation: tele-orb-drift 9s ease-in-out infinite;
}
.tele-orb.o2 {
  width: 120px;
  height: 120px;
  top: 90px;
  left: -40px;
  background: rgba(61, 255, 168, 0.18);
  animation: tele-orb-drift 11s ease-in-out infinite reverse;
}
.tele-orb.o3 {
  width: 90px;
  height: 90px;
  bottom: 18%;
  right: 12%;
  background: rgba(140, 110, 255, 0.18);
  animation: tele-orb-drift 13s ease-in-out infinite;
}
.tele-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(140, 190, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 190, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}
@keyframes tele-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10px, 12px) scale(1.08); }
}
.telemetry-panel > .tele-head,
.telemetry-panel > .tele-scroll {
  position: relative;
  z-index: 1;
}

.orbit-stage {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(40, 90, 170, 0.22), transparent 62%),
    radial-gradient(ellipse 45% 40% at 18% 78%, rgba(40, 160, 140, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 35% at 86% 22%, rgba(90, 80, 200, 0.12), transparent 58%),
    linear-gradient(165deg, rgba(10, 18, 34, 0.55), rgba(4, 8, 16, 0.2));
}

.orbit-desk {
  position: relative;
  z-index: 4;
  width: min(720px, 100%);
  margin: auto;
  padding: 26px 22px 24px;
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: stretch;
  border-radius: 22px;
  border: 1px solid rgba(140, 200, 255, 0.16);
  background:
    linear-gradient(165deg, rgba(16, 28, 48, 0.72), rgba(6, 12, 24, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 6, 20, 0.35),
    0 0 60px rgba(50, 120, 220, 0.08);
  backdrop-filter: blur(14px);
}

.orbit-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.orbit-stats[hidden] {
  display: none !important;
}

.orbit-stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(140, 200, 255, 0.22);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(120, 190, 255, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(24, 40, 68, 0.9), rgba(8, 14, 26, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 8, 24, 0.22);
}

.orbit-stat strong {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #eaf4ff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(120, 190, 255, 0.25);
}

.orbit-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(180, 205, 235, 0.78);
  line-height: 1.25;
}

.orbit-recent {
  display: grid;
  gap: 8px;
}

.orbit-recent[hidden] {
  display: none !important;
}

.orbit-recent-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(170, 200, 235, 0.7);
}

.orbit-recent-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.orbit-chip {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(140, 200, 255, 0.26);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(100, 180, 255, 0.1), transparent 50%),
    linear-gradient(135deg, rgba(24, 40, 70, 0.92), rgba(8, 14, 26, 0.86));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 10, 30, 0.28);
  font: inherit;
  color: #e7f1ff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.orbit-chip:hover {
  border-color: rgba(150, 220, 255, 0.55);
  transform: translateY(-1px);
}

.orbit-chip.is-active {
  border-color: rgba(120, 230, 200, 0.55);
  background: linear-gradient(135deg, rgba(70, 160, 200, 0.28), rgba(20, 40, 70, 0.85));
}

.orbit-chip.has-unread {
  border-color: rgba(120, 200, 255, 0.45);
}

.orbit-chip-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #eaf6ff;
  border: 1px solid rgba(140, 200, 255, 0.28);
  background: rgba(90, 160, 255, 0.16);
  flex-shrink: 0;
}

.orbit-chip-avatar.tone-0 { background: rgba(90, 160, 255, 0.18); }
.orbit-chip-avatar.tone-1 { background: rgba(80, 210, 180, 0.18); }
.orbit-chip-avatar.tone-2 { background: rgba(180, 140, 255, 0.18); }
.orbit-chip-avatar.tone-3 { background: rgba(255, 170, 120, 0.18); }
.orbit-chip-avatar.tone-4 { background: rgba(120, 200, 255, 0.18); }
.orbit-chip-avatar.tone-5 { background: rgba(255, 140, 180, 0.16); }

.orbit-chip-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.orbit-chip-copy strong {
  font-size: 0.86rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orbit-chip-copy em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(170, 200, 235, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orbit-chip-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(180deg, #dff4ff, #7ec8ef);
}

.orbit-recent-more {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(170, 200, 235, 0.72);
}

.orbit-recent-more[hidden] {
  display: none !important;
}

.orbit-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orbit-bloom {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(520px, 78%);
  height: min(520px, 78%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(90, 170, 255, 0.22), rgba(40, 100, 220, 0.08) 38%, transparent 68%);
  filter: blur(8px);
  animation: pulse 5.5s ease-in-out infinite;
}
.orbit-bloom.b2 {
  width: min(360px, 56%);
  height: min(360px, 56%);
  background:
    radial-gradient(circle, rgba(61, 255, 168, 0.12), transparent 60%);
  animation-delay: -2s;
  animation-duration: 7s;
}

.orbit-bloom.b3 {
  left: 72%;
  top: 68%;
  width: min(280px, 42%);
  height: min(280px, 42%);
  background:
    radial-gradient(circle, rgba(140, 120, 255, 0.16), transparent 62%);
  animation-delay: -3.4s;
  animation-duration: 8s;
  opacity: 0.85;
}

.orbit-mesh {
  position: absolute;
  inset: -8%;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(120, 180, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 75%);
  transform: perspective(600px) rotateX(58deg) scale(1.35);
  transform-origin: 50% 40%;
}

.orbit-aurora {
  position: absolute;
  inset: -10% -20%;
  background:
    linear-gradient(
      115deg,
      transparent 20%,
      rgba(70, 160, 255, 0.08) 38%,
      rgba(80, 220, 180, 0.07) 48%,
      rgba(130, 110, 255, 0.08) 58%,
      transparent 76%
    );
  filter: blur(18px);
  animation: orbit-aurora-drift 14s ease-in-out infinite;
  opacity: 0.9;
  mix-blend-mode: screen;
}

.orbit-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 35%, rgba(2, 6, 14, 0.55) 100%);
}

@keyframes orbit-aurora-drift {
  0%, 100% { transform: translateX(-4%) rotate(-2deg); }
  50% { transform: translateX(5%) rotate(2deg); }
}

.orbit-scan {
  position: absolute;
  inset: -20%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(120, 190, 255, 0.05) 28deg,
    transparent 70deg,
    transparent 360deg
  );
  animation: spin-slow 28s linear infinite;
  opacity: 0.7;
  mix-blend-mode: screen;
}

.orbit-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 28%, rgba(180, 220, 255, 0.55), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(140, 255, 210, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 64% 68%, rgba(200, 230, 255, 0.4), transparent),
    radial-gradient(1px 1px at 30% 74%, rgba(150, 200, 255, 0.35), transparent),
    radial-gradient(1px 1px at 88% 54%, rgba(255, 220, 160, 0.35), transparent),
    radial-gradient(1px 1px at 46% 18%, rgba(180, 220, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 58% 42%, rgba(160, 210, 255, 0.5), transparent),
    radial-gradient(1px 1px at 22% 52%, rgba(120, 255, 210, 0.35), transparent);
  animation: twinkle 3.2s ease-in-out infinite;
}

.orbit-trails {
  position: absolute;
  inset: 6% 4%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
.orbit-ellipse {
  fill: none;
  stroke: rgba(120, 180, 255, 0.14);
  stroke-width: 0.18;
  stroke-dasharray: 1.2 1.6;
}
.orbit-ellipse.e2 {
  stroke: rgba(100, 170, 255, 0.2);
  stroke-dasharray: 0.8 1.4;
  animation: spin-slow 90s linear infinite;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
.orbit-ellipse.e3 {
  stroke: rgba(61, 255, 168, 0.12);
  stroke-dasharray: 0.5 1.8;
}
.orbit-spoke {
  fill: none;
  stroke: url(#none);
  stroke: rgba(110, 180, 255, 0.28);
  stroke-width: 0.22;
  stroke-linecap: round;
  opacity: 0.55;
  animation: spoke-fade 3.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.orbit-tip {
  fill: rgba(150, 220, 255, 0.85);
  filter: drop-shadow(0 0 2px rgba(100, 200, 255, 0.8));
}

.theater-rings {
  position: absolute;
  inset: 8%;
  z-index: 1;
}

.theater-rings .fin-ring.r5 {
  width: 94%;
  height: 94%;
  border-color: rgba(120, 180, 255, 0.08);
  border-style: dotted;
  animation: spin-slow 100s linear infinite reverse;
}

.theater-hub {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(300px, 52%);
  height: min(300px, 52%);
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0.48;
  pointer-events: none;
  filter: drop-shadow(0 0 36px rgba(70, 140, 255, 0.28));
}

.theater-hub .fin-hub-glow {
  background:
    radial-gradient(circle, rgba(120, 190, 255, 0.55), rgba(50, 120, 255, 0.18) 42%, transparent 70%);
  animation: pulse 4.2s ease-in-out infinite;
}

.theater-hub .fin-hub-core {
  box-shadow:
    inset 0 0 40px rgba(80, 150, 255, 0.18),
    0 0 0 1px rgba(140, 200, 255, 0.28),
    0 0 40px rgba(60, 130, 255, 0.25);
}

.theater-hub .fin-paycard {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(100, 180, 255, 0.25);
}

.theater-hub .fin-hub-label {
  letter-spacing: 0.22em;
  text-shadow: 0 0 12px rgba(140, 200, 255, 0.45);
}

.sat-layer,
.fin-node-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.fin-node {
  appearance: none;
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 148px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(140, 200, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(24, 40, 70, 0.92), rgba(8, 14, 26, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(40, 80, 140, 0.2),
    0 8px 22px rgba(0, 10, 30, 0.45),
    0 0 18px rgba(60, 130, 255, 0.18);
  font: inherit;
  color: #e7f1ff;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  animation: node-float 3.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.fin-node.band-1 { max-width: 136px; }
.fin-node.band-2 { max-width: 128px; opacity: 0.95; }

.fin-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 35%, #fff, #6ab6ff 45%, #2a6fff 80%);
  box-shadow: 0 0 10px rgba(100, 180, 255, 0.85);
}

.fin-node-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.fin-node-text strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fin-node-text em {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.58rem;
  color: rgba(170, 200, 235, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
}

.fin-node:hover {
  filter: brightness(1.08);
  border-color: rgba(150, 220, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 28px rgba(80, 160, 255, 0.4);
  z-index: 5;
}

.fin-node.is-active {
  color: #041018;
  background: linear-gradient(135deg, #b8e4ff 0%, #7ad0ff 42%, #4dffc0 100%);
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 28px rgba(80, 230, 200, 0.55),
    0 10px 28px rgba(20, 80, 120, 0.35);
}
.fin-node.is-active .fin-node-dot {
  background: radial-gradient(circle at 35% 35%, #fff, #0a3a2a 70%);
  box-shadow: 0 0 10px rgba(10, 60, 40, 0.45);
}
.fin-node.is-active .fin-node-text em {
  color: rgba(10, 40, 35, 0.65);
}

.sat { display: none; }

.orbit-caption {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 4;
  max-width: none;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}
.orbit-caption .eyebrow {
  color: #8ec8ff;
  letter-spacing: 0.14em;
}
.orbit-caption h2 {
  margin: 4px 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #f4f8ff;
  text-shadow: 0 0 18px rgba(120, 180, 255, 0.25);
}
.orbit-caption .lede {
  margin: 0;
  color: rgba(180, 205, 235, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ?? Feed ?? */
.feed-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  position: relative;
}

.feed-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.feed-toolbar > .btn-back {
  flex-shrink: 0;
}
.feed-toolbar-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 40px;
  min-height: 36px;
  flex-shrink: 0;
  margin-left: auto;
}
.feed-toolbar-right {
  display: contents;
}
.feed-filter-menu {
  position: relative;
  flex-shrink: 0;
}
.feed-filter-menu[hidden] {
  display: none !important;
}
.feed-filter-more {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c8daf0;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font: inherit;
}
.feed-filter-more:hover {
  background: rgba(120, 170, 230, 0.12);
  color: #fff;
}
.feed-filter-more-ico {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}
.feed-filter-more-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ef0c0;
  box-shadow: 0 0 0 2px #0a1018;
}
.feed-filter-more-dot.is-active-filter {
  background: #6eb8ff;
}
.feed-filter-more-dot[hidden] {
  display: none !important;
}
.feed-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 12.5rem;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 220, 0.35);
  background: rgba(8, 14, 26, 0.98);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(90, 150, 220, 0.08) inset;
  display: grid;
  gap: 3px;
  backdrop-filter: blur(12px);
}
.feed-filter-dropdown[hidden] {
  display: none !important;
}
.feed-filter-dropdown .feed-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(210, 225, 245, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.feed-filter-dropdown .feed-filter:hover {
  background: rgba(110, 170, 255, 0.14);
  color: #fff;
}
.feed-filter-dropdown .feed-filter.is-active {
  color: #eaf2ff;
  background: rgba(90, 150, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(120, 180, 255, 0.24);
}
.feed-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}
.feed-filter.is-active .feed-filter-count {
  background: rgba(255, 255, 255, 0.12);
}
.feed-filter-count[hidden] {
  display: none !important;
}
.feed[data-filter="pinned"] .pay-card:not(.is-pinned),
.feed[data-filter="pinned"] .note-card {
  display: none !important;
}
.feed[data-filter="unprocessed"] .pay-card.is-processed,
.feed[data-filter="unprocessed"] .note-card {
  display: none !important;
}

.pay-card-flags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.pay-flag-btn {
  border: 1px solid rgba(120, 160, 210, 0.25);
  background: rgba(12, 18, 30, 0.75);
  color: rgba(200, 215, 235, 0.88);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}
.pay-flag-btn:hover {
  border-color: rgba(140, 200, 255, 0.45);
  color: #fff;
}
.pay-processed-btn.is-on {
  border-color: rgba(61, 255, 168, 0.45);
  color: #041018;
  background: linear-gradient(180deg, #9dffe0, #3dffa8);
  box-shadow: 0 0 12px rgba(61, 255, 168, 0.25);
}
.pay-pin-btn {
  min-width: 28px;
  padding-left: 7px;
  padding-right: 7px;
  font-size: 0.85rem;
}
.pay-pin-btn.is-on {
  border-color: rgba(255, 200, 90, 0.5);
  color: #041018;
  background: linear-gradient(180deg, #ffe29a, #ffb84d);
  box-shadow: 0 0 12px rgba(255, 180, 70, 0.28);
}
.pay-delete-btn {
  min-width: 30px;
  min-height: 30px;
  padding: 5px 7px;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 150, 160, 0.92);
  border-color: rgba(255, 110, 120, 0.32);
  background: rgba(40, 12, 18, 0.55);
}
.pay-delete-btn .pay-delete-ico {
  display: block;
  width: 15px;
  height: 15px;
}
.pay-delete-btn:hover {
  color: #fff;
  border-color: rgba(255, 120, 120, 0.6);
  background: rgba(180, 40, 50, 0.4);
}
.pay-card.is-processed {
  border-color: rgba(61, 255, 168, 0.28);
  background:
    linear-gradient(135deg, rgba(61, 255, 168, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(14, 22, 28, 0.96), rgba(8, 12, 20, 0.92));
}
.pay-card.is-processed .pay-card-amount {
  color: #f0fff8;
}
.pay-card.is-processed::before {
  background: linear-gradient(180deg, #9dffe0, #3dffa8);
}
.pay-card.is-pinned {
  border-color: rgba(255, 190, 90, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 180, 70, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.28);
}
.pay-card.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.feed-toolbar #feed-live { display: none !important; }

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
  margin-top: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c8daf0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-back:hover {
  border-color: transparent;
  background: rgba(120, 170, 230, 0.12);
  color: #fff;
  transform: none;
  box-shadow: none;
}
.btn-back-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
}
.btn-back-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.btn-back-label {
  display: none;
}
.feed-peer {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: none;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.feed-peer.is-comms {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.feed-peer-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(140, 190, 255, 0.28);
}
.feed-peer-avatar .chat-avatar-letters {
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}
.feed-peer-text {
  min-width: 0;
  flex: 0 1 auto;
  padding-right: 0;
}
.feed-peer-text h2,
.feed-peer #feed-title {
  position: relative;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  color: #eaf4ff;
  background: linear-gradient(90deg, #ffffff 10%, #8ecfff 55%, #4aa0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(90, 170, 255, 0.25));
  padding-bottom: 2px;
}
.feed-peer #feed-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  transform: none;
  width: min(42%, 4.5rem);
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #6ec8ff, transparent);
  opacity: 0.85;
}
.feed-filters[hidden] {
  display: none !important;
}

.feed-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}
.feed-day-sep {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  position: relative;
  z-index: 1;
}
.feed-day-sep span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(215, 228, 248, 0.9);
  background: rgba(16, 24, 40, 0.78);
  border: 1px solid rgba(100, 150, 220, 0.24);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}
.feed-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 48px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0.44),
    rgba(6, 10, 18, 0.2) 55%,
    rgba(6, 10, 18, 0)
  );
}

.note-composer {
  position: relative;
  flex-shrink: 0;
  display: grid;
  gap: 6px;
  padding: 10px 12px 4px 12px;
  border-top: 1px solid rgba(120, 160, 210, 0.14);
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.2), rgba(6, 10, 18, 0.55));
  z-index: 2;
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.2;
  color: rgba(160, 190, 230, 0.82);
  pointer-events: none;
  overflow: hidden;
}
.feed-typing.typing-indicator {
  flex-shrink: 0;
  align-self: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 0 2px;
  padding: 2px 12px 4px;
  font-size: 0.76rem;
  color: rgba(150, 180, 220, 0.72);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.feed-typing.typing-indicator.hidden,
.feed-typing.typing-indicator[hidden] {
  display: none !important;
}
.typing-indicator-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.typing-indicator.hidden {
  display: none;
}
.typing-indicator-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.typing-indicator.is-voice .typing-indicator-dots i {
  background: rgba(255, 140, 140, 0.9);
}
.typing-indicator.is-file .typing-indicator-dots i {
  background: rgba(140, 220, 170, 0.9);
}
.typing-indicator.is-typing .typing-indicator-dots i {
  background: rgba(120, 180, 255, 0.85);
}
.typing-indicator-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.typing-indicator-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing-indicator-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}
.note-composer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -52px;
  height: 52px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 18, 0),
    rgba(6, 10, 18, 0.45) 55%,
    rgba(6, 10, 18, 0.82)
  );
  z-index: 1;
}
.note-composer-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(160, 185, 215, 0.72);
  margin-bottom: 5px;
}
.note-tool-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(120, 170, 220, 0.28);
  border-radius: 11px;
  background: rgba(18, 30, 50, 0.7);
  color: #cfe6ff;
  cursor: pointer;
  padding: 0;
}
.note-tool-btn:hover {
  border-color: rgba(120, 200, 255, 0.5);
  color: #fff;
}
.note-tool-btn.is-recording {
  border-color: rgba(255, 110, 110, 0.55);
  color: #ffb0b0;
  background: rgba(80, 24, 28, 0.55);
}
.note-file-input {
  display: none !important;
}
.note-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.note-attach-preview[hidden] {
  display: none !important;
}
.note-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120, 170, 220, 0.28);
  background: rgba(20, 34, 56, 0.85);
  font-size: 0.75rem;
  color: #d7e8ff;
}
.note-attach-chip button {
  border: 0;
  background: transparent;
  color: #9eb6d4;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 2px;
}
.note-rec-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, 0.28);
  background: rgba(50, 16, 22, 0.55);
}
.note-rec-bar[hidden] {
  display: none !important;
}
.note-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5d5d;
  box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.55);
  animation: note-rec-pulse 1.2s ease infinite;
}
@keyframes note-rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255, 93, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0); }
}
.note-rec-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: #ffd0d0;
  min-width: 2.4rem;
}
.note-rec-wave {
  flex: 1;
  min-width: 80px;
  height: 28px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}
.note-rec-cancel,
.note-rec-send {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.note-rec-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #e8d0d0;
}
.note-rec-send {
  background: linear-gradient(180deg, #4fd0a8, #2a8f74);
  color: #eafff6;
}
.note-media {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.note-media img,
.note-media video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 240px;
  border-radius: 10px;
  border: 1px solid rgba(180, 200, 240, 0.2);
  background: #0a1018;
}
.note-media a.note-file-link {
  color: #9fd8ff;
  text-decoration: none;
  font-size: 0.85rem;
  word-break: break-all;
}
.note-media a.note-file-link:hover {
  text-decoration: underline;
}
.note-file-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 260px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 10px 7px 7px;
  border-radius: 14px;
  border: 1px solid rgba(120, 180, 255, 0.22);
  background: rgba(12, 24, 44, 0.72);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.note-row.is-mine .note-file-card {
  background: rgba(36, 92, 168, 0.55);
  border-color: rgba(130, 195, 255, 0.32);
}
.note-file-card:hover:not(.is-pending) {
  background: rgba(48, 108, 188, 0.62);
  border-color: rgba(150, 210, 255, 0.4);
}
.note-file-card.is-pending {
  pointer-events: none;
  cursor: default;
}
.note-file-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.note-file-ext {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #2f7fd4;
  line-height: 1;
}
.note-file-cancel {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  color: #3d8fd8;
}
.note-file-ring {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.note-file-ring-track {
  fill: none;
  stroke: rgba(60, 130, 210, 0.2);
  stroke-width: 2.5;
}
.note-file-ring-progress {
  fill: none;
  stroke: #3d8fd8;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 0.15s ease;
}
.note-file-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.note-file-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #eef6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.note-file-size {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(200, 220, 245, 0.78);
  line-height: 1.2;
}
.note-card.is-sending {
  opacity: 0.92;
}
.note-ticks.is-sending {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: rgba(185, 205, 225, 0.8);
}
.note-ticks.is-sending .note-ticks-clock {
  display: block;
}
.note-ticks-clock {
  display: block;
}
.voice-player {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 220px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 230, 0.28);
  background: rgba(8, 18, 32, 0.55);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.voice-player.is-playing {
  border-color: rgba(120, 210, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(90, 190, 255, 0.08) inset;
}
.voice-player-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(180deg, #4db8ff, #2a7fd0);
  color: #041018;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.voice-player.is-playing .voice-player-btn {
  box-shadow:
    0 0 0 3px rgba(77, 184, 255, 0.18),
    0 0 14px rgba(77, 184, 255, 0.28);
}
.voice-wave {
  position: relative;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.voice-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.voice-wave-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(77, 184, 255, 0.34) 0%,
    rgba(120, 220, 255, 0.16) 72%,
    rgba(120, 220, 255, 0.04) 100%
  );
  border-right: 1px solid rgba(150, 230, 255, 0.55);
  box-shadow:
    inset 0 0 14px rgba(90, 200, 255, 0.16),
    4px 0 16px rgba(77, 184, 255, 0.12);
  pointer-events: none;
  transition: width 0.08s linear;
}
.voice-wave-head {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #b8ecff;
  box-shadow:
    0 0 0 1px rgba(8, 18, 32, 0.55),
    0 0 10px rgba(120, 220, 255, 0.9);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.7);
  transition:
    left 0.08s linear,
    opacity 0.15s ease,
    transform 0.15s ease;
}
.voice-player.is-playing .voice-wave-head,
.voice-player.has-progress .voice-wave-head {
  opacity: 1;
  transform: scale(1);
}
.voice-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: rgba(190, 215, 240, 0.85);
  min-width: 2.2rem;
  text-align: right;
  transition: color 0.18s ease;
}
.voice-player.is-playing .voice-time {
  color: #d8f0ff;
}
.note-card-text:empty {
  display: none;
}
.note-drop-hint {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1.5px dashed rgba(110, 200, 255, 0.55);
  background: rgba(10, 24, 42, 0.88);
  color: #cfe8ff;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
}
.note-drop-hint[hidden] {
  display: none !important;
}
.note-composer.is-dragover .note-drop-hint {
  display: grid;
}
.note-composer-row {
  display: block;
  width: 100%;
  min-width: 0;
}
.note-input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(120, 170, 230, 0.22);
  background:
    linear-gradient(180deg, rgba(18, 28, 46, 0.95), rgba(10, 16, 28, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.note-input-shell #note-attach-btn {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.note-input-shell #note-text {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.feed-stage:not(.is-comms) .note-input-shell {
  grid-template-columns: minmax(0, 1fr) auto;
}
.note-input-shell .note-input-actions {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}
.feed-stage:not(.is-comms) .note-input-shell #note-text {
  grid-column: 1;
}
.feed-stage:not(.is-comms) .note-input-shell .note-input-actions {
  grid-column: 2;
}
.feed-stage:not(.is-comms) #note-attach-btn,
.feed-stage:not(.is-comms) #note-mic-btn {
  display: none !important;
}
.note-input-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.note-input-shell:focus-within {
  border-color: rgba(100, 190, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 3px rgba(70, 150, 255, 0.12);
}
.note-input-shell .note-tool-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(180, 210, 240, 0.82);
}
.note-input-shell .note-tool-btn:hover {
  background: rgba(110, 180, 255, 0.12);
  color: #fff;
}
.note-input-shell .note-send {
  background: linear-gradient(180deg, rgba(78, 168, 255, 0.96), rgba(34, 108, 198, 0.98));
  color: #f4f9ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 10px rgba(40, 120, 220, 0.28);
}
.note-input-shell .note-send:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(98, 188, 255, 1), rgba(48, 128, 218, 1));
  color: #fff;
  filter: none;
}
.note-input-shell .note-send:disabled {
  opacity: 0.45;
  cursor: wait;
  box-shadow: none;
}
.note-input-shell .note-send svg {
  display: block;
  margin-left: 1px;
}
.note-composer textarea {
  width: 100%;
  min-height: 36px;
  max-height: 120px;
  resize: none;
  padding: 8px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #eaf2ff;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: none;
}
.note-composer textarea:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
.note-ticks {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: rgba(150, 170, 190, 0.55);
  vertical-align: middle;
  line-height: 1;
  font-variant-emoji: text;
}
.note-ticks.is-delivered {
  color: rgba(170, 185, 205, 0.62);
  text-shadow: none;
  opacity: 0.85;
}
.note-ticks.is-read {
  color: #5eb8ff;
  opacity: 1;
  text-shadow: 0 0 8px rgba(80, 180, 255, 0.45);
}
.note-card-time {
  display: inline-flex;
  align-items: center;
}
.note-row {
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  margin-top: 10px;
}
.note-row.is-continued {
  margin-top: 4px;
}
.note-row.is-mine {
  justify-content: flex-end;
}
.note-row.is-theirs {
  justify-content: flex-start;
}
.note-stack {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  width: max-content;
  max-width: min(88%, 34rem);
  min-width: 0;
}
.note-row.is-mine .note-stack {
  margin-left: auto;
  justify-items: end;
}
.note-row.is-theirs .note-stack {
  margin-right: auto;
  justify-items: start;
}
.note-avatar-slot {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.note-row.is-mine .note-avatar-slot {
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding-right: 4px;
}
.note-row.is-theirs .note-avatar-slot {
  flex-direction: row;
  justify-content: flex-start;
  padding-left: 4px;
}
.note-row:not(.has-avatar) .note-avatar-slot {
  display: none;
}
.note-role-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(215, 235, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(160, 210, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.note-role-badge.is-support {
  color: #c8e4ff;
  background: rgba(90, 150, 255, 0.14);
  border-color: rgba(120, 180, 255, 0.24);
}
.note-role-badge.is-operator {
  color: #d4e2ff;
  background: rgba(100, 140, 255, 0.14);
  border-color: rgba(140, 170, 255, 0.24);
}
.note-role-badge.is-admin {
  color: #ffe29a;
  background: rgba(255, 180, 70, 0.12);
  border-color: rgba(255, 190, 90, 0.3);
}
.note-bubble-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.note-bubble-wrap .note-card {
  position: relative;
  z-index: 1;
}
.note-swipe-reply {
  position: absolute;
  top: 50%;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  pointer-events: none;
  opacity: var(--swipe-reply-p, 0);
  transform: translateY(-50%) scale(calc(0.42 + 0.58 * var(--swipe-reply-p, 0)));
}
.note-row.is-mine .note-swipe-reply,
.note-row.is-theirs .note-swipe-reply {
  right: 6px;
  left: auto;
}
.note-swipe-reply-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18, 24, 36, 0.82);
  color: rgba(235, 245, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}
.note-row.is-theirs .note-swipe-reply-ico {
  transform: none;
}
.note-swipe-reply-ico {
  display: block;
}
.note-bubble-wrap,
.note-card-body,
.note-media,
.voice-player,
.note-file-card {
  touch-action: pan-y;
}
.note-row.is-reply-ready .note-swipe-reply-btn {
  background: rgba(32, 42, 60, 0.92);
  color: #fff;
}
.note-card.is-swiping {
  position: relative;
  z-index: 1;
  user-select: none;
  cursor: grabbing;
}
.note-row.is-continued .note-card-top,
.note-row.is-continued .note-name-slot {
  display: none;
}
.note-name-slot {
  display: flex;
  width: 100%;
  margin: 0 0 4px;
  pointer-events: none;
}
.note-row.is-mine .note-name-slot {
  justify-content: flex-end;
}
.note-row.is-theirs .note-name-slot {
  justify-content: flex-start;
}
.note-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #d7ebff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}
.note-row.is-mine .note-name {
  color: #e8f6ff;
}
.note-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 2px 0 0;
  min-height: 1rem;
  white-space: nowrap;
}
.note-card-footer .note-card-time-mini {
  display: inline-block;
  font-size: 0.68rem;
  opacity: 0.72;
  color: rgba(170, 185, 210, 0.78);
  line-height: 1;
}
.note-card-footer .note-ticks {
  display: inline;
  margin-left: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(150, 170, 190, 0.62);
  opacity: 0.85;
}
.note-card-footer .note-ticks.is-read {
  color: #5eb8ff;
  opacity: 0.95;
  text-shadow: none;
}
.note-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(70, 130, 200, 0.55), rgba(20, 40, 70, 0.95));
  border: 1px solid rgba(130, 190, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.note-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.note-media-image img {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.note-media-image img.is-cache-ready {
  opacity: 1;
}
.note-avatar.is-fallback span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d7ebff;
}
.note-avatar.is-spacer {
  visibility: hidden;
  pointer-events: none;
}
.note-row:not(.has-avatar) .note-avatar:not(.is-spacer) {
  visibility: hidden;
}
.note-card.is-swiping {
  transition: none;
}
.note-card:not(.is-swiping) {
  transition: transform 0.22s ease;
}
.note-reply-quote {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0 0 4px;
  padding: 6px 8px 6px 10px;
  border: 0;
  border-left: 3px solid rgba(90, 180, 255, 0.75);
  border-radius: 0 10px 10px 0;
  background: rgba(8, 20, 36, 0.45);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.note-reply-quote-author {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8fd0ff;
}
.note-reply-quote-text {
  font-size: 0.78rem;
  color: rgba(200, 220, 240, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(90, 170, 255, 0.35);
  background:
    linear-gradient(90deg, rgba(40, 110, 200, 0.28), rgba(20, 40, 70, 0.55));
}
.note-reply-bar[hidden] {
  display: none !important;
}
.note-reply-bar-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.note-reply-bar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7ec8ff;
}
.note-reply-bar-body strong {
  font-size: 0.82rem;
  color: #e8f4ff;
}
.note-reply-bar-body #note-reply-text {
  font-size: 0.78rem;
  color: rgba(190, 215, 240, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.note-reply-clear {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfe4ff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.note-reply-clear:hover {
  background: rgba(255, 120, 120, 0.2);
  color: #ffd0d0;
}
.note-card.is-flash {
  animation: note-flash 0.9s ease;
}
.note-card.is-pressing {
  transition: transform 0.12s ease, filter 0.12s ease;
  filter: brightness(1.06);
}
.note-card.is-copy-flash {
  animation: note-copy-flash 0.72s ease;
}
@keyframes note-copy-flash {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.28);
  }
  35% {
    box-shadow: inset 0 0 0 1px rgba(110, 230, 180, 0.75), 0 0 0 3px rgba(60, 200, 140, 0.28);
  }
}
@media (hover: none) and (pointer: coarse) {
  .note-card {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
}
@keyframes note-flash {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 20px rgba(0, 0, 0, 0.28);
  }
  40% {
    box-shadow: inset 0 0 0 1px rgba(110, 200, 255, 0.7), 0 0 0 3px rgba(80, 170, 255, 0.25);
  }
}
.note-card-time {
  display: inline-flex;
  align-items: center;
}
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: block;
  box-sizing: border-box;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    max(10px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(10px, env(safe-area-inset-left, 0px));
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.media-lightbox[hidden] {
  display: none !important;
}
.media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(30, 50, 80, 0.35), transparent 55%),
    rgba(2, 6, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.media-lightbox-stage {
  position: absolute;
  z-index: 1;
  inset:
    max(10px, env(safe-area-inset-top, 0px))
    max(10px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(10px, env(safe-area-inset-left, 0px));
  display: block;
  min-width: 0;
  min-height: 0;
}
.media-lightbox-x {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(160, 200, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 16, 28, 0.72);
  color: rgba(230, 240, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.media-lightbox-x:hover {
  background: rgba(24, 36, 58, 0.88);
  border-color: rgba(180, 210, 255, 0.35);
}
.media-lightbox-frame {
  position: absolute;
  z-index: 1;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 64px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.media-lightbox-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.55);
  box-shadow:
    0 0 0 1px rgba(140, 180, 240, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}
.media-lightbox.is-open .media-lightbox-frame img {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.media-lightbox-bar {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  pointer-events: none;
}
.media-lightbox-save {
  appearance: none;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(140, 200, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(56, 110, 200, 0.45), rgba(28, 52, 100, 0.72));
  color: #eaf3ff;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 8, 24, 0.35);
}
.media-lightbox-save svg {
  flex-shrink: 0;
  opacity: 0.95;
}
.media-lightbox-save:active {
  transform: translateY(1px);
}
.media-lightbox-save:disabled {
  opacity: 0.6;
  cursor: wait;
}
.media-lightbox-save[hidden] {
  display: none !important;
}
html.lightbox-open,
html.lightbox-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
.note-media-image {
  cursor: zoom-in;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.note-media-image img {
  pointer-events: none;
}
.note-error {
  margin: 0;
  color: #ff8f8f;
  font-size: 0.8rem;
}
.note-error[hidden] {
  display: none !important;
}

.note-card {
  position: relative;
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 9px 13px 7px;
  border-radius: 18px;
  border: 1px solid rgba(130, 170, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(70, 120, 220, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(28, 36, 58, 0.98), rgba(16, 22, 38, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.28);
  border-bottom-left-radius: 6px;
  box-sizing: border-box;
  text-align: left;
}
.feed.is-chron .note-stack {
  max-width: min(88%, 34rem);
}
.note-card.is-theirs {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 18px;
}
.note-card.is-mine {
  border-color: rgba(90, 190, 255, 0.42);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 6px;
  background:
    linear-gradient(225deg, rgba(60, 160, 255, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(18, 48, 78, 0.98), rgba(10, 28, 48, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(160, 220, 255, 0.12),
    0 8px 22px rgba(0, 40, 80, 0.3);
}
.note-card.is-mine .note-card-author {
  color: #d7f0ff;
}
.note-card.is-mine .note-card-text {
  color: rgba(235, 245, 255, 0.95);
}
.note-card-top {
  display: block;
  margin: 0 0 4px;
  padding-top: 1px;
  white-space: nowrap;
  line-height: 1.25;
}
.note-card-top.is-mine-top {
  text-align: right;
}
.note-card-author {
  display: inline-block;
  vertical-align: baseline;
  font-weight: 700;
  color: #eaf2ff;
  font-size: 0.82rem;
  margin-right: 6px;
}
.note-card-badge {
  display: inline-block;
  vertical-align: baseline;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #c8dcff;
  background: rgba(90, 140, 255, 0.18);
  border: 1px solid rgba(130, 170, 255, 0.25);
}
.note-card-badge.is-support {
  color: #c8e4ff;
  background: rgba(90, 150, 255, 0.18);
  border-color: rgba(120, 180, 255, 0.28);
}
.note-card-badge.is-operator {
  color: #d4e2ff;
  background: rgba(100, 140, 255, 0.18);
  border-color: rgba(140, 170, 255, 0.28);
}
.note-card-badge.is-admin {
  color: #ffe29a;
  background: rgba(255, 180, 70, 0.16);
  border-color: rgba(255, 190, 90, 0.35);
}
.note-card-body {
  display: block;
  margin: 0 0 2px;
  max-width: 100%;
}
.note-card-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  color: rgba(230, 235, 250, 0.92);
  font-size: 0.92rem;
  line-height: 1.4;
}
.note-card-side {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.note-card-side.is-mine {
  color: #b8ecff;
  background: rgba(70, 160, 255, 0.22);
  border: 1px solid rgba(120, 200, 255, 0.4);
}
.note-card-side.is-theirs {
  color: #c8dcff;
  background: rgba(90, 140, 255, 0.16);
  border: 1px solid rgba(130, 170, 255, 0.28);
}
.note-card.is-new {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(110, 180, 255, 0.35),
    0 0 22px rgba(70, 140, 255, 0.16);
  transition: box-shadow 1.5s ease;
}
.note-card.is-mine.is-new {
  box-shadow:
    inset 0 1px 0 rgba(160, 220, 255, 0.12),
    0 0 0 1px rgba(90, 190, 255, 0.4),
    0 0 22px rgba(60, 150, 255, 0.2);
}
.note-card.is-new:not(.is-reading) {
  animation: slip 0.35s ease both;
}
.note-card.is-new.is-reading {
  animation: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 20px rgba(0, 0, 0, 0.22);
}
.note-card.is-mine.is-new.is-reading {
  box-shadow:
    inset 0 1px 0 rgba(160, 220, 255, 0.1),
    0 8px 22px rgba(0, 40, 80, 0.26);
}
.note-card-time {
  display: inline;
  font-variant-numeric: tabular-nums;
}
.feed > .note-row {
  width: 100%;
  max-width: 100%;
}
.note-card.is-enter {
  animation: slip 0.35s ease both;
}

.feed {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: grid;
  gap: 4px;
  padding: 2px 12px 10px 12px;
  align-content: start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.feed-more {
  margin: 4px 0 8px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed rgba(110, 180, 255, 0.28);
  background: rgba(110, 180, 255, 0.06);
  color: rgba(190, 210, 235, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.feed-more[hidden] {
  display: none !important;
}

.feed-more.is-loading {
  border-style: solid;
  color: rgba(210, 230, 255, 0.92);
}
.feed.is-loading .feed-skeleton {
  display: grid;
  gap: 10px;
  padding: 4px 0 12px;
}
.feed-skeleton {
  display: none;
}
.feed-skel-row {
  display: flex;
}
.feed-skel-row.is-mine {
  justify-content: flex-end;
}
.feed-skel-row.is-theirs {
  justify-content: flex-start;
}
.feed-skel-bubble {
  display: block;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(40, 60, 90, 0.35) 0%,
    rgba(70, 120, 180, 0.22) 50%,
    rgba(40, 60, 90, 0.35) 100%
  );
  background-size: 200% 100%;
  animation: feed-skel-shimmer 1.2s ease-in-out infinite;
}
.feed-skel-bubble.s { width: 38%; max-width: 9rem; }
.feed-skel-bubble.m { width: 52%; max-width: 12rem; }
.feed-skel-bubble.l { width: 64%; max-width: 15rem; }
.feed-skel-row.is-mine .feed-skel-bubble {
  border-bottom-right-radius: 5px;
}
.feed-skel-row.is-theirs .feed-skel-bubble {
  border-bottom-left-radius: 5px;
}
@keyframes feed-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.feed-more.is-end {
  display: none !important;
}

.feed-new {
  position: absolute;
  top: 10px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(110, 200, 255, 0.4);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(70, 140, 255, 0.35), rgba(20, 40, 80, 0.92));
  color: #eaf4ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 20px rgba(60, 140, 255, 0.25);
  backdrop-filter: blur(10px);
  animation: rise-feed-new 0.25s ease both;
}
.feed-new.hidden,
.feed-new[hidden] {
  display: none !important;
}
.feed-new:hover {
  border-color: rgba(140, 220, 255, 0.65);
  filter: brightness(1.06);
  transform: translateX(-50%);
}
.feed.is-chron ~ .feed-new,
.feed-wrap:has(.feed.is-chron) .feed-new {
  top: auto;
  bottom: 14px;
}
@keyframes rise-feed-new {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.feed-new-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(61, 255, 168, 0.8);
  animation: sat-pulse 1.4s ease-in-out infinite;
}

.feed-jump {
  flex-shrink: 0;
  align-self: flex-end;
  position: relative;
  z-index: 30;
  width: 44px;
  height: 44px;
  margin: -52px 14px 4px 0;
  padding: 0;
  border: 1px solid rgba(110, 200, 255, 0.35);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(70, 140, 255, 0.42), rgba(20, 40, 80, 0.94));
  color: #eaf4ff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(60, 140, 255, 0.2);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: rise-feed-jump 0.22s ease both;
}
.feed-jump.hidden,
.feed-jump[hidden] {
  display: none !important;
  margin: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.feed-jump:hover {
  border-color: rgba(140, 220, 255, 0.6);
  filter: brightness(1.08);
}
.feed-jump-ico {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}
.feed-jump.has-unread {
  border-color: rgba(61, 255, 168, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(61, 255, 168, 0.22);
}
.feed-jump-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #3dffa8;
  color: #04140e;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(61, 255, 168, 0.55);
}
.feed-latest-sentinel {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  opacity: 0;
}
@keyframes rise-feed-jump {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pay-card.is-new {
  border-color: rgba(61, 255, 168, 0.45);
  background:
    linear-gradient(135deg, rgba(61, 255, 168, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(18, 36, 52, 0.98), rgba(10, 16, 28, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(61, 255, 168, 0.32),
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(61, 255, 168, 0.16);
  transition:
    border-color 1.5s ease,
    background 1.5s ease,
    box-shadow 1.5s ease;
}
.pay-card.is-new:not(.is-reading) {
  animation: slip 0.35s ease both;
}
.pay-card.is-new::before {
  width: 3px;
  background: linear-gradient(180deg, #9dfff0, #3dffa8);
  box-shadow: 0 0 12px rgba(61, 255, 168, 0.65);
  transition: background 1.5s ease, box-shadow 1.5s ease;
}
.pay-card.is-new .pay-card-amount {
  color: #f3fff9;
  transition: color 1.5s ease;
}
.pay-card.is-new .pay-card-meta {
  color: rgba(200, 240, 220, 0.9);
  transition: color 1.5s ease;
}
/* Fade highlight in place ? end state matches base .pay-card exactly */
.pay-card.is-new.is-reading {
  animation: none !important;
  border-color: rgba(140, 180, 230, 0.18);
  background:
    linear-gradient(135deg, rgba(90, 150, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(14, 20, 32, 0.95), rgba(8, 12, 20, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
.pay-card.is-new.is-reading::before {
  width: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--ok));
  box-shadow: none;
}
.pay-card.is-new.is-reading .pay-card-amount {
  color: #f2fff8;
}
.pay-card.is-new.is-reading .pay-card-meta {
  color: #d5e3f5;
}
.pay-card.is-new.is-reading.is-processed {
  border-color: rgba(61, 255, 168, 0.28);
  background:
    linear-gradient(135deg, rgba(61, 255, 168, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(14, 22, 28, 0.96), rgba(8, 12, 20, 0.92));
}
.pay-card.is-new.is-reading.is-processed::before {
  background: linear-gradient(180deg, #9dffe0, #3dffa8);
}
.pay-card.is-new.is-reading.is-processed .pay-card-amount {
  color: #f0fff8;
}
@keyframes new-glow {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(61, 255, 168, 0.55),
      0 0 34px rgba(61, 255, 168, 0.35);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 10px 28px rgba(0, 0, 0, 0.28);
  }
}

.feed-empty {
  position: absolute;
  inset: 72px 14px 14px;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  pointer-events: none;
  animation: rise 0.45s ease both;
}
.feed-empty.hidden {
  display: none !important;
}

.feed-loading {
  position: absolute;
  inset: 8px 14px 14px 8px;
  z-index: 3;
  display: grid;
  gap: 14px;
  align-content: start;
  pointer-events: none;
}
.feed-loading.hidden {
  display: none !important;
}
.feed-skel {
  display: grid;
  gap: 6px;
  max-width: 72%;
  animation: feed-skel-pulse 1.2s ease-in-out infinite;
}
.feed-skel--left {
  justify-self: start;
}
.feed-skel--right {
  justify-self: end;
}
.feed-skel span {
  display: block;
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(90, 140, 200, 0.12) 0%,
    rgba(120, 180, 255, 0.22) 50%,
    rgba(90, 140, 200, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: feed-skel-shimmer 1.4s ease-in-out infinite;
}
.feed-skel span:nth-child(1) { width: 88%; }
.feed-skel span:nth-child(2) { width: 64%; opacity: 0.85; }
.feed-skel span:nth-child(3) { width: 42%; opacity: 0.7; }
.feed-skel--right span:nth-child(1) { width: 76%; }
.feed-skel--right span:nth-child(2) { width: 52%; }
@keyframes feed-skel-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes feed-skel-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.feed-empty-glow {
  position: absolute;
  width: min(420px, 70%);
  height: min(420px, 70%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(90, 160, 255, 0.18), rgba(40, 100, 200, 0.06) 42%, transparent 68%);
  filter: blur(6px);
  animation: pulse 5s ease-in-out infinite;
  z-index: 0;
}

.feed-empty-card {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(140, 200, 255, 0.35);
  background:
    linear-gradient(145deg, rgba(40, 70, 120, 0.55), rgba(12, 20, 36, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(70, 140, 255, 0.22);
  animation: card-float 4.5s ease-in-out infinite;
}
.feed-empty-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 18px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, #f0d28a, #c9a24a);
  box-shadow: 0 0 10px rgba(240, 200, 120, 0.35);
}
.feed-empty-line {
  position: absolute;
  left: 12px;
  right: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(180, 210, 255, 0.28);
}
.feed-empty-line.l1 { top: 34px; width: 46%; }
.feed-empty-line.l2 { top: 43px; width: 34%; opacity: 0.65; }
.feed-empty-wave {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 22px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(110, 200, 255, 0.15), rgba(61, 255, 168, 0.45));
}

.feed-empty-title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f7ff;
  letter-spacing: -0.01em;
}
.feed-empty-text {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  gap: 0.15em;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  color: rgba(170, 190, 215, 0.78);
  font-size: 0.9rem;
  line-height: 1.4;
}
.feed-empty-text span {
  display: block;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .feed-empty-text {
    font-size: 0.82rem;
  }
}
.feed-empty-pulse {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 168, 0.22);
  background: rgba(61, 255, 168, 0.08);
  color: #b7f0d5;
  font-size: 0.75rem;
  font-family: var(--mono);
  letter-spacing: 0.03em;
}
.feed-empty-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(61, 255, 168, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}

.receipt,
.pay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 230, 0.18);
  background:
    linear-gradient(135deg, rgba(90, 150, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(14, 20, 32, 0.95), rgba(8, 12, 20, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
.pay-card.is-enter {
  animation: slip 0.35s ease both;
}
.pay-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--cyan), var(--ok));
}
.pay-card.tone-bad::before {
  background: linear-gradient(180deg, #ff8a3d, var(--danger));
}
.pay-card.tone-wait::before {
  background: linear-gradient(180deg, #ffd166, #ff8a3d);
}
.pay-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.pay-card-primary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pay-card-amount {
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #f2fff8;
  text-shadow: 0 0 22px rgba(61, 255, 168, 0.28);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-card.is-cabinet .pay-card-amount {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-shadow: none;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pay-card.is-cabinet {
  background:
    linear-gradient(135deg, rgba(24, 42, 70, 0.92), rgba(10, 16, 28, 0.88));
}
.pay-card.is-cabinet .pay-card-status {
  text-transform: lowercase;
}
.pay-card-meta {
  min-width: 0;
  color: #d5e3f5;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pay-card-flags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  max-width: 58%;
}
.pay-card-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(140, 170, 210, 0.12);
}
.pay-card-terminal {
  min-width: 0;
  flex: 0 1 auto;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font);
  font-size: calc(0.78rem + 3px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #a9bdd6;
  text-align: right;
}
.pay-card-time {
  margin-left: 0;
  flex-shrink: 0;
  font-family: var(--font);
  font-size: calc(0.78rem + 3px);
  letter-spacing: 0.01em;
  color: #a9bdd6;
  white-space: nowrap;
}
.pay-card-bottom:not(:has(.pay-card-terminal)) .pay-card-time {
  margin-left: auto;
}
.pay-card-processed-by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 70%;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  color: #041018;
  background: linear-gradient(180deg, #c8ffe8, #5ef0b0);
  border: 1px solid rgba(61, 255, 168, 0.45);
  box-shadow: 0 0 10px rgba(61, 255, 168, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.pay-card-processed-by::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #041018;
}
.pay-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b7f0d5;
  background: rgba(61, 255, 168, 0.1);
  border: 1px solid rgba(61, 255, 168, 0.28);
  white-space: nowrap;
}
.pay-card-doubt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #3b2a08;
  background: linear-gradient(90deg, #ffd56a, #f0b429 55%, #e8a317);
  border: 1px solid rgba(240, 180, 41, 0.55);
  box-shadow: 0 0 14px rgba(240, 180, 41, 0.35);
  white-space: nowrap;
}
.pay-card.has-bot-doubt {
  border-color: rgba(240, 180, 41, 0.42);
}
.pay-card.has-bot-doubt::before {
  background: linear-gradient(180deg, #ffd56a, #e8a317 55%, transparent);
  opacity: 0.95;
}
.pay-card-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(61, 255, 168, 0.7);
}
.pay-card.tone-bad .pay-card-status {
  color: #ffc2c8;
  background: rgba(255, 93, 108, 0.12);
  border-color: rgba(255, 93, 108, 0.3);
}
.pay-card.tone-bad .pay-card-status::before {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 93, 108, 0.55);
}
.pay-card.tone-wait .pay-card-status {
  color: #ffe0b8;
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.3);
}
.pay-card.tone-wait .pay-card-status::before {
  background: var(--warn);
}

.mission.is-feed .telemetry-panel {
  display: grid;
}
.mission.is-feed .mission-grid {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(220px, 260px);
}

@media (max-width: 760px) {
  .pay-card {
    gap: 8px;
    padding: 13px 14px 12px 16px;
  }
  .pay-card-top {
    flex-direction: column;
    align-items: stretch;
  }
  .pay-card-flags {
    max-width: none;
    justify-content: flex-start;
  }
  .pay-card-amount {
    font-size: 1.28rem;
  }
}

/* ?? Telemetry detail ?? */
.tele-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2px;
  gap: 0;
  padding-top: 20px;
  padding-bottom: 16px;
}
.tele-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  flex: 0 0 auto;
}
.tele-identity-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  margin-bottom: 7px;
}
.tele-identity-text .eyebrow {
  margin: 0;
  letter-spacing: 0.1em;
}
.tele-head h2 {
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tele-head #tele-live {
  margin-top: 2px;
}
.tele-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.35);
}
.tele-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, 0.28);
  box-shadow: 0 0 18px rgba(80, 160, 255, 0.18);
  pointer-events: none;
  animation: tele-ring 2.8s ease-in-out infinite;
}
.tele-avatar.is-idle .tele-avatar-ring {
  opacity: 0.35;
  animation: none;
}
.tele-avatar.tone-0 { background: linear-gradient(145deg, #3d7cff, #1a3a7a); }
.tele-avatar.tone-1 { background: linear-gradient(145deg, #2fd4a1, #14604a); }
.tele-avatar.tone-2 { background: linear-gradient(145deg, #8b7cff, #3a2f8a); }
.tele-avatar.tone-3 { background: linear-gradient(145deg, #ff9a4d, #8a3d12); }
.tele-avatar.tone-4 { background: linear-gradient(145deg, #5ec8ff, #1a5578); }
.tele-avatar.tone-5 { background: linear-gradient(145deg, #ff6b9d, #7a2048); }
.tele-avatar-letters {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.tele-avatar-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0b1018;
  z-index: 2;
}
.tele-avatar-dot.is-live {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(61, 255, 168, 0.7);
  animation: sat-pulse 1.6s ease-in-out infinite;
}
.tele-avatar-dot.is-sync {
  background: #6ab6ff;
  box-shadow: 0 0 10px rgba(106, 182, 255, 0.7);
}
.tele-avatar-dot.is-down,
.tele-avatar-dot.is-idle {
  background: #7a8799;
  box-shadow: none;
  animation: none;
}
@keyframes tele-ring {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}
.tele-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
}

.tele-block {
  display: grid;
  gap: 6px;
  padding: 10px 14px 12px;
}

.tele-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(140, 170, 210, 0.1);
  background:
    linear-gradient(90deg, rgba(61, 124, 255, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.18);
  font-size: 0.84rem;
}
.tele-row span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.tele-row strong {
  font-family: var(--mono);
  font-weight: 500;
  color: #fff;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 58%;
}

.signal-card {
  margin: 0 14px 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(140, 170, 210, 0.12);
  background:
    linear-gradient(180deg, rgba(110, 200, 255, 0.06), transparent 50%),
    rgba(0, 0, 0, 0.2);
}
.signal-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.signal-head #signal-pct { color: var(--ok); }

.signal-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  height: 42px;
  align-items: end;
}
.signal-bars i {
  display: block;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: 0.75;
  animation: bars 1.6s ease-in-out infinite;
  height: 40%;
}
.signal-bars i:nth-child(odd) { animation-delay: 0.1s; height: 55%; }
.signal-bars i:nth-child(3n) { animation-delay: 0.25s; height: 80%; }
.signal-bars i:nth-child(4n) { animation-delay: 0.4s; height: 35%; }
.signal-bars i:nth-child(5n) { animation-delay: 0.15s; height: 95%; }

.toast-host {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}
.mission.is-panel .toast-host {
  top: auto;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}
.mission.is-panel .toast {
  transform-origin: bottom center;
  animation-name: toast-in-panel;
}
.mission.is-panel .toast.is-leaving {
  transform: translateY(12px) scale(0.98);
}
.toast {
  pointer-events: auto;
  width: 100%;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 61, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 138, 61, 0.14), transparent 55%),
    rgba(12, 16, 26, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  transform-origin: top right;
  animation: toast-in 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  touch-action: pan-y;
  cursor: grab;
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.28s ease,
    margin 0.28s ease,
    padding 0.28s ease;
}
.toast.is-swiping {
  cursor: grabbing;
  touch-action: none;
  transition: none;
  animation: none;
  user-select: none;
}
.toast.is-ok {
  border-color: rgba(61, 255, 168, 0.4);
  background:
    linear-gradient(180deg, rgba(61, 255, 168, 0.12), transparent 55%),
    rgba(8, 18, 16, 0.94);
}
.toast.is-ok .eyebrow {
  color: #7dffc4;
}
.toast.is-leaving {
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
  animation: none;
}
.toast.is-leaving-right {
  opacity: 0;
  transform: translateX(120px) scale(0.98);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
  animation: none;
}
.mission.is-panel .toast.is-leaving-right {
  transform: translateX(120px) scale(0.98);
}
.toast-text {
  margin: 6px 0 0;
  color: #ffd2b0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.toast.is-ok .toast-text {
  color: #c8ffe8;
}
.toast-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}
.toast-actions .btn-ghost,
.toast-actions .btn-warn {
  padding: 7px 12px;
  font-size: 0.82rem;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.confirm-modal.hidden {
  display: none;
}
.confirm-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 420px at 50% 42%, rgba(40, 100, 200, 0.18), transparent 62%),
    rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.confirm-panel {
  position: relative;
  width: min(400px, 100%);
  padding: 20px 20px 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(110, 180, 255, 0.22);
  background:
    linear-gradient(125deg, rgba(50, 120, 220, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(16, 28, 48, 0.98), rgba(8, 12, 22, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(170, 210, 255, 0.1),
    0 0 0 1px rgba(40, 90, 160, 0.12),
    0 28px 70px rgba(0, 10, 30, 0.62);
  animation: toast-in 0.22s ease-out;
  overflow: hidden;
}
.confirm-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #7ec8ff, #2a6dff 55%, transparent);
  opacity: 0.85;
  pointer-events: none;
}
.confirm-panel.is-danger {
  border-color: rgba(255, 120, 90, 0.28);
  background:
    linear-gradient(125deg, rgba(220, 80, 60, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(28, 16, 18, 0.98), rgba(10, 8, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 180, 160, 0.08),
    0 0 0 1px rgba(160, 50, 40, 0.1),
    0 28px 70px rgba(0, 10, 30, 0.62);
}
.confirm-panel.is-danger::before {
  background: linear-gradient(180deg, #ff9a7a, #e04830 55%, transparent);
}
.confirm-eyebrow {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.confirm-panel.is-danger .confirm-eyebrow {
  color: #ff9a7a;
}
.confirm-text {
  margin: 0 0 18px;
  color: #f0f6ff;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.confirm-actions .confirm-btn {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 0.88rem;
}
.confirm-actions .btn-ghost {
  border-color: rgba(140, 180, 230, 0.22);
  background: rgba(255, 255, 255, 0.03);
}
.confirm-actions .btn-ghost:hover {
  border-color: rgba(160, 200, 255, 0.36);
  background: rgba(110, 170, 255, 0.08);
}

/* ?? Apps catalog (settings page + tiles) ?? */
.apps-stage {
  position: relative;
  isolation: isolate;
}
.apps-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.apps-stage-panel {
  position: relative;
  z-index: 1;
}
.apps-stage-glow {
  position: absolute;
  width: min(44vw, 340px);
  height: min(58vh, 460px);
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.42;
}
.apps-stage-glow--l {
  left: max(-12%, calc(50% - 380px));
  top: 14%;
  background: radial-gradient(circle, rgba(70, 140, 255, 0.5), transparent 68%);
}
.apps-stage-glow--r {
  right: max(-12%, calc(50% - 380px));
  top: 38%;
  background: radial-gradient(circle, rgba(61, 255, 168, 0.22), transparent 70%);
}
.apps-stage-arc {
  position: absolute;
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  border-radius: 50%;
  border: 1px solid rgba(120, 180, 255, 0.12);
  opacity: 0.55;
}
.apps-stage-arc--l {
  left: max(2%, calc(50% - 420px));
  top: 22%;
  transform: rotate(-18deg);
}
.apps-stage-arc--r {
  right: max(2%, calc(50% - 420px));
  bottom: 16%;
  transform: rotate(14deg);
  border-color: rgba(90, 220, 180, 0.14);
}
.apps-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 220, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    rgba(0, 0, 0, 0.35) 88%,
    transparent 100%
  );
}
.settings-card .apps-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  align-content: start;
}
.settings-card .apps-grid-unit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
.settings-card .apps-empty {
  grid-column: 1 / -1;
  margin: 0;
}
.settings-card .app-tile {
  position: relative;
  display: block;
  width: 100%;
  min-height: 148px;
  padding: 12px 14px 14px;
  border-radius: 22px;
  border: 1px solid rgba(120, 170, 220, 0.22);
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(50, 120, 220, 0.14), transparent 52%),
    rgba(10, 16, 28, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(140, 200, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.settings-card .app-tile:hover {
  border-color: rgba(110, 190, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(140, 200, 255, 0.12),
    0 10px 28px rgba(20, 60, 120, 0.28);
  filter: none;
}
.settings-card .app-tile:active {
  transform: scale(0.985);
}
.settings-card .app-tile[data-app="blade1qr"].is-featured {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(90, 209, 196, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(31, 122, 140, 0.22), transparent 48%),
    rgba(8, 14, 26, 0.96);
  border-color: rgba(90, 209, 196, 0.32);
}
.settings-card .app-tile[data-app="premiumfin"] {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(52, 211, 153, 0.22), transparent 52%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.14), transparent 48%),
    rgba(8, 14, 26, 0.96);
  border-color: rgba(52, 211, 153, 0.28);
}
.settings-card .apps-grid-unit .app-tile.is-featured {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 168px;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(90, 150, 255, 0.32), transparent 52%),
    linear-gradient(135deg, rgba(50, 120, 220, 0.2), transparent 48%),
    rgba(8, 14, 26, 0.96);
  border-color: rgba(110, 190, 255, 0.28);
}
.settings-card .apps-grid-unit .app-tile.is-featured[data-app="blade1qr"] {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(90, 209, 196, 0.28), transparent 52%),
    linear-gradient(135deg, rgba(31, 122, 140, 0.22), transparent 48%),
    rgba(8, 14, 26, 0.96);
  border-color: rgba(90, 209, 196, 0.32);
}
.settings-card .apps-grid-unit .app-tile.is-featured[data-app="premiumfin"] {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(52, 211, 153, 0.26), transparent 52%),
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), transparent 48%),
    rgba(8, 14, 26, 0.96);
  border-color: rgba(52, 211, 153, 0.3);
}
.settings-card .apps-grid-unit .app-tile.is-catalog-dqr {
  grid-column: 1;
  grid-row: 2;
}
.settings-card .apps-grid-unit .app-tile.is-catalog-below {
  grid-column: 1;
  grid-row: 3;
}
.settings-card .apps-grid-unit .app-tile.is-catalog-tall {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-height: calc(148px * 2 + 10px);
  align-self: stretch;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 110, 150, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(120, 60, 140, 0.18), transparent 42%),
    rgba(10, 16, 28, 0.92);
  border-color: rgba(200, 120, 180, 0.24);
}
.settings-card .apps-grid-unit .app-tile.is-catalog-tall .app-tile-copy {
  max-width: calc(100% - 20px);
}
.settings-card .apps-grid-unit .app-tile.is-catalog-tall .app-tile-open {
  top: auto;
  bottom: 12px;
  right: 12px;
}
.settings-card .app-tile:not(.is-featured) {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(61, 255, 168, 0.16), transparent 52%),
    linear-gradient(135deg, rgba(50, 120, 220, 0.12), transparent 52%),
    rgba(10, 16, 28, 0.92);
}
.settings-card .app-tile-main {
  display: none;
}
.settings-card button.app-tile {
  display: block;
  width: 100%;
  appearance: none;
  font: inherit;
  text-align: left;
  color: inherit;
}
.settings-card .app-tile-copy {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  display: grid;
  gap: 2px;
  max-width: min(62%, 260px);
  margin: 0;
  padding: 0;
  align-content: start;
}
.settings-card .app-tile.is-featured .app-tile-copy {
  top: 14px;
  left: 14px;
}
.settings-card .app-tile-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8f1ff;
  line-height: 1.15;
}
.settings-card .app-tile-meta {
  display: block;
  font-size: 0.8rem;
  color: rgba(160, 185, 215, 0.78);
  line-height: 1.2;
  margin: 0;
}
.settings-card .app-tile-open {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(120, 170, 220, 0.3);
  background: rgba(20, 36, 60, 0.9);
  color: rgba(200, 225, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  pointer-events: none;
}
.settings-card .app-tile-open svg {
  display: block;
  width: 12px;
  height: 12px;
}
.settings-card .app-tile.is-featured .app-tile-open {
  top: 14px;
  right: 14px;
}
.settings-card .app-tile-art {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 112px;
  height: 112px;
  margin: 0;
  pointer-events: none;
  z-index: 1;
  display: grid;
  place-items: center;
}
.settings-card .app-tile.is-featured .app-tile-art {
  width: 140px;
  height: 140px;
  right: 4px;
  bottom: -18px;
}

.app-tile {
  position: relative;
  display: block;
  min-height: 148px;
  padding: 14px;
  border-radius: 22px;
  border: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: #3a3a3c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.app-tile:hover {
  filter: brightness(1.06);
}
.app-tile:active {
  transform: scale(0.985);
}
.app-tile.is-featured {
  grid-column: 1 / -1;
  min-height: 168px;
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(90, 150, 255, 0.28), transparent 52%),
    #3a3a3c;
}
.app-tile.is-current {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(61, 255, 168, 0.16), transparent 52%),
    #3a3a3c;
}
.app-tile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  max-width: 70%;
}
.app-tile-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.app-tile-meta {
  font-size: 0.82rem;
  color: rgba(220, 220, 225, 0.62);
  line-height: 1.25;
}
.app-tile-art {
  position: absolute;
  right: -6px;
  bottom: -10px;
  width: 112px;
  height: 112px;
  pointer-events: none;
  z-index: 0;
  display: grid;
  place-items: center;
}
.app-tile.is-featured .app-tile-art {
  width: 140px;
  height: 140px;
  right: 4px;
  bottom: -18px;
}
.app-tile-art--panel {
  transform: rotate(-11deg);
}
.app-art-panel {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background:
    linear-gradient(155deg, #6aa8ff 0%, #2f6adf 42%, #163a8a 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.app-art-panel-screen {
  position: absolute;
  inset: 14px 12px 16px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%),
    #0b1733;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 8px;
  align-content: start;
}
.app-art-panel-screen i {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(120, 190, 255, 0.55), rgba(80, 140, 255, 0.22));
}
.app-art-panel-screen i:nth-child(3) {
  grid-column: 1 / -1;
  height: 18px;
  background:
    linear-gradient(135deg, rgba(61, 255, 168, 0.35), rgba(90, 160, 255, 0.18));
}
.app-art-panel-screen em {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(180, 210, 255, 0.28);
  margin-top: 2px;
}
.app-art-panel-chip {
  position: absolute;
  left: -8px;
  top: -8px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 700 0.62rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
  color: #102040;
  background: linear-gradient(145deg, #9dffd2, #3dffa8);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(-8deg);
}

.app-tile-art--bldqr {
  left: 50%;
  right: auto;
  bottom: 10px;
  width: 92px;
  height: auto;
  transform: translateX(-50%) rotate(7deg);
}
.settings-card .app-tile.is-catalog-tall .app-tile-art--bldqr {
  top: auto;
  bottom: 12px;
  left: 50%;
  right: auto;
  width: 88px;
  height: 168px;
  transform: translateX(-50%);
}
.app-art-bldqr {
  position: relative;
  width: 78px;
  height: 156px;
  margin: 0 auto;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #9a6cff 0%, #5a2fbf 38%, #2a1458 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.app-art-bldqr-screen {
  position: absolute;
  inset: 14px 10px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%),
    #140a24;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 5px;
  padding: 10px 8px;
  align-content: start;
}
.app-art-bldqr-screen i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 120, 160, 0.5), rgba(180, 90, 255, 0.2));
}
.app-art-bldqr-screen i:nth-child(4) {
  height: 14px;
  background: linear-gradient(135deg, rgba(255, 90, 130, 0.42), rgba(140, 70, 220, 0.22));
}
.app-art-bldqr-screen i:nth-child(5) {
  height: 10px;
  opacity: 0.75;
}
.app-art-bldqr-screen em {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(220, 170, 255, 0.24);
  margin-top: 2px;
}
.app-art-bldqr-chip {
  position: absolute;
  right: -6px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font: 700 0.62rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
  color: #2a1038;
  background: linear-gradient(145deg, #ffc2df, #ff7eb3);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(8deg);
}

.app-tile-art--blade1qr {
  right: 10px;
  left: auto;
  bottom: 6px;
  width: 78px;
  height: auto;
  transform: rotate(-8deg);
}
.settings-card .app-tile.is-featured .app-tile-art--blade1qr {
  right: 14px;
  bottom: 8px;
  width: 72px;
  transform: rotate(-7deg);
}
.app-art-blade1qr {
  position: relative;
  width: 64px;
  height: 128px;
  margin: 0 auto;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #5ad1c4 0%, #1f7a8c 42%, #0b3a4a 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.app-art-blade1qr-screen {
  position: absolute;
  inset: 14px 10px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%),
    #071820;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 5px;
  padding: 10px 8px;
  align-content: start;
}
.app-art-blade1qr-screen i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(90, 209, 196, 0.55), rgba(40, 120, 140, 0.2));
}
.app-art-blade1qr-screen i:nth-child(4) {
  height: 14px;
  background: linear-gradient(135deg, rgba(120, 230, 210, 0.45), rgba(30, 100, 120, 0.22));
}
.app-art-blade1qr-screen em {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(160, 230, 220, 0.24);
  margin-top: 2px;
}
.app-art-blade1qr-chip {
  position: absolute;
  right: -6px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font: 700 0.62rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
  color: #083038;
  background: linear-gradient(145deg, #b8fff4, #5ad1c4);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(-8deg);
}


.app-tile-art--messenger {
  width: 108px;
  height: 108px;
  right: 0;
  bottom: -6px;
  transform: rotate(9deg);
}
.app-art-msg {
  position: relative;
  width: 92px;
  height: 92px;
}
.app-art-msg-bubble {
  position: absolute;
  left: 6px;
  top: 12px;
  width: 68px;
  height: 52px;
  border-radius: 16px 16px 16px 6px;
  background:
    linear-gradient(160deg, #5ce6b0, #1fa873 60%, #0d6a48);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
}
.app-art-msg-bubble i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}
.app-art-msg-bubble i:last-child {
  width: 62%;
  opacity: 0.7;
}
.app-art-msg-badge {
  position: absolute;
  right: 2px;
  bottom: 8px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font: 700 0.62rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
  color: #102040;
  background: linear-gradient(145deg, #9dffd2, #3dffa8);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(-8deg);
}

.app-tile-art--libspay {
  width: 108px;
  height: 108px;
  right: 0;
  bottom: -6px;
  transform: rotate(9deg);
}
.app-art-pay {
  position: relative;
  width: 92px;
  height: 92px;
}
.app-art-pay-card {
  position: absolute;
  left: 4px;
  top: 10px;
  width: 72px;
  height: 48px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(160deg, #3d7cff, #1a3d8a 55%, #0d224f);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: grid;
  align-content: space-between;
  padding: 8px 9px 7px;
}
.app-art-pay-card b {
  font-size: 0.95rem;
  font-weight: 800;
  color: #eaf4ff;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.app-art-pay-card i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(200, 225, 255, 0.45);
}
.app-art-pay-card i + i {
  width: 55%;
  margin-top: 3px;
  background: rgba(61, 255, 168, 0.55);
}
.app-art-pay-bubble {
  position: absolute;
  right: 2px;
  bottom: 8px;
  width: 42px;
  height: 34px;
  border-radius: 14px 14px 14px 5px;
  background:
    linear-gradient(160deg, #5ce6b0, #1fa873 60%, #0d6a48);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 9px;
}
.app-art-pay-bubble i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}
.app-art-pay-bubble i:last-child {
  width: 62%;
  opacity: 0.7;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(18px) translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in-panel {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(14px); }
}

.hint-card {
  margin: auto 14px 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(140, 170, 210, 0.18);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}
.hint-card .lede {
  max-width: none;
}

.tele-only-comms {
  display: none;
}
.telemetry-panel.is-comms .tele-only-pay {
  display: none;
}
.telemetry-panel.is-comms .tele-only-comms {
  display: block;
}
.telemetry-panel.is-comms .tele-only-comms.tele-block {
  display: grid;
}

.support-card {
  margin: 0 14px 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(140, 170, 210, 0.12);
  background:
    linear-gradient(180deg, rgba(139, 124, 255, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.2);
}
.support-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ok);
}
.support-badge.is-wait {
  color: var(--warn);
}
.support-badge.is-down {
  color: #ff8a7a;
}
.support-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(210, 225, 245, 0.72);
}
.support-participants {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  padding: 2px 0 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.support-participants::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.support-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
}
.support-participant-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(120, 170, 220, 0.22);
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}
.support-participant.is-active .support-participant-avatar {
  border-color: rgba(94, 220, 160, 0.62);
  box-shadow: 0 0 0 3px rgba(94, 220, 160, 0.1);
}
.support-participant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.support-participant-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.support-participant-fallback.tone-0 { background: linear-gradient(145deg, #3d7cff, #1a3a7a); }
.support-participant-fallback.tone-1 { background: linear-gradient(145deg, #2fd4a1, #14604a); }
.support-participant-fallback.tone-2 { background: linear-gradient(145deg, #8b7cff, #3a2f8a); }
.support-participant-fallback.tone-3 { background: linear-gradient(145deg, #ff9a4d, #8a3d12); }
.support-participant-fallback.tone-4 { background: linear-gradient(145deg, #5ec8ff, #1a5578); }
.support-participant-fallback.tone-5 { background: linear-gradient(145deg, #ff6b9d, #7a2048); }
.support-participant-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid rgba(8, 14, 26, 0.95);
}
.support-participant-name {
  width: 100%;
  font-size: 0.66rem;
  line-height: 1.2;
  color: rgba(210, 225, 245, 0.78);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-participants-empty {
  margin-top: 2px;
}
.support-lede {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(210, 225, 245, 0.82);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes slip {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes drift {
  0%, 100% { transform: translate3d(-1%, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -1%, 0) scale(1.04); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbit-tilt {
  from { transform: rotate(0deg) scaleY(0.55); }
  to { transform: rotate(360deg) scaleY(0.55); }
}
@keyframes sat-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 1; }
}
@keyframes node-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-3px); }
}
@keyframes spoke-fade {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.7; }
}
@keyframes bars {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1); }
}

@media (max-width: 1100px) {
  .mission-grid {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    overflow: auto;
  }
  .telemetry-panel { grid-column: 1 / -1; max-height: 320px; }
}

@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    max-width: 100%;
  }
  .mission {
    height: 100dvh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .topnav {
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding:
      max(6px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      6px
      max(10px, env(safe-area-inset-left));
  }
  .topnav .brand-block {
    min-width: 0;
    flex: 0 1 auto;
  }
  .topnav .brand-sub { display: none; }
  .topnav .who,
  .topnav .who-login {
    display: none !important;
  }
  .topnav .who-profile {
    max-width: none;
    padding: 2px;
    gap: 0;
  }
  .topnav .who-avatar {
    width: 30px;
    height: 30px;
  }
  .topnav-right {
    flex-shrink: 0;
    gap: 6px;
    min-width: 0;
  }
  .tabs {
    display: none !important;
  }
  .tabs .tab {
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 0.8rem;
  }
  /* In open chat: tabs eat height ? back is enough */
  .mission.is-feed .tabs {
    display: none !important;
  }
  .mission.is-feed .topnav {
    flex-wrap: nowrap;
  }
  .mission,
  .mission-grid,
  .fleet-panel,
  .theater-panel,
  .feed-stage {
    max-width: 100%;
    min-width: 0;
  }
  .mission.is-fleet .fleet-panel,
  .mission:not(.is-feed) .fleet-panel {
    overflow-x: hidden;
  }
  .fleet-list,
  .chat-list {
    max-width: 100%;
    overflow-x: hidden;
  }
  .fleet-item,
  .chat-item {
    max-width: 100%;
    box-sizing: border-box;
  }
  .mission-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    gap: 0;
    padding: 0;
  }
  /* Messenger: list-only screen */
  .mission.is-fleet .theater-panel,
  .mission.is-fleet .telemetry-panel,
  .mission:not(.is-feed) .theater-panel,
  .mission:not(.is-feed) .telemetry-panel {
    display: none !important;
  }
  .mission.is-fleet .fleet-panel,
  .mission:not(.is-feed) .fleet-panel {
    display: flex;
    max-height: none;
    min-height: 0;
    height: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  /* Messenger: feed-only screen */
  .mission.is-feed .fleet-panel,
  .mission.is-feed .telemetry-panel {
    display: none !important;
  }
  .mission.is-feed .mission-grid {
    grid-template-columns: 1fr;
  }
  .mission.is-feed .theater-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .mission.is-feed .feed-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 4px 0 0;
    gap: 0;
  }
  .mission.is-feed .feed-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 10px 8px;
    border-bottom: 1px solid rgba(120, 160, 210, 0.1);
    background: transparent;
  }
  .mission.is-feed .feed-toolbar > .btn-back {
    margin-top: 0;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    flex-shrink: 0;
  }
  .mission.is-feed .feed-toolbar > .btn-back .btn-back-label {
    display: none;
  }
  .mission.is-feed .feed-toolbar-end {
    min-width: 36px;
    min-height: 36px;
    margin-left: auto;
  }
  .mission.is-feed .feed-peer {
    max-width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .mission.is-feed .feed-peer-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
  .mission.is-feed .feed-peer-avatar {
    width: 28px;
    height: 28px;
  }
  .mission.is-feed .feed-peer #feed-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mission.is-feed .feed-stage.is-comms .feed-toolbar {
    padding-bottom: 8px;
  }
  .mission.is-feed .feed-wrap {
    flex: 1;
    min-height: 0;
  }
  .mission.is-feed .feed {
    padding: 10px 12px 14px;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
  .mission.is-feed .feed.is-chron {
    gap: 6px;
  }
  .mission.is-feed .note-stack {
    max-width: min(88%, calc(100vw - 28px));
  }
  .mission.is-feed .note-composer-row,
  .mission.is-feed .note-input-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .mission.is-feed .note-card {
    max-width: 100%;
    padding: 8px 12px 6px;
    border-radius: 16px;
    border-bottom-left-radius: 5px;
    box-sizing: border-box;
  }
  .mission.is-feed .note-avatar {
    width: 30px;
    height: 30px;
  }
  .mission.is-feed .note-row {
    gap: 6px;
  }
  .mission.is-feed .note-card.is-mine {
    border-radius: 16px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 16px;
  }
  .mission.is-feed .note-role-badge {
    font-size: 0.54rem;
    padding: 2px 5px;
  }
  .mission.is-feed .note-name {
    font-size: 0.7rem;
    max-width: min(11rem, 42vw);
  }
  .mission.is-feed .note-card-badge {
    display: inline-flex;
    font-size: 0.58rem;
    padding: 2px 6px;
  }
  .mission.is-feed .note-card-author {
    font-size: 0.76rem;
  }
  .mission.is-feed .note-card-top {
    white-space: nowrap;
  }
  .mission.is-feed .note-card-text {
    font-size: 0.9rem;
    line-height: 1.38;
  }
  .mission.is-feed .note-card-time {
    font-size: 0.64rem;
  }
  .mission.is-feed .pay-card {
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border-radius: 16px;
  }
  .mission.is-feed .pay-card-flags {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mission.is-feed .pay-flag-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }
  .mission.is-feed .pay-card-bottom {
    gap: 6px;
  }
  .mission.is-feed .feed-stage > .feed-jump {
    margin: -58px 12px 2px 0;
  }
  .mission.is-feed .note-composer {
    margin: 0;
    padding:
      8px 12px
      max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(120, 160, 210, 0.14);
    background:
      linear-gradient(180deg, rgba(8, 14, 26, 0.72), rgba(5, 8, 14, 0.98));
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
  }
  .mission.is-feed .note-composer-label {
    display: none;
  }
  .mission.is-feed .note-composer-row {
    gap: 0;
  }
  .mission.is-feed .note-input-shell {
    border-radius: 18px;
    padding: 3px;
    min-height: 44px;
  }
  .mission.is-feed .note-input-shell .note-tool-btn,
  .mission.is-feed .note-input-shell .note-send {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
  .mission.is-feed .note-input-actions {
    gap: 4px;
    padding-right: 1px;
  }
  .mission.is-feed .note-composer textarea {
    min-height: 40px;
    padding: 10px 6px;
    font-size: 0.95rem;
  }
  /* Payment rooms: text + send only */
  .mission.is-feed .feed-stage:not(.is-comms) .note-input-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-left: 10px;
    padding-right: 3px;
  }
  .mission.is-feed .feed-stage:not(.is-comms) .note-input-shell .note-input-actions {
    grid-column: 2;
  }
  html.kb-open .mission {
    height: calc(100dvh - var(--kb, 0px));
    height: calc(100svh - var(--kb, 0px));
  }
  html.kb-open .mission.is-feed .note-composer {
    padding-bottom: 8px;
  }
  .mission.is-feed .note-composer::before {
    display: none;
  }
  .theater-hub {
    width: min(200px, 58%);
    height: min(200px, 58%);
  }
  .chat-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .mode-pill {
    flex: 0 0 auto;
  }
  .fleet-list,
  .chat-list {
    padding: 8px 10px 16px;
    gap: 8px;
  }
  .fleet-item,
  .chat-item {
    padding: 12px 12px 12px 10px;
    border-radius: 16px;
  }
}

.note-tool-btn[hidden] {
  display: none !important;
}

/* APK WebView: native already pads system bars ? no extra safe-area on composer */
html.apk-webview .mission {
  padding-bottom: 0 !important;
}
html.apk-webview .mission.is-feed .mission-grid {
  padding: 0;
  gap: 0;
}
html.apk-webview .mission.is-feed .theater-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html.apk-webview .mission.is-feed .feed-stage {
  padding-left: 0;
  padding-right: 0;
}
html.apk-webview .mission.is-feed .note-composer {
  padding: 8px 10px 6px !important;
  margin-bottom: 0 !important;
}
html.apk-webview.mission,
html.apk-webview .mission {
  padding-bottom: 0 !important;
}

/* ?? Pull to refresh ?? */
.ptr-indicator {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  left: 50%;
  z-index: 120;
  transform: translate(-50%, calc(-100% + var(--ptr-pull, 0px)));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 180, 255, 0.28);
  background: rgba(8, 14, 26, 0.94);
  color: #d9ebff;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ptr-indicator.is-pulling,
.ptr-indicator.is-active {
  opacity: 1;
}
.ptr-indicator.is-ready .ptr-spinner {
  border-top-color: #6ef0c0;
}
.ptr-indicator[hidden] {
  display: none !important;
}
html.is-ptr .ptr-indicator {
  display: flex;
  opacity: 1;
  transform: translate(-50%, 0);
}
.ptr-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(120, 180, 255, 0.25);
  border-top-color: #7ec8ff;
  animation: ptr-spin 0.75s linear infinite;
}
html.is-ptr .ptr-spinner {
  animation: ptr-spin 0.75s linear infinite;
}
@keyframes ptr-spin {
  to { transform: rotate(360deg); }
}

/* ?? Settings ?? */
.mission.is-settings .mission-grid {
  display: none !important;
}
.mission.is-settings .tabs {
  display: none !important;
}
.mission.is-apps .mission-grid {
  display: none !important;
}
.mission.is-apps .tabs {
  display: none !important;
}
.settings-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.settings-stage.hidden {
  display: none !important;
}
.settings-panel {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.settings-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.settings-body {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
}
.settings-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 50%),
    var(--card-bg);
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.settings-card h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.settings-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background:
    url("/static/avatar-default.svg") center / cover no-repeat,
    #163a70;
  box-shadow: 0 0 0 1px rgba(140, 200, 255, 0.3);
}
.settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.settings-avatar img.is-cache-ready {
  opacity: 1;
}
.settings-avatar img[hidden] {
  display: none !important;
}
.settings-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 750;
  color: #eaf4ff;
}
.settings-avatar-fallback[hidden] {
  display: none !important;
}
.settings-mute-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.mute-room-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 220, 0.2);
  background: rgba(8, 16, 28, 0.55);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.mute-room-item:hover {
  border-color: rgba(110, 190, 255, 0.38);
  background: rgba(20, 40, 70, 0.72);
}
.mute-room-item.is-muted {
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(40, 16, 24, 0.55);
}
.mute-room-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.mute-room-copy strong {
  font-size: 0.86rem;
  color: #e8f1ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mute-room-copy em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(170, 195, 225, 0.72);
}
.mute-room-icon {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(120, 200, 255, 0.75);
  box-shadow: inset 0 0 0 2px rgba(8, 16, 28, 0.9);
  background: radial-gradient(circle at 35% 35%, #8fd0ff, #2a7fd0 70%);
}
.mute-room-icon.is-off {
  border-color: rgba(255, 130, 130, 0.55);
  background: radial-gradient(circle at 35% 35%, #ffb0b0, #8a3030 70%);
  opacity: 0.85;
}
.mute-room-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(180, 210, 240, 0.85);
  min-width: 2.2rem;
  text-align: right;
}
.mute-room-item.is-muted .mute-room-label {
  color: rgba(255, 170, 170, 0.88);
}
.settings-avatar-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.settings-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
}
.settings-form {
  display: grid;
  gap: 8px;
}
.settings-label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.settings-form input[type="email"],
.settings-form input[type="password"],
.settings-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}
.settings-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.settings-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
}
.settings-switch input {
  width: 18px;
  height: 18px;
  accent-color: #5aa8ff;
}
.settings-msg,
.settings-error {
  margin: 0;
  font-size: 0.8rem;
}
.settings-msg {
  color: #8fd0ff;
}
.settings-msg.is-ok {
  color: #6ef0c0;
}
.settings-error,
.settings-msg.is-err {
  color: #ff8fa0;
}
.settings-msg[hidden],
.settings-error[hidden] {
  display: none !important;
}
.btn-secondary {
  border: 1px solid var(--line-strong);
  background: var(--elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}
.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, transparent);
  color: var(--ink);
  background: var(--hover-bg);
}

@media (max-width: 760px) {
  .settings-stage {
    padding: 8px 12px 20px;
  }
  .settings-avatar {
    width: 64px;
    height: 64px;
  }
}

/* ?? Panel app (hgbase wrapper ? messenger style) ?? */
.mission.is-panel .mission-grid {
  display: none !important;
}
.mission.is-panel .tabs {
  display: none !important;
}
.mission.is-panel .panel-stage .panel-app,
.mission.is-panel .panel-stage .panel-toolbar,
.mission.is-panel .panel-stage .panel-app-head {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  backdrop-filter: none !important;
}
.panel-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px clamp(12px, 2vw, 24px) max(18px, env(safe-area-inset-bottom));
  scrollbar-width: none;
  -ms-overflow-style: none;
  background:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(70, 140, 255, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 18%, rgba(61, 255, 168, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.55), rgba(6, 10, 18, 0.82));
}
.panel-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.panel-stage.hidden {
  display: none !important;
}
.panel-stage .panel-app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  padding: 14px clamp(14px, 2vw, 20px) 16px;
  animation: rise 0.45s ease both;
}
.panel-stage .panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.panel-stage .panel-sync {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.panel-stage .panel-sync.is-busy::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(120, 180, 255, 0.35);
  border-top-color: rgba(120, 200, 255, 0.9);
  border-radius: 50%;
  animation: panel-sync-spin 0.7s linear infinite;
}
@keyframes panel-sync-spin {
  to {
    transform: rotate(360deg);
  }
}
.panel-stage .panel-body.is-loading {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.panel-stage .panel-app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.panel-stage .panel-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 10px;
  border-bottom: 0;
  background: transparent;
}
.panel-m-only {
  display: none;
}
.panel-d-only {
  display: table-row;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-only,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-only {
  display: block !important;
  width: 100%;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-d-only,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-d-only {
  display: none !important;
}
.panel-stage .panel-app-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.panel-stage .app-art-panel--head {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.panel-stage .app-art-panel--head .app-art-panel-screen {
  inset: 7px 6px 8px;
  border-radius: 7px;
  gap: 3px;
  padding: 5px;
}
.panel-stage .app-art-panel--head .app-art-panel-screen i {
  height: 5px;
  border-radius: 2px;
}
.panel-stage .app-art-panel--head .app-art-panel-screen i:nth-child(3) {
  height: 9px;
}
.panel-stage .app-art-panel--head .app-art-panel-screen em {
  height: 3px;
  margin-top: 1px;
}
.panel-stage .panel-app-head-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.panel-stage .panel-toolbar,
.panel-stage .panel-app-head,
.panel-stage .panel-section-menu {
  overflow: visible;
}
.panel-stage .panel-section-menu {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: auto;
  min-height: 0;
}
/* If a menu was ever detached to <body>, keep the dark dropdown look */
body > .panel-section-dropdown,
body > .panel-subtabs-menu {
  position: fixed;
  z-index: 4000;
  min-width: 12.5rem;
  max-height: min(60vh, 360px);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121a28;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}
body > .panel-section-dropdown[hidden],
body > .panel-subtabs-menu[hidden] {
  display: none !important;
}
body > .panel-section-dropdown .panel-tab,
body > .panel-subtabs-menu .panel-subtab {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(210, 225, 245, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}
body > .panel-section-dropdown .panel-tab:hover,
body > .panel-subtabs-menu .panel-subtab:hover {
  color: #fff;
  background: #1a2740;
}
body > .panel-section-dropdown .panel-tab.is-active,
body > .panel-subtabs-menu .panel-subtab.is-active {
  color: #fff;
  background: #2a4570;
  box-shadow: none;
}
.panel-stage .panel-head-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  max-width: 42ch;
}
.panel-stage .panel-section-more {
  position: relative;
  width: auto;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(120, 180, 255, 0.28);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(50, 90, 150, 0.35), rgba(20, 36, 62, 0.55));
  color: #d7e8ff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(190, 220, 255, 0.1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.panel-stage .panel-section-more:hover,
.panel-stage .panel-section-menu.is-open .panel-section-more {
  background:
    linear-gradient(180deg, rgba(70, 120, 190, 0.48), rgba(30, 55, 95, 0.7));
  border-color: rgba(140, 200, 255, 0.48);
  color: #fff;
}
.panel-stage .panel-section-more:focus,
.panel-stage .panel-section-more:focus-visible,
.panel-stage .panel-section-more:active {
  outline: none;
  box-shadow: inset 0 1px 0 rgba(190, 220, 255, 0.1);
}
.panel-stage .panel-section-more-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
  color: var(--cyan, #6ec8ff);
}
.panel-stage .panel-section-menu.is-open .panel-section-more-ico,
.panel-stage .panel-section-more:hover .panel-section-more-ico {
  color: #9ed8ff;
}
.panel-stage .panel-section-more-ico svg {
  display: block;
}
.panel-stage .panel-ctl-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}
.panel-stage .panel-section-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 130;
  min-width: 11.5rem;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 220, 0.35);
  background: #0a101a;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(90, 150, 220, 0.08) inset;
  display: grid;
  gap: 3px;
  overflow: hidden;
  isolation: isolate;
}
.panel-stage .panel-section-dropdown[hidden] {
  display: none !important;
}
.panel-stage .panel-section-dropdown .panel-tab {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(210, 225, 245, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.panel-stage .panel-section-dropdown .panel-tab:hover {
  background: rgba(120, 170, 230, 0.12);
  color: #fff;
}
.panel-stage .panel-section-dropdown .panel-tab.is-active {
  color: #fff;
  background: rgba(61, 124, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(110, 200, 255, 0.25);
}
.panel-stage .panel-tabs,
.panel-stage .panel-subtabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  flex-shrink: 0;
}
.panel-stage .panel-tabs::-webkit-scrollbar,
.panel-stage .panel-subtabs::-webkit-scrollbar {
  display: none;
}
.panel-stage .panel-tab,
.panel-stage .panel-subtab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.panel-stage .panel-tab:hover,
.panel-stage .panel-subtab:hover {
  color: #e8f1ff;
}
.panel-stage .panel-tab.is-active,
.panel-stage .panel-subtab.is-active {
  color: #fff;
  background: rgba(61, 124, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(110, 200, 255, 0.25);
}
.panel-stage .panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.panel-stage .panel-card {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(90, 160, 255, 0.14);
  background:
    linear-gradient(115deg, rgba(40, 110, 220, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(6, 10, 18, 0.88));
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  box-shadow:
    inset 0 1px 0 rgba(140, 200, 255, 0.08),
    0 8px 20px rgba(0, 20, 50, 0.28);
  overflow: hidden;
}
.panel-stage .panel-card[data-panel-panel="trading"] {
  overflow: auto;
}
.panel-stage .panel-bulk {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.panel-stage .panel-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #7ec8ff, #2a6dff 55%, transparent);
  opacity: 0.65;
  pointer-events: none;
}
.panel-stage .panel-card[hidden] {
  display: none !important;
}
.panel-stage .panel-card-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.panel-stage .panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}
.panel-stage .panel-section-menu.is-open {
  z-index: 220;
}
.panel-stage .panel-subtabs-shell {
  position: relative;
  flex-shrink: 0;
  z-index: 3;
}
.panel-stage .panel-subtabs-shell.is-open {
  z-index: 210;
}
html.panel-menu-open .panel-stage .panel-subtabs-shell,
html.panel-menu-open .panel-stage .panel-section-head {
  pointer-events: none;
}
html.panel-menu-open .panel-stage .panel-section-menu,
html.panel-menu-open .panel-stage .panel-section-dropdown {
  pointer-events: auto;
}
.panel-stage .panel-section:has(.panel-subtabs-shell.is-open) {
  z-index: 12;
}
.panel-stage .panel-section:has(.panel-subtabs--bar) {
  gap: 8px;
}
.panel-stage .panel-section:has(.panel-subtabs--bar) .panel-section-head {
  margin-bottom: 0;
}
.panel-stage .panel-section:has(.panel-subtabs--bar) .panel-section-head .panel-card-title {
  font-size: 1rem;
}
.panel-stage .panel-section-head .panel-card-title {
  flex: 1;
  min-width: 0;
}
.panel-stage .panel-subtabs-shell[hidden] {
  display: none !important;
}
.panel-stage .panel-subtabs--bar {
  display: none !important;
}
.panel-stage .panel-subtabs-more {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(120, 170, 230, 0.28);
  border-radius: 10px;
  background: #121c2c;
  color: #d7e6f8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.panel-stage .panel-subtabs-more:hover,
.panel-stage .panel-subtabs-shell.is-open .panel-subtabs-more {
  background: #1a2a42;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
  outline: none;
}
.panel-stage .panel-subtabs-more:focus,
.panel-stage .panel-subtabs-more:focus-visible,
.panel-stage .panel-subtabs-more:active {
  outline: none;
  box-shadow: none;
}
.panel-stage .panel-subtabs-more .panel-ctl-label {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: inherit;
}
.panel-stage .panel-subtabs-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 320;
  min-width: 12.5rem;
  max-height: min(60vh, 360px);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121a28;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
}
.panel-stage .panel-subtabs-menu[hidden] {
  display: none !important;
}
.panel-stage .panel-subtabs-shell:not(.is-open) .panel-subtabs-menu {
  display: none !important;
}
.panel-stage .panel-subtabs-menu .panel-subtab {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(210, 225, 245, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
  cursor: pointer;
}
.panel-stage .panel-subtabs-menu .panel-subtab:hover {
  color: #fff;
  background: #1a2740;
  box-shadow: none;
}
.panel-stage .panel-subtabs-menu .panel-subtab.is-active {
  color: #fff;
  background: #2a4570;
  box-shadow: none;
}
html.panel-options-open .panel-stage .panel-btn-sm,
html.panel-options-open .panel-stage .panel-btn-sm:hover {
  box-shadow: none !important;
  filter: none !important;
  outline: none !important;
}
html.panel-options-open .panel-stage .panel-subtabs-shell.is-open .panel-subtabs-more {
  box-shadow: none !important;
  outline: none !important;
}
html.panel-options-open .panel-stage .panel-table-wrap {
  isolation: auto;
}
.panel-stage .panel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.panel-stage .panel-filters--wrap {
  width: 100%;
}
.panel-stage .panel-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 130px;
}
.panel-stage .panel-field--grow {
  flex: 1 1 160px;
}
.panel-stage .panel-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.panel-stage .panel-input {
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(90, 160, 255, 0.18);
  background: rgba(6, 10, 18, 0.72);
  color: #eaf2ff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  min-height: 40px;
}
.panel-stage .panel-input:focus {
  outline: none;
  border-color: rgba(110, 200, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(61, 124, 255, 0.15);
}
.panel-stage .panel-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.panel-stage .panel-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.panel-stage .panel-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding-right: 10px;
}
.panel-stage .panel-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-stage .panel-select-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: rgba(160, 195, 235, 0.88);
  transition: transform 0.15s ease, color 0.15s ease;
}
.panel-stage .panel-select.is-open .panel-select-chevron {
  transform: rotate(180deg);
  color: #9ed0ff;
}
.panel-stage .panel-select.is-open .panel-select-trigger {
  border-color: rgba(110, 200, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(61, 124, 255, 0.12);
}
.panel-stage .panel-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  min-width: 100%;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 220, 0.35);
  background: rgba(8, 14, 26, 0.98);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(90, 150, 220, 0.08) inset;
  display: grid;
  gap: 3px;
  max-height: min(280px, 52vh);
  overflow: auto;
  backdrop-filter: blur(12px);
}
.panel-stage .panel-select-menu[hidden] {
  display: none !important;
}
.panel-stage .panel-select-option {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(210, 225, 245, 0.92);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.panel-stage .panel-select-option:hover {
  background: rgba(110, 170, 255, 0.14);
  color: #fff;
}
.panel-stage .panel-select-option.is-active {
  background: rgba(61, 124, 255, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(120, 190, 255, 0.22);
}
.panel-stage .panel-bulk .panel-select {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 100%;
}
.panel-stage .panel-submit {
  min-height: 40px;
  padding-inline: 18px;
  border-radius: 10px;
}
.panel-stage .panel-stat-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.panel-stage .panel-stat-card {
  position: relative;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(90, 160, 255, 0.14);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(40, 110, 220, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(12, 22, 40, 0.92), rgba(6, 10, 18, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(140, 200, 255, 0.08),
    0 8px 20px rgba(0, 20, 50, 0.22);
}
.panel-stage .panel-stat-card span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.25;
}
.panel-stage .panel-stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  word-break: break-word;
}
.panel-stage .panel-table-wrap {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  /* Internal row scroll (and horizontal when wide) */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  border-radius: 14px;
  border: 1px solid rgba(90, 160, 255, 0.12);
  background: rgba(4, 8, 16, 0.45);
}
.panel-orders-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.panel-orders-layout > .panel-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
}
.panel-inbox {
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  max-height: none;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(90, 160, 255, 0.14);
  background: rgba(4, 10, 20, 0.72);
  overflow: hidden;
}
.panel-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-inbox-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}
.panel-inbox-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(200, 220, 255, 0.75);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(90, 160, 255, 0.2);
  background: rgba(20, 40, 70, 0.45);
}
.panel-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}
.panel-inbox-empty {
  margin: 0;
  padding: 18px 8px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(180, 200, 230, 0.55);
}
.panel-inbox-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(90, 160, 255, 0.12);
  background: rgba(8, 16, 30, 0.85);
}
.panel-inbox-card.is-pinned {
  border-color: rgba(255, 196, 80, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 80, 0.12);
}
.panel-inbox-card.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.panel-inbox-hide {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ff4d5e;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.panel-inbox-hide:hover {
  opacity: 1;
  background: rgba(255, 60, 80, 0.12);
}
.panel-inbox-amount {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}
.panel-inbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.74rem;
  color: rgba(190, 210, 240, 0.72);
}
.panel-inbox-room {
  font-family: var(--mono);
  color: rgba(120, 200, 255, 0.95);
}
.panel-inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.panel-inbox-actions button {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(90, 160, 255, 0.22);
  background: rgba(20, 40, 70, 0.55);
  color: rgba(230, 240, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.panel-inbox-actions button:hover {
  border-color: rgba(120, 190, 255, 0.45);
  background: rgba(30, 60, 100, 0.7);
}
.panel-inbox-actions button.is-proc {
  border-color: rgba(80, 200, 140, 0.4);
  color: #9ef0c4;
}
.panel-inbox-actions button.is-pin.is-on {
  border-color: rgba(255, 196, 80, 0.45);
  color: #ffd27a;
}
@media (min-width: 1100px) {
  .mission.is-panel .panel-stage:not(.is-mobile-cards) .panel-orders-layout.is-inbox-on {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-height: 0;
  }
  .mission.is-panel .panel-stage:not(.is-mobile-cards) .panel-orders-layout.is-inbox-on .panel-inbox {
    display: flex;
    min-height: 0;
    overflow: hidden;
  }
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-inbox,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-inbox {
  display: none !important;
}
.panel-stage .panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
@media (min-width: 761px) {
  .panel-stage .panel-table {
    width: max-content;
    min-width: 100%;
  }
}
.panel-stage .panel-table th,
.panel-stage .panel-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(90, 160, 255, 0.08);
  vertical-align: middle;
}
.panel-stage .panel-table th {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(8, 14, 26, 0.72);
  white-space: nowrap;
}
.panel-stage .panel-table td {
  color: rgba(232, 241, 255, 0.92);
  word-break: break-word;
}
.panel-stage .panel-table td.panel-cell-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}
.panel-stage .panel-table td.panel-cell-action {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}
@media (min-width: 761px) {
  .mission.is-panel .panel-stage {
    overflow: hidden;
  }
  .mission.is-panel .panel-stage .panel-body {
    overflow: hidden;
  }
  .mission.is-panel .panel-stage .panel-card {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .mission.is-panel .panel-stage .panel-card[data-panel-panel="trading"] {
    overflow: auto;
  }
  html.panel-options-open .mission.is-panel .panel-stage .panel-btn-sm,
  html.panel-options-open .mission.is-panel .panel-stage .panel-btn-sm:hover {
    box-shadow: none !important;
    filter: none !important;
  }
  .mission.is-panel .panel-stage .panel-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.panel-stage .panel-table tbody tr:last-child td {
  border-bottom: 0;
}
.panel-stage .panel-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto;
  cursor: pointer;
  vertical-align: middle;
}
.panel-stage .panel-check--head {
  margin: 0;
}
.panel-stage .panel-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
.panel-stage .panel-check-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(110, 180, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.95), rgba(8, 12, 22, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}
.panel-stage .panel-check:hover .panel-check-box {
  border-color: rgba(130, 200, 255, 0.72);
}
.panel-stage .panel-check-input:checked + .panel-check-box {
  border-color: rgba(150, 220, 255, 0.9);
  background: linear-gradient(145deg, #8fd0ff 0%, #3d7cff 58%, #2457c8 100%);
  box-shadow:
    0 4px 14px rgba(50, 130, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.panel-stage .panel-check-input:checked + .panel-check-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: 2px solid #041018;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translateY(-1px);
}
.panel-stage .panel-check-input:focus-visible + .panel-check-box {
  outline: 2px solid rgba(110, 200, 255, 0.45);
  outline-offset: 2px;
}
.panel-stage .panel-check-input:indeterminate + .panel-check-box {
  border-color: rgba(130, 200, 255, 0.75);
  background: linear-gradient(145deg, rgba(90, 160, 255, 0.55), rgba(40, 90, 180, 0.72));
}
.panel-stage .panel-check-input:indeterminate + .panel-check-box::after {
  content: "";
  width: 8px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: #041018;
  transform: none;
}
.panel-stage #panel-req-table thead th:first-child,
.panel-stage #panel-req-table tbody tr.panel-d-only > td:first-child {
  width: 44px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}
.mission.is-panel .panel-stage.is-mobile-cards #panel-req-table .panel-m-only > td,
html.panel-mobile-cards .mission.is-panel .panel-stage #panel-req-table .panel-m-only > td {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  text-align: left !important;
}
.panel-stage .panel-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.panel-stage .panel-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(90, 160, 255, 0.2);
  white-space: nowrap;
  line-height: 1.2;
}
.panel-stage .panel-pill--on {
  color: #9dffd2;
  border-color: rgba(61, 255, 168, 0.35);
  background: rgba(61, 255, 168, 0.12);
}
.panel-stage .panel-pill--off {
  color: #ffb0b0;
  border-color: rgba(255, 120, 120, 0.3);
  background: rgba(180, 60, 60, 0.12);
}
.panel-stage .panel-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
  vertical-align: middle;
}
.panel-stage .panel-status--ok {
  color: #d1fae5;
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(6, 95, 70, 0.42);
}
.panel-stage .panel-status--bad {
  color: #ffb0b0;
  border-color: rgba(255, 120, 120, 0.38);
  background: rgba(180, 50, 60, 0.2);
}
.panel-stage .panel-status--wait {
  color: #ffd28a;
  border-color: rgba(255, 190, 90, 0.4);
  background: rgba(180, 120, 30, 0.2);
}
.panel-stage .panel-status--doubt {
  color: #3b2a08;
  border-color: rgba(240, 180, 41, 0.55);
  background: linear-gradient(90deg, #ffd56a, #f0b429 55%, #e8a317);
  font-weight: 800;
}
.panel-stage .panel-status--dispute {
  color: #e0c2ff;
  border-color: rgba(180, 130, 255, 0.4);
  background: rgba(120, 80, 200, 0.2);
}
.panel-stage .panel-status--open {
  color: #e8f2ff;
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(14, 116, 144, 0.38);
}
.panel-stage .panel-status--mute {
  color: rgba(200, 215, 235, 0.88);
  border-color: rgba(120, 150, 190, 0.28);
  background: rgba(40, 55, 80, 0.35);
}
.panel-stage .panel-m-item .panel-status {
  flex-shrink: 0;
}
.panel-stage .panel-btn-sm {
  appearance: none;
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  color: #041018;
  background: linear-gradient(180deg, #8fd0ff, #3d7cff);
  box-shadow: 0 1px 4px rgba(50, 130, 255, 0.12);
  vertical-align: middle;
  position: relative;
  z-index: 0;
}
.panel-stage .panel-btn-sm:hover {
  filter: brightness(1.06);
}
.panel-stage .panel-btn-sm:disabled {
  opacity: 0.45;
  cursor: default;
  filter: none;
}
.panel-stage .panel-btn-sm--danger {
  color: #fff;
  background: linear-gradient(180deg, #f87171, #dc2626);
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.2);
}
.panel-stage .panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
}
.panel-stage .panel-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}
@media (min-width: 900px) {
  .panel-stage .panel-stat-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mission.is-panel,
  .mission.is-apps,
  .mission.is-settings,
  .mission.is-testqr,
  .mission.is-premiumfin {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .mission.is-panel .topnav,
  .mission.is-apps .topnav,
  .mission.is-settings .topnav,
  .mission.is-testqr .topnav,
  .mission.is-premiumfin .topnav {
    display: flex !important;
  }
  .mission.is-panel .topnav .brand-sub,
  .mission.is-apps .topnav .brand-sub,
  .mission.is-settings .topnav .brand-sub,
  .mission.is-testqr .topnav .brand-sub,
  .mission.is-premiumfin .topnav .brand-sub {
    display: inline;
    font-size: 0.58rem;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mission.is-testqr .testqr-stage,
  .mission.is-premiumfin .premiumfin-stage {
    grid-row: 2;
    min-height: 0;
  }
  .mission.is-apps #apps-stage,
  .mission.is-settings #settings-stage {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 0;
  }
  .mission.is-apps .apps-stage-panel,
  .mission.is-settings .settings-panel {
    max-width: none;
    width: 100%;
    flex: 0 0 auto;
    min-height: min-content;
    overflow: visible;
    padding:
      10px
      max(12px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .mission.is-apps .settings-head,
  .mission.is-settings .settings-head {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 0 8px;
    padding: 4px 0 10px;
    background: rgba(6, 10, 18, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 160, 210, 0.1);
  }
  .mission.is-apps .settings-body,
  .mission.is-settings .settings-body {
    padding-bottom: 12px;
  }
  .mission.is-apps .settings-card .apps-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mission.is-apps .settings-card .apps-grid-unit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mission.is-apps .settings-card .apps-grid-unit .app-tile.is-featured {
    grid-column: 1 / -1;
  }
  .mission.is-panel .panel-stage {
    grid-row: 2;
    min-height: 0;
    height: auto;
    overflow: hidden;
    padding: 0;
  }
  .mission.is-panel .panel-stage .panel-app {
    min-height: 0;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    gap: 8px;
    padding:
      4px
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .mission.is-panel .panel-stage .panel-body {
    flex: 1;
    min-height: 0;
    /* One scrollport on mobile ? nested table scroll fights top?bottom swipe */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overscroll-behavior-y: none;
    touch-action: pan-y;
  }
  .mission.is-panel .panel-stage .panel-card {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .mission.is-panel .panel-stage .panel-orders-layout {
    flex: 0 0 auto;
    overflow: visible;
    min-height: 0;
  }
  .mission.is-panel .panel-stage .panel-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    padding: 10px 0 8px;
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
  }
  .mission.is-panel .panel-stage .panel-app-head {
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
  .mission.is-panel .panel-stage .panel-app-icon {
    width: 36px;
    height: 36px;
  }
  .mission.is-panel .panel-stage .app-art-panel--head {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow:
      0 6px 14px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
  .mission.is-panel .panel-stage .app-art-panel--head .app-art-panel-screen {
    inset: 6px 5px 7px;
    border-radius: 6px;
    gap: 2px;
    padding: 4px;
  }
  .mission.is-panel .panel-stage .panel-head-meta {
    font-size: 0.72rem;
    line-height: 1.25;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mission.is-panel .panel-stage .panel-app-head > #panel-back.btn-back {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
  }
  .mission.is-panel .panel-stage .panel-app-head > #panel-back.btn-back .btn-back-icon {
    width: 18px;
    height: 18px;
  }
  .mission.is-panel .panel-stage .panel-section.panel-card {
    padding-left: 0;
    padding-right: 0;
  }
  .mission.is-panel .panel-stage .panel-app-head-copy {
    flex: 1;
    min-width: 0;
  }
  .mission.is-panel .panel-stage .panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.15;
  }
  .mission.is-panel .panel-stage .panel-subtabs {
    width: 100%;
  }
  .mission.is-panel .panel-stage .panel-card {
    padding: 0;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mission.is-panel .panel-stage .panel-card::before {
    display: none;
  }
  .mission.is-panel .panel-stage .panel-section-head--solo {
    display: none;
  }
  .mission.is-panel .panel-stage .panel-section-head .panel-card-title {
    display: block;
    font-size: 1rem;
  }
  .mission.is-panel .panel-stage .panel-section-head {
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(6, 10, 18, 0.92);
    backdrop-filter: blur(10px);
    padding-top: 2px;
    padding-bottom: 6px;
  }
  .mission.is-panel .panel-stage .panel-body {
    gap: 8px;
  }
  .mission.is-panel .panel-stage .panel-filters--stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: end;
  }
  .mission.is-panel .panel-stage .panel-filters--stats .panel-submit {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
  }
  .mission.is-panel .panel-stage .panel-filters--stats .panel-field {
    width: auto;
    min-width: 0;
  }
  .mission.is-panel .panel-stage .panel-filters,
  .mission.is-panel .panel-stage .panel-bulk {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .mission.is-panel .panel-stage .panel-filters--wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mission.is-panel .panel-stage .panel-filters--wrap .panel-submit {
    width: 100%;
  }
  .mission.is-panel .panel-stage .panel-field,
  .mission.is-panel .panel-stage .panel-field--grow {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .mission.is-panel .panel-stage .panel-submit,
  .mission.is-panel .panel-stage .panel-bulk .panel-select,
  .mission.is-panel .panel-stage .panel-bulk .panel-submit {
    width: 100%;
  }
  .mission.is-panel .panel-stage .panel-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
    max-width: 100%;
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    touch-action: pan-y;
  }
  .mission.is-panel .panel-stage .panel-table {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100%;
  }
  .mission.is-panel .panel-stage .panel-table,
  .mission.is-panel .panel-stage .panel-table tbody {
    display: block;
    width: 100%;
  }
  .mission.is-panel .panel-stage .panel-table thead {
    display: none !important;
  }
  .mission.is-panel .panel-stage .panel-table tbody {
    display: grid !important;
    gap: 10px;
    width: 100%;
  }
  .mission.is-panel .panel-stage .panel-m-only {
    display: block !important;
    width: 100%;
  }
  .mission.is-panel .panel-stage .panel-d-only {
    display: none !important;
  }
  .mission.is-panel .panel-stage .panel-m-only > td {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
  }
  .mission.is-panel .panel-stage .panel-table tbody tr.panel-row-empty {
    display: block;
    padding: 16px;
    border: 1px dashed rgba(120, 160, 210, 0.22);
    border-radius: 14px;
    background: rgba(4, 8, 16, 0.35);
    text-align: center;
  }
  .mission.is-panel .panel-stage .panel-table tr.panel-row-empty td::before {
    display: none;
  }
  .mission.is-panel .panel-stage .panel-m-item {
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(100, 160, 230, 0.16);
    background:
      linear-gradient(145deg, rgba(36, 82, 160, 0.16), transparent 58%),
      rgba(8, 14, 26, 0.9);
    box-shadow:
      inset 0 1px 0 rgba(140, 200, 255, 0.07),
      0 10px 24px rgba(0, 10, 30, 0.16);
    display: grid;
    gap: 8px;
  }
  .mission.is-panel .panel-stage .panel-m-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  .mission.is-panel .panel-stage .panel-m-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #dff0ff;
    background: rgba(70, 130, 220, 0.2);
    border: 1px solid rgba(120, 190, 255, 0.18);
    line-height: 1.2;
  }
  .mission.is-panel .panel-stage .panel-m-amount {
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  .mission.is-panel .panel-stage .panel-m-id {
    font-size: 0.8rem;
    color: rgba(190, 215, 245, 0.88);
  }
  .mission.is-panel .panel-stage .panel-m-line {
    font-size: 0.86rem;
    line-height: 1.35;
    color: #eaf2ff;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .mission.is-panel .panel-stage .panel-m-line span[aria-hidden="true"] {
    color: rgba(140, 190, 255, 0.55);
    font-size: 0.9rem;
  }
  .mission.is-panel .panel-stage .panel-m-comment {
    color: rgba(200, 220, 245, 0.9);
  }
  .mission.is-panel .panel-stage .panel-m-meta {
    font-size: 0.74rem;
    color: rgba(150, 185, 225, 0.78);
    line-height: 1.35;
  }
  .mission.is-panel .panel-stage .panel-m-actions {
    padding-top: 4px;
  }
  .mission.is-panel .panel-stage .panel-m-btn {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    font-size: 0.82rem;
  }
  .mission.is-panel .panel-stage .panel-m-req-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .mission.is-panel .panel-stage .panel-m-req-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
  }
  .mission.is-panel .panel-stage .panel-m-req-number {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .mission.is-panel .panel-stage .panel-m-req-meta {
    display: grid;
    gap: 6px;
  }
  .mission.is-panel .panel-stage .panel-m-req-meta span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .mission.is-panel .panel-stage .panel-m-req-meta em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(140, 190, 255, 0.72);
    flex-shrink: 0;
  }
  .mission.is-panel .panel-stage .panel-m-stat-day {
    gap: 10px;
  }
  .mission.is-panel .panel-stage .panel-m-stat-date {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
  }
  .mission.is-panel .panel-stage .panel-m-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .mission.is-panel .panel-stage .panel-m-stat-grid > div {
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(120, 170, 230, 0.1);
  }
  .mission.is-panel .panel-stage .panel-m-stat-grid span {
    font-size: 0.64rem;
    color: rgba(150, 185, 225, 0.75);
  }
  .mission.is-panel .panel-stage .panel-m-stat-grid em {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 650;
    color: #fff;
    font-variant-numeric: tabular-nums;
  }
  .mission.is-panel .panel-stage .panel-stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .mission.is-panel .panel-stage .panel-stat-card {
    min-height: 0;
    padding: 10px 11px;
    border-radius: 12px;
  }
  .mission.is-panel .panel-stage .panel-stat-card span {
    font-size: 0.62rem;
    line-height: 1.2;
  }
  .mission.is-panel .panel-stage .panel-stat-card strong {
    font-size: 0.9rem;
    margin-top: 4px;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
  }
  .mission.is-panel .panel-stage .panel-input {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 0.9rem;
  }
  .mission.is-panel .panel-stage .panel-submit {
    min-height: 42px;
  }
  .mission.is-panel .panel-stage .panel-m-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .mission.is-panel .panel-stage .panel-m-stat-grid {
    grid-template-columns: 1fr;
  }
}

html.apk-webview .mission.is-apps #apps-stage,
html.apk-webview .mission.is-settings #settings-stage {
  padding-left: 0;
  padding-right: 0;
}
html.apk-webview .mission.is-panel .panel-stage {
  padding-left: 0;
  padding-right: 0;
}
html.apk-webview .mission.is-panel .panel-stage .panel-app {
  padding-top: 10px;
  padding-bottom: 10px;
}
html.apk-webview .mission.is-panel .panel-stage .panel-body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: none;
  touch-action: pan-y;
}
html.apk-webview .mission.is-panel .panel-stage .panel-table-wrap {
  border: 0;
  background: transparent;
  overflow: visible;
  max-height: none;
  max-width: 100%;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  touch-action: pan-y;
}
html.apk-webview .mission.is-panel .panel-stage .panel-table {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
}
html.apk-webview .mission.is-panel .panel-stage .panel-table thead {
  display: none !important;
}
html.apk-webview .mission.is-panel .panel-stage .panel-table tbody {
  display: grid !important;
  gap: 10px;
  width: 100%;
}
html.apk-webview .mission.is-panel .panel-stage .panel-m-only {
  display: block !important;
  width: 100%;
}
html.apk-webview .mission.is-panel .panel-stage .panel-d-only {
  display: none !important;
}
html.apk-webview .mission.is-panel .panel-stage .panel-m-only > td {
  display: block;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
}
html.apk-webview .mission.is-panel .panel-stage .panel-card {
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}
html.apk-webview .mission.is-panel .panel-stage .panel-card::before {
  display: none;
}

.mission.is-panel .panel-stage.is-mobile-cards .panel-body,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-body {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-y: none;
  touch-action: pan-y;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-table-wrap,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-table-wrap {
  border: 0;
  background: transparent;
  overflow: visible;
  max-height: none;
  max-width: 100%;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  touch-action: pan-y;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-table,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-table {
  display: block !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-table thead,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-table thead {
  display: none !important;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-table tbody,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-table tbody {
  display: grid !important;
  gap: 10px;
  width: 100%;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-only > td,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-only > td {
  display: block;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-card,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-card {
  padding: 0;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-orders-layout,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-orders-layout {
  flex: 0 0 auto;
  overflow: visible;
  min-height: 0;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-card::before,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-card::before {
  display: none;
}

.mission.is-panel .panel-stage.is-mobile-cards .panel-m-item,
html.apk-webview .mission.is-panel .panel-stage .panel-m-item,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-item {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(100, 160, 230, 0.16);
  background:
    linear-gradient(145deg, rgba(36, 82, 160, 0.16), transparent 58%),
    rgba(8, 14, 26, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(140, 200, 255, 0.07),
    0 10px 24px rgba(0, 10, 30, 0.16);
  display: grid;
  gap: 8px;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-top,
html.apk-webview .mission.is-panel .panel-stage .panel-m-top,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-tag,
html.apk-webview .mission.is-panel .panel-stage .panel-m-tag,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #dff0ff;
  background: rgba(70, 130, 220, 0.2);
  border: 1px solid rgba(120, 190, 255, 0.18);
  line-height: 1.2;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-amount,
html.apk-webview .mission.is-panel .panel-stage .panel-m-amount,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-amount {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-id,
html.apk-webview .mission.is-panel .panel-stage .panel-m-id,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-id {
  font-size: 0.8rem;
  color: rgba(190, 215, 245, 0.88);
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-line,
html.apk-webview .mission.is-panel .panel-stage .panel-m-line,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-line {
  font-size: 0.86rem;
  line-height: 1.35;
  color: #eaf2ff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-line span[aria-hidden="true"],
html.apk-webview .mission.is-panel .panel-stage .panel-m-line span[aria-hidden="true"],
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-line span[aria-hidden="true"] {
  color: rgba(140, 190, 255, 0.55);
  font-size: 0.9rem;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-comment,
html.apk-webview .mission.is-panel .panel-stage .panel-m-comment,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-comment {
  color: rgba(200, 220, 245, 0.9);
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-meta,
html.apk-webview .mission.is-panel .panel-stage .panel-m-meta,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-meta {
  font-size: 0.74rem;
  color: rgba(150, 185, 225, 0.78);
  line-height: 1.35;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-actions,
html.apk-webview .mission.is-panel .panel-stage .panel-m-actions,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-actions {
  padding-top: 4px;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-btn,
html.apk-webview .mission.is-panel .panel-stage .panel-m-btn,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  font-size: 0.82rem;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-req-head,
html.apk-webview .mission.is-panel .panel-stage .panel-m-req-head,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-req-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-req-pills,
html.apk-webview .mission.is-panel .panel-stage .panel-m-req-pills,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-req-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-req-number,
html.apk-webview .mission.is-panel .panel-stage .panel-m-req-number,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-req-number {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.35;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-req-meta,
html.apk-webview .mission.is-panel .panel-stage .panel-m-req-meta,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-req-meta {
  display: grid;
  gap: 6px;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-req-meta span,
html.apk-webview .mission.is-panel .panel-stage .panel-m-req-meta span,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-req-meta span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-m-req-meta em,
html.apk-webview .mission.is-panel .panel-stage .panel-m-req-meta em,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-m-req-meta em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(140, 190, 255, 0.72);
  flex-shrink: 0;
}

.mission.is-panel .panel-stage.is-mobile-cards .panel-filters,
html.apk-webview .mission.is-panel .panel-stage .panel-filters,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-filters,
.mission.is-panel .panel-stage.is-mobile-cards .panel-bulk,
html.apk-webview .mission.is-panel .panel-stage .panel-bulk,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-bulk {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(100, 160, 230, 0.16);
  background:
    linear-gradient(145deg, rgba(36, 82, 160, 0.12), transparent 58%),
    rgba(8, 14, 26, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(140, 200, 255, 0.06),
    0 8px 20px rgba(0, 10, 30, 0.12);
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-filters--stats,
html.apk-webview .mission.is-panel .panel-stage .panel-filters--stats,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-filters--stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-filters--stats .panel-submit,
html.apk-webview .mission.is-panel .panel-stage .panel-filters--stats .panel-submit,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-filters--stats .panel-submit {
  grid-column: 1 / -1;
  width: 100%;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-filters--stats .panel-field,
html.apk-webview .mission.is-panel .panel-stage .panel-filters--stats .panel-field,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-filters--stats .panel-field {
  width: auto;
  min-width: 0;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-filters--wrap,
html.apk-webview .mission.is-panel .panel-stage .panel-filters--wrap,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-filters--wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-field,
.mission.is-panel .panel-stage.is-mobile-cards .panel-field--grow,
html.apk-webview .mission.is-panel .panel-stage .panel-field,
html.apk-webview .mission.is-panel .panel-stage .panel-field--grow,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-field,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-field--grow {
  flex: 1 1 auto;
  min-width: 0 !important;
  width: 100%;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-filters .panel-submit,
.mission.is-panel .panel-stage.is-mobile-cards .panel-bulk .panel-select,
.mission.is-panel .panel-stage.is-mobile-cards .panel-bulk .panel-submit,
html.apk-webview .mission.is-panel .panel-stage .panel-filters .panel-submit,
html.apk-webview .mission.is-panel .panel-stage .panel-bulk .panel-select,
html.apk-webview .mission.is-panel .panel-stage .panel-bulk .panel-submit,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-filters .panel-submit,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-bulk .panel-select,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-bulk .panel-submit {
  width: 100%;
  min-height: 42px;
  align-self: stretch;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-bulk .panel-select,
html.apk-webview .mission.is-panel .panel-stage .panel-bulk .panel-select,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-bulk .panel-select {
  flex: 1 1 auto;
  min-width: 0 !important;
  max-width: none;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-input,
html.apk-webview .mission.is-panel .panel-stage .panel-input,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-input {
  min-height: 42px;
  padding: 9px 11px;
  font-size: 0.9rem;
}
.mission.is-panel .panel-stage.is-mobile-cards .panel-section-head,
html.apk-webview .mission.is-panel .panel-stage .panel-section-head,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-section-head {
  margin-bottom: 2px;
}

@media (max-width: 760px) {
  .mission.is-panel .panel-stage,
  .mission.is-panel .panel-stage .panel-body,
  .mission.is-panel .panel-stage .panel-table-wrap,
  .mission.is-panel .panel-stage .panel-subtabs-menu,
  .mission.is-panel .panel-stage .panel-select-menu,
  .mission.is-panel .panel-stage .panel-section-dropdown {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mission.is-panel .panel-stage::-webkit-scrollbar,
  .mission.is-panel .panel-stage .panel-body::-webkit-scrollbar,
  .mission.is-panel .panel-stage .panel-table-wrap::-webkit-scrollbar,
  .mission.is-panel .panel-stage .panel-subtabs-menu::-webkit-scrollbar,
  .mission.is-panel .panel-stage .panel-select-menu::-webkit-scrollbar,
  .mission.is-panel .panel-stage .panel-section-dropdown::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
html.apk-webview .mission.is-panel .panel-stage,
html.apk-webview .mission.is-panel .panel-stage .panel-body,
html.apk-webview .mission.is-panel .panel-stage .panel-table-wrap,
html.apk-webview .mission.is-panel .panel-stage .panel-subtabs-menu,
html.apk-webview .mission.is-panel .panel-stage .panel-select-menu,
html.apk-webview .mission.is-panel .panel-stage .panel-section-dropdown,
.mission.is-panel .panel-stage.is-mobile-cards,
.mission.is-panel .panel-stage.is-mobile-cards .panel-body,
.mission.is-panel .panel-stage.is-mobile-cards .panel-table-wrap,
.mission.is-panel .panel-stage.is-mobile-cards .panel-subtabs-menu,
.mission.is-panel .panel-stage.is-mobile-cards .panel-select-menu,
.mission.is-panel .panel-stage.is-mobile-cards .panel-section-dropdown,
html.panel-mobile-cards .mission.is-panel .panel-stage,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-body,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-table-wrap,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-subtabs-menu,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-select-menu,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-section-dropdown {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html.apk-webview .mission.is-panel .panel-stage::-webkit-scrollbar,
html.apk-webview .mission.is-panel .panel-stage .panel-body::-webkit-scrollbar,
html.apk-webview .mission.is-panel .panel-stage .panel-table-wrap::-webkit-scrollbar,
html.apk-webview .mission.is-panel .panel-stage .panel-subtabs-menu::-webkit-scrollbar,
html.apk-webview .mission.is-panel .panel-stage .panel-select-menu::-webkit-scrollbar,
html.apk-webview .mission.is-panel .panel-stage .panel-section-dropdown::-webkit-scrollbar,
.mission.is-panel .panel-stage.is-mobile-cards::-webkit-scrollbar,
.mission.is-panel .panel-stage.is-mobile-cards .panel-body::-webkit-scrollbar,
.mission.is-panel .panel-stage.is-mobile-cards .panel-table-wrap::-webkit-scrollbar,
.mission.is-panel .panel-stage.is-mobile-cards .panel-subtabs-menu::-webkit-scrollbar,
.mission.is-panel .panel-stage.is-mobile-cards .panel-select-menu::-webkit-scrollbar,
.mission.is-panel .panel-stage.is-mobile-cards .panel-section-dropdown::-webkit-scrollbar,
html.panel-mobile-cards .mission.is-panel .panel-stage::-webkit-scrollbar,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-body::-webkit-scrollbar,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-table-wrap::-webkit-scrollbar,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-subtabs-menu::-webkit-scrollbar,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-select-menu::-webkit-scrollbar,
html.panel-mobile-cards .mission.is-panel .panel-stage .panel-section-dropdown::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.app-tile {
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}
button.app-tile {
  appearance: none;
  display: flex;
  width: 100%;
}
a.app-tile {
  text-decoration: none;
}

.panel-stage .panel-trading-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: none;
}
.panel-stage .panel-card[data-panel-panel="trading"] {
  width: 100%;
  max-width: none;
}
.panel-stage .panel-trading-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 2px;
  cursor: pointer;
}
.panel-stage .panel-trading-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.panel-stage .panel-trading-toggle-ui {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(100, 120, 150, 0.28);
  border: 1px solid rgba(160, 190, 230, 0.16);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.panel-stage .panel-trading-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4f8ff, #d7e6ff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}
.panel-stage .panel-trading-toggle-input:checked + .panel-trading-toggle-ui {
  background: linear-gradient(90deg, rgba(42, 170, 120, 0.72), rgba(72, 210, 150, 0.78));
  border-color: rgba(110, 235, 180, 0.4);
  box-shadow: 0 0 0 3px rgba(70, 200, 140, 0.1);
}
.panel-stage .panel-trading-toggle-input:checked + .panel-trading-toggle-ui::after {
  transform: translateX(20px);
}
.panel-stage .panel-trading-toggle-input:focus-visible + .panel-trading-toggle-ui {
  outline: 2px solid rgba(120, 190, 255, 0.65);
  outline-offset: 2px;
}
.panel-stage .panel-trading-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.panel-stage .panel-trading-toggle-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text, #e8f1ff);
}
.panel-stage .panel-hint {
  display: block;
  margin-top: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(176, 200, 228, 0.7);
}
.panel-stage .panel-trading-sections {
  display: grid;
  gap: 0;
  border: 1px solid rgba(90, 160, 255, 0.12);
  border-radius: 16px;
  background: rgba(8, 14, 26, 0.35);
  overflow: hidden;
}
.panel-stage .panel-trading-section {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}
.panel-stage .panel-trading-section + .panel-trading-section {
  border-top: 1px solid rgba(90, 160, 255, 0.1);
}
.panel-stage .panel-trading-section-head {
  display: grid;
  gap: 4px;
}
.panel-stage .panel-trading-section-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(210, 228, 248, 0.92);
}
.panel-stage .panel-trading-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.panel-stage .panel-trading-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel-stage .panel-trading-field {
  min-width: 0;
  width: 100%;
  gap: 6px;
}
.panel-stage .panel-trading-field--pct {
  max-width: 280px;
}
.panel-stage .panel-trading-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(170, 198, 228, 0.82);
}
.panel-stage .panel-trading-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(4, 8, 16, 0.78);
  border-color: rgba(90, 160, 255, 0.16);
}
.panel-stage .panel-trading-pct-wrap {
  position: relative;
  display: block;
}
.panel-stage .panel-trading-pct-wrap .panel-trading-input {
  padding-right: 36px;
}
.panel-stage .panel-trading-suffix {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(160, 190, 230, 0.55);
  pointer-events: none;
}
.panel-stage .panel-trading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}
.panel-stage .panel-trading-note {
  margin: 0;
}

@media (max-width: 820px) {
  .panel-stage .panel-trading-row,
  .panel-stage .panel-trading-row--3 {
    grid-template-columns: 1fr;
  }
  .panel-stage .panel-trading-field--pct {
    max-width: none;
  }
}

/* ??? TestQR (GamesLord) ??? */
.app-tile-art--testqr {
  width: 118px;
  height: 118px;
  right: -4px;
  bottom: -14px;
  transform: rotate(8deg);
}
.app-art-testqr {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background:
    linear-gradient(155deg, #3dffa8 0%, #2ec4a0 38%, #1a6b8a 72%, #2a4a9a 100%);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.app-art-testqr-frame {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 36%),
    #07141c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.app-art-testqr-frame .c {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  box-sizing: border-box;
  border: 3px solid rgba(180, 255, 230, 0.92);
  background:
    linear-gradient(145deg, rgba(61, 255, 168, 0.55), rgba(90, 160, 255, 0.2));
  box-shadow: inset 0 0 0 3px #07141c;
}
.app-art-testqr-frame .c.tl {
  top: 7px;
  left: 7px;
}
.app-art-testqr-frame .c.tr {
  top: 7px;
  right: 7px;
  border-color: rgba(255, 190, 220, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 126, 179, 0.55), rgba(154, 108, 255, 0.28));
}
.app-art-testqr-frame .c.bl {
  bottom: 7px;
  left: 7px;
}
.app-art-testqr-frame .d {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: rgba(150, 240, 210, 0.72);
}
.app-art-testqr-frame .d1 { top: 12px; left: 32px; }
.app-art-testqr-frame .d2 { top: 12px; left: 41px; width: 10px; background: rgba(120, 190, 255, 0.55); }
.app-art-testqr-frame .d3 { top: 28px; left: 28px; }
.app-art-testqr-frame .d4 { top: 28px; left: 37px; height: 10px; background: rgba(255, 140, 190, 0.55); }
.app-art-testqr-frame .d5 { top: 28px; left: 46px; }
.app-art-testqr-frame .d6 { top: 40px; left: 32px; width: 14px; background: rgba(180, 255, 230, 0.45); }
.app-art-testqr-frame .d7 { top: 48px; left: 41px; background: rgba(154, 108, 255, 0.55); }
.app-art-testqr-chip {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 800 0.68rem/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
  color: #102040;
  background: linear-gradient(145deg, #dffbff, #7ad7ff);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: rotate(10deg);
}

/* Isolate TestQR from panel/HGBase layout (never share .panel-stage). */
.mission.is-testqr .mission-grid {
  display: none !important;
}
.mission.is-testqr .tabs {
  display: none !important;
}
.mission.is-testqr .testqr-stage {
  display: flex;
}
.testqr-stage {
  position: relative;
  z-index: 4;
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.testqr-stage.hidden {
  display: none !important;
}
.testqr-app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 12px 14px 18px;
  gap: 14px;
}
.testqr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.testqr-head-copy {
  flex: 1;
  min-width: 0;
}
.testqr-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #eef7ff;
}
.testqr-head-meta {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(170, 200, 230, 0.62);
}
.testqr-work-btn {
  min-width: 168px;
  border-radius: 999px;
  font-weight: 700;
}
.testqr-work-btn.is-stop {
  background: linear-gradient(180deg, #ffb4a8, #e56a5a);
  color: #1a0806;
  border-color: rgba(255, 140, 120, 0.45);
  box-shadow: 0 8px 22px rgba(200, 70, 50, 0.28);
}
.testqr-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 8px;
  min-height: 0;
}
.testqr-idle[hidden],
.testqr-body[hidden],
.testqr-msg[hidden] {
  display: none !important;
}
.testqr-app.is-working .testqr-idle {
  display: none !important;
}
.testqr-app:not(.is-working) .testqr-body {
  display: none !important;
}
.testqr-idle-card {
  width: min(440px, 100%);
  padding: 28px 24px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(40, 70, 68, 0.35), transparent 50%),
    rgba(10, 16, 24, 0.78);
  border: 1px solid rgba(90, 220, 180, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: testqr-fade-up 0.45s ease both;
}
.testqr-idle-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(120, 240, 200, 0.78);
}
.testqr-idle-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(220, 235, 250, 0.88);
}
.testqr-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
  animation: testqr-fade-up 0.4s ease both;
}
.testqr-body.is-testqr-no-stats {
  grid-template-columns: minmax(0, 1fr);
}
.testqr-body.is-testqr-no-stats > .testqr-stats {
  /* deprecated: GamesLord now sees shared ledger in .testqr-stats */
  display: flex;
}
/* Shared stats list is visible to all TestQR users; form stays Blademaster-only. */
.testqr-app:not(.is-stats-manager) .testqr-shift-form {
  display: none !important;
}
.testqr-stats {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
}
.testqr-body.is-testqr-no-stats > .testqr-orders {
  grid-column: 1;
}
.testqr-orders {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
}
#testqr-shifts {
  display: none;
}
.testqr-body.has-shifts > #testqr-shifts {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  max-height: 240px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(14, 20, 30, 0.94), rgba(8, 12, 18, 0.88));
  border: 1px solid rgba(120, 160, 190, 0.16);
  overflow: hidden;
}
.testqr-body.is-testqr-live-stats.has-shifts > #testqr-shifts {
  /* Blademaster: live metrics take left column; keep shared list under hero via stats panel only */
  display: none;
}
.testqr-shared-ledger {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.testqr-shared-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(232, 242, 255, 0.92);
}
.testqr-shared-list {
  max-height: min(42vh, 360px);
  overflow: auto;
}
.testqr-body.is-testqr-live-stats > .testqr-stats {
  grid-column: 1;
  grid-row: 1;
}
.testqr-body:not(.is-testqr-live-stats) > .testqr-stats {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
}
.testqr-body:not(.is-testqr-live-stats).has-shifts {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}
.testqr-body:not(.is-testqr-live-stats).has-shifts > .testqr-orders {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.testqr-shifts--idle {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: min(70vh, 560px);
  flex: 0 1 auto;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14, 20, 30, 0.94), rgba(8, 12, 18, 0.88));
  border: 1px solid rgba(120, 160, 190, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.testqr-shifts--idle[hidden] {
  display: none !important;
}
.testqr-app.is-working .testqr-shifts--idle {
  display: none !important;
}
.testqr-shifts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(120, 160, 190, 0.08);
  background: rgba(255, 255, 255, 0.02);
  flex: 0 0 auto;
}
.testqr-shifts-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(232, 242, 255, 0.92);
}
.testqr-shifts-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.testqr-shifts-empty {
  margin: 18px 10px;
  text-align: center;
  color: rgba(170, 195, 220, 0.55);
  font-size: 0.8rem;
  line-height: 1.4;
}
.testqr-shift-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(120, 160, 190, 0.1);
}
.testqr-shift-date {
  font-size: 0.72rem;
  color: rgba(170, 195, 220, 0.62);
}
.testqr-shift-sum {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5faff;
  font-variant-numeric: tabular-nums;
}
.testqr-shift-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 14px 14px;
  border-bottom: 1px solid rgba(120, 160, 190, 0.1);
  flex: 0 0 auto;
}
.testqr-shift-save {
  width: 100%;
  margin-top: 2px;
}
.testqr-shift-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
.testqr-shift-period {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.testqr-shift-period .testqr-shift-field {
  margin-bottom: 12px;
}
.testqr-shift-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(160, 190, 210, 0.72);
}
.testqr-shift-input {
  width: 100%;
  box-sizing: border-box;
}
.testqr-shift-input--sum {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.testqr-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}
.testqr-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(90, 220, 180, 0.22);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(90, 220, 180, 0.22), transparent 55%),
    linear-gradient(165deg, rgba(16, 28, 34, 0.96), rgba(8, 12, 18, 0.94));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.testqr-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(90, 220, 180, 0.18), transparent 70%);
  pointer-events: none;
}
.testqr-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.testqr-hero-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(170, 210, 200, 0.72);
}
.testqr-hero-pct {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 240, 250, 0.9);
}
.testqr-hero.is-up .testqr-hero-pct {
  color: #041018;
  background: linear-gradient(180deg, #b8ffe8, #5adcb4);
  border-color: transparent;
}
.testqr-hero.is-down .testqr-hero-pct {
  color: #1a0806;
  background: linear-gradient(180deg, #ffc4b8, #e56a5a);
  border-color: transparent;
}
.testqr-hero.is-new .testqr-hero-pct {
  color: #0a1420;
  background: linear-gradient(180deg, #d7e8ff, #8eb6e8);
  border-color: transparent;
}
.testqr-hero-sum {
  display: block;
  position: relative;
  z-index: 1;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f2fff9;
  line-height: 1.1;
}
.testqr-hero-sub {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: rgba(180, 210, 200, 0.65);
}
.testqr-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.testqr-metric {
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(10, 16, 24, 0.72);
  border: 1px solid rgba(120, 160, 190, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.testqr-metric:hover {
  transform: translateY(-1px);
  border-color: rgba(90, 220, 180, 0.28);
}
.testqr-metric span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(160, 190, 210, 0.62);
}
.testqr-metric strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #eef7ff;
  word-break: break-word;
}
.testqr-orders {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14, 20, 30, 0.94), rgba(8, 12, 18, 0.88));
  border: 1px solid rgba(120, 160, 190, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.testqr-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(120, 160, 190, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.testqr-orders-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(232, 242, 255, 0.92);
}
.testqr-orders-count {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(180deg, #c8ffe8, #6ae6bc);
  box-shadow: 0 2px 10px rgba(90, 220, 180, 0.22);
}
.testqr-closed-list,
.testqr-orders-list {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: none;
}
.testqr-orders-empty {
  margin: 16px 10px;
  text-align: center;
  color: rgba(170, 195, 220, 0.55);
  font-size: 0.84rem;
  line-height: 1.4;
}
.testqr-order {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(120, 160, 190, 0.09);
}
.testqr-order::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: rgba(140, 170, 200, 0.3);
}
.testqr-order.is-done::before {
  background: #5adcb4;
}
.testqr-order.is-error::before {
  background: #e56a5a;
}
.testqr-order.is-waiting::before {
  background: #5eb8e8;
}
.testqr-order-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.testqr-order-row-main {
  justify-content: space-between;
}
.testqr-order-row-sub {
  flex-wrap: wrap;
  gap: 6px 10px;
}
.testqr-order-amount {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5faff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.testqr-order-pill {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.35;
  color: rgba(210, 225, 240, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.testqr-order-pill.is-done {
  color: #b8f5d4;
  background: rgba(90, 220, 180, 0.12);
  border-color: rgba(90, 220, 180, 0.25);
}
.testqr-order-pill.is-error {
  color: #ffc4b8;
  background: rgba(229, 106, 90, 0.14);
  border-color: rgba(229, 106, 90, 0.25);
}
.testqr-order-pill.is-waiting {
  color: #b8e8ff;
  background: rgba(94, 184, 232, 0.12);
  border-color: rgba(94, 184, 232, 0.25);
}
.testqr-order-acc {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  color: rgba(180, 220, 240, 0.88);
  background: rgba(100, 150, 190, 0.1);
  border: 1px solid rgba(120, 170, 210, 0.16);
}
.testqr-order-acc.is-dqr {
  color: rgba(190, 235, 255, 0.95);
  background: rgba(70, 160, 220, 0.1);
  border-color: rgba(80, 170, 230, 0.22);
}
.testqr-order-acc.is-bl2qr {
  color: rgba(198, 245, 215, 0.95);
  background: rgba(80, 200, 150, 0.08);
  border-color: rgba(90, 210, 160, 0.22);
}
.testqr-order-meta {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.68rem;
  color: rgba(170, 195, 220, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testqr-order-meta-item,
.testqr-order-meta-dot {
  display: none;
}
.testqr-order-status,
.testqr-order-who {
  display: none;
}
.testqr-msg {
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  color: rgba(210, 230, 250, 0.9);
  background: rgba(40, 70, 100, 0.35);
  border: 1px solid rgba(120, 170, 220, 0.2);
}
.testqr-msg.is-error {
  color: #ffd5ce;
  background: rgba(120, 40, 36, 0.35);
  border-color: rgba(230, 100, 90, 0.35);
}

@keyframes testqr-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop: hide sheet chrome */
.testqr-sheet-handle {
  display: none;
}

@media (max-width: 900px) {
  .testqr-app {
    padding: 6px 10px 0;
    gap: 8px;
    overscroll-behavior-y: none;
  }
  .testqr-stage {
    overscroll-behavior-y: none;
    touch-action: pan-y;
  }
  html.is-testqr-sheet-drag,
  html.is-testqr-sheet-drag body {
    overscroll-behavior: none;
    touch-action: none;
  }
  .testqr-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .testqr-head-copy {
    min-width: 0;
    flex: 1 1 auto;
  }
  .testqr-work-btn {
    width: auto;
    min-width: 72px;
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 0.84rem;
    font-weight: 750;
    border-radius: 14px;
  }
  /* Idle: one scroll column ? form + list, no nested 70vh trap */
  .testqr-idle {
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 4px 0 calc(18px + env(safe-area-inset-bottom, 0px));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .testqr-idle-card {
    width: 100%;
    padding: 14px 14px 12px;
    border-radius: 16px;
    flex: 0 0 auto;
  }
  .testqr-idle-kicker {
    margin-bottom: 4px;
    font-size: 0.66rem;
  }
  .testqr-idle-text {
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .testqr-shifts--idle {
    width: 100%;
    max-height: none;
    flex: 0 0 auto;
    border-radius: 16px;
    overflow: visible;
  }
  .testqr-shifts-head {
    padding: 12px 14px 8px;
  }
  .testqr-shift-form {
    padding: 8px 12px 12px;
    gap: 0;
  }
  .testqr-shift-field {
    margin: 0 0 10px;
    gap: 4px;
  }
  .testqr-shift-period {
    gap: 8px;
  }
  .testqr-shift-period .testqr-shift-field {
    margin-bottom: 10px;
  }
  .testqr-shift-label {
    font-size: 0.64rem;
  }
  .testqr-shift-input.panel-input,
  .testqr-shift-form .panel-input {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px; /* prevent iOS zoom */
    border-radius: 12px;
    color-scheme: dark;
    max-width: 100%;
  }
  .testqr-shift-input[type="date"],
  .testqr-shift-input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.2;
  }
  .testqr-shift-save {
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 750;
  }
  .testqr-shifts-list {
    padding: 8px 10px 12px;
    overflow: visible;
    max-height: none;
  }
  .testqr-shift-card {
    padding: 10px 12px;
  }
  .testqr-body {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }
  .testqr-stats,
  .testqr-orders {
    grid-column: 1;
    grid-row: auto;
  }
  .testqr-body > .testqr-shifts,
  #testqr-shifts {
    display: none !important;
  }
  .testqr-stats {
    max-height: none;
    overflow: auto;
    padding: 2px 2px calc(36vh + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    transition: opacity 0.22s ease, visibility 0.22s ease, max-height 0.22s ease;
  }
  .testqr-body[data-sheet="peek"] .testqr-stats {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  .testqr-body.is-testqr-stats-hidden .testqr-stats {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
  }
  .testqr-hero {
    padding: 16px 16px 14px;
    border-radius: 18px;
  }
  .testqr-hero-sum {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }
  .testqr-metrics {
    grid-template-columns: 1fr;
  }
  .testqr-metric-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
  }
  .testqr-metric-balance span {
    margin: 0;
  }
  .testqr-metric-balance strong {
    font-size: 1.15rem;
    text-align: right;
  }
  .testqr-sheet-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 4px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    flex: 0 0 auto;
  }
  .testqr-sheet-grip {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(180, 210, 230, 0.42);
  }
  .testqr-orders-head {
    touch-action: none;
    user-select: none;
    padding: 8px 14px 10px;
  }
  .testqr-orders-title {
    font-size: 0.86rem;
  }
  .testqr-orders {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    min-height: 0;
    height: min(42vh, 360px);
    max-height: calc(100% - 56px);
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    box-shadow:
      0 -12px 40px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:
      linear-gradient(180deg, rgba(18, 26, 36, 0.98), rgba(8, 12, 18, 0.98));
    transform: translate3d(0, var(--sheet-drag, 0px), 0);
    transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s ease;
    will-change: transform, height;
    touch-action: pan-y;
    overscroll-behavior: none;
  }
  .testqr-orders.is-dragging {
    transition: none;
    touch-action: none;
  }
  .testqr-body[data-sheet="peek"] .testqr-orders,
  .testqr-orders[data-sheet="peek"] {
    height: calc(78px + env(safe-area-inset-bottom, 0px));
  }
  .testqr-body[data-sheet="mid"] .testqr-orders,
  .testqr-orders[data-sheet="mid"] {
    height: min(42vh, 360px);
  }
  .testqr-body[data-sheet="full"] .testqr-orders,
  .testqr-orders[data-sheet="full"] {
    height: min(84vh, calc(100% - 48px));
  }
  .testqr-body[data-sheet="peek"] .testqr-orders-list,
  .testqr-body[data-sheet="peek"] .testqr-closed-list {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  .testqr-orders.is-empty .testqr-orders-empty {
    margin: 14px 12px 18px;
    font-size: 0.8rem;
  }
  .testqr-orders-list,
  .testqr-closed-list {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
  .testqr-order {
    padding: 8px 10px 8px 11px;
    border-radius: 12px;
    gap: 3px;
  }
  .testqr-order-amount {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .testqr-app {
    padding: 4px 8px 0;
  }
  .testqr-title {
    font-size: 1.02rem;
  }
  .testqr-head-meta {
    font-size: 0.7rem;
  }
  .testqr-work-btn {
    min-width: 68px;
    padding: 9px 14px;
  }
  .testqr-idle {
    gap: 8px;
    padding-top: 2px;
  }
  .testqr-idle-card {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }
  .testqr-idle-text {
    font-size: 0.8rem;
  }
  .testqr-shifts--idle {
    border-radius: 14px;
  }
  .testqr-shift-form {
    padding: 6px 10px 10px;
  }
  .testqr-shift-period {
    grid-template-columns: 1fr 1fr;
  }
  .testqr-hero {
    padding: 14px 14px 12px;
  }
  .testqr-hero-sum {
    font-size: 1.5rem;
  }
  .testqr-metric-balance {
    padding: 12px 14px;
  }
  .testqr-metric-balance strong {
    font-size: 1.05rem;
  }
  .testqr-orders-title {
    font-size: 0.82rem;
  }
}

/* ?? Theme toggle (settings) ?? */
.theme-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.theme-option {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.theme-option strong {
  font-size: 0.9rem;
  font-weight: 700;
}
.theme-option span {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}
.theme-option:hover {
  border-color: color-mix(in srgb, var(--blue) 40%, transparent);
  background: var(--hover-bg);
}
.theme-option.is-active {
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cyan) 28%, transparent);
}
.theme-option.is-active strong {
  color: var(--blue);
}

/* ?? Light theme surface overrides (hardcoded dark chrome) ?? */
html[data-theme="light"] .who-profile {
  border-color: #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .who-profile:hover {
  background: #f8fafc;
}
html[data-theme="light"] .tabs {
  background: color-mix(in srgb, var(--blue) 4%, transparent);
}
html[data-theme="light"] .feed-filter-dropdown,
html[data-theme="light"] .panel-subtabs-menu,
html[data-theme="light"] .panel-section-menu {
  background: var(--dropdown-bg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .feed-filter-dropdown .feed-filter,
html[data-theme="light"] .panel-subtabs-menu button,
html[data-theme="light"] .panel-section-menu button {
  color: var(--text);
}
html[data-theme="light"] .feed-filter-dropdown .feed-filter:hover,
html[data-theme="light"] .feed-filter-dropdown .feed-filter.is-active,
html[data-theme="light"] .panel-subtabs-menu button:hover,
html[data-theme="light"] .panel-section-menu button:hover,
html[data-theme="light"] .panel-subtabs-menu button[aria-checked="true"],
html[data-theme="light"] .panel-section-menu button[aria-checked="true"] {
  color: var(--ink);
  background: var(--hover-bg);
}
html[data-theme="light"] .feed-filter-more {
  color: var(--muted);
}
html[data-theme="light"] .feed-filter-more:hover {
  color: var(--ink);
  background: var(--hover-bg);
}
html[data-theme="light"] .feed-filter-more-dot {
  box-shadow: 0 0 0 2px var(--panel-solid);
}
html[data-theme="light"] .fleet-item,
html[data-theme="light"] .chat-item {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .chat-item::before {
  opacity: 0.35;
  box-shadow: none;
  background: linear-gradient(180deg, #60a5fa, #2563eb 60%, transparent);
}
html[data-theme="light"] .chat-item:hover {
  background: #f8fafc;
  border-color: #d1d5db;
  transform: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .chat-item.is-active {
  background: color-mix(in srgb, var(--blue) 6%, #fff);
  border-color: color-mix(in srgb, var(--blue) 32%, #e5e7eb);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}
html[data-theme="light"] .chat-item.is-active::before {
  opacity: 1;
  width: 3px;
  box-shadow: none;
  background: #2563eb;
}
html[data-theme="light"] .chat-avatar {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--blue) 22%, #e5e7eb),
    0 2px 6px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .chat-name,
html[data-theme="light"] .orbit-stat strong,
html[data-theme="light"] .settings-title,
html[data-theme="light"] .feed-peer #feed-title,
html[data-theme="light"] .feed-peer-text h2 {
  color: var(--ink);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--ink);
  filter: none;
  text-shadow: none;
}
html[data-theme="light"] .chat-name::after,
html[data-theme="light"] .feed-peer #feed-title::after {
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0.55;
}
html[data-theme="light"] .chat-item.has-unread .chat-name {
  filter: none;
}
html[data-theme="light"] .chat-item.has-unread {
  background: color-mix(in srgb, var(--blue) 8%, var(--elevated));
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
}
html[data-theme="light"] .chat-preview,
html[data-theme="light"] .chat-time,
html[data-theme="light"] .orbit-stat span,
html[data-theme="light"] .chat-preview.is-unread {
  color: var(--muted);
  text-shadow: none;
}
html[data-theme="light"] .chat-preview.is-unread {
  color: var(--ink-soft);
  font-weight: 600;
}
html[data-theme="light"] .orbit-stage {
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(37, 99, 235, 0.04), transparent 62%),
    linear-gradient(165deg, #f8fafc, #eef1f6);
}
html[data-theme="light"] .orbit-desk,
html[data-theme="light"] .orbit-stat {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .login-sky,
html[data-theme="light"] .login-stars,
html[data-theme="light"] .login-aurora,
html[data-theme="light"] .login-beams,
html[data-theme="light"] .login-horizon,
html[data-theme="light"] .login-scan {
  opacity: 0.35;
}
html[data-theme="light"] .fin-card,
html[data-theme="light"] .fin-token,
html[data-theme="light"] .login-ticker,
html[data-theme="light"] .fin-bars {
  background: var(--elevated);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}
html[data-theme="light"] .fin-hub-core {
  background: #eff6ff;
  border-color: #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .confirm-modal,
html[data-theme="light"] .toast,
html[data-theme="light"] .media-lightbox-frame,
html[data-theme="light"] .note-composer,
html[data-theme="light"] .apps-stage-panel,
html[data-theme="light"] .panel-card,
html[data-theme="light"] .panel-stage .panel-subtabs-more,
html[data-theme="light"] .mute-room-item {
  background: var(--elevated) !important;
  border-color: var(--line) !important;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .panel-stage .panel-input,
html[data-theme="light"] .testqr-shift-input.panel-input,
html[data-theme="light"] .testqr-shift-form .panel-input {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--line);
  color-scheme: light;
}
html[data-theme="light"] .panel-table th,
html[data-theme="light"] .panel-table td {
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="light"] .panel-table thead th {
  background: color-mix(in srgb, var(--blue) 6%, var(--elevated));
  color: var(--muted);
}
html[data-theme="light"] .panel-table tbody tr:hover td {
  background: var(--hover-bg);
}
html[data-theme="light"] .btn-ghost {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}
html[data-theme="light"] .btn-ghost:hover {
  color: var(--ink);
  background: var(--hover-bg);
}
html[data-theme="light"] .btn-logout,
html[data-theme="light"] .btn-back,
html[data-theme="light"] .btn-apps {
  color: var(--ink-soft);
  border-color: var(--line-strong);
  background: var(--elevated);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .btn-apps {
  color: #1e40af;
  border-color: color-mix(in srgb, var(--blue) 22%, #e5e7eb);
  background: color-mix(in srgb, var(--blue) 6%, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .btn-apps-icon {
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  color: #2563eb;
}
html[data-theme="light"] .btn-apps:hover {
  color: #1e3a8a;
  border-color: color-mix(in srgb, var(--blue) 36%, #e5e7eb);
  background: color-mix(in srgb, var(--blue) 10%, #fff);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
html[data-theme="light"] .btn-logout {
  color: #b91c1c;
  border-color: color-mix(in srgb, var(--danger) 22%, #e5e7eb);
  background: color-mix(in srgb, var(--danger) 5%, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .btn-logout-icon {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: #dc2626;
}
html[data-theme="light"] .btn-logout:hover {
  color: #991b1b;
  border-color: color-mix(in srgb, var(--danger) 36%, #e5e7eb);
  background: color-mix(in srgb, var(--danger) 10%, #fff);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}
html[data-theme="light"] .btn-back {
  color: var(--ink-soft);
  background: var(--elevated);
}
html[data-theme="light"] .btn-back:hover {
  color: var(--ink);
  background: var(--hover-bg);
}
html[data-theme="light"] .mode-pill {
  color: var(--muted);
  background: var(--input-bg);
  border-color: var(--line);
}
html[data-theme="light"] .mode-pill.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  border-color: color-mix(in srgb, var(--blue) 40%, transparent);
}
html[data-theme="light"] .apps-stage-bg,
html[data-theme="light"] .apps-stage-glow,
html[data-theme="light"] .apps-stage-arc,
html[data-theme="light"] .apps-stage-grid {
  opacity: 0.4;
}
html[data-theme="light"] .settings-card .app-tile,
html[data-theme="light"] .settings-card .app-tile:not(.is-featured),
html[data-theme="light"] .settings-card .app-tile.is-featured,
html[data-theme="light"] .settings-card .app-tile.is-featured[data-app="blade1qr"],
html[data-theme="light"] .settings-card .app-tile.is-catalog-tall {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .settings-card .app-tile:hover {
  background: #f8fafc !important;
  border-color: color-mix(in srgb, var(--blue) 28%, #e5e7eb) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
  filter: none;
}
html[data-theme="light"] .settings-card .app-tile-name {
  color: #0f172a !important;
}
html[data-theme="light"] .settings-card .app-tile-meta {
  color: #64748b !important;
}
html[data-theme="light"] .settings-card .app-tile-open {
  background: #f1f5f9;
  border-color: #e5e7eb;
  color: #334155;
}
html[data-theme="light"] .settings-card .app-tile.is-featured[data-app="blade1qr"] {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(45, 212, 191, 0.1), transparent 55%),
    #ffffff !important;
  border-color: color-mix(in srgb, #14b8a6 22%, #e5e7eb) !important;
}
html[data-theme="light"] .settings-card .app-tile.is-featured:not([data-app="blade1qr"]) {
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(37, 99, 235, 0.08), transparent 55%),
    #ffffff !important;
}
html[data-theme="light"] .settings-card .app-tile.is-catalog-tall {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
    #ffffff !important;
}
html[data-theme="light"] .feed-msg,
html[data-theme="light"] .feed-note,
html[data-theme="light"] .bubble,
html[data-theme="light"] .pay-card,
html[data-theme="light"] .note-card,
html[data-theme="light"] .receipt {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .pay-card.is-processed {
  background: color-mix(in srgb, var(--ok) 5%, #fff) !important;
  border-color: color-mix(in srgb, var(--ok) 28%, #e5e7eb) !important;
}
html[data-theme="light"] .pay-card.is-cabinet {
  background: color-mix(in srgb, var(--blue) 4%, #fff) !important;
}
html[data-theme="light"] .pay-card.is-pinned {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--warn) 28%, transparent),
    0 2px 8px rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .pay-card-amount,
html[data-theme="light"] .pay-card.is-processed .pay-card-amount,
html[data-theme="light"] .pay-card.is-new .pay-card-amount {
  color: var(--ink);
  text-shadow: none;
}
html[data-theme="light"] .pay-card-meta,
html[data-theme="light"] .pay-card.is-new .pay-card-meta {
  color: var(--ink-soft);
}
html[data-theme="light"] .pay-card-time {
  color: var(--ink-soft);
}
html[data-theme="light"] .pay-card-terminal {
  color: var(--ink-soft);
}
html[data-theme="light"] .pay-card-status {
  color: var(--ok);
  background: var(--ok-dim);
  border-color: color-mix(in srgb, var(--ok) 28%, var(--line));
}
html[data-theme="light"] .pay-card.tone-bad .pay-card-status {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
}
html[data-theme="light"] .pay-card.tone-wait .pay-card-status {
  color: var(--warn);
  background: var(--warn-dim);
  border-color: color-mix(in srgb, var(--warn) 28%, var(--line));
}
html[data-theme="light"] .pay-card-doubt {
  color: #3b2a08;
}
html[data-theme="light"] .pay-card-bottom {
  border-top-color: var(--line);
}
html[data-theme="light"] .pay-flag-btn {
  background: var(--input-bg);
  border-color: var(--line);
  color: var(--ink-soft);
}
html[data-theme="light"] .pay-flag-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--hover-bg);
}
html[data-theme="light"] .pay-delete-btn {
  color: #b91c1c;
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, #fff);
}
html[data-theme="light"] .note-card.is-mine {
  background: color-mix(in srgb, var(--blue) 5%, #fff) !important;
  border-color: color-mix(in srgb, var(--blue) 28%, #e5e7eb) !important;
}
html[data-theme="light"] .note-card-author,
html[data-theme="light"] .note-card.is-mine .note-card-author {
  color: var(--ink);
}
html[data-theme="light"] .note-card-text,
html[data-theme="light"] .note-card.is-mine .note-card-text {
  color: var(--text);
}
html[data-theme="light"] .note-card-badge,
html[data-theme="light"] .note-card-badge.is-support,
html[data-theme="light"] .note-card-badge.is-operator {
  color: #1e40af;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
}
html[data-theme="light"] .note-card-side.is-mine,
html[data-theme="light"] .note-card-side.is-theirs {
  color: #1e40af;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
}
html[data-theme="light"] .note-card-time,
html[data-theme="light"] .note-card-footer .note-card-time-mini {
  color: var(--muted);
}
html[data-theme="light"] .nebula {
  opacity: 0.28;
  background:
    radial-gradient(ellipse 40% 30% at 65% 45%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(ellipse 35% 25% at 30% 60%, rgba(14, 165, 233, 0.06), transparent);
}
html[data-theme="light"] .stars {
  opacity: 0.35;
}
html[data-theme="light"] .boot-mark {
  background: linear-gradient(145deg, color-mix(in srgb, var(--blue) 16%, #fff), var(--elevated));
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .boot-mark span {
  color: var(--blue);
}
html[data-theme="light"] .boot-sub {
  color: var(--muted);
}
html[data-theme="light"] .boot-bar {
  background: var(--line);
}
html[data-theme="light"] .login-brand,
html[data-theme="light"] .login-brand span {
  color: var(--ink);
}
html[data-theme="light"] .login-tagline {
  color: var(--muted);
}
html[data-theme="light"] .eyebrow {
  color: var(--cyan);
}
html[data-theme="light"] .eyebrow.ok {
  color: var(--ok);
}
html[data-theme="light"] .eyebrow.warn {
  color: var(--warn);
}

/* ?? Light: page chrome, theater, telemetry, composer, fades ?? */
html[data-theme="light"] .space-bg {
  background:
    radial-gradient(1100px 640px at 72% 38%, rgba(37, 99, 235, 0.045), transparent 58%),
    radial-gradient(820px 460px at 14% 82%, rgba(14, 165, 233, 0.03), transparent 55%),
    linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
}
html[data-theme="light"] h2,
html[data-theme="light"] .badge,
html[data-theme="light"] .chat-head h2 {
  color: var(--ink);
}
html[data-theme="light"] .panel {
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .theater-panel {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(37, 99, 235, 0.08), transparent 62%),
    radial-gradient(ellipse 40% 30% at 18% 78%, rgba(5, 150, 105, 0.05), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(238, 242, 248, 0.85));
}
html[data-theme="light"] .orbit-vignette {
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 40%, rgba(15, 23, 42, 0.06) 100%);
}
html[data-theme="light"] .orbit-aurora {
  mix-blend-mode: normal;
  opacity: 0.45;
}
html[data-theme="light"] .orbit-bloom,
html[data-theme="light"] .orbit-mesh,
html[data-theme="light"] .orbit-scan,
html[data-theme="light"] .orbit-dust {
  opacity: 0.35;
}
html[data-theme="light"] .orbit-caption .eyebrow {
  color: var(--cyan);
}
html[data-theme="light"] .orbit-caption h2 {
  color: var(--ink);
  text-shadow: none;
}
html[data-theme="light"] .orbit-caption .lede,
html[data-theme="light"] .orbit-recent-label,
html[data-theme="light"] .orbit-recent-more {
  color: var(--muted);
}
html[data-theme="light"] .orbit-chip {
  color: var(--ink);
  background: color-mix(in srgb, var(--blue) 5%, #fff);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .orbit-chip:hover {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  background: color-mix(in srgb, var(--blue) 10%, #fff);
}
html[data-theme="light"] .orbit-chip.is-active {
  border-color: color-mix(in srgb, var(--ok) 40%, var(--line));
  background: color-mix(in srgb, var(--ok) 10%, #fff);
}
html[data-theme="light"] .orbit-chip-avatar {
  color: #1e3a8a;
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: color-mix(in srgb, var(--blue) 14%, #fff);
}
html[data-theme="light"] .orbit-chip-copy em {
  color: var(--muted);
}
html[data-theme="light"] .fin-node {
  color: var(--ink);
  background: var(--elevated);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .fin-node-text em {
  color: var(--muted);
}
html[data-theme="light"] .telemetry-panel {
  background:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(37, 99, 235, 0.08), transparent 58%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
}
html[data-theme="light"] .tele-orb {
  opacity: 0.22;
}
html[data-theme="light"] .tele-head {
  border-bottom-color: var(--line);
}
html[data-theme="light"] .tele-head h2 {
  color: var(--ink);
}
html[data-theme="light"] .tele-row {
  background: color-mix(in srgb, var(--blue) 4%, #fff);
  border-color: var(--line);
}
html[data-theme="light"] .tele-row strong {
  color: var(--ink);
}
html[data-theme="light"] .tele-avatar-dot {
  border-color: #fff;
}
html[data-theme="light"] .signal-card,
html[data-theme="light"] .support-card {
  background: color-mix(in srgb, var(--blue) 4%, #fff);
  border-color: var(--line);
}
html[data-theme="light"] .hint-card {
  background: color-mix(in srgb, var(--blue) 3%, #fff);
  border-color: var(--line-strong);
  color: var(--text);
}
html[data-theme="light"] .hint-card .lede,
html[data-theme="light"] .hint-card .eyebrow {
  color: var(--muted);
}
html[data-theme="light"] .support-lede {
  color: var(--muted);
}
html[data-theme="light"] .tele-grid {
  opacity: 0.08;
}
html[data-theme="light"] .support-count {
  color: var(--muted);
}
html[data-theme="light"] .support-participant-avatar {
  background: var(--input-bg);
  border-color: var(--line-strong);
}
html[data-theme="light"] .feed-wrap::before {
  background: linear-gradient(
    180deg,
    rgba(238, 242, 248, 0.92),
    rgba(238, 242, 248, 0.45) 55%,
    rgba(238, 242, 248, 0)
  );
}
html[data-theme="light"] .note-composer::before {
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0),
    rgba(248, 250, 252, 0.55) 55%,
    rgba(248, 250, 252, 0.92)
  );
}
html[data-theme="light"] .note-composer {
  background: #f8fafc !important;
  border-top-color: #e5e7eb;
}
html[data-theme="light"] .note-composer-label,
html[data-theme="light"] .typing-indicator,
html[data-theme="light"] .feed-typing.typing-indicator {
  color: var(--muted);
}
html[data-theme="light"] .note-input-shell {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .note-input-shell:focus-within {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}
html[data-theme="light"] .note-composer textarea {
  color: var(--ink);
  background: transparent;
}
html[data-theme="light"] .note-composer textarea::placeholder {
  color: var(--muted);
}
html[data-theme="light"] .note-tool-btn,
html[data-theme="light"] .note-input-shell .note-tool-btn {
  color: #334155;
  background: color-mix(in srgb, var(--blue) 6%, #fff);
  border-color: var(--line);
}
html[data-theme="light"] .note-tool-btn:hover,
html[data-theme="light"] .note-input-shell .note-tool-btn:hover {
  color: var(--ink);
  background: var(--hover-bg);
}
html[data-theme="light"] .feed-day-sep span {
  color: var(--ink-soft);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
html[data-theme="light"] .feed-filter-more {
  color: var(--muted);
}
html[data-theme="light"] .feed-filter-more:hover {
  color: var(--ink);
  background: var(--hover-bg);
}
html[data-theme="light"] .feed-filter-more-dot {
  box-shadow: 0 0 0 2px #fff;
}
html[data-theme="light"] .mode-pill.is-active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--blue) 40%, transparent);
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  box-shadow: none;
}
html[data-theme="light"] .chat-filters {
  border-bottom-color: var(--line);
}
html[data-theme="light"] .feed-empty-card,
html[data-theme="light"] .feed-empty-title {
  color: var(--ink);
}
html[data-theme="light"] .feed-empty-text,
html[data-theme="light"] .feed-empty-text span {
  color: var(--muted);
}
html[data-theme="light"] .feed-empty-chip {
  background: var(--elevated);
  border-color: var(--line);
  color: var(--ink-soft);
}

/* ?? Light: settings, DQR/panel chrome, empty states ?? */
html[data-theme="light"] .settings-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  gap: 12px;
}
html[data-theme="light"] .settings-card h3,
html[data-theme="light"] .settings-label {
  color: #334155;
}
html[data-theme="light"] .settings-form input[type="email"],
html[data-theme="light"] .settings-form input[type="password"],
html[data-theme="light"] .settings-form input[type="text"] {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .settings-form input[type="email"]:focus,
html[data-theme="light"] .settings-form input[type="password"]:focus,
html[data-theme="light"] .settings-form input[type="text"]:focus {
  border-color: color-mix(in srgb, var(--blue) 45%, #d1d5db);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 12%, transparent);
  outline: none;
}
html[data-theme="light"] .settings-file-btn,
html[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .settings-file-btn:hover,
html[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc;
  border-color: #d1d5db;
  color: #0f172a;
}
html[data-theme="light"] .btn-primary {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}
html[data-theme="light"] .btn-primary:hover {
  filter: none;
  background: #1d4ed8;
}
html[data-theme="light"] .settings-msg {
  color: #0284c7;
}
html[data-theme="light"] .settings-msg.is-ok {
  color: #059669;
}
html[data-theme="light"] .settings-error,
html[data-theme="light"] .settings-msg.is-err {
  color: #dc2626;
}
html[data-theme="light"] .settings-hint {
  color: #64748b;
}
html[data-theme="light"] .settings-body {
  gap: 14px;
}
html[data-theme="light"] .theme-option {
  background: #ffffff;
  border-color: #e5e7eb;
}
html[data-theme="light"] .theme-option.is-active {
  border-color: color-mix(in srgb, var(--blue) 45%, #e5e7eb);
  background: color-mix(in srgb, var(--blue) 6%, #fff);
  box-shadow: none;
}

html[data-theme="light"] .panel-stage {
  background:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(37, 99, 235, 0.04), transparent 58%),
    linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%) !important;
}
html[data-theme="light"] .panel-stage .panel-title,
html[data-theme="light"] .panel-stage .panel-card-title,
html[data-theme="light"] .panel-stage .panel-stat-card strong {
  color: #0f172a !important;
}
html[data-theme="light"] .panel-stage .panel-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="light"] .panel-stage .panel-card::before {
  background: #2563eb;
  opacity: 0.55;
  box-shadow: none;
}
html[data-theme="light"] .panel-stage .panel-table-wrap {
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .panel-stage .panel-empty,
html[data-theme="light"] .panel-stage .panel-table tbody tr.panel-row-empty,
html[data-theme="light"] .mission.is-panel .panel-stage .panel-table tbody tr.panel-row-empty {
  background: #f1f5f9 !important;
  border: 1px dashed #d1d5db !important;
  color: #64748b !important;
  border-radius: 14px;
}
html[data-theme="light"] .panel-stage .panel-stat-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .panel-stage .panel-stat-card span {
  color: #0284c7;
}
html[data-theme="light"] .panel-stage .panel-section-more {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .panel-stage .panel-section-more:hover,
html[data-theme="light"] .panel-stage .panel-section-menu.is-open .panel-section-more {
  background: #f8fafc !important;
  border-color: color-mix(in srgb, var(--blue) 28%, #e5e7eb) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .panel-stage .panel-btn-sm {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #334155;
}
html[data-theme="light"] .panel-stage .panel-btn-sm:hover {
  background: #f8fafc;
  border-color: #d1d5db;
  color: #0f172a;
}
html[data-theme="light"] .panel-stage .panel-pill--on {
  color: #047857;
  border-color: color-mix(in srgb, var(--ok) 30%, #e5e7eb);
  background: var(--ok-dim);
}
html[data-theme="light"] .panel-stage .panel-pill--off {
  color: #b91c1c;
  border-color: color-mix(in srgb, var(--danger) 28%, #e5e7eb);
  background: color-mix(in srgb, var(--danger) 8%, #fff);
}
html[data-theme="light"] .panel-stage .panel-status--ok {
  color: #047857;
  background: var(--ok-dim);
  border-color: color-mix(in srgb, var(--ok) 28%, #e5e7eb);
}
html[data-theme="light"] .panel-stage .panel-status--bad {
  color: #b91c1c;
  background: color-mix(in srgb, var(--danger) 8%, #fff);
  border-color: color-mix(in srgb, var(--danger) 28%, #e5e7eb);
}
html[data-theme="light"] .panel-stage .panel-status--wait {
  color: #c2410c;
  background: var(--warn-dim);
  border-color: color-mix(in srgb, var(--warn) 28%, #e5e7eb);
}
html[data-theme="light"] .panel-stage .panel-status--open,
html[data-theme="light"] .panel-stage .panel-status--mute {
  color: #334155;
  background: #f1f5f9;
  border-color: #e5e7eb;
}

/* ?????????????? sidebar ? light surfaces */
html[data-theme="light"] .panel-inbox {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .panel-inbox-title {
  color: #0284c7;
}
html[data-theme="light"] .panel-inbox-count {
  color: #334155;
  border-color: #e5e7eb;
  background: #f1f5f9;
}
html[data-theme="light"] .panel-inbox-empty {
  color: #64748b;
}
html[data-theme="light"] .panel-inbox-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .panel-inbox-card.is-pinned {
  border-color: color-mix(in srgb, var(--warn) 35%, #e5e7eb);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 18%, transparent);
}
html[data-theme="light"] .panel-inbox-amount {
  color: #0f172a !important;
}
html[data-theme="light"] .panel-inbox-meta {
  color: #64748b;
}
html[data-theme="light"] .panel-inbox-room {
  color: #0284c7;
}
html[data-theme="light"] .panel-inbox-actions button {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #334155;
}
html[data-theme="light"] .panel-inbox-actions button:hover {
  background: #eff6ff;
  border-color: color-mix(in srgb, var(--blue) 30%, #e5e7eb);
  color: #0f172a;
}
html[data-theme="light"] .panel-inbox-actions button.is-proc {
  border-color: color-mix(in srgb, var(--ok) 35%, #e5e7eb);
  color: #047857;
  background: var(--ok-dim);
}
html[data-theme="light"] .panel-inbox-actions button.is-pin.is-on {
  border-color: color-mix(in srgb, var(--warn) 40%, #e5e7eb);
  color: #c2410c;
  background: var(--warn-dim);
}
html[data-theme="light"] .panel-inbox-hide {
  color: #dc2626;
}
html[data-theme="light"] .panel-inbox-hide:hover {
  background: color-mix(in srgb, var(--danger) 10%, #fff);
}

html[data-theme="light"] .mission.is-panel .panel-stage .panel-m-item,
html[data-theme="light"] .mission.is-panel .panel-stage.is-mobile-cards .panel-m-item,
html[data-theme="light"].panel-mobile-cards .mission.is-panel .panel-stage .panel-m-item {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .orbit-stat,
html[data-theme="light"] .orbit-desk,
html[data-theme="light"] .orbit-chip {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .confirm-modal,
html[data-theme="light"] .toast,
html[data-theme="light"] .apps-stage-panel,
html[data-theme="light"] .panel-card,
html[data-theme="light"] .mute-room-item {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .apps-stage-bg,
html[data-theme="light"] .apps-stage-glow,
html[data-theme="light"] .apps-stage-arc,
html[data-theme="light"] .apps-stage-grid {
  opacity: 0.22;
}
html[data-theme="light"] .tab.is-active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}
html[data-theme="light"] .brand,
html[data-theme="light"] .brand-sub {
  color: #0f172a;
}
html[data-theme="light"] .brand-sub {
  color: #64748b;
}
html[data-theme="light"] .who-login,
html[data-theme="light"] .who {
  color: #334155;
}
html[data-theme="light"] .nebula {
  opacity: 0.18;
}
html[data-theme="light"] .stars {
  opacity: 0.2;
}
html[data-theme="light"] .telemetry-panel {
  background:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(37, 99, 235, 0.04), transparent 58%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
html[data-theme="light"] .theater-panel {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(37, 99, 235, 0.04), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), #eef1f6);
}

/* Isolate Premium Fin from fleet/orbit layout (same pattern as TestQR). */
.mission.is-premiumfin .mission-grid {
  display: none !important;
}
.mission.is-premiumfin .tabs {
  display: none !important;
}
.mission.is-premiumfin .premiumfin-stage {
  display: flex;
}
.premiumfin-stage {
  position: relative;
  z-index: 4;
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #070b14;
}
.premiumfin-stage.hidden {
  display: none !important;
}
.premiumfin-app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 12px 14px 18px;
  gap: 14px;
}
.premiumfin-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.premiumfin-head-copy { flex: 1; min-width: 0; }
.premiumfin-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.premiumfin-head-meta {
  margin: 2px 0 0;
  font-size: 0.78rem;
  opacity: 0.72;
}
.premiumfin-refresh {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 0.82rem;
}
.premiumfin-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}
.premiumfin-total {
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.18), rgba(15, 23, 42, 0.55));
  border: 1px solid rgba(52, 211, 153, 0.28);
}
.premiumfin-total-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.premiumfin-total-sum {
  margin: 6px 0 0;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.premiumfin-total-count {
  margin: 4px 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}
.premiumfin-terminals {
  display: grid;
  gap: 10px;
}
.premiumfin-term-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.premiumfin-term-name {
  display: block;
  font-size: 0.95rem;
}
.premiumfin-term-public {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.65;
}
.premiumfin-term-values {
  text-align: right;
}
.premiumfin-term-sum {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}
.premiumfin-term-count {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.65;
}
.premiumfin-history-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 650;
}
.premiumfin-history-list {
  display: grid;
  gap: 6px;
}
.premiumfin-history-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.28);
  font-size: 0.8rem;
}
.premiumfin-history-when { opacity: 0.75; }
.premiumfin-history-sum { font-weight: 650; text-align: right; }
.premiumfin-history-count { opacity: 0.65; text-align: right; }
.premiumfin-empty {
  margin: 0;
  opacity: 0.65;
  font-size: 0.88rem;
}
.premiumfin-msg {
  margin: 0;
  color: #fca5a5;
  font-size: 0.85rem;
}
.app-tile-art--premiumfin {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.35), rgba(15, 23, 42, 0.2));
}
.app-art-premiumfin {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.app-art-premiumfin-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}
.app-art-premiumfin-bars i {
  display: block;
  width: 7px;
  border-radius: 3px 3px 1px 1px;
  background: rgba(167, 243, 208, 0.9);
}
.app-art-premiumfin-bars i:nth-child(1) { height: 14px; }
.app-art-premiumfin-bars i:nth-child(2) { height: 26px; }
.app-art-premiumfin-bars i:nth-child(3) { height: 18px; }
.app-art-premiumfin-chip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.85);
  color: #ecfdf5;
}
