:root {
  --brand: #ffcd38; --brand-dark: #e6b830; --brand-soft: #fff4d6;
  --ink: #1f2328; --muted: #646b73; --line: #e4e6ea; --bg: #f6f7f9; --card: #fff;
  --ok: #1a7f4b; --ok-soft: #e3f4ea; --warn: #9a6700; --warn-soft: #fff4d6; --bad: #c0362c; --bad-soft: #fdebea;
  --wa: #075E54; --wa-bubble: #dcf8c6; --wa-bg: #ece5dd;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
h1 { font-size: 1.55rem; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 0.95rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
nav.side { background: #22252a; color: #d6d9de; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; font-size: 17px; padding: 0 8px 20px; }
.logo img { height: 34px; width: auto; display: block; }
.logo .lite { background: var(--brand); color: #22252a; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.auth-logo { padding: 0 0 18px; }
.auth-logo img { height: 46px; }
nav.side a { text-decoration: none; padding: 9px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
nav.side a:hover { background: #2f3339; }
nav.side a.active { background: var(--brand); color: #22252a; font-weight: 600; }
nav.side .spacer { flex: 1; }
nav.side .who { font-size: 12px; color: #9aa0a8; padding: 10px 12px; border-top: 1px solid #353a41; }
main.page { padding: 28px 36px 60px; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.banner { background: var(--brand-soft); border: 1px solid #f3dc8c; border-radius: var(--radius); padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }

/* cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .label { font-size: 13px; color: var(--muted); }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.bar { height: 8px; background: #eef0f3; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--brand-dark); }

/* forms */
label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 5px; }
.field { margin-bottom: 14px; }
.hint { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #cfd3d9; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand-dark); }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 6px 0 0; vertical-align: -2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 600; border: 1px solid transparent; background: var(--brand); color: #22252a; padding: 9px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.btn:hover { background: var(--brand-dark); }
.btn.secondary { background: #fff; border-color: #cfd3d9; }
.btn.secondary:hover { background: #f1f2f4; }
.btn.danger { background: #fff; color: var(--bad); border-color: #efc2be; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 8px 10px; }
td { border-bottom: 1px solid #f0f1f3; padding: 9px 10px; vertical-align: top; }
tr:hover td { background: #fbfbfc; }
.table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef0f3; color: #474d55; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* guide */
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.step { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: #eef0f3; display: grid; place-items: center; font-weight: 700; }
.step.done .num { background: var(--ok); color: #fff; }
.step h3 { font-size: 1rem; margin: 4px 0; }
details.howto { margin-top: 8px; }
details.howto summary { cursor: pointer; font-weight: 600; color: #6a5200; }
details.howto ol { padding-left: 20px; margin: 8px 0; }
details.howto li { margin-bottom: 6px; }
code { background: #f1f2f4; padding: 1px 5px; border-radius: 4px; font-size: 13px; word-break: break-all; }

/* compose */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kind { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 12px; cursor: pointer; text-align: left; font: inherit; }
.kind b { display: block; margin-top: 4px; }
.kind span { font-size: 12.5px; color: var(--muted); }
.kind.sel { border-color: var(--brand-dark); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand-dark) inset; }
.compose { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
.question { border: 1px dashed #cfd3d9; border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #fcfcfd; }

/* phone preview */
.phone { background: var(--wa-bg); border-radius: 22px; border: 8px solid #22252a; min-height: 460px; display: flex; flex-direction: column; overflow: hidden; position: sticky; top: 20px; }
.phone .top { background: var(--wa); color: #fff; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.phone .msgs { padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 560px; flex: 1; }
.bubble { background: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13.5px; max-width: 92%; white-space: pre-wrap; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.bubble.me { align-self: flex-end; background: var(--wa-bubble); }
.bubble .media { background: #d9dde2; border-radius: 6px; height: 120px; display: grid; place-items: center; margin-bottom: 6px; color: #555; font-size: 12px; }
.bubble .btns { display: flex; flex-direction: column; gap: 1px; margin: 8px -10px -8px; border-top: 1px solid #eee; }
.bubble .btns button { background: #fff; border: 0; border-top: 1px solid #f0f0f0; color: #0b7bd4; padding: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.bubble .btns button:hover { background: #f6fbff; }
.bubble .meta { font-size: 11px; color: #8a8f95; text-align: right; margin-top: 3px; }
.phone .reply { display: flex; gap: 6px; padding: 8px; background: #f0f0f0; }
.phone .reply input { border-radius: 20px; }

.toast { position: fixed; bottom: 22px; right: 22px; background: #22252a; color: #fff; padding: 12px 16px; border-radius: 8px; max-width: 420px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); }
.modal-bg { position: fixed; inset: 0; background: rgba(20,22,26,.45); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: min(560px, 100%); max-height: 90vh; overflow: auto; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: min(480px, 100%); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; cursor: pointer; }
.tabs a.active { color: var(--ink); border-color: var(--brand-dark); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.chart .stack { width: 100%; max-width: 46px; display: flex; gap: 2px; align-items: flex-end; height: 140px; }
.chart .stack span { flex: 1; border-radius: 3px 3px 0 0; }
.chart .lbl { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  nav.side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  nav.side .spacer, nav.side .who { display: none; }
  main.page { padding: 20px 16px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2, .compose { grid-template-columns: 1fr; }
}

/* join poster (A4, prints on its own) */
.poster { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 44px; max-width: 760px; margin: 0 auto; text-align: center; }
.poster-brand { display: inline-block; background: var(--brand); color: #22252a; font-weight: 800; padding: 6px 16px; border-radius: 99px; font-size: 18px; }
.poster h1 { font-size: 2.6rem; line-height: 1.1; margin: 22px 0 10px; }
.poster .lead { font-size: 1.2rem; color: #3b4148; max-width: 560px; margin: 0 auto 26px; }
.poster-main { display: flex; gap: 32px; align-items: center; justify-content: center; text-align: left; flex-wrap: wrap; }
.poster .qr svg { width: 260px; height: 260px; display: block; }
.poster .qr.small svg { width: 90px; height: 90px; }
.poster ol { font-size: 1.3rem; line-height: 1.5; padding-left: 26px; margin: 0; }
.poster ol li { margin-bottom: 10px; }
.poster-number { font-size: 1.15rem; margin: 26px 0; }
.poster-foot { display: flex; gap: 16px; align-items: center; text-align: left; font-size: 13.5px; color: #474d55; border-top: 1px solid var(--line); padding-top: 18px; }
@media print {
  body { background: #fff; }
  nav.side, .page-head, .banner, .toast { display: none !important; }
  .shell { display: block; } main.page { padding: 0; max-width: none; }
  .poster { border: 0; max-width: none; padding: 10mm; }
  @page { size: A4; margin: 10mm; }
}

/* notices + nav badge */
.notice { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 10px; font-size: 14px; border: 1px solid var(--line); background: #fff; }
.notice.warn { background: var(--warn-soft); border-color: #f3dc8c; }
.notice.bad { background: var(--bad-soft); border-color: #efc2be; }
.badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }

/* message types */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.type { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; font-weight: 400; opacity: .6; }
.type.on { opacity: 1; border-color: var(--brand-dark); box-shadow: 0 0 0 1px var(--brand-dark) inset; }
.phone.mini { min-height: 0; border-width: 0; border-radius: 10px; position: static; }
.phone.mini .msgs { max-height: 240px; }

/* launch kit */
.poster-brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 99px; font-weight: 800; font-size: 18px; color: #22252a; }
.poster-brand img { height: 34px; width: auto; max-width: 120px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.flyers { display: grid; gap: 14px; }
.flyer { background: #fff; border: 1px dashed #bbb; border-radius: 10px; padding: 22px; text-align: center; }
.flyer h2 { font-size: 1.6rem; margin: 14px 0; }
.flyer .qr svg { width: 180px; height: 180px; }
.stickers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sticker { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px dashed #bbb; border-radius: 10px; padding: 12px; font-size: 14px; }
.sticker .qr svg { width: 110px; height: 110px; display: block; }
pre.script { white-space: pre-wrap; font: 14.5px/1.55 Inter, system-ui, sans-serif; margin: 0 0 12px; }
@media print {
  #notices, .tabs, .kinds, .muted.small, .card:not(.print-area) { display: none !important; }
  .print-area .flyer { height: 135mm; page-break-inside: avoid; }
  .print-area .sticker { height: 62mm; page-break-inside: avoid; }
  .print-area.card { border: 0; }
}

/* translations on the send screen */
.translations { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 6px 0 16px; background: #fcfcfa; }
.trbox { border-top: 1px solid var(--line); padding: 10px 0 2px; }
.trbox summary { cursor: pointer; margin-bottom: 8px; }

/* =================================================================== Worksy Lite refresh */
:root { --ink: #1c1f24; --muted: #5f6670; --line: #e7e4dc; --bg: #f7f5f0; --card: #ffffff; --brand-ink: #7a5c00; --shadow: 0 1px 2px rgba(28,31,36,.04), 0 6px 24px rgba(28,31,36,.06); --radius: 14px; }
body { background: var(--bg); -webkit-font-smoothing: antialiased; }
.card { border-color: var(--line); box-shadow: var(--shadow); }
.kpi { border-color: var(--line); box-shadow: var(--shadow); border-radius: var(--radius); }
.btn { border-radius: 10px; transition: background .15s, transform .05s, box-shadow .15s; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 12px 22px; font-size: 16px; }
.btn.wide { width: 100%; justify-content: center; }
.ico { flex: none; }
.btn .ico { margin: 0 -2px; }
input, select, textarea { border-radius: 10px; border-color: #d9d5ca; padding: 10px 12px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 6px; }
.center { text-align: center; }
.ok-text { color: var(--ok); }
nav.side { background: #1c1f24; padding: 22px 14px; }
nav.side a { color: #c9ccd2; font-weight: 500; }
nav.side a:hover { background: #2a2e35; color: #fff; }
nav.side a.active { background: var(--brand); color: #1c1f24; }
.logo { padding: 0 8px 26px; gap: 8px; }
.logo img { height: 30px; }

/* ---- sign up / sign in */
.auth2 { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 44%) 1fr; }
.auth2-brand { background: radial-gradient(1200px 600px at -10% 110%, rgba(255,205,56,.22), transparent 60%), #1c1f24; color: #e9e7e1; padding: 48px 56px; display: flex; flex-direction: column; }
.auth2-logo { height: 40px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.auth2-brand .lite { vertical-align: middle; }
.auth2-pitch { margin: auto 0; max-width: 520px; }
.auth2-pitch h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.02em; color: #fff; margin: 0 0 28px; }
.auth2-pitch ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.auth2-pitch li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: #c9c6bd; }
.auth2-pitch li .ico { color: var(--brand); margin-top: 2px; }
.auth2-pitch b { color: #fff; }
.auth2-foot { letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: #8b8a84; }
.auth2-form { display: grid; place-items: center; padding: 40px 24px; }
.auth2-card { width: min(520px, 100%); }
.auth2-card h2 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 8px; }
.auth2-card > .muted { margin-bottom: 22px; }

/* ---- setup wizard */
.wiz { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.wiz-rail { position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px 18px; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; background: conic-gradient(var(--brand) calc(var(--p) * 1%), #efece4 0); display: grid; place-items: center; }
.ring > div { width: 72px; height: 72px; border-radius: 50%; background: var(--card); display: grid; place-items: center; align-content: center; text-align: center; }
.ring b { font-size: 20px; line-height: 1; } .ring span { font-size: 11px; color: var(--muted); }
.ring.small { width: 56px; height: 56px; margin: 0; } .ring.small > div { width: 42px; height: 42px; } .ring.small b { font-size: 13px; }
.rail-title { text-align: center; font-weight: 700; margin: 0 0 16px; }
.wiz-rail ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wiz-rail li a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; }
.wiz-rail li a:hover { background: #f6f4ee; }
.wiz-rail li.cur a { background: var(--brand-soft); box-shadow: inset 0 0 0 1px #f0d77e; }
.wiz-rail .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #efece4; font-weight: 700; font-size: 13px; color: var(--muted); flex: none; }
.wiz-rail li.ok .dot { background: var(--ok); color: #fff; }
.wiz-rail li.cur .dot { background: var(--brand); color: #1c1f24; }
.wiz-rail .txt { display: flex; flex-direction: column; line-height: 1.25; }
.wiz-rail .txt small { color: var(--muted); font-size: 12.5px; }
.rail-skip { display: block; text-align: center; }
.wiz-main { min-width: 0; max-width: 980px; }
.wiz-head { display: flex; gap: 18px; align-items: flex-start; margin: 4px 0 22px; }
.wiz-head h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 6px; }
.wiz-head .lead { font-size: 16px; color: var(--muted); max-width: 720px; margin: 0; }
.wiz-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #1c1f24; display: grid; place-items: center; flex: none; }
.wiz-foot { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 16px 0 6px; margin-top: 8px; background: linear-gradient(transparent, var(--bg) 30%); }
.form-card { padding: 24px 26px; }
.form-card h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.form-card.locked { opacity: .55; }
.callout { display: flex; gap: 12px; background: #f6f4ee; border-radius: 12px; padding: 14px 16px; margin: 6px 0 16px; }
.callout .ico { color: var(--brand-ink); margin-top: 2px; }
.callout b { display: block; } .callout span { color: var(--muted); font-size: 14px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: start; }
.success-card { display: flex; gap: 14px; align-items: center; background: var(--ok-soft); border: 1px solid #bfe3cd; color: #134e31; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px; }
.success-card b { display: block; } .success-card span { font-size: 14px; }

/* choices */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.choice { display: flex; gap: 14px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; font: inherit; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: #e0c56a; }
.choice.sel { border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(255,205,56,.35); }
.choice.disabled { cursor: not-allowed; opacity: .6; }
.choice-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.choice-body b { display: block; margin-bottom: 4px; } .choice-body span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.what-you-need { background: #fff; border: 1px dashed #d9d5ca; border-radius: 14px; padding: 14px 18px; }
.what-you-need ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.what-you-need li { display: flex; gap: 10px; font-size: 14px; color: #3c4148; } .what-you-need .ico { color: var(--brand-ink); margin-top: 1px; }
.center-card { text-align: center; } .center-card .btn { margin: 8px auto 10px; }
.steps-mini { text-align: left; display: inline-block; color: #3c4148; }
.copyrow { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.copyrow label { margin: 0; } .copyrow code { padding: 8px 10px; }

/* dropzone */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 2px dashed #d9d5ca; border-radius: 16px; padding: 30px 20px; cursor: pointer; background: #fbfaf7; transition: border-color .15s, background .15s; font-weight: 400; margin: 0; }
.drop:hover, .drop.over { border-color: var(--brand-dark); background: var(--brand-soft); }
.drop.has { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.drop-ico { color: var(--brand-ink); } .drop b { font-size: 15px; }

/* brand step */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.sw.sel { box-shadow: 0 0 0 3px var(--ink); }
.sw.custom { display: grid; place-items: center; background: conic-gradient(#f43f5e, #f59e0b, #84cc16, #06b6d4, #6366f1, #f43f5e); overflow: hidden; }
.sw.custom input { opacity: 0; width: 36px; height: 36px; cursor: pointer; }
.preview-col { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
.wa-profile { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-align: center; padding: 0 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden; }
.wa-top { height: 54px; background: var(--wa); margin: 0 -18px; width: calc(100% + 36px); }
.wa-avatar { width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; margin-top: -42px; background: #eceae4; display: grid; place-items: center; overflow: hidden; font-size: 32px; font-weight: 800; color: #6b6a64; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-poster { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mp-brand { display: inline-flex; gap: 8px; align-items: center; padding: 5px 14px; border-radius: 99px; background: var(--brand); color: #1c1f24; }
.mp-brand img { height: 22px; max-width: 70px; object-fit: contain; background: #fff; border-radius: 4px; padding: 1px; }
.mp-h { font-size: 18px; line-height: 1.2; }
.mp-qr { width: 96px; height: 96px; border-radius: 8px; background: repeating-conic-gradient(#1c1f24 0 25%, #fff 0 50%) 0 0 / 16px 16px; opacity: .85; }
.mini-poster.big .mp-h { font-size: 22px; }
.mp-qrimg svg { width: 170px; height: 170px; display: block; }

/* messages step */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.type-tile { position: relative; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; font-weight: 400; margin: 0; opacity: .65; transition: border-color .15s, opacity .15s; }
.type-tile input { position: absolute; opacity: 0; }
.type-tile.on { opacity: 1; border-color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(255,205,56,.25); }
.tt-ico { font-size: 24px; }
.tt-check { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: #efece4; color: transparent; display: grid; place-items: center; }
.type-tile.on .tt-check { background: var(--ok); color: #fff; }
.lang-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.lang-chip { display: inline-flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-weight: 600; margin: 0; background: #fff; }
.lang-chip.on { border-color: var(--brand-dark); background: var(--brand-soft); }

/* people step */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { background: #f6f4ee; border-radius: 12px; padding: 12px; } .stat b { display: block; font-size: 24px; } .stat span { font-size: 13px; color: var(--muted); }
.stat.ok { background: var(--ok-soft); } .stat.warn { background: var(--warn-soft); } .stat.bad { background: var(--bad-soft); }

/* reminders step */
.day-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.chip { font: inherit; font-weight: 600; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.chip.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 42px; height: 24px; border-radius: 99px; background: #d9d5ca; position: relative; flex: none; transition: background .15s; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--ok); } .toggle input:checked + span::after { left: 21px; }

/* launch step + health */
.launch-card { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.launch-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.launch-list { padding-left: 20px; } .launch-list li { margin-bottom: 8px; }
.health-card h3 { display: flex; gap: 8px; align-items: center; }
.health { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #f1eee7; }
.health b { display: block; font-size: 14px; } .health span { font-size: 13px; color: var(--muted); }
.hdot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: #c9c6bd; }
.health.ok .hdot { background: var(--ok); } .health.warn .hdot { background: #e0a400; } .health.bad .hdot { background: var(--bad); } .health.demo .hdot { background: #6d8bd6; }
.setup-banner { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #f0d77e; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 18px; }
.setup-banner > div:nth-child(2) { flex: 1; } .setup-banner b { display: block; } .setup-banner span { font-size: 14px; color: var(--muted); }

@media (max-width: 1100px) { .wiz { grid-template-columns: 1fr; } .wiz-rail { position: static; } .choices { grid-template-columns: 1fr; } .split { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .auth2 { grid-template-columns: 1fr; } .auth2-brand { padding: 32px 24px; } .auth2-pitch h1 { font-size: 28px; } .copyrow { grid-template-columns: 1fr; } }

.auth2-mark { display: flex; align-items: center; gap: 10px; }
.auth2-mark .auth2-logo { margin: 0; }

/* wizard widths */
main.page { max-width: 1360px; }
.choices { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 1360px) { .wiz { grid-template-columns: 250px 1fr; gap: 22px; } .split { grid-template-columns: 1fr; } .preview-col { position: static; flex-direction: row; flex-wrap: wrap; } .preview-col > * { flex: 1; min-width: 240px; } }

/* toasts sit top-right so they never cover the Save and continue button */
.toast { top: 20px; bottom: auto; }

/* wide tables scroll inside their card, never the whole page */
.shell { grid-template-columns: 232px minmax(0, 1fr); }
main.page { min-width: 0; }
.table-wrap { max-width: 100%; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); } }

/* ---- plan & billing */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table tr.cur td { background: var(--brand-soft); font-weight: 600; }
.bill-est { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.bill-est > div { background: #f6f4ee; border-radius: 12px; padding: 10px 12px; }
.bill-est b { display: block; font-size: 22px; letter-spacing: -0.01em; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.sel { background: var(--brand); color: var(--brand-ink); }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; margin-top: 10px; }
.meter { height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--brand-dark); }
.meter i.bad, .bad-text { color: var(--bad, #b42318); } .meter i.bad { background: var(--bad, #b42318); }
@media (max-width: 640px) { .bill-est { grid-template-columns: 1fr; } }

/* ================================================================ phones and small tablets
   Placed last so it wins over the desktop rules above. */
.nav-toggle { display: none; }
.demo-grid { grid-template-columns: 280px minmax(0, 360px); }
.nav-links { display: contents; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1100px) {
  .wiz { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wiz-rail { position: static; }
  .split, .choices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  /* top bar: logo + current page + menu button; links open below it */
  nav.side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: column; flex-wrap: nowrap; padding: 10px 14px; gap: 0; }
  nav.side .logo { padding: 0; }
  nav.side .logo img { height: 28px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; background: #2f3339; color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
  .nav-links { display: none; }
  nav.side.open .nav-links { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 4px; max-height: calc(100vh - 60px); overflow-y: auto; }
  nav.side.open .who { display: block; border-top: 1px solid #353a41; margin-top: 8px; }
  nav.side.open .spacer { display: none; }
  nav.side a { padding: 11px 12px; }
  main.page { padding: 16px 16px 90px; }
  .page-head h1, .wiz-head h1 { font-size: 24px; }
  .wiz-head { gap: 12px; margin-bottom: 16px; }
  .wiz-icon { display: none; }
  .wiz-head .lead { font-size: 15px; }
  /* setup progress: one compact card with a scrollable row of steps */
  .wiz-rail { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 14px; border-radius: 14px; }
  .wiz-rail .ring { width: 60px; height: 60px; margin: 0; grid-row: span 2; } .wiz-rail .ring > div { width: 46px; height: 46px; }
  .wiz-rail .ring b { font-size: 15px; } .wiz-rail .ring span { display: none; }
  .wiz-rail .rail-title { margin: 0; font-size: 15px; }
  .wiz-rail ol { flex-direction: row; overflow-x: auto; gap: 6px; margin: 0; padding-bottom: 2px; scrollbar-width: none; }
  .wiz-rail li a { padding: 4px; }
  .wiz-rail li .txt { display: none; }
  .wiz-rail li.cur .txt { display: flex; } .wiz-rail li.cur .txt small { display: none; }
  .wiz-rail li.cur a { padding: 4px 10px 4px 4px; white-space: nowrap; }
  .wiz-rail > .btn, .wiz-rail .rail-skip { grid-column: 1 / -1; }
  .wiz-foot { flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  .wiz-foot #wiz-hint { display: none; }
  .wiz-foot > span[style] { display: none; }
  .wiz-foot .btn-lg { flex: 1; justify-content: center; padding: 12px 14px; white-space: nowrap; }
  .g2, .g3, .compose { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { position: static; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-grid > :last-child { order: -1; } /* the phone first, the list of people below it */
  .demo-list { max-height: 260px !important; }
  .card, .form-card { padding: 16px; }
  .notice { flex-wrap: wrap; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs a { white-space: nowrap; padding: 8px 10px; }
  .setup-banner { flex-wrap: wrap; }
  .setup-banner .btn { width: 100%; justify-content: center; }
  .launch-actions, .row { flex-wrap: wrap; }
  .modal { padding: 18px; }
  input, select, textarea { font-size: 16px; max-width: 100%; } /* 16px stops iPhone zooming into fields */
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; } .kpi .value { font-size: 24px; }
  .auth2-brand { padding: 22px 20px; }
  .auth2-pitch { margin: 18px 0 0; }
  .auth2-pitch h1 { font-size: 22px; margin-bottom: 12px; }
  .auth2-pitch ul, .auth2-foot { display: none; }
  .auth2-form { padding: 24px 16px 40px; place-items: start center; }
  .auth2-card h2 { font-size: 24px; }
  .bill-est { grid-template-columns: minmax(0, 1fr); }
  .choice { padding: 14px; }
  .poster { padding: 24px 16px; }
  .poster h1 { font-size: 1.8rem; }
  .poster .qr svg { width: 200px; height: 200px; }
}

/* ---- employee list: four ways in */
.emp-methods { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 16px; }
.emp-methods .choice-ico { font-size: 22px; }
.emp-grid-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: 10px; }
.emp-grid { width: 100%; border-collapse: collapse; min-width: 620px; }
.emp-grid th { position: sticky; top: 0; background: #f6f4ee; font-size: 12.5px; text-align: left; padding: 8px; z-index: 1; }
.emp-grid td { border-top: 1px solid var(--line); padding: 0; }
.emp-grid td.num, .emp-grid th.num { width: 36px; text-align: center; color: var(--muted); font-size: 12px; }
.emp-grid input { border: 0; border-radius: 0; padding: 9px 8px; width: 100%; background: transparent; }
.emp-grid input:focus { outline: 2px solid var(--brand-dark); outline-offset: -2px; background: #fffdf3; }
.emp-grid input.bad { background: var(--bad-soft); }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 18px; width: 32px; height: 32px; cursor: pointer; border-radius: 8px; }
.icon-btn:hover { background: #f1efe9; color: var(--bad); }
.full-list { display: block; margin: 12px 0; }
.steps-list { margin: 0 0 14px; padding-left: 22px; line-height: 1.7; }
.callout.founding { background: var(--brand-soft); border: 1px solid #f0d77e; }

/* WhatsApp launch checklist (guide → Connect WhatsApp) */
.checklist { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li > div { display: flex; flex-direction: column; gap: 2px; }
.checklist .dot { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #d9d5ca; display: grid; place-items: center; margin-top: 1px; }
.checklist li.ok .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.bad-text { color: var(--bad); }
form.locked { opacity: .5; pointer-events: none; }
