* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f6f6fb;
  --panel: #ffffff;
  --border: #e8e8f2;
  --text: #1b1d27;
  --muted: #71768c;
  --g1: #ff8a5c;
  --g2: #ff4f2e;
  --g3: #ff6fc4;
  --g4: #7c5cff;
  --grad: linear-gradient(100deg, var(--g1), var(--g2) 45%, var(--g3) 70%, var(--g4));
  --green: #12a06b;
  --amber: #d97a06;
  --red: #e0355c;
  --shadow: 0 1px 3px rgba(27, 29, 39, .06), 0 8px 24px rgba(27, 29, 39, .05);
}
body { background: var(--bg); color: var(--text); font: 15px/1.55 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }
.app { display: flex; min-height: 100vh; }

.sidebar { width: 250px; background: var(--panel); border-right: 1px solid var(--border); padding: 26px 16px 20px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.logo-mark { width: 30px; flex: none; }
.wordmark { font-size: 23px; font-weight: 600; letter-spacing: .5px; line-height: 1.1; color: var(--text); }
.wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { font-size: 8.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

#nav { display: flex; flex-direction: column; gap: 4px; }
#nav button { text-align: left; background: none; border: none; color: var(--muted); padding: 11px 14px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
#nav button:hover { background: var(--bg); color: var(--text); }
#nav button.active { background: linear-gradient(100deg, rgba(255,138,92,.1), rgba(255,111,196,.08)); color: var(--text); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 6px; }
.powered { font-size: 12px; color: var(--muted); }
.powered b { color: var(--text); letter-spacing: 1px; }
.chip { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); display: inline-block; width: fit-content; }
.chip.ok { color: var(--green); border-color: currentColor; }
.chip.demo { color: var(--amber); border-color: currentColor; }

.main { flex: 1; padding: 34px 40px; max-width: 1080px; }
h1 { font-size: 25px; font-weight: 600; margin-bottom: 6px; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.lead { color: var(--muted); margin-bottom: 20px; font-size: 14.5px; }
.tab-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tab-head h1 { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; margin-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 13.5px; color: var(--muted); box-shadow: var(--shadow); }
.step b { color: var(--text); }
.step-n { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; font-size: 13px; margin-bottom: 8px; }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel.testdrive { border: 1.5px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.panel.connect { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(100deg, rgba(255,138,92,.07), rgba(124,92,255,.07)); font-size: 14px; }
.td-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.td-steps { list-style: none; margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.td-steps li { padding: 5px 0; font-size: 14px; }
.td-steps li::before { content: "✅ "; }

.row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.right { justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

input, select, textarea { background: #fbfbfe; color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; font: inherit; font-size: 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g2); }
input[type="number"] { width: 78px; }
input[type="checkbox"] { width: auto; }
input[type="file"] { padding: 7px; }
textarea { resize: vertical; margin-top: 8px; }
label { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }
label input, label select, label textarea { margin-top: 4px; }
.check { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 14px; margin: 0; }
.check.big { margin-top: 14px; }

.btn { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--g2); }
.btn.primary { background: var(--grad); border: none; color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(255, 79, 46, .3); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { padding: 14px 26px; font-size: 15px; }
.btn.small { padding: 6px 12px; font-size: 12.5px; }
.btn.approve { background: var(--green); border: none; color: #fff; font-weight: 600; }
.btn.reject { background: transparent; border-color: #f3c2cf; color: var(--red); }
.btn:disabled { opacity: .55; cursor: wait; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.stat .num { font-size: 27px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: 12.5px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.card .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.card .thumb { max-width: 100%; border-radius: 10px; margin-top: 8px; max-height: 160px; object-fit: cover; }

.draft { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.draft-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 500; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: #fbfbfe; }
.pill.platform { background: linear-gradient(100deg, rgba(255,138,92,.12), rgba(255,111,196,.1)); color: var(--g1); border-color: transparent; }
.pill.media { background: rgba(255,79,46,.1); color: var(--g2); border-color: transparent; }
.pill.status-approved { color: var(--green); border-color: currentColor; }
.pill.status-rejected { color: var(--red); border-color: currentColor; }
.score { font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; color: #fff; margin-left: auto; }
.score.hi { background: var(--green); }
.score.mid { background: var(--amber); }
.score.lo { background: var(--red); }
.score-tips { font-size: 12.5px; color: var(--muted); margin: 4px 0 8px; }
.score-tips li { margin-left: 18px; }
.draft textarea.caption { width: 100%; min-height: 110px; margin: 6px 0; }
.brief { background: #faf7ff; border: 1px dashed #e0d2f5; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); margin: 8px 0; }
.brief b { color: var(--g2); }
.research { font-size: 12.5px; color: var(--amber); margin: 6px 0; }
.draft .row.actions { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 10px; flex-wrap: wrap; }
.draft input[type="datetime-local"] { width: 215px; }
.draft img.media-preview { max-height: 120px; border-radius: 10px; margin-top: 6px; }

.activity { list-style: none; }
.activity li { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.activity li:last-child { border-bottom: none; }
.activity li b { color: var(--text); font-weight: 500; }
.activity .when { font-size: 11.5px; opacity: .75; }

.badge { background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 26px; width: min(620px, 92vw); max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(27,29,39,.18); }
dialog::backdrop { background: rgba(27, 29, 39, .45); }

.lock { position: fixed; inset: 0; background: var(--bg); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lock-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 36px 32px; width: min(380px, 92vw); text-align: center; box-shadow: var(--shadow); }
.lock-mark { width: 54px; margin-bottom: 10px; }
.lock-card .wordmark { font-size: 27px; }
.lock-card input { margin-top: 12px; text-align: center; }
.lock-error { color: var(--red); font-size: 13px; margin-top: 8px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--text); color: #fff; border-radius: 12px; padding: 13px 20px; font-size: 14px; z-index: 99; box-shadow: 0 10px 30px rgba(27,29,39,.3); }
.toast.err { background: var(--red); }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; overflow-x: auto; gap: 14px; }
  #nav { flex-direction: row; }
  .sidebar-foot { flex-direction: row; align-items: center; margin: 0 0 0 auto; }
  .steps, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .main { padding: 20px; }
}

/* --- planner, clients, login --- */
.userline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.userline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.sched-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.sched-row:last-child { border-bottom: none; }
.sched-text { color: var(--muted); }
#clBrands { min-height: 70px; }
#reportText { width: 100%; }
.lock { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 50; }
.lock-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px; width: min(360px, 90vw); text-align: center; box-shadow: var(--shadow); }
.lock-mark { width: 44px; margin-bottom: 8px; }
.lock-error { color: var(--red); font-size: 13px; margin-top: 10px; }

/* --- premium chrome: line icons, refined surfaces, calmer type --- */
:root { --bg: #f6f6fa; --soft: #f1f1f7; --ink2: #3b3e52; --ring: 0 0 0 1px rgba(27,29,39,.05); --shadow: 0 1px 2px rgba(27,29,39,.04), 0 10px 30px rgba(27,29,39,.06); }
body { font-feature-settings: "ss01"; letter-spacing: -.005em; }
h1 { font-size: 27px; letter-spacing: -.02em; }
h2 { letter-spacing: -.01em; }
.sidebar { background: rgba(255,255,255,.86); backdrop-filter: blur(10px); }
.ni { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#nav button { gap: 11px; transition: background .15s, color .15s; }
#nav button.active { background: linear-gradient(100deg, rgba(255,138,92,.1), rgba(255,111,196,.07)); box-shadow: inset 3px 0 0 var(--g2); }
#nav button.active .ni { stroke: var(--g2); }
.panel, .card, .stat, .draft { border-radius: 18px; box-shadow: var(--shadow); border-color: rgba(27,29,39,.07); }
.btn { border-radius: 11px; transition: border-color .15s, transform .1s, box-shadow .15s, filter .15s; }
.btn:active { transform: translateY(1px); }
input, select, textarea { border-radius: 11px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(255,79,46,.12); }
.tab-head { gap: 14px; flex-wrap: wrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tab { animation: tabIn .25s ease; }
@keyframes tabIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tab { animation: none; } }

/* --- home: campaign command centre --- */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; margin-bottom: 18px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #5b5bf0 0%, #8b46e6 38%, #e0407f 72%, #f97316 100%); box-shadow: 0 20px 50px rgba(139,70,230,.25); }
.hero::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero h1 { color: #fff; font-size: 29px; margin-bottom: 4px; }
.hero p { color: rgba(255,255,255,.88); font-size: 14.5px; max-width: 620px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.btn.light { background: #fff; color: #2a1d4a; border: none; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn.glass { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.flow-step { position: relative; background: var(--panel); border: 1px solid rgba(27,29,39,.07); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); cursor: pointer; text-align: left; font: inherit; color: var(--text); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 4px; }
.flow-step:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(27,29,39,.1); }
.flow-step .fs-n { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--g2); }
.flow-step b { font-size: 14.5px; font-weight: 600; }
.flow-step .fs-v { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.flow-step small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.flow-step.todo { border-color: rgba(217,122,6,.35); }
.flow-step.todo .fs-n { color: var(--amber); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid rgba(27,29,39,.07); }
.kpi .k-l { font-size: 12.5px; color: var(--muted); }
.kpi .k-v { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin-top: 2px; }
.kpi .k-s { font-size: 12px; color: var(--muted); }
.kpi.warn { border-color: #e8a0a0; background: #fff5f5; }
.kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.next { display: flex; flex-direction: column; gap: 8px; }
.next-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--soft); border-radius: 12px; font-size: 14px; }
.next-item span:first-child { font-size: 18px; }
.next-item div { flex: 1; }
.next-item small { display: block; color: var(--muted); font-size: 12.5px; }
.home-2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.home-2 .panel { margin-bottom: 0; }

/* --- link in bio --- */
.bio-live { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bio-live-l { display: flex; align-items: center; gap: 14px; }
.bio-live-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.url-chip { font-size: 13px; font-weight: 500; color: var(--g1); text-decoration: none; background: var(--soft); border-radius: 999px; padding: 7px 14px; overflow-wrap: anywhere; }
.btn.ai { background: var(--grad); color: #fff; border: none; font-weight: 600; box-shadow: 0 4px 14px rgba(255, 79, 46, .28); }
.switch { position: relative; width: 46px; height: 26px; margin: 0; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d9dbe6; border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--g2); outline-offset: 2px; }
.switch.sm { width: 36px; height: 21px; }
.switch.sm span::after { width: 15px; height: 15px; }
.switch.sm input:checked + span::after { transform: translateX(15px); }

.how { border: 1.5px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.how-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.how-steps li { background: var(--soft); border-radius: 12px; padding: 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.how-steps small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.how-n { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }

.seg { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 13px; padding: 4px; margin-bottom: 16px; flex-wrap: wrap; width: fit-content; max-width: 100%; box-shadow: var(--shadow); }
.seg button { background: none; border: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--text); color: #fff; }
.seg-n { font-size: 11px; background: var(--g2); color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 2px; }
.seg-n:empty { display: none; }

.bio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.bio-phone-col { position: sticky; top: 20px; }
.phone { width: 300px; height: 620px; margin: 0 auto; border-radius: 44px; padding: 11px; background: #15161d; box-shadow: 0 24px 60px rgba(27,29,39,.28); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; }

.cover-pick { display: flex; align-items: center; justify-content: center; height: 96px; border: 1.5px dashed var(--border); border-radius: 14px; margin: 4px 0 12px; cursor: pointer; color: var(--muted); font-size: 13px; background: var(--soft) center/cover no-repeat; }
.cover-pick.has { border-style: solid; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.cover-pick:hover { border-color: var(--g2); }
.bio-profile { display: flex; gap: 16px; align-items: flex-start; }
.bio-avatar { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex: none; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; cursor: pointer; margin: 0; box-shadow: 0 0 0 3px var(--panel), 0 0 0 4px var(--border); }
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-avatar:hover { filter: brightness(1.06); }
.prefix-input { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; background: #fbfbfe; margin-top: 4px; overflow: hidden; }
.prefix-input span { padding: 0 2px 0 12px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.prefix-input input { border: none; margin: 0; padding-left: 2px; background: transparent; min-width: 0; box-shadow: none; }
.prefix-input:focus-within { border-color: var(--g2); box-shadow: 0 0 0 3px rgba(255,79,46,.12); }
.color-in { width: 64px; height: 38px; padding: 3px; cursor: pointer; }

.themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.theme { border: 2px solid var(--border); border-radius: 12px; padding: 10px 8px 8px; cursor: pointer; font: inherit; font-size: 12px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: center; }
.theme.active { border-color: var(--g2); box-shadow: 0 0 0 3px rgba(255,79,46,.18); }
.theme-bar { height: 8px; border-radius: 4px; background: currentColor; opacity: .18; }
.theme b { font-weight: 500; margin-top: 2px; }

.bk { border: 1px solid var(--border); border-radius: 14px; margin-top: 10px; background: var(--panel); transition: box-shadow .15s, border-color .15s; }
.bk:hover { box-shadow: 0 4px 14px rgba(27,29,39,.06); }
.bk.open { border-color: rgba(255,79,46,.35); box-shadow: 0 6px 20px rgba(27,29,39,.07); }
.bk.off .bk-row { opacity: .5; }
.bk-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; flex-wrap: wrap; }
.bk-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 21px; flex: none; overflow: hidden; }
.bk-ico img { width: 100%; height: 100%; object-fit: cover; }
.bk-txt { flex: 1; min-width: 140px; display: flex; flex-direction: column; }
.bk-txt b { font-weight: 500; font-size: 14.5px; }
.bk-txt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-body { padding: 2px 14px 14px; border-top: 1px solid var(--border); }
.bk-body label { margin-top: 8px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; font: inherit; font-size: 14px; color: var(--text); flex: none; }
.icon-btn:hover:not(:disabled) { border-color: var(--g2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn.danger { color: var(--red); }
.sched { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sched summary { cursor: pointer; }
.dl-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.prod-row { display: flex; gap: 12px; align-items: flex-start; }
.prod-img { width: 92px; height: 92px; flex: none; border: 1.5px dashed var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; margin-top: 12px; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img:hover { border-color: var(--g2); }
.add-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.add-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1.5px dashed var(--border); border-radius: 12px; background: var(--panel); cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text); transition: background .15s, border-color .15s; }
.add-grid button span { font-size: 20px; }
.add-grid button:hover { border-color: var(--g2); border-style: solid; background: #fdf9ff; }
.kw { width: 150px; padding: 6px 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.save-bar { position: sticky; bottom: 16px; z-index: 20; margin: 8px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: center; gap: 12px; background: var(--text); color: #fff; border-radius: 14px; padding: 10px 12px 10px 18px; box-shadow: 0 14px 40px rgba(27,29,39,.3); font-size: 14px; }
.save-bar .btn.small { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

.bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 190px; padding-top: 34px; border-bottom: 1px solid var(--border); }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.bar span { display: block; width: 100%; background: var(--g2); border-radius: 4px 4px 0 0; }
.bar:hover span { background: var(--g1); }
.bars-empty { align-self: center; width: 100%; text-align: center; }
.bar-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.bars-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.stat-row.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bio-2, .bio-3 { gap: 18px; }
.bio-2 .panel, .bio-3 .panel { margin-bottom: 0; }
.rank { margin-bottom: 10px; font-size: 13.5px; }
.rank-top { display: flex; justify-content: space-between; gap: 10px; }
.rank-bar { height: 6px; background: var(--soft); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--g2); border-radius: 3px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 12px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.plan-tbl input { width: 110px; }

.qr-box { display: flex; justify-content: center; padding: 14px; background: var(--soft); border-radius: 14px; }
.qr-box img { width: 200px; height: 200px; background: #fff; border-radius: 8px; }
.chan { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.chan:last-child { border-bottom: none; }
.chan code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dm-result { margin-top: 12px; }
.dm { display: inline-block; max-width: 420px; background: linear-gradient(100deg, var(--g1), var(--g2)); color: #fff; padding: 10px 14px; border-radius: 18px 18px 4px 18px; font-size: 14px; }
.howto { margin: 6px 0 4px 20px; font-size: 13.5px; }
.howto li { margin-bottom: 6px; }
code { background: var(--soft); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }
#bioHookUrl, #setPaystackHook { font-family: ui-monospace, monospace; font-size: 12.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label { margin: 0; position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--border); color: var(--text); font-size: 13px; cursor: pointer; }
.chips input:checked + span { border-color: var(--g2); background: rgba(255,79,46,.08); color: var(--g2); font-weight: 500; }
.chips input:focus-visible + span { outline: 2px solid var(--g2); outline-offset: 2px; }

.check-top { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.ring { --c: var(--green); width: 76px; height: 76px; flex: none; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--soft) 0); display: flex; align-items: center; justify-content: center; }
.ring.mid { --c: var(--amber); }
.ring.lo { --c: var(--red); }
.ring span { width: 60px; height: 60px; border-radius: 50%; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; background: var(--soft); border-radius: 10px; padding: 9px 12px; }
.checklist li.ok { background: rgba(18,160,107,.07); }
.checklist li.bad { background: rgba(217,122,6,.08); }
.checklist small { display: block; color: var(--muted); font-size: 12.5px; }
.sub-h { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border: 1.5px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.plan.current { outline: 2px solid var(--green); outline-offset: 2px; }
.plan h3 { font-size: 17px; font-weight: 600; }
.plan-price { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; flex: 1; }
.plan li::before { content: "✓ "; color: var(--green); font-weight: 600; }
.plan-tag { position: absolute; top: -11px; right: 18px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }

@media (max-width: 1150px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-phone-col { position: static; }
  .stat-row.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid3, .home-2 { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .add-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row.six, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-2, .plans { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .how-steps, .flow { grid-template-columns: 1fr 1fr; }
  .chan { grid-template-columns: 1fr auto; }
  .chan code { grid-column: 1 / -1; grid-row: 2; }
  .phone { width: 100%; max-width: 300px; }
  .hero { padding: 22px 18px; }
}
.plan-pick { width: auto; padding: 6px 10px; font-size: 12.5px; }
.chip { white-space: nowrap; }

/* --- campaigns --- */
.badge.live { background: var(--green); }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cmp-card { text-align: left; font: inherit; color: var(--text); background: var(--panel); border: 1px solid rgba(27,29,39,.07); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; }
.cmp-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(27,29,39,.1); }
.cmp-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 8px; }
.cmp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-offer { font-size: 13.5px; background: linear-gradient(100deg, rgba(255,138,92,.07), rgba(124,92,255,.07)); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.cmp-offer.big { font-size: 15px; padding: 10px 14px; margin-top: 8px; max-width: 720px; }
.cmp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.cmp-nums div { background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.cmp-nums b { display: block; font-size: 15px; font-weight: 600; }
.cmp-nums small { color: var(--muted); font-size: 11.5px; }
.prog { margin-top: 8px; font-size: 12.5px; }
.prog-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.prog-top b { color: var(--text); font-weight: 500; }
.prog .rank-bar { height: 8px; border-radius: 4px; }
.prog .rank-bar span { background: var(--grad); border-radius: 4px; }
.empty { grid-column: 1 / -1; text-align: center; background: var(--panel); border: 1.5px dashed var(--border); border-radius: 20px; padding: 40px 20px; }
.empty-ico { font-size: 40px; }
.empty h3 { font-size: 18px; font-weight: 600; margin: 6px 0; }
.empty p { max-width: 520px; margin: 0 auto 14px; }
.back { background: none; border: none; font: inherit; color: var(--muted); cursor: pointer; padding: 0; margin-bottom: 12px; font-size: 14px; }
.back:hover { color: var(--text); }
.cmp-hero { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--panel); border-radius: 20px; padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow); border: 1.5px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.cmp-hero h1 { margin: 0; }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.k-of { font-size: 15px; color: var(--muted); font-weight: 500; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); border-radius: 1px; }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.tl-dot { position: absolute; left: -18px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--border); }
.tl-dot.approved { border-color: var(--green); }
.tl-dot.published { background: var(--green); border-color: var(--green); }
.tl-dot.pending { border-color: var(--amber); }
.tl-when { font-size: 12px; color: var(--muted); font-weight: 500; }
.tl-body { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.tl-body b { font-weight: 500; }
.cmp-qr { width: 96px; height: 96px; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.launch { margin-top: 14px; background: var(--soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.launch .check { font-size: 13.5px; }
#cmpCount { width: 64px; padding: 6px 8px; }
@media (max-width: 1150px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.six, .cmp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bar.future { background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(27,29,39,.04) 4px 8px); border-radius: 4px 4px 0 0; }
dialog { margin: auto; }
#cmpForm .grid3 input[type="number"] { width: 100%; }
#cmpForm .grid3 label { display: flex; flex-direction: column; justify-content: flex-end; }
#tab-settings .grid2 input[type="number"], #setRatePerPublished { width: 100%; }

/* --- icons --- */
svg.lucide { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.btn svg.lucide { margin-right: 2px; }
.bk-ico svg.lucide, .next-item > span svg.lucide, .add-grid button span svg.lucide { width: 21px; height: 21px; color: var(--g2); }
.how-steps svg.lucide, .empty-ico svg.lucide { width: 34px; height: 34px; color: var(--g2); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(18,160,107,.18); vertical-align: 1px; margin-right: 2px; }
.btn:disabled::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; }
.lock-mark { width: 56px; height: 56px; border-radius: 16px; }
.wordmark { font-weight: 800; letter-spacing: -.03em; }
.tagline { letter-spacing: 1.8px; }

/* ===== agency-grade refresh ===== */
.nav-h { font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #a0a3b5; padding: 14px 14px 4px; }
#nav { gap: 2px; overflow-y: auto; }
#nav button { padding: 9px 14px; font-size: 14px; }
.sidebar { overflow-y: auto; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.trial { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(100deg, rgba(79,70,229,.08), rgba(245,158,11,.08)); font-size: 14px; }
.fail-note { display: flex; gap: 8px; align-items: flex-start; background: #fdecef; color: #a3203f; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0; }

/* login / sign-up */
.lock { display: grid !important; grid-template-columns: 1fr minmax(360px, 480px); align-items: stretch; padding: 0 !important; background: var(--bg); }
.lock.hidden { display: none !important; }
.lock-side { background: radial-gradient(120% 140% at 0% 0%, #4f46e5 0%, #8b46e6 40%, #e0407f 75%, #f59e0b 110%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.lock-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.lock-brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.lock-h { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(38px, 4vw, 58px); line-height: 1.02; max-width: 560px; }
.lock-h em { font-style: italic; }
.lock-points { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.lock-points li { display: flex; gap: 10px; align-items: center; }
.lock-points svg.lucide { width: 20px; height: 20px; }
.lock-foot { opacity: .85; font-size: 14px; }
.lock-card { width: auto !important; border-radius: 0 !important; border: none !important; box-shadow: none !important; padding: 48px 44px !important; text-align: left !important; overflow-y: auto; max-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.lock-card h3 { font-size: 24px; letter-spacing: -.02em; }
.lock-card input { margin-top: 4px !important; text-align: left !important; }
.lock-card .chips span { font-size: 12.5px; padding: 6px 12px; }
.lock-tabs { display: flex; gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.lock-tabs button { flex: 1; background: none; border: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); padding: 9px; border-radius: 9px; cursor: pointer; }
.lock-tabs button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(27,29,39,.1); }
.lock-card a { color: var(--g1); }
@media (max-width: 860px) { .lock { grid-template-columns: 1fr; } .lock-side { display: none; } .lock-card { padding: 32px 20px !important; } }

/* getting started */
.start { border: 1.5px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.start-prog { width: 180px; height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.start-prog span { display: block; height: 100%; background: var(--grad); border-radius: 4px; transition: width .4s; }
.start-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-top: 12px; }
.start-item { display: flex; align-items: center; gap: 12px; background: var(--soft); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; font: inherit; text-align: left; cursor: pointer; color: var(--text); transition: border-color .15s, background .15s; }
.start-item:hover { border-color: rgba(147,51,234,.35); background: #fbf8ff; }
.start-item b { display: block; font-size: 13.5px; font-weight: 600; }
.start-item small { color: var(--muted); font-size: 12px; }
.start-item > span:nth-child(2) { flex: 1; }
.start-tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d5d7e3; flex: none; display: flex; align-items: center; justify-content: center; }
.start-item.done { opacity: .6; }
.start-item.done .start-tick { background: var(--green); border-color: var(--green); color: #fff; }
.start-item.done .start-tick svg { width: 14px; height: 14px; }
.start-hide { background: none; border: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; justify-self: start; padding: 6px; }

/* connections */
.conn-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.conn-hero h2 { font-size: 20px; }
.net-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.net { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.net.on { border-color: rgba(18,160,107,.4); }
.net-ic { width: 42px; height: 42px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.net-ic svg.lucide { width: 22px; height: 22px; }
.net-t { flex: 1; min-width: 0; }
.net-t b { display: block; }
.net-t small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.net-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.net-grid + .panel, .net-grid + .fail-note { margin-top: 16px; }
.conn-hero .row { flex-wrap: wrap; }
.fb-page { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.fb-page:first-of-type { border-top: 0; }
.fb-page.on .net-t b { color: var(--ok, #12a06b); }
.fail-note a { color: inherit; text-decoration: underline; }
.how-card svg.lucide { width: 26px; height: 26px; color: var(--g2); }
.how-card h3 { font-size: 15px; margin: 8px 0 2px; }
.how-card { margin-bottom: 0; }

/* studio */
.studio-grid { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-grid > .panel { margin-bottom: 0; }
.drop { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 2px dashed var(--border); border-radius: 16px; cursor: pointer; background: var(--soft); overflow: hidden; margin: 4px 0 0; transition: border-color .15s; }
.drop:hover { border-color: var(--g2); }
.drop span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--text); padding: 20px; }
.drop span svg.lucide { width: 30px; height: 30px; color: var(--g2); margin-bottom: 6px; }
.drop small { color: var(--muted); font-size: 12.5px; }
.drop img { width: 100%; max-height: 320px; object-fit: contain; background: #fff; }
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.scene { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--panel); cursor: pointer; font: inherit; font-size: 12px; color: var(--text); text-align: center; }
.scene svg.lucide { width: 20px; height: 20px; color: var(--g2); }
.scene.active { border-color: var(--g2); background: #fbf6ff; box-shadow: 0 0 0 3px rgba(147,51,234,.12); }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.lib-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); aspect-ratio: 3/4; border: none; padding: 0; }
.lib-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-item.pick { cursor: pointer; }
.lib-item.pick:hover { outline: 3px solid var(--g2); }
.lib-actions { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.lib-item:hover .lib-actions, .lib-item:focus-within .lib-actions { opacity: 1; }
.lib-actions .btn { flex: 1; background: rgba(255,255,255,.95); }
.lib-actions .icon-btn { background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; }
.lib-spin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(110deg, #f1f1f7 30%, #faf8ff 50%, #f1f1f7 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.lib-spin span { width: 26px; height: 26px; border: 3px solid var(--g2); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.lib-spin small { color: var(--muted); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (max-width: 1000px) { .studio-grid { grid-template-columns: 1fr; } }
@media (hover: none) { .lib-actions { opacity: 1; } }

/* posts: media + carousels */
.media-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.media-item { position: relative; display: block; }
.media-item img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; display: block; }
.media-file { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.media-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--text); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.media-x svg.lucide { width: 12px; height: 12px; }
.media-tools { margin-top: 6px; }
.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 10px 0; }
.slide-ed { position: relative; background: var(--soft); border-radius: 12px; padding: 10px 10px 8px 34px; }
.slide-ed input, .slide-ed textarea { background: var(--panel); font-size: 13px; padding: 7px 9px; margin-top: 0; }
.slide-ed textarea { margin-top: 6px; }
.slide-n { position: absolute; left: 10px; top: 12px; font-weight: 700; font-size: 12px; color: var(--g2); }
.car-prev { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.car-prev img { width: 100%; border-radius: 10px; box-shadow: 0 6px 18px rgba(27,29,39,.12); }
#pickModal { width: min(860px, 94vw); }

/* profile */
.pf-logo { display: flex; gap: 16px; align-items: center; }
.pf-logo .bio-avatar { border-radius: 16px; background: var(--soft); color: var(--muted); }
.pf-logo .bio-avatar img { object-fit: contain; background: #fff; }
.report-panel .tbl td { vertical-align: middle; }
#anRange { flex-wrap: nowrap; flex: none; }
#anRange button { white-space: nowrap; }

/* studio videos */
.lib-item video, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0c0b12; }
.media-item video { width: 72px; height: 72px; border-radius: 10px; }
.lib-badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(12,11,18,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); }
.lib-badge svg { width: 12px; height: 12px; }

/* =====================================================================
   Socialite v3 theme: midnight + coral, liquid-glass icons
   ===================================================================== */
:root {
  --bg: #f6f4f1;
  --panel: #ffffff;
  --border: #ebe7e1;
  --text: #15131f;
  --muted: #6f6b80;
  --ink: #0f0d17;
  --lime: #d4ff3f;
  --grad: linear-gradient(100deg, #ff8a5c 0%, #ff4f2e 38%, #ff6fc4 72%, #7c5cff 100%);
  --shadow: 0 1px 2px rgba(21,19,31,.05), 0 10px 30px -12px rgba(21,19,31,.12);
}
body { background: radial-gradient(1200px 500px at 100% -10%, rgba(255,111,196,.07), transparent 60%), radial-gradient(900px 400px at 20% -20%, rgba(255,138,92,.08), transparent 60%), var(--bg); background-attachment: fixed; }
h1 { font-weight: 800; letter-spacing: -.03em; font-size: 28px; }
h2 { font-weight: 700; letter-spacing: -.01em; }
.panel { border-radius: 18px; border-color: var(--border); }

/* sidebar */
.sidebar { background: var(--ink); border-right: none; color: #fff; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar::before { content: ""; position: absolute; inset: 0 0 auto; height: 260px; background: radial-gradient(180px 140px at 30% 0%, rgba(255,79,46,.28), transparent 70%); pointer-events: none; }
.wordmark { color: #fff; font-weight: 800; letter-spacing: -.03em; font-size: 22px; }
.tagline { color: rgba(255,255,255,.45); }
.logo-mark { width: 36px; }
.nav-h { color: rgba(255,255,255,.35) !important; }
#nav button { color: rgba(255,255,255,.66); position: relative; }
#nav button svg.lucide { width: 30px; height: 30px; padding: 6px; border-radius: 10px; flex: none; background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); transition: background .2s, box-shadow .2s, color .2s; }
#nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
#nav button.active { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
#nav button.active svg.lucide { color: #fff; background: linear-gradient(150deg, #ff9a6b, #ff4f2e); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 -6px 10px rgba(0,0,0,.2), 0 6px 16px -6px #ff4f2e; }
.sidebar .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.sidebar .chip.ok { color: var(--lime); border-color: rgba(212,255,63,.4); }
.sidebar .powered, .sidebar .userline { color: rgba(255,255,255,.55); }
.sidebar .powered b { color: #fff; }
.sidebar .btn.small { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.16); }
.sidebar .badge { background: var(--grad); color: #fff; }

/* buttons */
.btn { border-radius: 12px; transition: transform .15s, box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { border-color: rgba(255,79,46,.45); }
.btn.primary, .btn.ai { background: var(--grad); box-shadow: 0 8px 22px -8px rgba(255,79,46,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.primary:hover, .btn.ai:hover { transform: translateY(-1px); filter: none; box-shadow: 0 12px 26px -8px rgba(255,79,46,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.light { color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: #ff4f2e; }

/* home hero banner */
.hero { background: var(--ink); box-shadow: 0 30px 60px -30px rgba(255,79,46,.45); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,79,46,.7), transparent 65%); }
.hero::after { z-index: -1; width: 360px; height: 360px; left: -140px; right: auto; bottom: -240px; background: radial-gradient(circle, rgba(124,92,255,.6), transparent 65%); }
.hero h1 { font-weight: 800; letter-spacing: -.035em; }

/* liquid-glass icon (empty states, Team page) */
.lg { --c1: #ff9a6b; --c2: #ff4f2e; position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; flex: none; isolation: isolate; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: inset 0 1.5px 1px rgba(255,255,255,.7), inset 0 -8px 14px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 22px -10px var(--c2); }
.lg::before { content: ""; position: absolute; inset: 2px 5px auto; height: 48%; border-radius: 12px 12px 40% 40%; background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); z-index: -1; opacity: .75; }
.lg svg.lucide { width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 2px 3px rgba(0,0,0,.22)); }
.lg.pink { --c1: #ff9ad8; --c2: #e8459e; } .lg.violet { --c1: #a08bff; --c2: #6a45ff; } .lg.mint { --c1: #7ff5c8; --c2: #12b981; }
.lg.sky { --c1: #8edbff; --c2: #2f8fff; } .lg.gold { --c1: #ffd772; --c2: #ff9f1c; } .lg.lime { --c1: #e8ff7a; --c2: #9fd400; } .lg.lime svg.lucide { color: #1d2400; }
.empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 8px; background: linear-gradient(150deg, #ff9a6b, #ff4f2e); box-shadow: inset 0 1.5px 1px rgba(255,255,255,.7), inset 0 -10px 16px rgba(0,0,0,.2), 0 14px 26px -12px #ff4f2e; }
.how-steps svg.lucide, .empty-ico svg.lucide { color: #fff; width: 30px; height: 30px; }

/* login / sign-up: cinematic side */
.lock-side { position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.lock-side video, .lock-side .lock-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lock-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,13,23,.35), rgba(15,13,23,.88) 75%), radial-gradient(90% 60% at 0% 100%, rgba(15,13,23,.9), transparent); }
.lock-brand img { box-shadow: none; }
.lock-points svg.lucide { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* segmented controls */
.seg button.active { background: var(--ink); }
.seg-n { background: var(--grad); }

/* plans */
.cycle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); margin-bottom: 14px; }
.cycle button { border: none; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.cycle button.on { background: var(--ink); color: #fff; }
.cycle .save { font-size: 10.5px; font-weight: 800; background: var(--lime); color: #1d2400; border-radius: 999px; padding: 1px 7px; margin-left: 6px; }

/* team */
.team-list { display: flex; flex-direction: column; }
.tm { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.tm:first-child { border-top: none; }
.tm .av { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(150deg, #a08bff, #6a45ff); box-shadow: inset 0 1px 1px rgba(255,255,255,.6); }
.tm b { display: block; font-size: 14.5px; }
.tm small { color: var(--muted); font-size: 12.5px; }
.tm select { width: auto; padding: 6px 10px; font-size: 13px; margin: 0; }
.role-tag { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.role-tag.owner { background: rgba(255,79,46,.1); color: #d6381b; }
.role-tag.invited { background: rgba(255,159,28,.12); color: #b86b00; }
.seats { display: flex; align-items: center; gap: 12px; }
.seats .bar { flex: 1; height: 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.seats .bar i { display: block; height: 100%; background: var(--grad); border-radius: 8px; }
.invite-link { display: flex; gap: 8px; margin-top: 10px; }
.invite-link input { font-family: ui-monospace, monospace; font-size: 12.5px; }
.roles-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.roles-help div { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.roles-help b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
@media (max-width: 640px) { .tm { grid-template-columns: 40px 1fr; } .tm > :nth-child(n+3) { grid-column: 2; justify-self: start; } .roles-help { grid-template-columns: 1fr; } }
.plans { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan { padding: 22px 20px; }
.plan h3 { font-weight: 800; letter-spacing: -.02em; }
.plan-price { font-weight: 800; letter-spacing: -.04em; }
.plan.featured { box-shadow: 0 24px 50px -28px rgba(255,79,46,.6); }
.plan.current { outline-color: #ff4f2e; }
#nav { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
#nav::-webkit-scrollbar { width: 6px; } #nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 6px; } #nav::-webkit-scrollbar-track { background: transparent; }

/* credits */
.credit-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border: 1px solid rgba(212,255,63,.35); background: rgba(212,255,63,.08); color: var(--lime); border-radius: 999px; padding: 6px 12px 6px 8px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.credit-chip svg.lucide { width: 16px; height: 16px; }
.credit-chip.low { border-color: rgba(255,79,46,.5); background: rgba(255,79,46,.12); color: #ff8a5c; }
.credits-panel { background: radial-gradient(500px 200px at 100% 0%, rgba(255,79,46,.08), transparent 70%), var(--panel); }
.cr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cr-bal { font-size: 44px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: 2px 0 4px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pack { border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.pack b { font-size: 24px; letter-spacing: -.03em; }
.pack .btn { margin-top: 10px; }
.pack.pop { border-color: rgba(255,79,46,.5); box-shadow: 0 14px 30px -20px rgba(255,79,46,.7); }
.pack-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.pack-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.cr-prices { margin-top: 16px; }
.cr-prices summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cr-prices td svg.lucide, .ledger td svg.lucide { width: 15px; height: 15px; vertical-align: -2px; color: var(--muted); }
.managed { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mt { border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.mt h3 { font-size: 16px; font-weight: 800; }
.mt ul { list-style: none; margin-top: 8px; display: grid; gap: 5px; font-size: 13.5px; }
.mt li::before { content: "✓ "; color: var(--green); font-weight: 700; }
.ledger tr.plus td:last-child b { color: var(--green); }
.ledger tr.refunded td { opacity: .55; }
.lib-badge.demo-badge { left: auto; right: 8px; background: rgba(212,255,63,.9); color: #1d2400; border-color: transparent; }

/* access codes */
.code-ok { color: var(--green) !important; }
.code-bad { color: var(--red) !important; }
code.big-code { font-size: 15px; font-weight: 700; letter-spacing: 1px; background: var(--bg); padding: 3px 8px; border-radius: 8px; }

/* strategy */
.strat-hero { background: linear-gradient(135deg, #fff7f3, #f6f1ff 60%, #fff0f8); border-color: rgba(124,92,255,.18); }
.strat-hero .eyebrow { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--g2); font-weight: 700; }
.strat-hero .promise { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strat-health .score { display: flex; align-items: baseline; gap: 2px; } .strat-health .score b { font-size: 34px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } .strat-health .score small { color: var(--muted); }
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.health-item { display: flex; gap: 10px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.health-item.ok { opacity: .75; } .health-item b { display: block; font-size: 13.5px; } .health-item small { color: var(--muted); font-size: 12px; display: block; }
.health-item > span:nth-child(2) { flex: 1; }
.aud { padding: 10px 0; border-top: 1px solid var(--border); font-size: 13.5px; } .aud:first-of-type { border-top: 0; } .aud .k { display: inline-block; min-width: 56px; color: var(--muted); font-size: 12px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pillar { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; } .pillar .bar { height: 6px; border-radius: 6px; background: #eee; margin: 8px 0; overflow: hidden; } .pillar .bar i { display: block; height: 100%; background: var(--grad); } .pillar ul { margin: 6px 0; padding-left: 18px; }
.bio-row { border-top: 1px solid var(--border); padding: 8px 0; } .bio-row:first-of-type { border-top: 0; } .bio-row pre { white-space: pre-wrap; font: inherit; font-size: 13.5px; margin: 4px 0; }
.checklist .chk { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; } .checklist .chk summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; } .checklist .chk.done summary { opacity: .7; } .checklist .chk ol { margin: 8px 0; padding-left: 22px; font-size: 13.5px; }
.kit-details { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 8px 0; } .kit-details summary { cursor: pointer; font-weight: 500; }
@media (max-width: 760px) { .health-grid, .pillars { grid-template-columns: 1fr; } }
@media print { .sidebar, #stratWrite, #stratKit, .strat-health, .btn, #trialBanner { display: none !important; } .main { padding: 0; } }

.panel.founding { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #fff7f3, #f6f1ff 60%, #fff0f8); border-color: rgba(124,92,255,.25); }
.panel.founding .eyebrow { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--g2); font-weight: 700; }

/* calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-key { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; } .cal-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.k-pending { border: 1.5px dashed #b9b9c3; } .k-approved { background: var(--grad); } .k-posted { background: #12a06b; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 11.5px; color: var(--muted); text-align: center; padding: 4px 0; text-transform: uppercase; letter-spacing: 1px; }
.cal-day { min-height: 96px; border: 1px solid var(--border); border-radius: 12px; padding: 6px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.cal-day.other { opacity: .45; } .cal-day.today { border-color: var(--g2); box-shadow: 0 0 0 2px rgba(255,79,46,.15); }
.cal-day.past { background: #fafafa; }
.cal-num { font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.cal-tag { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: #f3f0ff; color: #4b3bb3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-tag.pay { background: #e8f8f0; color: #0e7a50; }
.cal-item { font-size: 11.5px; line-height: 1.25; border-radius: 8px; padding: 4px 6px; cursor: pointer; border: 1.5px solid transparent; overflow: hidden; display: flex; gap: 4px; align-items: center; }
.cal-item.pending { border-style: dashed; border-color: #b9b9c3; color: var(--muted); }
.cal-item.approved { background: linear-gradient(100deg, rgba(255,138,92,.18), rgba(124,92,255,.18)); border-color: rgba(124,92,255,.25); }
.cal-item.posted { background: #e8f8f0; border-color: #bfe9d4; color: #0e5c3d; }
.cal-item .t { font-weight: 600; flex: none; } .cal-item .x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: 11px; color: var(--muted); }
@media (max-width: 760px) { .cal-grid { gap: 3px; } .cal-day { min-height: 64px; padding: 4px; } .cal-item .x { display: none; } .cal-dow { font-size: 10px; } }

/* Analytics v2: deltas, funnel, attribution */
.delta{display:inline-block;margin-left:6px;font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px;background:var(--bg)}
.delta.up{color:var(--green);background:rgba(18,160,107,.1)}
.delta.down{color:var(--red);background:rgba(224,53,92,.1)}
.delta.flat{color:var(--muted)}
.funnel{display:grid;gap:10px;margin-top:10px}
.fstep{display:grid;grid-template-columns:1fr 2fr auto;gap:12px;align-items:center}
.fstep .f-l{font-size:13px}
.fstep .f-bar{height:14px;border-radius:7px;background:var(--bg);border:1px solid var(--border);overflow:hidden}
.fstep .f-bar span{display:block;height:100%;border-radius:7px;background:var(--grad)}
.fstep .f-v{font-weight:700;min-width:70px;text-align:right}
.fstep .f-v small{display:block;font-weight:500;color:var(--muted);font-size:11px}
.pill.tiny{font-size:10px;padding:1px 6px}
@media (max-width:700px){.fstep{grid-template-columns:1fr auto}.fstep .f-bar{grid-column:1/-1}}
.rec-posts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.btn.tiny{font-size:11.5px;padding:4px 10px;max-width:100%;white-space:normal;text-align:left}
.btn.tiny.done{opacity:.7}
.pill.tiny.ok{background:rgba(18,160,107,.12);color:var(--green)}

/* Refer & earn */
.ref-card{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;background:linear-gradient(100deg,rgba(255,138,92,.1),rgba(124,92,255,.1))}
.ref-link{display:flex;gap:8px;margin-top:6px;min-width:min(520px,100%)}
.ref-link input{flex:1;min-width:0}

/* Campaign templates, ad kit */
.tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:6px}
.tpl{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--panel);cursor:pointer;font:inherit;color:inherit}
.tpl i{width:18px;height:18px;color:var(--g2)}
.tpl b{font-size:13px}.tpl small{color:var(--muted);font-size:11.5px;line-height:1.3}
.tpl.on{border-color:var(--g2);background:linear-gradient(100deg,rgba(255,138,92,.1),rgba(124,92,255,.08))}
.pill.beat{background:rgba(124,92,255,.1);color:var(--g4);border-color:transparent}
h3.sub{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:16px 0 6px}
.ad{padding:10px 12px;border:1px solid var(--border);border-radius:12px;margin-bottom:8px}.ad p{margin:2px 0}
.msg{background:var(--bg);border-radius:10px;padding:8px 10px;font-size:13.5px}

/* competitor watch */
.comp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 6px 0 10px; }
.comp-stats > div { display: flex; flex-direction: column; gap: 2px; }
.comp-stats b { font-size: 22px; letter-spacing: -0.01em; }
.comp-stats .delta { font-size: 12.5px; font-weight: 500; }
.comp-stats .delta.up { color: #1a7f4b; }
.comp-stats .delta.down { color: #b42318; }
.comp .spark { color: var(--accent, #6d4aff); display: block; max-width: 100%; }
.comp .spark-wrap { justify-content: flex-end; }
.comp-add { border-top: 1px solid var(--border); padding: 10px 0 2px; margin-top: 10px; }
.comp-add summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.comp textarea { width: 100%; }
.comp .teardown { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.comp .teardown ul { margin: 4px 0 8px 18px; padding: 0; }

/* messages */
.msg-card .msg-text { margin: 4px 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.msg-card .msg-sent { background: rgba(0,0,0,.035); border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 13.5px; }
.msg-card .msg-suggest { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.msg-card textarea { width: 100%; }

/* branded templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tpl-card { position: relative; display: block; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; }
.tpl-card.on { border-color: var(--accent, #6d4aff); box-shadow: 0 0 0 3px rgba(109, 74, 255, .18); }
.tpl-card img { display: block; width: 100%; height: auto; }
.tpl-card input { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; accent-color: var(--accent, #6d4aff); z-index: 2; }
.tpl-card .btn { display: block; text-align: center; margin: 6px; }

/* client logins (guests) see a calm, read-and-approve app */
body.guest #creditChip, body.guest #newBrandBtn, body.guest #aiModeChip, body.guest .no-guest { display: none !important; }

/* log-in: forgot password, show password, help, phone logo */
.pw-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 13.5px; }
.pw-row a { font-size: 13px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px !important; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: calc(50% + 2px); transform: translateY(-50%); background: none; border: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.pw-eye:hover { color: var(--text); background: var(--soft); }
.lock-ok { color: #1a7f4b; background: #e9f7ef; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-top: 12px; }
.lock-help { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 16px; }
.lock-help b { color: var(--text); }
.lock-mbrand { display: none; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--text) !important; text-decoration: none; margin-bottom: 18px; }
.lock-mbrand img { width: 30px; height: 30px; }
@media (max-width: 860px) { .lock-mbrand { display: flex; } .lock-card { justify-content: flex-start !important; padding-top: 28px !important; } }

/* planner drag */
.cal-item[draggable="true"] { cursor: grab; }
.cal-item.dragging { opacity: .45; }
.cal-day.over { border-color: var(--g1, #ff4f2e); background: #fff6f3; box-shadow: inset 0 0 0 2px rgba(255,79,46,.25); }

/* hover explainers (public/tips.js) */
.tipbubble { position: fixed; z-index: 1000; pointer-events: none; background: #17151f; color: #fff; font-size: 12.5px; line-height: 1.45; font-weight: 500; padding: 8px 11px; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); opacity: 0; transform: translateY(2px); transition: opacity .12s ease, transform .12s ease; max-width: 280px; }
.tipbubble.on { opacity: 1; transform: none; }
/* load failure banner */
.app-error { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 900; background: #fff; border: 1px solid #f3c5c5; color: #8f1d1d; border-radius: 14px; box-shadow: 0 14px 40px -16px rgba(0,0,0,.35); padding: 12px 14px; display: flex; gap: 12px; align-items: center; max-width: min(640px, calc(100vw - 32px)); font-size: 14px; }
.app-error b { color: #6d1414; }
.app-error .btn { flex: none; }

/* =====================================================================
   Phone layout (900px and narrower): top bar, slide-out menu, bottom tabs,
   big tap targets, 16px fields (so iPhones do not zoom), tables that scroll
   inside their own box, full-width pop-ups. Wide screens are unchanged.
   ===================================================================== */
.mbar, .bottombar, .scrim, .drawer-close { display: none; }
@media print { .mbar, .bottombar, .scrim { display: none !important; } }
@media (hover: none) { .tipbubble { display: none !important; } }

@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
  body.navopen { overflow: hidden; }
  .app { display: block; min-height: 100vh; }

  /* top bar */
  .mbar { display: flex; position: sticky; top: 0; z-index: 90; align-items: center; gap: 8px; height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0 6px; background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  .mbar-btn { width: 46px; height: 46px; display: grid; place-items: center; border: none; background: transparent; color: #fff; border-radius: 14px; cursor: pointer; flex: none; }
  .mbar-btn:active { background: rgba(255,255,255,.1); }
  .mbar-btn svg { width: 24px; height: 24px; }
  .mbar-logo { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
  .mbar-logo img { height: 30px; width: auto; flex: none; }
  .mbar-credits { display: inline-flex; align-items: center; gap: 6px; flex: none; border: 1px solid rgba(212,255,63,.35); background: rgba(212,255,63,.08); color: var(--lime); border-radius: 999px; padding: 0 12px 0 9px; height: 36px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .mbar-credits svg { width: 16px; height: 16px; }
  .mbar-credits.low { border-color: rgba(255,79,46,.5); background: rgba(255,79,46,.14); color: #ff8a5c; }

  /* slide-out menu */
  .scrim { display: block; position: fixed; inset: 0; z-index: 140; background: rgba(15,13,23,.58); opacity: 0; pointer-events: none; transition: opacity .22s; }
  body.navopen .scrim { opacity: 1; pointer-events: auto; }
  .sidebar { position: fixed; z-index: 150; top: 0; left: 0; bottom: 0; width: min(86vw, 330px); height: 100vh; height: 100dvh; flex-direction: column; align-items: stretch; flex-wrap: nowrap; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; gap: 18px; padding: calc(20px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom)); transform: translateX(-104%); visibility: hidden; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s; }
  body.navopen .sidebar { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s; box-shadow: 24px 0 60px rgba(0,0,0,.45); }
  .drawer-close { display: grid; place-items: center; position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 10px; width: 40px; height: 40px; border: none; background: rgba(255,255,255,.08); color: #fff; border-radius: 12px; cursor: pointer; z-index: 2; }
  .drawer-close svg { width: 20px; height: 20px; }
  #nav { flex-direction: column; flex: none; overflow: visible; }
  #nav button { min-height: 46px; font-size: 15px; white-space: normal; }
  .sidebar-foot { flex-direction: row; flex-wrap: wrap; align-items: center; margin: auto 0 0; padding: 12px 6px 0; border-top: 1px solid rgba(255,255,255,.08); gap: 10px; }
  .sidebar-foot .powered { flex-basis: 100%; }
  .userline { flex: 1; min-width: 0; }
  .userline span { max-width: 140px; }
  .sidebar .btn.small { min-height: 38px; }

  /* bottom tab bar */
  .bottombar { display: flex; position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 2px; background: rgba(15,13,23,.97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.08); }
  .bottombar button { position: relative; flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: none; background: transparent; color: rgba(255,255,255,.62); font: inherit; font-size: 11px; font-weight: 600; border-radius: 14px; cursor: pointer; }
  .bottombar button.hidden { display: none; }
  .bottombar button svg { width: 22px; height: 22px; }
  .bottombar button.on { color: #fff; background: rgba(255,255,255,.07); }
  .bottombar button.on svg { color: #ff7a52; }
  .bb-badge { position: absolute; top: 3px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
  .bb-badge.hidden { display: none; }

  /* page body */
  .main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); max-width: none; width: 100%; min-width: 0; }
  h1 { font-size: 24px; }
  .lead { font-size: 14px; }
  .tab-head { align-items: flex-start; }
  .panel, .draft { padding: 16px; border-radius: 16px; }
  .hero { padding: 22px 18px; border-radius: 20px; }
  .hero h1 { font-size: 25px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
  .steps, .stat-row, .grid3, .home-2 { grid-template-columns: 1fr; }
  .stat-row.four, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.right { justify-content: stretch; }
  .draft input[type="datetime-local"] { width: 100%; }
  .draft .row.actions .btn { flex: 1 1 auto; }
  .seg { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { white-space: nowrap; }
  .phone { width: min(300px, 100%); }

  /* tap targets and fields: 16px stops iPhones zooming in on focus */
  input, select, textarea { font-size: 16px; min-height: 46px; }
  textarea { min-height: 96px; }
  input[type="checkbox"], input[type="radio"] { min-height: 0; width: 20px; height: 20px; flex: none; }
  input[type="file"] { min-height: 0; }
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .btn.small { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
  .check { min-height: 32px; }
  .cycle button, .seg button { min-height: 40px; }

  /* tables scroll inside their own box instead of widening the page */
  table.tbl { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .plan-tbl input { width: 96px; }

  /* pop-ups, toasts */
  dialog, #pickModal { width: calc(100vw - 20px) !important; max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 18px; border-radius: 18px; }
  .toast { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 160; text-align: center; }
  .app-error { margin: 0 0 14px; }

  .lock { z-index: 300; }

  /* things that used to rely on a wide screen */
  .row { flex-wrap: wrap; }
  .row.nowrap, #anRange { flex-wrap: nowrap; }
  .bio-grid { grid-template-columns: minmax(0, 1fr); }
  .bio-grid > *, .panel, .draft, .card { min-width: 0; }
  .bio-profile { gap: 12px; }
  .cal-head { flex-wrap: wrap; gap: 8px; }
  .cal-head > .row { flex-wrap: nowrap; width: 100%; }
  #calTitle { min-width: 0 !important; flex: 1; font-size: 17px; }
  .prefix-input span { max-width: 45%; }
  img, video, canvas { max-width: 100%; }
}

@media (max-width: 480px) {
  .main { padding-left: 14px; padding-right: 14px; }
  .flow, .how-steps { grid-template-columns: 1fr; }
  .kpis, .stat-row.six, .stat-row.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-bal { font-size: 38px; }
  .cal-day { min-height: 56px; }
  .packs { grid-template-columns: 1fr 1fr; }
}

/* logo (icon + name image) */
.logo { padding: 0 6px; }
.logo-lockup { display: block; height: 38px; width: auto; max-width: 100%; }
.lock-brand img { width: auto; height: 38px; border-radius: 0; box-shadow: none; }
.lock-mbrand img { width: auto; height: 34px; }

/* launch */
.sidebar .badge.new-badge { background: var(--lime, #d4ff3f); color: #15131f; font-weight: 700; font-size: 10px; letter-spacing: .3px; }
.launch-setup .eyebrow, .launch-hero .eyebrow { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--g2); font-weight: 700; }
.launch-setup h3 { font-size: 14.5px; margin: 16px 0 8px; }
.launch-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.launch-type { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 8px; cursor: pointer; background: #fff; font-size: 13px; margin: 0; }
.launch-type input { display: none; }
.launch-type svg { width: 22px; height: 22px; color: var(--muted); }
.launch-type.on { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 6px 18px -8px rgba(255,79,46,.45); }
.launch-type.on svg { color: var(--g2); }
.launch-hero { background: linear-gradient(135deg, #fff7f3, #f6f1ff 60%, #fff0f8); border-color: rgba(124,92,255,.2); }
.launch-count { font-size: 30px; letter-spacing: -.02em; margin: 4px 0; font-weight: 600; }
.launch-count b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.launch-ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(#ff4f2e calc(var(--p) * 1%), #ece8f3 0); display: grid; place-content: center; text-align: center; position: relative; flex: none; }
.launch-ring::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.launch-ring b, .launch-ring small { position: relative; display: block; } .launch-ring b { font-size: 20px; } .launch-ring small { font-size: 11px; color: var(--muted); }
.launch-next { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.75); border: 1px solid var(--border); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.launch-seg button { display: inline-flex; align-items: center; gap: 6px; } .launch-seg svg { width: 15px; height: 15px; }
.launch-task { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--border); }
.launch-task:first-of-type { border-top: 0; }
.launch-task .start-tick { flex: none; cursor: pointer; border: 1.5px solid #c9c5d6; background: #fff; }
.launch-task .start-tick.auto { cursor: default; }
.launch-task.done .start-tick { background: var(--grad); border-color: transparent; color: #fff; }
.launch-task.done .lt-main b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.2); }
.lt-main { flex: 1; min-width: 0; font-size: 14px; } .lt-main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.lt-main details { margin-top: 6px; font-size: 13px; } .lt-main summary { cursor: pointer; color: var(--g2); font-weight: 500; } .lt-main ol { margin: 6px 0; padding-left: 20px; }
.lt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; } .lt-side small { font-size: 12px; white-space: nowrap; }
.play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.play-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; font-size: 13.5px; background: #fff; }
.play-card b svg { width: 16px; height: 16px; vertical-align: -3px; }
.play-card dl { display: grid; grid-template-columns: 86px 1fr; gap: 4px 10px; margin: 10px 0; } .play-card dt { color: var(--muted); font-size: 12.5px; } .play-card dd { margin: 0; }
.play-card ul { margin: 6px 0 8px; padding-left: 18px; color: var(--ink2, #3b3e52); }
.launch-steps { padding-left: 20px; font-size: 14px; line-height: 1.55; } .launch-steps li { margin: 2px 0; }
.launch-est { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; margin-top: 14px; padding: 12px 14px; background: var(--soft, #f1f1f7); border-radius: 12px; }
.launch-est b { font-size: 20px; display: block; } .launch-est small { color: var(--muted); } .launch-est p { flex: 1 1 260px; margin: 0; font-size: 12.5px; }
.price-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.price-tier { border: 1px solid var(--border); border-radius: 14px; padding: 14px; font-size: 13.5px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.price-tier.pop { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.price-tier .pill { align-self: flex-start; }
.pt-total { font-size: 24px; font-weight: 800; letter-spacing: -.02em; } .pt-total small { font-size: 12px; font-weight: 400; color: var(--muted); }
.pt-break { font-size: 12px; } .price-tier p { margin: 6px 0 0; color: var(--ink2, #3b3e52); }
@media (max-width: 960px) { .launch-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } .price-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .launch-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } .play-grid, .price-tiers { grid-template-columns: 1fr; } .launch-task { flex-wrap: wrap; } .lt-side { flex-direction: row; align-items: center; width: 100%; padding-left: 36px; justify-content: space-between; } .launch-count { font-size: 24px; } .launch-ring { width: 78px; height: 78px; } }
@media print { #launchSetup, .launch-seg, .launch-next .btn, .lt-side .btn { display: none !important; } }
.launch-task .start-tick svg { width: 14px; height: 14px; }
.tbl td.nowrap { white-space: nowrap; } .launch-msgs { padding-left: 20px; margin: 8px 0 12px; }
