/* ============================================================
   Design tokens — Founder Readiness Check app shell
   (see design_handoff_idea_pipeline/README.md "Design Tokens")
   ============================================================ */
:root {
  --canvas: #EDF1F4;
  --sidebar-bg: #E7EEF1;
  --card: #FFFFFF;
  --hairline: #D9E2E7;
  --hairline-2: #DCE4E9;
  --hairline-3: #D9E3E8;
  --hairline-4: #DCE6EA;
  --ink: #171F24;
  --muted-1: #4A463B;
  --muted-2: #63737B;
  --muted-3: #7C8B93;
  --muted-4: #A6A091;

  --brand: #B35C00;         /* burnt orange — primary */
  --brand-hover: #8F4900;
  --teal: #0E7A96;          /* secondary / status */
  --lavender: #8B4485;      /* viability accent only */
  --chip-bg: #E3EEF2;
  --chip-bg-hover: #DCE6EA;

  --warm-bg: #FFF1E1;
  --warm-border: #FBDDB8;
  --warm-chip: #FCE0BB;
  --warm-heading: #6E3E05;
  --warm-body: #7A5636;
  --warm-body-2: #4A5A62;
  --warm-accent-1: #C1660A;
  --warm-accent-2: #FC8A0F;

  /* Pillar colors */
  --des-fg: #B35C00; --des-bg: #FDEBD6; --des-border: #F6D9CE;
  --fea-fg: #0E7A96; --fea-bg: #DCF2F8; --fea-border: #D3EDF3;
  --via-fg: #8B4485; --via-bg: #F3E4F1; --via-border: #EADCE7;

  /* Readiness tiers — real product taxonomy (Idea/Validate/Build/Scale),
     kept on the same 4-stop low->high ramp the design used for its mockup tiers. */
  --tier-idea: #C1440C;
  --tier-validate: #DB7A0A;
  --tier-build: #0E7A96;
  --tier-scale: #0B5E73;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--canvas); color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #C7D3DA; border-radius: 9px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(20px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---- layout ---- */
.layout { display: flex; height: 100vh; overflow: hidden; }

/* ---- chat column ---- */
.chat-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; height: 100%; }

/* ---- header ---- */
.hdr { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 30px; border-bottom: 1px solid var(--hairline-2); flex: none; gap: 12px; }
.hdr-left { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(14,122,150,.14); margin-top: 7px; flex: none; }
.title-block { min-width: 0; }
.title { display: block; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.subhead { display: block; font-size: 13px; color: var(--muted-2); margin-top: 2px; line-height: 1.35; }
.hdr-right { display: flex; align-items: center; gap: 10px; flex: none; }
#stage { letter-spacing: .2em; font-size: 12px; font-weight: 600; color: var(--muted-3); white-space: nowrap; padding-top: 2px; }
#update { background: #fff; color: var(--teal); border: 1px solid var(--teal); padding: 7px 14px; border-radius: 999px; font: 600 13px 'Hanken Grotesk', system-ui; cursor: pointer; }
#update[hidden] { display: none; }
#update:hover { background: var(--chip-bg); }

/* ---- mobile pills row ---- */
#mobilePills { display: none; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--hairline-3); flex: none; }
#mobilePills button {
  flex: 1; border: 1px solid #D3E0E6; background: #fff; color: #1E3A44;
  border-radius: 999px; padding: 10px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
#mobilePills button:hover { background: var(--chip-bg); }

/* ---- message log ---- */
#scroll-area { flex: 1 1 auto; overflow-y: auto; padding: 28px 30px 8px; }
#log { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; }

.msg { margin-bottom: 16px; display: flex; animation: fadeUp .3s ease; }
.msg.bot { justify-content: flex-start; }
.msg.me  { justify-content: flex-end; }
.msg.bot .bubble {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 5px 18px 18px 18px;
  padding: 15px 19px; max-width: 80%;
  line-height: 1.5; font-size: 17px;
  box-shadow: 0 1px 2px rgba(20,40,50,.05);
  white-space: pre-wrap;
}
.msg.me .bubble {
  background: var(--brand); color: #EDF1F4;
  border-radius: 18px 18px 5px 18px;
  padding: 13px 19px; max-width: 80%;
  line-height: 1.45; font-size: 17px;
  white-space: pre-wrap;
}

/* ---- typing indicator ---- */
#typing { display: none; justify-content: flex-start; margin-bottom: 16px; }
#typing.show { display: flex; }
.typing-bubble {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 5px 18px 18px 18px;
  padding: 17px 20px; display: flex; gap: 6px; align-items: center;
}
.typing-bubble span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: block;
  animation: blink 1.2s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: .2s; }
.typing-bubble span:nth-child(3) { animation-delay: .4s; }

/* ---- scorecard ready card ---- */
#readyCard {
  display: none;
  background: #fff; border: 1px solid #CDE6EC; border-left: 4px solid var(--teal);
  border-radius: 4px 14px 14px 14px;
  padding: 22px 24px; margin: 6px 0 18px;
  box-shadow: 0 4px 18px rgba(14,122,150,.10);
  animation: fadeUp .4s ease; max-width: 82%;
}
#readyCard.show { display: block; }
#readyCard .rc-label { display: flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .08em; margin-bottom: 8px; }
#readyCard h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
#readyCard p { color: var(--muted-2); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
#readyCard .rc-btns { display: flex; gap: 10px; flex-wrap: wrap; }
#readyCard .rc-btns button {
  border-radius: 10px; padding: 12px 20px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer;
}
#readyCard .btn-primary { background: var(--brand); color: #fff; border: none; }
#readyCard .btn-primary:hover { background: var(--brand-hover); }
#readyCard .btn-ghost { background: transparent; color: #1E3A44; border: 1px solid #CBD8DE; }
#readyCard .btn-ghost:hover { background: var(--chip-bg); }

/* ---- chips ---- */
#chips { max-width: 740px; margin: 0 auto; width: 100%; padding: 0 30px 4px; display: none; gap: 8px; flex-wrap: wrap; }
#chips.show { display: flex; }
#chips button {
  background: var(--chip-bg); border: 1px solid #D3E0E6; color: #2B4650;
  border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 500;
  font-family: inherit; cursor: pointer;
}
#chips button:hover { background: var(--chip-bg-hover); }

/* ---- files tray ---- */
#files { max-width: 740px; margin: 4px auto 0; width: 100%; padding: 0 30px; display: none; }
#files.show { display: block; }
#files .files-inner { border: 1px solid var(--hairline); background: #fff; border-radius: 14px; padding: 12px 16px; }
#files .files-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#files .eyebrow { font: 700 12px 'Hanken Grotesk'; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-3); }
#all { margin-left: auto; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--brand); color: #fff; border: none; cursor: pointer; font-family: inherit; font-weight: 600; }
#all:hover { background: var(--brand-hover); }
#all[hidden] { display: none; }
#fileList { list-style: none; display: flex; flex-direction: column; gap: 6px; }
#fileList li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
#fileList a { color: var(--brand); text-decoration: none; font-weight: 600; }
#fileList a:hover { text-decoration: underline; }
#fileList .ext { font-size: 11px; color: var(--muted-3); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 6px; text-transform: uppercase; }

/* ---- re-score panel ---- */
#panel { max-width: 740px; margin: 10px auto 0; width: 100%; padding: 0 30px; display: none; }
#panel.show { display: block; }
#panel .panel-inner { border: 1px solid var(--hairline); background: #fff; border-radius: 14px; padding: 18px 20px; }
#panel h4 { font-size: 15px; margin-bottom: 4px; }
#panel p { font-size: 13px; color: var(--muted-2); margin-bottom: 12px; line-height: 1.5; }
#panel textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 1.5px solid #C7D3DA; border-radius: 10px; font: 15px 'Hanken Grotesk', system-ui; resize: vertical; color: var(--ink); }
#panel textarea:focus { outline: none; border-color: var(--teal); }
.row { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.ghost { background: transparent; color: var(--muted-3); border: 1px solid var(--hairline); border-radius: 10px; padding: 9px 16px; font: 600 14px 'Hanken Grotesk', system-ui; cursor: pointer; }
.ghost:hover { background: var(--canvas); }
#submitEvidence { background: var(--brand); color: #fff; border: none; border-radius: 10px; padding: 9px 16px; font: 600 14px 'Hanken Grotesk', system-ui; cursor: pointer; }
#submitEvidence:hover { background: var(--brand-hover); }

/* ---- upload notice ---- */
#uploadNotice { display: none; max-width: 740px; margin: 6px auto 0; width: 100%; padding: 0 30px; }
#uploadNotice.show { display: block; }
#uploadNotice .notice-inner {
  background: #E9F4F7; border: 1px solid #C7E4EC; border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
#uploadNotice .uname { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#uploadNotice .uclear { background: transparent; border: 0; color: var(--muted-3); font-size: 18px; cursor: pointer; padding: 0; line-height: 1; }

/* ---- input bar ---- */
.input-bar { flex: none; padding: 14px 30px 18px; }
.input-row { max-width: 740px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
#uploadBtn {
  flex: none; width: 46px; height: 46px; border: 1px solid #D3E0E6; background: #fff;
  border-radius: 12px; cursor: pointer; color: var(--muted-3); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
#uploadBtn:hover { background: var(--chip-bg); }
#uploadBtn[hidden] { display: none; }
#i {
  flex: 1; resize: none; border: 1.5px solid #C7D3DA; background: #fff;
  border-radius: 13px; padding: 13px 16px; font-size: 16px;
  font-family: 'Hanken Grotesk', system-ui; line-height: 1.4;
  max-height: 130px; outline: none; color: var(--ink);
  overflow-y: auto;
}
#i:focus { border-color: var(--teal); }
#i::placeholder { color: #93A0A8; }
#i:disabled { opacity: .5; cursor: default; }
#b {
  flex: none; background: var(--brand); color: #fff; border: none;
  border-radius: 12px; padding: 0 22px; height: 46px;
  font: 600 16px 'Hanken Grotesk', system-ui; cursor: pointer;
}
#b:hover { background: var(--brand-hover); }
#b:disabled { opacity: .4; cursor: default; }

/* ---- mobile sticky privacy footer ---- */
#mobileFooter { display: none; flex: none; border-top: 1px solid var(--warm-border); background: var(--warm-bg); }
#footerToggle {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  background: transparent; border: none; font-family: inherit; cursor: pointer; text-align: left;
}
#footerToggle .ico { font-size: 15px; }
#footerToggle .label { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--warm-heading); }
#footerToggle .caret { color: var(--warm-accent-1); font-size: 13px; }
#footerBody { display: none; padding: 0 20px 18px; font-size: 13.5px; line-height: 1.55; color: var(--warm-body-2); }
#footerBody.show { display: block; }
#footerBody p { margin: 0 0 12px; }
#footerBody .bullet { display: flex; gap: 9px; margin-bottom: 9px; }
#footerBody .bullet:last-child { margin-bottom: 0; }
#footerBody .bullet .mk { color: var(--warm-accent-2); }

/* ---- sidebar ---- */
#sidebar {
  flex: none; width: 372px; height: 100%; border-left: 1px solid var(--hairline-3);
  background: var(--sidebar-bg); overflow-y: auto; padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.sb-card { background: #fff; border: 1px solid var(--hairline-4); border-radius: 14px; padding: 18px 20px; }
.sb-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warm-accent-1); margin-bottom: 10px; }
.sb-title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.sb-body { font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.sb-btn {
  width: 100%; border-radius: 10px; padding: 11px;
  font: 600 13.5px 'Hanken Grotesk', system-ui; cursor: pointer; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; box-sizing: border-box;
}
.sb-btn-primary { background: var(--brand); color: #fff; border: none; }
.sb-btn-primary:hover { background: var(--brand-hover); }
.sb-btn-outline { background: transparent; color: #1E3A44; border: 1px solid #D3E0E6; }
.sb-btn-outline:hover { background: var(--chip-bg); }
.sb-headshot { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }

/* privacy card */
.sb-card-amber { background: var(--warm-bg); border: 1px solid var(--warm-border); border-radius: 14px; padding: 20px; }
.priv-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.priv-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--warm-chip); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.priv-icon-title { font-weight: 700; font-size: 15.5px; color: var(--warm-heading); line-height: 1.2; }
.priv-reassurance { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--warm-body); }
.priv-bullets { display: flex; flex-direction: column; gap: 11px; }
.priv-bullet { display: flex; gap: 9px; font-size: 13px; line-height: 1.5; color: var(--warm-body-2); }
.priv-bullet .arrow { color: var(--warm-accent-2); font-weight: 700; }
.priv-bullet b { color: var(--warm-heading); }

/* DVF pillars */
.dvf-row { display: flex; align-items: center; gap: 11px; }
.dvf-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: #C7D3DA; }
.dvf-label { flex: 1; font-size: 14px; font-weight: 500; }
.dvf-status { font-size: 12px; font-weight: 600; color: var(--muted-3); }

.sidebar-footer-note { margin-top: auto; padding-top: 6px; font-size: 11.5px; color: var(--muted-4); text-align: center; }

/* ============================================================
   Overlays: DVF explainer / Examples gallery / Meet Jessica / Output viewer
   ============================================================ */
.scrim {
  position: fixed; inset: 0; background: rgba(20,26,30,.46); z-index: 60;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto; animation: scrimIn .2s ease;
}
.scrim.show { display: flex; }
.sheet {
  background: #F3F7F9; border-radius: 18px; width: 100%;
  box-shadow: 0 24px 70px rgba(10,40,50,.28);
  animation: sheetIn .28s cubic-bezier(.2,.7,.3,1); overflow: hidden;
}
.sheet-dvf { max-width: 940px; }
.sheet-examples { max-width: 1000px; }
.sheet-jessica { max-width: 720px; }

.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 34px 0; }
.sheet-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.sheet-head h2 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.sheet-head .intro { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted-2); max-width: 62ch; }
.sheet-head .intro a { color: var(--teal); font-weight: 600; }
.sheet-close {
  flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #D3E0E6;
  background: #fff; cursor: pointer; font-size: 18px; color: var(--muted-2); line-height: 1;
}
.sheet-close:hover { background: var(--chip-bg); }
.sheet-body { padding: 22px 34px 34px; }

/* DVF variant toggle */
.dvf-toggle-row { padding: 18px 34px 0; display: flex; align-items: center; gap: 12px; }
.seg { display: inline-flex; background: #E1E9ED; border-radius: 10px; padding: 3px; }
.seg button { border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; background: transparent; color: var(--muted-3); }
.seg button.active { background: var(--brand); color: #fff; }
.dvf-toggle-row .hint { font-size: 12px; color: var(--muted-4); }

/* Pillars accordion */
.pillar-card { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.pillar-card:last-child { margin-bottom: 0; }
.pillar-card.des { border: 1px solid var(--des-border); }
.pillar-card.fea { border: 1px solid var(--fea-border); }
.pillar-card.via { border: 1px solid var(--via-border); }
.pillar-btn {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: transparent; border: none; font-family: inherit; cursor: pointer; text-align: left;
}
.pillar-badge { width: 44px; height: 44px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.pillar-badge.des { background: var(--des-bg); color: var(--des-fg); }
.pillar-badge.fea { background: var(--fea-bg); color: var(--fea-fg); }
.pillar-badge.via { background: var(--via-bg); color: var(--via-fg); }
.pillar-info { flex: 1; }
.pillar-name { display: block; font-size: 18px; font-weight: 700; }
.pillar-q { display: block; font-size: 14px; color: var(--muted-2); font-style: italic; }
.pillar-caret { font-size: 14px; }
.pillar-caret.des { color: var(--warm-accent-1); }
.pillar-caret.fea { color: #7FCBE0; }
.pillar-caret.via { color: #C99BC4; }
.pillar-detail { display: none; padding: 0 22px 20px 82px; }
.pillar-detail.show { display: block; }
.pillar-detail p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--muted-1); }
.pillar-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pillar-chip { font-size: 12px; border-radius: 999px; padding: 4px 11px; font-weight: 600; }
.pillar-chip.des { background: var(--des-bg); color: var(--des-fg); }
.pillar-chip.fea { background: var(--fea-bg); color: var(--fea-fg); }
.pillar-chip.via { background: var(--via-bg); color: var(--via-fg); }

/* Venn */
.venn-wrap { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.venn-wrap svg { width: 320px; max-width: 100%; flex: none; }
.venn-wrap circle { cursor: pointer; }
.venn-detail { flex: 1; min-width: 240px; }
.venn-lens-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.venn-detail h3 { margin: 0; font-size: 22px; }
.venn-detail .q { margin: 4px 0 12px; font-size: 14px; font-style: italic; color: var(--muted-2); }
.venn-detail .txt { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted-1); }
.venn-detail .hint { margin: 14px 0 0; font-size: 12.5px; color: var(--muted-4); }

/* Tier legend */
.tier-legend { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hairline-4); }
.tier-legend-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); margin-bottom: 12px; }
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tier-tile { background: #fff; border: 1px solid var(--hairline-4); border-radius: 11px; padding: 12px 14px; }
.tier-tile .name { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tier-tile .desc { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }

/* Examples gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.example-card {
  text-align: left; background: #fff; border: 1px solid var(--hairline-4); border-radius: 14px;
  padding: 22px; font-family: inherit; cursor: pointer; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s; width: 100%;
}
.example-card:hover { box-shadow: 0 10px 28px rgba(20,40,50,.10); transform: translateY(-2px); }
.example-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.example-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tier-pill { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; border-radius: 999px; padding: 4px 11px; }
.example-who { font-size: 13px; color: var(--muted-2); margin-bottom: 16px; }
.example-score { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.example-score .num { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.example-score .of5 { font-size: 15px; color: var(--muted-4); }
.example-bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bar-row { display: flex; align-items: center; gap: 9px; }
.bar-row .bl { width: 58px; font-size: 11px; font-weight: 600; }
.bar-row .track { flex: 1; height: 6px; border-radius: 4px; background: #EDE7DA; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 4px; }
.bar-row .val { font-size: 11.5px; font-weight: 700; color: var(--muted-1); width: 22px; text-align: right; }
.example-verdict { font-size: 13.5px; line-height: 1.5; color: var(--muted-1); margin-bottom: 14px; }
.example-cta { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--brand); }

/* Meet Jessica */
.jessica-body { padding: 20px 34px 34px; display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.jessica-photo { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; flex: none; }
.jessica-copy { flex: 1; min-width: 240px; }
.jessica-copy h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.01em; }
.jessica-copy p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; color: var(--muted-1); }
.jessica-cta {
  display: inline-flex; align-items: center; justify-content: center; background: var(--brand);
  border: none; color: #fff; border-radius: 10px; padding: 12px 20px; font-size: 14.5px;
  font-weight: 600; font-family: inherit; text-decoration: none;
}
.jessica-cta:hover { background: var(--brand-hover); }

/* Output viewer (full-screen, not the scrim/sheet pattern) */
#outputOverlay { display: none; position: fixed; inset: 0; z-index: 70; background: #F3F7F9; flex-direction: column; animation: scrimIn .2s ease; }
#outputOverlay.show { display: flex; }
.output-topbar { flex: none; display: flex; align-items: center; gap: 16px; padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--hairline-2); }
.output-back {
  flex: none; display: flex; align-items: center; gap: 7px; background: var(--chip-bg); border: 1px solid #D3E0E6;
  border-radius: 9px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; color: #1E3A44;
}
.output-back:hover { background: var(--chip-bg-hover); }
.output-titles { flex: 1; min-width: 0; }
.output-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.output-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.output-tier { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; border-radius: 999px; padding: 5px 12px; }
.output-open { flex: none; background: var(--brand); color: #fff; border-radius: 9px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.output-open:hover { background: var(--brand-hover); }
.output-own-banner { flex: none; background: var(--warm-bg); border-bottom: 1px solid var(--warm-border); padding: 9px 22px; font-size: 13px; color: #8A5313; text-align: center; }
.output-own-banner[hidden] { display: none; }
#outputFrame { flex: 1; width: 100%; border: none; background: #F3F7F9; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  #sidebar { display: none; }
  #mobilePills { display: flex; }
  #mobileFooter { display: block; }
  .hdr { padding: 14px 16px; }
  .subhead { display: none; }
  #scroll-area { padding: 16px 16px 8px; }
  .input-bar { padding: 10px 16px 14px; }
  #chips, #files, #panel, #uploadNotice { padding-left: 16px; padding-right: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .scrim { padding: 0; }
  .sheet { border-radius: 0; min-height: 100vh; }
}
