@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --canvas: #fcfcfc; --surface: #ffffff; --surface-sunken: #f4f6f9; --surface-tint: #eef6fd;
  --line: #e7ebf0; --line-strong: #7b8495;
  --ink: #0b0f17; --ink-muted: #4b5260; --ink-subtle: #667085;
  --action: #0b0f17; --on-action: #ffffff;
  --accent: #2598fd; --accent-strong: #1a87fb; --accent-deep: #1468e0; --accent-text: #0866c4; --accent-soft: #e6f3ff;
  --sky: #6bd2ff; --sky-soft: #d8f1ff; --on-glow: #0b0f17; --on-accent: #ffffff;
  --success: #15803d; --success-soft: #e8f7ee; --warning: #b45309; --warning-soft: #fff4e5; --danger: #c2261d; --danger-soft: #fdecec;
  --focus: #1a6fe0; --scrim: rgba(11, 15, 23, 0.48);
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --pill: 999px;
  --shadow-card: 0 1px 2px rgba(11, 15, 23, 0.04), 0 8px 24px rgba(11, 15, 23, 0.05);
  --shadow-float: 0 12px 40px rgba(20, 104, 224, 0.18);
  --shadow-focus: 0 0 0 2px #ffffff, 0 0 0 4px #1a6fe0;
  --gradient-hero: linear-gradient(120deg, #1468e0 0%, #2598fd 52%, #7cc8ff 100%);
  --gradient-glow: radial-gradient(circle at 22% 84%, #1468e0 0%, #3cabfe 30%, #a9dcff 62%, #e6f3ff 100%);
  --gradient-wash: linear-gradient(180deg, #fcfcfc 0%, #eef6fd 55%, #cfe9ff 100%);
  --action-hover: #2a313d;
  color-scheme: light;
}
[data-theme="dark"] {
  --canvas: #05070d; --surface: #0c1220; --surface-sunken: #131c30; --surface-tint: #0b1a3a;
  --line: #1c2740; --line-strong: #66738c;
  --ink: #f3f6fb; --ink-muted: #a6b0c2; --ink-subtle: #8791a5;
  --action: #ffffff; --on-action: #0b0f17; --action-hover: #d7dce4;
  --accent: #3cabfe; --accent-strong: #2598fd; --accent-text: #6bc4ff; --accent-soft: #0e2550;
  --sky-soft: #10264a;
  --success: #4ade80; --success-soft: #0d2a1a; --warning: #fbbf24; --warning-soft: #2e2008; --danger: #f87171; --danger-soft: #2f1214;
  --focus: #6bc4ff; --scrim: rgba(0, 0, 0, 0.64);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 16px 48px rgba(20, 104, 224, 0.35);
  --shadow-focus: 0 0 0 2px #0c1220, 0 0 0 4px #6bc4ff;
  --gradient-wash: radial-gradient(ellipse at 50% 0%, #142d76 0%, #0b1a41 40%, #05070d 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-sans); background: var(--surface-tint); color: var(--ink); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-text); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Icons */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-xs { width: 14px; height: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--pill); border: 1px solid transparent; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-sunken); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--ink-muted); }
.btn-ghost:hover { background: var(--surface-sunken); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-block { width: 100%; }
.ibtn { width: 36px; height: 36px; flex: none; border-radius: var(--pill); display: inline-grid; place-items: center; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.ibtn:hover { background: var(--surface-sunken); }
.ibtn-sm { width: 28px; height: 28px; }
.ibtn-dark { background: var(--action); color: var(--on-action); border-color: var(--action); }
.ibtn-dark:hover { background: var(--action-hover); }
.ibtn[disabled] { opacity: .35; cursor: not-allowed; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--pill); font-size: 11px; line-height: 14px; font-weight: 500; white-space: nowrap; background: var(--surface-sunken); color: var(--ink-muted); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--accent-soft); color: var(--accent-text); }
.badge-solid { background: var(--action); color: var(--on-action); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--accent-deep); color: var(--on-accent); font-size: 11px; font-weight: 600; }

/* Segmented */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: var(--pill); font-size: 13px; font-weight: 500; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.seg-sm button { height: 26px; padding: 0 10px; font-size: 12px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .flabel { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.input { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-subtle); min-width: 0; }
.input:focus-within { box-shadow: var(--shadow-focus); border-color: transparent; }
.input input, .input select { border: 0; outline: 0; background: transparent; color: var(--ink); flex: 1; min-width: 0; height: 100%; }
.input .suffix { font-size: 12px; color: var(--ink-subtle); }
.input-sq { border-radius: var(--r-md); }
textarea.ta { width: 100%; min-height: 64px; padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); resize: vertical; }
textarea.ta:focus { outline: none; box-shadow: var(--shadow-focus); border-color: transparent; }
select.sel { height: 40px; padding: 0 36px 0 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--ink); cursor: pointer; }

/* Toggle */
.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { width: 40px; height: 24px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface-sunken); position: relative; flex: none; transition: background-color .15s ease; }
.toggle .thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--line-strong); transition: transform .15s ease; display: grid; place-items: center; color: var(--action); }
.toggle input:checked + .track { background: var(--action); border-color: var(--action); }
.toggle input:checked + .track .thumb { transform: translateX(16px); background: var(--on-action); }
.toggle input:focus-visible + .track { box-shadow: var(--shadow-focus); }

/* Cards */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 32px; }
.card-title { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0; }
.card-sub { font-size: 12px; line-height: 16px; color: var(--ink-subtle); margin: 0; }
.chip-ico { width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--surface-sunken); color: var(--ink); }
.hero { background: var(--gradient-hero); color: var(--on-accent); box-shadow: var(--shadow-float); }
.glow { background: var(--gradient-glow); color: var(--on-glow); }
.stat { display: flex; flex-direction: column; gap: 14px; min-height: 160px; }
.stat-label { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.hero .stat-label { color: var(--on-accent); opacity: .92; }
.glow .stat-label { color: var(--on-glow); }
.amt { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.amt-v { font-weight: 300; letter-spacing: -0.02em; }
.amt-xl .amt-v { font-size: 52px; line-height: 56px; }
.amt-lg .amt-v { font-size: 40px; line-height: 44px; }
.amt-md .amt-v { font-size: 28px; line-height: 32px; }
.amt-u { font-size: 14px; color: var(--ink-subtle); letter-spacing: .02em; }
.hero .amt-u { color: var(--on-accent); opacity: .85; }
.kv-inv { display: flex; gap: 24px; flex-wrap: wrap; font-size: 11px; margin-top: auto; }
.kv-inv b { display: block; font-size: 13px; font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface-sunken); margin: 0; }
.kv dt { font-size: 11px; line-height: 14px; color: var(--ink-subtle); }
.kv dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.row:first-child { border-top: 0; padding-top: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-t { font-size: 14px; font-weight: 500; }
.row-d { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.row-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 16px; color: var(--ink-subtle); margin-top: 12px; }
.callout { padding: 12px 16px; border-radius: var(--r-md); background: var(--accent-soft); font-size: 13px; line-height: 18px; }
.callout b { color: var(--accent-text); font-weight: 600; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vstack { display: flex; flex-direction: column; gap: 12px; }
.add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; width: 100%; border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: transparent; font-size: 13px; font-weight: 500; color: var(--ink-muted); cursor: pointer; }
.add:hover { background: var(--accent-soft); color: var(--ink); }
code.code { font-size: 12px; padding: 6px 12px; border-radius: var(--pill); background: var(--surface-sunken); color: var(--ink); word-break: break-all; }
pre.code { margin: 0; font-size: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-sunken); white-space: pre-wrap; word-break: break-all; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; display: flex; flex-direction: column; gap: 8px; padding: 20px 16px; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; padding: 0 8px; height: 40px; }
.brand img { height: 30px; width: auto; }
.logo-dark { display: none !important; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--ink); }
.logo-dark img { height: 26px !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: inline-flex !important; }
.ws { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); margin: 8px 0 12px; font-size: 13px; font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: var(--pill); color: var(--ink-muted); text-decoration: none; font-size: 13px; }
.nav a:hover { background: var(--surface-sunken); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--action); color: var(--on-action); font-weight: 500; }
.nav a .count { margin-left: auto; }
.nav-sep { height: 16px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.main { flex: 1; min-width: 0; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.head h1 { font-size: 30px; line-height: 36px; font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-subtle); }
.head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: 2fr 1fr 1fr; }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.topbar { display: none; }
.mnav { display: none; }
@media (max-width: 1100px) {
  .grid-kpi { grid-template-columns: 1fr 1fr; } .grid-kpi > :first-child { grid-column: 1 / -1; }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .side { display: none; }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .topbar img { height: 24px; }
  .shell { flex-direction: column; }
  .main { padding: 16px 16px 96px; }
  .head-actions { margin-left: 0; width: 100%; }
  .mnav { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; background: var(--surface); border-radius: var(--pill); box-shadow: var(--shadow-float); padding: 6px; gap: 4px; }
  .mnav a { flex: 1; height: 44px; display: grid; place-items: center; border-radius: var(--pill); color: var(--ink-muted); }
  .mnav a[aria-current="page"] { background: var(--action); color: var(--on-action); }
  .amt-xl .amt-v { font-size: 42px; line-height: 46px; }
}

/* Lang switch */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); }
.lang button { border: 0; background: transparent; height: 26px; min-width: 34px; padding: 0 8px; border-radius: var(--pill); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--action); color: var(--on-action); }

/* Builder */
.builder { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(370px, 400px); gap: 16px; align-items: start; }
.builder .preview-col { position: sticky; top: 16px; }
@media (max-width: 1280px) { .builder { grid-template-columns: 240px minmax(0, 1fr); } .builder .preview-col { grid-column: 1 / -1; position: static; } }
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steps li > .step-item { flex: 1; min-width: 0; }
.step-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: var(--pill); background: var(--surface-sunken); cursor: pointer; border: 0; width: 100%; text-align: left; }
.step-item:hover { background: var(--line); }
.step-item[aria-current="true"] { background: var(--action); color: var(--on-action); }
.step-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--surface); color: var(--ink-muted); flex: none; }
.step-item[aria-current="true"] .step-n { background: var(--accent-deep); color: var(--on-accent); }
.step-txt { flex: 1; min-width: 0; }
.step-txt b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-txt span { font-size: 11px; color: var(--ink-subtle); }
.step-item[aria-current="true"] .step-txt span { color: var(--on-action); opacity: .75; }
.opt-table { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 80px 32px; gap: 8px; align-items: center; }
.opt-row .input { padding: 0 10px; }
.opt-row.head-row { font-size: 11px; color: var(--ink-subtle); font-weight: 500; }
@media (max-width: 560px) { .opt-row { grid-template-columns: 1fr 1fr; } .opt-row.head-row { display: none; } }
.layout-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.layout-pick button { text-align: left; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.layout-pick button[aria-pressed="true"] { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.layout-pick b { font-size: 13px; font-weight: 500; }
.layout-pick span { font-size: 11px; line-height: 14px; color: var(--ink-subtle); }
.mini { height: 54px; border-radius: 8px; background: var(--surface-sunken); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.mini i { display: block; border-radius: 3px; background: var(--line); height: 6px; }
.mini i.a { background: var(--accent); }
.mini i.b { background: var(--action); width: 40%; align-self: flex-end; }
.tr-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tr-miss { width: 6px; height: 6px; border-radius: 50%; background: var(--warning); display: inline-block; }

/* Preview frame */
.pv-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.device { margin: 0 auto; background: var(--canvas); border: 8px solid var(--action); border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; }
.device.phone { width: 360px; max-width: 100%; height: 700px; }
.device.desk { width: 100%; height: 700px; border-width: 6px; border-radius: 18px; }

/* Runner (end-customer form) */
.rn { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); }
.rn-head { padding: 16px 18px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.rn-biz { display: flex; align-items: center; gap: 10px; }
.rn-av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-deep); color: var(--on-accent); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.rn-biz b { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-prog { display: flex; gap: 4px; }
.rn-prog i { flex: 1; height: 4px; border-radius: var(--pill); background: var(--line); }
.rn-prog i.on { background: var(--accent); }
.rn-step-l { font-size: 11px; color: var(--ink-subtle); }
.rn-body { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.rn-q { margin: 0 0 6px; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; }
.rn-help { margin: -2px 0 6px; font-size: 13px; color: var(--ink-subtle); }
.opt { text-align: left; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px; border-radius: var(--rn-r, 18px); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .15s ease; }
.opt:hover { background: var(--surface-sunken); }
.opt.on { background: var(--action); color: var(--on-action); border-color: var(--action); }
.opt .od { display: block; font-size: 12px; line-height: 16px; color: var(--ink-subtle); margin-top: 2px; }
.opt.on .od { color: var(--on-action); opacity: .8; }
.opt .op { font-size: 13px; font-weight: 500; white-space: nowrap; }
.opt .ock { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.opt.on .ock { background: var(--on-action); color: var(--action); border-color: var(--on-action); }
.cnt { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); }
.cnt span.l { flex: 1; font-weight: 500; }
.cnt .v { width: 28px; text-align: center; font-size: 22px; font-weight: 300; }
.rn-input { width: 100%; height: 48px; padding: 0 16px; border-radius: var(--rn-ri, 14px); color: var(--ink); border: 1px solid var(--line-strong); background: var(--surface); }
.rn-input:focus { outline: none; box-shadow: var(--shadow-focus); border-color: transparent; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { height: 40px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 13px; }
.slot.on { background: var(--action); color: var(--on-action); border-color: var(--action); }
.rn-foot { padding: 12px 18px 18px; background: var(--surface); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.rn-foot .tot { flex: 1; min-width: 0; }
.rn-foot .tot > span:first-child { display: block; font-size: 11px; color: var(--ink-subtle); }
.rn-sum { border-radius: var(--rn-r, 18px); background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.rn-sum .ln { display: flex; justify-content: space-between; gap: 12px; }
.rn-sum .mut { color: var(--ink-muted); }
.rn-sum hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.rn-sec { padding: 18px; border-radius: var(--rn-r, 20px); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.rn-sec h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.rn-sec .secn { font-size: 11px; color: var(--ink-subtle); }
.rn-done { margin: 32px 0 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rn-done .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--gradient-hero); color: var(--on-accent); display: grid; place-items: center; box-shadow: var(--shadow-float); }
.rn-powered { font-size: 11px; color: var(--ink-subtle); text-align: center; padding: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rn-powered img { height: 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bub { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 20px; }
.bub.biz { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.bub.me { background: var(--accent-deep); color: var(--on-accent); border-bottom-right-radius: 6px; align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--pill); padding: 8px 14px; cursor: pointer; font-size: 13px; font-weight: 500; }
.chip.on { background: var(--action); color: var(--on-action); border-color: var(--action); }
.rn-wide .rn-body { padding: 28px clamp(18px, 4vw, 48px); }
.rn-wide .rn-inner { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.rn-listgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rn-wide .rn-listgrid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; max-width: 980px; margin: 0 auto; width: 100%; }
.rn-wide .rn-listgrid .rn-side { position: sticky; top: 0; }
.rn-side { display: none; }
.rn-wide .rn-side { display: block; }

/* Public page */
.pub { min-height: 100vh; background: var(--gradient-wash); display: flex; justify-content: center; padding: 24px 12px; }
.pub-frame { width: 100%; max-width: 980px; height: calc(100vh - 48px); min-height: 640px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-card); background: var(--canvas); }
@media (max-width: 640px) { .pub { padding: 0; } .pub-frame { border-radius: 0; height: 100vh; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan.feat { outline: 2px solid var(--action); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic { color: var(--accent-deep); margin-top: 1px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
table.tbl th { font-size: 12px; font-weight: 500; color: var(--ink-subtle); text-align: left; padding: 0 14px; }
table.tbl td { padding: 12px 14px; background: var(--surface-sunken); }
table.tbl td:first-child { border-radius: var(--pill) 0 0 var(--pill); }
table.tbl td:last-child { border-radius: 0 var(--pill) var(--pill) 0; }
table.tbl .r { text-align: right; }
.tblwrap { overflow-x: auto; }
.bar { height: 24px; border-radius: var(--pill); background: var(--sky-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: var(--pill); background: var(--accent); }
.funnel-row { display: grid; grid-template-columns: 160px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
@media (max-width: 560px) { .funnel-row { grid-template-columns: 110px 1fr 48px; } }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.radio-cards button { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.radio-cards button b { font-weight: 500; }
.radio-cards button span { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.radio-cards button[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }
.radio-cards button[aria-pressed="true"] span { color: var(--on-action); opacity: .8; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--action); color: var(--on-action); padding: 10px 18px; border-radius: var(--pill); font-size: 13px; box-shadow: var(--shadow-float); z-index: 50; }
.modal-bg { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-lg); padding: 20px; width: 100%; max-width: 480px; box-shadow: var(--shadow-float); }
.typepick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.typepick button { text-align: left; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.typepick button:hover { background: var(--surface-sunken); }
.typepick b { display: block; font-size: 13px; font-weight: 500; }
.typepick span { font-size: 11px; color: var(--ink-subtle); line-height: 14px; }

/* Bookings, clients, admin, auth, onboarding */
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--line); }
tr.sel td { background: var(--accent-soft); }
.drawer { position: sticky; top: 16px; }
.auth { min-height: 100vh; background: var(--gradient-wash); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.auth-top img { height: 28px; }
.auth h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; }
.auth p { margin: 0; color: var(--ink-subtle); font-size: 13px; }
.linkbtn { border: 0; background: transparent; color: var(--accent-text); cursor: pointer; padding: 0; font-weight: 500; text-decoration: underline; }
.err { color: var(--danger); font-size: 12px; }
.onb { min-height: 100vh; background: var(--surface-tint); display: flex; flex-direction: column; }
.onb-head { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.onb-head img { height: 26px; }
.onb-steps { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.onb-steps span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-subtle); padding: 6px 12px; border-radius: var(--pill); }
.onb-steps span b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); font-size: 11px; color: var(--ink-muted); }
.onb-steps span.on { background: var(--action); color: var(--on-action); }
.onb-steps span.on b { background: var(--accent-deep); color: var(--on-accent); }
.onb-steps span.done b { background: var(--success-soft); color: var(--success); }
.onb-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; padding: 24px; max-width: 1200px; width: 100%; margin: 0 auto; align-items: start; }
@media (max-width: 960px) { .onb-body { grid-template-columns: 1fr; } }
.onb-body h1 { margin: 0 0 4px; font-size: 30px; line-height: 36px; font-weight: 400; letter-spacing: -0.02em; }
.niche-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.niche-grid button { text-align: left; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.niche-grid button[aria-pressed="true"] { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.niche-grid b { font-size: 14px; font-weight: 500; }
.niche-grid span.d { font-size: 12px; line-height: 16px; color: var(--ink-subtle); }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.themes button { padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: flex; flex-direction: column; gap: 8px; text-align: left; color: var(--ink); }
.themes button[aria-pressed="true"] { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.themes b { font-size: 12px; font-weight: 500; }
.swatch { height: 56px; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(127, 127, 127, .18); }
.swatch i { display: block; height: 6px; border-radius: 3px; }
.swatch i.btn-s { width: 46%; height: 12px; align-self: flex-end; border-radius: 6px; }
.adm-head { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--action); color: var(--on-action); flex-wrap: wrap; }
.adm-head img { height: 22px; }
.adm-head .badge { background: var(--accent-deep); color: #fff; }
.adm-head a { color: var(--on-action); opacity: .85; font-size: 13px; }
.mbar { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.mbar div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 11px; color: var(--ink-subtle); }
.mbar i { display: block; width: 100%; max-width: 40px; border-radius: 8px 8px 4px 4px; background: var(--sky-soft); }
.mbar div:last-child i { background: var(--accent); }
.theme-toggle { display: flex; }
.side .seg { display: flex; flex-wrap: nowrap; }
.side .seg button { flex: 1; padding: 0 4px; justify-content: center; gap: 4px; }
.ws { min-width: 0; overflow: hidden; white-space: nowrap; }

/* ===== Round 4 ===== */
/* Language picker: icon that expands */
.lang { position: relative; align-items: center; }
.lang .lang-tog { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.lang.open { border-color: var(--line-strong); }
.lang.open .lang-tog { background: var(--surface-sunken); }
.appbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: -8px; }
@media (max-width: 860px) { .appbar { display: none; } }

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 16px; color: var(--ink-muted); }
.empty .chip-ico { width: 48px; height: 48px; background: var(--accent-soft); color: var(--accent-text); }
.empty b { color: var(--ink); font-size: 15px; font-weight: 500; }
.empty p { margin: 0 0 8px; max-width: 420px; font-size: 13px; line-height: 19px; }
.empty.sm { padding: 24px 12px; }

/* Setup guide inside the dashboard */
.setup { border: 1px solid var(--accent-soft); }
.setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.setup-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.setup-list li:first-child { border-top: 0; }
.setup-n { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--surface-sunken); color: var(--ink-muted); }
.setup-list li.next .setup-n { background: var(--action); color: var(--on-action); }
.setup-list li.done .setup-n { background: var(--success-soft); color: var(--success); }
.setup-list li.done .row-t { color: var(--ink-subtle); text-decoration: line-through; font-weight: 400; }
.setup-list li.done .row-d { display: none; }
.datechip { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; border-radius: 12px; background: var(--surface-sunken); padding: 4px 0; font-size: 10px; text-transform: uppercase; color: var(--ink-subtle); line-height: 12px; }
.datechip b { font-size: 16px; line-height: 20px; color: var(--ink); font-weight: 600; }

/* Forms list */
.form-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.form-card { display: flex; flex-direction: column; gap: 8px; }
.form-card-t { font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 22px; margin-top: 4px; }
.form-card-t:hover { color: var(--accent-text); }
.form-card-a { display: flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; }
.form-new { border: 1.5px dashed var(--line-strong); background: transparent; box-shadow: none; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--ink-muted); min-height: 160px; font: inherit; }
.form-new:hover { background: var(--surface); color: var(--ink); }
.form-new b { font-weight: 500; }

/* Editor */
.ed-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-name { flex: 1; min-width: 200px; font: inherit; font-size: 26px; line-height: 34px; letter-spacing: -0.02em; border: 1px solid transparent; border-radius: 12px; padding: 2px 8px; background: transparent; color: var(--ink); }
.ed-name:hover { border-color: var(--line); }
.ed-name:focus { outline: none; border-color: var(--action); background: var(--surface); }
.ed-actions { display: flex; gap: 8px; margin-left: auto; }
.ed-tabs { align-self: flex-start; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 16px; align-items: start; }
.editor .preview-col { position: sticky; top: 16px; }
.preview { padding: 16px; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor .preview-col { position: static; } }
.chip-ico.sm { width: 26px; height: 26px; }

/* Questions accordion */
.acc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acc > li { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.acc > li.open { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.acc-h { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; }
.acc-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 6px; text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 10px; }
.acc-btn:hover { background: var(--surface-sunken); }
.acc-btn .step-n { background: var(--surface-sunken); }
.acc > li.open .acc-btn .step-n { background: var(--action); color: var(--on-action); }
.acc-tools { display: flex; gap: 4px; }
.acc-b { padding: 4px 16px 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.acc-fixed { background: var(--surface-sunken) !important; border-style: dashed !important; }
@media (max-width: 560px) { .acc-tools .ibtn:not(:last-child) { display: none; } }

/* Calendar */
.cal-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-t { min-width: 150px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-wd { padding: 8px 6px; font-size: 11px; font-weight: 500; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .04em; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-sunken); }
.cal-d { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d.out { background: var(--surface-sunken); opacity: .5; }
.cal-d.past .cal-n { color: var(--ink-subtle); }
.cal-n { font-size: 12px; font-weight: 500; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-d.today .cal-n { background: var(--action); color: var(--on-action); }
.cal-ev { display: flex; align-items: center; gap: 4px; width: 100%; border: 0; border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 11px; line-height: 14px; text-align: left; cursor: pointer; background: var(--accent-soft); color: var(--accent-text); min-width: 0; }
.cal-ev span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev b { font-weight: 600; flex: none; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.cal-ev.st-paid, .cal-ev.st-done { background: var(--success-soft); color: var(--success); }
.cal-ev.st-pending, .cal-ev.st-noshow { background: var(--warning-soft); color: var(--warning); }
.cal-ev.st-cancelled { background: var(--surface-sunken); color: var(--ink-subtle); text-decoration: line-through; }
.cal-ev.sel { box-shadow: 0 0 0 2px var(--action); }
.cal-more { border: 0; background: transparent; font-size: 11px; color: var(--ink-muted); text-align: left; padding: 0 6px; cursor: pointer; }
@media (max-width: 640px) {
  .cal-d { min-height: 64px; padding: 3px; }
  .cal-ev { padding: 0; justify-content: center; background: transparent !important; height: 10px; }
  .cal-ev b, .cal-ev span:last-child { display: none; }
  .cal-ev .cal-dot { width: 8px; height: 8px; }
}
.adm-head .btn-ghost { color: #fff; }
@media (max-width: 640px) {
  .ed-name { font-size: 20px; line-height: 28px; min-width: 0; flex: 1 1 calc(100% - 52px); }
  .ed-actions { margin-left: 0; width: 100%; }
  .ed-actions .btn { flex: 1; }
  .ed-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .ed-tabs button { flex: none; }
}
@media (max-width: 560px) {
  .opt-row:not(.head-row) { grid-template-columns: 1fr 1fr 32px !important; }
  .opt-row:not(.head-row) > .input:first-child { grid-column: 1 / -1; }
}
.loading { width: 36px; height: 36px; margin: 30vh auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--action); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sel-sm { height: 32px; font-size: 13px; padding: 0 28px 0 10px; }
.sel.st-success { color: var(--success); }
.sel.st-info { color: var(--accent-text); }
.sel.st-warning { color: var(--warning); }

/* round 6: day view, logo, form currency */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cal-d.click { cursor: pointer; transition: background .15s; }
.cal-d.click:hover { background: var(--accent-soft); }
button.cal-n { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 500; color: inherit; cursor: pointer; padding: 0; }
.cal-d.has .cal-n { font-weight: 700; }
.day-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.day-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); align-items: stretch; }
.day-row.now { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); }
.day-h { font-size: 12px; color: var(--ink-subtle); padding-top: 12px; text-align: right; }
.day-row.has .day-h { color: var(--ink); font-weight: 600; }
.day-slot { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; min-width: 0; }
.day-ev { display: grid; grid-template-columns: auto 48px minmax(0, 1fr) auto auto; grid-template-areas: "dot t n v st" "dot t s v st"; align-items: center; column-gap: 10px; width: 100%; border: 1px solid var(--line); border-left: 3px solid var(--accent-deep); border-radius: 10px; padding: 8px 12px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.day-ev:hover { border-color: var(--accent-deep); }
.day-ev.sel { box-shadow: 0 0 0 2px var(--action); }
.day-ev .cal-dot { grid-area: dot; color: var(--accent-deep); }
.day-ev > b { grid-area: t; font-size: 13px; }
.day-ev-n { grid-area: n; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-ev-s { grid-area: s; font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-ev-v { grid-area: v; font-size: 13px; }
.day-ev .badge { grid-area: st; }
.day-ev.st-paid, .day-ev.st-done { border-left-color: var(--success); }
.day-ev.st-pending, .day-ev.st-noshow { border-left-color: var(--warning); }
.day-ev.st-cancelled { opacity: .55; }
@media (max-width: 640px) {
  .day-ev { grid-template-columns: auto 44px minmax(0, 1fr); grid-template-areas: "dot t n" "dot t s" "dot t v"; }
  .day-ev .badge { display: none; }
  .day-row { grid-template-columns: 44px minmax(0, 1fr); }
}
.logo-pick { display: flex; gap: 14px; align-items: center; }
.logo-box { width: 64px; height: 64px; border-radius: 14px; border: 1px dashed var(--line-strong, var(--line)); background: var(--surface-sunken); display: grid; place-items: center; flex: none; overflow: hidden; color: var(--ink-muted); font-size: 18px; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
label.btn { cursor: pointer; }
.rn-logo { height: 32px; max-width: 120px; object-fit: contain; flex: none; border-radius: 6px; }
.seg-scroll { overflow-x: auto; max-width: 100%; }

/* round 7: finance, settings, help, form picker */
:root { --c1: #1d6fe0; --c2: #d97a1a; }
:root[data-theme="dark"] { --c1: #4a8ae8; --c2: #c98428; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c1: #4a8ae8; --c2: #c98428; } }
.nav-foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.side-foot { margin-top: 8px; }
.ws-user { align-items: center; gap: 8px; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.who-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.plan-line { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--accent-text); text-decoration: none; font-weight: 600; }
.plan-line:hover { text-decoration: underline; }
.pick { position: relative; }
.pick-bg { position: fixed; inset: 0; z-index: 40; }
.pick-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 41; min-width: 280px; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(10, 20, 40, .14); padding: 6px; display: flex; flex-direction: column; }
.pick-menu a { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.pick-menu a:hover, .pick-menu a:focus-visible { background: var(--surface-sunken); }
.pick-menu a b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fin-kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--ink-subtle); margin-top: auto; }
.delta span { color: var(--ink-subtle); font-weight: 400; }
.delta.good { color: var(--success); font-weight: 600; }
.delta.bad { color: var(--danger); font-weight: 600; }
.stat.hero .delta, .stat.hero .delta span { color: rgba(255, 255, 255, .85); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.sw.s1 { background: var(--c1); } .sw.s2 { background: var(--c2); }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .s1 { fill: var(--c1); } .chart .s2 { fill: var(--c2); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--ink-subtle); font-size: 11px; font-family: inherit; }
.chart .hit { fill: transparent; outline: none; cursor: crosshair; }
.chart .cross { stroke: var(--ink-subtle); stroke-dasharray: 3 3; stroke-width: 1; pointer-events: none; }
.tip { position: absolute; top: 0; transform: translateX(-50%); max-width: 90vw; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(10, 20, 40, .14); padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; min-width: 170px; z-index: 5; color: var(--ink); }
.tip span { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.tip em { margin-left: auto; font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.tip .tot { border-top: 1px solid var(--line); padding-top: 4px; font-weight: 600; color: var(--ink); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }
.hb-track { height: 10px; background: var(--surface-sunken); border-radius: 0 4px 4px 0; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--c1); border-radius: 0 4px 4px 0; }
.hb-v { min-width: 70px; text-align: right; }
.set-card { max-width: 720px; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; padding: 14px 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary b { flex: 1; font-weight: 500; font-size: 14px; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq p { margin: 0 0 14px; color: var(--ink-muted); font-size: 14px; line-height: 21px; }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.news > li { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 2px solid var(--accent-soft); }
.news ul { margin: 0; padding-left: 18px; color: var(--ink-muted); font-size: 13px; line-height: 19px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .pick-menu { right: auto; left: 0; min-width: 260px; } .hbar { grid-template-columns: 90px 1fr auto; } }

/* Embed mode (?embed=1): height follows content, no page background, no inner scroll. */
html.bf-embed, html.bf-embed body { overflow: hidden !important; background: transparent !important; height: auto; min-height: 0; }
html.bf-embed body { margin: 0; }
.pub-embed .pub { min-height: 0; background: none !important; padding: 0; display: block; }
.pub-embed .pub-frame { max-width: none; height: auto; min-height: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.pub-embed .loading { margin: 24px auto; }
.rn-embed { height: auto; min-height: 0; }
.rn-embed .rn-body { flex: none; overflow: visible; min-height: 0; padding: 18px 16px; }
.rn-embed .rn-head, .rn-embed .rn-foot { padding-left: 16px; padding-right: 16px; }
.rn-head-bare { padding-top: 12px; gap: 8px; }
.rn-solo { grid-template-columns: minmax(0, 1fr) !important; max-width: 640px !important; }
@media (max-width: 360px) { .rn-embed .rn-q { font-size: 21px; line-height: 27px; } .rn-embed .rn-foot .btn-lg { padding-left: 18px; padding-right: 18px; } }
.rn[style*="color-scheme:dark"] .rn-powered img, .rn[style*="color-scheme: dark"] .rn-powered img { filter: brightness(0) invert(1); opacity: .75; }
/* Chat: business messages (avatar + tinted bubble) vs. the client's replies (right side). */
.bub-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.bub-row .bub { max-width: none; }
.bub-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--accent-deep); color: var(--on-accent); font-size: 11px; font-weight: 600; }
.bub-av img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.bub-av svg { width: 14px; height: 14px; fill: currentColor; }
.bub.biz { background: var(--accent-soft); border: 0; color: var(--ink); }
.bub-row.q .bub.biz { font-size: 15px; line-height: 21px; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.bub-help { display: block; font-size: 12px; font-weight: 400; color: var(--ink-muted); margin-top: 3px; }
.chat-reply { align-items: flex-end; padding-left: 36px; }
.chat-reply .chips { justify-content: flex-end; }
.chat-reply .chip { background: transparent; border-style: dashed; }
.chat-reply .chip:hover { background: var(--surface); border-style: solid; }
.chat-reply .chip.on { border-style: solid; }
.reply-hint { font-size: 11px; color: var(--ink-subtle); }
.chat-reply .field, .chat-reply .rn-sec, .chat-reply .cnt, .chat-reply .opt, .chat-reply .slots { align-self: stretch; }
.chat .bub.me { margin-left: 36px; }
/* Chat is step by step: only the current question, with the last answer as a small reminder. */
.chat .bub.me.prev { border: 0; cursor: pointer; text-align: left; font: inherit; font-size: 12px; line-height: 16px; padding: 6px 12px; opacity: .75; }
.chat .bub.me.prev:hover { opacity: 1; }

/* Transparent embed: no bands of its own; everything sits on the client's site background. */
.rn-clear { background: transparent; }
.rn-clear .rn-head, .rn-clear .rn-foot { background: transparent; }
.rn-clear .rn-head { border-bottom-color: var(--line); }
.rn-clear .rn-foot { border-top-color: var(--line); }

/* Embed configurator preview: the form over a sample site background. */
.em-stage { border-radius: 14px; border: 1px solid var(--line); padding: 28px 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: background .2s; }
.em-stage iframe { display: block; width: 100%; max-width: 480px; border: 0; background: transparent; color-scheme: normal; }
.em-site { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Companies: selector at the top of the menu */
.co-pick { margin: 8px 0 12px; }
.co-btn { width: 100%; margin: 0; background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.co-btn:hover { background: var(--surface-sunken); }
.co-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-menu { left: 0; right: auto; min-width: 100%; }
.co-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.co-compact { margin: 0; min-width: 0; flex: 0 1 auto; }
.co-compact .co-btn { height: 34px; max-width: 46vw; }
.input-err { border-color: var(--danger); }

/* Comercial: kanban */
.kb { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.kb-col { flex: 0 0 280px; scroll-snap-align: start; background: var(--surface-sunken); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 210px); border: 1px solid transparent; transition: border-color .15s; }
.kb-col.over { border-color: var(--col); }
.kb-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0 4px; }
.kb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--col); flex: none; }
.kb-title { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-count { font-size: 12px; color: var(--ink-subtle); background: var(--surface); border-radius: var(--pill); padding: 1px 8px; }
.kb-menu { background: transparent; border-color: transparent; }
.kb-menu:hover { background: var(--surface); }
.kb-sum { padding: 0 4px; }
.kb-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 72px; padding: 2px; }
.kb-card { display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--col); border-radius: 12px; padding: 10px 12px; cursor: grab; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 20, 40, .04); }
.kb-card:hover { border-color: var(--line-strong); border-left-color: var(--col); }
.kb-card:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.kb-card.dragging { opacity: .4; }
.kb-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kb-av { width: 26px; height: 26px; font-size: 10px; flex: none; }
.kb-name { font-weight: 500; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-note { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kb-card-foot .badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.kb-val { font-size: 13px; font-weight: 600; }
.kb-drop { height: 3px; border-radius: 2px; background: var(--col); flex: none; }
.kb-empty { font-size: 12px; color: var(--ink-subtle); text-align: center; padding: 18px 8px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.kb-add { justify-content: flex-start; }
.kb-newcol { flex: 0 0 200px; height: 48px; border-radius: 16px; border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-weight: 500; }
.kb-newcol:hover { background: var(--surface-sunken); color: var(--ink); }
.kb-hint { margin: 0 0 12px; align-items: center; }
.kb-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.kb-sw.on { box-shadow: 0 0 0 2px var(--ink); }
.kb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kb-notes { min-height: 90px; }
@media (max-width: 640px) { .kb-col { flex-basis: 84vw; max-height: none; } .kb-2 { grid-template-columns: 1fr; } }
.rn-phone { display: flex; gap: 8px; min-width: 0; }
.rn-phone input { flex: 1; min-width: 0; }
.ddi { position: relative; flex: none; }
.ddi-btn { display: flex !important; align-items: center; gap: 8px; width: auto !important; padding: 0 10px 0 12px !important; cursor: pointer; white-space: nowrap; }
.ddi-btn img, .ddi-opt img { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.ddi-list { position: absolute; z-index: 30; left: 0; bottom: calc(100% + 6px); width: 190px; max-height: 220px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: Canvas; color: CanvasText; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.ddi-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.ddi-opt.hi, .ddi-opt:hover { background: rgba(127,127,127,.16); }
.ddi-opt.on { font-weight: 600; }
.ddi-iso { width: 28px; opacity: .75; font-size: 12px; }
.ddi-code { font-variant-numeric: tabular-nums; }
.btn-wa { background: #25d366; color: #0b3d1f; border-color: #25d366; }
.btn-wa:hover { background: #1fbe5b; }
.kb-wa { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: #25d366; color: #0b3d1f; flex: none; }
.ab-prog { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.ab-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.ab-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
@media (max-width: 900px) { .mnav { gap: 2px; padding: 4px; } .mnav a { min-width: 0; } }

/* Date and time step */
.rn-date { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rn-dhead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rn-dtitle { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rn-dtitle b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.rn-dtitle b::first-letter { text-transform: uppercase; }
.rn-pager { display: flex; gap: 6px; }
.rn-back { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.rn-back:disabled { opacity: .35; cursor: default; }
.rn-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .85; flex: none; }
.rn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; min-width: 0; }
.rn-dgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 380px) { .rn-dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rn-box { min-width: 0 !important; width: 100%; height: 48px !important; border-radius: var(--rn-ri, 12px); padding: 0 4px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-day { height: 58px !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; line-height: 16px; font-size: 13px; }
.rn-wd { font-size: 11px; font-weight: 400; opacity: .8; text-transform: capitalize; }
.rn-tgroup { display: flex; flex-direction: column; gap: 6px; }
.wheel { position: relative; height: 200px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; outline: none; }
.wheel:focus-visible { box-shadow: var(--shadow-focus); }
.wheel-band { position: absolute; left: 8px; right: 8px; top: 80px; height: 40px; border-radius: 10px; background: var(--surface-sunken); pointer-events: none; }
.wheel-scroll { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent); }
.wheel-scroll::-webkit-scrollbar { display: none; }
.wheel-pad { height: 80px; }
.wheel-item { height: 40px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--ink-subtle); cursor: pointer; user-select: none; }
.wheel-item.on { color: var(--ink); font-weight: 600; font-size: 22px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.svc-card { display: flex; flex-direction: column; gap: 10px; }
.svc-day { font-size: 11px; padding: 2px 8px; border-radius: var(--pill); background: var(--surface-sunken); color: var(--ink-subtle); text-transform: capitalize; }
.svc-day.on { background: var(--accent-soft); color: var(--accent-text); }
.days-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.days-pick .chip { text-transform: capitalize; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.svc-link { border-top: 1px solid var(--line); padding-top: 12px; }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: center; }
.svc-opt { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .hours-grid { grid-template-columns: 1fr 1fr; } }
.mnav { overflow-x: auto; scrollbar-width: none; }
.mnav::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .mnav a { flex: 0 0 44px; } }

/* Comercial > Regras de entrada */
.note-warn { background: var(--warning-soft); color: var(--warning); padding: 8px 10px; border-radius: 8px; }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rule { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.rule.off { opacity: .55; }
.rule-n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-sunken); display: grid; place-items: center; font-size: 12px; color: var(--ink-muted); }
.rule-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rule-form-n { font-size: 12px; color: var(--ink-subtle); }
.rule-what { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.rule-to { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-subtle); }
.rule-act { display: flex; align-items: center; gap: 4px; }
.rule-cols { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-col { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--pill); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.rule-col.on { border-color: var(--col); box-shadow: inset 0 0 0 1px var(--col); }
.rule-col.sm { padding: 2px 10px; font-size: 12px; cursor: default; }
.rule-fallback { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-subtle); border-top: 1px solid var(--line); padding-top: 12px; }
.rule-fallback span { display: flex; gap: 6px; align-items: flex-start; }
.btn .kb-count { background: var(--surface-sunken); }
@media (max-width: 560px) { .rule { grid-template-columns: 22px 1fr; } .rule-act { grid-column: 1 / -1; justify-content: flex-end; } }
/* Accesses (members) */
.mem-cos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mem-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mem-pick legend { padding: 0; margin-bottom: 6px; }
.mem-co { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; }
.mem-co.on { border-color: var(--accent); background: var(--accent-soft); }
.mem-co input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; }
.mem-co-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
/* Lead origin */
.origin { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.origin-kv { grid-template-columns: 1fr 1fr; margin: 0; }
.origin-kv dd { word-break: break-word; }
.badge.ch { gap: 4px; }
.ch-google_ads, .ch-microsoft_ads { --chc: #1a73e8; }
.ch-meta_ads { --chc: #0866ff; }
.ch-tiktok_ads { --chc: #e5245e; }
.ch-linkedin_ads { --chc: #0a66c2; }
.ch-paid_other { --chc: #7c3aed; }
.ch-search { --chc: #0f9d58; }
.ch-social { --chc: #db2777; }
.ch-email { --chc: #d97706; }
.ch-campaign, .ch-referral { --chc: #0891b2; }
.ch-direct { --chc: var(--ink-subtle); }
.badge.ch { color: var(--chc); background: color-mix(in srgb, var(--chc) 12%, transparent); }
.kb-orig-line { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 14px; color: var(--chc, var(--ink-subtle)); min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kb-orig { width: auto; max-width: 220px; }
/* Time zone: visitor's own clock under each slot */
.rn-box:has(.rn-local) { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 16px; }
.rn-local { font-size: 10px; line-height: 12px; font-weight: 400; opacity: .65; }
.rn-tz { font-size: 11px; }

/* Form filter (Bookings, Sales) */
.mf { position: relative; }
.mf-btn { max-width: 240px; }
.mf-btn.on { border-color: var(--action); }
.mf-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-pop { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 240px; max-width: min(340px, 90vw); max-height: 320px; overflow: auto; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 12px 32px rgba(10, 20, 40, .18); display: flex; flex-direction: column; gap: 2px; }
.mf-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.mf-opt:hover { background: var(--surface-sunken); }
.mf-opt input { accent-color: var(--action); width: 16px; height: 16px; flex: none; }
.mf-opt span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-all { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; font-weight: 600; margin-bottom: 4px; }
