:root {
  --ivory: #fff9ee;
  --cream: #f7f0e4;
  --paper: #fffdf8;
  --ink: #151515;
  --muted: #736f68;
  --line: #e9dfd0;
  --pink: #f5a9cf;
  --coral: #f47f67;
  --yellow: #f5d75d;
  --green: #a9bf76;
  --blue: #a9c8eb;
  --lavender: #c3b1ef;
  --shadow: 0 22px 60px rgba(61, 47, 25, 0.09);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .72, .22, 1);
  --display: "Cooper Black", "Rockwell Extra Bold", "Avenir Next", sans-serif;
  --body: "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
input { font: inherit; }

button { color: inherit; }

button:focus-visible,
[tabindex]:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(21, 21, 21, 0.22);
  outline-offset: 3px;
}

#app {
  width: 100%;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 5% 0%, rgba(245, 215, 93, 0.18), transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(245, 169, 207, 0.14), transparent 30%),
    var(--ivory);
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.auth-screen {
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.auth-card {
  width: min(100%, 500px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-card h1 {
  margin: 22px 0 12px;
  font-size: clamp(38px, 7vw, 58px);
}

.welcome-spirit {
  --tone: var(--lavender);
  position: relative;
  width: 104px;
  height: 94px;
  margin: 0 auto;
  border-radius: 50% 50% 42% 42% / 58% 58% 36% 36%;
  background: var(--tone);
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.18), 0 18px 38px rgba(44, 36, 20, 0.12);
  animation: spirit-breathe 5.8s var(--ease-soft) infinite;
}

.welcome-spirit::before,
.welcome-spirit::after,
.welcome-spirit > i {
  content: '';
  position: absolute;
  background: var(--ink);
}

.welcome-spirit::before,
.welcome-spirit::after {
  top: 34px;
  width: 13px;
  height: 17px;
  border-radius: 50%;
  box-shadow: inset 3px 3px 0 white;
}

.welcome-spirit::before { left: 30px; }
.welcome-spirit::after { right: 30px; }
.welcome-spirit > i { display: none; }
.welcome-spirit > span {
  position: absolute;
  left: 44px;
  bottom: 22px;
  width: 18px;
  height: 8px;
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 14px 14px;
}

.tone-pink { --tone: var(--pink); --tone-soft: #fde6f2; --agent-tone: var(--pink); --agent-tone-soft: #fde6f2; }
.tone-coral { --tone: var(--coral); --tone-soft: #fde4df; --agent-tone: var(--coral); --agent-tone-soft: #fde4df; }
.tone-yellow { --tone: var(--yellow); --tone-soft: #fff3bf; --agent-tone: var(--yellow); --agent-tone-soft: #fff3bf; }
.tone-lavender { --tone: var(--lavender); --tone-soft: #ece5ff; --agent-tone: var(--lavender); --agent-tone-soft: #ece5ff; }
.tone-blue { --tone: var(--blue); --tone-soft: #e1effd; --agent-tone: var(--blue); --agent-tone-soft: #e1effd; }
.tone-green { --tone: var(--green); --tone-soft: #e7edcf; --agent-tone: var(--green); --agent-tone-soft: #e7edcf; }

.hero-sub {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.auth-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.auth-status.ok { color: #4c7753; }
.auth-status.error { color: #b34e45; }

.auth-btn,
.pill-button {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out), background-color 420ms ease;
}

.auth-btn::after,
.pill-button::after,
.agent-open::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.32) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 760ms var(--ease-out);
  pointer-events: none;
}

.auth-btn:hover::after,
.pill-button:hover::after,
.agent-open:hover::after { transform: translateX(130%); }

.auth-btn {
  width: 100%;
  margin-top: 10px;
  background: var(--ink);
  color: white;
}

.auth-btn:hover,
.pill-button:hover { transform: translateY(-2px); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.secondary-btn,
.pill-button.light {
  background: var(--cream);
  color: var(--ink);
}

.pill-button.dark {
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 20px rgba(21, 21, 21, 0.14);
}

.auth-row { display: flex; gap: 10px; }
.auth-row > * { flex: 1; }

.pair-card { width: min(100%, 540px); }
.pair-kicker,
.status-pill,
.section-kicker,
.card-kicker,
.workspace-eyebrow,
.agent-subtitle {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pair-kicker,
.status-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--yellow);
}

.pair-qr-shell {
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 24px auto 8px;
  padding: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
}

.pair-qr { width: 100%; height: 100%; border-radius: 18px; }
.pair-loading { color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 10px; }

#screen-theater {
  justify-content: center;
  padding: 42px 24px;
}

.hero-theater {
  width: min(100%, 720px);
  margin: 0 auto 32px;
  text-align: center;
}

.hero-theater h1 {
  margin: 24px 0 14px;
  font-size: clamp(46px, 8vw, 78px);
}

.hero-question { margin: 18px 0 0; font-weight: 800; }
.button-list {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.button-list button {
  min-height: 78px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 10px 25px rgba(61, 47, 25, 0.05);
  transition: transform 160ms ease, background 160ms ease;
}

.button-list button:hover { transform: translateY(-3px); background: #fff2bd; }
.button-list button.secondary { color: var(--muted); }

.app-screen {
  height: 100dvh;
  min-height: 0;
  flex-direction: row;
  overflow: hidden;
  background: var(--ivory);
}

.sidebar {
  width: 282px;
  flex: 0 0 282px;
  min-height: 0;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
}

.sidebar-header,
.sidebar-brand,
.sidebar-section-head,
.workspace-header,
.welcome-row,
.section-heading,
.brief-topline,
.agent-card-top,
.chat-header {
  display: flex;
  align-items: center;
}

.sidebar-header { justify-content: space-between; gap: 10px; }
.sidebar-brand { gap: 11px; min-width: 0; }
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  display: block;
  overflow: hidden;
  border-radius: 16px 16px 9px 9px;
  background: var(--ink);
}

.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  top: 17px;
  width: 8px;
  height: 10px;
  border-radius: 50%;
  background: white;
}

.brand-mark::before { left: 11px; }
.brand-mark::after { right: 11px; }
.brand-mark i:first-child {
  position: absolute;
  left: -8px;
  bottom: -11px;
  width: 34px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink);
}
.brand-mark i:last-child {
  position: absolute;
  right: -9px;
  bottom: -12px;
  width: 32px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
}

.sidebar-brand-title { font-family: var(--display); font-size: 18px; letter-spacing: -0.04em; }
.sidebar-brand-subtitle { max-width: 170px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.primary-nav { display: grid; gap: 4px; margin-top: 30px; }
.primary-nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  color: #68645e;
  font-weight: 700;
  text-align: left;
}

.primary-nav-item:hover,
.primary-nav-item.active { background: var(--ink); color: white; }
.nav-glyph { width: 24px; font-size: 20px; text-align: center; }

.sidebar-section { margin-top: 28px; }
.sidebar-section-head { justify-content: space-between; }
.sidebar-section-title { color: var(--muted); }
.section-link,
.text-action {
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 800;
}
.section-link { color: var(--muted); font-size: 12px; }

.role-list { display: grid; gap: 5px; margin-top: 10px; }
.role-item {
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.role-item:hover,
.role-item.active { background: var(--cream); }
.role-label {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.role-desc { display: block; max-width: 165px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mini-spirit {
  position: relative;
  width: 34px;
  height: 31px;
  flex: none;
  border-radius: 50% 50% 42% 42%;
  background: var(--tone);
}
.mini-spirit i {
  position: absolute;
  top: 11px;
  width: 4px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.mini-spirit i:first-child { left: 10px; }
.mini-spirit i:last-child { right: 10px; }

.sidebar-tools { margin-top: auto; padding-top: 22px; display: grid; gap: 5px; }
.sidebar-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.sidebar-tool:hover { background: var(--cream); }
.sidebar-tool b,
.sidebar-tool small { display: block; }
.sidebar-tool b { font-size: 12px; }
.sidebar-tool small { color: var(--muted); font-size: 10px; }
.tool-dot { width: 18px; height: 18px; border: 5px solid var(--pink); border-radius: 50%; }
.theater-dot { border-color: var(--green); }

.workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.workspace-header {
  min-height: 76px;
  flex: none;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 238, 0.86);
  backdrop-filter: blur(18px);
}
.workspace-eyebrow { color: var(--muted); font-size: 9px; }
.workspace-title { margin-top: 2px; font-family: var(--display); font-size: 21px; letter-spacing: -0.04em; }
.workspace-actions { display: flex; align-items: center; gap: 10px; }
.profile-orb { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--pink); cursor: pointer; font-weight: 900; }
.icon-btn { border: 0; border-radius: 12px; background: transparent; cursor: pointer; padding: 8px; font-size: 18px; }
.icon-btn:hover { background: var(--cream); }
.sidebar-close,
.sidebar-open { display: none; }

.workspace-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 34px clamp(24px, 4vw, 62px) 56px;
  scroll-behavior: smooth;
}
.app-view { width: min(100%, 1180px); margin: 0 auto; transform-origin: 50% 18%; }
.app-view.view-enter { animation: scene-enter 720ms var(--ease-out) both; }
.welcome-row { justify-content: space-between; gap: 24px; }
.section-kicker,
.card-kicker { color: var(--muted); }
.welcome-row h1,
.page-intro h1 {
  margin: 8px 0 12px;
  font-size: clamp(42px, 5.2vw, 78px);
  max-width: 880px;
}
.lead-copy,
.page-intro p { max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); }
.round-action {
  width: 64px;
  height: 64px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  cursor: pointer;
  font-size: 34px;
  box-shadow: 0 16px 30px rgba(203, 102, 155, 0.2);
  transition: transform 520ms var(--ease-out), box-shadow 520ms var(--ease-out);
}
.round-action:hover { transform: rotate(12deg) scale(1.06); box-shadow: 0 22px 42px rgba(203, 102, 155, 0.28); }

.dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.3fr);
  gap: 18px;
  margin-top: 30px;
}
.pulse-card,
.brief-card,
.readiness-card,
.checklist-card,
.profile-card,
.feature-empty {
  border: 1px solid rgba(94, 74, 43, 0.11);
  border-radius: 34px;
  box-shadow: 0 16px 40px rgba(61, 47, 25, 0.06);
}
.pulse-card { padding: 26px; background: #fce1ee; text-align: center; }
.pulse-card > .card-kicker { text-align: left; }
.pulse-card > p { max-width: 34ch; margin: 4px auto 18px; color: #59534e; font-size: 13px; }
.pulse-visual {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 2px auto 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--yellow) 0 22%, transparent 22% 25%, var(--green) 25% 47%, transparent 47% 50%, var(--blue) 50% 72%, transparent 72% 75%, #ef72af 75% 97%, transparent 97%);
  transform: rotate(-35deg);
  animation: pulse-arrive 1.1s var(--ease-out) both, pulse-hover 7s 1.2s ease-in-out infinite;
}
.pulse-visual::before { content: ''; position: absolute; inset: 28px; border-radius: 50%; background: #fce1ee; }
.pulse-center { position: relative; z-index: 1; display: flex; flex-direction: column; transform: rotate(35deg); }
.pulse-center b { font-family: var(--display); font-size: 70px; line-height: 0.9; }
.pulse-center span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pulse-segment { display: none; }

.brief-card {
  padding: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.65), transparent 30%),
    var(--yellow);
}
.brief-topline { align-items: flex-start; justify-content: space-between; }
.brief-card h2 { margin: 6px 0 20px; font-size: clamp(32px, 4vw, 52px); }
.brief-time { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.55); font-size: 11px; font-weight: 800; }
.brief-note { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(21,21,21,.13); }
.brief-task {
  width: 100%;
  margin-top: 9px;
  padding: 14px 16px;
  border: 1px solid rgba(21,21,21,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.5);
  color: var(--ink);
  font: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
  transition: transform 280ms var(--ease-out), background-color 220ms ease, box-shadow 280ms var(--ease-out);
}
.brief-task:hover {
  transform: translateX(4px);
  background: rgba(255,255,255,.76);
  box-shadow: 0 12px 28px rgba(21,21,21,.08);
}
.brief-task + .brief-task { margin-top: 7px; }
.brief-task .brief-number { align-self: start; font-size: 17px; }
.brief-task b { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.brief-task p { margin-top: 5px; }
.brief-number { font-family: var(--display); font-size: 20px; }
.brief-note b { font-size: 15px; }
.brief-note p { margin: 4px 0 0; color: #5c5340; font-size: 13px; }
.text-action { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.text-action span { font-size: 20px; }

.section-heading { justify-content: space-between; margin: 42px 0 18px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(32px, 4vw, 48px); }
.agent-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.agent-preview-card,
.studio-agent-card {
  --tone: var(--agent-tone, var(--lavender));
  --tone-soft: var(--agent-tone-soft, #ece5ff);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(21,21,21,.08);
  background: var(--tone-soft);
  cursor: pointer;
  isolation: isolate;
  transition: transform 620ms var(--ease-out), box-shadow 620ms var(--ease-out), filter 620ms var(--ease-out);
}
.agent-preview-card::before,
.studio-agent-card::before {
  content: '';
  position: absolute;
  inset: -45% -70%;
  z-index: 0;
  background: linear-gradient(110deg, transparent 41%, rgba(255,255,255,.36) 50%, transparent 59%);
  transform: translateX(-46%) rotate(8deg);
  transition: transform 950ms var(--ease-out);
  pointer-events: none;
}
.agent-preview-card { min-height: 250px; padding: 19px; border-radius: 28px; }
.agent-preview-card:hover,
.studio-agent-card:hover { transform: translateY(-8px) scale(1.008); box-shadow: 0 28px 70px rgba(61,47,25,.13); }
.agent-preview-card:hover::before,
.studio-agent-card:hover::before { transform: translateX(46%) rotate(8deg); }
.agent-card-top { position: relative; justify-content: space-between; align-items: flex-start; min-height: 93px; }
.agent-card-top::before {
  content: '';
  position: absolute;
  top: -34%;
  right: -2%;
  width: 52%;
  height: 126%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.66), rgba(255,255,255,0));
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  opacity: .62;
  transform: rotate(7deg);
  transform-origin: 50% 0;
  transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out);
}
.agent-card-top::after {
  content: '';
  position: absolute;
  right: 1%;
  bottom: 2%;
  width: 46%;
  height: 10%;
  z-index: -1;
  border: 1px solid rgba(21,21,21,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.34);
  box-shadow: 0 11px 22px rgba(61,47,25,.08);
}
.is-curious .agent-card-top::before { opacity: .9; transform: rotate(-4deg) translateX(-4%); }
.agent-number { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.agent-spirit {
  position: relative;
  width: 102px;
  height: 88px;
  margin: -20px -10px 0 0;
  border-radius: 42% 58% 48% 52% / 62% 55% 45% 38%;
  background: var(--tone);
  transform: rotate(6deg);
  transform-origin: 50% 85%;
  animation: spirit-breathe 5.2s calc(var(--card-index, 0) * -620ms) var(--ease-soft) infinite;
  transition: transform 620ms var(--ease-out);
}
.agent-spirit::after {
  content: '';
  position: absolute;
  right: -13px;
  bottom: 4px;
  width: 40px;
  height: 30px;
  border-radius: 50%;
  background: var(--tone);
}
.eye {
  position: absolute;
  top: 34px;
  z-index: 3;
  width: 10px;
  height: 13px;
  translate: var(--look-x, 0px) var(--look-y, 0px);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 3px 2px white;
  transition: translate 110ms ease-out;
}
.eye-left { left: 31px; }
.eye-right { left: 55px; }
.spirit-mouth { position: absolute; left: 43px; top: 55px; width: 15px; height: 7px; z-index: 3; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; transition: width 280ms var(--ease-out), height 280ms var(--ease-out), transform 280ms var(--ease-out); }
.spirit-detail,
.spirit-costume { position: absolute; z-index: 2; display: block; pointer-events: none; transition: transform 420ms var(--ease-out); }
.agent-preview-card:hover .agent-spirit,
.studio-agent-card:hover .agent-spirit { transform: rotate(-2deg) translateY(-5px) scale(1.035); }
.agent-preview-card:hover .eye,
.studio-agent-card:hover .eye { animation: spirit-blink 2.8s 450ms ease-in-out infinite; }
.agent-copy { position: relative; z-index: 1; min-width: 0; }
.agent-copy h2,
.agent-copy h3 { margin: 4px 0 7px; }
.agent-copy h3 { font-size: 25px; }
.agent-copy h2 {
  max-width: 100%;
  font-size: clamp(34px, 3.2vw, 46px);
  overflow-wrap: break-word;
}
.agent-copy p { margin: 0; color: #5c5750; font-size: 12px; line-height: 1.45; }
.agent-open { position: relative; overflow: hidden; width: fit-content; margin-top: auto; padding: 11px 16px; border: 0; border-radius: 999px; background: var(--ink); color: white; cursor: pointer; font-size: 12px; font-weight: 800; transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out); }
.agent-open:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(21,21,21,.16); }
.agent-open.compact { padding: 9px 0 0; background: transparent; color: var(--ink); }

.dashboard-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.dashboard-lower-grid.dashboard-single { grid-template-columns: 1fr; }
.dashboard-single .progress-card { min-height: 235px; }
.coming-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(21,21,21,.08);
  border-radius: 30px;
  cursor: pointer;
  transition: transform 560ms var(--ease-out), box-shadow 560ms var(--ease-out);
}
.coming-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.coming-card .card-arrow { transition: transform 520ms var(--ease-out); }
.coming-card:hover .card-arrow { transform: translate(4px, -4px); }
.calendar-card { background: #dcecfb; }
.progress-card { background: #e9e0ff; }
.coming-card h3 { margin: 6px 0 8px; font-size: 25px; }
.coming-card p { margin: 0; color: var(--muted); font-size: 12px; }
.card-arrow { align-self: start; font-size: 22px; }
.coming-icon { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--blue); }
.coming-icon::before { content: ''; position: absolute; left: 20px; top: 25px; width: 48px; height: 36px; border: 4px solid var(--ink); border-radius: 10px; }
.coming-icon::after { content: ''; position: absolute; left: 20px; top: 36px; width: 52px; border-top: 4px solid var(--ink); }
.progress-mini { display: flex; align-items: end; gap: 8px; width: 88px; height: 88px; padding: 16px; border-radius: 24px; background: var(--lavender); }
.progress-mini i { flex: 1; border-radius: 999px; background: var(--ink); }
.progress-mini i:nth-child(1) { height: 35%; }
.progress-mini i:nth-child(2) { height: 75%; }
.progress-mini i:nth-child(3) { height: 55%; }

.page-intro { padding: 12px 0 24px; }
.page-intro h1 { margin-bottom: 14px; }
.studio-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.studio-role-grid { align-items: stretch; grid-auto-rows: 1fr; }
.studio-agent-card { min-width: 0; min-height: 410px; padding: 28px; border-radius: 34px; }
.studio-agent-card .agent-card-top { min-height: 180px; }
.studio-agent-card .agent-spirit { width: 165px; height: 145px; margin: -30px -22px 0 0; }
.studio-agent-card .eye { top: 59px; width: 15px; height: 19px; }
.studio-agent-card .eye-left { left: 51px; }
.studio-agent-card .eye-right { left: 88px; }
.studio-agent-card .spirit-mouth { left: 72px; top: 88px; width: 22px; height: 10px; }
.studio-agent-card .agent-copy { padding-bottom: 24px; }
.studio-agent-card .agent-copy p { max-width: 36ch; font-size: 14px; }
.studio-agent-card[data-role-key="secretary"] .agent-copy h2 { font-size: clamp(32px, 2.9vw, 42px); }

/* Each specialist keeps the same card geometry, but has an individual stage silhouette. */
[data-role-key="smm"] .agent-spirit {
  border-radius: 48% 52% 43% 57% / 58% 54% 46% 42%;
  animation-name: spirit-smm;
}
[data-role-key="smm"] .spirit-detail {
  top: 19%;
  left: 34%;
  width: 34%;
  height: 9%;
  background: radial-gradient(circle, rgba(255,255,255,.85) 0 24%, transparent 27%) 0 50% / 33% 100% repeat-x;
}
[data-role-key="smm"] .spirit-costume {
  left: 33%;
  bottom: -2%;
  width: 38%;
  height: 20%;
  border-radius: 50% 50% 16% 16%;
  background: var(--ink);
  clip-path: polygon(0 16%, 43% 38%, 50% 0, 57% 38%, 100% 16%, 82% 100%, 18% 100%);
}
[data-role-key="smm"].is-curious .spirit-mouth { width: 22%; height: 13%; transform: translateX(-7%); }
[data-role-key="smm"].is-curious .spirit-costume { transform: scaleX(1.12) rotate(-3deg); }

[data-role-key="pr"] .agent-spirit {
  border-radius: 64% 36% 38% 62% / 52% 42% 58% 48%;
  animation-name: spirit-pr;
}
[data-role-key="pr"] .agent-spirit::after {
  right: -28%;
  bottom: 16%;
  width: 50%;
  height: 56%;
  border-radius: 12% 70% 70% 12%;
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 76%);
}
[data-role-key="pr"] .spirit-detail {
  right: -30%;
  top: 10%;
  width: 30%;
  height: 54%;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: rotate(-9deg);
  opacity: .7;
}
[data-role-key="pr"] .spirit-costume {
  left: 34%;
  bottom: -5%;
  width: 36%;
  height: 24%;
  background: var(--ink);
  clip-path: polygon(0 12%, 43% 38%, 50% 8%, 57% 38%, 100% 12%, 82% 100%, 18% 100%);
}
[data-role-key="pr"] .spirit-mouth { height: 13%; border: 3px solid var(--ink); border-radius: 50%; background: var(--ink); }
[data-role-key="pr"].is-curious .spirit-mouth { transform: scale(1.28); }
[data-role-key="pr"].is-curious .spirit-costume { transform: rotate(5deg) scale(1.08); }

[data-role-key="project"] .agent-spirit {
  border-radius: 29% 29% 38% 38% / 25% 25% 44% 44%;
  animation-name: spirit-project;
}
[data-role-key="project"] .agent-spirit::after {
  right: -8%;
  bottom: -4%;
  width: 34%;
  height: 34%;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
[data-role-key="project"] .spirit-detail {
  right: 0;
  bottom: 7%;
  width: 18%;
  height: 10%;
  border-left: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: rotate(-45deg);
}
[data-role-key="project"] .spirit-costume {
  left: 10%;
  top: 7%;
  width: 80%;
  height: 57%;
  border: 4px solid var(--ink);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
[data-role-key="project"] .spirit-costume::after {
  content: '';
  position: absolute;
  right: -12%;
  bottom: -25%;
  width: 31%;
  height: 40%;
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 12px 0;
}
[data-role-key="project"] .spirit-mouth { width: 18%; height: 0; border: 0; border-top: 3px solid var(--ink); border-radius: 0; }
[data-role-key="project"].is-curious .spirit-costume { transform: translateY(-3px); }

[data-role-key="strategist"] .agent-spirit {
  border-radius: 50% 50% 43% 43% / 72% 72% 28% 28%;
  animation-name: spirit-strategist;
}
[data-role-key="strategist"] .agent-spirit::after {
  right: 4%;
  bottom: -13%;
  width: 35%;
  height: 40%;
  border-radius: 50% 50% 28% 28%;
}
[data-role-key="strategist"] .spirit-detail {
  left: 42%;
  top: -12%;
  width: 22%;
  height: 22%;
  background: var(--ink);
  clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 64%, 50% 100%, 38% 64%, 0 50%, 38% 35%);
  opacity: .8;
}
[data-role-key="strategist"] .spirit-costume {
  left: 18%;
  bottom: -5%;
  width: 66%;
  height: 32%;
  border-radius: 70% 70% 18% 18%;
  background: var(--ink);
  clip-path: polygon(0 35%, 33% 0, 50% 48%, 67% 0, 100% 35%, 82% 100%, 18% 100%);
}
[data-role-key="strategist"].is-curious .spirit-detail { animation: strategy-star 1.8s linear infinite; }
[data-role-key="strategist"].is-curious .spirit-costume { transform: scaleX(1.08); }

[data-role-key="secretary"] .agent-spirit {
  border-radius: 22% 22% 16% 16% / 18% 18% 12% 12%;
  animation-name: spirit-secretary;
}
[data-role-key="secretary"] .agent-spirit::after {
  right: 0;
  top: 0;
  bottom: auto;
  width: 31%;
  height: 31%;
  border-radius: 0 0 0 12px;
  background: rgba(255,255,255,.52);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
[data-role-key="secretary"] .spirit-detail {
  left: 24%;
  bottom: 17%;
  width: 52%;
  height: 18%;
  border-top: 4px solid rgba(21,21,21,.72);
  border-bottom: 4px solid rgba(21,21,21,.72);
}
[data-role-key="secretary"] .spirit-costume {
  right: 5%;
  bottom: 3%;
  width: 15%;
  height: 55%;
  border-radius: 100% 0 100% 0;
  background: var(--ink);
  transform: rotate(26deg);
}
[data-role-key="secretary"] .spirit-costume::after {
  content: '';
  position: absolute;
  left: 48%;
  bottom: -34%;
  height: 58%;
  border-left: 3px solid var(--ink);
}
[data-role-key="secretary"] .spirit-mouth { width: 17%; height: 0; border: 0; border-top: 3px solid var(--ink); border-radius: 0; }
[data-role-key="secretary"].is-curious .spirit-mouth { width: 24%; transform: translateX(-13%); }
[data-role-key="secretary"].is-curious .spirit-costume { transform: rotate(18deg) translateY(-4px); }

[data-role-key="grants"] .agent-spirit {
  border-radius: 54% 46% 48% 52% / 42% 58% 42% 58%;
  animation-name: spirit-grants;
}
[data-role-key="grants"] .agent-spirit::after {
  right: -17%;
  bottom: 2%;
  width: 42%;
  height: 48%;
  border-radius: 100% 0 100% 0;
  transform: rotate(12deg);
}
[data-role-key="grants"] .spirit-detail {
  left: 46%;
  top: -18%;
  width: 30%;
  height: 30%;
  border-radius: 100% 0 100% 0;
  background: var(--ink);
  transform: rotate(-22deg);
  opacity: .72;
}
[data-role-key="grants"] .spirit-costume {
  left: 22%;
  bottom: -3%;
  width: 58%;
  height: 26%;
  border: 4px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 50% 50%;
}
[data-role-key="grants"] .spirit-costume::before,
[data-role-key="grants"] .spirit-costume::after {
  content: '';
  position: absolute;
  top: -33%;
  width: 35%;
  height: 54%;
  border-radius: 100% 0 100% 0;
  background: var(--ink);
}
[data-role-key="grants"] .spirit-costume::before { left: -6%; transform: rotate(-34deg); }
[data-role-key="grants"] .spirit-costume::after { right: -6%; transform: rotate(56deg); }
[data-role-key="grants"].is-curious .spirit-detail { transform: rotate(-10deg) scale(1.12); }
[data-role-key="grants"].is-curious .spirit-costume { transform: translateY(-3px) scale(1.05); }

/* Bold mask language: calm at rest, expressive only when the user engages. */
.agent-card-top::before,
.agent-card-top::after,
.spirit-detail,
.spirit-costume { display: none; }
.agent-spirit { box-shadow: inset 0 -10px 0 rgba(21,21,21,.035); }
.eye,
.studio-agent-card .eye {
  top: 36%;
  width: 20%;
  height: 25%;
  translate: 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: none;
}
.eye::after {
  content: '';
  position: absolute;
  left: 28%;
  top: 24%;
  width: 46%;
  height: 54%;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(var(--look-x, 0px), var(--look-y, 0px));
  transition: transform 120ms ease-out;
}
.eye-left,
.studio-agent-card .eye-left { left: 25%; }
.eye-right,
.studio-agent-card .eye-right { left: 56%; }
.spirit-mouth,
.studio-agent-card .spirit-mouth {
  left: 38%;
  top: 68%;
  width: 25%;
  height: 10%;
  border: 5px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 999px 999px;
}

[data-role-key="smm"].is-curious .eye-left {
  top: 45%;
  height: 7%;
  overflow: visible;
  border-top: 5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}
[data-role-key="smm"].is-curious .eye-left::after { display: none; }
[data-role-key="smm"].is-curious .spirit-mouth { width: 29%; left: 36%; height: 12%; }

[data-role-key="pr"] .eye-left,
[data-role-key="pr"] .eye-right { top: 36%; transform: none; }
[data-role-key="pr"] .eye::after { width: 42%; height: 50%; }
[data-role-key="pr"] .spirit-mouth {
  left: 40%;
  top: 69%;
  width: 21%;
  height: 7%;
  border: 0;
  border-bottom: 5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
[data-role-key="pr"].is-curious .spirit-mouth {
  left: 38%;
  width: 25%;
  height: 8%;
  border: 0;
  border-bottom: 5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  transform: none;
}

[data-role-key="project"] .agent-spirit {
  border-radius: 46% 54% 48% 52% / 44% 48% 52% 56%;
}
[data-role-key="project"] .eye { top: 35%; width: 21%; height: 25%; border-radius: 50%; }
[data-role-key="project"] .eye::after { width: 42%; height: 49%; }
[data-role-key="project"] .agent-spirit::before,
[data-role-key="project"] .agent-spirit::after { display: none !important; content: none !important; }
[data-role-key="project"] .spirit-mouth { left: 37%; width: 27%; height: 11%; }
[data-role-key="project"].is-curious .spirit-mouth { left: 35%; width: 31%; height: 13%; transform: none; }

[data-role-key="strategist"] .eye {
  top: 38%;
  height: 20%;
  border-radius: 50% 50% 38% 38%;
}
[data-role-key="strategist"] .eye::after { top: 18%; height: 60%; }
[data-role-key="strategist"].is-curious .eye { height: 24%; top: 35%; }

[data-role-key="secretary"] .eye {
  top: 37%;
  width: 19%;
  height: 23%;
  border-radius: 40%;
}
[data-role-key="secretary"] .eye-left { left: 26%; }
[data-role-key="secretary"] .eye-right { left: 56%; }
[data-role-key="secretary"].is-curious .spirit-mouth { width: 29%; transform: translateX(-8%); }

[data-role-key="grants"] .eye-left,
[data-role-key="grants"] .eye-right {
  top: 45%;
  width: 20%;
  height: 7%;
  overflow: visible;
  border-top: 5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
}
[data-role-key="grants"] .eye::after { display: none; }
[data-role-key="grants"] .spirit-mouth { left: 39%; width: 23%; height: 9%; transform: none; }
[data-role-key="grants"].is-curious .eye {
  top: 36%;
  height: 23%;
  overflow: hidden;
  border-top: 0;
  background: #fffdf8;
}
[data-role-key="grants"].is-curious .eye::after { display: block; width: 42%; height: 50%; }
[data-role-key="grants"].is-curious .spirit-mouth { left: 37%; width: 27%; height: 11%; transform: none; }

.agent-preview-card.is-curious .agent-spirit,
.studio-agent-card.is-curious .agent-spirit { animation-play-state: paused; }
.agent-preview-card.is-pressed,
.studio-agent-card.is-pressed { transform: translateY(-2px) scale(.99); transition-duration: 120ms; }

@keyframes spirit-smm {
  0%, 100% { transform: rotate(6deg) translateY(0) scale(1); }
  45% { transform: rotate(1deg) translateY(-5px) scale(1.025, .985); }
  55% { transform: rotate(4deg) translateY(-3px) scale(.99, 1.02); }
}
@keyframes spirit-pr {
  0%, 100% { transform: rotate(4deg) translateX(0) scale(1); }
  38% { transform: rotate(-2deg) translateX(-5px) scale(.98, 1.02); }
  48% { transform: rotate(2deg) translateX(3px) scale(1.04, .97); }
}
@keyframes spirit-project {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  48% { transform: rotate(-2deg) translateY(-3px); }
  54% { transform: rotate(1deg) translateY(0); }
}
@keyframes spirit-strategist {
  0%, 100% { transform: rotate(3deg) translateY(1px); }
  50% { transform: rotate(-2deg) translateY(-9px); }
}
@keyframes spirit-secretary {
  0%, 100% { transform: rotate(1deg) translateY(0); }
  48% { transform: rotate(-1deg) translateY(-3px); }
  52% { transform: rotate(1deg) translateY(-3px); }
}
@keyframes spirit-grants {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-6px) scale(1.015); }
}
@keyframes strategy-star { to { rotate: 360deg; } }

/* Final mascot system: six restrained stage masks built from the same anatomy. */
.agent-preview-card .agent-card-top::before,
.agent-preview-card .agent-card-top::after,
.studio-agent-card .agent-card-top::before,
.studio-agent-card .agent-card-top::after,
.agent-preview-card .spirit-detail,
.agent-preview-card .spirit-costume,
.studio-agent-card .spirit-detail,
.studio-agent-card .spirit-costume { display: none !important; }

.agent-preview-card[data-role-key] .agent-spirit,
.studio-agent-card[data-role-key] .agent-spirit {
  box-shadow: inset 0 -8px 0 rgba(21,21,21,.035);
}
.agent-preview-card[data-role-key] .agent-spirit::before,
.studio-agent-card[data-role-key] .agent-spirit::before,
.agent-preview-card[data-role-key] .agent-spirit::after,
.studio-agent-card[data-role-key] .agent-spirit::after {
  content: none !important;
  display: none !important;
}
.agent-preview-card[data-role-key] .eye,
.studio-agent-card[data-role-key] .eye,
.agent-preview-card[data-role-key].is-curious .eye,
.studio-agent-card[data-role-key].is-curious .eye {
  top: 39%;
  width: 9%;
  height: 15%;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 3px 2px rgba(255,255,255,.78);
  transform: none;
}
.agent-preview-card[data-role-key] .eye::after,
.studio-agent-card[data-role-key] .eye::after,
.agent-preview-card[data-role-key].is-curious .eye::after,
.studio-agent-card[data-role-key].is-curious .eye::after { display: none !important; }
.agent-preview-card[data-role-key] .eye-left,
.studio-agent-card[data-role-key] .eye-left { left: 34%; }
.agent-preview-card[data-role-key] .eye-right,
.studio-agent-card[data-role-key] .eye-right { left: 58%; }
.agent-preview-card[data-role-key] .spirit-mouth,
.studio-agent-card[data-role-key] .spirit-mouth,
.agent-preview-card[data-role-key].is-curious .spirit-mouth,
.studio-agent-card[data-role-key].is-curious .spirit-mouth {
  left: 41%;
  top: 62%;
  width: 19%;
  height: 11%;
  border: 4px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.agent-preview-card[data-role-key="smm"] .agent-spirit,
.studio-agent-card[data-role-key="smm"] .agent-spirit {
  border-radius: 49% 51% 45% 55% / 57% 55% 45% 43%;
}
.agent-preview-card[data-role-key="smm"] .agent-spirit::after,
.studio-agent-card[data-role-key="smm"] .agent-spirit::after {
  content: '' !important;
  display: block !important;
  right: -12%;
  bottom: 3%;
  width: 32%;
  height: 27%;
  border-radius: 50%;
  background: var(--tone);
}

.agent-preview-card[data-role-key="pr"] .agent-spirit,
.studio-agent-card[data-role-key="pr"] .agent-spirit {
  border-radius: 56% 44% 51% 49% / 48% 55% 45% 52%;
}
.agent-preview-card[data-role-key="pr"] .spirit-mouth,
.studio-agent-card[data-role-key="pr"] .spirit-mouth { width: 17%; left: 42%; }

.agent-preview-card[data-role-key="project"] .agent-spirit,
.studio-agent-card[data-role-key="project"] .agent-spirit {
  border-radius: 30% 30% 36% 36% / 27% 27% 40% 40%;
}
.agent-preview-card[data-role-key="project"] .spirit-mouth,
.studio-agent-card[data-role-key="project"] .spirit-mouth { width: 20%; left: 40%; }

.agent-preview-card[data-role-key="strategist"] .agent-spirit,
.studio-agent-card[data-role-key="strategist"] .agent-spirit {
  border-radius: 50% 50% 42% 42% / 68% 68% 32% 32%;
}

.agent-preview-card[data-role-key="secretary"] .agent-spirit,
.studio-agent-card[data-role-key="secretary"] .agent-spirit {
  border-radius: 22% 22% 16% 16% / 18% 18% 12% 12%;
}
.agent-preview-card[data-role-key="secretary"] .agent-spirit::after,
.studio-agent-card[data-role-key="secretary"] .agent-spirit::after {
  content: '' !important;
  display: block !important;
  right: 0;
  top: 0;
  bottom: auto;
  width: 28%;
  height: 28%;
  border-radius: 0 0 0 10px;
  background: rgba(255,255,255,.42);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.agent-preview-card[data-role-key="grants"] .agent-spirit,
.studio-agent-card[data-role-key="grants"] .agent-spirit {
  border-radius: 54% 46% 49% 51% / 43% 57% 43% 57%;
}
.agent-preview-card[data-role-key="grants"] .agent-spirit::after,
.studio-agent-card[data-role-key="grants"] .agent-spirit::after {
  content: '' !important;
  display: block !important;
  right: -14%;
  bottom: 3%;
  width: 34%;
  height: 39%;
  border-radius: 100% 0 100% 0;
  background: var(--tone);
  transform: rotate(12deg);
}

.feature-empty {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  padding: clamp(28px, 6vw, 70px);
  background: #f7dd98;
}
.feature-empty h2 { margin: 18px 0 16px; font-size: clamp(38px, 5vw, 64px); }
.feature-empty p { max-width: 56ch; color: #625a48; }
.stage-illustration { position: relative; min-height: 340px; overflow: hidden; border-radius: 150px 150px 28px 28px; background: var(--ink); }
.stage-illustration::before,
.stage-illustration::after { content: ''; position: absolute; top: 0; bottom: 0; width: 34%; background: var(--coral); }
.stage-illustration::before { left: 0; border-radius: 0 0 100% 0; }
.stage-illustration::after { right: 0; border-radius: 0 0 0 100%; }
.stage-illustration i { position: absolute; left: 50%; bottom: 40px; z-index: 2; width: 90px; height: 78px; transform: translateX(-50%); border-radius: 50% 50% 40% 40%; background: var(--yellow); }
.stage-illustration i::before,
.stage-illustration i::after { content: ''; position: absolute; top: 29px; width: 10px; height: 14px; border-radius: 50%; background: var(--ink); }
.stage-illustration i::before { left: 27px; }
.stage-illustration i::after { right: 27px; }
.stage-light { position: absolute; top: -20px; z-index: 1; width: 130px; height: 280px; background: linear-gradient(rgba(255,255,255,.58), transparent); clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%); }
.stage-light.one { left: 15%; transform: rotate(-18deg); }
.stage-light.two { right: 15%; transform: rotate(18deg); }
.view-enter .stage-light.one { animation: spotlight-one 6.5s ease-in-out infinite alternate; }
.view-enter .stage-light.two { animation: spotlight-two 7.2s 400ms ease-in-out infinite alternate; }
.view-enter .stage-illustration i { animation: stage-spirit 4.8s 300ms var(--ease-soft) infinite; }

.progress-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; }
.readiness-card { padding: 34px; background: var(--pink); }
.readiness-score { margin: 30px 0 16px; font-family: var(--display); }
.readiness-score b { font-size: clamp(80px, 11vw, 148px); line-height: .8; }
.readiness-score span { font-size: 34px; }
.readiness-bar { height: 13px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.5); }
.readiness-bar i { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--ink); transition: width 500ms ease; }
.readiness-card p { margin: 18px 0 0; max-width: 40ch; color: #66505b; font-size: 13px; }
.checklist-card { padding: 34px; background: var(--paper); }
.checklist-card h2 { margin-bottom: 24px; font-size: 36px; }
.check-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.check-row i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); font-style: normal; font-weight: 900; }
.check-row.complete i { background: var(--green); }
.check-row b,
.check-row small { display: block; }
.check-row small { margin-top: 3px; color: var(--muted); }

/* Internal calendar and day plans */
.planner-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.planner-page-head > div { max-width: 760px; }
.calendar-stage-banner {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(340px, 1.28fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(21,21,21,.09);
  border-radius: 40px;
  background: #f7dd98;
  box-shadow: var(--shadow);
}
.calendar-stage-banner h2 {
  max-width: 12ch;
  margin: 18px 0 14px;
  font-size: clamp(38px, 5vw, 68px);
}
.calendar-stage-banner p { max-width: 54ch; margin: 0; color: #665b46; font-size: 16px; }
.status-pill {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.compact-stage { min-height: 250px; border-radius: 120px 120px 24px 24px; }
.compact-stage .stage-light { height: 230px; }
.compact-stage i { bottom: 28px; }
.calendar-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .55fr);
  gap: 18px;
  margin-top: 18px;
}
.calendar-board,
.calendar-agenda,
.plan-list-card,
.plan-summary-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
}
.calendar-board { min-width: 0; overflow: hidden; padding: 24px; }
.calendar-toolbar { display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; margin-bottom: 20px; }
.calendar-toolbar h2 { margin: 0; text-align: center; text-transform: capitalize; font-size: clamp(26px, 3vw, 38px); }
.calendar-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ivory);
  cursor: pointer;
  font-size: 19px;
  transition: transform 360ms var(--ease-out), background 360ms var(--ease-out);
}
.calendar-arrow:hover { transform: scale(1.08); background: var(--yellow); }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { padding: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 900; text-align: center; text-transform: uppercase; }
.calendar-grid { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; }
.calendar-day {
  min-width: 0;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  cursor: pointer;
  transition: background 280ms ease;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-day:hover { background: #fff8dc; }
.calendar-day.outside { background: #faf7f1; color: #aaa59d; }
.calendar-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.calendar-day-number { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 900; }
.calendar-day.today .calendar-day-number { background: var(--ink); color: white; }
.calendar-chip {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.type-task { --planner-tone: var(--blue); }
.type-deadline { --planner-tone: var(--pink); }
.type-performance { --planner-tone: var(--yellow); }
.calendar-chip { background: var(--planner-tone); }
.calendar-day small { color: var(--muted); font-size: 9px; font-weight: 800; }
.calendar-agenda { padding: 28px; background: #e9e0ff; }
.calendar-agenda h2 { margin: 7px 0 22px; font-size: 34px; }
.calendar-agenda-list,
.plans-list { display: grid; gap: 9px; }
.agenda-item,
.plan-row {
  position: relative;
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 14px 15px 14px 19px;
  border: 1px solid rgba(21,21,21,.08);
  border-radius: 17px;
  background: rgba(255,255,255,.78);
  text-align: left;
  cursor: pointer;
  transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}
.agenda-item::before,
.plan-row::before { content: ''; position: absolute; inset: 10px auto 10px 7px; width: 4px; border-radius: 9px; background: var(--planner-tone); }
.agenda-item:hover,
.plan-row:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(61,47,25,.08); }
.planner-item-meta { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.agenda-item b,
.plan-row b { overflow-wrap: anywhere; font-size: 13px; }
.planner-empty { padding: 22px; border: 1px dashed rgba(21,21,21,.18); border-radius: 19px; background: rgba(255,255,255,.34); }
.planner-empty b { font-family: var(--display); font-size: 19px; }
.planner-empty p { margin: 8px 0 15px; color: var(--muted); font-size: 12px; }
.plan-mode-tabs {
  width: fit-content;
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}
.plan-mode-tabs button { padding: 10px 19px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 800; }
.plan-mode-tabs button.active { background: var(--ink); color: white; }
.plan-inbox-card {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 16px;
  margin-bottom: 18px;
}
.plan-inbox-note,
.plan-inbox-stack {
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: 32px;
}
.plan-inbox-note {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #f7dc83;
  box-shadow: 0 20px 44px rgba(93, 68, 24, .08);
}
.plan-inbox-note::after {
  content: '';
  position: absolute;
  top: -42px;
  right: -42px;
  width: 112px;
  height: 112px;
  border-radius: 0 0 0 90px;
  background: rgba(255, 255, 255, .34);
}
.plan-inbox-note-head,
.plan-inbox-stack-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.plan-inbox-index { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.plan-inbox-note-head strong {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 15px;
}
.plan-inbox-copy { margin: 34px 0 28px; }
.plan-inbox-copy h2 { max-width: 9ch; margin: 0 0 13px; font-size: clamp(34px, 4vw, 52px); line-height: .94; }
.plan-inbox-copy p { max-width: 43ch; margin: 0; color: #695e43; font-size: 13px; }
.plan-inbox-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  margin-top: auto;
  padding: 7px;
  border: 1px solid rgba(21, 21, 21, .14);
  border-radius: 999px;
  background: rgba(255, 253, 248, .82);
}
.plan-inbox-form input { min-width: 0; padding: 10px 14px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.plan-inbox-form button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--ink); color: white; cursor: pointer; font-size: 22px; transition: transform 280ms var(--ease-out); }
.plan-inbox-form button:hover { transform: rotate(-8deg) scale(1.06); }
.plan-inbox-note .planner-error { margin: 5px 10px 0; }
.plan-inbox-stack { padding: 30px; background: var(--paper); }
.plan-inbox-stack-head h3 { margin: 7px 0 0; font-size: clamp(28px, 3vw, 40px); }
.plan-inbox-stack-head > span { max-width: 20ch; color: var(--muted); font-size: 11px; text-align: right; }
.plan-inbox-list { display: grid; gap: 8px; margin-top: 22px; }
.plan-inbox-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(21, 21, 21, .08);
  border-radius: 17px;
  background: var(--ivory);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 280ms var(--ease-out), background 280ms ease;
}
.plan-inbox-item:hover { transform: translateX(4px); background: #fff7d8; }
.plan-inbox-item b { overflow-wrap: anywhere; font-size: 13px; }
.plan-inbox-item span { flex: none; color: var(--muted); font-size: 10px; font-weight: 900; }
.plan-inbox-empty { margin: 32px 0 0; padding: 24px; border: 1px dashed var(--line); border-radius: 19px; color: var(--muted); font-size: 13px; }
.planner-page-head { padding-bottom: 13px; }
.planner-page-head h1 { font-size: clamp(42px, 4.2vw, 62px); }
.planner-page-head p { margin: 0; font-size: clamp(14px, 1.25vw, 17px); }
.plan-mode-tabs { margin-bottom: 13px; }
.plans-overview {
  display: grid;
  grid-template-columns: minmax(175px, .4fr) minmax(380px, 1.08fr) minmax(260px, .62fr);
  align-items: stretch;
  gap: 14px;
}
.plan-summary-card,
.plan-list-card,
.plan-quick-note { min-height: 330px; border: 1px solid var(--line); border-radius: 30px; }
.plan-summary-card { padding: 28px; background: var(--pink); }
.plan-summary-number { margin: 27px 0 4px; font-family: var(--display); font-size: clamp(88px, 10vw, 132px); line-height: .8; }
.plan-summary-card p { max-width: 18ch; color: #65515b; font-size: 16px; }
.plan-list-card { min-width: 0; display: flex; flex-direction: column; padding: 25px; background: var(--paper); }
.plan-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.plan-list-head h2 { margin: 6px 0 0; font-size: clamp(28px, 3vw, 40px); }
.plan-list-card > .plans-list,
.plan-list-card > .plan-inbox-list { min-height: 0; overflow-y: auto; padding-right: 3px; }
.plan-list-card > .plan-inbox-list { margin-top: 0; }
.plan-quick-note {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: #f7dc83;
  box-shadow: 0 20px 44px rgba(93, 68, 24, .08);
}
.plan-quick-note::after {
  content: '';
  position: absolute;
  top: -38px;
  right: -38px;
  width: 100px;
  height: 100px;
  border-radius: 0 0 0 80px;
  background: rgba(255, 255, 255, .34);
}
.plan-quick-note .plan-inbox-copy { margin: 24px 0 19px; }
.plan-quick-note .plan-inbox-copy h2 { max-width: 9ch; margin-bottom: 10px; font-size: clamp(30px, 2.7vw, 40px); }
.plan-quick-note .plan-inbox-copy p { font-size: 12px; }
.plan-quick-note .plan-inbox-form { margin-top: auto; }
.plan-quick-note .planner-error { margin: 5px 9px 0; }
.plan-task-card {
  overflow: hidden;
  border: 1px solid rgba(21,21,21,.08);
  border-radius: 20px;
  background: var(--ivory);
  transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}
.plan-task-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(61,47,25,.08); }
.plan-task-card .plan-row { border: 0; border-radius: 0; background: transparent; }
.plan-task-card .plan-row:hover { transform: none; box-shadow: none; }
.plan-row { grid-template-columns: minmax(0, 1fr) minmax(120px, 32%); align-items: center; padding: 17px 17px 17px 22px; background: var(--ivory); }
.plan-row .planner-item-meta,
.plan-row > b { grid-column: 1; }
.plan-progress { grid-column: 2; grid-row: 1 / span 2; position: relative; height: 13px; overflow: visible; border-radius: 999px; background: #e9e0d3; }
.plan-progress i { display: block; height: 100%; border-radius: inherit; background: var(--planner-tone); transition: width 660ms var(--ease-out); }
.plan-progress em { position: absolute; right: 0; bottom: 17px; font-style: normal; font-size: 10px; font-weight: 900; }
.plan-subtasks { display: grid; gap: 4px; padding: 0 17px 15px 22px; }
.plan-subtask-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: background 220ms ease, opacity 220ms ease;
}
.plan-subtask-row:hover { background: white; }
.plan-subtask-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.plan-subtask-row.is-done { opacity: .55; }
.plan-subtask-row.is-done span { text-decoration: line-through; }
.plan-subtasks-empty { width: fit-content; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; }
.plan-task-error { min-height: 0; margin: 2px 0 0; color: #b34e45; font-size: 11px; }
.matrix-section { margin-top: 52px; }
.matrix-head { margin-bottom: 20px; }
.matrix-head h2 { margin: 8px 0 10px; font-size: clamp(34px, 4vw, 52px); }
.matrix-head p { max-width: 64ch; margin: 0; color: var(--muted); }
.matrix-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.matrix-card { min-height: 265px; display: flex; flex-direction: column; padding: 23px; border: 1px solid rgba(21,21,21,.08); border-radius: 27px; }
.matrix-card.tone-coral { background: #f8d8d1; }
.matrix-card.tone-yellow { background: #f8e7a5; }
.matrix-card.tone-blue { background: #d9e9f8; }
.matrix-card.tone-lavender { background: #e7dffa; }
.matrix-card-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.matrix-card-head b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.7); letter-spacing: 0; }
.matrix-card h3 { margin: 27px 0 5px; font-size: 24px; }
.matrix-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.matrix-task-list { display: grid; gap: 6px; margin-top: auto; padding-top: 20px; }
.matrix-task-list button { width: 100%; overflow: hidden; padding: 9px 11px; border: 0; border-radius: 11px; background: rgba(255,255,255,.66); color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.matrix-empty,
.matrix-task-list small { color: var(--muted); font-size: 10px; }
.planner-modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 18px; }
.planner-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(21,21,21,.42); backdrop-filter: blur(12px); }
.planner-form {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(21,21,21,.22);
  animation: onboarding-arrive 520ms var(--ease-out) both;
}
.planner-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 30px 34px 0; }
.planner-form-head h2 { margin: 8px 0 24px; font-size: clamp(38px, 5vw, 58px); }
.planner-form-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); gap: 16px; padding: 0 34px 22px; }
.planner-form-layout.is-single { grid-template-columns: minmax(0, 1fr); }
.planner-form-layout.is-single .planner-form-main { width: 100%; max-width: 760px; margin: 0 auto; }
.planner-form-main { padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: #fffdf9; }
.planner-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.planner-field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 900; }
.planner-field-wide { grid-column: 1 / -1; }
.planner-field input,
.planner-field select,
.planner-field textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 17px; outline: 0; background: white; color: var(--ink); resize: vertical; transition: border 220ms ease, box-shadow 220ms ease; }
.planner-field input:focus,
.planner-field select:focus,
.planner-field textarea:focus { border-color: rgba(21,21,21,.42); box-shadow: 0 0 0 4px rgba(247,220,131,.38); }
.planner-notes-field textarea { min-height: 155px; background: linear-gradient(white 31px, #eee7dc 32px); background-size: 100% 32px; line-height: 32px; }
.planner-field input[type="range"] { padding: 4px 0; accent-color: var(--ink); }
.planner-workbench { display: grid; align-content: start; gap: 14px; padding: 23px; border-radius: 28px; background: #e9e0ff; }
.planner-performance-panel { position: relative; overflow: hidden; display: grid; align-content: start; gap: 14px; padding: 24px; border-radius: 28px; background: linear-gradient(145deg, #f8df97 0%, #f8d6aa 52%, #f5b8b4 100%); }
.planner-performance-panel::before { content: ""; position: absolute; width: 220px; height: 190px; top: -92px; right: -30px; border-radius: 0 0 48% 48%; background: #f47d67; transform: rotate(7deg); opacity: .9; }
.planner-performance-panel::after { content: ""; position: absolute; width: 220px; height: 270px; top: 42px; right: -36px; background: linear-gradient(160deg, rgba(255,255,255,.52), rgba(255,255,255,0) 64%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); opacity: .55; }
.planner-performance-panel > * { position: relative; z-index: 1; }
.planner-performance-kicker { color: #7b5b50; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.planner-performance-panel h3 { max-width: 300px; margin: 4px 0 0; font-family: var(--display); font-size: clamp(28px, 3.5vw, 42px); line-height: .98; }
.planner-performance-panel > p { max-width: 340px; margin: 0 0 8px; color: #765f56; font-size: 12px; line-height: 1.45; }
.planner-performance-field { display: grid; gap: 7px; color: #5f4f48; font-size: 11px; font-weight: 900; }
.planner-performance-field input,
.planner-performance-field textarea { width: 100%; padding: 15px 16px; border: 1px solid rgba(21,21,21,.14); border-radius: 17px; outline: 0; background: rgba(255,253,248,.88); color: var(--ink); resize: vertical; transition: border 220ms ease, box-shadow 220ms ease, background 220ms ease; }
.planner-performance-field input:focus,
.planner-performance-field textarea:focus { border-color: rgba(21,21,21,.45); background: white; box-shadow: 0 0 0 4px rgba(255,255,255,.38); }
.planner-performance-field small { color: #765f56; font-size: 9px; line-height: 1.4; }
.planner-performance-cast textarea { min-height: 190px; line-height: 1.5; }
.planner-workbench-kicker { color: #6d6380; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.planner-priority-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.planner-priority-section legend { padding: 0; font-family: var(--display); font-size: 25px; font-weight: 900; }
.planner-priority-section > p { margin: 6px 0 14px; color: #6d6380; font-size: 11px; }
.planner-priority-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.priority-option { cursor: pointer; }
.priority-option input { position: absolute; opacity: 0; pointer-events: none; }
.priority-option > span { min-height: 116px; display: flex; flex-direction: column; padding: 14px; border: 1px solid rgba(21,21,21,.1); border-radius: 18px; background: rgba(255,255,255,.64); transition: transform 260ms var(--ease-out), background 260ms ease, box-shadow 260ms ease; }
.priority-option i { margin-bottom: 15px; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .12em; }
.priority-option b { font-size: 15px; }
.priority-option small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.priority-option:hover > span { transform: translateY(-2px); background: white; }
.priority-important input:checked + span { background: #f7dc83; box-shadow: inset 0 0 0 2px var(--ink); }
.priority-urgent input:checked + span { background: #f3a5cc; box-shadow: inset 0 0 0 2px var(--ink); }
.planner-task-section {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(21,21,21,.09);
  border-radius: 20px;
  background: rgba(255,253,248,.82);
}
.planner-task-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.planner-task-head span { font-size: 12px; font-weight: 900; }
.planner-task-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.planner-task-head strong { font-family: var(--display); font-size: 34px; line-height: 1; }
.planner-subtasks-editor { display: grid; gap: 7px; }
.planner-subtask-edit-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(21,21,21,.1);
  border-radius: 14px;
  background: white;
}
.planner-subtask-edit-row > input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.planner-subtask-edit-row > input[type="text"] { min-width: 0; padding: 8px 4px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.planner-subtask-edit-row.is-done > input[type="text"] { color: var(--muted); text-decoration: line-through; }
.planner-subtask-remove { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.planner-subtask-remove:hover { background: var(--pink); color: var(--ink); }
.planner-subtask-add { width: fit-content; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 900; cursor: pointer; }
.planner-error { min-height: 20px; margin: 0 34px; color: #b34e45; font-size: 12px; }
.planner-form-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 0 34px 28px; }
.planner-form button:disabled { opacity: .45; cursor: wait; }
body.modal-open { overflow: hidden; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.profile-card { padding: 28px; background: var(--paper); }
.hero-profile-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; background: var(--lavender); }
.profile-avatar { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-family: var(--display); font-size: 38px; }
.profile-card h2 { margin: 6px 0 7px; font-size: 38px; }
.profile-card h3 { margin: 18px 0 9px; font-size: 25px; }
.profile-card p { color: var(--muted); font-size: 13px; }
.action-profile-card { min-height: 290px; display: flex; flex-direction: column; }
.action-profile-card .pill-button { margin-top: auto; }
.profile-action-icon { position: relative; display: block; width: 58px; height: 58px; border-radius: 20px; background: var(--yellow); }
.profile-action-icon::before,
.profile-action-icon::after { content: ''; position: absolute; }
.qr-icon::before { inset: 15px; border: 4px dashed var(--ink); }
.theater-icon { background: var(--green); }
.theater-icon::before { left: 14px; right: 14px; bottom: 13px; height: 23px; border: 4px solid var(--ink); border-top: 0; }
.theater-icon::after { left: 11px; top: 13px; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 17px solid var(--ink); }
.exit-icon { background: var(--pink); }
.exit-icon::before { left: 15px; top: 13px; width: 25px; height: 31px; border: 4px solid var(--ink); border-right: 0; }
.exit-icon::after { right: 10px; top: 27px; width: 24px; border-top: 4px solid var(--ink); }

.chat-active .workspace-content { padding: 0; overflow: hidden; }
.chat-shell { height: 100%; max-width: none; display: flex; flex-direction: column; background: var(--ivory); }
.chat-shell.scenario-mode .chat-messages,
.chat-shell.scenario-mode .chat-input-row,
.chat-shell.scenario-mode .chat-preview,
.chat-shell.scenario-mode .chat-guidance { display: none; }
.chat-header { min-height: 68px; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.92); }
.chat-header-title { flex: 1; display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 18px; }
.chat-mode-switch {
  padding: 9px 15px;
  border: 1px solid rgba(21,21,21,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.chat-mode-switch:hover { background: var(--paper); box-shadow: 0 8px 20px rgba(61,47,25,.08); }
.chat-messages { min-height: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 28px clamp(20px, 7vw, 90px); background: radial-gradient(circle at 90% 10%, rgba(195,177,239,.18), transparent 34%); }
.scenario-panel {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: clamp(30px, 5vw, 74px) clamp(22px, 7vw, 110px) 60px;
  background:
    radial-gradient(circle at 92% 8%, rgba(242,155,199,.22), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(245,215,93,.20), transparent 30%),
    var(--ivory);
}
.scenario-panel > * { width: min(100%, 1040px); margin-left: auto; margin-right: auto; }
.scenario-panel-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.scenario-panel h2 { max-width: 720px; margin: 5px 0 0; font-size: clamp(34px, 4vw, 58px); line-height: .98; letter-spacing: -.045em; }
.scenario-progress { display: grid; gap: 8px; margin-bottom: 28px; }
.scenario-progress-bar { height: 6px; border-radius: 999px; background: rgba(21, 21, 21, 0.08); overflow: hidden; }
.scenario-progress-bar span { display: block; height: 100%; width: 0%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--pink)); transition: width 280ms var(--ease-out); }
.scenario-progress-label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.scenario-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.scenario-cards--start { margin-bottom: 16px; }
.scenario-cards--start .scenario-card {
  min-height: 230px;
  padding: 22px;
}
.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(21,21,21,.09);
  border-radius: 30px;
  background: #f8d6e7;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}
.scenario-card:nth-child(2) { background: #f8df79; }
.scenario-card:nth-child(3) { background: #cfe0ad; }
.scenario-card::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  right: -42px;
  top: -46px;
  border: 1px solid rgba(21,21,21,.11);
  border-radius: 50%;
}
.scenario-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(61,47,25,.12); }
.scenario-card.active { border-color: rgba(21,21,21,.22); box-shadow: 0 10px 24px rgba(21, 21, 21, 0.08); }
.scenario-card-number { position: relative; z-index: 1; color: rgba(21,21,21,.52); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.scenario-card b { position: relative; z-index: 1; display: block; margin: auto 0 10px; font-family: var(--display); font-size: 25px; line-height: 1; letter-spacing: -.035em; }
.scenario-card p { position: relative; z-index: 1; min-height: 58px; margin: 0; color: rgba(21,21,21,.66); font-size: 13px; line-height: 1.45; }
.scenario-card-action { position: relative; z-index: 1; margin-top: 18px; font-size: 12px; font-weight: 900; }
.scenario-intro { max-width: 690px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.scenario-collection { display: grid; gap: 14px; margin-bottom: 14px; }
.scenario-replies { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.scenario-reply {
  min-height: 58px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.scenario-reply:hover { transform: translateY(-2px); border-color: var(--ink); background: #fff; }
.scenario-text-answer { margin-top: 18px; padding: 8px 0; border: 0; background: transparent; cursor: pointer; color: var(--muted); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.scenario-cancel { margin-top: 16px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.scenario-cancel:hover { background: transparent; color: var(--ink); box-shadow: none; }
.scenario-custom textarea { width: 100%; min-height: 116px; margin-top: 18px; font: inherit; resize: vertical; }
.scenario-step {
  padding: clamp(24px, 4vw, 46px);
  border-radius: 34px;
  border: 1px solid rgba(21,21,21,.09);
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 50px rgba(61,47,25,.07);
}
.scenario-step-chip { margin-bottom: 16px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.scenario-step label { display: block; max-width: 760px; margin-bottom: 8px; color: var(--ink); font-family: var(--display); font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.08; letter-spacing: -.035em; }
.scenario-step input,
.scenario-step textarea {
  width: 100%;
  padding: 15px 17px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.scenario-review { padding: clamp(24px, 4vw, 42px); border-radius: 34px; border: 1px solid rgba(21,21,21,.1); background: rgba(245,215,93,.22); }
.scenario-review h3 { margin-bottom: 18px; font-size: 30px; }
.scenario-review-list { display: grid; gap: 0; }
.scenario-review-row { display: grid; grid-template-columns: minmax(130px, .35fr) 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(21,21,21,.1); }
.scenario-review-row strong { font-size: 12px; }
.scenario-review-row span { white-space: pre-wrap; }
.scenario-result h3,
.scenario-generating h3 { margin: 0 0 18px; font-size: clamp(28px, 3vw, 42px); }
.scenario-result-copy { max-width: 820px; white-space: pre-wrap; font-size: 15px; line-height: 1.65; }
.scenario-generating { min-height: 300px; display: grid; place-content: center; text-align: center; }
.scenario-generating-mark { color: var(--pink); font-family: var(--display); font-size: 50px; letter-spacing: .16em; animation: pulse-hover 1.4s ease-in-out infinite; }
.scenario-generating p { max-width: 520px; margin: 0; color: var(--muted); }
.scenario-review-actions,
.scenario-next-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.scenario-next-actions .chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 9px 13px;
}
.msg { max-width: min(80%, 720px); padding: 14px 17px; border-radius: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--ink); color: white; }
.msg.bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--paper); box-shadow: 0 12px 28px rgba(61,47,25,.06); }
.msg.error { align-self: center; color: #a8433c; }
.msg.thinking { color: var(--muted); font-style: italic; }
.msg-photo { display: block; max-width: 100%; margin-bottom: 8px; border-radius: 14px; }
.chat-guidance { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px clamp(20px, 7vw, 90px) 0; }
.guidance-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 12px; }
.chat-input-row { display: flex; align-items: flex-end; gap: 7px; padding: 12px clamp(18px, 7vw, 88px) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.chat-input-row textarea { min-height: 46px; max-height: 120px; flex: 1; resize: none; padding: 12px 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--ivory); color: var(--ink); }
.send-btn { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--pink); cursor: pointer; font-size: 18px; }
.send-btn:disabled { opacity: .45; }
.chat-compose-meta { display: none; }
.chat-preview { display: flex; align-items: center; gap: 10px; padding: 8px clamp(20px, 7vw, 90px); border-top: 1px solid var(--line); background: var(--paper); }
.chat-preview img { max-height: 58px; border-radius: 10px; }

.mobile-nav { display: none; }

.reveal { animation: rise-in 760ms var(--ease-out) both; }
.reveal-delay-1 { animation-delay: 90ms; }
.reveal-delay-2 { animation-delay: 170ms; }
.reveal-delay-3 { animation-delay: 250ms; }
.view-enter .agent-preview-card,
.view-enter .studio-agent-card {
  animation: card-cascade 760ms calc(100ms + var(--card-index, 0) * 70ms) var(--ease-out) both;
}
@keyframes scene-enter {
  from { opacity: 0; transform: translateY(16px) scale(.992); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-cascade {
  from { opacity: 0; transform: translateY(30px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spirit-breathe {
  0%, 100% { transform: rotate(6deg) translateY(0) scale(1); }
  45% { transform: rotate(3deg) translateY(-4px) scale(1.018, .986); }
  55% { transform: rotate(4deg) translateY(-3px) scale(.992, 1.015); }
}
@keyframes spirit-blink { 0%, 42%, 48%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.12); } }
@keyframes pulse-arrive { from { opacity: 0; transform: rotate(-80deg) scale(.72); } to { opacity: 1; transform: rotate(-35deg) scale(1); } }
@keyframes pulse-hover { 0%, 100% { filter: drop-shadow(0 12px 20px rgba(95,67,28,.05)); } 50% { filter: drop-shadow(0 20px 28px rgba(95,67,28,.13)); } }
@keyframes spotlight-one { from { transform: rotate(-21deg) translateX(-8px); opacity: .72; } to { transform: rotate(-12deg) translateX(12px); opacity: 1; } }
@keyframes spotlight-two { from { transform: rotate(21deg) translateX(7px); opacity: .75; } to { transform: rotate(13deg) translateX(-12px); opacity: 1; } }
@keyframes stage-spirit { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* Personal agent menu and Studio controls */
.role-empty {
  padding: 14px;
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
}
.role-empty button {
  width: max-content;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 800;
}
.role-row { position: relative; display: flex; align-items: center; min-width: 0; }
.role-row .role-item { min-width: 0; padding-right: 50px; }
.role-row .role-item > span:last-child { min-width: 0; }
.role-row-actions {
  position: absolute;
  right: 7px;
  display: flex;
  gap: 1px;
  opacity: .58;
  transition: opacity 180ms ease;
}
.role-row:hover .role-row-actions,
.role-row:focus-within .role-row-actions { opacity: 1; }
.role-pin,
.role-remove {
  width: 23px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}
.role-pin:hover,
.role-remove:hover { background: white; color: var(--ink); }
.role-pin.active { color: #a67d00; }
.studio-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.studio-intro > div:first-child { max-width: 760px; }
.studio-team-status {
  flex: none;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.agent-manage { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.agent-menu-toggle,
.agent-pin-toggle {
  padding: 9px 13px;
  border: 1px solid rgba(21,21,21,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.agent-menu-toggle.active,
.agent-pin-toggle.active { background: var(--ink); color: white; }
.agent-pin-toggle:disabled { cursor: not-allowed; opacity: .42; }
.profile-tour-link { margin-top: 8px; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* First-run onboarding */
.onboarding {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}
.onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 25, 19, .34);
  backdrop-filter: blur(12px);
  animation: onboarding-fade 420ms ease both;
}
.onboarding-card {
  position: relative;
  width: min(820px, 100%);
  min-height: 500px;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  grid-template-areas:
    "stage copy"
    "dots actions";
  gap: 22px 34px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(233,223,208,.9);
  border-radius: 40px;
  background: rgba(255,253,248,.98);
  box-shadow: 0 34px 100px rgba(40,31,20,.2);
  animation: onboarding-arrive 620ms var(--ease-out) both;
}
.onboarding-stage {
  grid-area: stage;
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 120px 120px 28px 28px;
  background: var(--ink);
}
.onboarding-stage::before,
.onboarding-stage::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  background: var(--coral);
}
.onboarding-stage::before { left: 0; border-radius: 0 0 100% 0; }
.onboarding-stage::after { right: 0; border-radius: 0 0 0 100%; }
.onboarding-stage > span {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 4;
  color: white;
  font-family: var(--display);
  font-size: 30px;
}
.onboarding-stage > i {
  position: absolute;
  z-index: 2;
}
.onboarding-stage > i:first-of-type {
  top: -28px;
  left: 50%;
  width: 145px;
  height: 300px;
  background: linear-gradient(rgba(255,255,255,.58), transparent);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}
.onboarding-stage > i:last-of-type {
  left: 50%;
  bottom: 48px;
  z-index: 3;
  width: 92px;
  height: 82px;
  border-radius: 50% 50% 40% 40%;
  background: var(--yellow);
  transform: translateX(-50%);
  box-shadow: 0 14px 25px rgba(0,0,0,.16);
}
.onboarding-stage > i:last-of-type::before,
.onboarding-stage > i:last-of-type::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 10px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}
.onboarding-stage > i:last-of-type::before { left: 27px; }
.onboarding-stage > i:last-of-type::after { right: 27px; }
.onboarding-copy { grid-area: copy; align-self: center; min-width: 0; }
.onboarding-copy h2 { max-width: 10ch; margin: 12px 0 16px; font-size: clamp(38px, 5vw, 64px); }
.onboarding-copy > p { max-width: 48ch; color: var(--muted); font-size: 17px; }
.onboarding-fields { display: grid; gap: 12px; margin-top: 24px; }
.onboarding-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.onboarding-field input,
.onboarding-field select,
.onboarding-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  resize: vertical;
}
.onboarding-error { min-height: 20px; margin-top: 10px; color: #b34e45; font-size: 13px; }
.onboarding-dots { grid-area: dots; align-self: center; display: flex; gap: 5px; padding-left: 4px; }
.onboarding-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ddd5c9; transition: width 240ms ease, background 240ms ease; }
.onboarding-dots i.active { width: 30px; border-radius: 99px; background: var(--ink); }
.onboarding-actions { grid-area: actions; display: flex; justify-content: flex-end; gap: 9px; }
.onboarding-actions button:disabled { opacity: .38; cursor: not-allowed; }
.onboarding.tour-mode { place-items: end; padding: 28px; pointer-events: none; }
.onboarding.tour-mode .onboarding-backdrop { display: none; }
.onboarding.tour-mode .onboarding-card {
  width: min(480px, calc(100vw - 56px));
  min-height: 0;
  grid-template-columns: 1fr;
  grid-template-areas: "copy" "dots" "actions";
  gap: 18px;
  margin: 0;
  padding: 24px;
  border-color: rgba(21,21,21,.12);
  border-radius: 30px;
  pointer-events: auto;
}
.onboarding.tour-mode .onboarding-stage { display: none; }
.onboarding.tour-mode .onboarding-copy h2 { max-width: 14ch; font-size: clamp(30px, 3.2vw, 40px); }
.onboarding.tour-mode .onboarding-dots { padding: 0; }
.tour-highlight { outline: 4px solid var(--pink); outline-offset: 7px; border-radius: 18px; }
.ui-tooltip {
  position: fixed;
  z-index: 160;
  max-width: 220px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 35px rgba(21,21,21,.2);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
@keyframes onboarding-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes onboarding-arrive { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.msg.handoff {
  align-self: flex-start;
  max-width: min(78%, 720px);
  border: 1px solid #ddcda9;
  background: #fff1b8;
  color: var(--ink);
}

@media (max-width: 1100px) {
  .sidebar { width: 250px; flex-basis: 250px; }
  .dashboard-hero-grid { grid-template-columns: 1fr 1.2fr; }
  .agent-preview-grid,
  .studio-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coming-card { grid-template-columns: 75px 1fr auto; padding: 20px; }
  .coming-icon,
  .progress-mini { width: 68px; height: 68px; }
  .coming-icon::before { left: 14px; top: 19px; width: 39px; height: 31px; }
.coming-icon::after { left: 14px; top: 29px; width: 43px; }
  .plans-overview { grid-template-columns: minmax(165px, .45fr) minmax(360px, 1.2fr); }
  .plan-quick-note { grid-column: 1 / -1; min-height: 245px; }
  .plan-quick-note .plan-inbox-copy h2 { max-width: none; }
}

.dashboard-task-list { display: grid; gap: 7px; margin-top: 13px; }
.dashboard-task-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(21,21,21,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.48);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 260ms var(--ease-out), background 260ms ease;
}
.dashboard-task-item:hover { transform: translateX(3px); background: rgba(255,255,255,.78); }
.dashboard-task-item b { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-task-item strong { justify-self: end; font-size: 11px; }
.dashboard-task-progress { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(21,21,21,.1); }
.dashboard-task-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width 620ms var(--ease-out); }

.planner-draft-card {
  align-self: flex-start;
  width: min(560px, 86%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  margin-top: -2px;
  padding: 18px;
  border: 1px solid rgba(21,21,21,.1);
  border-radius: 22px;
  background: #f7dc83;
  box-shadow: 0 14px 34px rgba(61,47,25,.08);
}
.planner-draft-card .card-kicker { grid-column: 1 / -1; }
.planner-draft-copy { min-width: 0; }
.planner-draft-copy b { display: block; overflow-wrap: anywhere; font-size: 16px; }
.planner-draft-copy p { margin: 5px 0 0; color: #695e43; font-size: 11px; }
.planner-draft-card button { align-self: end; padding: 11px 15px; border: 0; border-radius: 999px; background: var(--ink); color: white; cursor: pointer; font-weight: 900; }

@media (max-width: 859px) {
  .auth-screen { padding: max(18px, env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); }
  .auth-card { margin: auto 0; padding: 28px 20px; border-radius: 30px; }
  .auth-row { flex-direction: column-reverse; }
  .button-list { grid-template-columns: 1fr; }
  #screen-theater { padding-top: max(28px, env(safe-area-inset-top)); }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(88vw, 350px);
    padding-top: max(20px, env(safe-area-inset-top));
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 20px 0 50px rgba(21,21,21,.18);
  }
  .workspace {
    width: 100vw;
    max-width: 100vw;
    flex: 0 0 100vw;
    overflow-x: hidden;
  }
  .app-screen.menu-open .sidebar { transform: translateX(0); }
  .app-screen::before { content: ''; position: fixed; inset: 0; z-index: 50; background: rgba(21,21,21,.28); opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
  .app-screen.menu-open::before { opacity: 1; pointer-events: auto; }
  .sidebar-close,
  .sidebar-open { display: inline-flex; }
  .sidebar .primary-nav { display: none; }
  .sidebar .role-section { margin-top: 24px; }

  .workspace-header { min-height: 68px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
  .workspace-eyebrow { display: none; }
  .workspace-title { font-size: 20px; }
  .profile-orb { width: 36px; height: 36px; }

  .workspace-content { width: 100%; max-width: 100vw; overflow-x: hidden; padding: 24px 16px calc(112px + env(safe-area-inset-bottom)); }
  .app-view,
  .dashboard-hero-grid,
  .brief-card,
  .brief-topline > div,
  .brief-note > div { min-width: 0; max-width: 100%; }
  .workspace-actions { flex: none; }
  .welcome-row { align-items: flex-end; }
  .welcome-row h1,
  .page-intro h1 { font-size: clamp(39px, 13vw, 58px); }
  .round-action { width: 52px; height: 52px; font-size: 28px; }
  .dashboard-hero-grid,
  .dashboard-lower-grid,
  .progress-layout,
  .calendar-workspace,
  .plans-overview,
  .profile-grid,
  .feature-empty { grid-template-columns: 1fr; }
  .dashboard-hero-grid { margin-top: 24px; }
  .pulse-card,
  .brief-card { border-radius: 30px; }
  .brief-card { order: -1; }
  .pulse-visual { width: 190px; height: 190px; }
  .agent-preview-grid,
  .studio-role-grid { grid-template-columns: 1fr; }
  .agent-preview-card { min-height: 220px; }
  .section-heading { margin-top: 34px; }
  .coming-card { grid-template-columns: 70px 1fr; min-height: 175px; }
  .coming-card .card-arrow { position: absolute; top: 20px; right: 20px; }
  .studio-agent-card { min-height: 370px; }
  .feature-empty { min-height: auto; padding: 22px; gap: 26px; }
  .stage-illustration { min-height: 280px; }
  .planner-page-head { align-items: flex-start; flex-direction: column; }
  .calendar-stage-banner { grid-template-columns: 1fr; padding: 22px; border-radius: 30px; }
  .compact-stage { min-height: 240px; }
  .calendar-board { padding: 14px; border-radius: 26px; }
  .calendar-day { min-height: 76px; padding: 5px; }
  .calendar-chip { height: 8px; padding: 0; font-size: 0; }
  .calendar-weekdays { font-size: 8px; }
  .calendar-agenda { padding: 22px; border-radius: 26px; }
  .plans-overview { gap: 12px; }
  .plan-inbox-card,
  .matrix-grid { grid-template-columns: 1fr; }
  .plan-inbox-note,
  .plan-inbox-stack { min-height: 0; border-radius: 26px; }
  .plan-inbox-note,
  .plan-inbox-stack { padding: 23px; }
  .plan-inbox-copy { margin: 28px 0 24px; }
  .matrix-card { min-height: 220px; }
  .plan-summary-card { min-height: 250px; padding: 26px; border-radius: 28px; }
  .plan-list-card { padding: 22px; border-radius: 28px; }
  .plan-quick-note { grid-column: auto; min-height: 280px; padding: 23px; border-radius: 28px; }
  .plan-mode-tabs { width: 100%; overflow-x: auto; }
  .plan-mode-tabs button { flex: none; }
  .plan-list-head { align-items: flex-start; flex-direction: column; }
  .plan-row { grid-template-columns: 1fr; gap: 8px; }
  .plan-progress { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .plan-subtasks { padding: 0 14px 14px; }
  .planner-modal { padding: 8px; }
  .planner-form { max-height: calc(100dvh - 16px); padding: 0; border-radius: 28px; }
  .planner-form-head { padding: 22px 18px 0; }
  .planner-form-head h2 { margin-bottom: 18px; font-size: 39px; }
  .planner-form-layout { grid-template-columns: 1fr; gap: 10px; padding: 0 12px 14px; }
  .planner-form-main,
  .planner-workbench,
  .planner-performance-panel { padding: 18px; border-radius: 22px; }
  .planner-form-grid { grid-template-columns: 1fr; }
  .planner-field-wide { grid-column: auto; }
  .planner-priority-options { grid-template-columns: 1fr 1fr; }
  .priority-option > span { min-height: 102px; }
  .planner-error { margin: 0 18px; }
  .planner-form-actions { grid-template-columns: 1fr 1fr; }
  .planner-form-actions { padding: 0 14px 18px; }
  .planner-form-actions > span { display: none; }
  .planner-form-actions .pill-button { padding-inline: 12px; }
  .planner-task-head { gap: 10px; }
  .planner-task-head strong { font-size: 28px; }
  .planner-draft-card { width: 94%; grid-template-columns: 1fr; }
  .planner-draft-card button { justify-self: start; }
  .progress-layout { gap: 12px; }
  .profile-grid { gap: 12px; }
  .hero-profile-card { grid-column: auto; align-items: flex-start; }
  .profile-avatar { width: 66px; height: 66px; }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    padding: 6px;
    border: 1px solid rgba(21,21,21,.1);
    border-radius: 22px;
    background: rgba(255,249,238,.94);
    box-shadow: 0 16px 38px rgba(48,40,28,.16);
    backdrop-filter: blur(18px);
  }
  .mobile-nav button { min-width: 0; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 3px 1px; border: 0; border-radius: 17px; background: none; color: #77736d; cursor: pointer; }
  .mobile-nav button.active { color: var(--ink); font-weight: 900; }
  .mobile-nav button.active:not(.mobile-main-action) { background: rgba(21,21,21,.055); }
  .mobile-nav-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; }
  .mobile-nav-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav small { max-width: 100%; overflow: hidden; font-size: 9px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav .mobile-main-action { color: var(--ink); }
  .mobile-nav .mobile-main-action .mobile-nav-icon { width: 39px; height: 39px; margin: -5px 0 -2px; background: var(--pink); box-shadow: inset 0 0 0 1px rgba(21,21,21,.06); }
  .mobile-nav .mobile-main-action .mobile-nav-icon svg { width: 22px; height: 22px; stroke-width: 1.9; }
  .mobile-nav .mobile-main-action.active .mobile-nav-icon { box-shadow: inset 0 0 0 2px var(--ink), 0 4px 12px rgba(245,169,207,.35); }

  .chat-active .workspace-header,
  .chat-active .mobile-nav { display: none; }
  .chat-active .workspace-content { height: 100dvh; }
  .chat-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .chat-header .icon-btn:nth-last-child(-n+3) { display: none; }
  .chat-messages { padding: 20px 14px; }
  .msg { max-width: 90%; font-size: 14px; }
  .chat-guidance { flex-wrap: nowrap; overflow-x: auto; padding: 9px 14px 0; }
  .guidance-chip { flex: none; }
  .chat-input-row { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .chat-preview { padding: 8px 14px; }
  .chat-mode-switch { padding: 8px 11px; font-size: 10px; }
  .scenario-panel { padding: 24px 14px 38px; }
  .scenario-panel-head { align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .scenario-panel h2 { font-size: 34px; }
  .scenario-panel-head .chat-mode-switch { flex: none; }
  .scenario-cards { grid-template-columns: 1fr; gap: 10px; }
  .scenario-cards--start .scenario-card { min-height: 180px; }
  .scenario-step { padding: 24px 20px; border-radius: 28px; }
  .scenario-step label { font-size: 29px; }
  .scenario-replies { grid-template-columns: 1fr; }
  .scenario-review-row { grid-template-columns: 1fr; gap: 5px; }

  .studio-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .studio-team-status { align-self: flex-start; }
  .onboarding { padding: 12px; place-items: center; }
  .onboarding-card {
    width: 100%;
    min-height: 0;
    max-height: calc(100dvh - 24px);
    grid-template-columns: 1fr;
    grid-template-areas: "stage" "copy" "dots" "actions";
    gap: 16px;
    padding: 16px;
    overflow-y: auto;
    border-radius: 28px;
  }
  .onboarding-stage { min-height: 150px; border-radius: 22px 22px 72px 72px; }
  .onboarding-stage::before,
  .onboarding-stage::after { height: 165px; }
  .onboarding-stage > i { bottom: 35px; }
  .onboarding-stage > i:last-of-type::after { top: 29px; }
  .onboarding-copy h2 { max-width: 12ch; margin: 8px 0 12px; font-size: 37px; }
  .onboarding-copy > p { font-size: 14px; }
  .onboarding-fields { margin-top: 16px; }
  .onboarding-actions { flex-wrap: wrap; }
  .onboarding-actions .pill-button { flex: 1; min-width: 90px; padding-inline: 14px; }
  .onboarding.tour-mode { place-items: end center; }
  .onboarding.tour-mode .onboarding-card { width: 100%; margin: 0; padding: 22px; }
  .onboarding.tour-mode .onboarding-copy h2 { font-size: 36px; }
}

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