﻿:root {
  --bg: #f8f1df;
  --bg-deep: #efd8b3;
  --panel: rgba(255, 250, 243, 0.9);
  --panel-strong: #fff7eb;
  --line: rgba(66, 48, 29, 0.12);
  --ink: #2f281f;
  --muted: #6b6258;
  --sun: #f39870;
  --mint: #7cae8e;
  --rose: #ef8d84;
  --sky: #77a9d8;
  --gold: #d5b05c;
  --danger: #df6a63;
  --shadow: 0 18px 42px rgba(93, 60, 24, 0.14);
  --shadow-soft: 0 12px 24px rgba(93, 60, 24, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-ui: "Trebuchet MS", "Avenir Next", "Gill Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(119, 169, 216, 0.14), transparent 20%),
    radial-gradient(circle at 84% 88%, rgba(243, 152, 112, 0.16), transparent 18%),
    linear-gradient(180deg, #fbf7ee 0%, #f4e6c8 100%);
}

body {
  padding: 24px;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

button:hover {
  transform: translateY(-1px);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.topbar,
.panel-card,
.side-card,
.footer-bar,
.settings-form {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.hero-copy {
  display: grid;
  gap: 8px;
}

.eyebrow,
.section-kicker,
.footer-label,
.mini-label {
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5d877f;
}

.subtitle,
.helper-text,
.footer-bar,
.muted-copy,
.item-meta,
.brief-note,
.check-note {
  color: var(--muted);
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  line-height: 0.96;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.02rem;
}

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

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(91, 73, 49, 0.08);
}

.sync-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(213, 176, 92, 0.18);
}

.sync-dot.online {
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(124, 174, 142, 0.2);
}

.sync-dot.alert {
  background: var(--danger);
  box-shadow: 0 0 0 6px rgba(223, 106, 99, 0.18);
}

.sync-dot.working {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.primary-button,
.ghost-button,
.mini-button {
  border-radius: 999px;
  font-weight: 700;
}

.primary-button,
.ghost-button {
  padding: 12px 16px;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #ef8d60 0%, #f7bd80 100%);
  box-shadow: 0 12px 24px rgba(239, 141, 96, 0.25);
}

.ghost-button,
.mini-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(91, 73, 49, 0.08);
}

.wide-button {
  width: 100%;
}

.layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.98fr);
}

.office-panel,
.control-panel {
  display: grid;
  gap: 16px;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading.compact {
  align-items: flex-start;
}

.office-scene-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.96fr);
  gap: 16px;
}

.office-scene {
  min-height: 720px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  background:
    linear-gradient(180deg, rgba(255, 248, 236, 0.95) 0%, rgba(248, 229, 199, 0.92) 100%);
}

.office-scene::before,
.office-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.office-scene::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 78% 14%, rgba(119, 169, 216, 0.12), transparent 14%),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 45px,
      rgba(99, 76, 48, 0.05) 45px,
      rgba(99, 76, 48, 0.05) 47px
    );
}

.office-scene::after {
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%),
    radial-gradient(circle at 82% 82%, rgba(239, 141, 132, 0.14), transparent 14%);
}

.office-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scene-banner,
.desk-card,
.side-card,
.list-item,
.check-item,
.summary-card {
  border-radius: 24px;
  background: rgba(255, 251, 244, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.scene-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.banner-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.banner-pill {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  min-width: 120px;
  display: grid;
  gap: 4px;
}

.banner-pill strong {
  font-size: 0.96rem;
}

.desk-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.desk-card::before {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  opacity: 0.2;
}

.user-desk {
  background: linear-gradient(180deg, rgba(255, 239, 220, 0.96), rgba(255, 248, 237, 0.92));
}

.user-desk::before {
  background: radial-gradient(circle, rgba(243, 152, 112, 0.5), transparent 70%);
}

.codex-desk {
  background: linear-gradient(180deg, rgba(224, 243, 233, 0.96), rgba(247, 252, 249, 0.92));
}

.codex-desk::before {
  background: radial-gradient(circle, rgba(124, 174, 142, 0.55), transparent 70%);
}

.claude-desk {
  background: linear-gradient(180deg, rgba(255, 233, 228, 0.96), rgba(255, 248, 245, 0.92));
}

.claude-desk::before {
  background: radial-gradient(circle, rgba(239, 141, 132, 0.55), transparent 70%);
}

.gemini-desk {
  background: linear-gradient(180deg, rgba(230, 241, 255, 0.96), rgba(247, 251, 255, 0.92));
}

.gemini-desk::before {
  background: radial-gradient(circle, rgba(119, 169, 216, 0.55), transparent 70%);
}

.desk-header,
.item-top,
.approval-top,
.energy-row,
.item-bottom,
.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.role-badge,
.mood-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.role-badge {
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

.mood-pill {
  color: #fff;
}

.mood-ready,
.status-approved,
.status-pass {
  background: var(--mint);
}

.mood-focused,
.status-online {
  background: #5e9a86;
}

.mood-thinking,
.status-pending,
.status-loading {
  background: var(--gold);
  color: #3f311b;
}

.mood-curious {
  background: var(--sky);
}

.mood-alert,
.status-held,
.status-fail {
  background: var(--danger);
}

.status-warn {
  background: #f0b35c;
  color: #3f311b;
}

.status-default,
.mood-calm {
  background: #9b90a5;
}

.pet-stage {
  position: relative;
  min-height: 270px;
  display: grid;
  align-items: end;
}

.pet-wander {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  animation: wander 6.2s ease-in-out infinite;
}

.codex-desk .pet-wander {
  animation-duration: 5.4s;
}

.claude-desk .pet-wander {
  animation-duration: 7.2s;
}

.gemini-desk .pet-wander {
  animation-duration: 5.8s;
}

.pet-frame {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.pet {
  --pet-main: #f3a57d;
  --pet-alt: #ffd2b8;
  --pet-glow: rgba(243, 165, 125, 0.3);
  width: 132px;
  height: 116px;
  position: relative;
  border-radius: 46px;
  border: 4px solid rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, var(--pet-main) 0%, var(--pet-alt) 100%);
  box-shadow:
    0 18px 30px rgba(88, 54, 22, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  animation: float-pet 3.4s ease-in-out infinite;
}

.user-desk .pet {
  --pet-main: #f3a57d;
  --pet-alt: #ffd8bf;
  --pet-glow: rgba(243, 165, 125, 0.34);
}

.codex-desk .pet {
  --pet-main: #8bc0a0;
  --pet-alt: #d8f1e2;
  --pet-glow: rgba(139, 192, 160, 0.3);
}

.claude-desk .pet {
  --pet-main: #f09b91;
  --pet-alt: #ffd8d2;
  --pet-glow: rgba(240, 155, 145, 0.3);
}

.gemini-desk .pet {
  --pet-main: #88b9e6;
  --pet-alt: #dcecff;
  --pet-glow: rgba(136, 185, 230, 0.3);
}

.pet::before,
.pet::after {
  content: "";
  position: absolute;
}

.pet::before {
  inset: 18px 20px 16px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.14);
}

.pet::after {
  inset: 10px auto auto 18px;
  width: 30px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-20deg);
}

.pet-ear,
.pet-cheek,
.pet-eye,
.pet-mouth,
.pet-core,
.pet-spark {
  position: absolute;
  z-index: 2;
}

.pet-ear {
  width: 24px;
  height: 24px;
  top: -6px;
  border-radius: 10px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.54);
}

.pet-ear-left {
  left: 24px;
  transform: rotate(-10deg);
}

.pet-ear-right {
  right: 24px;
  transform: rotate(10deg);
}

.pet-core {
  width: 72px;
  height: 52px;
  left: 30px;
  top: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.pet-eye {
  width: 11px;
  height: 18px;
  top: 44px;
  border-radius: 999px;
  background: #2f281f;
  animation: blink 4.8s ease-in-out infinite;
}

.pet-eye-left {
  left: 46px;
}

.pet-eye-right {
  right: 46px;
}

.pet-mouth {
  width: 28px;
  height: 14px;
  left: 52px;
  top: 68px;
  border-radius: 0 0 20px 20px;
  border: 3px solid #2f281f;
  border-top: 0;
}

.pet[data-mood="thinking"] .pet-mouth,
.pet[data-mood="curious"] .pet-mouth {
  width: 14px;
  height: 14px;
  left: 59px;
  top: 67px;
  border: 3px solid #2f281f;
  border-radius: 999px;
}

.pet[data-mood="alert"] .pet-mouth {
  width: 24px;
  height: 0;
  top: 74px;
  border-radius: 999px;
  border: 0;
  border-top: 3px solid #2f281f;
}

.pet-cheek {
  width: 14px;
  height: 10px;
  top: 66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.pet-cheek-left {
  left: 34px;
}

.pet-cheek-right {
  right: 34px;
}

.pet-spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 8px var(--pet-glow);
  animation: sparkle 2.8s ease-in-out infinite;
}

.pet-spark-a {
  left: -10px;
  top: 28px;
}

.pet-spark-b {
  right: -8px;
  top: 48px;
  animation-delay: 0.8s;
}

.pet-feet {
  display: flex;
  gap: 14px;
}

.pet-feet span {
  width: 20px;
  height: 12px;
  border-radius: 999px;
  background: rgba(91, 61, 33, 0.2);
  animation: foot-tap 0.9s ease-in-out infinite alternate;
}

.pet-feet span:last-child {
  animation-delay: 0.24s;
}

.desk-shadow {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 180px;
  height: 24px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(93, 60, 24, 0.18), transparent 70%);
  filter: blur(5px);
}

.speech-bubble {
  max-width: 220px;
  margin: 10px auto 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 12px 24px rgba(93, 60, 24, 0.1);
  animation: bubble-bob 4s ease-in-out infinite;
}

.agent-task {
  display: grid;
  gap: 4px;
}

.agent-task span {
  color: var(--muted);
}

.energy-row {
  align-items: center;
}

.energy-row span,
.energy-row strong {
  font-size: 0.84rem;
}

.energy-bar {
  flex: 1;
  min-width: 0;
  height: 12px;
  border-radius: 999px;
  background: rgba(91, 73, 49, 0.08);
  overflow: hidden;
}

.energy-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f3a36d 0%, #88c1a4 100%);
}

.office-sidebar,
.stack-form,
.settings-form,
.memory-stack,
.brief-stack,
.check-stack,
.note-stack {
  display: grid;
  gap: 14px;
}

.side-card,
.panel-card {
  padding: 18px;
}

.control-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-card {
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
}

.stack-form {
  gap: 12px;
}

.input-shell {
  display: grid;
  gap: 8px;
}

.input-shell span {
  font-size: 0.88rem;
  font-weight: 700;
}

.input-shell input,
.input-shell select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(91, 73, 49, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.input-shell input:focus,
.input-shell select:focus {
  outline: 2px solid rgba(119, 169, 216, 0.32);
  outline-offset: 1px;
}

.list-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.list-item,
.check-item,
.summary-card {
  padding: 14px;
}

.list-item {
  display: grid;
  gap: 10px;
}

.item-title {
  font-size: 0.98rem;
}

.item-copy {
  line-height: 1.45;
}

.item-bottom {
  align-items: flex-end;
}

.item-meta {
  font-size: 0.84rem;
}

.status-pill {
  text-transform: capitalize;
}

.approval-item {
  display: grid;
  gap: 12px;
}

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

.mini-button {
  padding: 8px 12px;
}

.mini-button.approve {
  background: rgba(124, 174, 142, 0.18);
}

.mini-button.hold {
  background: rgba(223, 106, 99, 0.14);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-tile {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 6px;
}

.metric-tile strong {
  font-size: 1rem;
}

.memory-note,
.check-summary,
.brief-callout {
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.check-summary {
  display: grid;
  gap: 6px;
}

.check-summary.good {
  box-shadow: inset 0 0 0 1px rgba(124, 174, 142, 0.26);
}

.check-summary.warn {
  box-shadow: inset 0 0 0 1px rgba(213, 176, 92, 0.34);
}

.check-summary.fail {
  box-shadow: inset 0 0 0 1px rgba(223, 106, 99, 0.24);
}

.check-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.check-copy {
  display: grid;
  gap: 5px;
}

.check-copy p {
  color: var(--muted);
  line-height: 1.42;
}

.brief-section,
.log-entry {
  display: grid;
  gap: 8px;
}

.brief-list,
.log-lines {
  display: grid;
  gap: 8px;
}

.brief-list li,
.log-lines li,
.log-entry {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.log-entry strong {
  font-size: 0.94rem;
}

.placeholder,
.empty-state {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  line-height: 1.45;
}

.footer-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
}

.footer-bar strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

.settings-dialog {
  border: 0;
  background: transparent;
  padding: 0;
}

.settings-dialog::backdrop {
  background: rgba(39, 27, 16, 0.32);
  backdrop-filter: blur(4px);
}

.settings-form {
  width: min(560px, calc(100vw - 32px));
  padding: 20px;
  border-radius: 26px;
}

.toggle-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

.dialog-actions {
  margin-top: 6px;
}

@keyframes float-pet {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }

  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes wander {
  0%,
  100% {
    transform: translateX(-8px);
  }

  50% {
    transform: translateX(8px);
  }
}

@keyframes bubble-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes blink {
  0%,
  44%,
  48%,
  100% {
    transform: scaleY(1);
  }

  46% {
    transform: scaleY(0.08);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes foot-tap {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(4px);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(213, 176, 92, 0.24);
  }

  60% {
    box-shadow: 0 0 0 8px rgba(213, 176, 92, 0.04);
  }
}

@media (max-width: 1260px) {
  .layout,
  .office-scene-wrapper {
    grid-template-columns: 1fr;
  }

  .control-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  body {
    padding: 16px;
  }

  .topbar,
  .scene-banner,
  .panel-heading,
  .footer-bar {
    grid-template-columns: 1fr;
  }

  .topbar,
  .scene-banner,
  .footer-bar,
  .check-item,
  .item-bottom,
  .dialog-header,
  .dialog-actions {
    display: grid;
  }

  .topbar-actions,
  .approval-actions {
    justify-content: flex-start;
  }

  .office-grid,
  .control-panel,
  .metric-grid,
  .footer-bar {
    grid-template-columns: 1fr;
  }

  .office-scene {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .topbar,
  .panel-card,
  .side-card,
  .footer-bar,
  .settings-form,
  .office-scene {
    border-radius: 22px;
  }

  .pet-stage {
    min-height: 250px;
  }

  .pet {
    width: 118px;
    height: 104px;
  }

  .pet-core {
    left: 26px;
    width: 66px;
    height: 48px;
  }

  .pet-mouth,
  .pet[data-mood="thinking"] .pet-mouth,
  .pet[data-mood="curious"] .pet-mouth,
  .pet[data-mood="alert"] .pet-mouth {
    left: 48px;
  }

  .speech-bubble {
    max-width: 100%;
  }
}

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

.hq-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.hq-banner,
.hq-block,
.venture-card,
.crew-pod,
.hq-stat {
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 28px rgba(93, 60, 24, 0.1);
}

.hq-banner,
.hq-block {
  padding: 18px;
}

.hq-banner {
  display: grid;
  gap: 18px;
}

.founder-deck {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
}

.founder-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.founder-halo {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 152, 112, 0.22), transparent 70%);
  filter: blur(10px);
}

.founder-copy {
  display: grid;
  gap: 6px;
}

.founder-line {
  font-size: 1.02rem;
  line-height: 1.5;
}

.hq-stat-row,
.summary-grid,
.venture-grid,
.crew-grid {
  display: grid;
  gap: 12px;
}

.hq-stat-row,
.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hq-stat {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.hq-stat strong {
  font-size: 1rem;
}

.block-heading,
.venture-top,
.crew-top,
.venture-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.block-heading {
  margin-bottom: 14px;
}

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

.venture-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  position: relative;
}

.venture-card::after {
  content: "";
  position: absolute;
  inset: auto -12px -28px auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 152, 112, 0.18), transparent 70%);
}

.venture-focus,
.venture-note,
.crew-line,
.crew-task,
.item-copy,
.memory-note span {
  line-height: 1.5;
}

.venture-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.venture-squad {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.venture-member {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.venture-member span {
  font-size: 0.82rem;
  font-weight: 700;
}

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

.crew-pod {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.crew-copy {
  display: grid;
  gap: 4px;
}

.crew-task {
  font-weight: 700;
}

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

.summary-card strong {
  line-height: 1.45;
}

.slime-avatar {
  --slime-a: #f3a57d;
  --slime-b: #ffd8bf;
  position: relative;
  display: inline-block;
  border-radius: 42px 42px 30px 30px;
  background: linear-gradient(180deg, var(--slime-a) 0%, var(--slime-b) 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    0 14px 22px rgba(93, 60, 24, 0.16);
  animation: slime-bob 3.2s ease-in-out infinite;
}

.slime-avatar::before,
.slime-avatar::after {
  content: "";
  position: absolute;
}

.slime-avatar::before {
  left: 50%;
  top: 36%;
  width: 34%;
  height: 10%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 24% 50%, #2f281f 0 4px, transparent 5px),
    radial-gradient(circle at 76% 50%, #2f281f 0 4px, transparent 5px);
}

.slime-avatar::after {
  left: 50%;
  bottom: 22%;
  width: 26%;
  height: 14%;
  transform: translateX(-50%);
  border-bottom: 3px solid #2f281f;
  border-radius: 0 0 18px 18px;
}

.slime-avatar.slime-user {
  --slime-a: #f3a57d;
  --slime-b: #ffd8bf;
}

.slime-avatar.slime-codex {
  --slime-a: #8bc0a0;
  --slime-b: #daf2e4;
  animation-duration: 2.8s;
}

.slime-avatar.slime-claude {
  --slime-a: #f09b91;
  --slime-b: #ffd9d4;
  animation-duration: 3.6s;
}

.slime-avatar.slime-gemini {
  --slime-a: #88b9e6;
  --slime-b: #dcebff;
  animation-duration: 3s;
}

.slime-sm {
  width: 34px;
  height: 30px;
}

.slime-sm::before {
  top: 38%;
  width: 42%;
  background:
    radial-gradient(circle at 24% 50%, #2f281f 0 2px, transparent 2.5px),
    radial-gradient(circle at 76% 50%, #2f281f 0 2px, transparent 2.5px);
}

.slime-sm::after {
  width: 28%;
  border-bottom-width: 2px;
}

.slime-md {
  width: 68px;
  height: 58px;
}

.slime-xl {
  width: 94px;
  height: 82px;
}

.status-shipping,
.status-in-progress,
.status-focused,
.status-ready {
  background: var(--mint);
  color: #fff;
}

.status-planning,
.status-review,
.status-thinking,
.status-curious {
  background: #f0c06b;
  color: #47341d;
}

.status-prototype,
.status-draft {
  background: var(--sky);
  color: #fff;
}

.status-queued,
.status-held,
.status-alert,
.status-blocked {
  background: var(--rose);
  color: #fff;
}

.status-done {
  background: #9aa5b1;
  color: #fff;
}

.memory-note {
  display: grid;
  gap: 6px;
}

.memory-note strong {
  font-size: 0.96rem;
}

@keyframes slime-bob {
  0%,
  100% {
    transform: translateY(0) scaleX(1);
  }

  50% {
    transform: translateY(-7px) scaleX(1.02);
  }
}

@media (max-width: 1260px) {
  .venture-grid,
  .summary-grid,
  .hq-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .founder-deck,
  .venture-grid,
  .crew-grid,
  .summary-grid,
  .hq-stat-row {
    grid-template-columns: 1fr;
  }

  .founder-deck,
  .venture-top,
  .crew-top,
  .venture-meta {
    display: grid;
  }
}

@media (max-width: 680px) {
  .founder-avatar-wrap {
    width: 100px;
    height: 100px;
  }

  .slime-xl {
    width: 82px;
    height: 72px;
  }
}
