:root {
  --page: #edf1ee;
  --ink: #1e2a2f;
  --muted: #56666b;
  --rule: #cbd6d1;
  --surface: #ffffff;
  --surface-2: #f4f7f5;
  --plate: #f1ede3;
  --spruce: #1d5a4a;
  --on-spruce: #ffffff;
  --spruce-soft: #d7e8e0;
  --cardinal: #b3262f;
  --on-cardinal: #ffffff;
  --cardinal-soft: #f7e1e2;
  --goldfinch: #e4b21f;
  --goldfinch-soft: #f8ebc0;
  --goldfinch-ink: #6b5200;
  --sky-soft: #dde8f5;
  --sky: #3f6fb8;
  --pencil: #3f4549;
  --code-bg: #1e2a2f;
  --code-ink: #d7e8e0;
  --branch: #7b5a3c;
  --legs: #5a4a3c;
  --shadow: 0 1px 0 rgba(29, 90, 74, 0.06), 0 28px 56px -28px rgba(29, 90, 74, 0.5);
  --packet: 620ms;
  --chat-h: 680px;
  --fill: rgba(255, 255, 255, 0.26);
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --hand: 'Kalam', 'Bradley Hand', cursive;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121a1c;
    --ink: #e3eae7;
    --muted: #9aa9a5;
    --rule: #2d3a3c;
    --surface: #1a2427;
    --surface-2: #212d30;
    --plate: #d9d3c5;
    --spruce: #6dbba2;
    --on-spruce: #0d1a16;
    --spruce-soft: #1d3a32;
    --cardinal: #e5646a;
    --on-cardinal: #1a0c0d;
    --cardinal-soft: #3a2326;
    --goldfinch: #f2c94c;
    --goldfinch-soft: #3b3218;
    --goldfinch-ink: #f2c94c;
    --sky-soft: #1d2b3d;
    --sky: #8fb2e6;
    --pencil: #cdd3cf;
    --code-bg: #0c1315;
    --code-ink: #cfe3da;
    --branch: #a58461;
    --legs: #b09a84;
    --shadow: 0 28px 56px -28px rgba(0, 0, 0, 0.75);
    --fill: rgba(0, 0, 0, 0.2);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: 32px;
  }
}

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

.small {
  font-size: 0.8125rem;
}

button {
  font: inherit;
  color: inherit;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.bird .branch {
  stroke: var(--branch);
}

.bird .legs {
  stroke: var(--legs);
}

/* ------------------------------------------------------------ masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  min-height: 60px;
  padding-block: 8px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.mark .muted {
  font-weight: 400;
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ intro */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
  padding-block: 56px 40px;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  max-width: 60ch;
  margin: 0 0 14px;
  font-size: 1.125rem;
}

.aside {
  max-width: 60ch;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ------------------------------------------------------------ stage */

.stage {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 72px;
  scroll-margin-top: 16px;
}

.rail ul {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.rail button .icon {
  margin-top: 1px;
  color: var(--muted);
}

.rail button strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.rail button .muted {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.3;
}

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

.rail button[aria-current='true'] {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--spruce);
}

.rail button[aria-current='true'] .icon {
  color: var(--spruce);
}

.deck {
  min-width: 0;
}

.deck-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 16px;
}

.scene-heading {
  flex: 1 1 200px;
  min-width: 0;
}

.scene-heading h2 {
  margin: 0;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.where {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  background: var(--goldfinch-soft);
  color: var(--goldfinch-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.where .icon {
  width: 14px;
  height: 14px;
}

.scene-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 6px 0 0;
  font-size: 0.9375rem;
}

.phases {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phases li {
  position: relative;
  min-width: 96px;
  padding-top: 9px;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--muted);
}

.phases li::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
  transition: background 0.3s;
}

.phases li.done::before {
  background: var(--spruce);
}

.phases li.current {
  color: var(--ink);
  font-weight: 600;
}

.phases li.current::before {
  background: var(--goldfinch);
}

.phases li:last-child.current::before,
.phases li:last-child.done::before {
  background: var(--cardinal);
}

.controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 19px;
  background: var(--spruce);
  color: var(--on-spruce);
  font-weight: 600;
  cursor: pointer;
}

.tour-btn .icon {
  width: 15px;
  height: 15px;
}

.deck-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

/* ------------------------------------------------------------ chat */

.chat {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--chat-h);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.connector {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 5px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.connector .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e6e;
}

.connector .bird,
.tool-row .bird,
.app-head .bird {
  display: block;
}

.connector.is-off .dot {
  background: var(--rule);
}

.messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.msg-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  background: var(--spruce-soft);
}

.msg-user p {
  margin: 0;
}

.msg-text {
  max-width: 66ch;
  margin: 0 0 12px;
}

.tool-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: flex-start;
  gap: 6px 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  color: var(--muted);
}

.tool-row code {
  font: 0.75rem var(--mono);
  color: var(--ink);
}

.tool-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-state .icon {
  width: 15px;
  height: 15px;
  color: var(--spruce);
}

.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--rule);
  border-top-color: var(--spruce);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 16px;
}

.composer-field {
  flex: 1;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  border-radius: 23px;
  background: var(--surface-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.composer-field:empty::before {
  content: 'Ask anything';
  color: var(--muted);
}

.send {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rule);
  color: var(--surface);
}

.send .icon {
  width: 18px;
  height: 18px;
}

.cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 720ms cubic-bezier(0.45, 0.05, 0.2, 1),
    opacity 0.2s;
}

.cursor.show {
  opacity: 1;
}

.cursor.no-anim {
  transition: none;
}

.cursor svg {
  display: block;
  transition: transform 0.12s;
}

.cursor.click svg {
  transform: scale(0.82);
}

.cursor.click::after {
  content: '';
  position: absolute;
  top: -9px;
  left: -9px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--goldfinch);
  border-radius: 50%;
  animation: ripple 0.4s ease-out forwards;
}

/* ?still: show the whole conversation instead of scrolling it. */
.still .chat {
  height: auto;
}

.still .messages {
  overflow: visible;
}

.chat.running .widget,
.chat.running .elicit {
  pointer-events: none;
}

/* ------------------------------------------------------------ WBU's card */

/* Everything after the customer connects renders inside WBU's own card, the
   way MCP Apps show up in Claude and ChatGPT. */
.app-frame {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}

.app-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
  font-size: 0.8125rem;
}

.app-head .muted {
  margin-left: auto;
}

.app-frame > .widget {
  padding: 14px;
}

.app-frame > .confirm {
  margin: 0;
  border-radius: 0;
}

.reveal {
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
  font-size: 0.9rem;
  animation: pop 0.35s ease-out;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 1.3em;
}

/* The assistant's own suggestion, before WBU is connected. */
.suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface-2);
}

.suggest > div {
  flex: 1 1 220px;
  min-width: 0;
}

.suggest strong,
.suggest .muted {
  display: block;
}

.suggest .muted {
  font-size: 0.875rem;
}

.suggest-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--plate);
}

/* ------------------------------------------------------------ widget parts */

.widget {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--spruce);
  border-radius: 8px;
  background: transparent;
  color: var(--spruce);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--spruce);
  color: var(--on-spruce);
}

.btn:disabled {
  cursor: default;
}

.btn.is-done {
  border-color: transparent;
  background: var(--spruce-soft);
  color: var(--spruce);
}

.btn.pressed {
  transform: scale(0.95);
}

.btn-capture {
  border-color: var(--cardinal);
  background: var(--cardinal);
  color: var(--on-cardinal);
}

.btn-quiet {
  border-color: transparent;
  color: var(--muted);
}

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

.widget-foot {
  margin: 0;
  font-size: 0.875rem;
}

.stores,
.events,
.stock,
.sightings,
.diagnosis,
.tips,
.plan-items,
.balance {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stores,
.events,
.stock,
.sightings {
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.stores > li,
.events > li,
.stock > li,
.sightings > li {
  border-top: 1px solid var(--rule);
}

.stores > li:first-child,
.events > li:first-child,
.stock > li:first-child,
.sightings > li:first-child {
  border-top: 0;
}

/* Open now */

.store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 12px 14px;
}

.store-name,
.status,
.store-meta {
  grid-column: 1;
}

.store-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.store-action {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.is-open {
  color: var(--spruce);
}

.is-closed {
  color: var(--cardinal);
}

/* Events */

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

.chip {
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  cursor: pointer;
}

.chip[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

.event {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
}

.datebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.6875rem;
  line-height: 1.15;
  color: var(--muted);
}

.datebox strong {
  font-size: 1.25rem;
  color: var(--ink);
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 0.875rem;
}

.event-body strong {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.spots {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--spruce);
}

/* Shelf check */

.product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-art {
  flex: none;
  width: 68px;
  height: 80px;
  padding: 6px;
  border-radius: 10px;
  background: var(--plate);
  color: #1e2a2f;
}

.product strong,
.product .muted {
  display: block;
}

.product .muted {
  font-size: 0.875rem;
}

.stock > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 14px;
  font-size: 0.875rem;
}

.stock-store {
  flex: 1 1 150px;
}

.meter {
  display: inline-flex;
  gap: 3px;
}

.meter i {
  width: 9px;
  height: 14px;
  border-radius: 2px;
  background: var(--rule);
}

.meter i.on {
  background: var(--spruce);
}

.stock > li > span:nth-child(3) {
  min-width: 118px;
}

/* Bird of the day */

.botd {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.botd-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--plate);
}

.botd h4,
.match h4 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.botd h4 em,
.match h4 em {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.botd blockquote {
  margin: 0 0 10px;
  font-family: var(--hand);
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--pencil);
}

.botd cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--muted);
}

.botd p {
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.botd .row-actions {
  margin-top: 12px;
}

.wave {
  display: none;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.wave i {
  width: 3px;
  height: 40%;
  border-radius: 1px;
  background: currentColor;
}

.playing .wave {
  display: inline-flex;
}

.playing .wave i {
  animation: wave 0.9s ease-in-out infinite;
}

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

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

.playing .wave i:nth-child(4) {
  animation-delay: 0.45s;
}

.playing .wave i:nth-child(5) {
  animation-delay: 0.6s;
}

/* Migration watch */

.sightings > li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 82px 130px;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}

.sighting-name strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.trend {
  font-size: 0.75rem;
  font-weight: 700;
}

.trend-down {
  color: var(--cardinal);
}

.trend-up {
  color: var(--spruce);
}

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

.spark rect {
  fill: var(--rule);
}

.spark-down rect {
  fill: var(--cardinal);
  opacity: 0.75;
}

.spark-up rect {
  fill: var(--spruce);
}

.spark-flat rect {
  fill: var(--muted);
  opacity: 0.6;
}

/* Bird ID */

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

.match {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.match .bird {
  width: 100%;
  max-height: 150px;
  height: auto;
  padding: 8px;
  border-radius: 8px;
  background: var(--plate);
}

.match h4 {
  margin: 0;
  font-size: 1.0625rem;
}

.match p {
  margin: 0;
  font-size: 0.875rem;
}

.confidence {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--rule);
}

.confidence span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--spruce);
}

/* Why no birds */

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

.diagnosis li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 0.9rem;
}

.likely {
  padding: 2px 0;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
}

.likely-high {
  background: var(--goldfinch-soft);
  color: var(--goldfinch-ink);
}

/* Yard plan */

.plan {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.plan-art {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--plate);
}

.plan-house {
  fill: #cfc7b6;
}

.plan-patio {
  fill: none;
  stroke: #9a9282;
  stroke-dasharray: 5 4;
}

.plan-shrub {
  fill: #86a980;
}

.plan-baffle {
  fill: none;
  stroke: #1d5a4a;
  stroke-width: 3;
}

.plan-pole {
  fill: #1d5a4a;
}

.plan-feeder {
  fill: #b3262f;
}

.plan-dish {
  fill: #3f6fb8;
}

.plan-dim {
  stroke: #b3262f;
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}

.plan-label {
  font-family: var(--hand);
  font-size: 13px;
  fill: #3f4549;
}

.plan-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
}

.plan-items li:first-child {
  border-top: 0;
  padding-top: 0;
}

.plan-items li > span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.plan-total {
  font-weight: 700;
}

.plan-birds {
  display: inline-flex;
  margin-right: auto;
}

/* Feeding forecast */

.days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.days li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.8125rem;
}

.days li.is-frost {
  background: var(--sky-soft);
  box-shadow: inset 0 0 0 1.5px var(--sky);
}

.day {
  font-weight: 600;
}

.tips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.tips li {
  position: relative;
  padding-left: 16px;
}

.tips li::before {
  content: '';
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--goldfinch);
}

/* Bird Food Bank */

.signin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.signin > div {
  flex: 1 1 200px;
}

.signin strong,
.signin .muted {
  display: block;
}

.signin .muted {
  font-size: 0.8125rem;
}

.signin-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--spruce-soft);
  color: var(--spruce);
}

.signin-icon .icon {
  width: 22px;
  height: 22px;
}

.balance li:first-child {
  padding-top: 0;
  border-top: 0;
}

.balance li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.875rem;
}

.balance li > span:first-child {
  flex: 1 1 110px;
}

.confirm .widget-foot {
  margin: 8px 0 10px;
}

/* Book an expert */

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

.expert strong,
.expert .muted {
  display: block;
}

.expert .muted {
  font-size: 0.8125rem;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--goldfinch);
  color: #3a2e00;
  font-size: 1.125rem;
  font-weight: 800;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.slots-day {
  width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn.slot {
  min-width: 96px;
  border-color: var(--rule);
  color: var(--ink);
  font-weight: 500;
}

.btn.slot:disabled:not(.is-done) {
  opacity: 0.45;
  text-decoration: line-through;
}

.btn.slot.is-done {
  border-color: transparent;
  color: var(--spruce);
  font-weight: 600;
}

/* Gift finder */

.gifts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.gift {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 0.8125rem;
}

.gift > svg {
  width: 100%;
  height: auto;
  max-height: 120px;
  margin-bottom: 6px;
  padding: 4px;
  border-radius: 8px;
  background: var(--plate);
}

.gift strong {
  font-size: 0.9375rem;
  line-height: 1.25;
}

.gift-price {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.gift-price .muted {
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ------------------------------------------------------------ capture form */

.elicit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--rule);
  background: var(--surface-2);
  animation: pop 0.3s ease-out;
}

.elicit > * {
  max-width: 480px;
}

.elicit-title {
  font-size: 1rem;
  line-height: 1.3;
}

.field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
}

.field input {
  width: 100%;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}

.field.from-account input {
  background: var(--surface);
}

.account-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--spruce);
}

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

.attach {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  color: var(--muted);
}

.attach.attached {
  border-style: solid;
  color: var(--ink);
}

.attach .icon {
  width: 16px;
  height: 16px;
}

.consent {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.elicit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* The sign-in window, over the chat. */
.oauth {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 20, 22, 0.42);
  animation: fade 0.25s ease-out;
}

.oauth-window {
  width: min(100%, 380px);
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.oauth-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
  font-size: 0.75rem;
  color: var(--muted);
}

.oauth-bar .icon {
  width: 14px;
  height: 14px;
}

.oauth .elicit {
  padding: 18px 20px 20px;
  border: 0;
  background: var(--surface);
  animation: none;
}

.oauth-brand {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 2px;
  border-radius: 14px;
  background: var(--plate);
}

.oauth .elicit-title {
  text-align: center;
}

.oauth .field {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.confirm {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--spruce-soft);
  animation: pop 0.35s ease-out;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--spruce);
  color: var(--on-spruce);
}

.confirm-icon .icon {
  width: 16px;
  height: 16px;
}

.confirm p {
  margin: 3px 0 0;
  font-weight: 500;
}

/* ------------------------------------------------------------ behind the chat */

.behind {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wire {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface-2);
}

.node {
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.node-mcp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-color: var(--spruce);
  background: var(--spruce);
  color: var(--on-spruce);
}

.node-mcp.is-off {
  border-style: dashed;
  border-color: var(--rule);
  background: transparent;
  color: var(--muted);
}

.node-mcp code {
  min-height: 1.3em;
  font: 0.75rem var(--mono);
  opacity: 0.85;
}

.link {
  position: relative;
  width: 2px;
  height: 30px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, var(--rule) 0 4px, transparent 4px 8px);
}

.link.flow-down,
.link.flow-up {
  background: repeating-linear-gradient(to bottom, var(--spruce) 0 4px, transparent 4px 8px);
}

.packet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: var(--goldfinch);
  box-shadow: 0 0 0 4px rgba(228, 178, 31, 0.3);
  opacity: 0;
}

.flow-down .packet {
  animation: packet-down var(--packet) ease-in-out forwards;
}

.flow-up .packet {
  animation: packet-up var(--packet) ease-in-out forwards;
}

.sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--muted);
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}

.sources li .icon {
  width: 16px;
  height: 16px;
}

.sources li.on {
  border-color: var(--spruce);
  background: var(--spruce-soft);
  color: var(--ink);
  font-weight: 600;
}

.sources li.on .icon {
  color: var(--spruce);
}

.panel-block h3 {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.request-auth {
  margin: -2px 0 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.request pre {
  min-height: 4.6em;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-ink);
  font: 0.75rem/1.5 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.request.idle pre {
  opacity: 0.5;
}

.request-status {
  min-height: 1.3em;
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.request-status.ok {
  color: var(--spruce);
  font-weight: 600;
}

.note {
  position: relative;
  min-height: 4.2em;
  margin: 0;
  padding-left: 28px;
  font-family: var(--hand);
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--pencil);
}

.note:not(:empty)::before {
  content: '';
  position: absolute;
  top: 0.25em;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--cardinal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4c1 6 4 10 16 12'/%3E%3Cpath d='M14 11.5l5.5 4.5-6 3'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4c1 6 4 10 16 12'/%3E%3Cpath d='M14 11.5l5.5 4.5-6 3'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.note.write {
  animation: write 1.6s ease-out;
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cap-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--cardinal-soft);
  font-size: 0.8125rem;
  animation: pop 0.35s ease-out;
}

.cap-list li span {
  flex: none;
  color: var(--muted);
}

.cap-list li strong {
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.cap-list li.empty {
  border: 1px dashed var(--rule);
  background: transparent;
  color: var(--muted);
  animation: none;
}

.ledger {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

.ledger-label {
  width: 100%;
  font-weight: 700;
  color: var(--ink);
}

.ledger strong {
  display: inline-block;
  margin-right: 2px;
  font-size: 1.625rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  color: var(--ink);
}

.ledger strong.bump {
  animation: bump 0.5s ease-out;
}

.stage.is-paused *,
.stage.is-paused *::before,
.stage.is-paused *::after {
  animation-play-state: paused !important;
}

/* ------------------------------------------------------------ the big question */

/* Covers the chat and the panel while the customer's question types out,
   centered on the chat, then zooms down into its chat bubble. */
.ask {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: var(--chat-h);
  place-items: center;
  padding: 0 40px;
}

.ask[hidden] {
  display: none;
}

.ask-scrim {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.ask-inner {
  position: relative;
  width: min(100%, 11.5em);
  font-size: clamp(1.875rem, 0.9rem + 2.6vw, 3.5rem);
}

.ask-who {
  margin: 0 0 18px;
  font-size: 1rem;
  color: var(--muted);
}

.ask-text {
  position: relative;
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.ask-text::before {
  content: '“';
  position: absolute;
  top: 0;
  left: -0.5em;
  color: var(--goldfinch);
}

.ask-text .rest {
  color: transparent;
}

.ask-text.typing .typed::after {
  content: '';
  display: inline-block;
  width: 0.07em;
  height: 0.85em;
  margin: 0 -0.07em 0 0.03em;
  background: var(--goldfinch);
  vertical-align: -0.06em;
  animation: blink 1s steps(1) infinite;
}

/* ------------------------------------------------------------ up next */

.up-next {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.up-next[hidden] {
  display: none;
}

.up-next-scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 22, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  cursor: pointer;
  animation: fade 0.35s ease-out;
}

.up-next-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.up-next-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.up-next .cap-list {
  flex-flow: row wrap;
}

.up-next .cap-list li {
  flex: 1 1 210px;
  animation: none;
}

.up-next-delta {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.up-next-delta strong {
  color: var(--cardinal);
}

.up-next-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.up-next-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--spruce-soft);
  color: var(--spruce);
}

.up-next-icon .icon {
  width: 22px;
  height: 22px;
}

.up-next-text {
  display: flex;
  flex: 1 1 170px;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.up-next-text .muted {
  font-size: 0.8125rem;
}

.up-next-text strong {
  font-size: 1.0625rem;
}

.up-next-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.up-next-play {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px 0 14px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--spruce);
  color: var(--on-spruce);
  font-weight: 700;
  cursor: pointer;
}

.up-next-play > span:last-child {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.up-next-play .icon {
  width: 15px;
  height: 15px;
}

.up-next-fill {
  position: absolute;
  inset: 0;
  background: var(--fill);
  transform: scaleX(0);
  transform-origin: left;
}

.up-next.counting .up-next-fill {
  animation: fill var(--countdown, 7s) linear forwards;
}

/* ------------------------------------------------------------ toolset */

.toolset {
  padding-block: 8px 48px;
}

.toolset h2,
.today h2 {
  margin: 0 0 8px;
  font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.toolset-intro {
  max-width: 64ch;
  margin: 0 0 24px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 13px 20px 13px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  padding-bottom: 8px;
  border-top: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

tbody th {
  width: 22%;
  font-weight: 400;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--spruce);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

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

.tool-link .icon {
  width: 18px;
  height: 18px;
}

tbody th code {
  display: block;
  margin-top: 2px;
  padding-left: 26px;
  font: 0.75rem var(--mono);
  color: var(--muted);
}

.today {
  padding-block: 8px 64px;
}

.today-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 36px;
  margin-top: 20px;
}

.today h3 {
  margin: 0 0 6px;
  font-size: 1.0625rem;
}

.today p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

footer {
  padding-block: 24px 48px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

footer p {
  max-width: 72ch;
  margin: 0 0 6px;
}

footer a {
  color: var(--spruce);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .rail ul {
    flex-direction: row;
    gap: 6px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .rail button {
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 7px 14px 7px 10px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    white-space: nowrap;
  }

  .rail button .muted {
    display: none;
  }

  .rail button[aria-current='true'] {
    border-color: var(--spruce);
    background: var(--spruce);
    box-shadow: none;
    color: var(--on-spruce);
  }

  .rail button[aria-current='true'] .icon {
    color: var(--on-spruce);
  }
}

@media (max-width: 980px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 36px 28px;
  }

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

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

@media (max-width: 760px) {
  :root {
    --chat-h: 600px;
  }

  .ask {
    padding: 0 28px;
  }

  .messages {
    padding: 16px 14px 8px;
  }

  .phases {
    order: 3;
    width: 100%;
  }

  .phases li {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
  }

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

  .botd-art {
    max-width: 200px;
  }

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

  .sightings > li {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .sightings > li > .muted {
    grid-column: 2 / -1;
  }

  .sightings .bird {
    width: 44px;
    height: auto;
  }

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

  .event > .btn {
    grid-column: 2;
    justify-self: start;
  }

  .field {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

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

  .store-action {
    grid-column: 1;
    grid-row: auto;
    margin-top: 6px;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tbody tr {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
  }

  tbody th,
  tbody td {
    width: auto;
    padding: 3px 0;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
  }
}

/* ------------------------------------------------------------ keyframes */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes ripple {
  from {
    opacity: 1;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bump {
  40% {
    transform: scale(1.3);
    color: var(--cardinal);
  }
}

@keyframes wave {
  50% {
    height: 100%;
  }
}

@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

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

@keyframes write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes packet-down {
  0% {
    top: -5px;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 6px);
    opacity: 0;
  }
}

@keyframes packet-up {
  0% {
    top: calc(100% - 6px);
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    top: -5px;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
