/* Cove UI — Interactive Community Netlify Bot & Workbench
   Visual language grounded in netlify.com (Nov 2026) with dual Warm Cream / Obsidian Dark themes.
   Licensed stand-in typography: Inter Tight + IBM Plex Mono. */

:root {
  --color-bg: #f7f6f4;
  --color-bg-2: #f0eeea;
  --color-bg-3: #e7e5e0;
  --color-bg-inverse: #131619;
  --color-bg-panel-raised: #ffffff;
  --color-text: #131619;
  --color-text-weak: #56534c;
  --color-text-weaker: #736f67;
  --color-text-quiet: #9d9890;
  --color-text-inverse: #ffffff;
  --color-brand-primary: #01d4e5;
  --color-brand-primary-hover: #60deec;
  --color-brand-ink: #131619;
  --color-emerald: #0b8a7a;
  --color-amber: #c76b2a;
  --color-error: #b43c24;
  --color-border: #e7e5e0;
  --color-border-strong: #d4d1c9;
  --shadow-card: 0 14px 40px -14px rgba(19, 22, 25, 0.14);
  --shadow-soft: 0 6px 20px -8px rgba(19, 22, 25, 0.09);
  --radius-pill: 360px;
  --radius-panel: clamp(1.25rem, 0.9943rem + 1.1364vw, 1.875rem);
  --radius-2xl: 1.65rem;
  --radius-xl: 1rem;
  --radius-l: 0.75rem;
  --font-sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-display: clamp(2.85rem, 2.1rem + 3.4vw, 4.75rem);
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.02em;
  --page-pad: clamp(1.1rem, 0.7rem + 2vw, 3rem);
  --nav-max: 74rem;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="dark"] {
  --color-bg: #0c1114;
  --color-bg-2: #121a1f;
  --color-bg-3: #1b262d;
  --color-bg-inverse: #070b0d;
  --color-bg-panel-raised: #131c21;
  --color-text: #f3f5f6;
  --color-text-weak: #b4c0c7;
  --color-text-weaker: #8696a0;
  --color-text-quiet: #5e707a;
  --color-text-inverse: #0c1114;
  --color-border: #22313a;
  --color-border-strong: #324652;
  --shadow-card: 0 18px 46px -14px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 8px 24px -10px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.22s ease, color 0.22s ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
textarea,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

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

/* Announcement — warm peach/coral wash + grain */
.announce {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(80% 120% at 10% 50%, #ff9a5c 0%, transparent 60%),
    radial-gradient(70% 140% at 90% 50%, #ff8f55 0%, transparent 55%),
    linear-gradient(90deg, #f6a06e, #e89a6c 50%, #f8a574);
  color: #131619;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.6rem 1.25rem;
  overflow: hidden;
}

html[data-theme="dark"] .announce {
  background: linear-gradient(90deg, #132c33, #193b44 50%, #132c33);
  color: #dff8fb;
  border-bottom: 1px solid #224a55;
}

.announce::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.24;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.announce-inner {
  max-width: var(--nav-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.25rem;
}

.announce-kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.85;
}

.announce-kbd code,
.announce-kbd kbd {
  background: rgba(19, 22, 25, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

html[data-theme="dark"] .announce-kbd code,
html[data-theme="dark"] .announce-kbd kbd {
  background: rgba(1, 212, 229, 0.18);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--nav-max);
  margin: 0 auto;
  width: 100%;
  padding: 1rem var(--page-pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(1, 212, 229, 0.16);
  color: var(--color-text);
  border: 1px solid rgba(1, 212, 229, 0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}

.nav-links a,
.nav-text {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav-links a:hover,
.nav-text:hover {
  background: var(--color-bg-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.icon-pill {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel-raised);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-pill:hover {
  background: var(--color-bg-2);
  border-color: var(--color-border-strong);
}

.icon-pill.is-active {
  border-color: var(--color-brand-primary);
  background: rgba(1, 212, 229, 0.14);
}

#toggle-sound:not(.is-active) .sound-wave {
  opacity: 0.22;
}

html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 2.65rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-brand-primary);
  color: var(--color-brand-ink);
  border: 2px solid var(--color-brand-primary);
  padding: 10px 18px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-brand-primary-hover);
  border-color: var(--color-brand-primary-hover);
}

.btn-muted {
  background: var(--color-bg-3);
  color: var(--color-text);
  border: 2px solid var(--color-bg-3);
  padding: 10px 18px;
}

.btn-muted:hover:not(:disabled) {
  background: var(--color-border-strong);
  border-color: var(--color-border-strong);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  padding: 10px 18px;
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-bg-2);
  border-color: var(--color-text);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Main Page & Hero */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 1.25rem var(--page-pad) 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 3.6vw, 4rem);
  align-items: start;
}

.hero-copy {
  padding-top: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--color-text-weak);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  box-shadow: 0 0 0 3px rgba(1, 212, 229, 0.22);
}

h1 {
  margin: 0 0 1.15rem;
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--tracking-tighter);
  color: var(--color-text);
}

.lede {
  margin: 0 0 1.65rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.52;
  color: var(--color-text-weak);
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

/* Interactive Telemetry Grid */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0 0 0.85rem;
}

.telemetry-tile {
  text-align: left;
  background: var(--color-bg-panel-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--color-text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button.telemetry-tile {
  cursor: pointer;
}

button.telemetry-tile:hover {
  border-color: var(--color-brand-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.telemetry-tile .k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-weaker);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-tile .v {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.led.is-cyan { background: var(--color-brand-primary); }
.led.is-emerald { background: var(--color-emerald); }
.led.is-amber { background: var(--color-amber); }

.hint {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--color-text-weaker);
  max-width: 34rem;
}

.quick-commands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.qc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-weaker);
  margin-right: 0.25rem;
}

.qc-pill {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel-raised);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.qc-pill code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-emerald);
}

html[data-theme="dark"] .qc-pill code {
  color: var(--color-brand-primary);
}

.qc-pill:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-bg-2);
}

/* Right Column: Peach-to-Teal Grain Well + Articulated Bot + Floating Chat */
.hero-panel {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90% 80% at 50% 35%, rgba(80, 180, 190, 0.38), transparent 58%),
    radial-gradient(80% 70% at 8% 92%, rgba(255, 150, 90, 0.92), transparent 55%),
    radial-gradient(70% 60% at 92% 88%, rgba(255, 160, 110, 0.82), transparent 50%),
    radial-gradient(50% 50% at 80% 15%, rgba(1, 212, 229, 0.32), transparent 50%),
    linear-gradient(165deg, #f3c4a8 0%, #e8b7a8 38%, #7eb8b8 100%);
  border-radius: var(--radius-panel);
  padding: 1rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

html[data-theme="dark"] .hero-panel {
  background:
    radial-gradient(80% 70% at 50% 24%, rgba(1, 212, 229, 0.22), transparent 58%),
    radial-gradient(70% 60% at 10% 90%, rgba(255, 143, 85, 0.22), transparent 55%),
    linear-gradient(165deg, #10242c 0%, #0d1d24 52%, #0a1419 100%);
  border: 1px solid #223b45;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: var(--grain);
  border-radius: inherit;
  z-index: 0;
}

/* Bot HUD Top Bar */
.bot-hud-top {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.bot-state-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(19, 22, 25, 0.78);
  color: #f7f6f4;
  backdrop-filter: blur(8px);
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  box-shadow: 0 0 8px var(--color-brand-primary);
  animation: pulse 1.8s ease-in-out infinite;
}

.bot-state-pill[data-mood="error"] .state-dot {
  background: #ff8f55;
  box-shadow: 0 0 8px #ff8f55;
}

.bot-hud-controls {
  display: flex;
  gap: 0.35rem;
}

.hud-chip {
  appearance: none;
  border: 1px solid rgba(19, 22, 25, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #131619;
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

html[data-theme="dark"] .hud-chip {
  background: rgba(19, 28, 33, 0.78);
  color: #e6f4f7;
  border-color: rgba(1, 212, 229, 0.25);
}

.hud-chip:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

html[data-theme="dark"] .hud-chip:hover {
  background: rgba(1, 212, 229, 0.2);
}

.bot-speech {
  position: relative;
  z-index: 3;
  width: min(100%, 28.5rem);
  background: rgba(255, 255, 255, 0.82);
  color: #131619;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 1rem;
  padding: 0.48rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.38;
  text-align: center;
  box-shadow: 0 4px 14px -6px rgba(19, 22, 25, 0.15);
}

html[data-theme="dark"] .bot-speech {
  background: rgba(19, 28, 33, 0.82);
  color: #e6f4f7;
  border-color: rgba(1, 212, 229, 0.22);
}

/* Articulated Interactive Bot Stage */
.mascot {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 13.75rem;
  margin: 0.15rem 0 -0.85rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
  transform-origin: 50% 50%;
}

.cove-bot-svg {
  position: relative;
  z-index: 2;
  width: min(100%, 20rem);
  height: auto;
  overflow: visible;
  transition: transform 0.25s var(--ease-expo);
}

.mascot:hover .cove-bot-svg {
  transform: scale(1.03);
}

.mascot.is-booped .cove-bot-svg {
  animation: bot-boop 0.48s var(--ease-expo);
}

.bot-rig {
  transform-origin: 180px 130px;
  animation: bot-hover 4.6s ease-in-out infinite;
}

.bot-ground-shadow {
  transform-origin: 180px 224px;
  animation: shadow-breathe 4.6s ease-in-out infinite;
}

.mascot-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.mascot-shadow {
  display: none;
}

/* Eye blinking & Mood states */
.bot-eyes {
  transform-origin: 180px 116px;
  transition: opacity 0.18s ease;
}

.mascot.is-blinking .eyes-normal {
  transform: scaleY(0.12);
  transform-origin: 180px 116px;
}

.mascot[data-mood="thinking"] .bot-rig {
  animation: bot-think 1.6s ease-in-out infinite;
}

.mascot[data-mood="thinking"] .visor-scan {
  opacity: 0.22;
  animation: visor-sweep 1.3s ease-in-out infinite;
}

.mascot[data-mood="thinking"] .antenna-ring,
.mascot[data-mood="talking"] .antenna-ring {
  animation: beacon-ring 1.6s ease-out infinite;
}

.mascot[data-mood="thinking"] .antenna-ring.ring-2,
.mascot[data-mood="talking"] .antenna-ring.ring-2 {
  animation-delay: 0.65s;
}

.mascot[data-mood="talking"] .bot-rig {
  animation: bot-talk 0.9s ease-in-out infinite;
}

.mascot[data-mood="success"] .eyes-normal,
.mascot[data-mood="excited"] .eyes-normal {
  opacity: 0;
}

.mascot[data-mood="success"] .eyes-happy,
.mascot[data-mood="excited"] .eyes-happy {
  opacity: 1;
}

.mascot[data-mood="code"] .eyes-normal {
  opacity: 0;
}

.mascot[data-mood="code"] .eyes-code {
  opacity: 1;
}

.mascot[data-mood="error"] .eyes-normal {
  opacity: 0;
}

.mascot[data-mood="error"] .eyes-error {
  opacity: 1;
}

.mascot[data-mood="error"] .visor-bezel {
  stroke: #ff8f55;
}

@keyframes bot-hover {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@keyframes shadow-breathe {
  0%, 100% { transform: scaleX(1); opacity: 0.2; }
  50% { transform: scaleX(0.88); opacity: 0.12; }
}

@keyframes bot-think {
  0%, 100% { transform: translate3d(0, -2px, 0) rotate(-1.5deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1.5deg); }
}

@keyframes bot-talk {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -4px, 0) scale(1.012); }
}

@keyframes bot-boop {
  0% { transform: scale(1); }
  25% { transform: scale(1.09, 0.92) translateY(5px); }
  55% { transform: scale(0.96, 1.05) translateY(-8px); }
  100% { transform: scale(1); }
}

@keyframes visor-sweep {
  0% { transform: translateY(0); }
  50% { transform: translateY(72px); }
  100% { transform: translateY(0); }
}

@keyframes beacon-ring {
  0% { opacity: 0.85; transform: scale(0.6); transform-origin: 180px 23px; }
  100% { opacity: 0; transform: scale(2.1); transform-origin: 180px 23px; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* Floating Chat Card */
.chat-card {
  position: relative;
  z-index: 3;
  width: min(100%, 30.5rem);
  background: var(--color-bg-panel-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.1rem 0.95rem;
  display: flex;
  flex-direction: column;
  height: 25.5rem;
  overflow: visible;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.7rem;
}

.chat-head h2 {
  margin: 0.1rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
}

.chat-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.chat-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.chat-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-weak);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.chat-tab.is-active {
  background: var(--color-bg-panel-raised);
  color: var(--color-text);
  box-shadow: 0 1px 2px rgba(19, 22, 25, 0.12);
}

.live-note {
  margin: 0;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-text-weaker);
  text-align: right;
  max-width: 11rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.chips button {
  appearance: none;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.36rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chips button:hover {
  background: var(--color-bg-2);
  border-color: var(--color-brand-primary);
}

.chat-card.is-chatting .chips,
.chat-card.is-chatting .transcript > li.welcome {
  display: none;
}

.transcript {
  list-style: none;
  margin: 0;
  padding: 0 0.15rem 0 0;
  flex: 1 1 auto;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.transcript li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 100%;
}

.transcript li.user {
  align-items: flex-end;
}

.bubble-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.who {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-weaker);
}

.bubble-time {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--color-text-quiet);
}

.bubble-copy {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-weaker);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.bubble-copy:hover {
  background: var(--color-bg-2);
  color: var(--color-text);
}

.transcript .body {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1.1rem;
  padding: 0.72rem 0.88rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.transcript li.user .body {
  background: var(--color-bg-2);
  border-color: transparent;
}

.transcript .body h3,
.transcript .body h4 {
  margin: 0.65rem 0 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.transcript .body p {
  margin: 0 0 0.6rem;
}

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

.transcript .body ul {
  margin: 0.4rem 0 0.6rem;
  padding-left: 1.15rem;
}

.code-wrap {
  margin: 0.65rem 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--color-bg-inverse);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.38rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: #a8b5be;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.copy-code {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f7f6f4;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.16rem 0.5rem;
  border-radius: 99px;
  cursor: pointer;
}

.copy-code:hover {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
}

.transcript pre,
.transcript .body pre {
  margin: 0;
  background: transparent;
  color: #f3f5f6;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
}

.transcript code {
  font-family: var(--font-mono);
  font-size: 0.84em;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-weaker);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.typing::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-brand-primary);
  animation: pulse 1s ease-in-out infinite;
}

/* Follow-up chips */
.followup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.followup-row[hidden] {
  display: none !important;
}

.followup-chip {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
}

.followup-chip.is-tool {
  border-color: rgba(1, 212, 229, 0.55);
  background: rgba(1, 212, 229, 0.1);
}

.followup-chip:hover {
  border-color: var(--color-brand-primary);
}

/* Composer + Slash Command Menu */
.composer-wrap {
  position: relative;
  margin-top: 0.7rem;
}

.slash-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.45rem);
  background: var(--color-bg-panel-raised);
  border: 1px solid var(--color-border-strong);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 20;
}

.slash-menu[hidden] {
  display: none !important;
}

.slash-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  padding: 0.48rem 0.65rem;
  border-radius: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
}

.slash-item code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-emerald);
  min-width: 5.5rem;
}

html[data-theme="dark"] .slash-item code {
  color: var(--color-brand-primary);
}

.slash-item.is-active,
.slash-item:hover {
  background: var(--color-bg-2);
}

.composer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.35rem 0.3rem 0.45rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
}

.composer:focus-within {
  border-color: var(--color-text);
}

.composer-tool {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-text-weak);
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-tool:hover {
  background: var(--color-bg-2);
  color: var(--color-text);
}

.composer-tool.is-recording {
  color: #ffffff;
  background: var(--color-error);
  animation: pulse 1s ease-in-out infinite;
}

.composer textarea {
  flex: 1;
  resize: none;
  border: 0;
  background: transparent;
  color: var(--color-text);
  padding: 0.42rem 0.15rem;
  min-height: 2.1rem;
  max-height: 7.5rem;
  overflow-y: hidden;
  outline: none;
  line-height: 1.4;
  font-size: 0.875rem;
}

.composer textarea::placeholder {
  color: var(--color-text-quiet);
}

.send {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-brand-primary);
  color: var(--color-brand-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.send:hover:not(:disabled) {
  background: var(--color-brand-primary-hover);
}

.send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.send-stop {
  background: var(--color-bg-inverse);
  color: #ffffff;
}

.send[hidden] {
  display: none !important;
}

/* =========================================================
   Interactive Bot Workbench Section
   ========================================================= */
.workbench {
  margin-top: 4.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--color-border);
}

.workbench-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.workbench-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
}

.workbench-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.wb-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-weak);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.wb-tab.is-active {
  background: var(--color-bg-panel-raised);
  color: var(--color-text);
  box-shadow: 0 2px 6px rgba(19, 22, 25, 0.08);
}

.wb-panel {
  background: var(--color-bg-panel-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  padding: clamp(1.1rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--shadow-soft);
}

.wb-panel[hidden] {
  display: none !important;
}

.wb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

.wb-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wb-preset-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wb-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-weaker);
}

.wb-presets,
.wb-sample-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--color-border-strong);
  background: var(--color-bg-2);
}

.chip-btn.is-active {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-brand-ink);
  font-weight: 600;
}

.wb-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.wb-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-weak);
}

.wb-field input[type="text"],
.wb-rules-input {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 0.75rem;
  padding: 0.58rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

.wb-field input[type="text"]:focus,
.wb-rules-input:focus {
  border-color: var(--color-brand-primary);
}

.wb-inline-input {
  display: flex;
  gap: 0.5rem;
}

.wb-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wb-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--color-text);
  cursor: pointer;
}

.wb-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-brand-primary);
  flex-shrink: 0;
}

.wb-toggle code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--color-bg-2);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

.wb-lint-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lint-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.lint-item.is-ok {
  border-color: rgba(11, 138, 122, 0.35);
  background: rgba(11, 138, 122, 0.08);
}

.lint-item.is-warn {
  border-color: rgba(199, 107, 42, 0.4);
  background: rgba(199, 107, 42, 0.1);
}

.lint-item.is-error {
  border-color: rgba(180, 60, 36, 0.45);
  background: rgba(180, 60, 36, 0.1);
}

.lint-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  background: var(--color-bg-panel-raised);
  flex-shrink: 0;
}

.wb-output {
  background: var(--color-bg-inverse);
  color: #f3f5f6;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.wb-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wb-code-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #a8b5be;
}

.wb-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.btn-mini {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #f3f5f6;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-mini:hover {
  border-color: var(--color-brand-primary);
  color: var(--color-brand-primary);
}

.btn-mini-accent {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: #131619;
  font-weight: 600;
}

.btn-mini-accent:hover {
  background: var(--color-brand-primary-hover);
  color: #131619;
}

.wb-code-editor {
  width: 100%;
  min-height: 19rem;
  resize: vertical;
  border: 0;
  background: transparent;
  color: #e9f4f7;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 0.95rem 1rem;
  outline: none;
}

.wb-sim-result {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sim-summary h3 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.sim-summary code {
  font-family: var(--font-mono);
  color: var(--color-brand-primary);
}

.sim-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #c2cfd6;
}

.sim-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(1, 212, 229, 0.18);
  color: var(--color-brand-primary);
}

.sim-params {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #e6f4f7;
}

.wb-cli-preview {
  margin: 0;
  padding: 1.15rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #5ff2ff;
  overflow-x: auto;
}

.wb-cli-explain {
  padding: 0 1rem 1.1rem;
  color: #b4c0c7;
  font-size: 0.84rem;
}

.wb-cli-explain p {
  margin: 0;
}

/* Footer */
.foot {
  padding: 3.5rem 0 0;
  margin-top: auto;
}

.foot-inner {
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 2rem var(--page-pad) 2.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--color-text-weaker);
  font-size: 0.875rem;
}

.foot-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.foot-tag,
.foot-inner p {
  margin: 0.25rem 0 0;
}

.foot-inner a {
  color: var(--color-text);
  text-underline-offset: 2px;
}

.foot-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* Drawers (Conversations + Account/Providers) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 22, 25, 0.35);
  backdrop-filter: blur(2px);
  z-index: 40;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 41;
  width: min(27rem, 100%);
  height: 100%;
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
  overflow: hidden;
}

.drawer[hidden],
.drawer-backdrop[hidden] {
  display: none !important;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.drawer-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
}

.drawer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.drawer-tools input[type="search"] {
  flex: 1 1 10rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel-raised);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  color: var(--color-text);
  outline: none;
}

.drawer-tools input[type="search"]:focus {
  border-color: var(--color-text);
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tag-chip,
.mini-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.tag-chip {
  appearance: none;
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel-raised);
  color: var(--color-text);
  padding: 0.38rem 0.7rem;
  cursor: pointer;
}

.tag-chip.is-active {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-brand-ink);
}

.mini-tag {
  background: var(--color-bg-2);
  color: var(--color-text-weak);
  padding: 0.22rem 0.5rem;
}

.conversation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.conversation-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: stretch;
}

.convo-item {
  appearance: none;
  text-align: left;
  border: 1px solid var(--color-border);
  background: var(--color-bg-panel-raised);
  border-radius: var(--radius-xl);
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.convo-item.is-active,
.convo-item:hover {
  border-color: var(--color-border-strong);
}

.convo-item.is-active {
  box-shadow: 0 0 0 2px rgba(1, 212, 229, 0.38);
}

.convo-title {
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.convo-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-text-weaker);
}

.convo-preview {
  font-size: 0.8125rem;
  color: var(--color-text-weak);
  line-height: 1.4;
}

.convo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.convo-delete {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text-weaker);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.3rem;
}

.convo-delete:hover {
  color: var(--color-text);
}

.conversation-empty {
  margin: 1.5rem 0;
  color: var(--color-text-weaker);
  font-size: 0.875rem;
}

/* Account & Providers Drawer */
.drawer-tabs {
  margin: 0 0 1rem;
  align-self: flex-start;
}

.account-panel {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
}

.account-panel[hidden] {
  display: none !important;
}

.account-lead,
.account-copy {
  margin: 0.35rem 0 0;
  color: var(--color-text-weak);
  font-size: 0.875rem;
  line-height: 1.45;
}

.account-card {
  background: var(--color-bg-panel-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 1rem 1.05rem 1.05rem;
}

.account-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
}

.account-card pre {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  background: var(--color-bg);
  border-radius: 1rem;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.account-copy code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.token-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.token-form input {
  flex: 1 1 12rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  color: var(--color-text);
  outline: none;
}

.token-form input:focus {
  border-color: var(--color-text);
}

.account-error {
  margin: 0;
  color: var(--color-error);
  font-size: 0.875rem;
}

.account-empty {
  color: var(--color-text-weaker);
  font-size: 0.875rem;
}

.site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0.9rem;
  background: var(--color-bg-panel-raised);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.site-meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--color-text-weaker);
}

.deploy-pill {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-weak);
  white-space: nowrap;
}

.deploy-pill[data-state="ready"],
.deploy-pill[data-state="current"] {
  color: var(--color-emerald);
}

.deploy-pill[data-state="error"],
.deploy-pill[data-state="failed"] {
  color: var(--color-error);
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.provider-card {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-bg);
  cursor: pointer;
}

.provider-card-cloud {
  flex-direction: column;
  gap: 0.45rem;
  cursor: default;
}

.provider-choice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
}

.provider-controls {
  padding-left: 1.55rem;
  width: 100%;
}

.provider-card input {
  margin-top: 0.3rem;
}

.provider-card strong {
  display: block;
  letter-spacing: var(--tracking-tight);
}

.provider-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--color-text-weaker);
}

.skip-list {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-text-weak);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Responsive Breakpoints (Tablet & Mobile) */
@media (max-width: 960px) {
  .hero,
  .wb-grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .hero-copy {
    padding-top: 0.25rem;
  }

  .nav-links {
    display: none;
  }

  .chat-head {
    flex-direction: column;
    gap: 0.35rem;
  }

  .chat-head-actions {
    align-items: flex-start;
  }

  .live-note {
    text-align: left;
    max-width: none;
  }

  .chat-card {
    width: 100%;
    height: auto;
    min-height: 23rem;
  }

  .transcript {
    min-height: 9rem;
    max-height: 22rem;
  }
}

@media (max-width: 600px) {
  .announce {
    font-size: 0.72rem;
    padding: 0.55rem 0.85rem;
  }

  .announce-kbd {
    display: none;
  }

  .nav {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  #share-guide,
  #open-conversations,
  .brand-badge {
    display: none;
  }

  .page {
    padding: 0.9rem 1rem 2.75rem;
  }

  .telemetry-grid,
  .wb-fields {
    grid-template-columns: 1fr;
  }

  .mascot {
    height: 11.75rem;
  }

  .cove-bot-svg {
    width: 16.5rem;
  }

  .wb-inline-input {
    flex-direction: column;
  }

  .wb-code-editor {
    min-height: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing::after,
  .state-dot,
  .bot-rig,
  .bot-ground-shadow,
  .visor-scan,
  .antenna-ring,
  .mascot,
  .mascot-fx {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .mascot-fx {
    opacity: 0;
  }
}
