/* AISTOFF — black syntx chrome · elegant layout, dark palette */
:root {
  --void: #070809;
  --ink: #0c0d10;
  --panel: #12141a;
  --panel-2: #181b22;
  --lift: #1e222b;
  --line: rgba(232, 226, 214, 0.08);
  --line-strong: rgba(196, 180, 154, 0.35);
  --bone: #e8e2d6;
  --mute: #8b9098;
  --soft: rgba(232, 226, 214, 0.72);
  --lunar: #c4b49a;
  --signal: #b4544a;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 28px;

  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --top: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: 0 0 0 2px var(--void), 0 0 0 4px var(--lunar);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, textarea, input { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.atmosphere { pointer-events: none; position: fixed; inset: 0; z-index: 0; }
.atmosphere__glow {
  position: absolute; inset: -20% -10% auto;
  height: 55%;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(196,180,154,0.05), transparent 70%);
}

.emoji-dark { filter: grayscale(1) brightness(0.92) contrast(1.05); }

/* ——— top chrome ——— */
.chrome-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: calc(var(--top) + var(--safe-top));
  padding: var(--safe-top) 18px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(7, 8, 9, 0.78);
  backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.chrome-top__left,
.chrome-top__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #1c1f27, #101218);
  border: 1px solid var(--line-strong);
  transition: transform 0.25s var(--ease);
}
.mark:hover { transform: translateY(-1px); }
.mark__glyph {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--lunar);
}
.mark--sm { width: 30px; height: 30px; }

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: var(--mute);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover { color: var(--bone); background: rgba(232,226,214,0.05); }
.icon-btn:focus-visible { box-shadow: var(--focus); outline: none; }

.burger {
  display: inline-grid;
  place-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  justify-self: center;
}

.user-pill {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--soft);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}

/* horizontal shutter — like syntx category tabs */
.shutter-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
}
.shutter-nav::-webkit-scrollbar { display: none; }

.shutter-nav__item {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  border-radius: 10px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.shutter-nav__item:hover { color: var(--bone); }
.shutter-nav__item.is-active {
  color: var(--bone);
}
.shutter-nav__item.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--lunar);
}

/* burger drawer — hidden until opened */
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 70;
  width: min(86vw, 320px);
  padding: calc(18px + var(--safe-top)) 16px 24px;
  background: var(--ink);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow);
  animation: slide-in 0.28s var(--ease);
}
.drawer[hidden] {
  display: none !important;
}
@keyframes slide-in {
  from { transform: translateX(-12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.drawer__label {
  margin: 16px 8px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.drawer a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--soft);
}
.drawer a small {
  grid-column: 2;
  color: var(--mute);
  font-size: 12px;
}
.drawer a:hover,
.drawer a.is-active {
  background: var(--panel);
  color: var(--bone);
}
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}
.drawer-backdrop[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding-top: calc(var(--top) + var(--safe-top));
}

/* ——— workspace (syntx center stage) ——— */
.workspace {
  min-height: calc(100svh - var(--top) - var(--safe-top));
  display: flex;
  flex-direction: column;
  position: relative;
}

.workspace__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 140px;
  width: min(860px, 100%);
  margin: 0 auto;
}

.workspace--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(340px, 34vw);
  min-height: calc(100svh - var(--top) - var(--safe-top));
}
.workspace--split .workspace__stage {
  width: auto;
  margin: 0;
  padding: 28px 24px 120px;
  position: relative;
}

.zero {
  text-align: center;
  max-width: 420px;
  animation: rise 0.5s var(--ease) both;
  margin-bottom: 28px;
}
.zero__mark {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--lunar);
}
.zero__glyph {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--lunar);
}
.zero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
}
.zero__text {
  margin: 12px 0 0;
  color: var(--mute);
  line-height: 1.55;
  font-size: 15px;
}

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

/* chat transcript */
.chat--float {
  width: min(720px, 100%);
  align-self: center;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(42vh, 420px);
  overflow-y: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}
.msg { animation: rise 0.35s var(--ease) both; }
.msg-user { align-self: flex-end; max-width: 85%; }
.msg-assistant { align-self: flex-start; max-width: 92%; }
.msg-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}
.msg-user .msg-label { text-align: right; }
.msg-body {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--panel);
  border: 1px solid var(--line);
  line-height: 1.55;
  font-size: 15.5px;
  color: var(--soft);
}
.msg-user .msg-body {
  background: var(--lift);
  color: var(--bone);
  border-color: rgba(196,180,154,0.18);
}
.msg-body.is-pending { color: var(--mute); }
.msg-body.is-error { color: #e8a29c; border-color: rgba(180,84,74,0.35); }
.msg-assistant.is-intro .msg-body {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
  color: var(--mute);
  font-size: 14.5px;
}

/* floating prompt dock */
.prompt-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  pointer-events: none;
}
.prompt-dock > * {
  pointer-events: auto;
  width: min(760px, 100%);
}
.workspace--split .prompt-dock--inset {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  padding: 0 24px;
}

.prompt-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.prompt-links button,
.checkins button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(18, 20, 26, 0.9);
  color: var(--mute);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.prompt-links button:hover,
.checkins button:hover {
  color: var(--bone);
  border-color: var(--line-strong);
}

.checkins {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.composer {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 12px 12px 18px;
  border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}
.composer:focus-within {
  border-color: var(--line-strong);
}
.composer textarea {
  flex: 1;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  min-height: 28px;
  max-height: 120px;
  line-height: 1.45;
  padding: 6px 0;
  color: var(--bone);
}
.composer textarea::placeholder { color: var(--mute); }

.send {
  appearance: none;
  border: 0;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--lunar);
  color: #12110f;
  display: grid; place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}
.send:hover { transform: translateY(-1px); }
.send:disabled { opacity: 0.45; cursor: default; transform: none; }
.send:focus-visible { box-shadow: var(--focus); outline: none; }

/* side panels (atelier / drone) */
.sidepanel {
  border-left: 1px solid var(--line);
  background: rgba(12, 13, 16, 0.72);
  padding: 18px 16px calc(18px + var(--safe-bottom));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}
.panel-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option,
.template-card {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--soft);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.option { padding: 9px 12px; font-size: 13px; }
.option.is-active,
.template-card.is-active {
  border-color: var(--line-strong);
  background: rgba(196,180,154,0.1);
  color: var(--lunar);
}
.template-list { display: flex; flex-direction: column; gap: 8px; }
.template-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px;
}
.template-card strong { font-size: 14px; color: var(--bone); }
.template-card span { font-size: 12px; color: var(--mute); }
.panel-note { margin: 12px 0 0; font-size: 12px; color: var(--mute); line-height: 1.4; }

.video-slot {
  min-height: 150px;
  display: grid; place-items: center;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(196,180,154,0.28);
  background: rgba(7,8,9,0.4);
  color: var(--mute);
  font-size: 13px;
  line-height: 1.45;
  padding: 16px;
}
.doc-block { margin: 0; font-size: 14px; line-height: 1.55; color: var(--soft); }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list li {
  padding: 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.doc-list strong { font-size: 13px; color: var(--lunar); }
.doc-list span { font-size: 12.5px; color: var(--mute); }

/* auth */
.auth-gate {
  min-height: calc(100svh - var(--top) - var(--safe-top));
  display: grid; place-items: center;
  padding: 32px 16px;
}
.auth-card {
  width: min(420px, 100%);
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}
.auth-gate__emoji { margin: 0; font-size: 28px; color: var(--lunar); }
.auth-card h1 {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: 2rem;
}
.auth-gate__ru { margin: 0; color: var(--mute); font-size: 14px; }
.auth-gate__text { margin: 16px 0 22px; color: var(--soft); line-height: 1.5; }
.auth-gate__hint { color: var(--mute); font-size: 13px; margin-bottom: 14px; }
.auth-gate__form { display: flex; gap: 8px; justify-content: center; }
.auth-gate__form input {
  flex: 1; max-width: 160px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ink);
  letter-spacing: 0.22em;
  text-align: center;
}
.auth-gate__form input:focus { outline: none; box-shadow: var(--focus); }
.auth-gate__error { color: var(--signal); font-size: 13px; margin-top: 12px; }
.auth-gate__back { display: inline-block; margin-top: 22px; color: var(--mute); font-size: 13px; }
.auth-gate__back:hover { color: var(--lunar); }
.auth-gate__tg { display: flex; justify-content: center; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  min-height: 44px; padding: 0 18px;
  border-radius: 12px; font-weight: 600;
}
.btn--primary { background: var(--lunar); color: #12110f; }
.btn--primary:hover { filter: brightness(1.05); }

/* orbit */
.orbit-block {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.orbit-head { text-align: center; margin-bottom: 18px; }
.orbit-head__label {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.orbit-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.orbit-head__text { margin: 8px 0 0; color: var(--mute); font-size: 14px; }
.orbit-stage {
  position: relative;
  width: 100%;
  height: min(46vh, 420px);
  min-height: 280px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: radial-gradient(ellipse at center, #12141a 0%, #070809 70%);
  border: 1px solid var(--line);
}
#globe { width: 100%; height: 100%; display: block; }
.orbit-labels { position: absolute; inset: 0; pointer-events: none; }
.orbit-label {
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18,20,26,0.88);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--soft);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.orbit-label:hover { border-color: var(--line-strong); color: var(--lunar); }

/* portfolio / product (kept elegant on black) */
.nav--product {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px 8px;
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
}
.nav__back, .nav__studio { color: var(--mute); font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.nav__back:hover, .nav__studio:hover { color: var(--lunar); }

.portfolio {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.portfolio__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.portfolio__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.portfolio__lead { color: var(--mute); line-height: 1.5; max-width: 42ch; }
.portfolio__list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.portfolio__item {
  display: grid;
  grid-template-columns: 40px 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.portfolio__item:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.portfolio__n { font-family: var(--font-mono); font-size: 12px; color: var(--mute); }
.portfolio__name { display: block; font-weight: 600; }
.portfolio__tag { display: block; font-size: 13px; color: var(--mute); margin-top: 2px; }
.portfolio__status { font-size: 12px; color: var(--lunar); }
.portfolio__arrow { color: var(--mute); }

.product {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.product__hero { margin-bottom: 28px; }
.product__emoji { font-size: 28px; color: var(--lunar); margin: 0; }
.product__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
}
.product__tagline { color: var(--mute); font-size: 16px; }
.product__summary { line-height: 1.6; color: var(--soft); max-width: 54ch; }
.story__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-top: 28px;
}
.story__chapter { margin: 0 0 18px; line-height: 1.65; color: var(--soft); }
.story__bullets { margin: 0; padding-left: 18px; color: var(--soft); line-height: 1.6; }
.story__meta { display: flex; flex-direction: column; gap: 10px; }
.story__meta div {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.story__meta dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.story__meta dd { margin: 4px 0 0; }
.story__cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; min-height: 46px; padding: 0 20px;
  border-radius: 14px; background: var(--lunar); color: #12110f; font-weight: 600;
}

/* responsive */
@media (max-width: 980px) {
  .workspace--split { grid-template-columns: 1fr; }
  .sidepanel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .workspace--split .prompt-dock--inset {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(16px + var(--safe-bottom));
  }
  .story__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .shutter-nav { display: none; }
  .chrome-top { grid-template-columns: auto 1fr auto; }
  .portfolio__item {
    grid-template-columns: 28px 24px 1fr;
    grid-template-rows: auto auto;
  }
  .portfolio__status, .portfolio__arrow { display: none; }
}

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

/* ——— hub home (syntx first screen) ——— */
.page-home {
  overflow-x: hidden;
  background: var(--void);
}

.page-home .atmosphere__glow {
  opacity: 0.65;
}

.hub {
  background: var(--void);
}

.hub-screen {
  min-height: calc(100svh - var(--top) - var(--safe-top));
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(ellipse 55% 45% at 50% 42%, #10141c 0%, var(--void) 68%);
}

.hub-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px 150px;
  width: min(720px, 100%);
  margin: 0 auto;
  animation: rise 0.55s var(--ease) both;
}

.hub-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  letter-spacing: 0.1em;
  line-height: 0.95;
  color: var(--bone);
  transition: font-size 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}

.hub-line {
  margin: 18px 0 0;
  max-width: 28ch;
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.45;
  transition: opacity 0.25s ease;
}

.hub-feed {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  text-align: left;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease, margin-top 0.3s ease;
}

.hub-center.is-chatting {
  justify-content: flex-start;
  padding-top: 36px;
}

.hub-center.is-chatting .hub-brand {
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  letter-spacing: 0.22em;
  color: var(--lunar);
}

.hub-center.is-chatting .hub-line {
  display: none;
}

.hub-center.is-chatting .hub-feed {
  max-height: min(52vh, 520px);
  opacity: 1;
  overflow-y: auto;
  margin-top: 28px;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.hub-feed .msg-user { align-self: flex-end; }
.hub-feed .msg-assistant { align-self: flex-start; width: 100%; }

/* composer only on first screen — not floating over orbit */
.prompt-dock--hub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 5;
}

.prompt-dock--hub .composer {
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(16px);
}

.hub-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--mute);
}

.hub-hint a,
.hub-hint__link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--soft);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.hub-hint a:hover,
.hub-hint__link:hover {
  color: var(--lunar);
}

/* continuous bands — same void, no boxes */
.hub-band {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 72px 20px 24px;
  background: transparent;
}

.hub-band__label,
.hub-orbit__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}

.hub-band__title,
.hub-orbit__title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
}

.hub-orbit {
  width: 100%;
  max-width: none;
  padding: 48px 0 0;
  background: radial-gradient(ellipse 55% 50% at 50% 48%, #10141c 0%, var(--void) 70%);
}

.hub-orbit__copy {
  text-align: center;
  padding: 0 16px 4px;
}

.hub-orbit__text {
  margin: 10px 0 0;
  color: var(--mute);
  font-size: 14px;
}

.orbit-stage--hero {
  width: 100%;
  max-width: none;
  height: min(72svh, 620px);
  min-height: 360px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hub-system {
  padding-top: 88px;
}

.hub-steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hub-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.hub-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.hub-steps__n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lunar);
  padding-top: 2px;
}

.hub-steps strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hub-steps p {
  margin: 0;
  color: var(--mute);
  line-height: 1.5;
  font-size: 14.5px;
}

.hub-agent-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hub-agent-row {
  display: grid;
  grid-template-columns: 36px 140px 1fr auto;
  gap: 12px 16px;
  align-items: center;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
  transition: color 0.2s ease;
}

.hub-agent-list li:last-child .hub-agent-row {
  border-bottom: 1px solid var(--line);
}

.hub-agent-row:hover {
  color: var(--lunar);
}

.hub-agent-row__mark {
  font-size: 18px;
  color: var(--lunar);
}

.hub-agent-row__name {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
}

.hub-agent-row__ru {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}

.hub-agent-row__tag {
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.4;
}

.hub-agent-row__go {
  color: var(--mute);
  font-size: 16px;
}

.hub-close {
  text-align: center;
  padding: 96px 20px 48px;
}

.hub-close__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--lunar);
}

.hub-close__line {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

.hub-close__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hub-close__primary,
.hub-close__ghost {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.hub-close__primary {
  background: var(--lunar);
  color: #12110f;
}

.hub-close__ghost {
  border: 1px solid var(--line);
  color: var(--soft);
}

.hub-close__ghost:hover {
  border-color: var(--line-strong);
  color: var(--bone);
}

.hub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 28px 20px calc(36px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 13px;
}

.hub-footer a:hover {
  color: var(--lunar);
}

@media (max-width: 760px) {
  .hub-brand {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
  }

  .hub-center {
    padding-bottom: 160px;
  }

  .orbit-stage--hero {
    height: min(58svh, 440px);
    min-height: 280px;
  }

  .hub-agent-row {
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto;
  }

  .hub-agent-row__tag {
    grid-column: 2 / -1;
  }

  .hub-agent-row__body {
    grid-column: 2;
  }
}
