/*
 * Agent Studio for Agents and Sages.
 * Blue #2447D6 (dark or light theme) over a faint grid, set in Space Grotesk
 * (headings), Inter (text) and JetBrains Mono (ids, numbers and code).
 */

/* Brand blue from agentsandsages.com. Danger stays red in both themes. */
:root {
  --ink: #0b0d14;
  --panel: rgb(20 23 33 / 0.88);
  --dialog: #11141d;
  --bubble: #1b1f2c;
  --text: #ffffff;
  --text-soft: #e3e6f0;
  --muted: #a7acbd;
  --dim: #8a90a4;
  --on-accent: #ffffff;
  --accent: #2f52e0;
  --accent-rgb: 47 82 224;
  --accent-bright: #6f8bff;
  --accent-soft: #a3b6ff;
  --accent-hi: #5b7cff;
  --accent-deep: #14298f;
  --accent-glow: #4f7bff;
  --accent-pale: rgb(47 82 224 / 0.2);
  --accent-tint: rgb(var(--accent-rgb) / 0.14);
  --accent-line: rgb(var(--accent-rgb) / 0.6);
  --danger: #e11d2e;
  --danger-rgb: 225 29 46;
  --danger-bright: #ff4d58;
  --danger-soft: #ff7f88;
  --danger-tint: rgb(225 29 46 / 0.12);
  --danger-line: rgb(225 29 46 / 0.55);
  --fg-rgb: 255 255 255;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.2);
  --glass: rgb(255 255 255 / 0.04);
  --sidebar: rgb(9 11 18 / 0.82);
  --code-bg: #06080d;
  --glow-a: 0.28;
  --glow-b: 0.14;
  /* Sign-in page surfaces */
  --s-bg: #0b0d14;
  --s-surface: #12151f;
  --s-surface-a: rgb(18 21 31 / 0.94);
  --s-ink: #ffffff;
  --s-soft: #c3c7d8;
  --s-mute: #9096ab;
  --s-line: #262b3d;
  --s-line2: #343a52;
  --s-ring: #161a27;
  --s-tint: #1a1e2b;
  --s-dark: #2b3358;
  --s-shadow: 0 0 0;
  --heading: "Space Grotesk", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ink: #f5f7fc;
  --panel: rgb(255 255 255 / 0.9);
  --dialog: #ffffff;
  --bubble: #eceff7;
  --text: #101012;
  --text-soft: #2b2e3a;
  --muted: #565b6c;
  --dim: #767b8c;
  --accent: #2346d8;
  --accent-rgb: 35 70 216;
  --accent-bright: #1c3ec2;
  --accent-soft: #1c3ec2;
  --accent-hi: #4f73ff;
  --accent-deep: #142b94;
  --accent-glow: #3d63f0;
  --accent-pale: #e8eeff;
  --accent-tint: rgb(var(--accent-rgb) / 0.09);
  --accent-line: rgb(var(--accent-rgb) / 0.5);
  --danger: #d4121f;
  --danger-rgb: 212 18 31;
  --danger-bright: #e11d2e;
  --danger-soft: #c4121f;
  --danger-tint: rgb(212 18 31 / 0.08);
  --danger-line: rgb(212 18 31 / 0.45);
  --fg-rgb: 16 16 18;
  --line: rgb(16 16 18 / 0.1);
  --line-strong: rgb(16 16 18 / 0.2);
  --glass: rgb(16 16 18 / 0.03);
  --sidebar: rgb(255 255 255 / 0.85);
  --code-bg: #eef1f8;
  --glow-a: 0.12;
  --glow-b: 0.06;
  --s-bg: #ffffff;
  --s-surface: #ffffff;
  --s-surface-a: rgb(255 255 255 / 0.94);
  --s-ink: #101012;
  --s-soft: #45454d;
  --s-mute: #71717a;
  --s-line: #e6e8f0;
  --s-line2: #d5d9e6;
  --s-ring: #eef0f7;
  --s-tint: #f4f5fa;
  --s-dark: #101012;
  --s-shadow: 16 16 18;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 500px at 88% -10%, rgb(var(--accent-rgb) / 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 105%, rgb(var(--accent-rgb) / 0.1), transparent 60%),
    linear-gradient(rgb(var(--fg-rgb) / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--fg-rgb) / 0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

code,
.mono {
  font-family: var(--mono);
}

code {
  overflow-wrap: anywhere;
}

strong {
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

svg {
  flex: none;
}

/* Small uppercase labels used across the page. */
.label,
.crumb,
.list-head,
.field > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgb(var(--fg-rgb) / 0.25);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, filter 0.15s, opacity 0.15s;
}

.btn:hover:not(:disabled) {
  background: rgb(var(--fg-rgb) / 0.06);
}

.btn.red {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.btn.red:hover:not(:disabled) {
  background: var(--accent);
  filter: brightness(1.12);
}

.btn.white {
  border-color: transparent;
  background: var(--text);
  color: var(--ink);
  font-weight: 700;
}

.btn.white:hover:not(:disabled) {
  background: var(--text);
  filter: brightness(0.9);
}

.btn.danger {
  border-color: rgb(var(--danger-rgb) / 0.5);
  color: var(--danger-soft);
}

.btn.danger:hover:not(:disabled) {
  background: var(--danger-tint);
}

.btn:disabled {
  opacity: 0.5;
}

.btn.red:disabled,
.btn.white:disabled {
  opacity: 1;
  background: rgb(var(--fg-rgb) / 0.12);
  color: var(--dim);
}

.btn.pill {
  min-height: 36px;
  padding: 0 14px;
  border-color: var(--line-strong);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.07);
  font-size: 12px;
}

.btn.dashed {
  min-height: 44px;
  padding: 0 14px;
  border: 1px dashed rgb(var(--fg-rgb) / 0.4);
  border-radius: 10px;
  font-size: 13px;
}

.btn.square {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: var(--line-strong);
  background: rgb(var(--fg-rgb) / 0.07);
}

.btn.text {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn.text:hover:not(:disabled) {
  background: none;
  color: var(--text);
}

/* ------------------------------------------------------------------------
   Form controls
   --------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--ink);
  color: var(--text);
  font-size: 15px;
}

select.input {
  padding: 0 12px;
}

textarea.input {
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.input.mono {
  font-family: var(--mono);
  font-size: 13px;
}

.input.accent {
  border-color: var(--accent);
}

.input::placeholder {
  color: #7a7a7a;
}

select.input option {
  background: var(--dialog);
  color: var(--text);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.row > .grow {
  flex: 1 1 200px;
}

input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.slider-value {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.slider-value small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
}

.scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

/* On/off switch: a button with role="switch". */
.toggle {
  flex: none;
  display: flex;
  align-items: center;
  width: 52px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}

.toggle .track {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.22);
  transition: background 0.2s;
}

.toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle[aria-checked="true"] .track {
  background: var(--accent);
}

.toggle[aria-checked="true"] .knob {
  transform: translateX(20px);
}

/* ------------------------------------------------------------------------
   Layout: sidebar + main
   --------------------------------------------------------------------- */

.studio {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.sidebar {
  flex: 1 1 300px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 20px;
  background: var(--sidebar);
  border-right: 1px solid rgb(var(--fg-rgb) / 0.09);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
}

.brand strong {
  display: block;
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 700;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.module-switch {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgb(var(--fg-rgb) / 0.09);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.05);
}

.module-switch button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgb(var(--fg-rgb) / 0.05);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.module-switch button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 1.4px;
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.agent-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text);
  text-align: left;
}

.agent-row:hover {
  border-color: var(--line-strong);
}

.agent-row[aria-current="true"] {
  border-color: rgb(var(--accent-rgb) / 0.65);
  background: var(--accent-tint);
}

.agent-row strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.agent-row .meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.btn-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgb(var(--accent-rgb) / 0.45);
}

.btn-new:hover:not(:disabled) {
  filter: brightness(1.12);
}

.btn-new:disabled {
  opacity: 0.6;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 36px 48px;
}

/* ------------------------------------------------------------------------
   Agent header
   --------------------------------------------------------------------- */

.agent-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.crumb {
  letter-spacing: 1.4px;
}

h1 {
  font-family: var(--heading);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.uuid {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

.live,
.save-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.save-status[data-state="error"] {
  color: var(--danger-soft);
}

.save-status .btn.text {
  min-height: 24px;
  color: inherit;
}

.chip-row .spacer {
  flex: 1;
}

.banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-tint);
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.key-row code {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--ink);
  font-size: 12px;
}

.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.12);
  overflow-x: auto;
}

.tabs button {
  flex: none;
  min-height: 44px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.tabs button:hover {
  color: var(--text);
}

.tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--text);
}

/* ------------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.configure {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.configure > .card {
  flex: 2 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.configure > aside {
  flex: 1 1 240px;
  min-width: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats {
  display: flex;
  gap: 28px;
  padding: 20px;
}

.stats b {
  display: block;
  color: var(--accent-bright);
  font-family: var(--heading);
  font-size: 32px;
  font-weight: 600;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
}

.switches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
}

.switch-row > div {
  flex: 1;
  min-width: 0;
}

.switch-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.switch-row .state {
  width: 24px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* ------------------------------------------------------------------------
   Tools
   --------------------------------------------------------------------- */

.tools-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.tools-head p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.tools-head strong {
  color: var(--text);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
}

.tool-card.on {
  border-color: rgb(var(--accent-rgb) / 0.65);
  background: var(--accent-tint);
}

.tool-card > div {
  flex: 1;
  min-width: 0;
}

.tool-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.tool-card .endpoint {
  margin-top: 2px;
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 11px;
  word-break: break-all;
}

.mono-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(var(--fg-rgb) / 0.25);
  border-radius: 12px;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

/* ------------------------------------------------------------------------
   Test: chat
   --------------------------------------------------------------------- */

.test-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
}

.transcript {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
}

.bubble {
  max-width: 75%;
  padding: 12px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bubble.user {
  align-self: flex-end;
  max-width: 70%;
  border-radius: 16px 16px 4px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.bubble.assistant {
  align-self: flex-start;
  border: 1px solid rgb(var(--fg-rgb) / 0.12);
  border-radius: 16px 16px 16px 4px;
  background: var(--bubble);
}

.bubble.pending {
  color: var(--muted);
}

.bubble.notice {
  align-self: center;
  max-width: 90%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.chip {
  padding: 2px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.chip.error {
  border-color: var(--danger-line);
  color: var(--danger-soft);
}

.composer {
  display: flex;
  gap: 10px;
}

.composer .input {
  flex: 1;
  min-width: 0;
}

.test-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ------------------------------------------------------------------------
   Test: voice
   --------------------------------------------------------------------- */

.voice-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 20px 0;
  text-align: center;
}

.bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 70px;
}

.bar {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(var(--accent-bright), var(--accent));
  transform-origin: center;
  animation: bar 1.3s ease-in-out infinite;
  transition: opacity 0.3s;
}

.bars[data-status="idle"] .bar {
  animation-play-state: paused;
  opacity: 0.45;
}

.bars[data-status="listening"] .bar {
  animation-duration: 2.4s;
  opacity: 0.8;
}

.bars[data-status="thinking"] .bar {
  animation-duration: 3.2s;
  opacity: 0.55;
}

.bars[data-status="speaking"] .bar {
  animation-duration: 0.9s;
}

.call-status {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.call-status[data-status="idle"] {
  color: var(--muted);
}

.call-caption {
  min-height: 3em;
  max-width: 48ch;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.call-caption[data-status="speaking"],
.call-caption[data-status="thinking"] {
  color: var(--text);
}

.call-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn.call {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
}

.voice-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------------
   API tab
   --------------------------------------------------------------------- */

.api-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
}

.api-tab h2 {
  margin-top: 8px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.code {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--code-bg);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
}

.seg {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgb(var(--fg-rgb) / 0.09);
  border-radius: 12px;
  background: rgb(var(--fg-rgb) / 0.05);
}

.seg button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.seg button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
  font-size: 13px;
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 12px;
}

/* ------------------------------------------------------------------------
   Empty states, sign in, loading
   --------------------------------------------------------------------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
  padding-top: 10vh;
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 400px);
  align-items: center;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero img {
  height: 64px;
  width: auto;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-bright);
}

.hero p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 16px;
}

.login {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
}

.login h2 {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
}

.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

/* ------------------------------------------------------------------------
   Dialogs
   --------------------------------------------------------------------- */

.dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 92vh;
  padding: 26px;
  border: 1px solid rgb(var(--accent-rgb) / 0.6);
  border-radius: 22px;
  background: var(--dialog);
  color: var(--text);
  box-shadow: 0 0 80px rgb(var(--accent-rgb) / 0.25);
}

.dialog.wide {
  width: min(1180px, calc(100vw - 32px));
}

.dialog::backdrop {
  background: rgb(0 0 0 / 0.82);
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dialog-head h2 {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
}

.dialog-head p {
  color: var(--muted);
  font-size: 13px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dialog-actions .spacer {
  flex: 1;
}

.header-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-row .input:first-child {
  flex: 1;
  min-width: 0;
}

.header-row .input:nth-child(2) {
  flex: 1.3;
  min-width: 0;
}

.field-error {
  margin-top: -8px;
  color: var(--danger-soft);
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th {
  padding: 12px 14px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.14);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 14px;
  border-bottom: 1px solid rgb(var(--fg-rgb) / 0.08);
  font-size: 13px;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

td.mono {
  white-space: nowrap;
}

.meter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.meter span {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgb(var(--fg-rgb) / 0.14);
}

.meter span i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.in-use {
  color: var(--accent-soft);
  font-weight: 600;
  white-space: nowrap;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--text);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 18px 50px -14px #000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s, transform 0.2s;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#toast.error {
  background: var(--danger);
  color: var(--text);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}

/* ------------------------------------------------------------------------
   Narrow screens and reduced motion
   --------------------------------------------------------------------- */

@media (min-width: 901px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

@media (max-width: 900px) {
  .sidebar {
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid rgb(var(--fg-rgb) / 0.09);
  }

  .agent-list {
    max-height: 34vh;
  }

  .main {
    padding: 24px 16px 48px;
  }

  .auth {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 32px 16px;
  }

  .login {
    max-width: none;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .bubble,
  .bubble.user {
    max-width: 90%;
  }

  .dialog {
    padding: 20px;
  }
}

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

/* ------------------------------------------------------------------------
   Top bar, credit, saving
   --------------------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(var(--fg-rgb) / 0.07);
  color: var(--text);
  font-size: 13px;
}

.credit:hover {
  border-color: rgb(var(--fg-rgb) / 0.4);
}

.credit strong {
  font-family: var(--mono);
}

.credit .est {
  color: var(--muted);
  font-size: 11px;
}

.credit.low {
  border-color: var(--danger-line);
  background: var(--danger-tint);
}

.credit.low strong {
  color: var(--danger-soft);
}

.save-status[data-state="dirty"] {
  color: var(--text);
}

.live.off i {
  background: var(--dim);
  animation: none;
}

.row-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.unsaved,
.live-tag {
  flex: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.unsaved {
  color: var(--accent-soft);
}

.live-tag {
  color: var(--muted);
}

.banner.slim {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.test-wrap,
.publish {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}

.engine-note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

/* ------------------------------------------------------------------------
   Publish
   --------------------------------------------------------------------- */

.publish-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.publish-rows,
.number-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.publish-rows .header-row .input {
  flex: 1;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}

.status-pill.live-on {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--text);
}

.status-pill.live-on i {
  background: var(--accent);
  animation: pulse 2s infinite;
}

/* ------------------------------------------------------------------------
   Sign-in page: light, like agentsandsages.com, with its animated scene
   --------------------------------------------------------------------- */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url(assets/sora.woff2) format("woff2");
}

body.light {
  background: var(--s-surface);
}

.signin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--s-bg);
  background-image:
    radial-gradient(circle at 34% 62%, transparent 0%, transparent 22%, var(--s-bg) 68%),
    repeating-radial-gradient(circle at 34% 62%, var(--s-bg) 0, var(--s-bg) 46px, var(--s-ring) 46px, var(--s-ring) 47px);
  color: var(--s-ink);
  font-family: "Sora", system-ui, sans-serif;
  overflow-x: hidden;
}

.signin :focus-visible {
  outline-color: var(--s-ink);
}

.si-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px 0;
}

.si-top img {
  height: 38px;
  width: auto;
}

.si-top b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.si-top small {
  color: var(--s-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.si-grid {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 32px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-areas: "copy form" "scene form";
  gap: 4px 48px;
  align-items: center;
}

.si-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.si-copy h1 {
  font-family: inherit;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.si-copy h1 .red {
  color: var(--accent);
}

.si-copy p {
  max-width: 540px;
  color: var(--s-soft);
  font-size: 17px;
  line-height: 1.6;
}

.si-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  background: var(--s-surface);
  color: var(--s-soft);
  font-size: 13px;
  font-weight: 600;
}

.si-pulse {
  position: relative;
  width: 8px;
  height: 8px;
}

.si-pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}

.si-pulse .c-pulse {
  background: var(--accent-glow);
  animation: c-pulse 1.8s ease-out infinite;
}

.si-form {
  grid-area: form;
}

.si-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--s-line);
  border-radius: 24px;
  background: var(--s-surface);
  box-shadow: 0 24px 60px rgb(var(--s-shadow) / 0.1);
}

.si-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.si-card > p {
  color: var(--s-soft);
  font-size: 14px;
}

.si-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.si-field span {
  color: var(--s-soft);
  font-size: 13px;
  font-weight: 600;
}

.si-input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--s-line2);
  border-radius: 12px;
  background: var(--s-surface);
  color: var(--s-ink);
  font-size: 15px;
}

.si-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.si-button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgb(var(--accent-rgb) / 0.22);
}

.si-button:disabled {
  opacity: 0.6;
}

.si-api {
  color: var(--s-mute);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.si-scene {
  grid-area: scene;
  min-width: 0;
}

/* The scene, from the company site's hero. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hb {
  position: relative;
  height: 500px;
  perspective: 1200px;
}

.hb-wrap {
  position: absolute;
  inset: 0;
  perspective: 1200px;
}

.c-globe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 380px;
  height: 380px;
  margin: -190px 0 0 -190px;
  transform-style: preserve-3d;
  animation: c-orbit 30s linear infinite;
}

.c-mer {
  position: absolute;
  inset: 0;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.c-ring {
  position: absolute;
  transform-style: preserve-3d;
}

.c-spin {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--s-line2);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: c-z 10s linear infinite;
}

.c-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--accent-glow);
}

.c-bar {
  display: block;
  width: 4px;
  height: 26px;
  border-radius: 2px;
  background: var(--accent);
  animation: c-wave 1.1s ease-in-out infinite;
}

.ld-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.ld-line > span {
  display: inline-block;
  animation: ld-up 1s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.ld-fade {
  animation: ld-fade 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.c-shine {
  position: relative;
  overflow: hidden;
}

.c-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.45), rgb(255 255 255 / 0));
  transform: skewX(-20deg);
  animation: c-shine 4s ease-in-out infinite;
  pointer-events: none;
}

.c-marq {
  padding: 18px 0;
  border-top: 1px solid var(--s-line);
  background: var(--s-surface);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.c-marq-track {
  display: flex;
  width: max-content;
  animation: c-marq 38s linear infinite;
}

.c-marq-set {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.c-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--s-tint);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.c-chip i {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.c-chip i.dark {
  background: var(--s-dark);
}

.hb-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.12) 0%, rgb(var(--accent-rgb) / 0) 65%);
}

.hb-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hb-w {
  fill: none;
  stroke: var(--s-line);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.4s;
}

.hb[data-on="call"] .hb-w-call,
.hb[data-on="chat"] .hb-w-chat,
.hb[data-on="lead"] .hb-w-lead {
  stroke: var(--accent);
  animation: hb-flow 0.6s linear infinite;
}

.hb-agent {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translate(-50%, -50%) translateZ(80px);
}

.hb-disc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, var(--accent-hi) 0%, var(--accent) 55%, var(--accent-deep) 100%);
  box-shadow: 0 30px 60px rgb(var(--accent-rgb) / 0.32), 0 4px 12px rgb(var(--s-shadow) / 0.12);
  animation: hb-float 4s ease-in-out infinite;
}

.hb-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgb(var(--accent-rgb) / 0.4);
  border-radius: 50%;
  animation: hb-ring 2.4s ease-out infinite;
}

.hb-robo {
  position: relative;
  display: block;
  width: 154px;
  height: 154px;
  overflow: visible;
}

.hb-arm {
  transform-origin: 45px 47px;
  transform-box: view-box;
  animation: hb-wave 7s ease-in-out infinite;
}

.hb-glint {
  animation: hb-glintk 3.8s ease-in-out infinite;
}

.hb-look {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hb[data-on="call"] .hb-look {
  transform: translateX(-2.4px);
}

.hb[data-on="chat"] .hb-look {
  transform: translate(2.4px, -0.6px);
}

.hb[data-on="lead"] .hb-look {
  transform: translate(2px, 1.2px);
}

.hb-ant {
  animation: hb-glowk 1.6s ease-in-out infinite;
}

.hb-live {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 26px;
  height: 26px;
  border: 4px solid var(--s-surface);
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
}

.hb-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  background: var(--s-surface);
  color: var(--s-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgb(var(--s-shadow) / 0.08);
}

.hb-sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: hb-sping 1.6s ease-out infinite;
}

.hb-stext {
  display: inline-block;
  min-width: 150px;
  text-align: left;
}

.hb-card {
  position: absolute;
  z-index: 2;
  padding: 16px 18px;
  border: 1px solid var(--s-line);
  border-radius: 20px;
  background: var(--s-surface-a);
  color: var(--s-ink);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 24px 48px rgb(var(--s-shadow) / 0.09);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s, border-color 0.45s;
}

.hb-card b {
  font-size: 14px;
  font-weight: 700;
}

.hb-card small {
  color: var(--s-soft);
  font-size: 12px;
}

.hb-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hb-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hb-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.hb-ico-red {
  background: var(--accent-pale);
  color: var(--accent);
}

.hb-ico-dark {
  background: var(--s-dark);
  color: #fff;
}

.hb-ico-sm {
  width: 30px;
  height: 30px;
}

.hb-call {
  left: 1%;
  top: 10%;
  width: 250px;
  transform: rotateY(18deg) translateZ(30px);
}

.hb-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-top: 12px;
}

.hb-call:not(.on) .c-bar {
  animation-play-state: paused;
  opacity: 0.35;
}

.hb-chat {
  right: 1%;
  top: 6%;
  width: 270px;
  transform: rotateY(-18deg) translateZ(30px);
}

.hb-chathead {
  justify-content: space-between;
  margin-bottom: 10px;
}

.hb-chan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.hb-cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}

.hb-chat[data-ch="web"] .hb-cdot {
  background: var(--accent);
}

.hb-lang {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.hb-msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 118px;
}

.hb-in,
.hb-out {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  transition: opacity 0.35s, transform 0.35s;
}

.hb-in {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--s-tint);
}

.hb-out {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #dcfce7;
  color: #14532d;
}

.hb-chat[data-ch="web"] .hb-out {
  background: var(--s-dark);
  color: #fff;
}

.hb-typing {
  align-self: flex-start;
  display: none;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #dcfce7;
}

.hb-chat[data-ch="web"] .hb-typing {
  background: var(--s-tint);
}

.hb-typing i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  animation: c-dots 1.2s ease-in-out infinite;
}

.hb-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.hb-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.hb-chat[data-ch="web"] .hb-typing i {
  background: var(--s-mute);
}

.hb-chat.typing .hb-typing {
  display: flex;
}

.hb-chat.typing .hb-out {
  display: none;
}

.hb-chat.swap .hb-in,
.hb-chat.swap .hb-out {
  opacity: 0;
  transform: translateY(6px);
}

.hb-lead {
  right: 6%;
  bottom: 3%;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 270px;
  transform: rotateY(-12deg) translateZ(40px);
}

.hb-lead:not(.on) .hb-ico-dark {
  background: #d4d4d8;
}

.hb-clock {
  left: 7%;
  bottom: 7%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  transform: rotateY(14deg) translateZ(40px);
}

.hb-card.on {
  border-color: rgb(var(--accent-rgb) / 0.35);
  box-shadow: 0 28px 56px rgb(var(--accent-rgb) / 0.14), 0 0 0 4px rgb(var(--accent-rgb) / 0.06);
}

.hb-call.on {
  transform: rotateY(18deg) translateZ(60px) scale(1.03);
}

.hb-chat.on {
  transform: rotateY(-18deg) translateZ(60px) scale(1.03);
}

.hb-lead.on {
  transform: rotateY(-12deg) translateZ(70px) scale(1.05);
}

@keyframes c-orbit { from { transform: rotateX(16deg) rotateY(0deg); } to { transform: rotateX(16deg) rotateY(360deg); } }
@keyframes c-z { from { transform: rotateZ(0deg); } to { transform: rotateZ(360deg); } }
@keyframes c-wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@keyframes c-pulse { 0% { transform: scale(0.6); opacity: 0.5; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ld-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes ld-fade { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes c-shine { 0% { transform: translateX(-150%) skewX(-20deg); } 45%, 100% { transform: translateX(325%) skewX(-20deg); } }
@keyframes c-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes c-dots { 0%, 80%, 100% { transform: translateY(0); opacity: 0.35; } 40% { transform: translateY(-4px); opacity: 1; } }
@keyframes hb-flow { to { stroke-dashoffset: -28; } }
@keyframes hb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hb-ring { 0% { transform: scale(1); opacity: 0.8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes hb-wave { 0%, 40%, 100% { transform: rotate(0); } 4%, 12%, 20% { transform: rotate(-24deg); } 8%, 16%, 24% { transform: rotate(8deg); } 30% { transform: rotate(0); } }
@keyframes hb-glintk { 0%, 70%, 100% { opacity: 0.35; } 80% { opacity: 1; } }
@keyframes hb-glowk { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes hb-sping { 0% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0.55); } 100% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } }

@media (max-width: 1080px) {
  .si-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "form" "scene";
    gap: 24px;
    padding: 16px 16px 24px;
  }

  .si-top {
    padding: 16px 16px 0;
  }

  .si-form {
    max-width: 460px;
    width: 100%;
  }
}

/* Phones: the scene becomes a simple stack of its cards. */
@media (max-width: 760px) {
  .hb {
    height: auto;
    perspective: none;
  }

  .hb-wrap {
    position: relative;
    inset: auto;
    perspective: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
  }

  .hb .c-globe,
  .hb-ring,
  .hb-wires,
  .hb-clock,
  .hb-glow {
    display: none;
  }

  .hb-agent,
  .hb-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    transform: none !important;
  }

  .hb-agent {
    grid-column: 1 / -1;
    margin: 0 auto 6px;
  }

  .hb-disc {
    width: 150px;
    height: 150px;
    animation: none;
  }

  .hb-robo {
    width: 122px;
    height: 122px;
  }

  .hb-chat {
    grid-column: 1 / -1;
    order: 1;
  }

  .hb-call {
    order: 2;
  }

  .hb-lead {
    order: 3;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------------
   Accounts: sign-up, welcome page, superadmin
   --------------------------------------------------------------------- */
.si-modes {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--s-tint);
}

.si-modes button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--s-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.si-modes button[aria-pressed="true"] {
  background: var(--s-surface);
  color: var(--s-ink);
  box-shadow: 0 2px 8px rgb(var(--s-shadow) / 0.1);
}

.si-modes button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: min(100%, 560px);
  padding: 36px;
}

.welcome img {
  height: 56px;
  width: auto;
}

.welcome h1 {
  font-family: var(--heading);
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
}

.welcome .lead {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
}

.who i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.team-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.team-link span {
  font-weight: 600;
  font-size: 14px;
}

.team-link small {
  color: var(--muted);
  font-size: 12px;
}

.team-link:hover {
  border-color: var(--accent-bright);
}

.team-link .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

.page-title {
  font-family: var(--heading);
  font-size: clamp(26px, 4vw, 32px);
}

.accounts-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass);
}

.tile strong {
  font-family: var(--heading);
  font-size: 28px;
}

.tile span {
  color: var(--muted);
  font-size: 12px;
}

.tile.accent {
  border-color: var(--accent-line);
  background: var(--accent-tint);
}

.acct-table {
  min-width: 1120px;
}

.settings-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

/* Switch off and Delete stay side by side; the table scrolls sideways when narrow. */
.acct-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.acct-actions .btn {
  min-height: 38px;
  padding: 0 14px;
}

.acct-table td {
  vertical-align: middle;
}

.acct-table tr.off {
  opacity: 0.55;
}

.acct-table .small {
  font-size: 12px;
}

.plan-select {
  min-width: 210px;
}

@media (max-width: 760px) {
  .welcome {
    padding: 24px;
  }
}

.acct-table .unsaved {
  margin-left: 8px;
}

.si-pass {
  position: relative;
  display: block;
}

.si-pass .si-input {
  width: 100%;
  padding-right: 52px;
}

.si-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--s-mute);
  cursor: pointer;
}

.si-eye:hover {
  color: var(--s-ink);
  background: var(--s-tint);
}

.si-eye[aria-pressed="true"] {
  color: var(--accent);
}

.si-eye:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Confirmation dialog (replaces the browser's confirm box) */
.dialog.confirm {
  width: min(460px, calc(100vw - 32px));
}

.confirm-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.confirm-body .muted {
  line-height: 1.55;
}

.btn.danger-solid {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.btn.danger-solid:hover:not(:disabled) {
  background: var(--danger-bright);
}


/* ------------------------------------------------------------------------
   Theme switch and number direction labels
   --------------------------------------------------------------------- */

/* A pill that names the mode it switches to: "Light mode" or "Dark mode". */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 36px;
  margin-left: auto;
  padding: 0 13px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.signin .theme-toggle {
  border-color: var(--s-line2);
  color: var(--s-ink);
}

.si-top {
  padding-right: 32px;
}

.card.welcome {
  position: relative;
}

.card.welcome > .theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
}

.dir {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.dir.inbound {
  background: var(--accent-tint);
  color: var(--accent-soft);
  border: 1px solid var(--accent-line);
}

.dir.outbound {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.number-list .key-row .dir {
  margin-left: 4px;
}

@media (max-width: 760px) {
  .si-top {
    padding-right: 16px;
  }
}

/* Smaller screens: Delete shrinks to a trash icon. */
@media (max-width: 1100px) {
  .acct-actions .delete-label {
    display: none;
  }

  .acct-actions .delete-btn {
    width: 38px;
    padding: 0;
  }
}


/* ------------------------------------------------------------------------
   Sidebar appearance row
   --------------------------------------------------------------------- */

.theme-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid rgb(var(--fg-rgb) / 0.09);
  border-radius: 14px;
  background: rgb(var(--fg-rgb) / 0.04);
}

.theme-row strong {
  display: block;
  font-size: 13px;
}

.theme-row p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

/* ------------------------------------------------------------------------
   Passwords: the rules checklist, and the links on the sign-in card
   --------------------------------------------------------------------- */

.pw-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--s-mute);
  font-size: 12.5px;
}

.pw-rules.in-dialog {
  color: var(--muted);
}

.pw-rules li {
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.pw-rules li::before {
  content: "○";
  flex: none;
  font-size: 11px;
}

.pw-rules li.ok {
  color: var(--accent);
}

.pw-rules li.ok::before {
  content: "✓";
  font-weight: 700;
}

.pw-rules.show-missing li:not(.ok) {
  color: var(--danger-soft);
}

.si-link {
  align-self: flex-end;
  margin-top: -6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.si-link.back {
  align-self: center;
  margin-top: 0;
}

.si-link:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .pw-rules {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------------
   Required fields, the prompt counter, step navigation, renaming
   --------------------------------------------------------------------- */

.req {
  color: var(--danger-soft);
  font-weight: 700;
}

.field.invalid .input {
  border-color: var(--danger-soft);
  box-shadow: 0 0 0 3px rgb(var(--danger-rgb) / 0.15);
}

.field .field-error {
  margin-top: -2px;
}

.prompt-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prompt-count {
  align-self: flex-end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.prompt-count.over {
  color: var(--danger-soft);
  font-weight: 700;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.step-count {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .step-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 8px -16px 0;
    padding: 12px 16px;
    background: var(--ink);
  }

  .step-count {
    display: none;
  }
}

.title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.title-row h1 {
  min-width: 0;
}

.title-row .rename {
  flex: none;
  opacity: 0.7;
}

.title-row .rename:hover,
.title-row .rename:focus-visible {
  opacity: 1;
}

.title-input {
  flex: 1 1 260px;
  max-width: 520px;
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .title-row {
    flex-wrap: wrap;
  }
}

.divider {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------------
   Version history
   --------------------------------------------------------------------- */

.history {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px;
  min-height: 420px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 64vh;
  margin: 0;
  padding: 0 6px 0 0;
  overflow-y: auto;
  list-style: none;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.history-item:hover {
  border-color: var(--line-strong);
}

.history-item[aria-current="true"] {
  border-color: var(--accent-line);
  background: var(--accent-tint);
}

.history-item b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.history-item span {
  color: var(--text-soft);
  font-size: 13px;
}

.history-item small {
  color: var(--dim);
  font-size: 11.5px;
}

.tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10.5px;
  font-weight: 700;
}

.history-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-height: 64vh;
  overflow-y: auto;
  padding-right: 4px;
}

.history-detail h3 {
  font-family: var(--heading);
  font-size: 18px;
}

.change {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
}

.change h4,
.version-all h4 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.change-pair {
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.change-pair del {
  color: var(--danger-soft);
}

.change-pair ins {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 600;
}

.diff {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.diff-line {
  display: flex;
  gap: 8px;
  padding: 0 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-soft);
}

.diff-line span {
  flex: none;
  width: 10px;
  color: var(--dim);
}

.diff-line.add {
  background: rgb(var(--accent-rgb) / 0.16);
}

.diff-line.add span {
  color: var(--accent-bright);
}

.diff-line.del {
  background: rgb(var(--danger-rgb) / 0.12);
  text-decoration: line-through;
  text-decoration-color: rgb(var(--danger-rgb) / 0.5);
}

.diff-line.del span {
  color: var(--danger-soft);
}

.diff-skip {
  padding: 2px 10px;
  color: var(--dim);
  font-style: italic;
}

.version-all {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.version-all summary {
  color: var(--accent-bright);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.version-all[open] summary {
  margin-bottom: 10px;
}

.version-all dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0 0 12px;
  font-size: 13px;
}

.version-all dt {
  color: var(--muted);
}

.version-all dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.code.wrap {
  max-height: 260px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .history {
    grid-template-columns: minmax(0, 1fr);
  }

  .history-list {
    max-height: 30vh;
  }
}

/* ------------------------------------------------------------------------
   Appearance: the website chat's design, with a live preview
   --------------------------------------------------------------------- */

.look {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  align-items: start;
  gap: 20px;
}

.look-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.look-form > .btn.text {
  align-self: flex-start;
}

.look-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mascot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.mascot-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.mascot-tile:hover {
  border-color: var(--line-strong);
}

.mascot-tile[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent);
  color: var(--text);
}

.mascot-thumb {
  display: grid;
  place-items: end center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--brand-light, var(--accent-hi)), var(--brand, var(--accent)) 62%);
  object-fit: cover;
}

.mascot-thumb .mascot {
  display: grid;
  place-items: end center;
  width: 100%;
  height: 100%;
}

.mascot-thumb .mascot svg {
  width: 52px;
  height: auto;
  transform: translateY(6px);
}

.mascot-thumb .mascot-bigface svg {
  width: 50px;
  transform: translateY(-8px);
}

.mascot-thumb .mascot-icon {
  place-items: center;
  color: var(--on-brand, #fff);
}

.mascot-thumb .mascot-icon svg {
  width: 28px;
  transform: none;
}

.mascot-thumb.upload {
  place-items: center;
  border: 1.5px dashed var(--line-strong);
  background: none;
  color: var(--muted);
}

.color-row {
  display: grid;
  grid-template-columns: 46px 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.color-row strong {
  font-size: 14px;
}

.color-row .hint {
  margin: 2px 0 0;
}

.swatch {
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: none;
  cursor: pointer;
}

.swatch::-webkit-color-swatch-wrapper {
  padding: 0;
}

.swatch::-webkit-color-swatch {
  border: 0;
  border-radius: 8px;
}

.swatch::-moz-color-swatch {
  border: 0;
  border-radius: 8px;
}

.hex.bad {
  border-color: var(--danger-soft);
}

.look-preview {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.preview-stage {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(var(--fg-rgb) / 0.04);
}

/* A make-believe web page the widget sits on. The transform makes the
   widget's fixed positions relative to this frame instead of the window. */
.preview-frame {
  position: relative;
  flex: none;
  overflow: hidden;
  transform: translateZ(0);
  border-radius: 18px;
  background: #eef0f5;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 18px 40px rgb(0 0 0 / 0.25);
}

.preview-frame.desktop {
  width: 460px;
  height: 740px;
}

.preview-frame.phone {
  width: 360px;
  height: 720px;
  border-radius: 34px;
  box-shadow: 0 0 0 8px #10131b, 0 18px 40px rgb(0 0 0 / 0.3);
}

.fake-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
}

.fake-page i {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: #d9dde6;
}

.fake-page i:first-child {
  width: 55%;
  height: 22px;
  background: #c9cfdb;
}

.fake-page i:nth-child(2) {
  width: 90%;
}

.fake-page i:nth-child(3) {
  width: 80%;
}

.fake-page i:nth-child(4) {
  width: 40%;
}

.preview-error {
  position: absolute;
  inset: auto 16px 16px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: #b91c1c;
  font-size: 13px;
}

@media (max-width: 1280px) {
  .look {
    grid-template-columns: minmax(0, 1fr);
  }

  .look-preview {
    position: static;
    order: -1;
  }
}

@media (max-width: 560px) {
  .preview-frame.desktop {
    transform: translateZ(0) scale(0.7);
    margin: -111px -69px;
  }

  .color-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .color-row > div {
    grid-column: 1 / -1;
  }
}
