/* ═══════════════════════════════════════════════════════════
   Zhoomer — design system application
   Zhoomer (v.): to accelerate into bloom.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--void);
  color: var(--text);
  font: 15px/1.6 var(--f-body);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior: none;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
textarea, input { font: inherit; color: inherit; background: none; border: none; outline: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 3px; }
::selection { background: var(--zhoomer); color: var(--void); }

/* ─── header ──────────────────────────────── */
.zx-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  padding-top: calc(var(--s-3) + env(safe-area-inset-top));
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--edge);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.zx-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.zx-mark svg { width: 100%; height: 100%; display: block; }
.zx-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.zx-title h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}
.zx-title small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Zhoomer Meter (status ring) ─────────── */
.zx-meter {
  margin-left: auto;
  width: 34px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}
.zx-meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.zx-meter .track {
  fill: none;
  stroke: var(--edge);
  stroke-width: 2.5;
}
.zx-meter .fill {
  fill: none;
  stroke: var(--zhoomer);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset var(--d-slow) var(--e-out), stroke var(--d-base) var(--e-out);
}
.zx-meter .center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: -0.02em;
}
.zx-meter[data-provider="groq"]       .fill { stroke: var(--spark); }
.zx-meter[data-provider="gemini"]     .fill { stroke: var(--neural); }
.zx-meter[data-provider="openrouter"] .fill { stroke: var(--bloom); }
.zx-meter[data-provider="deepseek"]   .fill { stroke: var(--bloom); }
.zx-meter[data-provider="mistral"]    .fill { stroke: var(--zhoomer-hi); }
.zx-meter[data-thinking]              .fill { animation: meter-pulse 1.4s ease-in-out infinite; }
@keyframes meter-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ─── messages ────────────────────────────── */
.zx-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-4) var(--s-4) var(--s-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  scroll-behavior: smooth;
}

.zx-msg {
  max-width: 88%;
  animation: msg-arrive var(--d-slow) var(--e-spring) both;
}
@keyframes msg-arrive {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.zx-msg.user {
  align-self: flex-end;
  background: linear-gradient(140deg, var(--zhoomer), var(--zhoomer-hi));
  color: var(--void);
  padding: 10px 15px;
  border-radius: 18px 18px 5px 18px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.16);
  white-space: pre-wrap;
  word-break: break-word;
}

.zx-msg.ai {
  align-self: flex-start;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--edge);
  border-radius: 18px 18px 18px 5px;
  padding: 12px 15px;
  box-shadow: var(--lift);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  min-width: 60px;
}
.zx-msg.ai.thinking { box-shadow: var(--lift), 0 0 0 1px var(--edge-hi), 0 0 30px rgba(124,92,255,0.2); }

/* thinking channel — muted mono italic */
.zx-msg .think {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--edge);
  padding-left: 10px;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

/* content channel — full brightness */
.zx-msg .content { white-space: pre-wrap; }
.zx-msg .content:empty::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 1px;
  background: var(--zhoomer);
  vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* markdown inside AI bubbles */
.zx-msg .content h1,
.zx-msg .content h2,
.zx-msg .content h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 12px 0 6px;
  line-height: 1.25;
}
.zx-msg .content h1 { font-size: 19px; }
.zx-msg .content h2 { font-size: 17px; }
.zx-msg .content h3 { font-size: 15px; }
.zx-msg .content h1:first-child,
.zx-msg .content h2:first-child,
.zx-msg .content h3:first-child { margin-top: 0; }

.zx-msg .content p { margin: 8px 0; }
.zx-msg .content p:first-child { margin-top: 0; }
.zx-msg .content p:last-child { margin-bottom: 0; }

.zx-msg .content ul,
.zx-msg .content ol { margin: 8px 0 8px 20px; }
.zx-msg .content li { margin: 3px 0; }

.zx-msg .content strong { font-weight: 600; color: var(--text); }
.zx-msg .content em { font-style: italic; color: var(--text-dim); }

.zx-msg .content a {
  color: var(--zhoomer-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--edge-hi);
}

.zx-msg .content code {
  font-family: var(--f-mono);
  font-size: 12.5px;
  background: var(--void-deep);
  border: 1px solid var(--edge);
  border-radius: 5px;
  padding: 1.5px 6px;
  color: var(--neural);
}

.zx-msg .content pre {
  background: var(--void-deep);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.zx-msg .content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

.zx-msg .content blockquote {
  border-left: 2px solid var(--zhoomer);
  padding-left: 12px;
  margin: 10px 0;
  color: var(--text-dim);
  font-style: italic;
}

.zx-msg .content hr {
  border: none;
  border-top: 1px solid var(--edge);
  margin: 14px 0;
}

/* ─── empty state ─────────────────────────── */
.zx-empty {
  margin: auto;
  text-align: center;
  color: var(--muted);
  padding: var(--s-8) var(--s-4);
  max-width: 320px;
  line-height: 1.7;
}
.zx-empty .big {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--zhoomer) 0%, var(--bloom) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--s-3);
  line-height: 1.15;
}
.zx-empty .sub { font-size: 13px; }
.zx-empty .sub b { color: var(--text-dim); font-weight: 500; }

/* ─── composer ────────────────────────────── */
.zx-composer {
  padding: var(--s-3) var(--s-4) var(--s-4);
  background: linear-gradient(180deg, transparent, var(--void) 40%);
  flex-shrink: 0;
  position: relative;
}
.zx-capsule {
  display: flex;
  align-items: flex-end;
  gap: var(--s-2);
  background: var(--void-lift);
  border: 1px solid var(--edge);
  border-radius: var(--r-xl);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5);
  transition:
    border-color var(--d-base) var(--e-out),
    box-shadow var(--d-base) var(--e-out),
    border-radius var(--d-base) var(--e-out);
  position: relative;
  min-height: var(--composer-h);
}
.zx-capsule:focus-within {
  border-color: var(--edge-bloom);
  box-shadow: 0 0 0 1px var(--edge-bloom), var(--glow-zhoomer);
}
.zx-capsule textarea {
  flex: 1;
  resize: none;
  max-height: 140px;
  min-height: 24px;
  padding: 10px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.zx-capsule textarea::placeholder { color: var(--faint); }

.zx-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--zhoomer), var(--zhoomer-hi));
  color: var(--void);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--d-fast) var(--e-snap), opacity var(--d-fast);
  position: relative;
}
.zx-send:disabled { opacity: 0.35; transform: none; }
.zx-send:active:not(:disabled) { transform: scale(0.92); }
.zx-send svg { width: 18px; height: 18px; }

/* send bloom ring */
.zx-send.bloom::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--bloom);
  animation: send-bloom var(--d-bloom) var(--e-out) forwards;
  pointer-events: none;
}
@keyframes send-bloom {
  from { transform: scale(1);   opacity: 0.9; }
  to   { transform: scale(2.6); opacity: 0; }
}

/* stop button variant */
.zx-send.stop {
  background: linear-gradient(140deg, var(--alarm), #ff8566);
}
.zx-send.stop svg { width: 14px; height: 14px; }

/* ─── bloom rings (thinking indicator) ───── */
.zx-bloom {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.zx-bloom span {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 2px solid var(--zhoomer);
  border-radius: 50%;
  width: 4px;
  height: 4px;
  animation: bloom-ring 2.4s var(--e-out) infinite;
}
.zx-bloom span:nth-child(2) { border-color: var(--zhoomer-hi); animation-delay: 0.8s; }
.zx-bloom span:nth-child(3) { border-color: var(--bloom);      animation-delay: 1.6s; }
@keyframes bloom-ring {
  0%   { width: 4px;  height: 4px;  opacity: 0.95; }
  70%  { width: 22px; height: 22px; opacity: 0.2; }
  100% { width: 24px; height: 24px; opacity: 0; }
}

/* ─── system note ─────────────────────────── */
.zx-note {
  align-self: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: var(--s-1) var(--s-3);
  letter-spacing: 0.02em;
  max-width: 100%;
}

/* ─── toast (errors, fallbacks) ───────────── */
.zx-toast {
  position: fixed;
  bottom: calc(var(--s-16) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--void-lift);
  border: 1px solid var(--edge-hi);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--lift-hi);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--e-out), transform var(--d-base) var(--e-spring);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.zx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .zx-bloom span { animation: none; width: 18px; height: 18px; opacity: 0.5; }
}

/* ═══════════════════════════════════════════
   Drawer — slides from left
   ═══════════════════════════════════════════ */
.zx-hamburger {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-dim);
  transition: background var(--d-fast), color var(--d-fast);
}
.zx-hamburger:active { background: var(--void-lift); color: var(--text); }
.zx-hamburger svg { width: 20px; height: 20px; }

.zx-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 18, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--e-out);
}
.zx-scrim.open { opacity: 1; pointer-events: auto; }

.zx-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 288px;
  max-width: 84vw;
  z-index: 50;
  background: linear-gradient(160deg, rgba(124,92,255,0.10), rgba(10,9,22,0.95));
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-right: 1px solid var(--edge);
  transform: translateX(-100%);
  transition: transform 280ms var(--e-out);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.zx-drawer.open { transform: translateX(0); }

.zx-drawer-head {
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.zx-drawer-head .zx-mark { width: 40px; height: 40px; }
.zx-drawer-head .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.zx-drawer-head .ver {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.zx-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-3) var(--s-2);
}

.zx-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  transition: background var(--d-fast), color var(--d-fast);
  width: 100%;
  text-align: left;
  font-size: 14.5px;
}
.zx-item:active { background: var(--void-lift); color: var(--text); }
.zx-item .ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.75;
}
.zx-item .ic svg { width: 100%; height: 100%; display: block; }
.zx-item .lbl { flex: 1; }
.zx-item .badge {
  font-family: var(--f-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(124,92,255,0.14);
  color: var(--zhoomer-hi);
  letter-spacing: 0.02em;
}
.zx-item.danger { color: var(--alarm); }
.zx-item.danger:active { background: rgba(255, 107, 107, 0.08); }

.zx-divider {
  height: 1px;
  background: var(--edge);
  margin: var(--s-3) var(--s-4);
}

.zx-drawer-foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--edge);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zx-drawer-foot .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

/* ═══════════════════════════════════════════
   Composer — attach button + image preview
   ═══════════════════════════════════════════ */
.zx-attach {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color var(--d-fast), background var(--d-fast);
  margin-bottom: 2px;
}
.zx-attach:active { color: var(--zhoomer-hi); background: rgba(124,92,255,0.10); }
.zx-attach svg { width: 18px; height: 18px; }

/* preview strip above the capsule */
.zx-preview {
  display: flex;
  gap: var(--s-2);
  padding: 0 var(--s-4) var(--s-2);
  flex-wrap: wrap;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--d-base) var(--e-out), padding var(--d-base) var(--e-out);
}
.zx-preview.has { max-height: 100px; padding-bottom: var(--s-2); }

.zx-thumb {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--edge-hi);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  animation: thumb-in var(--d-base) var(--e-spring);
}
@keyframes thumb-in {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.zx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zx-thumb .x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(10, 9, 22, 0.85);
  border: 1px solid var(--edge-hi);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* image inside a sent user bubble */
.zx-msg.user .bubble-img {
  display: block;
  max-width: 200px;
  max-height: 200px;
  border-radius: 12px;
  margin-bottom: 6px;
  object-fit: cover;
}

/* ═══════════════════════════════════════════
   Crown — mind & mode switcher
   ═══════════════════════════════════════════ */
.zx-crown {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--zhoomer-hi);
  transition: color var(--d-fast), background var(--d-fast);
  margin-bottom: 2px;
  position: relative;
}
.zx-crown:active { background: rgba(124,92,255,0.10); }
.zx-crown svg { width: 18px; height: 18px; }
.zx-crown[data-active="1"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bloom);
  box-shadow: 0 0 6px var(--bloom);
}

.zx-sheet-scrim {
  position: fixed;
  inset: 0;
  background: rgba(6,5,18,0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--d-base) var(--e-out);
}
.zx-sheet-scrim.open { opacity: 1; pointer-events: auto; }

.zx-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(30,27,50,0.98), rgba(10,9,22,0.99));
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-top: 1px solid var(--edge-hi);
  border-radius: 22px 22px 0 0;
  padding: var(--s-4) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 320ms var(--e-out);
  max-height: 72vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}
.zx-sheet.open { transform: translateY(0); }

.zx-sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--edge-hi);
  margin: 0 auto var(--s-4);
}

.zx-sheet h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zx-sheet h3 small {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.zx-option {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px 14px;
  border-radius: 12px;
  width: 100%;
  text-align: left;
  transition: background var(--d-fast);
  margin-bottom: 2px;
  color: inherit;
}
.zx-option:active { background: var(--void-lift); }
.zx-option.selected {
  background: rgba(124,92,255,0.10);
  box-shadow: inset 0 0 0 1px var(--edge-hi);
}
.zx-option .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--zhoomer);
  box-shadow: 0 0 10px currentColor;
}
.zx-option[data-provider="groq"]       .dot { background: var(--spark);      color: var(--spark); }
.zx-option[data-provider="gemini"]     .dot { background: var(--neural);     color: var(--neural); }
.zx-option[data-provider="openrouter"] .dot { background: var(--bloom);      color: var(--bloom); }
.zx-option[data-provider="deepseek"]   .dot { background: var(--bloom);      color: var(--bloom); }
.zx-option[data-provider="mistral"]    .dot { background: var(--zhoomer-hi); color: var(--zhoomer-hi); }

.zx-option .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.zx-option .meta .name {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
}
.zx-option .meta .desc {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.zx-option .check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--zhoomer-hi);
  opacity: 0;
  transition: opacity var(--d-fast);
}
.zx-option.selected .check { opacity: 1; }

.zx-divider-line {
  height: 1px;
  background: var(--edge);
  margin: var(--s-4) 0;
}

/* ═══════════════════════════════════════════
   Settings — fields, switches
   ═══════════════════════════════════════════ */
.zx-field {
  margin-bottom: var(--s-4);
}
.zx-field > label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.zx-field input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  background: var(--void-deep);
  border: 1px solid var(--edge);
  border-radius: 10px;
  color: var(--text);
  font-size: 14.5px;
  transition: border-color var(--d-fast);
}
.zx-field input[type="text"]:focus {
  border-color: var(--edge-hi);
  outline: none;
}

.zx-switch {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 0;
  cursor: pointer;
}
.zx-switch input { display: none; }
.zx-switch .track {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--void-deep);
  border: 1px solid var(--edge);
  position: relative;
  flex-shrink: 0;
  transition: background var(--d-fast), border-color var(--d-fast);
}
.zx-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--d-fast) var(--e-spring), background var(--d-fast);
}
.zx-switch input:checked + .track {
  background: var(--zhoomer);
  border-color: var(--zhoomer);
}
.zx-switch input:checked + .track .knob {
  transform: translateX(18px);
  background: var(--void);
}
.zx-switch .lbl {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.zx-sheet-foot {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--edge);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
