/* Mithraa Digital Client Portal — theme matched to mithraadigital.com */
:root {
  --red: #C81428;
  --red-dark: #8E0E1E;
  --red-tint: #FBE1E3;
  --cream: #FDF3EF;
  --blush: #FBE9E4;
  --card: #FFFFFF;
  --ink: #1C1210;
  --body: #4A3B37;
  --muted: #6B5650;
  --line: #F1DED8;
  --line-strong: #E6CFC8;
  --green: #2F6B45;
  --green-tint: #E3F4E8;
  --radius: 14px;
  --shadow-cta: 0 8px 20px rgba(200, 20, 40, 0.22);
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
img, video { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--ink); }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.accent { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 600 14px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); color: var(--ink); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-approve { background: var(--green); border-color: var(--green); color: #fff; font-weight: 800; font-size: 15px; min-height: 50px; }
.btn-approve:hover { background: #24563a; color: #fff; }
.btn-changes { background: #fff; border-color: #C53030; color: #A12B2B; font-weight: 800; font-size: 15px; min-height: 50px; }
.btn-changes:hover { background: #FCE4E4; color: #A12B2B; border-color: #A12B2B; }
.btn-soft { background: var(--blush); border-color: var(--blush); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--red); padding: 0; min-height: 0; font-weight: 600; cursor: pointer; font: inherit; text-decoration: underline; }
.btn-danger { color: #A12B2B; border-color: #E3A3A3; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 116px; height: auto; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-dark); }
.brand .eyebrow { border-left: 1px solid var(--line-strong); padding-left: 12px; }
.switcher { display: flex; align-items: center; gap: 8px; }
.switcher label { font-size: 13px; font-weight: 700; color: var(--muted); }
.spacer { flex: 1 1 auto; }
.user-chip { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red-tint); color: var(--red-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.2; }
.user-chip .who strong { font-size: 14px; }
.user-chip .who span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tabs a { padding: 12px 2px 10px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--red); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--ink); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; font: 400 15px/1.4 var(--font-body); color: var(--ink); background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(200, 20, 40, 0.15); }
.help { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.type-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-option span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-weight: 700; }
.type-option span small { font-weight: 500; color: var(--muted); font-size: 12px; }
.type-option input:checked + span { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.type-option input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Layout ---------- */
.page { padding-top: 24px; padding-bottom: 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head .titles { display: flex; flex-direction: column; gap: 4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 640px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; max-width: 440px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }

/* ---------- Flash ---------- */
.flash { border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.flash-success { background: var(--green-tint); color: #1F4D31; border-color: #BFE3CB; }
.flash-error { background: #FCE4E4; color: #8A1F1F; border-color: #F2B6B6; }
.flash-info { background: var(--blush); color: var(--body); border-color: var(--line-strong); }

/* ---------- Pills & status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--blush); color: var(--ink); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; }

/* ---------- Stats & client cards ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--font-display); font-size: 38px; font-weight: 800; line-height: 1; }
.stat span { font-size: 14px; font-weight: 600; color: var(--body); }
.client-card { display: flex; flex-direction: column; gap: 16px; }
.client-head { display: flex; align-items: center; gap: 12px; }
.logo-tile { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.counters div, .counters a { display: flex; flex-direction: column; }
.counters a { color: var(--ink); text-decoration: none; border-radius: 8px; padding: 4px 6px; margin: -4px -6px; }
.counters a:hover { background: var(--cream, #FBF7F2); }
.counters a:hover span { color: var(--red); }
.counters strong { font-size: 24px; font-weight: 800; font-family: var(--font-display); line-height: 1.1; }
.counters span { font-size: 12px; color: var(--muted); }

/* ---------- Calendar ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.cal-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cal { min-width: 780px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 10px 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); }
.cal-day { min-height: 128px; padding: 8px; border-right: 1px solid #F5E7E2; border-bottom: 1px solid #F5E7E2; display: flex; flex-direction: column; gap: 6px; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day.blank { background: #FBEEEA; }
.cal-day.today .daynum { background: var(--red); color: #fff; }
.daynum { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 24px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.day-head { display: flex; align-items: center; justify-content: space-between; }
.add-link { font-size: 18px; line-height: 1; text-decoration: none; color: var(--muted); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.add-link:hover { background: var(--blush); color: var(--red); }
.chip { display: flex; flex-direction: column; gap: 1px; border-radius: 8px; padding: 6px 8px; text-decoration: none; color: var(--ink); }
.chip:hover { color: var(--ink); filter: brightness(0.97); }
.chip .top { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.chip .ttl { font-size: 12px; color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Feed grid ---------- */
.ig-head { display: flex; align-items: center; gap: 10px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.ig-tile { aspect-ratio: 4 / 5; position: relative; overflow: hidden; display: block; background: #E9DCD7; color: #fff; text-decoration: none; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.ig-tile .ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 8px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.ig-tile .when { position: absolute; top: 6px; left: 6px; background: #fff; color: var(--ink); font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.ig-tile .kind { position: absolute; top: 6px; right: 6px; background: rgba(28, 18, 16, 0.7); color: #fff; width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }

/* Phone agenda (replaces the month grid on small screens) */
.agenda { display: none; }
.agenda-day { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.agenda-day:last-child { border-bottom: none; }
.agenda-day .d { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.agenda-day.today .d { color: var(--red); }
.agenda .chip { padding: 10px 12px; }
.agenda .chip .ttl { font-size: 14px; white-space: normal; }
.ig-empty { aspect-ratio: 4 / 5; background: #F5E7E2; }
.review-item { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.review-item:hover { border-color: var(--line-strong); background: #FFFBFA; color: var(--ink); }
.review-item .t { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.review-item strong { font-size: 14px; }
.review-item span { font-size: 12px; color: var(--muted); }

/* ---------- Post view ---------- */
.preview-col { flex: 1 1 360px; min-width: 0; max-width: 500px; }
.detail-col { flex: 999 1 420px; min-width: 0; }
.frame { width: 100%; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #1C1210; position: relative; display: flex; align-items: center; justify-content: center; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: contain; background: #1C1210; }
.frame.r916 { aspect-ratio: 9 / 16; max-width: 320px; }
.frame.r45 { aspect-ratio: 4 / 5; max-width: 440px; }
.slides .slide { display: none; width: 100%; height: 100%; }
.slides .slide.on { display: block; }
.flag-badge { position: absolute; top: 12px; left: 12px; background: #fff; color: #A12B2B; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 6px; z-index: 1; }
.slide-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.slide-tab { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font-weight: 800; position: relative; cursor: pointer; color: var(--ink); font-family: var(--font-body); font-size: 14px; }
.slide-tab.on { background: var(--red); border-color: var(--red); color: #fff; }
.slide-tab .fdot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #C53030; border: 1px solid #fff; }
.meta-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.caption { white-space: pre-line; }
.hashtags { color: var(--red-dark); font-weight: 500; }
.decision { display: flex; flex-wrap: wrap; gap: 10px; }
.decision .btn { flex: 1 1 180px; }
.comment { border-radius: 12px; padding: 10px 12px; background: var(--blush); display: flex; flex-direction: column; gap: 4px; }
.comment.client { background: var(--red-tint); }
.comment.system { background: transparent; border: 1px dashed var(--line-strong); }
.comment.system .body { font-style: italic; color: var(--body); }
.comment .head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.comment .head strong { font-weight: 800; }
.tag { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--red-dark); border: 1px solid #F2B6BD; }
.vtag { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.comment .body { font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.tc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tc-field { display: flex; gap: 6px; align-items: flex-end; }
.tc-field .field { flex: 1; }
.versions a { text-decoration: none; }
.notice-approved { background: var(--green-tint); border-radius: var(--radius); padding: 16px 20px; color: #1F4D31; }
.dropzone { border: 1px dashed #A9A9A0; border-radius: var(--radius); padding: 16px 20px; background: #fff; }
details summary { cursor: pointer; font-weight: 700; }

/* ---------- Shoots ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.step { border-radius: 12px; padding: 10px 12px; background: var(--blush); color: var(--muted); display: flex; flex-direction: column; }
.step.done { background: var(--red-tint); color: var(--red-dark); }
.step.now { background: var(--red); color: #fff; }
.step b { font-size: 12px; font-weight: 800; }
.step span { font-size: 14px; font-weight: 700; }
.props-list { list-style: none; margin: 0; padding: 0; }
.props-list form { margin: 0; }
.prop-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; background: none; border: none; padding: 4px 0; text-align: left; font: 400 14px/1.4 var(--font-body); color: var(--ink); cursor: pointer; }
.prop-btn .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; }
.prop-btn.done .box { background: var(--red); border-color: var(--red); }
.prop-btn.done .label { text-decoration: line-through; color: var(--muted); }
.script { white-space: pre-line; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: none; }

/* ---------- Guest (login) ---------- */
.guest { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; position: relative; overflow: hidden; }
.guest .arc { position: absolute; left: -190px; top: -210px; width: 440px; height: 440px; border-radius: 50%; border: 52px solid var(--red); }
.guest .arc2 { position: absolute; right: -240px; bottom: -260px; width: 480px; height: 480px; border-radius: 50%; border: 40px solid var(--red-tint); }
.auth-card { position: relative; width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-card .logo { width: 150px; height: auto; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.footer-note { text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .card { padding: 16px; }
  .auth-card { padding: 28px 20px; }
  .brand img { width: 96px; }
  .user-chip .who { display: none; }
  .tc-row { grid-template-columns: 1fr; }
  .cal-scroll { display: none; }
  .agenda { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
  .header-row { gap: 10px 12px; }
}
.tc-field .btn { min-height: 46px; }

/* ---------- Two-stage approval (plan/script, then creative) ---------- */
.chip.plan { border: 1.5px dashed rgba(28, 18, 16, 0.28); }
.chip-key { display: inline-block; width: 16px; height: 10px; border-radius: 3px; border: 1.5px dashed rgba(28, 18, 16, 0.4); }
.plan-ph { position: absolute; inset: 0; background: var(--blush); color: var(--body); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 12px; }
.plan-ph strong { color: var(--ink); font-size: 15px; }
.plan-ph span { font-size: 13px; max-width: 220px; }
.stage-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 6px; }
.stage-steps li { border-radius: 12px; padding: 10px 12px; background: var(--blush); color: var(--muted); display: flex; flex-direction: column; }
.stage-steps li b { font-size: 12px; font-weight: 800; }
.stage-steps li span { font-size: 14px; font-weight: 700; }
.stage-steps li small { font-size: 12px; }
.stage-steps li.done { background: #E0F2F1; color: #1D4E4F; }
.stage-steps li.now { background: var(--red); color: #fff; }
@media (max-width: 900px) {
  .frame.frame-plan { aspect-ratio: auto; height: 170px; max-width: none; }
}

/* ---------- Live Instagram preview while uploading ---------- */
.form-split > .main { flex: 999 1 560px; }
.form-split > .lp-wrap { flex: 1 1 340px; max-width: 400px; position: sticky; top: 16px; }
.lp { gap: 14px; }
.lp-phone { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(28, 18, 16, 0.08); }
.lp-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13px; }
.lp-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--red); }
.lp-frame { position: relative; width: 100%; background: #1C1210; overflow: hidden; }
.lp-frame img, .lp-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-track, .lp-slide { position: absolute; inset: 0; }
.lp-slide { display: none; }
.lp-slide.on { display: block; }
.lp-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; background: var(--blush); color: var(--body); border: 2px dashed var(--line-strong); }
.lp-ph strong { color: var(--ink); font-size: 15px; }
.lp-ph span { font-size: 12.5px; max-width: 230px; }
.lp-count { position: absolute; top: 10px; right: 10px; background: rgba(28, 18, 16, 0.7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.lp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.lp-nav.prev { left: 8px; } .lp-nav.next { right: 8px; }
.lp-actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; color: var(--ink); }
.lp-actions .lp-spacer, .lp-dots { flex: 1; }
.lp-dots { display: flex; justify-content: center; gap: 4px; }
.lp-dots span { width: 6px; height: 6px; border-radius: 50%; background: #D6CCC9; }
.lp-dots span.on { background: #3897F0; }
.lp-caption { padding: 4px 12px 14px; font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); }
.lp-tag { color: #00376B; }
.lp-muted { color: var(--muted); font-style: italic; }
.lp-more { background: none; border: none; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.lp-note { font-size: 12px; color: var(--muted); padding: 10px 12px; margin: 0; }
/* Reels & Stories: full-screen vertical */
.lp-phone.vertical { border-radius: 22px; background: #000; }
.lp-reel-overlay { position: absolute; left: 0; right: 48px; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }
.lp-reel-overlay .lp-caption { padding: 6px 0 0; color: #fff; max-height: 6.2em; overflow: hidden; }
.lp-reel-overlay .lp-tag, .lp-reel-overlay .lp-more, .lp-reel-overlay .lp-muted { color: #fff; }
.lp-reel-who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lp-reel-who .lp-avatar, .lp-story-head .lp-avatar { box-shadow: 0 0 0 1.5px #fff; }
.lp-reel-side { position: absolute; right: 10px; bottom: 16px; display: flex; flex-direction: column; gap: 18px; color: #fff; }
.lp-play { position: absolute; top: 10px; right: 10px; border: none; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 600 12px var(--font-body); padding: 6px 10px; cursor: pointer; }
.lp-story-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; }
.lp-story-bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.85); }
.lp-story-head { position: absolute; top: 18px; left: 10px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.lp-story-head span { opacity: .8; }
.lp-phone.vertical .lp-note { background: #fff; }
/* Checks */
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; padding: 8px 10px; border-radius: 10px; }
.lp-check.ok { background: var(--green-tint); color: #1F4D31; }
.lp-check.warn { background: #FDF0D5; color: #6E4710; }
.lp-check.error { background: #FCE4E4; color: #8A1F1F; }
.lp-ico { width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; background: currentColor; }
.lp-ico { color: inherit; }
.lp-check .lp-ico { background: rgba(255,255,255,.7); }
/* Grid tile */
.lp-grid-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.lp-tile { aspect-ratio: 4 / 5; position: relative; background: #E9DCD7; overflow: hidden; }
.lp-tile img, .lp-tile video { width: 100%; height: 100%; object-fit: cover; }
.lp-tile.empty { background: #F5E7E2; }
.lp-tile-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.lp-tile-kind { position: absolute; top: 5px; right: 5px; background: rgba(28,18,16,.7); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
.lp-grid-row .lp-note { grid-column: 1 / -1; padding: 4px 0 0; }
/* Thumbnails under a file input */
.file-strip { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.strip-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.strip-thumb { margin: 0; flex: none; width: 76px; display: flex; flex-direction: column; gap: 4px; }
.strip-thumb img, .strip-thumb video { width: 76px; height: 95px; object-fit: cover; border-radius: 8px; background: #1C1210; }
.strip-thumb figcaption { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-bad { width: 76px; height: 95px; border-radius: 8px; background: #FCE4E4; color: #A12B2B; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }
@media (max-width: 960px) {
  .form-split > .lp-wrap { position: static; max-width: none; }
  .lp-phone { max-width: 380px; margin: 0 auto; width: 100%; }
}
[hidden] { display: none !important; }
.lp-story-head { top: 0; left: 0; right: 0; padding: 20px 10px 28px; background: linear-gradient(rgba(0,0,0,.5), transparent); }
.lp-story-bars { z-index: 1; }
@media (min-width: 961px) { .file-strip[data-type-from] .lp-checks { display: none; } }

/* ---------- Platforms ---------- */
.pf-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 5px; color: #fff; font: 800 10px/1 var(--font-body); letter-spacing: 0.02em; flex: none; vertical-align: middle; }
.chip .top { flex-wrap: wrap; }
.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.pf-chip span:last-child { color: var(--muted); font-weight: 700; }
.pf-chip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pf-chip:hover { color: var(--ink); border-color: var(--muted); }
.platform-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-picker button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 600 14px var(--font-body); color: var(--ink); cursor: pointer; }
.platform-picker button[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.format-group { display: flex; flex-direction: column; gap: 8px; }
.format-group > .label { display: flex; align-items: center; gap: 8px; }
.js .format-group[data-platform]:not(.on) { display: none; }
.format-group + .format-group.on, .format-group.on ~ .format-group.on { border-top: 1px dashed var(--line); padding-top: 12px; }
.pf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 12px; }

/* ---------- Multi-platform previews ---------- */
.lp-head-t { display: flex; flex-direction: column; line-height: 1.25; }
.lp-head-t span { font-size: 11.5px; color: var(--muted); }
.lp-avatar.square { border-radius: 8px; box-shadow: none; }
.lp-text { padding: 4px 12px 10px; font-size: 13.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); margin: 0; }
.lp-text.small { font-size: 12.5px; padding: 0; color: var(--body); }
.lp-text.strong { font-weight: 700; color: #fff; padding: 6px 0 0; }
.lp-actions.labelled { justify-content: space-around; border-top: 1px solid #EEE6E3; padding: 8px 6px; gap: 4px; color: var(--body); }
.lp-act { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.lp-actions:not(.labelled) .lp-act { gap: 0; }
.lp-frame.rounded { border-radius: 16px; }
.lp-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
.lp-doc { margin: 0 12px 10px; border: 1px solid #E4DDDA; border-radius: 8px; overflow: hidden; }
.lp-doc-bar { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12.5px; background: #F7F4F2; }
.lp-doc-bar span { color: var(--muted); white-space: nowrap; }
.lp-doc .lp-frame { background: #fff; }
.lp-phone.plat-linkedin .lp-frame, .lp-phone.plat-facebook .lp-frame, .lp-phone.plat-gbp .lp-frame { background: #F2EEEC; }
.lp-phone.plat-linkedin .lp-frame img, .lp-phone.plat-facebook .lp-frame img { object-fit: cover; }
/* YouTube */
.lp-phone.dark { background: #0F0F0F; color: #fff; border-color: #0F0F0F; }
.lp-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.lp-yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 40px; border-radius: 12px; background: rgba(255, 0, 0, .9); color: #fff; display: flex; align-items: center; justify-content: center; }
.lp-yt-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.lp-yt-tags { color: #3EA6FF; font-size: 12px; }
.lp-yt-title { margin: 0; font: 700 16px/1.3 var(--font-body); color: #fff; }
.lp-yt-channel { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lp-yt-sub { margin-left: auto; background: #fff; color: #0F0F0F; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.lp-yt-sub.small { margin-left: 6px; padding: 3px 9px; font-size: 11px; }
.lp-yt-desc { background: #272727; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.lp-yt-desc .lp-text { padding: 4px 0 0; color: #F1F1F1; font-size: 12.5px; }
.lp-phone.dark .lp-more, .lp-phone.dark .lp-muted { color: #AAA; }
.lp-phone.dark .lp-tag { color: #3EA6FF; }
.lp-yt-card { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; grid-column: 1 / -1; }
.lp-yt-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #E9DCD7; }
.lp-yt-thumb img, .lp-yt-thumb video { width: 100%; height: 100%; object-fit: cover; }
.lp-yt-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lp-yt-meta span { color: var(--muted); font-size: 12px; }
/* Vertical styles */
.lp-follow { border: 1px solid rgba(255,255,255,.8); border-radius: 8px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.lp-music { display: flex; align-items: center; gap: 6px; font-size: 11.5px; margin-top: 6px; opacity: .9; }
.lp-plat-tag { position: absolute; top: 12px; left: 12px; color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* Pinterest */
.lp-phone.pin { padding: 10px; border-radius: 20px; }
.lp-pin-body { padding: 10px 4px 4px; display: flex; flex-direction: column; gap: 6px; }
.lp-pin-body h4 { margin: 0; font: 700 15px/1.3 var(--font-body); }
.lp-pin-who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.lp-link-chip { align-self: flex-start; background: #EFEFEF; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
/* X */
.lp-phone.x { padding: 12px; }
.lp-x { display: flex; gap: 10px; }
.lp-x-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lp-x-head { display: flex; gap: 6px; font-size: 13.5px; flex-wrap: wrap; }
.lp-x-head span { color: #536471; }
.lp-x .lp-text { padding: 0; font-size: 14px; }
.lp-x .lp-tag { color: #1D9BF0; }
.lp-x-media { display: grid; gap: 2px; border-radius: 14px; overflow: hidden; border: 1px solid #CFD9DE; }
.lp-x-media.n2, .lp-x-media.n4 { grid-template-columns: 1fr 1fr; }
.lp-x-media.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lp-x-media.n3 .lp-x-cell:first-child { grid-row: span 2; }
.lp-x-cell { aspect-ratio: 16 / 9; background: #EEE; overflow: hidden; }
.lp-x-media.n2 .lp-x-cell, .lp-x-media.n4 .lp-x-cell, .lp-x-media.n3 .lp-x-cell { aspect-ratio: auto; min-height: 90px; }
.lp-x-cell img, .lp-x-cell video { width: 100%; height: 100%; object-fit: cover; }
.lp-x .lp-actions { padding: 4px 0 0; justify-content: space-between; color: #536471; }
.lp-x-count { font-size: 12px; font-weight: 700; color: #536471; }
.lp-x-count.over { color: #C53030; }
/* Google Business */
.lp-gbp-btn { display: inline-block; margin: 0 12px 12px; padding: 8px 14px; border-radius: 999px; background: #1A73E8; color: #fff; font-size: 13px; font-weight: 600; }
/* Counters, strips */
.help.over { color: #A12B2B; font-weight: 700; }
.strip-doc { width: 76px; height: 95px; border-radius: 8px; background: #F7F4F2; border: 1px solid var(--line); color: var(--body); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; }

/* ---------- Review page: other formats ---------- */
.frame.natural { aspect-ratio: auto; max-height: 75vh; }
.frame.natural img, .frame.natural video { height: auto; max-height: 75vh; }
.pdf-view { width: 100%; height: 100%; min-height: 420px; background: #fff; display: flex; align-items: center; justify-content: center; }
.text-post { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.text-post-head { display: flex; gap: 10px; align-items: center; }
.text-post .caption { font-size: 15px; }
.headline-val { font-weight: 700; font-size: 17px; }

/* ---------- Campaigns ---------- */
.cmp-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cmp-platform { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.cmp-platform > .label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cmp-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.cmp-card:hover { border-color: var(--line-strong); color: var(--ink); }
.cmp-dot { display: inline-flex; align-items: center; gap: 3px; }
.cmp-progress { height: 6px; border-radius: 3px; background: var(--blush); overflow: hidden; }
.cmp-progress span { display: block; height: 100%; background: var(--green); }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: start; }
.cmp-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.cmp-item:hover { border-color: var(--line-strong); color: var(--ink); box-shadow: 0 6px 18px rgba(28,18,16,.06); }
.cmp-thumb { position: relative; background: #1C1210; max-height: 300px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cmp-thumb img, .cmp-thumb video { width: 100%; height: 100%; object-fit: cover; }
.cmp-ph { position: absolute; inset: 0; background: var(--blush); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; border-bottom: 1px dashed var(--line-strong); }
.cmp-text { position: absolute; inset: 0; background: #fff; color: var(--body); padding: 12px; font-size: 12px; line-height: 1.45; overflow: hidden; border-bottom: 1px solid var(--line); }
.cmp-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cmp-meta strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.cmp-mark { display: inline-flex; color: var(--red-dark); }
.cmp-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.cmp-banner > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.cmp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(28,18,16,.6); display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .cmp-split > .side { order: -1; max-width: none; } }

/* Multi-platform picker */
.pf-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 600 14px var(--font-body); color: var(--ink); cursor: pointer; user-select: none; }
.pf-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.pf-toggle.on, .pf-toggle:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); background: #FFF6F6; }
.pf-toggle:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
[data-multi-note] { background: #FFF6F6; border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.lp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 600 12px var(--font-body); color: var(--ink); cursor: pointer; }
.lp-tab.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lp-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: #2E7D32; }
.lp-tab-dot.warn { background: #E0A100; }
.lp-tab-dot.error { background: var(--red); }
.grp-banner { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.grp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.grp-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.grp-tab.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--cream, #FBF7F2); }
.grp-tab:hover { color: var(--ink); border-color: var(--muted); }

/* Agency note shown to the client */
.client-note { background: #FFF8E6; border: 1px solid #F0D9A0; border-left: 4px solid #C98A12; border-radius: 10px; padding: 12px 14px; }
.client-note .meta-label { color: #8A5A12; }
.client-note p { margin: 4px 0 0; white-space: normal; overflow-wrap: anywhere; }

/* All clients: clickable status totals and the list they open */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-link { color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.stat-link small { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.stat-link:hover { box-shadow: 0 0 0 2px var(--line-strong); color: var(--ink); }
.stat-link:hover small { color: var(--red); }
.stat-link.on { box-shadow: 0 0 0 2px var(--red); }
.stat-link.on small { color: var(--red); }
.status-list { margin-bottom: 24px; scroll-margin-top: 16px; }
.list-filters .input { width: auto; min-height: 40px; }
.task-list { display: flex; flex-direction: column; }
.task-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.task-row:first-child { border-top: none; }
.task-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task-title { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.task-title:hover { color: var(--red); text-decoration: underline; }
.task-main .badges { display: inline-flex; gap: 3px; }
.task-note { margin: 8px 0 0; padding: 8px 12px; background: #FDECEC; border-left: 3px solid #A12B2B; border-radius: 6px; font-size: 14px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.late { color: #A12B2B; font-weight: 600; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > .stat:first-child { grid-column: 1 / -1; }
  .task-row { grid-template-columns: auto minmax(0, 1fr); }
  .task-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .list-filters { width: 100%; }
  .list-filters .input { flex: 1; }
}

/* ---------- Plan fields: concept, hook, script, CTA ---------- */
.plan-fields { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #FFFBF9; gap: 12px; }
.plan-fields-head { display: flex; flex-direction: column; gap: 2px; }
.plan-view { display: grid; gap: 14px; }
.plan-part { border-left: 3px solid var(--line-strong); padding-left: 12px; }
.plan-hook { border-left-color: var(--red); }
.plan-cta { border-left-color: var(--green); }

/* ---------- Tasks ---------- */
.task-list-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: none; }
.task-tick { margin: 0; }
.tick { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong); background: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; flex: none; margin-top: 1px; }
.tick:hover { border-color: var(--green); }
.tick.on { background: var(--green); border-color: var(--green); }
.tick.ro { cursor: default; opacity: .6; }
.task-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.task-t { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.task.done .task-t { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.task-d { color: var(--body); overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); align-items: center; }
.task-meta a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.task-meta a:hover { color: var(--red); text-decoration: underline; }
.who { font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.who-agency { background: var(--red-tint); color: var(--red-dark); }
.who-client { background: #E0EEF9; color: #1D4569; }
.late-txt { color: #A12B2B; font-weight: 700; }
.task.late .tick { border-color: #E3A3A3; }
.internal { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #EEE7E4; color: var(--body); padding: 2px 8px; border-radius: 999px; }
.task-edit > summary { font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; padding: 4px 6px; border-radius: 6px; }
.task-edit > summary::-webkit-details-marker { display: none; }
.task-edit[open] { grid-column: 1 / -1; }
.task-edit[open] > summary { color: var(--red); }
.task-edit form { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #FFFBF9; }
.task-add { border-top: 1px solid var(--line); padding-top: 14px; }
.task-add .row .field { margin: 0; }
.assigned-to { color: var(--body); margin-top: 4px; }

/* To-do page */
.todo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.todo-h { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.who-dot { width: 10px; height: 10px; border-radius: 50%; }
.who-dot.agency { background: var(--red); }
.who-dot.client { background: #2A6BA8; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--blush); color: var(--ink); font: 700 12px var(--font-body); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: #fff; }
.seg a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--body); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.seg a.on { background: var(--ink); color: #fff; }
.seg a.on .count { background: rgba(255,255,255,.2); color: #fff; }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ---------- Meeting minutes ---------- */
.mom-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.mom-card:hover { box-shadow: 0 0 0 2px var(--line-strong); color: var(--ink); }
.mom-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 12px; background: var(--blush); line-height: 1; }
.mom-date b { font: 800 26px var(--font-display); color: var(--red); }
.mom-date span { font-size: 11px; font-weight: 700; color: var(--body); margin-top: 2px; }
.mom-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mom-main strong { font-size: 17px; }
.mom-preview { color: var(--body); }
.mom-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mom-doc { max-width: 900px; }
.mom-sec { border-top: 1px solid var(--line); padding-top: 14px; }
.mom-decisions p { background: var(--green-tint); border-radius: 10px; padding: 12px 14px; color: #1F4D31; }
.mom-when { grid-template-columns: 1fr 1fr 2fr; }
.mom-notes { min-height: 260px; font-size: 15px; line-height: 1.6; }
.action-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 160px auto; gap: 8px; align-items: center; }
.action-row.is-done input[type="text"] { text-decoration: line-through; color: var(--muted); }
.mom-actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 4px; border-top: 1px solid var(--line); }

/* ---------- Shoot planner: approved scripts and shot list ---------- */
.ready-box { border: 1px solid #F0D9A0; background: #FFFBF0; margin-bottom: 20px; }
.ready-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ready-list li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-top: 1px solid #F3E6C5; }
.ready-list li:first-child { border-top: none; }
.ready-item { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; min-width: 0; flex: 1; }
.ready-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.ready-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ready-line { color: var(--body); overflow-wrap: anywhere; }
.ready-main .badges, .shot .badges { display: inline-flex; gap: 3px; }
.schedule-box { border-top: 1px solid #F0D9A0; padding-top: 14px; }
.shot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: shot; }
.shot { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.shot.done { background: #F6FBF7; border-color: #CFE6D6; }
.shot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shot-head form { margin: 0; }
.shot-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.shot.done .shot-title { text-decoration: line-through; color: var(--muted); }
.shot-unlink { margin-left: auto !important; }
.shot-plan { margin: 10px 0 0; display: grid; gap: 8px; }
.shot-plan div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
.shot-plan dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 2px; }
.shot-plan dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.shot-hook dd { font-weight: 600; }
.check-add { margin-top: 8px; gap: 6px; }
.check-add .input { flex: 1; min-height: 38px; }

/* ---------- Edit form: platforms ---------- */
.pf-edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pf-toggle:has(input:disabled) { cursor: default; opacity: .9; }
.pf-add-formats { width: 100%; }
.type-option-sm span { padding: 8px 12px; }
.remove-warn { color: #A12B2B; font-weight: 600; width: 100%; }

@media (max-width: 640px) {
  .task { grid-template-columns: auto minmax(0, 1fr); }
  .task-edit { grid-column: 2; }
  .mom-card { grid-template-columns: auto minmax(0, 1fr); }
  .mom-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .mom-when { grid-template-columns: 1fr 1fr; }
  .mom-when .field:last-child { grid-column: 1 / -1; }
  .action-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
  .action-row > input[type="text"] { grid-column: 1 / -1; }
  .action-row > select { grid-column: 1 / -1; }
  .todo-cols { grid-template-columns: 1fr; }
  .shot-plan div { grid-template-columns: 1fr; gap: 2px; }
}
.pf-edit > .stack-sm { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.pf-edit-row { width: auto; }
.pf-edit-row:has(input[name="keep[]"]), .pf-edit-row:has(.pf-add-formats:not([hidden])), .pf-edit-row:has(.remove-warn:not([hidden])) { width: 100%; }
.card > .task-add:first-child { border-top: none; padding-top: 0; }

.stage-steps li.gate b { color: inherit; }
.stage-steps li.todo { background: #F7EFEC; }
.stage-steps li small { min-height: 1em; }
.process-presets { gap: 6px; }
.process-flow { background: var(--blush); border-radius: 10px; padding: 10px 12px; font-weight: 600; color: var(--ink); }
.upload-as .type-option { flex: 1 1 160px; }

/* ---------- AI planner ---------- */
.ai-ready-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ai-ready { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.ai-ready strong { font-family: var(--font-display); font-size: 22px; }
a.ai-ready:hover { box-shadow: 0 0 0 2px var(--line-strong); color: var(--ink); }
.meter { height: 8px; border-radius: 999px; background: var(--blush); overflow: hidden; margin: 4px 0; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--red), #E8833A); border-radius: 999px; }
.ai-split .side { flex: 1 1 320px; }
.ai-setup { border: 1px solid #F0D9A0; background: #FFFBF0; margin-bottom: 20px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.comp { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.comp:first-of-type { border-top: none; }
.ai-wait { align-items: center; text-align: center; padding: 40px 24px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--blush); border-top-color: var(--red); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.lead-p { font-size: 17px; line-height: 1.55; color: var(--ink); }
.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.info-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: #FFFBF9; }
.ai-doc section + section { border-top: 1px solid var(--line); padding-top: 14px; }
.ai-apply-bar { position: sticky; top: 0; z-index: 5; background: var(--cream); padding: 10px 0; gap: 8px; }
.ai-apply-bar .spacer { flex: 1; }
.ai-item { display: flex; flex-direction: column; gap: 10px; }
.ai-item.added { opacity: .75; }
.ai-item-head { display: flex; gap: 12px; align-items: flex-start; }
.ai-pick input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); }
.ai-title { font-size: 17px; }
.ai-why { font-size: 14px; background: #F3F7F1; border-left: 3px solid var(--green); padding: 6px 10px; border-radius: 6px; color: var(--ink); }
.ai-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ai-when .input { min-height: 38px; width: 160px; }
.ai-body > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.ai-body[open] > summary { margin-bottom: 8px; }
.ai-usage { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 13px; }
.ai-usage li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.ai-usage li:first-child { border-top: none; }
.ai-assist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-assist .input { flex: 1 1 220px; min-height: 36px; font-size: 13px; }
.btn-ai { background: linear-gradient(90deg, #FFF1E6, #FBE1E3); border-color: #F0C3B5; }
.btn-ai:disabled { opacity: .6; }
[data-ai-msg] { width: 100%; }
[data-ai-msg].ok { color: var(--green); }
[data-ai-msg].err { color: #A12B2B; }
.ai-alt { min-height: 28px; font-size: 12px; }
@media (max-width: 640px) {
  .ai-item-head { flex-wrap: wrap; }
  .ai-when { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- AI mock-up player ---------- */
.mockup { border-top: 1px solid var(--line); padding-top: 14px; }
.sb-player { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sb-stage { position: relative; width: 100%; max-width: 320px; border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 10px 30px rgba(28,18,16,.25); cursor: pointer; user-select: none; }
.sb-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 34px 16px 46px; }
.sb-frame.on { opacity: 1; }
.sb-frame.sb-light { color: #1C1210; }
.sb-pic { position: absolute; inset: 14% 10% 26%; border: 1.5px dashed rgba(255,255,255,.45); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; background: rgba(255,255,255,.06); }
.sb-light .sb-pic { border-color: rgba(28,18,16,.3); background: rgba(255,255,255,.35); }
.sb-pic-icon { font-size: 30px; }
.sb-pic-text { font-size: 12px; line-height: 1.35; font-style: italic; opacity: .9; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sb-frame.on .sb-pic { animation: sbzoom 6s ease-out both; }
@keyframes sbzoom { from { transform: scale(1.04); } to { transform: scale(1); } }
.sb-tag { position: absolute; top: 18px; left: 12px; right: 12px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(0,0,0,.35); color: #fff; padding: 3px 8px; border-radius: 999px; width: max-content; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-text { position: relative; z-index: 2; font: 800 22px/1.15 var(--font-display); text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.45); padding: 6px 8px; overflow-wrap: anywhere; }
.sb-light .sb-text { text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.sb-frame.on .sb-text { animation: sbup .6s .15s ease-out both; }
@keyframes sbup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sb-text-top { justify-content: flex-start; padding-top: 48px; }
.sb-text-bottom { justify-content: flex-end; padding-bottom: 70px; }
.sb-split .sb-text { text-align: left; max-width: 60%; }
.sb-list .sb-text, .sb-frame.sb-list .sb-text { font-size: 18px; text-align: left; }
.sb-full .sb-pic { inset: 0; border-radius: 0; border: none; }
.sb-vo { position: absolute; left: 10px; right: 10px; bottom: 30px; z-index: 3; font-size: 12px; line-height: 1.35; background: rgba(0,0,0,.55); color: #fff; padding: 6px 8px; border-radius: 8px; text-align: center; }
.sb-sound { position: absolute; left: 12px; bottom: 10px; font-size: 10px; opacity: .85; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-logo { position: absolute; right: 10px; bottom: 8px; height: 20px; max-width: 70px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.sb-brand { position: absolute; right: 12px; bottom: 9px; font-size: 10px; font-weight: 800; opacity: .9; }
.sb-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; z-index: 4; }
.sb-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.sb-bar i { display: block; height: 100%; width: 0; background: #fff; }
.sb-bar.done i { width: 100%; }
.sb-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sb-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sb-still .sb-frame { transition: none; }
.sb-still .sb-frame.on .sb-pic, .sb-still .sb-frame.on .sb-text { animation: none; }
.sb-board > summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.sb-list-ol, .sb-board ol { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sb-board ol li { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Brand kit ---------- */
.kit-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.kit-logo img { max-width: 140px; max-height: 80px; object-fit: contain; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; }
.chip-c { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.asset { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.asset-thumb { display: flex; align-items: center; justify-content: center; height: 110px; background: repeating-conic-gradient(#F4EEEC 0% 25%, #fff 0% 50%) 50% / 16px 16px; text-decoration: none; }
.asset-thumb img { max-width: 90%; max-height: 96px; object-fit: contain; }
.asset-thumb .ext { font: 800 18px var(--font-display); color: var(--muted); background: #fff; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }
.asset-meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.asset-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta form { margin: 0; }
.asset-upload { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; }
.asset-upload .field { margin: 0; }
.kit-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.kit-internal { border: 1px dashed var(--line-strong); background: #FBF8F7; }
.kit-save { padding: 4px 0; }
@media (max-width: 720px) {
  .asset-upload { grid-template-columns: 1fr; }
  .kit-cols { grid-template-columns: 1fr; }
}

/* Mock-up layouts: picture area and text never overlap */
.sb-frame { justify-content: flex-end; padding: 40px 14px 64px; }
.sb-pic { inset: 15% 9% 40%; }
.sb-frame.sb-text-top, .sb-frame.sb-list { justify-content: flex-start; padding-top: 42px; }
.sb-text-top .sb-pic, .sb-list .sb-pic { inset: 36% 9% 18%; }
.sb-frame.sb-centered { justify-content: center; padding-bottom: 40px; }
.sb-centered .sb-pic { inset: 14% 9% 14%; justify-content: flex-start; padding-top: 18px; }
.sb-centered .sb-text { background: rgba(0,0,0,.32); border-radius: 10px; margin-top: 30%; }
.sb-light.sb-centered .sb-text { background: rgba(255,255,255,.55); }
.sb-frame.sb-split { justify-content: center; padding-bottom: 40px; }
.sb-split .sb-pic { inset: 14% 8% 14% 52%; }
.sb-split .sb-text { text-align: left; max-width: 48%; font-size: 19px; }
.sb-full .sb-pic { inset: 0; border: none; border-radius: 0; justify-content: flex-start; padding-top: 44px; }
.sb-full .sb-text { background: rgba(0,0,0,.4); border-radius: 10px; }
.sb-frame.sb-text-bottom { justify-content: flex-end; }
.sb-frame .sb-vo ~ .sb-text, .sb-frame:has(.sb-vo) { padding-bottom: 78px; }

/* Mock-up v2: brand photos, end card, platform frame */
.sb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb-frame.on .sb-photo { animation: sbken 7s ease-out both; }
@keyframes sbken { from { transform: scale(1.08); } to { transform: scale(1); } }
.sb-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.has-photo .sb-text.sb-style-plain { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.sb-text { position: relative; z-index: 2; }
.sb-style-band { margin: 0 -14px; border-radius: 0 !important; padding: 10px 16px; }
.sb-style-box { border-radius: 12px; padding: 10px 14px; align-self: center; max-width: 92%; }
.sb-style-outline { color: transparent !important; }
.sb-endcard { align-items: center; justify-content: center !important; }
.sb-biglogo { position: relative; z-index: 2; max-width: 60%; max-height: 30%; object-fit: contain; }
.sb-frame.on .sb-biglogo { animation: sbup .7s ease-out both; }
.sb-bigname { position: relative; z-index: 2; font: 800 30px/1.1 var(--font-display); text-align: center; }
.sb-video .sb-frame { padding-bottom: 118px; }
.sb-video .sb-frame.sb-text-top, .sb-video .sb-frame.sb-list { padding-top: 46px; }
.sb-video .sb-vo { bottom: 94px; }
.sb-video .sb-logo { top: 30px; bottom: auto; right: 10px; height: 18px; }
.sb-design .sb-logo { bottom: 10px; }
.sb-chrome { position: absolute; inset: 0; pointer-events: none; z-index: 5; color: #fff; font-size: 11px; }
.sb-who { position: absolute; display: flex; align-items: center; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sb-video .sb-who { left: 10px; bottom: 52px; }
.sb-design .sb-who { left: 10px; top: 18px; }
.sb-avatar { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #fff; font-weight: 800; border: 1.5px solid #fff; flex: none; }
.sb-avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sb-follow { border: 1px solid rgba(255,255,255,.8); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.sb-rail { position: absolute; right: 8px; bottom: 60px; display: flex; flex-direction: column; gap: 12px; font-size: 18px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sb-cap { position: absolute; left: 10px; right: 48px; bottom: 30px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sb-chrome .sb-sound { position: absolute; left: 10px; bottom: 12px; right: 60px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sb-plat { position: absolute; right: 10px; top: 16px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(0,0,0,.35); padding: 2px 7px; border-radius: 999px; }
.sb-video .sb-plat { display: none; }
.sb-tag { display: none; }
.sb-note { max-width: 320px; text-align: left; color: var(--body); margin: 0; }
.sb-under { max-width: 320px; width: 100%; }
.sb-dcap { margin: 0; color: var(--ink); }
.sb-video .sb-vo { right: 44px; }

/* ---------- AI shoot plan ---------- */
.sp-card { background: #FFF6F0; border: 1px solid #F3D9CC; border-radius: 12px; padding: 10px 12px; justify-content: space-between; gap: 10px; }
.sp-doc { max-width: 1100px; }
.sp-h { font-size: 20px; }
.sp-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-stats span { background: var(--blush); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.sp-needs { background: #FFFBF0; border: 1px solid #F0D9A0; border-radius: 12px; padding: 14px; }
.sp-creative + .sp-creative { margin-top: 10px; }
.sp-creative h3 { font-size: 17px; margin-bottom: 6px; }
.sp-shots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sp-shots li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sp-shots li.nice { opacity: .8; }
.sp-type { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; padding: 3px 6px; text-align: center; align-self: start; }
.t-aroll { background: var(--red-tint); color: var(--red-dark); }
.t-broll { background: #E0EEF9; color: #1D4569; }
.t-photo { background: #EEE8F8; color: #44337A; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.sp-table td, .sp-table th { font-size: 13px; vertical-align: top; }
@media print {
  .site-header, .no-print, .flash { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: none; }
  .sp-doc { max-width: none; }
  .sp-shots li, .sp-table tr { break-inside: avoid; }
}

/* Brand intelligence and results */
.intel-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.intel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.intel-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.insights-up { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.insights-up input[type=file], .insights-up button { grid-column: 1 / -1; }
.insights-up button { justify-self: start; }
.report-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line, #eee); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; align-items: end; }
.metric-grid .field { margin: 0; gap: 2px; }
.metric-grid button { grid-column: 1 / -1; justify-self: start; }
.metric-read { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.metric-read div { display: flex; flex-direction: column; }
.metric-read b { font-size: 20px; }

/* ---------- Channels, automation, reports, library, billing (v14) ---------- */
.tabs { gap: 4px 18px; }
.head-search .input { min-height: 38px; padding: 6px 12px; width: 180px; font-size: 14px; }
@media (max-width: 760px) { .head-search { display: none; } }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.channel-card.on { border-color: #BFE3CB; }
.autopost-bar { gap: 14px; }
.guide-steps { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.guide-steps code, .otp-key { background: var(--blush); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }
.qr-box { width: 180px; min-height: 120px; aspect-ratio: 1; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.qr-box img, .qr-box canvas { display: block; }
.backup-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.backup-codes code { background: #fff; padding: 4px 8px; border-radius: 6px; font-size: 14px; }
.hub-card { text-decoration: none; color: var(--ink); }
.hub-card:hover { border-color: var(--red); color: var(--ink); }
.attention-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.attention-row:empty { display: none; }
.attn { gap: 4px; padding: 14px 16px; }
.attn-bad { border-color: #F2C4C4; background: #FFF8F8; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--cream); position: sticky; top: 8px; z-index: 5; }
.bulk-bar .input { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.bulk-pick { width: 18px; height: 18px; accent-color: var(--red); flex: none; align-self: center; }
.review-pick { display: flex; align-items: center; gap: 8px; }
.review-pick input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.review-pick .review-item { flex: 1; min-width: 0; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.kpi strong { font: 800 30px/1.1 var(--font-display); color: var(--ink); }
.up { color: #1F7A43; font-weight: 700; }
.down { color: #A12B2B; font-weight: 700; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.report-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.top-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.top-post { display: flex; gap: 10px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.top-thumb { position: relative; width: 72px; height: 90px; border-radius: 10px; overflow: hidden; background: var(--blush); flex: none; display: grid; place-items: center; }
.top-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-thumb .rank { position: absolute; top: 4px; left: 4px; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; border-radius: 999px; width: 20px; height: 20px; display: grid; place-items: center; }
.deliv { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr auto; gap: 10px; align-items: center; }
.deliv .bar { height: 8px; background: var(--blush); border-radius: 999px; overflow: hidden; }
.deliv .bar i { display: block; height: 100%; background: #2F855A; border-radius: 999px; }
.deliv .bar.over i { background: #B7791F; }
.deliv-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.deliv-inputs { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.deliv-inputs .field { gap: 2px; }
.lib-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-tab { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lib-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lib-item { position: relative; padding: 8px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.lib-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--blush); }
.lib-thumb img, .lib-thumb video { width: 100%; height: 100%; object-fit: cover; }
.lib-ext { font-weight: 800; color: var(--muted); }
.lib-play { position: absolute; inset: auto auto 8px 8px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.lib-pick { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; border-radius: 6px; padding: 3px; line-height: 0; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.lib-pick input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.reuse-bar { position: sticky; bottom: 10px; margin-top: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.reuse-bar .input { min-height: 38px; padding: 6px 10px; }
.search-group { margin-bottom: 12px; }
.search-group .report-row { text-decoration: none; color: var(--ink); }
.search-group mark { background: #FFE9A8; }
.invoice { max-width: 900px; display: flex; flex-direction: column; gap: 18px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inv-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.inv-meta h2 { font-size: 26px; }
.inv-kv td { padding: 2px 0 2px 14px; font-size: 13px; }
.inv-kv td:first-child { color: var(--muted); }
.inv-items .num, .inv-items th.num { text-align: right; white-space: nowrap; }
.inv-items tfoot td { border: none; padding-top: 4px; padding-bottom: 4px; }
.inv-total td { border-top: 2px solid var(--ink) !important; font-size: 16px; }
.inv-pay { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.inv-pay .qr-box { width: 136px; min-height: 0; }
.qr-box svg { width: 100%; height: auto; display: block; }
.inv-lines .input { min-height: 40px; padding: 6px 10px; }
.legal p { margin: 0 0 10px; line-height: 1.55; }
@media print {
  .invoice, .report { max-width: none; }
  .kpi-row, .report-cols, .top-posts { break-inside: avoid; }
  .tabs, .head-search { display: none !important; }
}

/* ---------- Header: co-branding, dropdowns and the account menu (v15) ---------- */
.cobrand { gap: 10px; }
.cobrand .x { font: 600 20px/1 var(--font-body); color: var(--muted); }
.cobrand .client-logo { width: auto; height: 44px; max-width: 120px; object-fit: contain; }
.cobrand .client-tile { width: 40px; height: 40px; font-size: 14px; }
.cobrand .client-name { font: 800 16px/1.2 var(--font-display); color: var(--ink); max-width: 200px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 30px rgba(28, 18, 16, .14); padding: 6px; display: flex; flex-direction: column; }
.menu-right { left: auto; right: 0; min-width: 260px; }
.menu-panel a, .menu-signout { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; border: none; background: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.menu-panel a:hover, .menu-signout:hover { background: var(--blush); color: var(--ink); }
.menu-panel a.active { background: var(--red-tint); color: var(--red-dark); }
.menu-signout { color: var(--red); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.menu-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.menu-who { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-who strong { font-size: 14px; }
.menu-who span { font-size: 12px; color: var(--muted); word-break: break-all; }
.user-menu > summary { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; }
.user-menu[open] > summary, .user-menu.active > summary { border-color: var(--red); }
.burger { display: inline-flex; flex-direction: column; gap: 3px; padding: 0 6px; }
.burger i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-search-link { display: none !important; }
@media (max-width: 760px) { .menu-search-link { display: flex !important; } }
.tabs .tab-menu > summary { padding: 12px 2px 10px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 4px; }
.tabs .tab-menu > summary:hover, .tabs .tab-menu[open] > summary { color: var(--ink); }
.tabs .tab-menu.active > summary { color: var(--ink); border-bottom-color: var(--red); }
.tabs .tab-menu .caret { font-size: 11px; }
.tabs .menu-panel a { padding: 9px 12px; border-bottom: none; font-size: 14px; }
.tabs .menu-panel a.active { border-bottom: none; }
.report-brands { display: flex; align-items: center; gap: 10px; }
.report-brands img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
@media (max-width: 560px) {
  .cobrand .client-name { display: none; }
  .cobrand .client-logo { height: 34px; }
  .menu-panel { position: fixed; left: 12px; right: 12px; top: auto; min-width: 0; }
}
.home-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.home-hero h1 { font-size: 34px; }
.home-brands { display: flex; align-items: center; gap: 14px; padding-right: 24px; border-right: 1px solid var(--line); }
.home-brands img { height: 56px; width: auto; max-width: 150px; object-fit: contain; }
.home-brands .x { font-size: 22px; color: var(--muted); }
.home-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 560px) { .home-brands { border-right: none; padding-right: 0; } .home-hero h1 { font-size: 28px; } }
@media (max-width: 480px) { .tabs { gap: 2px 14px; } .tabs > a, .tabs .tab-menu > summary { font-size: 13.5px; } }
.st-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--blush); }
.st-bar i { display: block; height: 100%; }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.archive-months .report-row { text-decoration: none; color: var(--ink); padding: 6px 8px; border-radius: 8px; border-top: none; }
.archive-months .report-row.on { background: var(--red-tint); }
.archive-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px; }
/* Show / hide password */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap .input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; display: grid; place-items: center; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--ink); background: var(--blush); }

/* ---------- owned channels: blog, newsletter and WhatsApp previews ---------- */
.lp-md p, .lp-md li, .lp-md blockquote { font-size: 13px; line-height: 1.55; margin: 0 0 8px; }
.lp-md h4 { font-size: 15px; margin: 12px 0 6px; } .lp-md h5 { font-size: 13.5px; margin: 10px 0 4px; }
.lp-md ul { margin: 0 0 8px; padding-left: 18px; }
.lp-md blockquote { border-left: 3px solid var(--line); padding-left: 10px; color: var(--muted); }
.lp-md-link { color: #1A5FB4; text-decoration: underline; }
.lp-browser { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #F2EEEC; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.lp-article { padding: 0 0 14px; } .lp-article > :not(.lp-frame) { margin-left: 14px; margin-right: 14px; }
.lp-article-title { font-size: 19px; line-height: 1.25; margin: 12px 14px 4px; }
.lp-article .lp-md { margin-top: 10px; }
.lp-serp { margin: 0 12px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 2px; font-family: Arial, sans-serif; }
.lp-serp-url { font-size: 11.5px; color: #4D5156; } .lp-serp-title { font-size: 15px; color: #1A0DAB; font-weight: 400; } .lp-serp-desc { font-size: 12.5px; color: #4D5156; line-height: 1.4; }
.lp-inbox { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.lp-inbox-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; } .lp-inbox-col span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-inbox-subject { font-weight: 600; font-size: 13px; }
.lp-mail { margin: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.lp-mail-top { padding: 10px 14px; font-weight: 700; font-size: 14px; }
.lp-mail-body { padding: 14px; }
.lp-mail-btn { display: inline-block; padding: 9px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; margin-top: 4px; }
.lp-mail-foot { padding: 10px 14px; background: #FAF7F5; color: var(--muted); font-size: 11px; }
.lp-phone.wa { background: #EFEAE2; }
.lp-wa-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #075E54; color: #fff; }
.lp-wa-head div { display: flex; flex-direction: column; } .lp-wa-head span { font-size: 11px; opacity: .8; }
.lp-wa-chat { padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lp-wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 4px; max-width: 88%; box-shadow: 0 1px 1px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.lp-wa-bubble .lp-frame { border-radius: 8px; overflow: hidden; }
.lp-wa-text { margin: 6px 8px 2px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.lp-wa-foot { margin: 2px 8px; font-size: 11.5px; color: #8696A0; }
.lp-wa-time { align-self: flex-end; font-size: 10.5px; color: #8696A0; margin: 0 6px 2px; }
.lp-wa-btn { background: #fff; border-radius: 10px; padding: 8px; width: 88%; text-align: center; color: #00A5F4; font-size: 13.5px; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 4px; }
.lp-phone.wa .lp-note { background: #fff; }
/* the same on a creative's page */
.channel-view { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.channel-view .article-body { padding: 4px 20px 20px; font-size: 15.5px; line-height: 1.65; }
.channel-view .article-body h2 { font-size: 21px; margin: 22px 0 8px; } .channel-view .article-body h3 { font-size: 18px; margin: 18px 0 6px; }
.channel-view .article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.channel-view .article-title { font-size: 26px; line-height: 1.2; margin: 18px 20px 4px; }
.channel-view .cv-hero { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: #F2EEEC; }
.channel-view iframe.email-frame { width: 100%; height: 640px; border: 0; display: block; background: #F4EFEC; }
.channel-view.wa { background: #EFEAE2; padding: 16px; }
.channel-view.wa .lp-wa-bubble { max-width: 420px; }
.channel-view.wa .lp-wa-bubble img { width: 100%; border-radius: 8px; display: block; }
.serp-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-family: Arial, sans-serif; }

/* ---------- website & SEO ---------- */
.uptime-bar { display: flex; gap: 2px; height: 22px; margin: -6px 0 4px; }
.uptime-bar i { flex: 1; border-radius: 2px; background: #3CB371; min-width: 2px; }
.uptime-bar i.bad { background: #D9534F; }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-stats div { display: flex; flex-direction: column; } .mini-stats b { font-size: 20px; font-family: var(--font-display); } .mini-stats span { font-size: 12px; color: var(--muted); }
.score-row { display: flex; gap: 12px; flex-wrap: wrap; }
.score-ring { --v: 0; --c: #1F7A45; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; text-align: center; align-content: center;
  background: radial-gradient(closest-side, var(--card, #fff) 79%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--v) * 1%), #ECE6E3 0); }
.score-ring b { font-size: 20px; line-height: 1; color: var(--c); } .score-ring span { font-size: 10px; color: var(--muted); line-height: 1.1; }
table.list.compact td, table.list.compact th { padding: 6px 8px; font-size: 13px; }
@media (max-width: 640px) { .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- ad campaigns ---------- */
.ad-media-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 6px; }
.ad-media { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 10px; padding: 4px; cursor: pointer; }
.ad-media input { position: absolute; opacity: 0; pointer-events: none; }
.ad-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #F2EEEC; }
.ad-media:has(input:checked) { border-color: var(--accent, #C24D2C); box-shadow: 0 0 0 2px rgba(194, 77, 44, .15); }
.ad-media:has(input:focus-visible) { outline: 2px solid var(--accent, #C24D2C); outline-offset: 2px; }
.ad-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; max-width: 420px; }
.ad-preview.fb .lp-head { padding: 10px 12px; }
.ad-preview.fb .ad-text { margin: 0 12px 10px; font-size: 14px; line-height: 1.45; }
.ad-preview.fb img, .ad-preview.fb video { width: 100%; display: block; max-height: 520px; object-fit: cover; background: #000; }
.ad-preview .ad-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; background: #F2F3F5; font-size: 14px; }
.ad-preview.google { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; font-family: Arial, sans-serif; }
.ad-preview.google .g-title { color: #1A0DAB; font-size: 18px; line-height: 1.3; text-decoration: none; }

/* ---------- phones: bottom bar, menu page, app mode ---------- */
.bottom-nav { display: none; }
.menu-install { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--ink, #1C1210); cursor: pointer; }
.menu-install:hover { background: var(--soft, #FFF3EE); }
.menu-page { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.menu-page-link { display: flex; flex-direction: column; gap: 1px; padding: 10px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; min-height: 44px; justify-content: center; }
.menu-page-link:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(28, 18, 16, 0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; min-height: 48px; text-decoration: none; color: var(--muted, #6B625D); font-size: 11px; font-weight: 600; position: relative; border-radius: 10px; }
  .bottom-nav a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav a.active { color: var(--accent, #C81428); background: rgba(200, 20, 40, 0.06); }
  .bottom-nav .bn-count { position: absolute; top: 2px; right: calc(50% - 20px); background: var(--accent, #C81428); color: #fff; border-radius: 99px; font-size: 10px; min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 4px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .site-header nav.tabs { display: none; }
  .menu-page { grid-template-columns: 1fr; }
}
html.standalone .site-header { padding-top: env(safe-area-inset-top); }
.split > *, .report-cols > *, .form-grid > * { min-width: 0; }
.split > section.card, .split > form.card { flex: 1 1 320px; }
.btn { max-width: 100%; }
@media (max-width: 760px) { .btn-ai, .ai-assist .btn { white-space: normal; text-align: left; height: auto; } }
@media (max-width: 760px) {
  .header-row { padding: 10px 0; }
  .header-row .brand img { width: 96px; height: auto; }
  .header-row .brand .eyebrow { display: none; }
  .header-row .switcher { order: 5; flex: 1 1 100%; }
  .header-row .switcher label { display: none; }
  .header-row .switcher select { width: 100% !important; min-height: 40px; }
  .header-row .cobrand .client-name { display: none; }
}
.cobrand .client-logo { max-height: 44px; max-width: 120px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 760px) { .cobrand img { max-height: 34px; width: auto; } .cobrand .client-logo { max-width: 84px; } .cobrand { gap: 8px; } }
