/* Real-app additions on top of the prototype design system. */
.auth-page { min-height: 100vh; display: grid; place-items: start center; padding: 56px max(16px, env(safe-area-inset-left, 0px)); background: var(--paper, #FFF6E8); }
.auth-box { width: min(560px, 100%); display: grid; gap: 16px; }
.auth-box h1 { margin: 0; font: 800 clamp(2rem, 5vw, 2.8rem)/1.05 var(--display); letter-spacing: -0.04em; }
.auth-note { color: var(--dim); font-size: .9rem; }
.stack { display: grid; gap: 14px; }
.grow { flex: 1; min-width: 0; }
.cart-tray { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; padding: 8px 8px 8px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--butter, #FFE873); font-weight: 600; z-index: 40; }
.side-org-switch { margin: 8px 0 12px; }
.auth-box .cm-chips { justify-content: flex-start; }
/* Chat: own messages stay readable for every role (the team's role colour is ink). */
.c2-msg.mine .c2-text { background: var(--butter, #FFE873) !important; color: var(--ink) !important; border: 2px solid var(--ink); }
[data-role="brand"] .c2-msg.mine .c2-text { background: #CFE0FF !important; }
[data-role="creator"] .c2-msg.mine .c2-text { background: #FFD3EC !important; }
.page:has(> .chat2) { padding: 0 !important; }
.page > .chat2 { height: 100vh; min-height: 520px; }
.c2-sys { text-align: center; color: var(--dim); font-size: .85rem; }
.c2-msg.note .c2-text { background: transparent !important; border: 2px dashed var(--ink) !important; font-style: italic; }
.home-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.home-path { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 20px; border: 2px solid var(--ink); border-radius: 22px; background: var(--surface, #fff); text-decoration: none; color: var(--ink); }
.home-path b { font: 700 1.15rem/1.2 var(--display); }
.home-path span:not(.btn) { color: var(--dim); font-size: .92rem; line-height: 1.5; }
.home-path:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--butter, #FFE873) 70%, transparent); }
.linklike { border: 0; background: none; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }
.cc2-ph { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #F5ECDD; display: grid; place-items: center; }
.cc2-ph img { width: 100%; height: 100%; object-fit: cover; }
.cc2-noph { font: 800 3rem/1 var(--display); color: rgba(26,26,26,.25); }

/* ---------- Campaigns, deals, settings, team review (real app) ---------- */
.pl-wrap { display: inline-flex; vertical-align: middle; } .pl-wrap svg { width: 20px; height: 20px; }
.cm-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cm-brief-text { white-space: pre-line; line-height: 1.6; }
.cm-brow.fresh { box-shadow: 0 0 0 6px var(--butter-soft, #FFF4B8); }
.ap-list { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 12px; border-top: 2px dashed var(--line-2, #E7DCCB); }
.ap-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding: 12px; border: 2px solid var(--line-2, #E7DCCB); border-radius: 18px; background: var(--surface, #fff); }
.ap-ph { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; border: 2px solid var(--ink); background: var(--butter, #FFE873); font: 800 1.2rem/1 var(--display); overflow: hidden; }
.ap-ph img { width: 100%; height: 100%; object-fit: cover; }
.ap-main { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.ap-pitch { white-space: pre-line; margin: 4px 0 0; }
.ap-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2, #E7DCCB); }
.set-row:last-child { border-bottom: 0; }
.set-row > span { display: grid; gap: 2px; min-width: 0; } .set-row small { color: var(--dim); font-size: .85rem; line-height: 1.45; }
input.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper-2, #F5ECDD); cursor: pointer; transition: background .15s; }
input.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; transition: left .15s; }
input.switch:checked { background: var(--role, var(--sky, #CFE0FF)); } input.switch:checked::after { left: 21px; }
input.switch:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; } input.switch:disabled { opacity: .5; cursor: not-allowed; }
.btn.danger { background: #B42318; color: #fff; border-color: #B42318; }
/* Brand settings (from the prototype's brand-settings page) */
.bs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 24px; align-items: start; margin-bottom: 16px; }
.bs-main { display: grid; gap: 16px; } .bs-main fieldset { margin: 0; min-width: 0; }
.bs-box { display: grid; gap: 14px; padding: 20px; background: var(--surface); border: 2px solid var(--ink); border-radius: 22px; } .bs-box h2 { font-size: 1.2rem; margin: 0; }
.bs-logo { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.bs-drop { display: flex; gap: 16px; align-items: center; flex: 1; min-width: 240px; padding: 14px; border: 2px dashed var(--line-2); border-radius: 18px; cursor: pointer; background: var(--paper); }
.bs-drop:hover { border-color: var(--ink); background: var(--butter-soft); } .bs-drop small { display: block; color: var(--dim); font-size: .82rem; margin-top: 2px; }
.bs-av { display: grid; place-items: center; width: 84px; height: 84px; flex: none; border-radius: 22px; border: 2px solid var(--ink); background: var(--butter); font: 800 1.5rem/1 var(--display); overflow: hidden; }
.bs-av img { width: 100%; height: 100%; object-fit: cover; }
.bs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bs-soc { display: grid; gap: 10px; } .bs-soc label { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.bs-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .bs-foot .dim { font-size: .85rem; }
.bs-prev { position: sticky; top: 24px; display: grid; gap: 10px; } .bs-prev > span { font-weight: 800; } .bs-prev > p { font-size: .82rem; color: var(--dim); }
.bs-card { display: grid; gap: 12px; padding: 20px; background: var(--surface); border: 2px solid var(--ink); border-radius: 24px; box-shadow: 0 0 0 6px var(--sky-soft); }
.bs-card header { display: flex; gap: 12px; align-items: center; } .bs-card header div { display: grid; min-width: 0; } .bs-card header small { color: var(--dim); font-size: .82rem; }
.bs-chip { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); font-size: .78rem; font-weight: 700; }
@media (max-width: 980px) { .bs { grid-template-columns: 1fr; } .bs-prev { position: static; } }
@media (max-width: 520px) { .bs-two { grid-template-columns: 1fr; } }
/* Deals */
.dl-noimg { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink); background: var(--butter); font-weight: 800; flex: none; }
.dl-noimg.big { width: 72px; height: 72px; border-radius: 20px; font-size: 1.6rem; }
.cd-deal { display: grid; gap: 10px; } .cd-head { display: flex; gap: 12px; align-items: center; } .cd-head h2 { margin: 0; font-size: 1.2rem; }
/* Tables in team lists */
.tbl td, .tbl th { text-align: left; } .tbl a { color: inherit; }
/* Team creator review */
.tc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 20px; align-items: start; }
.tc-main, .tc-side { display: grid; gap: 16px; min-width: 0; } .tc-side { position: sticky; top: 24px; }
.tc-photo { width: 96px; height: 120px; object-fit: cover; border-radius: 18px; border: 2px solid var(--ink); }
.tc-stats { margin: 12px 0; } .tc-edit { margin-top: 12px; }
.tc-post { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
@media (max-width: 980px) { .tc { grid-template-columns: 1fr; } .tc-side { position: static; } }
/* Outreach */
.ot { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ot-list { display: grid; gap: 8px; }
.ot-item { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 2px solid var(--line-2); border-radius: 18px; background: var(--surface); font: inherit; color: inherit; cursor: pointer; }
.ot-item[aria-current="true"] { border-color: var(--ink); background: var(--butter-soft); }
.ot-sn { color: var(--ink-2, #333); font-size: .9rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ot-pane { display: grid; gap: 12px; } .ot-pane h2 { margin: 0; } .ot-body { white-space: pre-line; padding: 14px; border-radius: 16px; background: var(--paper); }
@media (max-width: 900px) { .ot { grid-template-columns: 1fr; } }
/* Public shortlist */
.share-page { min-height: 100vh; padding: 24px max(16px, env(safe-area-inset-left, 0px)) 48px; background: var(--paper, #FFF6E8); display: grid; gap: 24px; align-content: start; max-width: 1180px; margin: 0 auto; }
.share-top { display: flex; justify-content: space-between; align-items: center; }
.share-head { display: grid; gap: 6px; justify-items: start; } .share-head h1 { margin: 0; font: 800 clamp(2rem, 5vw, 2.8rem)/1.05 var(--display); letter-spacing: -0.03em; }
.share-foot { text-align: center; }
/* Chat attachments */
.c2-attach { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 999px; border: 2px solid var(--line-2); font-size: 1.3rem; cursor: pointer; }
.c2-attach:hover { border-color: var(--ink); }
.c2-file { display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; padding: 8px 12px; border: 2px solid var(--line-2); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.c2-img img { display: block; max-width: min(320px, 100%); max-height: 280px; margin-top: 6px; border-radius: 14px; border: 2px solid var(--line-2); object-fit: cover; }
.tbl { min-width: 0 !important; width: 100%; }
.tbl th { padding: 10px; font-weight: 800; font-size: .8rem; white-space: nowrap; }
/* Team overview: setup checklist */
.setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.setup li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.setup li:last-child { border-bottom: 0; }
.setup li > span.grow { display: grid; gap: 2px; } .setup small { color: var(--dim); font-size: .85rem; }
.setup-tick { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); font-weight: 800; font-size: .8rem; }
.setup li.done .setup-tick { background: var(--ok-soft, #DFF5E6); } .setup li.done b { text-decoration: line-through; opacity: .6; }
/* Prospects and outreach lists */
.pf { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 12px; }
.pf-bulk { position: sticky; top: 8px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 14px; margin-bottom: 12px; border: 2px solid var(--ink); border-radius: 18px; background: var(--butter, #FFE873); }
.pt td { vertical-align: middle; } .pt tr.on td { background: var(--butter-soft, #FFF4B8); }
.pt-who { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; min-width: 180px; }
.pt-who img, .pt-av { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--paper-2); display: grid; place-items: center; font-weight: 800; }
.pt-who > span { display: grid; min-width: 0; } .pt-who small { color: var(--dim); font-size: .8rem; display: flex; gap: 4px; align-items: center; }
.pt-who small .pl-wrap svg { width: 14px; height: 14px; }
.pt-bio { max-width: 420px; font-size: .85rem; color: var(--dim); }
.ls td { vertical-align: top; } .ls tr.late { background: color-mix(in srgb, #F04438 6%, transparent); }
.ls-form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 130px 130px minmax(200px, 1.4fr) auto; gap: 8px; align-items: start; }
.ls-form .textarea { min-height: 0; font-size: .88rem; padding: 8px 10px; }
.ls-wait { display: grid; gap: 4px; } .ls-act { display: flex; gap: 4px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbl.ls { min-width: 1150px !important; }
/* Notifications bell */
.side-me { display: inline-grid; place-items: center; }
.side-me .cl-userButtonAvatarBox { width: 30px; height: 30px; }
.bell { position: relative; }
.bell-btn { position: relative; display: inline-grid; place-items: center; padding: 0; }
.bell-btn svg { width: 18px; height: 18px; display: block; }
.bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: #F04438; color: #fff; font: 700 .66rem/14px var(--body, system-ui, sans-serif); text-align: center; border: 2px solid var(--paper, #FFF6E8); pointer-events: none; }
.bell-pop { position: fixed; z-index: 200; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 12px; border: 2px solid var(--ink); border-radius: 20px; background: var(--surface, #fff); box-shadow: 0 12px 32px rgb(0 0 0 / .18); }
.bell-pop header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bell-pop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bell-pop li a { display: grid; gap: 2px; padding: 10px; border-radius: 14px; color: inherit; text-decoration: none; }
.bell-pop li a:hover { background: var(--paper, #FFF6E8); }
.bell-pop li.unread a { background: var(--butter-soft, #FFF4B8); }
.bell-t { display: flex; justify-content: space-between; gap: 8px; } .bell-t small, .bell-b, .bell-foot { color: var(--dim); font-size: .82rem; }
.bell-foot { margin: 8px 0 0; }
@media (max-width: 600px) { .bell-pop { left: 16px !important; right: 16px !important; width: auto; } }
/* Page-load progress bar */
.nav-progress { position: fixed; top: 0; left: 0; z-index: 300; height: 3px; width: 0; background: var(--ink, #1A1A1A); opacity: 0; transition: width .2s ease, opacity .3s ease .1s; pointer-events: none; }
.nav-progress.on { width: 85%; opacity: 1; transition: width 2.5s cubic-bezier(.1, .7, .2, 1), opacity .1s; }
@media (prefers-reduced-motion: reduce) { .nav-progress, .nav-progress.on { transition: none; } }

/* Sidebar: labels stay on one line next to their count badge. */
.side-nav a { white-space: nowrap; min-width: 0; }
.side-nav a > span:not([class]) , .side-nav a .nav-l { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side-nav a .badge { flex: none; margin-left: auto; }
