/* PipeLoom — "Warm paper, bright threads"
   Paper canvas, ink text, color reserved for the pipeline threads. */
:root {
  --paper: #FDF7EE;
  --cream: #FFEDD2;
  --ink: #1D1E2C;
  --white: #FFFFFF;
  --hairline: #EAE1D3;
  --ash: #8B8578;
  --coral: #FF5C39;
  --violet: #7C5CFF;
  --c-inbox: #FFC53D;
  --c-picked: #FF9F43;
  --c-script: #FF6B9D;
  --c-shoot: #FF5C39;
  --c-final: #A78BFA;
  --c-sched: #4DABF7;
  --c-pub: #3DDC97;
  --r-btn: 6px;
  --r-card: 12px;
  --shadow: 0 2px 8px rgba(29, 30, 44, 0.06);
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-display: "Archivo Black", "Archivo", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 14px; font-weight: 400; letter-spacing: -0.02em; }
.hidden { display: none !important; }
.muted { color: var(--ash); }
.small-note { font-size: 12px; font-weight: 300; }
.error { color: var(--coral); min-height: 20px; margin-top: 10px; font-size: 13px; }
.display, h1.display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; }
a { color: var(--coral); }

/* ---------- Shared marketing + auth ---------- */
.logo-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-lockup img { height: 30px; }
.logo-word { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.03em; }
.logo-word em { color: var(--coral); font-style: normal; }

/* ---------- Buttons ---------- */
.btn { background: var(--white); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: var(--r-btn); padding: 9px 16px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; letter-spacing: -0.02em; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.primary:hover { background: #33354a; }
.btn.coral { background: var(--coral); border-color: var(--coral); color: var(--white); }
.btn.coral:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ash); }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn.big { padding: 14px 28px; font-size: 15px; border-radius: 8px; }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.mkt-nav { display: flex; align-items: center; gap: 22px; padding: 18px 32px; }
.mkt-nav .links { display: flex; gap: 4px; flex: 1; justify-content: center; }
.mkt-nav .links a { color: var(--ash); text-decoration: none; padding: 8px 14px; font-weight: 450; font-size: 13.5px; border-radius: var(--r-btn); }
.mkt-nav .links a:hover { color: var(--ink); }
.mkt-hero { text-align: center; padding: 64px 24px 36px; max-width: 860px; margin: 0 auto; }
.mkt-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5.4vw, 54px);
  text-transform: uppercase; line-height: 1.06; letter-spacing: 0.01em; }
.mkt-hero h1 .thread { background: linear-gradient(90deg, var(--coral), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.mkt-hero .sub { font-size: 17px; font-weight: 300; color: #55503f; margin: 18px auto 30px; max-width: 560px; line-height: 1.6; }
.mkt-cta { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.mkt-cta .fine { width: 100%; color: var(--ash); font-size: 12px; margin-top: 10px; font-weight: 300; }
.mkt-loom { display: flex; gap: 8px; justify-content: center; margin: 44px auto 10px; max-width: 720px; flex-wrap: wrap; padding: 0 16px; }
.loom-step { border-radius: 10px; padding: 12px 16px; color: var(--ink); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: var(--shadow); }
.mkt-how { max-width: 900px; margin: 40px auto 60px; padding: 0 24px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 22px; box-shadow: var(--shadow); }
.how-card .num { font-family: var(--font-display); font-size: 24px; color: var(--coral); }
.how-card h3 { font-size: 15px; margin: 10px 0 8px; }
.how-card p { font-size: 13.5px; font-weight: 300; line-height: 1.6; color: #55503f; }
.mkt-footer { margin-top: auto; padding: 26px 32px; border-top: 1px solid var(--hairline);
  display: flex; gap: 18px; align-items: center; color: var(--ash); font-size: 12.5px; }
.mkt-footer a { color: var(--ash); text-decoration: none; }
.mkt-footer a:hover { color: var(--ink); }

/* Marketing subpages (about / pricing) */
.mkt-page { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; }
.mkt-page h1 { font-family: var(--font-display); font-size: 34px; text-transform: uppercase; margin-bottom: 18px; }
.mkt-page h2 { font-size: 19px; margin: 30px 0 10px; }
.mkt-page p { font-weight: 300; line-height: 1.7; font-size: 15px; color: #3d3a30; margin: 10px 0; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.price-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--coral); }
.price-card .amount { font-family: var(--font-display); font-size: 34px; }
.price-card .blurb { color: var(--ash); font-size: 13px; margin: 8px 0 16px; font-weight: 300; }
.free-banner { background: var(--cream); border-radius: var(--r-card); padding: 22px 26px; margin: 22px 0; }

/* ---------- Auth card ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.auth-card { width: 400px; background: var(--white); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 40px 36px; box-shadow: var(--shadow); }
.tagline { color: var(--ash); margin: 10px 0 24px; font-size: 14px; font-weight: 300; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; background: transparent; border: 1px solid var(--hairline);
  color: var(--ash); padding: 9px; border-radius: var(--r-btn); cursor: pointer; font-family: inherit; font-weight: 450; }
.auth-tabs button.active { color: var(--ink); border-color: var(--ink); }

/* ---------- Inputs ---------- */
input, textarea, select {
  width: 100%; background: var(--white); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: var(--r-btn); padding: 10px 12px; margin: 6px 0 14px; font-family: inherit; font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(255, 92, 57, 0.35); border-color: var(--coral); }
label { display: block; font-size: 12px; color: var(--ash); font-weight: 400; }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; gap: 24px; padding: 12px 28px; background: var(--paper);
  border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 20; }
.topbar nav { display: flex; gap: 2px; flex: 1; }
.nav-btn { background: none; border: none; color: var(--ash); padding: 8px 14px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; border-radius: var(--r-btn); letter-spacing: -0.02em; }
.nav-btn.active { color: var(--white); background: var(--ink); }
.top-right { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.pill { border: 1px solid var(--hairline); background: var(--white); border-radius: 99px; padding: 4px 12px;
  font-size: 12px; color: var(--ink); font-weight: 700; }
.pill.guest { border-color: var(--coral); color: var(--coral); cursor: pointer; }

/* ---------- Studio hero (ideation chat) ---------- */
.hero { background: var(--cream); padding: 42px 28px 48px; border-bottom: 1px solid var(--hairline); }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 { font-family: var(--font-display); font-size: 30px; text-transform: uppercase;
  letter-spacing: 0.01em; text-align: center; margin-bottom: 6px; }
.hero .sub { text-align: center; color: #6b5d49; font-weight: 300; margin-bottom: 26px; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: var(--r-card); font-size: 14px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--white); }
.msg.assistant { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--hairline); }
.msg.thinking { align-self: flex-start; color: #6b5d49; background: transparent; font-weight: 300; }
.idea-preview { border: 1.5px solid var(--ink); border-radius: var(--r-card); background: var(--white);
  padding: 16px 18px; margin: 6px 0 2px; box-shadow: var(--shadow); }
.idea-preview h4 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; margin-bottom: 8px; }
.idea-preview .kv { font-size: 13px; margin: 3px 0; color: #3d3a30; }
.idea-preview .kv b { color: var(--ink); font-weight: 500; }
.add-pipeline { display: flex; justify-content: flex-end; margin-top: 12px; }
.add-pipeline .btn { background: var(--ink); color: var(--white); border-color: var(--ink); }
.add-pipeline .btn.ready { background: var(--c-pub); border-color: var(--c-pub); color: var(--ink); }
.composer { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: 12px; box-shadow: var(--shadow); }
.composer textarea { border: none; resize: none; font-size: 15px; padding: 4px 6px 10px; margin: 0; }
.composer textarea:focus { outline: none; }
.composer-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--hairline); padding-top: 10px; }
.composer-row select { width: auto; background: var(--cream); border-color: var(--hairline); border-radius: 99px;
  padding: 6px 12px; font-size: 12px; font-weight: 500; cursor: pointer; margin: 0; }
.composer-row .send { margin-left: auto; background: var(--coral); color: var(--white); border: none;
  border-radius: var(--r-btn); padding: 10px 24px; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.composer-row .send:hover { filter: brightness(1.06); }

/* ---------- Board ---------- */
.view { padding: 24px 28px; }
#view-board { padding: 0; }
.board-strip { padding: 24px 28px 40px; }
.board-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.board-head h2 { font-family: var(--font-display); font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; }
.board { display: flex; gap: 10px; overflow-x: auto; align-items: stretch; padding-bottom: 8px; }
.col { border-radius: var(--r-card); min-height: 260px; flex: 0 0 250px; display: flex; flex-direction: column;
  transition: flex-basis 0.18s ease; overflow: hidden; box-shadow: var(--shadow); }
.col[data-status="inbox"] { background: var(--c-inbox); }
.col[data-status="picked"] { background: var(--c-picked); }
.col[data-status="script_review"] { background: var(--c-script); }
.col[data-status="shoot"] { background: var(--c-shoot); }
.col[data-status="final_review"] { background: var(--c-final); }
.col[data-status="scheduled"] { background: var(--c-sched); }
.col[data-status="published"] { background: var(--c-pub); }
.col-head { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center;
  color: var(--ink); cursor: pointer; user-select: none; }
.col-head .col-title { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.col-head .col-count { font-weight: 700; font-size: 12px; background: rgba(29,30,44,0.14); border-radius: 99px; padding: 2px 9px; }
.col-body { padding: 0 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.col.collapsed { flex: 0 0 48px; min-height: 260px; }
.col.collapsed .col-body { display: none; }
.col.collapsed .col-head { flex-direction: column; gap: 10px; height: 100%; justify-content: flex-start; padding-top: 16px; }
.col.collapsed .col-title { writing-mode: vertical-rl; transform: rotate(180deg); }
.card { background: var(--white); color: var(--ink); border-radius: 8px; padding: 12px 13px;
  cursor: pointer; border: 1px solid rgba(29,30,44,0.08); }
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.card h4 { font-size: 13px; line-height: 1.35; margin-bottom: 8px; font-weight: 500; }
.card .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 10px; padding: 2px 7px; border-radius: 99px; background: rgba(29,30,44,0.06);
  color: #55503f; font-weight: 500; }
.tag.video, .tag.text, .tag.src { background: var(--ink); color: var(--cream); }
.tag.job-running { background: var(--c-sched); color: var(--ink); }
.tag.job-error { background: var(--coral); color: var(--white); }
.col.drag-over { outline: 2px dashed var(--ink); outline-offset: -5px; }
.board-empty { background: var(--white); border: 1px dashed var(--hairline); border-radius: var(--r-card);
  padding: 26px; text-align: center; color: var(--ash); font-weight: 300; margin-top: 8px; }

/* ---------- Getting-started checklist ---------- */
.checklist { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 16px 18px; margin: 0 28px 8px; max-width: 420px; }
.checklist h3 { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.checklist .step { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; font-weight: 300; }
.checklist .step.done { color: var(--ash); text-decoration: line-through; }
.checklist .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.checklist .step.done .dot { background: var(--c-pub); border-color: var(--c-pub); color: var(--ink); }

/* ---------- Drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; width: min(680px, 96vw); height: 100vh; background: var(--white);
  border-left: 1px solid var(--hairline); z-index: 40; overflow-y: auto; padding: 24px 28px 130px;
  box-shadow: -16px 0 40px rgba(29,30,44,0.12); }
.drawer-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.drawer-head h2 { font-size: 17px; line-height: 1.35; font-weight: 600; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.section { border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 16px 18px; margin-bottom: 12px; background: var(--paper); }
.section h3 { font-family: var(--font-display); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--coral); margin-bottom: 10px; }
.section pre { white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.6; font-weight: 300; }
.section ul { padding-left: 18px; font-size: 13.5px; line-height: 1.65; font-weight: 300; }
.kv { font-size: 13px; margin: 3px 0; font-weight: 300; }
.kv b { color: var(--ash); font-weight: 500; }
.comment-box { position: fixed; bottom: 0; right: 0; width: min(680px, 96vw); background: var(--white);
  border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); padding: 12px 28px; display: flex; gap: 10px; }
.comment-box textarea { flex: 1; margin: 0; }
.comment { border-left: 2px solid var(--hairline); padding: 6px 12px; margin: 8px 0; font-size: 13px; font-weight: 300; }
.comment .who { color: var(--ash); font-size: 11px; }
.job-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500;
  border-radius: 99px; padding: 4px 12px; }
.job-status.running { background: rgba(77,171,247,0.15); color: #1d6fb8; }
.job-status.done { background: rgba(61,220,151,0.18); color: #17795a; }
.job-status.error { background: rgba(255,92,57,0.12); color: var(--coral); }

/* ---------- Panels ---------- */
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1200px; }
.panel { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 22px 24px; box-shadow: var(--shadow); }
.panel h2 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 16px; color: var(--ink); }
.panel h3 { font-size: 13px; margin: 18px 0 8px; font-weight: 600; }
.wide-panel { grid-column: 1 / -1; }
.agent-row { border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 12px 14px; margin-bottom: 10px; background: var(--paper); }
.agent-row summary { cursor: pointer; font-weight: 500; font-size: 13.5px; }
.agent-row textarea { font-size: 12.5px; }
.code-line { display: block; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-btn); padding: 10px 12px; font-size: 12px; word-break: break-all; margin: 8px 0; }
.credit-summary { font-family: var(--font-display); font-size: 30px; color: var(--coral); margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 300; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.table th { color: var(--ash); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 20px; }
.pack { border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 18px; text-align: center; background: var(--paper); }
.pack .amount { font-family: var(--font-display); font-size: 24px; }
.pack .blurb { color: var(--ash); font-size: 12px; margin: 6px 0 12px; font-weight: 300; }

/* ---------- Modal / toast / busy / tour ---------- */
.modal { position: fixed; inset: 0; background: rgba(29,30,44,0.5); display: flex; align-items: center;
  justify-content: center; z-index: 50; }
.modal-card { width: 440px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 12px 48px rgba(29,30,44,0.25); }
.modal-card h2 { font-family: var(--font-display); text-transform: uppercase; margin-bottom: 8px; font-size: 15px; }
.modal-card .modal-sub { color: var(--ash); font-size: 13px; font-weight: 300; margin-bottom: 16px; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink);
  color: var(--paper); border-radius: 8px; padding: 12px 20px; z-index: 60; font-size: 13px; font-weight: 500; }
.busy { position: fixed; inset: 0; background: rgba(253,247,238,0.85); display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; z-index: 70; color: var(--ink); font-weight: 500; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--hairline); border-top-color: var(--coral);
  border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tour-overlay { position: fixed; inset: 0; background: rgba(29,30,44,0.45); z-index: 80; }
.tour-pop { position: fixed; z-index: 81; width: 320px; background: var(--white); border-radius: var(--r-card);
  padding: 20px 22px; box-shadow: 0 12px 48px rgba(29,30,44,0.3); }
.tour-pop h3 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; margin-bottom: 8px; }
.tour-pop p { font-size: 13.5px; font-weight: 300; line-height: 1.6; color: #3d3a30; }
.tour-pop .tour-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.tour-pop .dots { display: flex; gap: 5px; }
.tour-pop .dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--hairline); }
.tour-pop .dots span.on { background: var(--coral); }
.tour-spot { position: relative; z-index: 82 !important; box-shadow: 0 0 0 4px var(--coral), 0 0 0 9999px rgba(29,30,44,0.45) !important; border-radius: 12px; }

@media (max-width: 900px) {
  .panel-grid, .mkt-how, .price-grid, .packs { grid-template-columns: 1fr; }
  .col { flex: 0 0 78vw; }
  .hero h1 { font-size: 22px; }
}

/* ---------- Suggest widget ---------- */
.suggest-btn { position: fixed; bottom: 0; right: 0; z-index: 90; width: 0; height: 0; border: none;
  border-left: 110px solid transparent; border-bottom: 110px solid var(--coral);
  background: transparent; cursor: pointer; padding: 0; }
.suggest-btn span { position: absolute; bottom: -96px; right: 4px; transform: rotate(-45deg);
  transform-origin: right bottom; color: var(--white); font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.suggest-btn:hover { border-bottom-color: #e64e2e; }
body.feedback-open { margin-right: min(380px, 92vw); transition: margin 0.25s ease; }
.feedback-panel { position: fixed; top: 0; right: 0; width: min(380px, 92vw); height: 100vh;
  background: var(--white); border-left: 1px solid var(--hairline); z-index: 89;
  box-shadow: -16px 0 40px rgba(29,30,44,0.12); padding: 22px 22px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.25s ease; }
body.feedback-open .feedback-panel { transform: translateX(0); }
.feedback-panel h2 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; margin-bottom: 6px; }
.feedback-panel .fb-sub { color: var(--ash); font-size: 12.5px; font-weight: 300; margin-bottom: 16px; line-height: 1.55; }
.fb-kind { display: flex; gap: 8px; margin-bottom: 12px; }
.fb-kind button { flex: 1; }
.fb-kind button.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.fb-target { border: 1px dashed var(--hairline); border-radius: var(--r-btn); padding: 10px 12px;
  font-size: 12px; color: var(--ash); margin-bottom: 12px; font-weight: 300; word-break: break-all; }
.fb-target.set { border-color: var(--c-pub); color: var(--ink); border-style: solid; }
.pick-hover-outline { outline: 3px solid var(--coral) !important; outline-offset: 2px; cursor: crosshair !important; }
body.picking, body.picking * { cursor: crosshair !important; }
.pick-banner { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 95;
  background: var(--ink); color: var(--paper); border-radius: 99px; padding: 9px 20px; font-size: 13px; font-weight: 500; }

/* ---------- Notifications ---------- */
.notif-wrap { position: relative; }
.notif-bell { background: var(--white); border: 1px solid var(--hairline); border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; font-size: 15px; }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--coral); color: var(--white);
  font-size: 10px; font-weight: 700; border-radius: 99px; min-width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-feed { position: absolute; top: 42px; right: 0; width: 330px; max-height: 420px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: 0 12px 40px rgba(29,30,44,0.18); z-index: 92; padding: 8px; }
.notif-item { padding: 10px 12px; border-radius: 8px; }
.notif-item.unread { background: var(--cream); }
.notif-item b { font-size: 13px; }
.notif-item p { font-size: 12.5px; font-weight: 300; color: #55503f; margin-top: 3px; line-height: 1.5; }
.notif-item .when { font-size: 10.5px; color: var(--ash); margin-top: 4px; }
.notif-empty { padding: 22px; text-align: center; color: var(--ash); font-weight: 300; font-size: 13px; }

/* ---------- Card conversation thread ---------- */
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.t-msg { border-radius: var(--r-card); padding: 12px 14px; font-size: 13.5px; line-height: 1.55; }
.t-msg.user { align-self: flex-end; max-width: 85%; background: var(--ink); color: var(--white); }
.t-msg.user .t-who { color: rgba(253,247,238,0.6); }
.t-msg.pipeloom { align-self: stretch; background: var(--white); border: 1px solid var(--hairline); }
.t-msg.note { align-self: center; color: var(--ash); font-weight: 300; font-size: 12.5px; background: transparent; }
.t-who { font-size: 10.5px; color: var(--ash); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
