/* Plubot Cloud, la consola del dueño.
 *
 * Los mismos tokens que plubot.com (tokens.css del sitio): negro, hueso y
 * tinta de base; turquesa cuando actúa el asistente, ámbar cuando algo pasa
 * a una persona. Los tintes son lavados sutiles, nunca rellenos planos.
 * Nada cambia de tamaño al elegir una opción: solo el contenido. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-latin-ext-var.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --bg: #0c0c0e;
  --bg-raised: #121214;
  --bg-sunken: #08080a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --ink-3: #8b8b94;
  --bone: #f3f4f0;
  --bot: #2dd4bf;
  --bot-strong: #5eead4;
  --bot-deep: #14b8a6;
  --bot-tint: rgba(45, 212, 191, 0.08);
  --bot-line: rgba(45, 212, 191, 0.24);
  --bot-glow: rgba(45, 212, 191, 0.16);
  --signal: #2efad2;
  --human: #fb923c;
  --human-soft: #fdba74;
  --human-tint: rgba(251, 146, 60, 0.1);
  --human-line: rgba(251, 146, 60, 0.32);
  --alarm: #ff6b61;
  --ok: #10b981;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --topbar: 60px;
  --topbar-bg: rgba(12, 12, 14, 0.86);
  /* The conversation's column: messages, modes and the composer share it. */
  --column: 760px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --centered: max(var(--gutter), calc((100% - var(--column)) / 2));
  color-scheme: dark;
}

/* Modo claro, elegido con el botón de la barra (theme.js lo aplica antes de
   dibujar). Los mismos colores de Plubot, más profundos para que se lean sobre
   claro: turquesa el asistente, ámbar las personas. El oscuro sigue siendo el
   de siempre. */
:root[data-theme="light"] {
  --bg: #f5f6f3;
  --bg-raised: #ffffff;
  --bg-sunken: #eceee9;
  --surface: rgba(12, 12, 14, 0.025);
  --surface-2: rgba(12, 12, 14, 0.05);
  --surface-3: rgba(12, 12, 14, 0.08);
  --line: rgba(12, 12, 14, 0.09);
  --line-strong: rgba(12, 12, 14, 0.16);
  --ink: #141418;
  --ink-2: #4a4a54;
  --ink-3: #686873;
  --bone: #141418;
  --bot: #14a594;
  --bot-strong: #0b776c;
  --bot-deep: #0f766e;
  --bot-tint: rgba(20, 165, 148, 0.08);
  --bot-line: rgba(20, 165, 148, 0.3);
  --bot-glow: rgba(20, 165, 148, 0.16);
  --signal: #0d9488;
  --human: #ec8a3a;
  --human-soft: #b45309;
  --human-tint: rgba(236, 138, 58, 0.12);
  --human-line: rgba(236, 138, 58, 0.38);
  --alarm: #d1382e;
  --ok: #059669;
  --shadow-panel: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 60px -28px rgba(20, 24, 40, 0.28);
  --topbar-bg: rgba(245, 246, 243, 0.86);
  color-scheme: light;
}

/* The logo is white and cyan on nothing: on light, it goes in its dark circle, as is. */
:root[data-theme="light"] .brand img,
:root[data-theme="light"] .avatar {
  background: #0c0c0e;
}

:root[data-theme="light"] .brand img {
  box-sizing: content-box;
  padding: 5px 6px;
  border-radius: 50%;
}

:root[data-theme="light"] .avatar {
  border-color: transparent;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--bot-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* A link that looks like a button is a button: no underline, its own color. */
a.button {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.noscript {
  padding: 2rem;
}

/* ── Botones ───────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), opacity 160ms;
  white-space: nowrap;
}

.button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.button-primary {
  background: var(--bot);
  color: #04110f;
}

.button-primary:not([disabled]):hover {
  background: var(--bot-strong);
}

.button-secondary {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.button-secondary:not([disabled]):hover {
  background: var(--surface-3);
}

.button-quiet {
  background: transparent;
  color: var(--ink-2);
  min-height: 36px;
  padding: 0 0.75rem;
}

.button-quiet:not([disabled]):hover {
  color: var(--ink);
  background: var(--surface);
}

.button-small {
  min-height: 32px;
  padding: 0 0.7rem;
  font-size: 0.85rem;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--bot-strong);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link-button[disabled] {
  color: var(--ink-3);
  cursor: default;
  text-decoration: none;
}

/* ── Pantallas de cuenta ───────────────────────────────────────────────── */
.auth {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) 1.25rem;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(45, 212, 191, 0.07), transparent 70%),
    var(--bg);
}

.auth-card {
  width: min(100%, 440px);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-panel);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand img {
  width: 22px;
  height: auto;
}

.auth-card .brand {
  margin-bottom: 1.75rem;
}

.auth h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.auth .lead {
  margin: 0 0 1.6rem;
  color: var(--ink-2);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
}

.field label,
.field .label {
  font-size: 0.875rem;
  font-weight: 540;
  color: var(--ink);
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.field input:focus {
  outline: none;
  border-color: var(--bot);
  box-shadow: 0 0 0 3px var(--bot-glow);
}

.field .hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.password-row {
  position: relative;
}

.password-row input {
  padding-right: 5.6rem;
}

.password-row .button-quiet {
  position: absolute;
  top: 5px;
  right: 5px;
}

.code-input {
  letter-spacing: 0.5em;
  font-size: 1.35rem !important;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.4rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  accent-color: var(--bot);
  flex: none;
}

.form-error {
  min-height: 1.4em;
  margin: 0 0 0.9rem;
  color: var(--alarm);
  font-size: 0.9rem;
}

.form-error:empty {
  min-height: 0;
  margin: 0;
}

.auth .button-primary {
  width: 100%;
  min-height: 48px;
}

.auth-foot {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.auth-foot + .auth-foot {
  margin-top: 0.6rem;
}

/* ── Equipo Plubot ─────────────────────────────────────────────────────── */
.team {
  place-items: start center;
}

.team-stack,
.team-results {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 560px);
}

.team .auth-card {
  width: 100%;
}

.team h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.team h2 + .hint {
  margin: 0.2rem 0 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.team h3 {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 620;
}

.team-form {
  margin-top: 1.4rem;
}

.team-form + .team-form {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.team-form .hint {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.team-channels {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 1.05rem;
  padding: 0;
  border: 0;
}

.team-channels legend {
  margin-bottom: 0.45rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 540;
}

.team-channels .check {
  margin: 0.15rem 0;
}

.team-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.team-facts dt {
  color: var(--ink-3);
}

.team-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.team-notice {
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  font-size: 0.9rem;
}

.team .team-danger {
  color: var(--alarm);
}

/* ── El espacio de trabajo ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
}

.topbar .business {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.topbar .business-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 26px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 560;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

.chip-bot {
  color: var(--bot-strong);
  border-color: var(--bot-line);
  background: var(--bot-tint);
}

/* Paused: people attend, so it takes their color. */
.chip-human {
  color: var(--human-soft);
  border-color: var(--human-line);
  background: var(--human-tint);
}

.chip-off {
  color: var(--ink-3);
  border-style: dashed;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.topbar .spacer {
  flex: 1;
}

/* Its own Plubot's emergency stop, beside the account menu. */
.plubot-control {
  position: relative;
}

.pause-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 2rem));
  padding: 0.9rem;
  border: 1px solid var(--human-line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow-panel);
}

.pause-panel[hidden] {
  display: none;
}

.pause-panel p {
  margin: 0 0 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.pause-panel .pause-title {
  font-weight: 600;
  color: var(--ink);
}

.pause-panel input {
  width: 100%;
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
}

.pause-panel input:focus {
  outline: none;
  border-color: var(--human);
  box-shadow: 0 0 0 3px var(--human-tint);
}

.pause-panel .pause-error {
  margin: 0.6rem 0 0;
  color: var(--alarm);
}

.pause-panel .pause-error:empty {
  display: none;
}

.pause-panel .actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

/* A button with words that becomes an icon on a phone. */
.compact .label-icon {
  display: none;
}

/* Paused, the button itself says it in the person's color (on a phone the chip has no room). */
.pause-button.is-paused {
  color: var(--human-soft);
  border-color: var(--human-line);
  background: var(--human-tint);
}

.button-human {
  background: var(--human);
  color: #1a0d03;
}

.button-human:not([disabled]):hover {
  background: var(--human-soft);
}

.menu {
  position: relative;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 260px;
  max-width: min(320px, calc(100vw - 2rem));
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow-panel);
}

.menu-panel[hidden] {
  display: none;
}

.menu-email {
  margin: 0.4rem 0.75rem 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 9px;
  background: none;
  cursor: pointer;
}

.menu-panel button:hover {
  background: var(--surface-2);
}

/* «Panel del equipo», in the top bar: a section of the business's address. */
.panel-link[hidden] {
  display: none;
}

/* «Lo que sabe» on a phone: a constellation while closed, the chat while open. */
.knowledge-toggle[aria-expanded="false"] .icon-chat,
.knowledge-toggle[aria-expanded="true"] .icon-knowledge {
  display: none !important;
}

.menu-panel hr {
  margin: 0.35rem 0.4rem;
  border: 0;
  border-top: 1px solid var(--line);
}

/* The business on top of its account menu: its logo (or its initial) and its name. */
.menu-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem 0.35rem;
}

.menu-who {
  min-width: 0;
}

.menu-head .menu-email {
  margin: 0.1rem 0 0;
  white-space: nowrap;
}

.menu-role {
  margin: 0.05rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.menu-business {
  display: block;
  font-weight: 600;
}

/* A business's logo: shown whole, in a soft square, never cropped. */
.business-mark {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-raised);
  object-fit: contain;
  font-weight: 650;
  color: var(--ink-2);
}

.business-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.profile-mark {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 1.4rem;
}

.profile-field {
  display: grid;
  /* As wide as the sheet, never as its longest line: everything wraps. */
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.profile-field label {
  font-size: 0.85rem;
  font-weight: 560;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-row input[type="text"] {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
}

.profile-row input[type="text"]:focus {
  outline: none;
  border-color: var(--bot);
  box-shadow: 0 0 0 3px var(--bot-glow);
}

.profile-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* «Eliminar negocio», apart at the end of «Tu negocio». */
.profile-delete {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.profile-danger {
  color: var(--alarm);
}

/* On a phone the address goes under its prefix, and a button under its field. */
.profile-address,
.profile-delete .profile-row {
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.profile-address input[type="text"],
.profile-delete .profile-row input[type="text"] {
  flex: 1 1 10rem;
}

.profile-prefix {
  flex: none;
  font-size: 0.85rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.profile-note {
  min-height: 1.3em;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 24vw, 460px);
  height: calc(100dvh - var(--topbar));
}

/* ── La conversación ───────────────────────────────────────────────────── */
.conversation {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.conversation-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem var(--centered);
}

.modes {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-sunken);
}

.modes button {
  min-height: 36px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  font-weight: 540;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 180ms var(--ease-out), color 180ms var(--ease-out);
  white-space: nowrap;
}

.modes button[aria-pressed="true"] {
  background: var(--surface-3);
  color: var(--ink);
}

.modes button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.log {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  padding: 0.5rem var(--centered) 1.5rem;
}

.log ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.msg {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  animation: arrive 200ms var(--ease-out) both;
}

.msg-mine {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.msg-mine > div {
  max-width: min(85%, 640px);
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--bot-line);
  background: var(--bot-tint);
}

.avatar img {
  width: 14px;
}

.bubble {
  max-width: min(100%, 640px);
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.msg-plubot .bubble,
.msg-bot .bubble {
  border-color: var(--bot-line);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.09), rgba(45, 212, 191, 0.04));
  border-top-left-radius: 6px;
}

.msg-mine .bubble {
  background: var(--surface-2);
  border-color: var(--line-strong);
  border-top-right-radius: 6px;
}

.msg-label {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.msg-mine .msg-label {
  text-align: right;
}

/* «Así respondería»: a preview of the assistant with a customer, apart from
   the conversation with Plubot. Smaller, sunken, and shaped like a chat with a
   customer: the customer on the left, the assistant on the right. */
.preview-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.7rem;
  animation: arrive 200ms var(--ease-out) both;
}

.preview-frame {
  grid-column: 2;
  width: min(100%, 500px);
  padding: 0.65rem 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-sunken);
  font-size: 0.85rem;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.preview-head svg {
  flex: none;
  color: var(--bot);
}

.pv-row {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.5rem;
}

.pv-asks {
  justify-items: start;
}

.pv-reply {
  justify-items: end;
}

.pv-who {
  font-size: 0.7rem;
  color: var(--ink-3);
}

.pv-bubble {
  max-width: 88%;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pv-asks .pv-bubble {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-top-left-radius: 4px;
}

.pv-reply .pv-bubble {
  border: 1px solid var(--bot-line);
  background: var(--bot-tint);
  border-top-right-radius: 4px;
}

.pv-reply .badge {
  margin-top: 0.1rem;
  height: 20px;
  font-size: 0.7rem;
}

.pv-bubble.pv-failed {
  color: var(--ink-3);
  font-style: italic;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 560;
  white-space: nowrap;
  color: var(--bot-strong);
  background: var(--bot-tint);
  border: 1px solid var(--bot-line);
}

.badge-human {
  color: var(--human-soft);
  background: var(--human-tint);
  border-color: var(--human-line);
}

.msg-system .bubble {
  background: transparent;
  border-style: dashed;
  color: var(--ink-2);
}

.reading-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.reading-steps li::before {
  content: "✓ ";
  color: var(--bot);
}

.reading-steps li.now::before {
  content: "· ";
}

.reading-bar {
  height: 3px;
  margin-top: 0.7rem;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--bot), transparent) 0 0 / 40% 100% no-repeat, var(--surface-2);
  animation: reading 1.6s ease-in-out infinite;
}

@keyframes reading {
  from {
    background-position: -40% 0, 0 0;
  }
  to {
    background-position: 140% 0, 0 0;
  }
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 1.55em;
}

/* While Plubot writes, its bubble is only as wide as the dots; the answer
   grows out of it (console.js, growAnswer). */
.bubble-typing {
  width: fit-content;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bot);
  opacity: 0.35;
  animation: dot 1.1s ease-in-out infinite;
}

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

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

@keyframes dot {
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Lo que Plubot propone dentro de su mensaje: confirmar o dejar como está. */
.proposal {
  margin-top: 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  white-space: normal;
}

.proposal p {
  margin: 0 0 0.7rem;
}

.proposal .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Un aviso con fecha que Plubot propone: qué va a tener en cuenta y hasta cuándo. */
.notice-card .notice-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--ink);
}

.notice-card .notice-text {
  margin: 0 0 0.35rem;
  color: var(--ink-2);
}

.notice-card .notice-period {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--bot-strong);
}

.msg-actions {
  margin-top: 0.45rem;
}

/* A quiet button alone under the text starts where the text starts. */
.msg-actions .button-quiet {
  margin-left: -0.7rem;
}

/* Donde estaban los botones: cómo terminó la propuesta, a la misma altura. */
.proposal .proposal-outcome {
  display: flex;
  align-items: flex-start;
  min-height: 32px;
  margin: 0;
  padding-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.proposal-outcome.confirmed {
  color: var(--bot-strong);
}

.proposal-outcome.confirmed::before {
  content: "✓";
  margin-right: 0.4rem;
}

.price-table {
  width: 100%;
  margin-bottom: 0.8rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.price-table th {
  text-align: left;
  font-weight: 560;
  color: var(--ink-3);
  padding: 0 0.4rem 0.35rem;
}

.price-table td {
  padding: 0.3rem 0.4rem;
  border-top: 1px solid var(--line);
}

.price-before {
  color: var(--ink-3);
  text-decoration: line-through;
}

.price-after {
  color: var(--bot-strong);
  font-weight: 560;
}

/* ── El que escribe ────────────────────────────────────────────────────── */
.composer {
  padding: 0.75rem var(--centered) 1.1rem;
}

.composer-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--bg-raised);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.composer-box:focus-within {
  border-color: var(--bot-line);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.06);
}

.composer textarea {
  min-height: 40px;
  max-height: 168px;
  padding: 0.55rem 0.4rem;
  border: 0;
  background: none;
  resize: none;
  line-height: 1.45;
  overflow-y: hidden;
}

.composer textarea::placeholder {
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer textarea:focus {
  outline: none;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.composer .button-primary {
  min-height: 40px;
}

.composer-note {
  margin: 0.45rem 0 0;
  min-height: 1.25em;
  font-size: 0.8rem;
  color: var(--ink-3);
  text-align: center;
}

.composer-note.error {
  color: var(--alarm);
}

/* ── Lo que sabe tu asistente ──────────────────────────────────────────── */
.knowledge {
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
  padding: 1.1rem clamp(1rem, 2vw, 1.5rem) 2rem;
  background: var(--bg-sunken);
}

.knowledge h2 {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

/* «El cerebro de tu asistente» (brain.js): a small night sky in both themes,
   one point of light per thing it knows, around its voice. */
.brain {
  position: relative;
  margin: 0 0 0.9rem;
  border: 1px solid rgba(46, 250, 210, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 50% 50%, rgba(45, 212, 191, 0.13), rgba(45, 212, 191, 0) 62%),
    #06080a;
}

.brain-map {
  display: block;
  width: 100%;
  height: auto;
}

.brain-link {
  stroke: rgba(46, 250, 210, 0.24);
  stroke-width: 0.6;
}

.brain-link-far {
  stroke: rgba(46, 250, 210, 0.09);
}

.brain-core,
.brain-halo,
.brain-burst {
  transform-box: fill-box;
  transform-origin: center;
}

.brain-core {
  fill: #b5fff1;
}

.brain-voice {
  fill: #f3fffd;
}

.brain-sky circle {
  fill: #dffcf6;
}

.brain-burst {
  fill: none;
  stroke: var(--signal);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

/* Its life (brain.js): a thought travelling a line, the wave of something
   learned and the stars that shine for a moment. */
.brain-thought circle:last-child {
  fill: #effffc;
}

.brain-wave {
  fill: none;
  stroke: rgba(46, 250, 210, 0.5);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}

.brain-sky circle {
  transform-box: fill-box;
  transform-origin: center;
}

/* A point answers the pointer. */
.brain-core {
  transition: transform 180ms ease-out;
}

.brain-point:hover .brain-core {
  transform: scale(1.7);
}

.brain-point {
  transition: opacity 200ms ease-out;
}

.brain-count {
  position: absolute;
  right: 0.6rem;
  bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: rgba(181, 255, 241, 0.62);
}

/* The light that carries what Plubot just learned into the brain. */
.spark {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #f0fffc 0 22%, var(--signal) 46%, rgba(46, 250, 210, 0) 72%);
  box-shadow: 0 0 14px 2px rgba(46, 250, 210, 0.55);
}

.spark-trail {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  box-shadow: none;
  filter: opacity(0.55);
}

.spark-trail-far {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  filter: opacity(0.3);
}

/* One more thing it knows: the kind's count, the voice or «Lo que sabe» light up once. */
.count.learned,
.knowledge-toggle.learned {
  animation: learned 900ms var(--ease-out);
}

.voice-line.learned {
  animation: learned-line 1100ms var(--ease-out);
}

@keyframes learned {
  0% {
    color: var(--signal);
    transform: scale(1.35);
    text-shadow: 0 0 12px rgba(46, 250, 210, 0.7);
  }
  100% {
    transform: none;
  }
}

@keyframes learned-line {
  0% {
    color: var(--signal);
  }
}

.essentials {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.ring {
  width: 64px;
  height: 64px;
}

.ring circle {
  fill: none;
  stroke-width: 6;
}

.ring .track {
  stroke: var(--surface-3);
}

.ring .value {
  stroke: var(--bot);
  stroke-linecap: round;
  transition: stroke-dashoffset 500ms var(--ease-out);
}

.ring text {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}

.essentials-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
}

.essentials-missing {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.voice-line {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.sections {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0 0.9rem;
  cursor: pointer;
  list-style: none;
  font-weight: 560;
  font-size: 0.92rem;
}

.section summary::-webkit-details-marker {
  display: none;
}

.section summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms var(--ease-out);
}

.section[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-weight: 500;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem 0.55rem;
}

.item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.item-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.item-sub {
  display: block;
  color: var(--ink-3);
  font-size: 0.8rem;
}

.item-price {
  color: var(--bot-strong);
  font-variant-numeric: tabular-nums;
}

.item .button-quiet {
  flex: none;
  min-height: 28px;
  padding: 0 0.55rem;
  font-size: 0.8rem;
}

.item-fixed {
  flex: none;
  font-size: 0.75rem;
  color: var(--ink-3);
  padding-top: 0.15rem;
}

/* Los avisos con fecha en lo que sabe el asistente, y su pausa. */
.notice-name {
  display: block;
  font-weight: 560;
}

.notice-when {
  color: var(--bot-strong);
}

.notice-when.upcoming,
.notices-paused .notice-when {
  color: var(--ink-3);
}

.notices-note {
  margin: 0;
  padding: 0 0.9rem 0.8rem;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.paused-tag {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 560;
  color: var(--ink-2);
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 0.5rem 0.65rem;
}

.empty {
  margin: 0;
  padding: 0.4rem 0.9rem 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.publish {
  margin-top: 1rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.publish p {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.publish .button-primary {
  width: 100%;
}

.publish .held {
  color: var(--human-soft);
}

.publish ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--ink-2);
}

/* Two buttons side by side while they fit; the second goes below, full
   width, when the panel is narrow (it overflowed the panel, 2026-10-30). */
.publish .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.publish .actions .button {
  flex: 1 1 auto;
  padding: 0 0.9rem;
}

/* Where what is published reaches: under «Publicar». */
.publish .channel-line {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* A panel over the workspace: «Dónde atiende tu Plubot», «Tu negocio». */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  animation: fade 160ms var(--ease-out) both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.1rem 1.2rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-panel);
}

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

.sheet-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.sheet-lead {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.plans {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan-connected {
  border-color: var(--bot-line);
  background: var(--bot-tint);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.plan-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.plan-soon {
  flex: none;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 560;
  color: var(--ink-3);
}

.plan-text {
  margin: 0.3rem 0 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-2);
}

/* As tall as its button, so a request never moves the card. */
.plan-status {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-2);
}

.plan-on {
  color: var(--bot-strong);
  font-weight: 560;
}

.usage {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-3);
  text-align: center;
}

.loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--ink-3);
}

/* Pantallas angostas: lo que sabe el asistente se abre aparte. */
.knowledge-toggle {
  display: none;
}

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

  .conversation {
    border-right: 0;
  }

  .knowledge {
    position: fixed;
    inset: var(--topbar) 0 0 0;
    z-index: 4;
    transform: translateX(100%);
    transition: transform 260ms var(--ease-out);
  }

  .knowledge.open {
    transform: none;
  }

  .knowledge-toggle {
    display: inline-flex;
  }

  .topbar .business {
    padding-left: 0.7rem;
  }

  .topbar .chip {
    display: none;
  }
}

@media (max-width: 600px) {
  .topbar {
    gap: 0.6rem;
  }

  .topbar .brand-name {
    display: none;
  }

  .topbar .business {
    flex: 1;
    border-left: 0;
    padding-left: 0;
  }

  .topbar .spacer {
    display: none;
  }

  .compact {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  .compact .label-long {
    display: none;
  }

  .compact .label-icon {
    display: block;
  }

  /* On a phone, the account menu carries the theme. */
  .theme-button {
    display: none;
  }

  /* The button sits mid-bar on a phone: the panel takes the screen's width. */
  .pause-panel {
    position: fixed;
    top: calc(var(--topbar) + 8px);
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* The link's card: its request and a look at how it would be. */
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

/* ── «Tu enlace», en vista previa (link.js) ────────────────────────────────
   The page a business's customers will see: its logo, its name and the chat
   with its assistant. The person on the right, the assistant on the left. */
.link-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  align-content: start;
  gap: 1rem;
  padding: 0.9rem var(--gutter) 1.5rem;
  background:
    radial-gradient(80% 55% at 50% 0%, var(--bot-tint), rgba(45, 212, 191, 0) 70%),
    var(--bg);
}

.link-banner {
  width: min(100%, 760px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.6rem 0.9rem;
  border: 1px dashed var(--bot-line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  font-size: 0.86rem;
  color: var(--ink-2);
}

.link-banner p {
  margin: 0;
}

.link-banner strong {
  color: var(--ink);
  font-weight: 600;
}

.link-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.link-card {
  width: min(100%, 440px);
  height: min(760px, calc(100dvh - 7rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg-raised);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.link-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bot-tint), rgba(45, 212, 191, 0));
}

.link-logo {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #0c0c0e;
  color: var(--bot-strong);
  font-weight: 650;
}

.link-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 640;
}

.link-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.link-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.link-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem 0.9rem 0.6rem;
}

.link-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.link-msg {
  display: flex;
  animation: arrive 200ms var(--ease-out) both;
}

.link-mine {
  justify-content: flex-end;
}

.link-bubble {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 18px;
  line-height: 1.45;
  font-size: 0.93rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.link-bot .link-bubble {
  border: 1px solid var(--bot-line);
  background: var(--bot-tint);
  border-top-left-radius: 6px;
}

.link-mine .link-bubble {
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  border-top-right-radius: 6px;
}

.link-bubble-typing {
  width: fit-content;
}

.link-failed .link-bubble {
  color: var(--ink-3);
  font-style: italic;
}

.link-badge {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--human-soft);
}

.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.link-chips[hidden],
.link-notice[hidden] {
  display: none;
}

.link-chip {
  min-height: 34px;
  padding: 0 0.8rem;
  border: 1px solid var(--bot-line);
  border-radius: 999px;
  background: transparent;
  color: var(--bot-strong);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.link-chip:hover {
  background: var(--bot-tint);
}

.link-notice {
  margin: 0;
  font-size: 0.84rem;
  color: var(--human-soft);
}

.link-composer {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 0.7rem;
  border-top: 1px solid var(--line);
}

.link-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.link-send {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bot);
  color: #04211d;
  cursor: pointer;
}

.link-send:disabled {
  opacity: 0.5;
  cursor: default;
}

.link-foot {
  margin: 0;
  padding: 0 0 0.6rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-3);
}

@media (max-width: 600px) {
  .link-page {
    padding: 0.6rem 0.6rem 0.8rem;
  }

  .link-card {
    height: calc(100dvh - 8.5rem);
    border-radius: 20px;
  }
}

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

  .reading-bar {
    background: var(--bot-tint);
  }
}

/* Lo que se dibuja de nuevo (al cambiar de modo o al confirmar) no se anima:
 * solo lo que llega. Lo transitorio (escribiendo, leyendo) va siempre al final. */
.settled {
  animation: none;
}
