/* ============================================================
   ZENO MOTION
   One place for how the app moves. Loaded after zeno.css by both
   hosts (Web App.razor and the MAUI index.html), and kept in its
   own file so the whole layer can be switched off by removing a
   single <link>.

   Rules this file follows:

   1. One easing curve. Everything that enters or settles uses the
      same expo-out, so the app feels like one object rather than a
      collection of widgets with different tempers.

   2. Entrances never leave a transform behind. They use
      fill-mode "backwards", not "both": a retained transform, even
      translateY(0), makes the element the containing block for any
      position:fixed descendant, which would pin a modal opened from
      inside a card to that card instead of the viewport.

   3. For the same reason, hover never transforms a container that
      can hold a dialog. Only leaf tiles lift; cards change shadow.

   4. Motion is feedback, not decoration. Nothing loops unless it is
      reporting something live (an unread dot, a recording mic).

   5. prefers-reduced-motion switches all of it off.
   ============================================================ */

:root {
  --zeno-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --zeno-ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --zeno-t-fast: 0.15s;
  --zeno-t-base: 0.28s;
  --zeno-t-slow: 0.55s;
  --zeno-rise: 14px;
}

/* ---------------------------------------------------------- entrances */

@keyframes zeno-rise-in {
  from { opacity: 0; transform: translate3d(0, var(--zeno-rise), 0); }
}
@keyframes zeno-fade-in { from { opacity: 0; } }
@keyframes zeno-pop-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.97); }
}
@keyframes zeno-slide-in {
  from { opacity: 0; transform: translate3d(-8px, 0, 0); }
}
@keyframes zeno-grow-x { from { transform: scaleX(0); } }
@keyframes zeno-grow-y { from { transform: scaleY(0); } }

/* Every page: its blocks rise in, one after another. */
.app-page > *,
.zeno-corp > *,
.zeno-desktop-main > .zeno-hero,
.zeno-mobile-shell > .zeno-hero {
  animation: zeno-rise-in var(--zeno-t-slow) var(--zeno-ease) backwards;
}
.app-page > *:nth-child(2), .zeno-corp > *:nth-child(2) { animation-delay: 0.05s; }
.app-page > *:nth-child(3), .zeno-corp > *:nth-child(3) { animation-delay: 0.10s; }
.app-page > *:nth-child(4), .zeno-corp > *:nth-child(4) { animation-delay: 0.15s; }
.app-page > *:nth-child(5), .zeno-corp > *:nth-child(5) { animation-delay: 0.20s; }
.app-page > *:nth-child(6), .zeno-corp > *:nth-child(6) { animation-delay: 0.25s; }
.app-page > *:nth-child(n+7), .zeno-corp > *:nth-child(n+7) { animation-delay: 0.30s; }

/* Overlays are positioned against the viewport: they fade, never slide. */
.app-page > .zeno-modal-overlay,
.app-page > .zeno-alert-backdrop,
.app-page > .zeno-gate-backdrop,
.app-page > .mobile-quick-actions-backdrop,
.zeno-corp > .zeno-modal-overlay {
  animation: zeno-fade-in var(--zeno-t-base) var(--zeno-ease-soft) backwards;
}

/* Grids of tiles and stats: each cell follows the one before it. */
.app-grid > *,
.zeno-feat-grid > *,
.zeno-metric-row > *,
.zeno-exec-kpis > * {
  animation: zeno-pop-in 0.5s var(--zeno-ease) backwards;
}
.app-grid > *:nth-child(2), .zeno-feat-grid > *:nth-child(2), .zeno-metric-row > *:nth-child(2), .zeno-exec-kpis > *:nth-child(2) { animation-delay: 0.04s; }
.app-grid > *:nth-child(3), .zeno-feat-grid > *:nth-child(3), .zeno-metric-row > *:nth-child(3), .zeno-exec-kpis > *:nth-child(3) { animation-delay: 0.08s; }
.app-grid > *:nth-child(4), .zeno-feat-grid > *:nth-child(4), .zeno-metric-row > *:nth-child(4), .zeno-exec-kpis > *:nth-child(4) { animation-delay: 0.12s; }
.app-grid > *:nth-child(5), .zeno-feat-grid > *:nth-child(5), .zeno-exec-kpis > *:nth-child(5) { animation-delay: 0.16s; }
.app-grid > *:nth-child(6), .zeno-feat-grid > *:nth-child(6), .zeno-exec-kpis > *:nth-child(6) { animation-delay: 0.20s; }
.app-grid > *:nth-child(7), .zeno-feat-grid > *:nth-child(7) { animation-delay: 0.24s; }
.app-grid > *:nth-child(n+8), .zeno-feat-grid > *:nth-child(n+8) { animation-delay: 0.28s; }

/* Rows in a list arrive from the left, the first few staggered. */
.zeno-task-row,
.zeno-tl-item,
.zeno-exec-row,
.zeno-leader-row,
.zeno-notif {
  animation: zeno-slide-in 0.45s var(--zeno-ease) backwards;
}
.zeno-task-row:nth-child(2), .zeno-tl-item:nth-child(2), .zeno-exec-row:nth-child(2), .zeno-leader-row:nth-child(2), .zeno-notif:nth-child(2) { animation-delay: 0.04s; }
.zeno-task-row:nth-child(3), .zeno-tl-item:nth-child(3), .zeno-exec-row:nth-child(3), .zeno-leader-row:nth-child(3), .zeno-notif:nth-child(3) { animation-delay: 0.08s; }
.zeno-task-row:nth-child(4), .zeno-tl-item:nth-child(4), .zeno-exec-row:nth-child(4), .zeno-leader-row:nth-child(4), .zeno-notif:nth-child(4) { animation-delay: 0.12s; }
.zeno-task-row:nth-child(5), .zeno-tl-item:nth-child(5), .zeno-exec-row:nth-child(5), .zeno-leader-row:nth-child(5), .zeno-notif:nth-child(5) { animation-delay: 0.16s; }
.zeno-task-row:nth-child(n+6), .zeno-tl-item:nth-child(n+6), .zeno-exec-row:nth-child(n+6), .zeno-leader-row:nth-child(n+6), .zeno-notif:nth-child(n+6) { animation-delay: 0.20s; }

/* Dialogs settle into place rather than appearing. */
.zeno-modal,
.zeno-mode-dialog {
  animation: zeno-pop-in 0.42s var(--zeno-ease) backwards;
}
.zeno-modal-overlay,
.zeno-mode-overlay,
.zeno-alert-backdrop,
.zeno-gate-backdrop {
  animation: zeno-fade-in var(--zeno-t-base) var(--zeno-ease-soft) backwards;
}

/* Anything that represents a proportion draws itself. */
.zeno-exec-rowbar > span,
.zeno-metric-bar > span,
.zeno-scope .progress-bar {
  transform-origin: left center;
  animation: zeno-grow-x 1.1s var(--zeno-ease) 0.25s backwards;
}
.zeno-exec-bar > span {
  transform-origin: center bottom;
  animation: zeno-grow-y 0.9s var(--zeno-ease) 0.2s backwards;
}

/* ---------------------------------------------------------- feedback */

/* Leaf tiles lift toward the pointer. Cards do not: see rule 3 above. */
.zeno-metric,
.zeno-feat,
.app-dashboard-stat,
.zeno-exec-kpi,
.zeno-s {
  transition:
    translate var(--zeno-t-base) var(--zeno-ease),
    scale var(--zeno-t-fast) var(--zeno-ease),
    transform var(--zeno-t-base) var(--zeno-ease),
    box-shadow var(--zeno-t-base) var(--zeno-ease),
    border-color var(--zeno-t-fast) ease,
    background-color var(--zeno-t-fast) ease;
}
.app-card,
.zeno-agent-card,
.zeno-panel,
.app-info-box {
  transition:
    box-shadow var(--zeno-t-base) var(--zeno-ease),
    border-color var(--zeno-t-fast) ease;
}

@media (hover: hover) {
  .zeno-metric:hover,
  .zeno-feat:hover,
  .zeno-exec-kpi:hover,
  button.app-dashboard-stat:hover,
  a.app-dashboard-stat:hover {
    translate: 0 -3px;
    box-shadow: 0 14px 34px -14px rgba(194,65,12, 0.38);
    border-color: var(--zeno-brand-500);
  }
  .zeno-light .app-card:hover,
  .zeno-light .zeno-agent-card:hover {
    box-shadow: 0 10px 30px -18px rgba(31,20,16, 0.28);
  }
  .zeno-side-nav a:hover svg { transform: translateX(2px); }
  .zeno-p-chip:hover { translate: 0 -1px; border-color: var(--zeno-brand-500); }
}

/* Everything pressable answers the press. */
.zeno-scope button,
.zeno-scope .btn {
  transition:
    scale var(--zeno-t-fast) var(--zeno-ease),
    translate var(--zeno-t-base) var(--zeno-ease),
    transform var(--zeno-t-base) var(--zeno-ease),
    box-shadow var(--zeno-t-base) var(--zeno-ease),
    background-color var(--zeno-t-fast) ease,
    border-color var(--zeno-t-fast) ease,
    color var(--zeno-t-fast) ease,
    opacity var(--zeno-t-fast) ease;
}
/* `scale` and `translate` are used here rather than `transform` on purpose.
   They compose with whatever transform an element already has instead of
   replacing it, so a button that is rotated or centred with transform (the
   quick-actions FAB turns 90 degrees when open) keeps that while pressed. */
.zeno-scope button:active:not(:disabled),
.zeno-scope .btn:active:not(:disabled) { scale: 0.97; }
.zeno-scope .zeno-metric:active,
.zeno-scope .zeno-feat:active { scale: 0.985; }

/* Sidebar: the icon leans the way you are about to go. */
.zeno-side-nav a {
  transition: background-color var(--zeno-t-fast) ease, color var(--zeno-t-fast) ease;
}
.zeno-side-nav a svg {
  transition: transform var(--zeno-t-base) var(--zeno-ease), opacity var(--zeno-t-fast) ease;
}

/* Fields acknowledge focus with a soft ring. */
.zeno-scope input,
.zeno-scope select,
.zeno-scope textarea,
.zeno-corp-search,
.zeno-command {
  transition:
    border-color var(--zeno-t-fast) ease,
    box-shadow var(--zeno-t-base) var(--zeno-ease),
    background-color var(--zeno-t-fast) ease;
}
.zeno-corp-search:focus-within,
.zeno-corp .zeno-command:focus-within {
  border-color: var(--zeno-brand-500);
  box-shadow: 0 0 0 4px rgba(234,88,12, 0.14);
}

/* Chips and pills. */
.app-chip,
.zeno-p-chip,
.zeno-chip-row > * {
  transition:
    translate var(--zeno-t-fast) var(--zeno-ease),
    scale var(--zeno-t-fast) var(--zeno-ease),
    background-color var(--zeno-t-fast) ease,
    border-color var(--zeno-t-fast) ease,
    color var(--zeno-t-fast) ease;
}

/* ---------------------------------------------------------- live signals */

/* An unread dot sends out a ring: the one loop that earns its place,
   because it is reporting something that is true right now. */
@keyframes zeno-ping {
  0% { transform: scale(1); opacity: 0.65; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
.zeno-notif-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: zeno-ping 2.4s ease-out infinite;
}

/* The assistant's mark breathes while it is working for you. */
@keyframes zeno-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,24, 0), 0 8px 22px -8px rgba(234,88,12, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255,122,24, 0.10), 0 10px 30px -8px rgba(234,88,12, 0.75); }
}
.zeno-agent-avatar,
.zeno-hero .zeno-avatar { animation: zeno-breathe 4.5s ease-in-out infinite; }

/* Numbers being counted keep a fixed width per digit so they do not jitter. */
.zeno-counting { font-variant-numeric: tabular-nums; }

/* Loading placeholders shimmer instead of sitting still. */
@keyframes zeno-shimmer { to { background-position: -200% 0; } }
.zeno-skeleton {
  border-radius: 8px; color: transparent !important; user-select: none;
  background: linear-gradient(90deg, rgba(168,150,138,0.14) 25%, rgba(168,150,138,0.30) 37%, rgba(168,150,138,0.14) 63%);
  background-size: 200% 100%; animation: zeno-shimmer 1.4s linear infinite;
}

/* ---------------------------------------------------------- dashboard depth */

/* A slow-drifting wash of brand colour behind the classic dashboard.
   isolation keeps the negative z-index inside this element, so the wash
   sits above the page background but below every child, with no change
   to the children's own positioning. */
@keyframes zeno-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-5%, 3%, 0) scale(1.05); }
}
.zeno-corp { position: relative; isolation: isolate; }
.zeno-corp::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  /* Inset from the right edge by more than the drift's scale can reach:
     a transform that crosses the container's edge adds scrollable overflow,
     and this once put a horizontal scrollbar under the whole dashboard. */
  top: -80px; right: 6%; width: min(560px, 60%); height: 420px;
  background:
    radial-gradient(closest-side, rgba(255,122,24, 0.20), transparent 70%),
    radial-gradient(closest-side at 30% 60%, rgba(225,29,72, 0.10), transparent 70%);
  filter: blur(28px);
  animation: zeno-fade-in 1.2s var(--zeno-ease-soft) backwards, zeno-drift 18s ease-in-out 1.2s infinite;
}

/* Metric tiles: larger numerals, an arrow that says "this opens", and a
   bar showing the figure as a share of the whole. */
.zeno-corp .zeno-metric { position: relative; padding: 16px 18px 14px; overflow: hidden; }
.zeno-corp .zeno-metric .v {
  font-size: 34px; letter-spacing: -0.035em; line-height: 1.1; margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.zeno-corp .zeno-metric::after {
  content: "\2192"; position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: #1F1410; color: #fff;
  transition: transform var(--zeno-t-base) var(--zeno-ease), background-color var(--zeno-t-fast) ease;
}
@media (hover: hover) {
  .zeno-corp .zeno-metric:hover::after { transform: rotate(-45deg); background: var(--zeno-brand-600); }
}
.zeno-metric-bar {
  height: 4px; border-radius: 999px; margin-top: 10px; overflow: hidden;
  background: rgba(168,150,138, 0.22);
}
.zeno-metric-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--zeno-brand-500); }
.zeno-metric-bar.danger > span { background: #DC2626; }
.zeno-metric-bar.good > span { background: #059669; }

@media (max-width: 768px) {
  :root { --zeno-rise: 10px; }
  .zeno-corp .zeno-metric { padding: 12px 12px 10px; }
  .zeno-corp .zeno-metric .v { font-size: 26px; }
  .zeno-corp .zeno-metric::after { width: 22px; height: 22px; font-size: 11px; top: 8px; right: 8px; }
}

/* ---------------------------------------------------------- the assistant
   A phoenix, drawn as an emblem rather than a character: wings, a tail of
   flame, and a head in profile. It sits on a business tool the way a mark
   sits on a letterhead.

   It is still a display. How far the wings are raised, and what the fire is
   doing, is how the assistant shows what it is doing:

     idle       a slow wingbeat, embers rising
     listening  wings up, feathers rising and falling like levels
     thinking   heat travelling across the wings and back
     speaking   the wings moving together, the head nodding
     happy      it rises once
     sleep      wings folded, embers out, the fire banked: offline

   --spread (0 to 1) is the single dial. Each feather rests at --c when the
   wing is folded and at --a when it is raised; the drawn angle is the point
   between them that --spread picks, and its length follows spread too, so a
   folded wing tucks in against the body.

   --spread is registered as a number so that it can be animated and
   transitioned itself. That is what makes the idle wingbeat one moving wing
   rather than thirty feathers each easing on their own.

   Motion here is slow on purpose. Quick and bouncy reads as playful;
   unhurried reads as composed.
   ---------------------------------------------------------- */
@property --spread { syntax: '<number>'; inherits: true; initial-value: 0.7; }

.zeno-mascot {
  --spread: 0.7;
  --zm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
  flex-shrink: 0;
  transition: --spread 1.3s var(--zm-ease);
}

.zm-rachis { stroke: #FFE9A8; stroke-width: 0.55; fill: none; opacity: 0.55; stroke-linecap: round; }
.zm-brow { stroke: #6B0F14; stroke-width: 1.15; fill: none; stroke-linecap: round; }
.zm-sheen { stroke: #FFE9A8; stroke-width: 1.4; fill: none; stroke-linecap: round; opacity: 0.55; }

.zm-plume {
  transform-origin: 100px 102px;
  transform: rotate(calc(var(--c) + (var(--a) - var(--c)) * var(--spread))) scale(calc(var(--k) * (0.45 + 0.55 * var(--spread))));
}
.zm-ribbon {
  transform-origin: 100px 128px;
  transform: rotate(calc(var(--a) * (0.5 + 0.5 * var(--spread)))) scale(var(--k));
}
.zm-all { transform-origin: 100px 102px; }
.zm-tail { transform-origin: 100px 128px; animation: zm-sway 6s ease-in-out infinite; }
.zm-head { transform-origin: 102px 74px; transition: transform 0.9s var(--zm-ease); }
.zm-aura { transform-origin: 100px 98px; animation: zm-aura 5s ease-in-out infinite; }
.zm-ember { fill: #FFD27A; opacity: 0; animation: zm-ember 5.6s linear infinite; animation-delay: var(--d); }

@keyframes zm-sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
@keyframes zm-aura { 0%, 100% { transform: scale(0.94); opacity: 0.75; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes zm-ember {
  0% { transform: translate(0, 0); opacity: 0; }
  14% { opacity: 0.95; }
  100% { transform: translate(var(--x), -104px); opacity: 0; }
}

/* idle: a slow wingbeat, the way a bird holds itself in rising air. The body
   sinks a little as the wings lift and rises as they press down. */
.zeno-mascot.is-idle { animation: zm-hover 5s ease-in-out infinite; }
.zeno-mascot.is-idle .zm-all { animation: zm-bob 5s ease-in-out infinite; }
.zeno-mascot.is-idle .zm-outer .zm-eye { animation: zm-glint 5.5s ease-in-out infinite; animation-delay: calc(var(--i) * 0.4s); }
@keyframes zm-hover { 0%, 100% { --spread: 0.64; } 50% { --spread: 0.76; } }
@keyframes zm-bob { 0%, 100% { translate: 0 -1.6px; } 50% { translate: 0 1.6px; } }
@keyframes zm-glint {
  0%, 78%, 100% { filter: none; }
  88% { filter: brightness(1.35) drop-shadow(0 0 3px rgba(255, 233, 168, 0.9)); }
}

/* listening: the feathers are a level meter. Uniform scale about the
   shoulder, so each one lengthens along its own direction whatever its angle. */
.zeno-mascot.is-listening { --spread: 1; }
.zeno-mascot.is-listening .zm-plume { animation: zm-level 1.05s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); }
@keyframes zm-level { 0%, 100% { scale: 0.9; } 50% { scale: 1.07; } }

/* thinking: heat crosses the wings from one tip to the other and comes back */
.zeno-mascot.is-thinking { --spread: 0.92; }
.zeno-mascot.is-thinking .zm-plume { animation: zm-sweep 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * 0.12s); }
@keyframes zm-sweep {
  0%, 100% { filter: brightness(0.7) saturate(0.85); }
  40% { filter: brightness(1.4) saturate(1.15) drop-shadow(0 0 4px rgba(255, 200, 110, 0.9)); }
}

/* speaking: both wings move together, outward from the body, the way a voice
   has one rhythm rather than many. The head nods with it. */
.zeno-mascot.is-speaking { --spread: 0.96; }
.zeno-mascot.is-speaking .zm-plume { animation: zm-speak 0.62s ease-in-out infinite; animation-delay: calc(max(var(--i), 15 - var(--i)) * 0.03s); }
.zeno-mascot.is-speaking .zm-head { animation: zm-nod 1.24s ease-in-out infinite; }
@keyframes zm-speak { 0%, 100% { scale: 0.96; } 50% { scale: 1.04; } }
@keyframes zm-nod { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }

/* listening and thinking tilt the head: it is attending to you */
.zeno-mascot.is-listening .zm-head { transform: rotate(-6deg); }
.zeno-mascot.is-thinking .zm-head { transform: rotate(5deg); }

/* happy: it rises once, then holds its wings high */
.zeno-mascot.is-happy { --spread: 1; }
.zeno-mascot.is-happy .zm-all { animation: zm-rise 1.9s var(--zm-ease) 1; }
.zeno-mascot.is-happy .zm-eye { animation: zm-glint 1.9s ease-out 1; }
@keyframes zm-rise {
  0% { transform: translateY(8px) scale(0.86); }
  55% { transform: translateY(-3px) scale(1.04); }
  100% { transform: none; }
}

/* sleep: wings folded, embers out, colour drained */
.zeno-mascot.is-sleep { --spread: 0.04; }
.zeno-mascot.is-sleep .zm-ember,
.zeno-mascot.is-sleep .zm-aura { display: none; }
.zeno-mascot.is-sleep .zm-all { filter: saturate(0.45) brightness(0.72); }
.zeno-mascot.is-sleep .zm-head { transform: rotate(16deg) translateY(3px); }
.zeno-mascot.is-sleep .zm-tail { animation: none; }

/* portrait: for avatars and buttons. Wings held high so the crop is full of
   bird, and no wingbeat: at this size a moving outline only shimmers. The
   embers and feather spines are too fine to survive and are dropped. */
.zeno-mascot.is-portrait { --spread: 0.9; overflow: hidden; animation: none; }
.zeno-mascot.is-portrait.is-sleep { --spread: 0.1; }
.zeno-mascot.is-portrait .zm-all { animation: none; }
.zeno-mascot.is-portrait .zm-ember,
.zeno-mascot.is-portrait .zm-rachis { display: none; }

/* ---------------------------------------------------------- where it lives */

/* The stage: the mascot standing in a soft pool of its own light. */
.zeno-mascot-stage {
  position: relative; display: grid; place-items: center;
  width: fit-content; margin: 0 auto;
}
.zeno-mascot-stage::before {
  content: ""; position: absolute; inset: 8% 4% 2%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.30), rgba(225, 29, 72, 0.14) 55%, transparent 75%);
  filter: blur(14px);
  animation: zm-halo 5s ease-in-out infinite;
}
.zeno-mascot-stage > .zeno-mascot { position: relative; z-index: 1; }
@keyframes zm-halo { 0%, 100% { opacity: 0.75; scale: 1; } 50% { opacity: 1; scale: 1.07; } }

/* What it is saying. A speech bubble with a tail, so a greeting reads as the
   assistant talking rather than as a line of page copy. */
.zeno-says {
  position: relative; flex: 1; min-width: 0;
  background: var(--zeno-brand-tint); border: 1px solid var(--zeno-brand-line);
  color: var(--zeno-ink-900); border-radius: 18px 18px 18px 6px;
  padding: 12px 16px; font-size: 14px; line-height: 1.55;
  animation: zeno-pop-in 0.5s var(--zeno-ease) 0.15s backwards;
}
.zeno-says strong { font-weight: 800; }
.zeno-says .highlight {
  color: var(--zeno-brand-ink); font-weight: 700;
}
.zeno-says-who {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--zeno-brand-ink); margin-bottom: 3px;
}
.zeno-agent-talk { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; }

/* The composer. An AI entry point should not look like a search field: it
   wears a slowly turning ring of the mascot's own colours, which wakes up
   when you focus it or while it is listening. */
@property --zeno-ring-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes zeno-ring-turn { to { --zeno-ring-angle: 360deg; } }

.zeno-corp .zeno-command,
.zeno-prompt {
  position: relative; isolation: isolate;
}
.zeno-corp .zeno-command::before,
.zeno-prompt::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  padding: 2px;
  background: conic-gradient(from var(--zeno-ring-angle), #FFB020, #F97316, #E11D48, #F97316, #FFB020);
  /* show only the ring: paint the whole box, then cut the middle out */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.38;
  transition: opacity var(--zeno-t-base) var(--zeno-ease);
  animation: zeno-ring-turn 9s linear infinite;
  pointer-events: none;
}
.zeno-corp .zeno-command:focus-within::before,
.zeno-prompt:focus-within::before,
.zeno-prompt.is-live::before,
.zeno-corp .zeno-command.is-live::before { opacity: 1; animation-duration: 3.5s; }
.zeno-corp .zeno-command:focus-within,
.zeno-prompt:focus-within {
  box-shadow: 0 10px 36px -14px rgba(234,88,12, 0.55);
  border-color: transparent;
}

/* The launcher: the assistant is one click away on every page. Desktop only;
   on a phone the centre of the bottom bar is already the way in. */
.zeno-assist-launch {
  position: fixed; right: 20px; bottom: 24px; z-index: 8400;
  width: 62px; height: 62px; border-radius: 50%; border: none; padding: 0;
  display: none; place-items: center; cursor: pointer; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #FFFFFF, #FFF1E6 70%);
  box-shadow: 0 14px 34px -10px rgba(194,65,12, 0.55), 0 0 0 1px rgba(234,88,12, 0.22);
  animation: zeno-pop-in 0.6s var(--zeno-ease) 0.5s backwards;
}
.zeno-scope:not(.zeno-light) .zeno-assist-launch {
  background: radial-gradient(circle at 50% 35%, #33201A, #170D0A 70%);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,122,24, 0.4);
}
.zeno-assist-launch .zeno-assist-tip {
  position: absolute; right: 74px; top: 50%; translate: 8px -50%; white-space: nowrap;
  background: #1F1410; color: #fff; font-size: 12px; font-weight: 700;
  padding: 7px 12px; border-radius: 10px; opacity: 0; pointer-events: none;
  transition: opacity var(--zeno-t-fast) ease, translate var(--zeno-t-base) var(--zeno-ease);
}
/* From the same width at which the mobile bar, with the assistant at its
   centre, gives way to the sidebar. */
@media (min-width: 1024px) {
  .zeno-assist-launch { display: grid; overflow: visible; }
}
@media (hover: hover) {
  .zeno-assist-launch:hover { translate: 0 -3px; box-shadow: 0 20px 44px -12px rgba(194,65,12, 0.7), 0 0 0 1px rgba(234,88,12, 0.4); }
  .zeno-assist-launch:hover .zeno-assist-tip { opacity: 1; translate: 0 -50%; }
}

/* The centre of the mobile bar is the assistant's face, not a glyph. */
.zeno-bnav-fab .zeno-mascot { display: block; }

/* Empty screens: the assistant keeps you company rather than an icon on a plate. */
.zeno-empty .zeno-mascot-stage { margin-bottom: 4px; }

/* Chat: the assistant has a face next to what it says. */
.zeno-chat-msg.from-assistant { display: flex; align-items: flex-end; gap: 8px; }
.zeno-chat-msg.from-assistant > .zeno-mascot { margin-bottom: 2px; }
.zeno-chat-msg.from-assistant .zeno-chat-tool { flex-basis: 100%; }


/* ---------------------------------------------------------- Zeno Live
   The conversation room. Always dark, whatever the app theme: a call is a
   different place from the rest of the app and should feel like one.
   ---------------------------------------------------------- */
.zeno-live {
  position: fixed; inset: 0; z-index: 9500; overflow: hidden;
  display: flex; flex-direction: column;
  background: #0C0605; color: #fff;
  animation: zeno-fade-in 0.5s var(--zeno-ease-soft) backwards;
}

/* The sky behind: three slow fields of the colours in the mark. They brighten
   and shift with what is happening, so the whole room reacts, not only the
   bird. */
.zeno-live-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.zeno-live-sky i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5;
  transition: opacity 1.2s ease, scale 1.6s var(--zeno-ease);
}
.zeno-live-sky i:nth-child(1) { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: #B93C0B; animation: zl-drift-a 22s ease-in-out infinite; }
.zeno-live-sky i:nth-child(2) { width: 44vmax; height: 44vmax; right: -12vmax; top: 6vmax; background: #D97706; animation: zl-drift-b 26s ease-in-out infinite; }
.zeno-live-sky i:nth-child(3) { width: 40vmax; height: 40vmax; left: 22vmax; bottom: -22vmax; background: #BE123C; animation: zl-drift-a 30s ease-in-out infinite reverse; }
@keyframes zl-drift-a { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(5vmax, 4vmax, 0); } }
@keyframes zl-drift-b { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-6vmax, 3vmax, 0); } }

.zeno-live.is-listening .zeno-live-sky i:nth-child(2) { opacity: 0.85; scale: 1.15; }
.zeno-live.is-thinking  .zeno-live-sky i:nth-child(3) { opacity: 0.85; scale: 1.15; }
.zeno-live.is-speaking  .zeno-live-sky i:nth-child(1) { opacity: 0.85; scale: 1.12; }
.zeno-live.is-idle .zeno-live-sky i { opacity: 0.36; }

.zeno-live > header, .zeno-live > main, .zeno-live > footer, .zeno-live > p, .zeno-live > div:not(.zeno-live-sky) { position: relative; z-index: 1; }

.zeno-live-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.zeno-live-id {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px;
  color: rgba(255, 255, 255, 0.72); padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.zeno-live-id strong { color: #fff; font-weight: 800; letter-spacing: 0.01em; }
.zeno-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; position: relative; }
.zeno-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: zeno-ping 2.4s ease-out infinite; }
.zeno-live.is-listening .zeno-live-dot { background: #FFB020; }
.zeno-live.is-thinking .zeno-live-dot { background: #FACC15; }
.zeno-live.is-speaking .zeno-live-dot { background: #FB923C; }
.zeno-live-x {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff;
}

.zeno-live-stage {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 34px; padding: 0 22px;
}
.zeno-live-main {
  flex: 0 1 760px; min-width: 0; max-height: 100%; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 8px;
}
.zeno-live-main::-webkit-scrollbar { display: none; }
/* Nothing in the column gives way. Left to shrink, the caption was squeezed
   to one line's height with its text spilling over the cards beneath it;
   when there is too much, the column scrolls instead. */
.zeno-live-main > * { flex-shrink: 0; }

/* What the two of you are talking about. Glass, so the room shows through
   and it reads as part of the call rather than a form laid over it. */
.zeno-live {
  --zl-board: 352px;       /* the panel's width */
  --zl-edge: 22px;         /* its distance from the window, matching the top bar */
}
.zeno-live-board {
  position: absolute; z-index: 1; top: 84px; right: var(--zl-edge); bottom: var(--zl-edge);
  width: var(--zl-board); padding: 18px 16px 14px;
  display: flex; flex-direction: column; min-height: 0;
  border-radius: 24px; background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 190, 140, 0.16); backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  animation: zeno-rise-in 0.6s var(--zeno-ease) 0.3s backwards;
}
.zeno-live-board > * { flex-shrink: 0; }
.zeno-live-board h3 {
  margin: 0 2px 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
}
/* Only the list scrolls, under headings that stay put. It fades out at the
   bottom edge instead of ending on half a card, which is what says there is
   more below; the scrollbar itself is kept out of sight. */
.zeno-live-board-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px 22px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent);
}
.zeno-live-board-list::-webkit-scrollbar { display: none; }
.zeno-live-board .zeno-live-tip { margin-top: 6px; }

/* Everything else moves over to leave the panel its side of the room, so the
   mark and the caption are centred in the space that is actually theirs. */
@media (min-width: 901px) {
  .zeno-live.has-board:not(.is-docked) > main,
  .zeno-live.has-board:not(.is-docked) > .zeno-live-chips,
  .zeno-live.has-board:not(.is-docked) > .zeno-live-type,
  .zeno-live.has-board:not(.is-docked) > footer,
  .zeno-live.has-board:not(.is-docked) > .zeno-live-hint {
    margin-right: calc(var(--zl-board) + var(--zl-edge) + 12px);
  }
}

/* The rows around the stage keep their height. The stage is the part that
   gives when the window is short; when these gave too, the prompt buttons
   were cut off along the bottom. */
.zeno-live > header,
.zeno-live-strip,
.zeno-live-chips,
.zeno-live-type,
.zeno-live-controls,
.zeno-live-hint { flex-shrink: 0; }

.zeno-live-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.zeno-live-num { padding: 10px 10px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.zeno-live-num b { display: block; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.zeno-live-num span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.zeno-live .is-today b { color: #FDBA74; }
.zeno-live .is-late b { color: #FCA5A5; }
.zeno-live .is-done b { color: #6EE7B7; }
.zeno-live-chip:disabled { opacity: 0.45; cursor: default; }
.zeno-live-tip { margin: 10px 2px 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.55); }
@media (hover: hover) {
  .zeno-live-chip:not(:disabled):hover { border-color: rgba(255, 176, 32, 0.6); color: #fff; }
}

/* The same numbers as one line, for screens with no room for the board. */
.zeno-live-strip { display: none; justify-content: center; gap: 8px; padding: 0 16px 6px; }
.zeno-live-strip span {
  font-size: 11.5px; color: rgba(255, 255, 255, 0.66); padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.zeno-live-strip b { color: #FDBA74; font-variant-numeric: tabular-nums; }

/* Things to say, for when you would rather tap than talk. */
.zeno-live-chips { display: flex; justify-content: center; gap: 8px; padding: 4px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.zeno-live-chips::-webkit-scrollbar { display: none; }
.zeno-live-chip {
  flex-shrink: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 190, 140, 0.2);
  transition: border-color var(--zeno-t-fast) ease, color var(--zeno-t-fast) ease;
}

/* An answer's tasks under the caption, for screens with no room for the
   board. On a wide screen the board is showing the same thing. */
.zeno-live-found { display: none; width: min(420px, 100%); }
.zeno-live-main > .zeno-offer { width: min(460px, 100%); margin-top: 6px; flex-shrink: 0; }

/* An offer needs the room the mark was using. The mark steps back to make
   it, at every width: a question waiting for a yes is the thing to look at. */
.zeno-live.has-offer .zeno-live-mark .zeno-mascot { width: min(180px, 22vh, 50vw); }
.zeno-live.has-offer .zeno-live-captions { min-height: 0; }
.zeno-live-mark .zeno-mascot { transition: width 0.5s var(--zeno-ease); }

@media (max-width: 900px) {
  .zeno-live-board { display: none; }
  .zeno-live-strip { display: flex; }
  .zeno-live-found { display: block; }
  /* With cards on screen the mark steps back: it is the answer that
     matters now, and a phone has room for one of them at full size. */
  .zeno-live.has-tray .zeno-live-mark .zeno-mascot { width: min(132px, 20vh); }
  .zeno-live.has-tray .zeno-live-captions { min-height: 0; }
  .zeno-live.has-tray .zeno-live-zeno { font-size: 16.5px; }
}

.zeno-live-mark .zeno-mascot { width: min(300px, 38vh, 72vw); height: auto; aspect-ratio: 1; }
.zeno-live-mark::before { inset: 4% 0 0; filter: blur(26px); }

.zeno-live-captions { width: min(760px, 100%); text-align: center; min-height: 118px; }
.zeno-live-you {
  margin: 0 0 10px; font-size: 14px; color: rgba(255, 255, 255, 0.62);
  animation: zeno-rise-in 0.4s var(--zeno-ease) backwards;
}
.zeno-live-you::before { content: "You  "; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; color: #FFB86B; }
.zeno-live-zeno {
  margin: 0; font-size: clamp(18px, 2.5vw, 26px); line-height: 1.42; font-weight: 600;
  letter-spacing: -0.012em; color: #fff; text-wrap: balance;
  animation: zeno-rise-in 0.55s var(--zeno-ease) backwards;
}
.zeno-live-zeno.is-quiet { color: rgba(255, 255, 255, 0.55); font-weight: 500; }

.zeno-live-controls { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 10px 22px 6px; }
.zeno-live-mic {
  width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer; color: #fff;
  display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, #C2410C, #BE123C);
  box-shadow: 0 18px 44px -12px rgba(234,88,12, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}
.zeno-live-mic:disabled { opacity: 0.5; cursor: default; }
.zeno-live-mic.is-open { background: linear-gradient(135deg, #FFB020, #FF8A1F); color: #2A0A00; box-shadow: 0 18px 44px -12px rgba(255, 176, 32, 0.85); }
.zeno-live-mic.is-open::before,
.zeno-live-mic.is-open::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 200, 110, 0.75); animation: zl-ring 1.9s ease-out infinite;
}
.zeno-live-mic.is-open::after { animation-delay: 0.95s; }
@keyframes zl-ring { from { scale: 1; opacity: 0.8; } to { scale: 1.75; opacity: 0; } }

.zeno-live-side {
  display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer;
  background: none; border: none; color: rgba(255, 255, 255, 0.72);
  font-size: 11px; font-weight: 700; min-width: 64px;
}
.zeno-live-side svg {
  box-sizing: content-box; padding: 13px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
}
.zeno-live-top-actions { display: flex; gap: 8px; }
.zeno-live-x.is-off { color: rgba(255, 255, 255, 0.5); }
label.zeno-live-side { position: relative; }
label.zeno-live-side.is-off { opacity: 0.45; cursor: default; }
/* Out of sight, still reachable by keyboard: the label is what people press. */
.zeno-live-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
label.zeno-live-side:focus-within svg { outline: 2px solid rgba(255, 200, 110, 0.9); outline-offset: 2px; }
.zeno-live-hint { margin: 0; padding: 8px 22px calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 600px) {
  .zeno-live-chips { justify-content: flex-start; }
  .zeno-live-mark .zeno-mascot { width: min(300px, 31vh, 72vw); }
  .zeno-live-controls { gap: 18px; }
  .zeno-live-mic { width: 76px; height: 76px; }
  .zeno-live-captions { min-height: 132px; }
}

/* The way in: a button that looks like starting a call, not submitting a form. */
.zeno-talk-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 10px 18px 10px 12px; border-radius: 999px; border: none;
  font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #C2410C, #BE123C);
  box-shadow: 0 12px 28px -12px rgba(194,65,12, 0.8);
}
.zeno-talk-btn .zeno-talk-pulse {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2); position: relative;
}
.zeno-talk-btn .zeno-talk-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7); animation: zl-ring 2.2s ease-out infinite;
}
@media (hover: hover) { .zeno-talk-btn:hover { translate: 0 -2px; box-shadow: 0 18px 34px -12px rgba(194,65,12, 0.95); } }
.zeno-says-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

/* Choosing Zeno's voice: a small sheet under the top bar. */
.zeno-live-x.is-open { border-color: rgba(255, 176, 32, 0.7); background: rgba(255, 138, 61, 0.18); }
/* Selector written with the element name on purpose: the rule that lifts the
   call's rows above the background (.zeno-live > div:not(...)) also sets
   position: relative, and outranked a plain class. The sheet then sat in the
   flow and pushed the whole call down. */
.zeno-live > div.zeno-live-voice {
  position: absolute; z-index: 6; top: 70px; right: var(--zl-edge); width: 330px;
  max-height: min(480px, calc(100% - 94px)); display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 20px; background: rgba(30, 17, 13, 0.97);
  border: 1px solid rgba(255, 190, 140, 0.26); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.95);
  animation: zeno-rise-in 0.3s var(--zeno-ease) backwards;
}
.zeno-live-voice > * { flex-shrink: 0; }
.zeno-live-voice-head { display: flex; align-items: center; justify-content: space-between; }
.zeno-live-voice-head strong { font-size: 14.5px; font-weight: 800; }
.zeno-live-voice-head button {
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.zeno-live-voice-switch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, 0.88); cursor: pointer; }
.zeno-live-voice-switch input { width: 17px; height: 17px; accent-color: #F97316; }
.zeno-live-voice-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.zeno-live-voice-item {
  flex-shrink: 0; display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px;
  border-radius: 13px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff; font: inherit; text-align: left; cursor: pointer;
}
.zeno-live-voice-item > i {
  flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.42);
}
.zeno-live-voice-item.is-on { border-color: rgba(255, 176, 32, 0.7); background: rgba(255, 138, 61, 0.14); }
.zeno-live-voice-item.is-on > i { border-color: #FFB020; background: radial-gradient(circle, #FFB020 0 45%, transparent 50%); }
.zeno-live-voice-item > span { flex: 1; min-width: 0; }
.zeno-live-voice-item strong { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeno-live-voice-item small { font-size: 11.5px; color: rgba(255, 255, 255, 0.62); }
.zeno-live-voice-item em { flex-shrink: 0; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #FFB020; }
.zeno-live-voice-note { margin: 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.58); }
.zeno-live-voice-list h4 {
  flex-shrink: 0; margin: 6px 2px 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
}
.zeno-live-voice-list h4:first-child { margin-top: 0; }
.zeno-live-voice-link {
  align-self: flex-start; padding: 0; background: none; border: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #FFB86B; text-decoration: underline;
}
.zeno-live.is-docked > div.zeno-live-voice { top: 56px; left: 12px; right: 12px; width: auto; }
@media (max-width: 600px) { .zeno-live > div.zeno-live-voice { left: 16px; right: 16px; width: auto; } }
@media (hover: hover) { .zeno-live-voice-item:hover { border-color: rgba(255, 176, 32, 0.5); } }

/* Typing in the call. */
.zeno-live-type { position: relative; z-index: 1; align-self: center; display: flex; gap: 8px; width: min(560px, 100%); padding: 2px 16px 6px; }
.zeno-live-type input {
  flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; outline: none;
  font: inherit; font-size: 14px; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 190, 140, 0.24);
}
.zeno-live-type input::placeholder { color: rgba(255, 255, 255, 0.5); }
.zeno-live-type input:focus { border-color: rgba(255, 176, 32, 0.75); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18); }
.zeno-live-type button {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #C2410C, #BE123C);
}
.zeno-live-type button:disabled { opacity: 0.45; cursor: default; }
.zeno-live-side.is-on svg { border-color: rgba(255, 176, 32, 0.7); background: rgba(255, 138, 61, 0.16); }

/* ---------------------------------------------------------- Zeno, docked
   The same call as a panel in the corner of the page you are on. Narrow, so
   it takes the phone layout: numbers as a strip, an answer's tasks under
   the caption, no side board.
   ---------------------------------------------------------- */
.zeno-live.is-docked {
  inset: auto 20px 24px auto; width: 400px; height: min(660px, calc(100vh - 48px));
  min-height: 0; padding: 0; border-radius: 26px; z-index: 8500;
  border: 1px solid rgba(255, 190, 140, 0.22);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform-origin: 100% 100%;
  animation: zeno-dock-in 0.45s var(--zeno-ease) backwards;
}
@keyframes zeno-dock-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } }

.zeno-live.is-docked .zeno-live-sky i { filter: blur(46px); }
.zeno-live.is-docked .zeno-live-top { padding: 12px 14px; }
.zeno-live.is-docked .zeno-live-x { width: 34px; height: 34px; }
.zeno-live.is-docked .zeno-live-board { display: none; }
.zeno-live.is-docked .zeno-live-strip { display: flex; }
.zeno-live.is-docked .zeno-live-found { display: block; }
.zeno-live.is-docked .zeno-live-stage { padding: 0 14px; }
.zeno-live.is-docked .zeno-live-mark .zeno-mascot { width: 128px; }
.zeno-live.is-docked.has-tray .zeno-live-mark .zeno-mascot,
.zeno-live.is-docked.has-offer .zeno-live-mark .zeno-mascot { width: 84px; }
.zeno-live.is-docked .zeno-live-captions { min-height: 0; }
.zeno-live.is-docked .zeno-live-zeno { font-size: 15.5px; line-height: 1.45; }
.zeno-live.is-docked .zeno-live-chips { justify-content: flex-start; padding: 4px 14px 6px; }
.zeno-live.is-docked .zeno-live-type { padding: 2px 14px 6px; }
.zeno-live.is-docked .zeno-live-controls { gap: 16px; padding: 6px 14px 4px; }
.zeno-live.is-docked .zeno-live-mic { width: 58px; height: 58px; }
.zeno-live.is-docked .zeno-live-mic svg { width: 24px; height: 24px; }
.zeno-live.is-docked .zeno-live-side svg { padding: 10px; }
.zeno-live.is-docked .zeno-live-controls { padding-bottom: 14px; }
/* The panel is short. The hint line goes, and while an answer or an offer
   is on screen so do the prompts: what was asked for matters more than
   what else could be asked. */
.zeno-live.is-docked .zeno-live-hint,
.zeno-live.is-docked.has-tray .zeno-live-chips { display: none; }
.zeno-live.is-docked .zeno-live-you { margin-bottom: 4px; }

/* No room for a corner panel: it becomes the full call. */
@media (max-width: 1023px) {
  .zeno-live.is-docked { inset: 0; width: auto; height: auto; border-radius: 0; border: none; }
}

/* ---------------------------------------------------------- what an answer shows
   Used by the chat page and by the call. Token colours throughout, so one
   set of rules serves both themes, and the call (always dark) gets its
   glass look from the same tokens.
   ---------------------------------------------------------- */
.zeno-answer-tasks { display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: min(280px, 100%); }
.zeno-answer-task {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border-radius: 14px; background: var(--zeno-surface); border: 1px solid var(--zeno-border);
  color: var(--zeno-ink-900); font: inherit; text-align: left; cursor: pointer;
  animation: zeno-rise-in 0.45s var(--zeno-ease) backwards;
  transition: border-color var(--zeno-t-fast) ease, translate var(--zeno-t-base) var(--zeno-ease);
}
.zeno-answer-task:nth-child(2) { animation-delay: 50ms; }
.zeno-answer-task:nth-child(3) { animation-delay: 100ms; }
.zeno-answer-task:nth-child(4) { animation-delay: 150ms; }
.zeno-answer-task:nth-child(n + 5) { animation-delay: 200ms; }
.zeno-answer-task:disabled { opacity: 0.5; cursor: default; }
.zeno-answer-task > i { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--zeno-brand-ink); }
.zeno-answer-task.is-late > i { background: var(--zeno-danger-ink); }
.zeno-answer-task.is-done > i { background: var(--zeno-success-ink); }
.zeno-answer-task > span { flex: 1; min-width: 0; }
.zeno-answer-task strong { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeno-answer-task.is-done strong { text-decoration: line-through; text-decoration-color: var(--zeno-ink-400); }
.zeno-answer-task small { font-size: 12px; color: var(--zeno-ink-500); }
.zeno-answer-task.is-late small { color: var(--zeno-danger-ink); }
.zeno-answer-more { margin: 0 2px; font-size: 12px; color: var(--zeno-ink-500); }
@media (hover: hover) {
  .zeno-answer-task:not(:disabled):hover { border-color: var(--zeno-brand-line); translate: 0 -1px; }
}

/* An offer: a change that has not happened yet. It carries the brand ring so
   it cannot be mistaken for something already done, and the button that
   makes the change is the only solid thing on it. */
.zeno-offer {
  display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: min(300px, 100%);
  padding: 14px 16px; border-radius: 18px; text-align: left;
  background: var(--zeno-brand-tint); border: 1px solid var(--zeno-brand-line);
  box-shadow: 0 16px 34px -22px rgba(234, 88, 12, 0.7);
  animation: zeno-rise-in 0.5s var(--zeno-ease) backwards;
}
.zeno-offer-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--zeno-brand-ink);
}
.zeno-offer-title { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--zeno-ink-900); overflow-wrap: anywhere; }
.zeno-offer-detail { font-size: 13px; color: var(--zeno-ink-600); }
.zeno-offer-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.zeno-offer-yes, .zeno-offer-no {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.zeno-offer-yes { border: none; color: #fff; background: var(--zeno-grad-linear); box-shadow: 0 10px 22px -12px rgba(194, 65, 12, 0.9); }
.zeno-offer-no { background: transparent; color: var(--zeno-ink-700); border: 1px solid var(--zeno-border); }
.zeno-offer-yes:disabled, .zeno-offer-no:disabled { opacity: 0.55; cursor: default; }
@media (hover: hover) {
  .zeno-offer-yes:not(:disabled):hover { translate: 0 -1px; }
  .zeno-offer-no:not(:disabled):hover { border-color: var(--zeno-ink-500); }
}

/* ---------------------------------------------------------- off switch */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .zeno-corp::before { animation: none; }
}

/* The way to the plan and keys, shown in the call when a request was turned away by the plan. */
.zeno-live-planlink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 800; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, #C2410C, #BE123C);
}
.zeno-live-planlink:hover { color: #fff; filter: brightness(1.08); }
