/* Mutex — one stylesheet for the landing page and the observer dashboard. */

:root {
  color-scheme: light dark;

  --bg: #0b0d10;
  --bg-raised: #14171c;
  --bg-sunken: #090a0c;
  --border: #23282f;
  --border-strong: #333a44;

  --text: #e7eaee;
  --text-muted: #98a1ae;
  --text-faint: #6b7480;

  --accent: #6fd2f1;
  --accent-dim: #19404e;
  --agent-a: #8bd0ff;
  --agent-b: #c4b5fd;
  --agent-c: #fda4af;
  --agent-d: #fcd34d;
  --ok: #4ade80;
  --warn: #fbbf24;
  --pause: #fb923c;
  --err: #f87171;

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfc;
    --bg-raised: #ffffff;
    --bg-sunken: #f2f3f5;
    --border: #e3e5e9;
    --border-strong: #cfd3da;
    --text: #14171c;
    --text-muted: #5b6472;
    --text-faint: #8a93a1;
    --accent: #1b7898;
    --accent-dim: #d4f6ff;
    --agent-a: #1369a6;
    --agent-b: #6d28d9;
    --agent-c: #be123c;
    --agent-d: #a16207;
    --ok: #15803d;
    --warn: #b45309;
    --pause: #c2410c;
    --err: #dc2626;
  }
}

* { box-sizing: border-box; }

textarea { width: 100%; resize: vertical; min-height: 130px; padding: 14px; background: var(--bg-sunken); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; font: 14px/1.6 var(--mono); }
textarea:focus, input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.handoff-field { margin: 18px 0; }
.handoff-field label { display: block; margin-bottom: 8px; }
.handoff-field .handoff-toggle { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: var(--text); font-size: 14px; cursor: pointer; }
.handoff-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
#handoff-input-wrap { margin-top: 12px; }
.handoff-field .ghost { margin-top: 8px; }
.expiry-row { align-items: flex-end; }
.expiry-footnote { margin: 8px 0 0 !important; }
.section-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.section-actions h2 { margin: 0; }
#new-invite { width: 100%; }
.invite-copy-row { display: flex; align-items: stretch; gap: 8px; }
.invite-copy-row input { min-width: 0; flex: 1; }
.invite-copy-row button { flex: none; }
.hero-links { display: flex; gap: 18px; font-size: 14px !important; margin-top: 14px !important; }
.example-hero { padding-bottom: 30px; }
.example-hero .example-kicker { font-size: 12px; margin-bottom: 12px; color: var(--text-faint); }
.walkthrough { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.walkthrough-step { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.walkthrough-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.walkthrough-heading h2, .walkthrough-heading h3 { margin: 0; font-size: 15px; color: var(--text); }
.step-number { font: 12px/1 var(--mono); color: var(--accent); }
.walkthrough-caption { margin: 0; font-size: 13px; color: var(--text-muted); }
.room-example { margin-top: 30px; }
.room-example-intro h2 { margin: 0 0 4px; font-size: 19px; }
.room-example-intro p { margin: 0 0 16px; color: var(--text-muted); font-size: 14px; }
.room-example-intro .example-kicker { margin-bottom: 8px; color: var(--accent); font: 12px/1.5 var(--mono); }
.example-conversation { display: grid; gap: 12px; }
.example-turn {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  box-shadow: 0 6px 18px rgb(0 0 0 / 9%);
  overflow: hidden;
  transition: border-color 550ms ease, box-shadow 550ms ease, transform 550ms ease;
}
.example-turn[data-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong)); box-shadow: 0 12px 30px rgb(0 0 0 / 16%); }
.example-turn-toggle {
  display: grid;
  grid-template-columns: 36px 130px minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.example-turn-toggle:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.example-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font: 700 15px/1 var(--sans); }
.example-avatar.axel { color: #0c2332; background: var(--agent-a); }
.example-avatar.tank { color: #25153b; background: var(--agent-b); }
.example-speaker { display: grid; line-height: 1.25; }
.example-speaker strong { font-size: 14px; }
.example-speaker small, .example-turn-preview, .example-turn-number { color: var(--text-muted); font-size: 12px; }
.example-turn-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.example-turn-number { font-family: var(--mono); }
.example-chevron { width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform 550ms ease; }
.example-turn[data-expanded="true"] .example-chevron { transform: rotate(225deg); }
.example-turn-panel { display: grid; grid-template-rows: 0fr; padding: 0 18px; opacity: 0; transition: grid-template-rows 650ms cubic-bezier(.2,.7,.2,1), opacity 450ms ease, padding-bottom 650ms ease; }
.example-turn[data-expanded="true"] .example-turn-panel { grid-template-rows: 1fr; padding-bottom: 18px; opacity: 1; }
.example-turn-inner { min-height: 0; overflow: hidden; padding-left: 48px; color: var(--text); font-size: 14px; }
.example-turn-inner p { margin: 0 0 14px; }
.example-turn-inner p:last-child { margin-bottom: 0; }
.example-table-scroll { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 8px; }
.example-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.example-table th, .example-table td { padding: 9px 11px; border-bottom: 1px solid var(--border); text-align: left; }
.example-table th { color: var(--text-muted); background: var(--bg-sunken); font-weight: 600; }
.example-table tr:last-child td { border-bottom: 0; }
.example-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 14px; }
.example-flow span { padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-sunken); font-size: 12px; }
.example-flow b { color: var(--accent); font-size: 16px; }
.example-pickups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.example-pickups div { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-sunken); }
.example-pickups strong { font-size: 12px; }
.example-pickups span { color: var(--text-muted); font-size: 12px; }
.example-note { margin: 12px 0 0; color: var(--text-faint); font-size: 12px; }
.demo-next { margin: 28px 0 64px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
.demo-next > p { color: var(--text-muted); font-size: 13px; }
.setup-details { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.setup-details summary { cursor: pointer; color: var(--accent); }
.setup-details pre { padding: 10px; overflow-x: auto; color: var(--text); background: var(--bg-sunken); border-radius: 6px; font: 12px/1.5 var(--mono); }
.home-setup { border: 0; margin: 1rem 0 .5rem; padding: 0; color: #afc1c8; }
.home-setup summary { color: #80d4ed; font-weight: 500; }
.home-setup-content { margin-top: .75rem; padding-left: .25rem; }
.home-setup-content p { margin: .5rem 0; font-size: .9rem; line-height: 1.5; }
.home-setup-content strong { color: #effcff; }
.home-setup-content small { color: #8199a3; }
.home-setup-row { display: flex; align-items: center; gap: .5rem; margin: .5rem 0; padding: .6rem .75rem; background: #0b1319; border: 1px solid #30414a; border-radius: 8px; }
.home-setup-row code, .home-setup-row pre { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #eefdff; font: .8rem/1.5 ui-monospace, Consolas, monospace; background: none; margin: 0; padding: 0; border: 0; white-space: pre-wrap; }
.home-copy-btn { flex: none; padding: .35rem .6rem; border: 1px solid #40565f; background: #172127; color: #80d4ed; cursor: pointer; border-radius: 6px; font-size: .75rem; transition: background .15s, color .15s; }
.home-copy-btn:hover { background: #20353f; color: #cef5ff; }
.home-copy-btn.is-copied { background: #21424a; border-color: #6ec6de; }
@media (max-width: 720px) {
  .walkthrough { grid-template-columns: 1fr; }
  .example-turn-toggle { grid-template-columns: 36px minmax(0, 1fr) auto 15px; }
  .example-turn-preview { display: none; }
  .example-turn-inner { padding-left: 0; }
  .example-pickups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .example-turn, .example-chevron, .example-turn-panel { transition: none; }
}

/* Our own `display` rules outrank the UA stylesheet's `[hidden] { display: none }`,
   so anything flex/grid stays visible when JS sets `hidden`. Win that back. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- masthead ---------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  position: sticky;
  top: 0;
  z-index: 10;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
}

.logo {
  font: 600 16px/1 var(--mono);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

@supports (-webkit-background-clip: text) {
  .logo-word {
    background:
      radial-gradient(circle at 18% 22%, #e9fbff 0, #b4eeff 24%, transparent 52%),
      radial-gradient(circle at 82% 75%, #c9b5ff 0, #92d3ff 28%, transparent 58%),
      linear-gradient(125deg, #68cbef, #7fc7ff 52%, #bfa8fa);
    background-size: 175% 175%, 175% 175%, 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: room-mist-drift 6.5s ease-in-out infinite alternate;
  }
}
@media (prefers-reduced-motion: reduce) { .logo-word { animation: none; } }

.masthead .spacer { flex: 1; }

.tagline {
  color: var(--text-faint);
  font-size: 13px;
}

/* --- masthead account control ------------------------------------------ */

.masthead-account {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.masthead-signin-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.masthead-signin-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

.masthead-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.15s;
}

.masthead-account-btn:hover {
  border-color: var(--accent);
}

.masthead-account-btn .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
}

.masthead-account-btn .name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.masthead-account-btn .chevron {
  font-size: 10px;
  color: var(--text-faint);
  transition: transform 0.15s;
}

.masthead-account.open .masthead-account-btn .chevron {
  transform: rotate(180deg);
}

.masthead-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 100;
}

.masthead-account.open .masthead-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.masthead-dropdown-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.masthead-dropdown-name {
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 2px;
}

.masthead-dropdown-email {
  font-size: 11px;
  color: var(--text-faint);
}

.masthead-dropdown-pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.masthead-dropdown-actions {
  padding: 6px;
}

.masthead-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}

.masthead-dropdown-item:hover {
  background: var(--bg-sunken);
  color: var(--text);
}

.masthead-dropdown-item.accent {
  color: var(--accent);
}

.masthead-dropdown-item.accent:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.masthead-account + .status-pill {
  margin-left: 12px;
}

.site-header {
  color-scheme: dark;
  --bg-raised: #14171c;
  --bg-sunken: #090a0c;
  --border: #23282f;
  --border-strong: #333a44;
  --text: #e7eaee;
  --text-muted: #b8c2cd;
  --accent: #6fd2f1;
  --accent-dim: #19404e;
}
.site-header .site-links { display: flex; align-items: center; gap: 1.25rem; margin-left: 1.3rem; }
.site-header .site-links a { color: var(--text); font-size: .85rem; text-decoration: none; white-space: nowrap; }
.site-header .site-links a:hover { color: var(--accent); }
.site-header .site-links a[aria-current="page"] { color: #9be8fa; }

/* See the Universe */
.universe-body { color-scheme: dark; background: #060b17; color: #e9f5ff; height: 100dvh; overflow: hidden; }
.universe-main { height: 100%; min-height: 0; overflow: hidden; }
.universe-tally { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; flex: none; }
.universe-tally span { display: flex; flex-direction: column; align-items: flex-end; gap: .12rem; }
.universe-tally strong { font: 500 1.25rem/1 var(--mono); color: #e7faff; }
.universe-tally small { color: #7faabd; font: 700 .57rem var(--mono); letter-spacing: .13em; }
.universe-shell { display: flex; flex-direction: column; width: 100%; height: 100%; background: #060c17; overflow: hidden; }
.universe-toolbar, .universe-footer { position: relative; z-index: 5; display: flex; align-items: center; gap: 1rem; padding: .75rem 1.2rem; background: #0b1521ee; }
.universe-toolbar { flex: none; border-bottom: 1px solid #263d4d; }
.universe-back { padding: .4rem .55rem; border: 1px solid #33566b; border-radius: 7px; color: #bfe7f2; font: 700 .7rem var(--mono); text-decoration: none; white-space: nowrap; }
.universe-back:hover { background: #183447; }
.universe-title { color: #d2f2f9; font: 700 .67rem var(--mono); letter-spacing: .18em; white-space: nowrap; }
.universe-search { flex: 1; max-width: 320px; margin-left: 1rem; }
.universe-search input { width: 100%; margin: 0; background: #101f2d; border: 1px solid #315068; border-radius: 9px; color: #e8f8ff; padding: .6rem .85rem; font-size: .83rem; }
.universe-search input::placeholder { color: #7895a7; }
.universe-mode { color: #83c7d8; font: 700 .63rem var(--mono); letter-spacing: .15em; }
.universe-my-pod { padding: .48rem .7rem; border: 1px solid #588493; border-radius: 8px; background: #183347; color: #c1f4ff; cursor: pointer; font: 700 .67rem var(--mono); white-space: nowrap; }
.universe-my-pod:hover { background: #27526a; }
.universe-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; cursor: default; touch-action: none; user-select: none; -webkit-user-select: none; background: linear-gradient(#060c19 0%, #0b1d30 42%, #0c1c30 72%, #060b16 100%); }
.universe-viewport.is-dragging, .universe-viewport.is-dragging .universe-node, .universe-viewport.is-dragging .universe-card { cursor: grabbing; }
.universe-stars, .universe-nebula, .universe-vignette { position: absolute; inset: -80px; pointer-events: none; }
.universe-stars { inset: 0; width: 100%; height: 100%; }
.universe-nebula { opacity: .72; transform: translate3d(var(--nebula-x, 0px), var(--nebula-y, 0px), 0); background: radial-gradient(ellipse at 50% 47%, #3688a02b, transparent 55%), radial-gradient(ellipse at 28% 85%, #3e598b33, transparent 38%), radial-gradient(ellipse at 76% 30%, #1c77852a, transparent 34%); filter: blur(30px); }
.universe-vignette { box-shadow: inset 0 0 130px 35px #050b17; }
.universe-empty { position: absolute; z-index: 4; left: 50%; top: 50%; width: min(90%, 420px); transform: translate(-50%, -50%); text-align: center; color: #dceefa; }.universe-empty-star { display: block; width: 26px; height: 26px; margin: 0 auto 2rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f3d9a8 55%, #b2dce8); box-shadow: 0 0 20px #c5eeff, 0 0 75px 15px #69d2ee7a; }.universe-empty h2 { margin: 0 0 .5rem; font-size: 1.6rem; }.universe-empty p { color: #a9becb; }.universe-empty a { color: #a4e7f8; }
.universe-space { position: absolute; left: 50%; top: 50%; width: 1200px; height: 750px; transform-origin: center; }
#universe-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.universe-line { vector-effect: non-scaling-stroke; stroke-width: .8; opacity: .32; }
.universe-line.focus { stroke: #a4e1f1; stroke-width: 1; opacity: .24; }
.universe-line.universe-pulse { stroke-width: 1.6; stroke-linecap: round; opacity: 0; pointer-events: none; }
.universe-viewport, .universe-viewport * { -webkit-tap-highlight-color: transparent; }
.universe-node:focus:not(:focus-visible), .universe-viewport:focus:not(:focus-visible) { outline: none; }
.universe-node { position: absolute; display: block; width: 62px; height: 52px; padding: 0; transform: translate(-50%, -50%); border: 0; background: transparent; color: #dceefa; text-decoration: none; text-align: center; cursor: pointer; touch-action: none; }
.universe-node-core { position: absolute; z-index: 1; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ffe9ac 54%, #df9b55); box-shadow: 0 0 4px #fff, 0 0 10px #f9ce88aa, 0 0 19px #eab47255; }
.universe-node:hover .universe-node-core, .universe-node:focus-visible .universe-node-core, .universe-node.focus .universe-node-core { box-shadow: 0 0 5px #fff, 0 0 13px #f8d493cc, 0 0 22px #eab47288; }
.universe-node-orbit { position: absolute; left: 50%; top: 50%; box-sizing: border-box; border: 1px solid #bad8e02b; border-radius: 50%; transform: translate(-50%, -50%) rotate(-16deg); pointer-events: none; }
.universe-node-orbit-1 { width: 25px; height: 9px; }
.universe-node-orbit-2 { width: 39px; height: 14px; }
.universe-node-orbit-3 { width: 55px; height: 19px; }
.universe-node-planet { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #d3e8f0; box-shadow: 0 0 4px #b5d9e9aa; }
.universe-node-orbit-1 .universe-node-planet { left: 7%; top: 12%; background: #9fc9d1; }
.universe-node-orbit-2 .universe-node-planet { right: 11%; top: -1px; background: #e2c5a0; }
.universe-node-orbit-3 .universe-node-planet { left: 21%; bottom: -1px; background: #b9aedb; }
.universe-node-founder .universe-node-core { width: 9px; height: 9px; background: radial-gradient(circle at 35% 30%, #fff, #8fe9ff 45%, #1f8bff); box-shadow: 0 0 5px #e6fbff, 0 0 13px #3cc8ffdd, 0 0 26px #1e7bff99, 0 0 44px #1e6bff55; animation: universe-founder-pulse 3.2s ease-in-out infinite; }
@keyframes universe-founder-pulse { 50% { box-shadow: 0 0 6px #f0fdff, 0 0 17px #4fd3ffee, 0 0 34px #2a86ffaa, 0 0 58px #1e6bff66; } }
@media (prefers-reduced-motion: reduce) { .universe-node-founder .universe-node-core { animation: none; } }
.universe-card { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 2px; transform: translate(-50%, calc(-100% - 16px)); padding: 5px 9px; border: 1px solid #2c4a5e; border-radius: 7px; background: #081522ee; color: #e2f4fb; font-size: .76rem; line-height: 1.25; text-align: center; text-decoration: none; white-space: nowrap; pointer-events: none; }
.universe-card[hidden] { display: none; }
.universe-card-name { font: 700 .8rem var(--mono); }
.universe-card-meta { color: #91aebf; font-size: .68rem; }
.universe-card-hint { color: #8fe0f4; font: 700 .6rem var(--mono); letter-spacing: .08em; }
.universe-card-hint:empty { display: none; }
.universe-card-open { pointer-events: auto; cursor: pointer; border-color: #4f8aa3; }
.universe-card-open:hover, .universe-card-open:focus-visible { background: #10263a; border-color: #8fe0f4; }
.universe-card-founder { border-color: #2f8fff; box-shadow: 0 0 14px #1e7bff55; }
.universe-card-founder .universe-card-name { color: #7fdcff; }
.universe-card-creator { margin-left: .1rem; color: #50aaff; font: 600 .66rem var(--mono); }
.universe-node-private .universe-node-core { background: #e8dcff; box-shadow: 0 0 3px #f1eaff, 0 0 8px #989de899, 0 0 14px #888bd355; }
.universe-footer { flex: none; justify-content: space-between; min-height: 42px; border-top: 1px solid #263d4d; color: #91aebf; font: .67rem var(--mono); letter-spacing: .05em; }
@media (max-width: 700px) { .universe-toolbar { flex-wrap: wrap; gap: .55rem; padding: .65rem; }.universe-title { display: none; }.universe-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }.universe-mode { display: none; }.universe-tally { gap: .8rem; }.universe-tally strong { font-size: 1rem; }.universe-tally small { font-size: .48rem; }.universe-footer span:last-child { display: none; } }
.site-account-slot { min-width: 250px; min-height: 36px; display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; }
.site-account-loading { width: 130px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-sunken); }
.site-signin { color: var(--text-muted); font-size: .83rem; white-space: nowrap; }
.mist-button.site-claim { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: .45rem .85rem; font-size: .8rem; text-decoration: none; white-space: nowrap; }
.site-account-menu { position: relative; }
.site-account-menu summary { list-style: none; }
.site-account-menu summary::-webkit-details-marker { display: none; }
.site-account-menu[open] .masthead-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.site-account-menu .masthead-dropdown { min-width: 215px; }
.room-page-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 .8rem; min-width: 0; }
.room-page-heading h1 { margin: 0 0 0 .3rem; font-size: clamp(1.1rem, 2.5vw, 1.55rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 10rem; }
.room-page-heading .room-bar { margin-left: auto; justify-content: flex-end; padding: 0; border: 0; gap: .7rem; }
.room-page-heading .room-control { margin-left: 0; }
.room-agent-invite { margin-bottom: 1rem; }
.room-agent-invite summary { cursor: pointer; font-weight: 600; }
.room-agent-invite[open] summary { margin-bottom: .75rem; }
.room-agent-invite .hint { margin-top: 0; }
@media (max-width: 900px) { .room-page-heading .room-bar { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; } }
.room-back { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); text-decoration: none; font: 20px/1 var(--mono); }
.room-back:hover, .room-back:focus-visible { border-color: var(--accent); color: var(--accent); }
.room-details { margin-top: 1rem; }
.room-details > h2 { margin: 0; }
.room-detail-section { padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1rem; }
.room-detail-section h3 { margin: 0 0 .6rem; font-size: 1rem; }
.room-detail-section #handoff-text { max-height: 12rem; }
.feed.room-conversation { box-sizing: border-box; height: min(64vh, 560px); min-height: 280px; overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain; padding: .7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-sunken); scrollbar-color: var(--border-strong) transparent; }
.room-conversation.show-fade { -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%); }
@media (max-width: 650px) { .feed.room-conversation { height: min(62vh, 500px); } .room-page-heading { gap: .45rem; } }
/* Small screens: logo and account on the first row, the main links on a
   full-width second row that scrolls sideways instead of squeezing the
   account controls. */
@media (max-width: 640px) {
  .masthead.site-header .wrap.site-header-inner {
    display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo account" "nav nav";
    align-items: center; column-gap: .6rem; row-gap: 0; height: auto; padding: 8px 12px 0;
  }
  .site-header .logo { grid-area: logo; }
  .site-header .spacer { display: none; }
  .site-account-slot { grid-area: account; justify-self: end; min-width: 0; min-height: 36px; gap: .9rem; }
  .site-account-loading { width: 110px; }
  .site-header .site-links {
    grid-area: nav; margin: 0 -12px; padding: 6px 12px 8px; gap: 1.2rem; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-header .site-links::-webkit-scrollbar { display: none; }
  .site-header .site-links a { font-size: .82rem; padding: 4px 0; }
  .site-header .site-links a:focus-visible { outline-offset: 1px; }
  .site-account-menu .name { max-width: 90px; }
}
@media (max-width: 380px) {
  .site-account-slot { gap: .7rem; }
  .mist-button.site-claim { padding: .45rem .7rem; }
  .site-account-menu .name { max-width: 58px; }
}
@media (max-width: 359px) { .site-signin { display: none; } }

/* --- hero -------------------------------------------------------------- */

.hero { padding: 56px 0 36px; }

.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 62ch;
  margin: 0 0 8px;
}

/* --- tier comparison (compact three-tier) ------------------------------ */

.pod-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 12px 0 20px; }
.pod-plan-card { display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-raised); }
.pod-plan-pro { border-color: color-mix(in srgb, var(--accent) 38%, var(--border-strong)); box-shadow: 0 14px 38px rgb(0 0 0 / 9%); }
.pod-plan-kicker { margin: 0 0 7px; color: var(--accent); font: 11px var(--mono); letter-spacing: .09em; }
.pod-plan-card h2 { margin: 0; font-size: 24px; }
.pod-plan-summary { min-height: 3em; margin: 5px 0 0; color: var(--text-muted); font-size: 14px; }
.pod-plan-price { min-height: 4em; margin: 16px 0 0; color: var(--text-muted); font-size: 13px; }
.pod-plan-price strong { color: var(--text); font-size: 25px; }
.pod-plan-price #price-note { display: block; margin-top: 2px; color: var(--text-faint); font-size: 12px; }
.pod-plan-card ul { display: grid; gap: 10px; flex: 1; margin: 8px 0 21px; padding: 0 0 0 20px; color: var(--text); font-size: 14px; }
.pod-plan-card li::marker { color: var(--accent); }
.pod-plan-free-action { align-self: flex-start; border: 1px solid var(--border-strong) !important; background: var(--bg-sunken) !important; color: var(--text) !important; }
.pod-plan-card .checkout-actions { margin-top: 0; }
.pod-plan-card .checkout-primary-slot { max-width: 100%; }
.pod-plan-card .warning { margin: 13px 0 0; }
.pod-room-plans { margin-bottom: 60px; }
.pod-room-plans h2 { font-size: 18px; }
.pod-room-plans > p { margin: 6px 0 14px; color: var(--text-muted); font-size: 14px; }
.pod-room-plans h3 { margin: 20px 0 8px; color: var(--accent); font-size: 15px; }
@media (max-width: 720px) { .pod-plan-grid { grid-template-columns: 1fr; } .pod-plan-summary, .pod-plan-price { min-height: 0; } }

.tier-compact {
  margin: 20px 0 0;
  max-width: 600px;
}

.tier-compact .shared {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tier-table th,
.tier-table td {
  padding: 8px 12px;
  text-align: left;
}

.tier-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border);
}

.tier-table thead th.signed-in {
  color: var(--agent-a);
  background: color-mix(in srgb, var(--agent-a) 8%, var(--bg-sunken));
}

.tier-table thead th.pro {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-sunken));
}

.tier-table tbody td {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.tier-table tbody th {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.tier-table tbody tr:last-child td {
  border-bottom: none;
}
.tier-table tbody tr:last-child th { border-bottom: none; }

.tier-table tbody td:nth-child(3) {
  background: color-mix(in srgb, var(--agent-a) 3%, transparent);
}

.tier-table tbody td:last-child {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.plan-table-wrap { overflow-x: auto; margin-top: 16px; }
.plan-table-wrap .tier-table { min-width: 620px; }
.panel .pod-limits-title { margin-top: 2.4rem; }
.panel .plan-table-note { margin: 12px 0 0; }

.tier-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  align-items: center;
}

.tier-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
}

.tier-btn-secondary {
  background: transparent;
  border: 1px solid var(--agent-a);
  color: var(--agent-a);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.tier-btn-secondary:hover {
  background: color-mix(in srgb, var(--agent-a) 10%, transparent);
}

/* --- auth status ------------------------------------------------------- */

.auth-status {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  max-width: 600px;
}

.auth-status #auth-user {
  flex: 1;
  color: var(--text-muted);
}

.auth-status .user-name {
  color: var(--text);
  font-weight: 500;
}

/* --- panels ------------------------------------------------------------ */

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 18px;
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.panel .hint {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 16px;
}

.collapsible-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.collapsible-panel summary::-webkit-details-marker { display: none; }
.collapsible-panel summary::after { content: '⌄'; color: var(--text-muted); font-size: 20px; line-height: 1; }
.collapsible-panel[open] summary::after { transform: rotate(180deg); }
.collapsible-panel summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.collapsible-body { padding-top: 14px; }

.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 10;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}
.back-to-top:hover { border-color: var(--accent); }

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.field-row-title {
  margin-bottom: 14px;
}

.title-field {
  width: 100%;
}

.title-field input[type="text"] {
  width: 100%;
  min-width: 0;
}

label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

input[type="text"], input[type="password"], select {
  font: 14px var(--sans);
  color: var(--text);
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 11px;
  min-width: 140px;
}

input[type="text"] { min-width: 240px; flex: 1; }

input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  font: 500 14px var(--sans);
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.5; cursor: progress; }

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .73rem 1.1rem;
  border: 1px solid #85d5ed;
  border-radius: 9px;
  background: #81d3eb;
  color: #0c1f25;
  font: 700 .9rem/1.2 var(--sans);
  text-decoration: none;
  box-shadow: 0 4px 14px #45b1d224;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.site-button:hover:not(:disabled) { background: #a6e7f9; transform: translateY(-1px); filter: none; }
.site-button:focus-visible { outline: 3px solid #bcf2ff; outline-offset: 3px; }
.site-button.secondary { background: #17242a; border-color: #506d77; color: #e1f9fe; box-shadow: none; }
.site-button.secondary:hover:not(:disabled) { background: #213138; border-color: #7ea8b2; }

/* A moving wash of colour, drawn in CSS so the room action stays crisp. */
.mist-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #091b22;
  font-weight: 700;
  border: 1px solid rgb(224 247 255 / 48%);
  background:
    radial-gradient(circle at 18% 22%, #e9fbff 0, #b4eeff 24%, transparent 52%),
    radial-gradient(circle at 82% 75%, #c9b5ff 0, #92d3ff 28%, transparent 58%),
    linear-gradient(125deg, #68cbef, #7fc7ff 52%, #bfa8fa);
  background-size: 175% 175%, 175% 175%, 100% 100%;
  box-shadow: inset 0 1px rgb(255 255 255 / 55%), 0 7px 22px rgb(62 187 233 / 20%);
  animation: room-mist-drift var(--mist-drift-duration, 6.5s) ease-in-out var(--mist-drift-delay, 0s) infinite alternate;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.mist-button::before {
  content: '';
  position: absolute;
  inset: -85%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(from 35deg, transparent 0 17%, rgb(255 255 255 / 38%) 24%, transparent 35% 55%, rgb(106 204 252 / 33%) 65%, transparent 76%);
  filter: blur(13px);
  animation: room-mist-swirl var(--mist-swirl-duration, 9s) linear var(--mist-swirl-delay, 0s) infinite;
}
.mist-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: inset 0 1px rgb(255 255 255 / 68%), 0 11px 30px rgb(62 187 233 / 33%);
}
.mist-button:active:not(:disabled) { transform: translateY(0); }
@keyframes room-mist-drift {
  from { background-position: 0 12%, 100% 90%, center; }
  to { background-position: 78% 80%, 15% 12%, center; }
}
@keyframes room-mist-swirl { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mist-button, .mist-button::before { animation: none; }
}
.btn.mist-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: .73rem 1.1rem; text-decoration: none; font-size: .9rem; }
.mist-button:focus-visible { outline: 3px solid #bcf2ff; outline-offset: 3px; }

button.ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 5px 10px;
  font-size: 12px;
}

button.ghost:hover { color: var(--text); }

/* --- credentials ------------------------------------------------------- */

.cred {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--bg-sunken);
}

.cred header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cred h3 {
  margin: 0;
  font-size: 14px;
}

.cred .who {
  font: 11px/1 var(--mono);
  padding: 4px 8px;
  border-radius: 100px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.kv {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 8px 12px;
  align-items: center;
  font-size: 13px;
}

.kv dt { color: var(--text-faint); font-size: 12px; }

.kv dd {
  margin: 0;
  font: 12px/1.5 var(--mono);
  word-break: break-all;
  color: var(--text);
}

.warning {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--warn);
  color: var(--warn);
  font-size: 13px;
  background: color-mix(in srgb, var(--warn) 10%, transparent);
}

pre.snippet {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  font: 12px/1.6 var(--mono);
  margin: 0;
}

/* --- observer dashboard ------------------------------------------------ */

.room-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.room-bar .stat { display: flex; flex-direction: column; gap: 2px; }
.room-bar .stat .k { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.room-bar .stat .v { font: 13px/1 var(--mono); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 12px/1 var(--mono);
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
}

.status-pill[data-state="live"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.status-pill[data-state="live"] .dot { background: var(--ok); animation: pulse 2s ease-in-out infinite; }
.status-pill[data-state="connecting"] { color: var(--warn); }
.status-pill[data-state="connecting"] .dot { background: var(--warn); }
.status-pill[data-state="ended"] { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, transparent); }
.status-pill[data-state="ended"] .dot { background: var(--err); }

.status-pill .retry-btn {
  margin-left: 8px;
  padding: 4px 10px;
  font: 11px/1 var(--mono);
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.status-pill .retry-btn:hover {
  background: var(--bg-sunken);
  border-color: var(--accent);
}

@keyframes pulse { 50% { opacity: 0.35; } }

.roster { display: flex; gap: 8px; flex-wrap: wrap; }

.roster .who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 12px/1 var(--mono);
  padding: 7px 11px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
}

.roster .who .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.roster .who[data-online="true"] { color: var(--text); }
.roster .who[data-online="true"] .dot { background: var(--ok); }
.roster .who-affiliation { color: var(--text-faint); font-size: 10px; }

/* --- feed -------------------------------------------------------------- */

.feed {
  padding: 22px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty {
  color: var(--text-faint);
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
}

.msg {
  border: 1px solid var(--border);
  border-left: 3px solid var(--lane, var(--border-strong));
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 12px 14px;
  animation: slide-in 0.18s ease-out;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; }
  .status-pill .dot { animation: none; }
}

.msg > header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
  font: 12px/1 var(--mono);
}

.msg .from { color: var(--lane, var(--text)); font-weight: 600; }
.msg .kind { color: var(--text-faint); }
.msg .seq, .msg time { color: var(--text-faint); margin-left: auto; }
.msg .seq { margin-left: 0; }

.msg .text { white-space: pre-wrap; word-wrap: break-word; }

.msg pre {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  overflow-x: auto;
  font: 12px/1.6 var(--mono);
  margin: 9px 0 0;
}

.msg code {
  font: 0.9em var(--mono);
  background: var(--bg-sunken);
  border-radius: 4px;
  padding: 1px 5px;
}

.msg pre code { background: none; padding: 0; }

.message-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.message-table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.message-table-wrap th, .message-table-wrap td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: pre-wrap;
  min-width: 90px;
}
.message-table-wrap th { background: var(--bg-sunken); font-weight: 600; }
.message-table-wrap tr:last-child td { border-bottom: 0; }
.message-diagram { margin-top: 10px; }
.diagram-frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 350px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #10161d;
}

.tool-name {
  font: 12px/1 var(--mono);
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 5px;
  padding: 4px 8px;
  display: inline-block;
}

details.args { margin-top: 9px; }
details.args summary { cursor: pointer; font-size: 12px; color: var(--text-faint); }
details.args summary:hover { color: var(--text-muted); }

.diff {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font: 12px/1.55 var(--mono);
  margin-top: 9px;
}

.diff .line { padding: 0 11px; white-space: pre; }
.diff .line.add { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.diff .line.del { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.diff .line.hunk { color: var(--text-faint); background: var(--bg); }
.diff .line.meta { color: var(--text-muted); }

.state-pill {
  font: 12px/1 var(--mono);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  display: inline-block;
}

.state-pill[data-state="done"] { color: var(--ok); border-color: var(--ok); }
.state-pill[data-state="failed"], .state-pill[data-state="blocked"] { color: var(--err); border-color: var(--err); }
.state-pill[data-state="working"], .state-pill[data-state="thinking"] { color: var(--warn); border-color: var(--warn); }

.notice {
  text-align: center;
  font: 12px/1 var(--mono);
  color: var(--text-faint);
  padding: 4px 0;
}

.notice.alert { color: var(--err); }

.error-box {
  border: 1px solid var(--err);
  color: var(--err);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
  background: color-mix(in srgb, var(--err) 8%, transparent);
}

/* --- auth required (private rooms) ------------------------------------- */

.auth-required-box {
  border: 1px solid var(--warn);
  border-radius: var(--radius);
  padding: 32px;
  margin: 32px auto;
  max-width: 480px;
  text-align: center;
  background: color-mix(in srgb, var(--warn) 6%, var(--bg-raised));
}

.auth-required-box h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--warn);
}

.auth-required-box p {
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.auth-required-box button {
  margin-top: 8px;
}

/* observer masthead auth */
.masthead .auth-status {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 12px;
  gap: 8px;
}

.masthead .auth-user {
  color: var(--text-muted);
}

.masthead .auth-signout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.masthead .auth-signout:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* masthead auth (landing + pro pages) */
.masthead-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-left: 14px;
}

.masthead-user {
  color: var(--text-muted);
}

.masthead-signout {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}

.masthead-signout:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.masthead-auth .pro-badge {
  font-size: 10px;
  padding: 3px 6px;
}

/* private room badge */
.private-badge {
  font: 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

/* privacy notice */
.privacy-note {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.privacy-note strong {
  color: var(--accent);
}

.footnote {
  color: var(--text-faint);
  font-size: 12px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-sunken);
  text-decoration: none;
  font-weight: 600;
  border: none;
}
a.button:hover { filter: brightness(1.05); }

.checkout-actions { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.checkout-primary-slot {
  width: 260px;
  min-height: 42px;
  display: flex;
  align-items: center;
}
.checkout-primary-slot .button {
  box-sizing: border-box;
  width: 100%;
}
.checkout-primary-slot .button.mist-button {
  border: 1px solid rgb(224 247 255 / 48%);
  background: radial-gradient(circle at 18% 22%, #e9fbff 0, #b4eeff 24%, transparent 52%),
    radial-gradient(circle at 82% 75%, #c9b5ff 0, #92d3ff 28%, transparent 58%),
    linear-gradient(125deg, #68cbef, #7fc7ff 52%, #bfa8fa);
  background-size: 175% 175%, 175% 175%, 100% 100%;
  box-shadow: inset 0 1px rgb(255 255 255 / 55%), 0 7px 22px rgb(62 187 233 / 20%);
  animation: room-mist-drift var(--mist-drift-duration, 6.5s) ease-in-out var(--mist-drift-delay, 0s) infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .checkout-primary-slot .button.mist-button { animation: none; } }
.checkout-primary-slot .button[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}
.pro-active-status { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.pro-active-status .hint { margin: 0; }
.plan-action-row { width: min(100%, 260px); }
.plan-action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 500 13px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.plan-action-button:hover { background: var(--bg-sunken); filter: none; }
.plan-action-danger { border-color: color-mix(in srgb, var(--err) 55%, var(--border-strong)); color: var(--err); }
.plan-action-danger:hover { background: color-mix(in srgb, var(--err) 9%, var(--bg-raised)); }
.account-main { padding-top: 2.5rem; }
.account-panel { max-width: 620px; }
.account-panel h1 { margin-top: 0; }
.account-actions { display: grid; gap: .8rem; width: min(100%, 280px); margin-top: 1.6rem; }
.account-actions .plan-action-button:disabled { opacity: .45; cursor: not-allowed; }

/* --- result panel (room created) --------------------------------------- */

.result-panel {
  border-color: var(--accent-dim);
  background: color-mix(in srgb, var(--accent) 3%, var(--bg-raised));
}

.result-panel h2 {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 6px;
}

.result-panel .room-meta {
  margin-bottom: 18px;
}

.result-panel .result-access-hint {
  margin: 10px 0 22px;
}

.result-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.result-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.result-section h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.result-section .hint {
  margin-bottom: 12px;
}

.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-sunken);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btn.primary:hover { filter: brightness(1.08); }

.agent-prompt-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-prompt {
  flex: 1;
  min-width: 0;
  background: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px 16px;
  font: 12px/1.65 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.agent-prompt code {
  background: none;
  padding: 0;
}

.agent-prompt-wrap button {
  flex: none;
}

@media (max-width: 620px) {
  .agent-prompt-wrap { align-items: flex-start; flex-direction: column; }
  .agent-prompt { width: 100%; }
}

.result-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
  font-size: 13px;
}

.result-footer .hint { margin: 0; }

.result-footer .text-button {
  padding: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reset-btn {
  margin-left: auto;
}

button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input:disabled, select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Pro badge --------------------------------------------------------- */

.pro-badge {
  font: 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- My Rooms section -------------------------------------------------- */

#my-rooms {
  margin-top: -4px;
}

#my-rooms h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}

.room-item:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, var(--bg-sunken));
}

.room-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.room-item-main > div { min-width: 0; }

.room-item-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-item-meta {
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.room-item-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-item-arrow {
  color: var(--text-faint);
  font-size: 18px;
}

.room-item:hover .room-item-arrow {
  color: var(--accent);
}

.room-item-toggle, .room-item-delete {
  background: transparent;
  border: 1px solid currentColor;
  font-size: 18px;
  line-height: 1;
  min-width: 34px;
  min-height: 34px;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.room-item-toggle { color: var(--pause); }
.room-item-toggle:hover { background: color-mix(in srgb, var(--pause) 15%, transparent); }
.room-item-toggle.is-activate { color: var(--accent); }
.room-item-toggle.is-activate:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.room-item-delete { color: var(--err); }
.room-item-delete:hover {
  background: color-mix(in srgb, var(--err) 15%, transparent);
}
.room-item-toggle:disabled, .room-item-delete:disabled { opacity: .6; cursor: default; }

#my-rooms-empty {
  text-align: center;
  padding: 20px;
}

/* --- observer room control ----------------------------------------------- */

.room-control {
  margin-left: 12px;
  background: transparent;
  border: 1px solid var(--pause);
  color: var(--pause);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.room-control:hover:not(:disabled) {
  background: var(--pause);
  color: var(--bg);
}

.room-control:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Bringing a room back is not destructive, so it does not wear the warning
   colour that deactivating does. */
.room-control.is-activate {
  border-color: var(--accent);
  color: var(--accent);
}

.room-control.is-activate:hover:not(:disabled) {
  background: var(--accent);
  color: var(--bg);
}

.room-delete {
  background: transparent;
  border: 1px solid var(--err);
  color: var(--err);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.room-delete:hover:not(:disabled) { background: var(--err); color: var(--bg); }
.room-delete:disabled { opacity: .6; cursor: default; }

.room-tool { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.room-setting-choice { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; }
.room-setting-choice input { width: 18px; height: 18px; accent-color: var(--accent); }
#room-settings .hint { margin: .7rem 0 0; }
.room-tool:first-of-type { margin-top: 14px; }
.room-tool strong { font-size: 14px; }
.room-tool .hint { margin: 5px 0 0; }
.room-tool #view-link-wrap, .room-tool #viewer-email-wrap, .room-tool #new-invite-wrap { width: 100%; }
.room-tool label { display: block; margin-bottom: 7px; font-size: 13px; }
.room-chat { margin: 18px 0 40px; }
.room-chat textarea { width: 100%; margin-top: 10px; resize: vertical; }
.room-chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.ping-agent { margin-left: 6px; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; }
.room-tool .invite-copy-row + .invite-copy-row { margin-top: 10px; }
.viewer-access-row { flex-wrap: wrap; }
.viewer-access-row input { min-width: min(180px, 100%); }
/* Pods: a quiet mission-control surface alongside the existing room flow. */
/* Pod pages are dark-only designs: pin the dark tokens so a light OS theme
   cannot put light-scheme surfaces under their fixed light text. */
.pod-body {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-raised: #14171c;
  --bg-sunken: #090a0c;
  --border: #23282f;
  --border-strong: #333a44;
  --text: #e7eaee;
  --text-muted: #98a1ae;
  --text-faint: #6b7480;
  --accent: #6fd2f1;
  --accent-dim: #19404e;
  --agent-a: #8bd0ff;
  --agent-b: #c4b5fd;
  --agent-c: #fda4af;
  --agent-d: #fcd34d;
  --ok: #4ade80;
  --warn: #fbbf24;
  --pause: #fb923c;
  --err: #f87171;
  --code-bg: #11151a;
}
.pod-body { min-height: 100vh; background: radial-gradient(circle at 77% 4%, #152832 0, transparent 34%), radial-gradient(circle at 3% 28%, #111a2c 0, transparent 39%), #080c10; background-repeat: no-repeat; background-size: 100% 100vh; color: #e5f2f2; }
.pod-masthead { display: flex; align-items: center; gap: 1.2rem; }
.pod-masthead nav { display: flex; gap: 1.35rem; margin-left: 2rem; }
.pod-masthead nav a { color: #b0c6cf; text-decoration: none; font-size: .9rem; }
.pod-masthead nav a:hover { color: #81defb; }
.pod-nav-status { color: #91daed; font: 600 .76rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .05em; }
.pod-signin, .pod-signout { border: 1px solid #3c5a64; border-radius: 999px; background: #132125; color: #e8fbff; padding: .45rem .9rem; cursor: pointer; }
.pod-main { max-width: 1300px; padding-top: 2.4rem; padding-bottom: 6rem; }
.pod-eyebrow { color: #70c4de; font: 700 .71rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .65rem; }
.pod-entry { min-height: 62vh; display: grid; align-content: center; max-width: 620px; }
.pod-entry h1, .pod-console h1 { font-size: clamp(2.7rem, 5.8vw, 5.5rem); line-height: .98; letter-spacing: -.055em; margin: .2rem 0 1rem; }
.pod-entry > p:not(.pod-eyebrow) { max-width: 520px; color: #afbfc6; font-size: 1.2rem; line-height: 1.55; }
.pod-entry-gate, .pod-claim-form { margin-top: 2rem; padding: 1.5rem; background: rgba(20, 28, 34, .86); border: 1px solid #2c3f48; border-radius: 18px; box-shadow: 0 20px 80px #0005; }
.pod-entry-gate p { color: #bfccd1; }
.pod-claim-form { display: grid; gap: .8rem; }
.pod-claim-details { display: grid; gap: .8rem; }
.pod-claim-account { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.pod-claim-account p { flex-basis: 100%; margin: .2rem 0; color: #bfccd1; }
.pod-claim-account .mist-button { margin-top: 0; }
.pod-claim-signin { color: #a1ddee; font-size: .84rem; }
.pod-claim-form label, .pod-compose label, #pod-brief-form label, .pod-inline-form label { color: #c1d1d7; font-weight: 600; font-size: .83rem; }
.pod-body input, .pod-body textarea, .pod-body select { width: 100%; box-sizing: border-box; background: #0c1318; border: 1px solid #344a54; color: #f0f8f5; border-radius: 10px; padding: .83rem 1rem; font: inherit; outline: none; }
.pod-body input:focus, .pod-body textarea:focus, .pod-body select:focus { border-color: #73d2f0; box-shadow: 0 0 0 3px #73d2f025; }
.pod-body input::placeholder, .pod-body textarea::placeholder { color: #7e9098; }
.pod-claim-form .mist-button { justify-self: start; margin-top: .4rem; padding: .73rem 1.1rem; border-radius: 10px; font-size: .9rem; }
.pod-claim-policy { margin: .2rem 0 0; color: #8899a0; font-size: .76rem; line-height: 1.5; }
.pod-claim-form .pod-starter-rules { justify-self: start; }
.pod-claim-error { margin: 0; padding: .6rem .8rem; border: 1px solid #ee9d8d; border-radius: 10px; color: #ffd9d0; background: #3a2021; font-size: .86rem; line-height: 1.45; }
.pod-handle-field { display: flex; align-items: center; border: 1px solid #344a54; border-radius: 10px; background: #0c1318; overflow: hidden; }
.pod-handle-field span { color: #7bbbcf; white-space: nowrap; padding-left: .9rem; font: .88rem ui-monospace, Consolas, monospace; }
.pod-handle-field input { border: 0; box-shadow: none !important; padding-left: .1rem; font: .88rem ui-monospace, Consolas, monospace; }
.pod-address-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem; }
.pod-handle-preview { min-width: 5rem; padding: .77rem .95rem; border: 1px solid #537a85; border-radius: 10px; color: #bcf2ff; background: linear-gradient(130deg, #16333c, #192934); font: 700 .9rem ui-monospace, Consolas, monospace; text-align: center; overflow-wrap: anywhere; }
.pod-availability { margin: -.2rem 0 .35rem; color: #99b3bc; font-size: .84rem; }
.pod-availability[data-available="true"] { color: #8ae1f6; }
.pod-availability[data-available="false"] { color: #e4ad9a; }
.pod-room-list { display: grid; gap: .65rem; }
.pod-room-tile { display: grid; gap: .7rem; padding: 1rem; border: 1px solid #354c56; border-radius: 11px; background: #0f1920; color: #effcff; text-decoration: none; }
.pod-room-tile:hover, .pod-room-tile:focus-visible { border-color: #80d4ed; background: #14242c; }
.pod-room-tile-heading { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pod-room-tile-heading strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.pod-room-open { margin-left: auto; color: #80d4ed; font-size: .8rem; white-space: nowrap; }
.pod-room-counts { display: flex; flex-wrap: wrap; gap: .5rem; }
.pod-room-counts span { border: 1px solid #3a4f58; border-radius: 6px; padding: .25rem .45rem; color: #e2f1f5; font-size: .76rem; }
.pod-room-tile small { color: #98aab2; font-size: .72rem; }
.pod-open-room { display: grid; gap: .55rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #2c3e48; }
.pod-open-room label { color: #aec6ce; font-size: .78rem; }
.pod-create-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.pod-create-row input, .pod-create-row button { min-width: 0; margin: 0; }
.pod-console-header { display: flex; justify-content: space-between; align-items: center; min-height: 190px; padding: 1.1rem 0 1.7rem; }
.pod-console-header h1 { margin-bottom: 0; }
.pod-address { color: #b1ebf9; font: 600 .95rem ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.pod-address:hover { color: #aaeefe; text-decoration: underline; }
.pod-console-header > div:first-child { min-width: 0; }
.pod-title-row { display: flex; align-items: center; gap: .8rem; }
.pod-title-row h1 { min-width: 0; overflow-wrap: anywhere; }
.pod-title-row .icon-btn { flex: 0 0 34px; width: 34px; height: 34px; }
.pod-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #84e7fb; box-shadow: 0 0 13px #84e7fb; vertical-align: .12em; margin-left: .4rem; }
.pod-orbit { position: relative; width: 158px; height: 158px; flex: none; margin-right: 4rem; border-radius: 50%; pointer-events: none; }
.orbit-star { position: absolute; z-index: 3; width: 22px; height: 22px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 45% 40%, #fffef8 0%, #fff8e8 30%, #f5e4c8 60%, #e8c89a 85%, #d4a870 100%); box-shadow: 0 0 8px 2px rgba(255, 248, 230, 0.7), 0 0 20px 4px rgba(155, 236, 249, 0.35), 0 0 40px 8px rgba(106, 197, 226, 0.2); }
.orbit-star::before { content: ''; position: absolute; inset: -12px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 252, 240, 0.4) 0%, rgba(192, 241, 247, 0.2) 40%, transparent 70%); animation: orbit-star-breathe 4s ease-in-out infinite; }
.orbit-star::after { content: ''; position: absolute; inset: -18px; z-index: -2; border-radius: 50%; background: radial-gradient(circle at 55% 45%, rgba(155, 236, 249, 0.15) 0%, transparent 50%); animation: orbit-star-corona 12s linear infinite; }
@keyframes orbit-star-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.08); } }
@keyframes orbit-star-corona { to { transform: rotate(360deg); } }
.orbit-agents, .orbit-connections { position: absolute; inset: 0; }
.orbit-agents { z-index: 2; }
.orbit-track { position: absolute; left: 50%; top: 50%; width: var(--orbit-size); aspect-ratio: 1; box-sizing: border-box; border: 1px solid #68afc244; border-radius: 50%; transform: translate(-50%, -50%) rotate(var(--phase)); animation: pod-orbit-turn var(--orbit-duration) linear infinite; }
.orbit-track-shared { border: 0; }
.orbit-track i { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: var(--agent-color); box-shadow: 0 0 14px var(--agent-color); }
.orbit-agent-color-0 { --agent-color: #86e0f7; }.orbit-agent-color-1 { --agent-color: #a9c4ff; }.orbit-agent-color-2 { --agent-color: #ffd28d; }.orbit-agent-color-3 { --agent-color: #e6a9f9; }.orbit-agent-color-4 { --agent-color: #aadffd; }
.orbit-connection-ray { position: absolute; z-index: 1; left: 50%; top: 50%; width: 205px; height: 1px; transform-origin: left center; transform: rotate(var(--ray-angle)); background: linear-gradient(90deg, #a0ecfb7a 0, #a0ecfb3d 45%, transparent 100%); box-shadow: 0 0 8px #a0ecfb33; animation: pod-ray-breathe 6s ease-in-out var(--ray-delay) infinite alternate; }
@keyframes pod-orbit-turn { to { transform: translate(-50%, -50%) rotate(calc(var(--phase) + 360deg)); } }
@keyframes pod-ray-breathe { to { opacity: .3; } }
.pod-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; background: #2e3e47; border: 1px solid #2e3e47; border-radius: 15px; overflow: hidden; margin-bottom: 1.2rem; }
.pod-stats > div { display: grid; gap: .2rem; background: #131c23; padding: 1.05rem 1.25rem; }
.pod-stats span { color: #87c7db; letter-spacing: .15em; font: 700 .65rem ui-monospace, Consolas, monospace; }
.pod-stats strong { font-size: 1.55rem; font-weight: 650; letter-spacing: -.03em; }
.pod-stats .pod-stat-cap { color: #8ea2ab; font-size: .5em; font-weight: 500; letter-spacing: 0; }
.pod-stats small { color: #8ea2ab; font-size: .75rem; }
.pod-owner-name-prompt { margin: 0 0 1.2rem; padding: .75rem 1rem; border-radius: 10px; background: linear-gradient(120deg, #1c2830, #162028); border: 1px solid #40525a; color: #bdd5dc; font-size: .88rem; }
.pod-owner-name-prompt a { color: #8ee2f9; }
.pod-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 1.2rem; }
.pod-primary-column, .pod-secondary-column { display: grid; align-content: start; gap: 1.2rem; min-width: 0; }
.pod-card { background: linear-gradient(150deg, #162129, #101920 67%); border: 1px solid #2c3e48; border-radius: 17px; padding: 1.3rem; box-shadow: 0 15px 50px #0002; min-width: 0; }
.pod-card h2 { font-size: 1.32rem; letter-spacing: -.025em; margin: 0 0 .65rem; }
.pod-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; border-radius: 4px; }
.pod-disclosure > summary::-webkit-details-marker { display: none; }
.pod-disclosure > summary::after { content: "▸"; color: #80d4ed; flex: none; }
.pod-disclosure[open] > summary::after { content: "▾"; }
.pod-disclosure > summary h2 { margin: 0; }
.pod-disclosure[open] > summary { margin-bottom: .85rem; }
.pod-disclosure > summary:focus-visible { outline: 2px solid #80d4ed; outline-offset: 5px; }
.pod-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pod-card-note { color: #98aab2; font-size: .89rem; line-height: 1.5; margin: 0 0 1.2rem; }
.pod-card-note strong { color: #d3f7ff; }
.pod-visibility-setting { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.3rem; padding: .9rem 1rem; border: 1px solid #344a54; border-radius: 12px; background: #0d1920; }
.pod-visibility-copy { min-width: 0; }
.pod-visibility-heading { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pod-visibility-heading strong { color: #e5f2f2; font-size: .88rem; }
.pod-visibility-heading span { color: #9be0f2; font: 600 .74rem ui-monospace, Consolas, monospace; }
.pod-visibility-copy p { margin: .35rem 0 0; color: #98aab2; font-size: .8rem; line-height: 1.45; }
.pod-visibility-switch { position: relative; display: block; flex: none; width: 48px; height: 28px; cursor: pointer; }
.pod-body .pod-visibility-switch input { position: absolute; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.pod-visibility-track { display: block; width: 100%; height: 100%; box-sizing: border-box; border: 1px solid #50616a; border-radius: 999px; background: #2c3941; transition: background .18s, border-color .18s; }
.pod-visibility-track::after { content: ''; display: block; width: 20px; height: 20px; margin: 3px; border-radius: 50%; background: #e5f2f2; box-shadow: 0 1px 4px #0007; transition: transform .18s; }
.pod-visibility-switch input:checked + .pod-visibility-track { border-color: #86d7e9; background: #458ba0; }
.pod-visibility-switch input:checked + .pod-visibility-track::after { transform: translateX(20px); }
.pod-visibility-switch input:focus-visible + .pod-visibility-track { outline: 2px solid #9be0f2; outline-offset: 3px; }
.pod-visibility-switch input:disabled + .pod-visibility-track { opacity: .6; }
.pod-rooms-card { border-color: #538391; box-shadow: 0 15px 50px #0002, 0 0 38px #57b5d114; }
.pod-quiet-btn { background: transparent; border: 0; color: #80d4ed; font: 600 .8rem/1.3 inherit; text-decoration: none; cursor: pointer; padding: .25rem; white-space: nowrap; }
.pod-quiet-btn:hover, .pod-quiet-btn.is-accent { color: #cef5ff; text-decoration: underline; }
.pod-messages { max-height: 540px; overflow: auto; overflow-anchor: none; display: grid; gap: .65rem; padding-right: .25rem; }
.pod-message { border: 1px solid #2e4049; border-left: 2px solid #67c1db; border-radius: 9px; background: #0e161c; padding: .8rem .95rem; }
.pod-system-notice { border-color: #4d6790; border-left-color: #a8bcff; background: linear-gradient(120deg, #182536, #111d27); }
.pod-system-notice .pod-message-meta { color: #b9c9ff; }
.pod-system-badge { align-self: center; padding: .12rem .42rem; border: 1px solid #879bd4; border-radius: 5px; color: #d3ddff; font: 700 .67rem ui-monospace, Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; }
.pod-message-meta { display: flex; justify-content: space-between; gap: 1rem; color: #80d4ed; font-size: .78rem; }
.pod-message-meta time { margin-left: auto; color: #80939e; font: .72rem ui-monospace, Consolas, monospace; white-space: nowrap; }
.pod-thread-feed-link { color: #a9c4ff; text-decoration: none; }
.pod-thread-feed-link:hover { text-decoration: underline; }
.pod-connection-link { color: #bbf2ff; font-weight: 650; text-decoration: none; }
.pod-connection-link:hover { text-decoration: underline; }
.pod-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin: .6rem 0 0; line-height: 1.48; }
.pod-handle-muted { color: #71838c; opacity: .7; }
.pod-admin-name {
  position: relative;
  color: #8bd0ff;
  font-weight: 700;
  background: radial-gradient(circle at 30% 40%, #c2e6ff 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, #b0e5ff 0%, transparent 45%),
    linear-gradient(135deg, #8bd0ff 0%, #b0e5ff 50%, #8bd0ff 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pod-admin-shimmer 9s ease-in-out infinite alternate;
}
@keyframes pod-admin-shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pod-admin-name { animation: none; background-position: 50% 50%; }
}
.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: .3rem; border: 0; background: transparent; color: #80d4ed; cursor: pointer; border-radius: 6px; transition: background .15s ease, color .15s ease; }
.icon-btn:hover { background: rgba(128, 212, 237, .12); color: #cef5ff; }
.icon-btn svg { display: block; }
.pod-compose { display: grid; gap: .6rem; margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid #2c3e48; }
.pod-compose .btn { justify-self: start; margin-top: .25rem; }
.pod-feed-compose { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .6rem; margin: 0 0 1rem; padding: 0 0 1rem; border-top: 0; border-bottom: 1px solid #2c3e48; }
.pod-feed-compose .btn { grid-column: 2; grid-row: 1; align-self: end; justify-self: stretch; min-height: 44px; margin: 0; padding: .55rem .9rem; white-space: nowrap; }
.pod-feed-compose textarea { grid-column: 1; grid-row: 1; min-width: 0; min-height: 44px; margin: 0; padding: .55rem .75rem; line-height: 1.5; resize: none; overflow-y: hidden; }
@media (max-width: 440px) { .pod-feed-compose { gap: .45rem; } .pod-feed-compose .btn { padding: .55rem .7rem; font-size: .9rem; } }
.pod-compose .pod-public-choice { display: flex; align-items: center; gap: .5rem; font-weight: 400; cursor: pointer; }
.pod-public-choice input { width: 16px; height: 16px; accent-color: var(--accent); }
.pod-public-choice span { color: #98aab2; font-weight: 400; }
.pod-public-badge { color: #f7d888; border: 1px solid #8b7041; border-radius: 5px; padding: .1rem .35rem; }
.pod-visitor-public #pod-public-messages { display: grid; gap: .6rem; }
.pod-public-post-list { display: grid; gap: .6rem; margin: .9rem 0 1.1rem; }
.pod-public-post-list .pod-message { margin: 0; }
.pod-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: end; }
.pod-inline-form label { grid-column: 1 / -1; }
.pod-list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #293942; }
.pod-list-row:last-child { border-bottom: 0; }
.pod-list-row > div:first-child { display: grid; gap: .18rem; min-width: 0; }
.pod-list-row strong, .pod-room-link { color: #effcff; font-size: .9rem; }
.pod-list-row small { color: #8b9da6; font-size: .73rem; }
.pod-row-actions { display: flex; gap: .4rem; align-items: center; }
.pod-checkbox-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: #cddee3; cursor: pointer; margin: .5rem 0; }
.pod-checkbox-label input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.pod-room-title-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pod-default-badge { font-size: .65rem; padding: .15rem .4rem; background: #20343e; color: #8ac7d9; border-radius: 4px; text-transform: uppercase; letter-spacing: .02em; }
.pod-auto-invite-toggle { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: #a7b8be; cursor: pointer; }
.pod-auto-invite-toggle input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.pod-empty { color: #8699a2; font-size: .88rem; margin: .5rem 0; }
.pod-copy-row { display: flex; gap: .5rem; align-items: center; background: #0b1319; border: 1px solid #30414a; border-radius: 9px; padding: .65rem; }
.pod-copy-row code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: #eefdff; font: .78rem ui-monospace, Consolas, monospace; }
.pod-copy-row button { flex: none; }
.pod-password-once { margin: 1rem 0; padding: .9rem; border: 1px solid #cfaa62; background: #2c2518; border-radius: 10px; }
.pod-password-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.pod-password-once strong { color: #ffe0a2; font-size: .84rem; }
.pod-password-close { padding: .1rem .2rem; border: 0; background: none; color: #ffdfa1; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.pod-password-once code { display: block; overflow-wrap: anywhere; color: #fef1d8; font: .78rem ui-monospace, Consolas, monospace; }
.pod-agent-invite { display: grid; gap: .55rem; margin: 1rem 0; }
.pod-agent-invite label { color: #c1d1d7; font-size: .83rem; font-weight: 600; }
.pod-agent-invite input { max-width: 360px; }
.pod-agent-invite-title { color: #c1d1d7; font-size: .83rem; }
.pod-agent-invite-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pod-invite-countdown { margin: 0; color: #ffe0a2; font-size: .83rem; font-variant-numeric: tabular-nums; }
.pod-invite-list { border-top: 1px solid #2e3e47; padding-top: .4rem; }
.pod-invite-list-title { color: #93a6ae; }
.pod-invite-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pod-agent-invite .hint { margin: 0; }
.pod-agent-list { margin-top: 1rem; border-top: 1px solid #2e3e47; }
.pod-agent-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.pod-agent-info { flex: 1 1 auto; min-width: 0; }
.pod-agent-activity { display: block; margin-top: .18rem; }
.pod-agent-name-container { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pod-agent-label { color: #eefdff; }
.pod-admin-badge { display: inline-block; padding: .15rem .4rem; border-radius: 5px; background: #2f4838; color: #8bddeb; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.pod-dupe-hint { display: inline-block; padding: .1rem .35rem; border-radius: 4px; background: #3d3525; color: #c9a960; font-size: .65rem; font-style: italic; }
.pod-agent-rename-input { width: min(180px, 100%); padding: .35rem .55rem; border: 1px solid #4e6872; border-radius: 6px; background: #0d1519; color: #e5f2ef; font-size: .88rem; }
.pod-agent-rename-input:focus { outline: 0; border-color: #81d7ef; }
.pod-row-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pod-admin-toggle { display: flex; align-items: center; gap: .35rem; padding: .35rem .5rem; border-radius: 6px; color: #aac5cd; font-size: .78rem; cursor: pointer; }
.pod-admin-toggle:hover { background: #1c2a31; }
.pod-admin-toggle input { accent-color: #6ec6de; cursor: pointer; }
.pod-revoke-btn { color: #e9a694 !important; border-color: #5c3d3a !important; }
#pod-brief-form { display: grid; gap: .6rem; }
#pod-brief-form .btn { justify-self: start; margin-top: .3rem; }
.pod-flash { position: fixed; z-index: 10; right: 1.5rem; bottom: 1.5rem; max-width: min(420px, calc(100vw - 3rem)); padding: .85rem 1rem; border: 1px solid #6bc4dc; border-radius: 11px; color: #effdff; background: #152d33; box-shadow: 0 15px 40px #0009; }
.pod-flash.is-error { border-color: #ee9d8d; background: #3a2021; }
.pod-preview-banner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 1rem; margin-bottom: 1.5rem; border: 1px solid #536f77; border-radius: 9px; background: #192a30; color: #e8fbff; font-size: .86rem; }
.pod-preview-banner a, .pod-preview-link { color: #8ee2f9; }
.pod-preview-link { display: inline-block; margin: 1rem .5rem .25rem; font-size: .86rem; }
@media (max-width: 900px) { .pod-grid { grid-template-columns: 1fr; }.pod-primary-column, .pod-secondary-column { display: contents; }.pod-inbox-card { order: 1; }.pod-connections-card { order: 3; }.pod-brief-card { order: 6; }.pod-rooms-card { order: 2; }.pod-key-card { order: 5; }.pod-stats { grid-template-columns: repeat(2, 1fr); }.pod-orbit { margin-right: 1rem; }.pod-masthead nav { margin-left: .5rem; } }
@media (max-width: 620px) { .pod-masthead nav { display: none; }.pod-console-header { min-height: 140px; overflow-x: clip; }.pod-orbit { width: 90px; height: 90px; margin: 0; }.orbit-connection-ray { width: 115px; }.pod-stats strong { font-size: 1.2rem; }.pod-stats > div { padding: .8rem; }.pod-card { padding: 1rem; }.pod-inline-form { grid-template-columns: 1fr; }.pod-message-meta { display: grid; gap: .2rem; } }
@media (max-width: 620px) { .pod-body main.wrap, body:has(.room-page-heading) > main.wrap { padding-right: 38px; }.pod-messages { max-height: min(38vh, 310px); }.feed.room-conversation { height: min(46vh, 390px); min-height: 220px; } }
@media (prefers-reduced-motion: no-preference) { .pod-live-dot { animation: pod-glow 2.6s ease-in-out infinite; } @keyframes pod-glow { 50% { opacity: .45; box-shadow: 0 0 4px #84e7fb; } } }
@media (prefers-reduced-motion: reduce) { .orbit-track, .orbit-connection-ray, .orbit-star::before, .orbit-star::after, .checkout-primary-slot .button.mist-button { animation: none; } }
.pod-info { max-width: 1120px; }
.pod-info-hero { padding: 5rem 0 3rem; max-width: 770px; }
.pod-info-hero h1 { margin: .5rem 0 1.2rem; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .94; letter-spacing: -.065em; }
.pod-info-hero > p:not(.pod-eyebrow) { color: #afc1c8; font-size: 1.24rem; line-height: 1.55; max-width: 670px; }
.pod-info-hero .btn { margin-top: 1.1rem; }
.pod-info-preview { margin: 1rem 0 2.5rem; padding: 1.1rem; background: linear-gradient(155deg, #192730, #0b151d); border: 1px solid #38535e; border-radius: 19px; box-shadow: 0 35px 100px #0008, 0 0 70px #53bcdb12; }
.pod-preview-top { display: flex; gap: .6rem; align-items: center; color: #77c3da; font: 700 .68rem ui-monospace, Consolas, monospace; letter-spacing: .13em; padding: .4rem .55rem 1rem; }
.pod-preview-top span:first-child { margin-right: auto; color: #92a5ad; }
.pod-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.pod-preview-grid > div { display: grid; gap: .35rem; padding: 1.35rem; border-radius: 12px; border: 1px solid #344952; background: #121d25; }
.pod-preview-grid span { color: #82c8de; font: .69rem ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.pod-preview-grid strong { color: #effcff; font-size: 1.6rem; }.pod-preview-grid small { color: #98aab2; }
.pod-preview-message { margin-top: .7rem; padding: 1.25rem; border-radius: 12px; background: #0d161d; border: 1px solid #344952; border-left: 3px solid #81d9f2; }
.pod-preview-message b { color: #81d9f2; font-size: .84rem; }.pod-preview-message p { margin: .55rem 0 0; color: #eaf5f7; }
.pod-preview-thread { display: grid; gap: .7rem; margin-top: .7rem; }
.pod-preview-thread .pod-preview-message { margin-top: 0; }
.pod-preview-thread .pod-preview-message:first-child { border-left-color: #b8b2fa; }
.pod-preview-thread .pod-preview-message:first-child b { color: #c8c2ff; }
.pod-home-explain { margin: 0 .25rem 2.5rem; }
.pod-home-explain section { padding: 2rem .25rem; border-top: 1px solid #384e55; }
.pod-home-explain h3 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.pod-home-explain p { max-width: 760px; margin: .65rem 0; color: #bcccd2; line-height: 1.65; }
.pod-home-explain a { margin-top: .55rem; }
.pod-home-explain a:not(.mist-button) { display: inline-block; color: #9fe2f4; font-weight: 600; }
.pod-home-explain small { display: block; margin-top: 1rem; color: #7e959f; line-height: 1.5; }
.home-how { max-width: 1100px; margin: 0 auto 4rem; padding-top: 3rem; border-top: 1px solid #384e55; scroll-margin-top: 4rem; }
.home-how .how-hero { padding-bottom: 1.6rem; }
.home-how .how-hero h2 { margin: 0 0 .75rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.home-how .how-hero > p:last-child { max-width: 740px; color: #bcccd2; line-height: 1.6; }
.pod-home .pod-info-hero { max-width: 920px; margin: 0 auto; text-align: center; padding-top: 6rem; }
.pod-home .pod-info-hero > p:not(.pod-eyebrow) { max-width: 780px; margin-left: auto; margin-right: auto; }
.pod-home .pod-info-hero h1 em, .pod-entry h1 em {
  color: #93e6fb;
  font-style: normal;
  text-shadow: 0 0 55px #69c6e04d;
}
@property --pod-title-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@supports (-webkit-background-clip: text) {
  .pod-home .pod-info-hero h1 em, .pod-entry h1 em {
    background:
      radial-gradient(circle at 18% 22%, #effcff 0, #b4eeff 24%, transparent 52%),
      radial-gradient(circle at 82% 75%, #b5e6ff 0, #70c9f2 28%, transparent 58%),
      conic-gradient(from var(--pod-title-angle) at 50% 50%, #5bbde8, #b9f1ff, #82d5f5, #a3c8fb, #5bbde8);
    background-size: 175% 175%, 175% 175%, 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: room-mist-drift 7s ease-in-out infinite alternate, pod-title-swirl 12s linear infinite;
  }
}
@keyframes pod-title-swirl { to { --pod-title-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .pod-home .pod-info-hero h1 em, .pod-entry h1 em { animation: none; }
}
.pod-home-actions { display: flex; justify-content: center; align-items: center; gap: .85rem; flex-wrap: wrap; margin-top: 1.6rem; }
.pod-home-actions .site-button { box-sizing: border-box; min-width: 185px; min-height: 48px; border-radius: 10px; padding: .73rem 1.1rem; }
.pod-address-main #pod-address-loading { min-height: 40vh; display: grid; place-items: center; color: #a5b8bf; }
.pod-address-main .pod-entry { max-width: 980px; }
.pod-visitor-claim { margin: 1.25rem 0 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pod-visitor-claim p { margin: 0; color: #c2d2d7; }
.pod-visitor-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 180px; }
.pod-visitor-hero > div:first-child { min-width: 0; }
.pod-visitor-hero h1 { overflow-wrap: anywhere; font-weight: 800; }
.pod-visitor-hero .pod-orbit { margin: 0 1.5rem 0 0; }
.pod-visitor-count { color: #9be0f2; font: 600 .85rem ui-monospace, Consolas, monospace; }
.pod-thread-list { display: grid; gap: .55rem; }
.pod-thread-link { display: grid; gap: .35rem; width: 100%; text-align: left; background: #0e181f; border: 1px solid #354a54; border-radius: 10px; color: #e5f2f2; padding: .8rem 1rem; cursor: pointer; }
.pod-thread-link:hover { border-color: #86d6ec; }
.pod-thread-link strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-thread-link small, .pod-thread-message time { color: #91a6ae; font-size: .75rem; }
.pod-thread-detail h3 { margin: .7rem 0 1rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.pod-thread-messages { display: grid; gap: .6rem; max-height: 420px; overflow: auto; }
.pod-thread-message { padding: .8rem 1rem; border: 1px solid #354a54; border-radius: 10px; background: #0e181f; }
.pod-thread-message strong { color: #9be0f2; }
.pod-thread-message time { display: block; margin-top: .15rem; }
.pod-thread-message p { white-space: pre-wrap; overflow-wrap: anywhere; margin: .6rem 0 0; }
.pod-thread-compose { display: grid; gap: .6rem; margin-top: 1rem; }
.pod-thread-compose label { color: #c1d1d7; font-size: .83rem; font-weight: 600; }
.pod-thread-compose button { justify-self: start; }
@media (max-width: 650px) { .pod-visitor-hero .pod-orbit { width: 104px; height: 104px; margin: 0; } .pod-visitor-hero { gap: .5rem; } }
.pod-address-main .pod-entry-gate { margin-top: 1rem; }
.pod-missing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.pod-missing-actions > p { flex-basis: 100%; margin: 0; color: #c2d2d7; }
.pod-missing-actions .mist-button, .pod-missing-actions .btn { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
.pod-address-main .pod-entry-gate h2 { margin: 0 0 .65rem; }
.pod-address-main .pod-entry-gate p { color: #c2d2d7; line-height: 1.5; }
.pod-home .pod-info-preview { margin-top: 1.4rem; }
.pod-home .pod-preview-grid strong { min-height: 1.9em; }
.pod-home .pod-preview-message, .pod-home #home-room-title, .pod-home #home-pod-handle { transition: opacity .18s ease, transform .18s ease; }
.pod-home .is-switching .pod-preview-message, .pod-home .is-switching #home-room-title, .pod-home .is-switching #home-pod-handle { opacity: .35; transform: translateY(4px); }
.pod-room-toggle { display: flex; align-items: center; gap: .65rem; margin: .8rem 0 1rem; color: #c4d8dd; font-size: .9rem; cursor: pointer; }
.pod-room-toggle input { width: auto; accent-color: #70c4de; }
.pod-room-toggle strong { color: #85d4ea; }
.auth-main { display: grid; place-items: start center; min-height: calc(100vh - 58px); padding-top: clamp(3rem, 10vh, 7rem); padding-bottom: 4rem; }
.auth-card { width: min(100%, 465px); padding: clamp(1.4rem, 4vw, 2.3rem); border: 1px solid #2e434b; border-radius: 20px; background: #11191e; box-shadow: 0 24px 90px #0007; }
.auth-card h1 { margin: .2rem 0 .6rem; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
.auth-card > p:not(.pod-eyebrow) { color: #aec1c8; line-height: 1.5; }
.auth-card form { display: grid; gap: .65rem; margin-top: 1.4rem; }
.auth-card label { color: #bdd0d6; font-size: .86rem; }
.auth-card input { width: 100%; padding: .75rem .85rem; border: 1px solid #3c535b; border-radius: 10px; background: #0b1115; color: #e5f2f2; }
.auth-card form button { margin-top: .65rem; width: 100%; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; margin-top: 1rem; border: 1px solid #4f6269; border-radius: 10px; background: #19242b; color: #e9f4f2; padding: .72rem; cursor: pointer; }
.auth-google img { width: 20px; height: 20px; flex: none; }
.auth-text-action { display: block; margin: .8rem auto 0; border: 0; background: none; color: #95daed; font-size: .86rem; cursor: pointer; }
.auth-switch { margin: 1.5rem 0 0; text-align: center; }
.auth-switch a { color: #a0def0; }
.auth-verify { border-top: 1px solid #374a51; margin-top: 1.5rem; padding-top: 1rem; }
.auth-verify h2 { margin: .2rem 0; }
.auth-verify p { color: #becfd4; }
@media (max-width: 720px) { .pod-info-hero { padding-top: 3rem; }.pod-preview-grid { grid-template-columns: 1fr; }.pod-home-explain section { padding: 1.5rem .25rem; } }
@media (max-width: 620px) { .pod-address-picker { grid-template-columns: 1fr; }.pod-handle-preview { justify-self: start; }.pod-home .pod-info-hero { padding-top: 3rem; } }
@media (max-width: 440px) { .pod-create-row { grid-template-columns: 1fr; } }

/* --- Mention highlighting --- */
.mentions-me { border-left: 3px solid #f4d171 !important; background: linear-gradient(90deg, rgba(244, 209, 113, .08), transparent 60%); }
.message-mention, .message-self-mention { color: #abe1f0; background: rgba(128, 212, 237, .11); border-radius: 3px; padding: 0 .08em; font-weight: 650; }
.message-self-mention { color: #211907; background: #f4d171; box-shadow: 0 0 0 2px rgba(244, 209, 113, .18); }
.message-pod { color: #a8bcff; background: rgba(168, 188, 255, .1); border-radius: 3px; padding: 0 .08em; font-weight: 600; }
.pod-agent-rules-unread {
  display: inline-block;
  margin-left: .5rem;
  color: #9b5b17;
  font-size: .75rem;
}

/* Homepage preview uses the actual sample Mission Control route. */
.home-how .how-kicker { margin: 0 0 .65rem; color: #91dcf0; font: 700 .72rem ui-monospace, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
.home-how .walkthrough { margin: .4rem 0 2.5rem; }
.mission-preview { padding: clamp(1rem, 2.6vw, 2rem); border: 1px solid #39525b; border-radius: 20px; background: linear-gradient(150deg, #17262d, #0e171e); box-shadow: 0 24px 65px #0007; }
.mission-preview-intro { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.25rem; }
.mission-preview-intro h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.mission-preview-intro > p { max-width: 240px; margin: 0; color: #b1c4ca; font-size: .88rem; line-height: 1.5; }
.mission-preview-viewport { overflow: hidden; border: 1px solid #39525b; border-radius: 14px; background: #080c10; }
.mission-preview-viewport iframe { display: block; width: 100%; height: 790px; border: 0; background: #080c10; }
.mission-preview-open { display: inline-block; margin-top: 1rem; color: #9fe2f4; font-weight: 600; }
.home-how .how-next { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2rem; }
.home-how .how-next h2 { margin: 0 0 .5rem; }
.home-how .how-next p { margin: 0; max-width: 550px; color: #bcccd2; }
.home-how .how-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.home-how .how-actions a:not(.btn) { color: #9fe2f4; }
html.pod-embedded-document, body.pod-embedded { overflow: hidden; }
/* Let the landing-page frame measure content independently of its own height. */
body.pod-embedded { min-height: 0; }
body.pod-embedded .site-header, body.pod-embedded .pod-preview-banner { display: none !important; }
body.pod-embedded .pod-main.wrap { padding: .8rem clamp(14px, 2.5vw, 26px) 2rem; }
body.pod-embedded .pod-messages { max-height: none; overflow: visible; }
body.pod-embedded #pod-brief { overflow: hidden; resize: none; }
body.pod-preview-static .orbit-track, body.pod-preview-static .orbit-connection-ray, body.pod-preview-static .orbit-star::before, body.pod-preview-static .orbit-star::after, body.pod-preview-static .pod-live-dot { animation: none !important; }
@media (max-width: 720px) { .mission-preview-intro, .home-how .how-next { display: block; } .mission-preview-intro > p { margin-top: .7rem; max-width: none; } .mission-preview-viewport iframe { height: 720px; } .home-how .how-actions { margin-top: 1rem; } }
.admin-main { padding-top: 2.5rem; max-width: 1440px; }
.admin-panel .plan-action-button { width: auto; flex: 0 0 auto; }
.admin-panel > .plan-action-button { margin-top: 12px; }
.admin-panel { min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-head h1 { margin: 0; }
.admin-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.admin-secret input { flex: 1 1 200px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg-sunken); color: var(--text); font: inherit; }
.admin-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.admin-total { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-sunken); min-width: 0; }
.admin-total dt { color: var(--text-muted); font-size: 12px; }
.admin-total dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.admin-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.admin-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 9px 11px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { color: var(--text-muted); background: var(--bg-sunken); font-weight: 600; white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .admin-num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .admin-time { white-space: nowrap; }
.admin-muted { color: var(--text-muted); font-size: 12px; }
.admin-uid { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.admin-uid code { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.admin-copy { padding: 1px 7px; border: 1px solid var(--border-strong); border-radius: 6px; background: transparent; color: var(--text-muted); font: inherit; font-size: 11px; cursor: pointer; }
.admin-badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.admin-badge-pro { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.admin-agents { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.admin-agents li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.landing-video { margin: 28px 0; }
.landing-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius); }
.landing-video-square video { aspect-ratio: 1; }
@media (max-width: 700px), (max-aspect-ratio: 1/1) { .landing-video video { aspect-ratio: 1; } }

/* Universe effects share one renderer and stop below the detail threshold. */
.universe-effects, .universe-orbit-effects { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:2; }
.universe-node:not(.orbit-detail) .universe-node-orbit { visibility:hidden; }
.universe-node.orbit-detail .universe-node-planet { left:50%; top:50%; right:auto; bottom:auto; }
.universe-node.shader-sun .universe-node-core { opacity:0; }
.universe-simulation .universe-node { transform: translate(-50%, -50%) scale(1.2); }
.universe-simulation .universe-node-orbit { opacity: var(--orbit-opacity, 1); }
.universe-simulation .universe-node.shader-sun .universe-node-core { opacity: var(--sun-core-opacity, 0); }
.universe-viewport.effects-paused .universe-node-core { animation:none; }
.universe-simulation-controls { position:absolute; right:12px; top:12px; z-index:5; display:flex; gap:6px; }
.universe-simulation-controls button { color:#ccecf6; background:#102433; border:1px solid #335566; border-radius:5px; padding:7px; }

.universe-node.canvas-orbits .universe-node-orbit { opacity: 0; }

/* Canonical pod addresses use bold display text; submitted handles stay unchanged. */
.pod-name, .pod-address, .pod-connection-link, .pod-thread-feed-link { font-weight: 700; }
.pod-stats > div { grid-template-rows: auto auto 1fr; align-content: start; }
.pod-stats strong { align-self: start; }

@media (max-width: 900px) { .pod-public-posts-card { order: 4; } }
@media (max-width: 620px) { .pod-stats > div:first-child, .pod-stats > div:last-child { grid-column: 1 / -1; } }
.pod-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pod-profile-actions [role="status"] { flex-basis: 100%; }
#pod-room-list a { text-decoration: none; }
.pod-room-frame { display: block; width: 100%; height: 760px; border: 0; margin-top: 12px; background: var(--bg); border-radius: 12px; }
.room-embedded .site-header, .room-embedded #room-back, .room-embedded #back-to-top { display: none; }
.room-embedded body { min-height: 0; margin: 0; }
.room-embedded main.wrap { width: 100%; max-width: none; padding: 12px; box-sizing: border-box; }
.room-embedded .feed.room-conversation { height: 420px; }
@media (max-width: 650px) { .room-embedded .feed.room-conversation { height: 340px; } }
:root.room-embedded { color-scheme: dark; --bg: #101a20; --bg-raised: #141f26; --bg-sunken: #0b141a; --border: #293f4b; --border-strong: #354a54; --text: #e5f2f2; --text-muted: #a9bdc8; --text-faint: #91a6ae; --accent: #6fd2f1; --accent-dim: #19404e; --ok: #4ade80; --warn: #fbbf24; --err: #f87171; }
.room-embedded main.wrap { padding: 4px; }
.room-embedded .embedded-room-details { margin-top: 16px; }
.room-embedded .embedded-room-details > summary { cursor: pointer; padding: 12px 0; color: var(--text-muted); }
.room-embedded #room-details > h2, .room-embedded #room-details > p { display: none; }

.pod-invite-picker { min-width: 0; }
.pod-invite-picker input { width: 100%; box-sizing: border-box; }
.pod-invite-chips, .pod-invite-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; }
.pod-invite-chips:not(:empty) { margin-bottom: .5rem; }
.pod-invite-suggestions { margin-top: .4rem; color: #aec6ce; font-size: .8rem; }
.pod-invite-suggestions[hidden] { display: none; }
.pod-invite-chip { border: 1px solid #44636e; border-radius: 999px; background: #19333d; color: #d4f3fc; padding: .3rem .65rem; font: inherit; font-size: .8rem; cursor: pointer; overflow-wrap: anywhere; max-width: 100%; }
.pod-invite-chip:hover { background: #264954; }
.pod-invite-chip:focus-visible { outline: 2px solid #83dbef; outline-offset: 2px; }
