/* wirral.ai Admin: the back office, in the wirral.ai brand: ink navy, pink and aqua. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');
:root {
  --navy: #171f44;
  --navy-2: #262f66;
  --sky: #74ffed;
  --pink: #fe81d1;
  --accent: #b82b82;
  --ink: #171f44;
  --muted: #646b86;
  --line: #e7e6f0;
  --bg: #f6f5fb;
  --card: #ffffff;
  --head: #faf9fd;
  --good: #12805a;
  --warn: #b45309;
  --bad: #b42318;
  --wa: #25d366;
  --shadow: 0 1px 2px rgba(23, 31, 68, 0.04), 0 12px 32px -18px rgba(23, 31, 68, 0.18);
  --radius: 18px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }

/* Buttons: soft pills, pink-to-plum for the main action. */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 24px -14px rgba(184, 43, 130, 0.9); }
.btn--primary:hover { background: #9d2470; border-color: #9d2470; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #0b2e17; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.btn[disabled] { opacity: 0.55; cursor: default; }
select, textarea, input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']) {
  font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; color: var(--ink); max-width: 100%;
}
select:focus, textarea:focus, input:focus { outline: 2px solid rgba(254, 129, 209, 0.5); outline-offset: 1px; }
/* iPhone zooms into any field under 16px when it's tapped, and doesn't zoom back. */
@media (max-width: 900px), (pointer: coarse) {
  select, textarea, input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']) { font-size: 16px; }
}
textarea { width: 100%; min-height: 70px; resize: vertical; }

/* Sign in */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 90% at 50% 0%, #3a2a6b 0%, #171f44 55%, #0b0f26 100%); }
.gate-card { width: min(380px, 100%); background: #fff; border-radius: 24px; padding: 32px 28px; display: grid; gap: 12px; text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.gate-card img { margin: 0 auto; border-radius: 18px; }
.gate-card h1 { margin: 4px 0 0; font-size: 22px; }
.gate-card p { margin: 0; color: var(--muted); }
.gate-error { color: var(--bad) !important; min-height: 1em; }

/* Layout */
.admin { display: grid; grid-template-columns: 92px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, #1b2350 0%, #171f44 40%, #10163a 100%); display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 8px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: none; }
.side-logo { display: grid; place-items: center; padding: 18px 0 14px; }
.side-logo img { background: #fff; border-radius: 12px; padding: 4px; }
.side-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px; border: 0; border-radius: 14px; background: none; color: #a9afcb; font-size: 11px; font-weight: 600; text-align: center; transition: background 0.15s, color 0.15s; }
.side-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-item.is-active { background: rgba(254, 129, 209, 0.14); color: #fff; }
.side-item.is-active svg { stroke: var(--pink); }
.side-item--foot { margin-top: auto; }
.side-more, .side-scrim { display: none; }
@media (max-width: 860px) { .side-more { display: flex; } }
.side-badge { position: absolute; top: 4px; right: 12px; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: var(--pink); color: var(--navy); font-size: 11px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 32px 6px; }
.topbar h1 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.content { padding: 18px 32px 60px; display: grid; gap: 20px; max-width: 1480px; }

/* Cards and KPI tiles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 22px 6px; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.card-body { padding: 14px 22px 20px; }
.card--feature { border-color: rgba(254, 129, 209, 0.45); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; box-shadow: var(--shadow); overflow: hidden; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #fdeef7; color: var(--accent); flex: none; }
.kpi-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi:nth-child(2) .kpi-ic { background: #e6fbf8; color: #0f8a7c; }
.kpi:nth-child(3) .kpi-ic { background: #ece9ff; color: #5b47d6; }
.kpi:nth-child(4) .kpi-ic { background: #fff3e2; color: #b45309; }
.kpi:nth-child(5) .kpi-ic { background: #e8f0ff; color: #2856c7; }
.kpi:nth-child(6) .kpi-ic { background: #e9f8ef; color: var(--good); }
.kpi-value { font-size: 30px; font-weight: 700; margin-top: 10px; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-note { position: relative; z-index: 1; max-width: 58%; color: var(--muted); font-size: 12px; margin-top: 3px; }
.kpi .spark { position: absolute; right: 0; bottom: 0; width: 42%; height: 40px; opacity: 0.85; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* The welcome banner on the dashboard home */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 30px; color: #fff; background: radial-gradient(90% 140% at 100% 0%, rgba(254, 129, 209, 0.35) 0%, rgba(254, 129, 209, 0) 55%), radial-gradient(70% 120% at 0% 100%, rgba(116, 255, 237, 0.18) 0%, rgba(116, 255, 237, 0) 60%), linear-gradient(135deg, #1d2659 0%, #171f44 60%, #10163a 100%); box-shadow: 0 30px 60px -36px rgba(23, 31, 68, 0.8); display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.hero h2 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.hero h2 .serif { color: var(--pink); font-style: italic; font-size: 1.12em; }
.hero p { margin: 10px 0 0; color: #c9cde6; font-size: 15px; max-width: 640px; line-height: 1.5; }
.hero p b { color: #fff; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 12.5px; color: #e4e6f5; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: #8a90ad; }
.chip.on i { background: var(--sky); box-shadow: 0 0 0 3px rgba(116, 255, 237, 0.2); }

/* Small stat tiles inside a card */
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mini { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--head); border: 1px solid var(--line); }
.mini span { font-size: 12px; color: var(--muted); }
.mini b { font-size: 20px; letter-spacing: -0.01em; }
.mini small { font-size: 11.5px; color: var(--muted); }
svg.spark { display: block; width: 100%; height: 70px; margin-top: 12px; }

/* Data grid */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; min-width: 160px; }
.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; }
.grid th { background: var(--head); color: var(--muted); text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 14px; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid th.num, .grid td.num { text-align: right; }
.grid td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr.clickable { cursor: pointer; transition: background 0.12s; }
.grid tbody tr.clickable:hover { background: #fdf3fa; }
.grid .empty { text-align: center; color: var(--muted); padding: 28px; }
.card > .table-wrap { margin-top: 8px; }
.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; color: var(--accent); background: #fdeef7; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eeedf5; color: var(--ink); white-space: nowrap; }
.pill--new { background: #e8f0ff; color: #2147a8; }
.pill--contacted { background: #fff3d6; color: #8a4b0b; }
.pill--booked { background: #dff7ea; color: #11683f; }
.pill--won { background: #12805a; color: #fff; }
.pill--lost { background: #fde7e7; color: #991b1b; }
.pill--archived { background: #eeedf5; color: #646b86; }
.pill--hot { background: #fde7e7; color: #b42318; }
.pill--ads { background: #fdeef7; color: var(--accent); }

/* Bars and charts */
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.bar-track { display: block; height: 10px; background: #f0eef7; border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); border-radius: 6px; }
.bar:nth-child(2) .bar-fill { background: linear-gradient(90deg, #5b47d6, #9d8cff); }
.bar:nth-child(3) .bar-fill { background: linear-gradient(90deg, #0f8a7c, #5fe3d1); }
.bar:nth-child(4) .bar-fill { background: linear-gradient(90deg, #2856c7, #7ea3ff); }
.bar:nth-child(n + 5) .bar-fill { background: linear-gradient(90deg, #8a90ad, #c3c7da); }
.chart svg { width: 100%; height: 230px; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.terms li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.terms li:last-child { border-bottom: 0; }
.terms li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { display: grid; gap: 10px; justify-items: start; padding: 4px 0; }
.empty-state p { margin: 0; color: var(--muted); }

/* Notices */
.notice { border: 1px solid #f3dc9a; background: #fffaeb; border-radius: 16px; padding: 16px 18px; }
.notice h3 { margin: 0 0 6px; font-size: 14px; }
.notice ol { margin: 6px 0 0 18px; padding: 0; }
.notice--ok { border-color: #f6cbe6; background: #fff6fb; }
.status-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--bad); }
.dot--on { background: var(--good); }
.muted { color: var(--muted); }
.suggest { border: 1px solid var(--line); border-left: 4px solid var(--pink); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.suggest b { display: block; }

/* Drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(23, 31, 68, 0.45); backdrop-filter: blur(2px); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: #fff; z-index: 41; overflow-y: auto; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.4); }
.drawer-head { position: sticky; top: 0; background: linear-gradient(135deg, #1d2659, #171f44); color: #fff; padding: 20px 24px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head p { margin: 4px 0 0; color: #c9cde6; font-size: 13px; }
.drawer-head button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; }
.drawer-body { padding: 18px 24px 40px; display: grid; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.section-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.note { border-left: 3px solid var(--pink); padding: 4px 10px; margin-bottom: 8px; }
.note small { color: var(--muted); display: block; }
.convo { display: grid; gap: 6px; }
.convo p { margin: 0; padding: 8px 12px; border-radius: 12px; background: #f4f3f9; }
.convo p.me { background: #fdeef7; }

/* Phone width */
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  /* Bottom bar: four main sections and More; More opens every section as a sheet. */
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; z-index: 30; overflow: visible; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #171f44; box-shadow: 0 -10px 30px -10px rgba(23, 31, 68, 0.5); }
  .side-logo, .side-item--foot { display: none; }
  .side:not(.is-open) > .side-item:not(.side-item--pri):not(.side-more) { display: none; }
  .side-item { min-width: 0; padding: 8px 2px; min-height: 52px; }
  .side-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .side.is-open { grid-template-columns: repeat(4, 1fr); gap: 6px; z-index: 70; max-height: 85vh; overflow-y: auto; padding-top: 16px; border-radius: 24px 24px 0 0; }
  .side.is-open > .side-item--foot { display: flex; margin-top: 0; }
  .side-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(23, 31, 68, 0.5); }
  .main { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .topbar-actions .btn { padding: 8px 14px; }
  .topbar { padding: 18px 16px 0; }
  .topbar h1 { font-size: 24px; }
  .content { padding: 14px 16px 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 22px 20px; border-radius: 20px; }
  .hero h2 { font-size: 26px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .kpi .spark { display: none; }
  dl.kv { grid-template-columns: 1fr; }
}

/* Carousel previews */
.carousel-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.carousel-strip canvas { flex: 0 0 auto; width: 216px; height: 270px; border-radius: 10px; border: 1px solid var(--line, #dfe5ee); }

/* Ads tab */
.ads-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ads-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.ads-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent, #b82b82); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ads-field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ads-value { white-space: pre-wrap; word-break: break-word; }
.ads-images { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.ads-image { display: grid; gap: 6px; justify-items: start; }
.ads-image canvas { border-radius: 8px; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- AI Office */
.office { display: grid; gap: 16px; }
.office-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.office-top h2 { margin: 2px 0 0; font-size: 20px; }
.office-stage { position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 100% at 50% 0%, #262f66 0%, #171f44 45%, #0b0f26 100%); box-shadow: 0 30px 60px -30px rgba(23, 31, 68, 0.7); }
.office-svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.office-svg .room { fill: rgba(254, 129, 209, 0.05); stroke: #fe81d1; stroke-opacity: 0.55; stroke-width: 1.5; filter: url(#glow); }
.office-svg .chief-floor { fill: rgba(254, 129, 209, 0.1); }
.office-svg .room-label { fill: #fe81d1; opacity: 0.7; font: 700 13px 'DejaVu Sans Mono', ui-monospace, monospace; letter-spacing: 0.35em; }
.office-svg .flow { stroke: #fe81d1; stroke-opacity: 0.45; stroke-width: 1.2; stroke-dasharray: 3 7; animation: office-flow 1.6s linear infinite; }
.office-svg .flow.off { stroke: #4a5070; animation: none; }
.office-svg .agent { cursor: pointer; outline: none; }
.office-svg .agent .screen rect { transition: stroke-width 0.2s, filter 0.2s; }
.office-svg .agent:hover .screen rect, .office-svg .agent:focus .screen rect, .office-svg .agent.picked .screen rect { stroke-width: 2.5; filter: url(#glow); }
.office-svg .t-name { fill: #fff; font: 600 11.5px Inter, system-ui, sans-serif; }
.office-svg .t-head { fill: #fe81d1; font: 700 13px Inter, system-ui, sans-serif; }
.office-svg .agent.paused .t-head { fill: #8a90ad; }
.office-svg .agent.setup .t-head { fill: #f5b84a; }
.office-svg .bot { animation: office-bob 3s ease-in-out infinite; }
.office-svg .agent.paused .bot { animation: none; opacity: 0.6; }
.office-svg .antenna { animation: office-blink 1.8s ease-in-out infinite; }
.office-svg .halo { animation: office-halo 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes office-flow { to { stroke-dashoffset: -20; } }
@keyframes office-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes office-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes office-halo { 0%, 100% { opacity: 0.9; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .office-svg .flow, .office-svg .bot, .office-svg .antenna, .office-svg .halo { animation: none; } }
.office-panel { position: absolute; top: 14px; right: 14px; width: min(340px, calc(100% - 28px)); background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6); }
.office-panel-head { display: flex; align-items: center; gap: 8px; }
.office-panel-head h3 { margin: 0; font-size: 16px; }
.office-stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f6f5fb; margin: 10px 0; }
.office-stat b { font-size: 18px; }
.office-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.office-card { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; align-content: start; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid #e4e4ef; background: #fff; cursor: pointer; font: inherit; }
.office-card:hover { border-color: #b82b82; }
.office-card .muted, .office-card .office-num, .office-card .office-quip { grid-column: 2; }
.office-card .office-face { grid-row: 1 / span 5; align-self: start; }
.office-face { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #e4e4ef; display: block; background: #f6f5fb; }
.office-face--big { width: 84px; height: 84px; flex: none; }
.office-quip { font-size: 13px; font-style: italic; color: #5b6577; line-height: 1.35; }
.office-panel-who { flex: 1; min-width: 0; }
.office-panel-who p { margin: 2px 0 0; }
.office-svg .agent.paused .face { filter: grayscale(1); }
.office-num { font-weight: 700; color: #b82b82; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.office-pulse { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #171f44; color: #fff; flex-wrap: wrap; }
.office-pulse > div { display: grid; gap: 2px; flex: 1 1 220px; }
.office-pulse .muted { color: #c6cbe6; }
.office-pulse .beat { width: 12px; height: 12px; border-radius: 50%; background: #74ffed; box-shadow: 0 0 0 0 rgba(116, 255, 237, 0.7); animation: officeBeat 1.6s infinite; flex: none; }
.office-pulse.late .beat { background: #f5b84a; animation: none; }
@keyframes officeBeat { 0% { box-shadow: 0 0 0 0 rgba(116, 255, 237, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(116, 255, 237, 0); } 100% { box-shadow: 0 0 0 0 rgba(116, 255, 237, 0); } }
.office-log summary { cursor: pointer; font-weight: 600; }
.office-log ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .office-pulse .beat { animation: none; } }

/* Sign in by emailed code, with the password tucked away. */
.gate-otp { display: grid; gap: 10px; width: 100%; }
.gate-otp input { font-size: 22px; letter-spacing: 0.4em; text-align: center; }
.gate-link { border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; padding: 4px; text-decoration: underline; text-underline-offset: 3px; }
.access-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.access-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.access-add { display: flex; gap: 8px; flex-wrap: wrap; }
.access-add input { flex: 1 1 180px; }
.gate-alt { width: 100%; margin-top: 8px; font-size: 13px; color: #5b6280; }
.gate-alt summary { cursor: pointer; }
.gate-alt form { display: grid; gap: 8px; margin-top: 8px; }
.gate-otp > *, .gate-alt form > * { box-sizing: border-box; width: 100%; min-width: 0; }
.gate-otp p, .gate-alt p { margin: 0; }
.gate-trust { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 13px; color: var(--muted); }
.gate-trust input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* Ava, the dashboard assistant (ava.js). */
.ava-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border: 0; border-radius: 999px; background: #171f44; color: #fff; font: 600 15px/1 inherit; box-shadow: 0 10px 30px rgba(23,31,68,.35); cursor: pointer; }
.ava-orb { width: 30px; height: 30px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #74ffed, #fe81d1 55%, #b82b82); box-shadow: 0 0 0 0 rgba(254,129,209,.6); }
.ava-panel { position: fixed; right: 18px; bottom: 18px; z-index: 61; width: min(300px, calc(100vw - 36px)); display: grid; justify-items: center; gap: 6px; padding: 26px 20px 18px; background: radial-gradient(120% 90% at 50% 20%, #262f66, #171f44 60%, #0b0f26); color: #fff; border-radius: 26px; box-shadow: 0 20px 50px rgba(23,31,68,.5); }
.ava-panel[hidden] { display: none; }
.ava-big { width: 170px; height: 170px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.ava-big .ava-orb { width: 120px; height: 120px; transform: scale(calc(1 + var(--level, 0) * .3)); transition: transform 80ms linear; }
.ava-panel[data-state='listening'] .ava-big .ava-orb { animation: ava-listen 2.2s ease-in-out infinite; }
.ava-panel[data-state='thinking'] .ava-big .ava-orb { animation: ava-think 1s ease-in-out infinite; }
.ava-panel[data-state='speaking'] .ava-big .ava-orb { animation: ava-speak .7s ease-in-out infinite alternate; }
.ava-panel[data-state='stopped'] .ava-big .ava-orb { filter: grayscale(.8); }
@keyframes ava-listen { 0%, 100% { box-shadow: 0 0 18px 4px rgba(116,255,237,.45); } 50% { box-shadow: 0 0 34px 12px rgba(116,255,237,.7); } }
@keyframes ava-think { 50% { opacity: .55; } }
@keyframes ava-speak { from { transform: scale(.95); box-shadow: 0 0 16px 4px rgba(254,129,209,.5); } to { transform: scale(1.12); box-shadow: 0 0 40px 16px rgba(254,129,209,.75); } }
@media (prefers-reduced-motion: reduce) { .ava-panel .ava-big .ava-orb { animation: none !important; } }
.ava-status { margin: 0; font-size: 15px; font-weight: 600; text-align: center; }
.ava-note { margin: 0; min-height: 18px; color: #74ffed; font-size: 12px; text-align: center; }
.ava-end { margin-top: 6px; min-height: 44px; padding: 0 30px; border: 0; border-radius: 999px; background: #e85d4c; color: #fff; font: 600 15px/1 inherit; cursor: pointer; }

/* Reel Producer shelf in the AI Office */
.reel-shelf { margin-top: 28px; }
.reel-day { margin: 20px 0 10px; font-size: 15px; }
.reel-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.reel-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.reel-frame { position: relative; aspect-ratio: 9 / 16; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #0a1022; }
.reel-frame img, .reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-frame .btn { position: relative; }
.reel-film { margin: 0; font-size: 14px; }
.reel-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Social tab */
.soc { display: grid; gap: 16px; }
.soc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.soc-tabs .btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.soc-accounts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.soc-account dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.soc-account dt { color: var(--muted); font-size: 12px; }
.soc-account dd { margin: 0; font-size: 17px; font-weight: 700; }
.soc-account .btn { width: 100%; justify-content: center; margin-top: 12px; }
.soc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.soc-posts { list-style: none; margin: 0; padding: 0; }
.soc-posts li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.soc-posts li:last-child { border-bottom: 0; }
.soc-thumb { flex: none; width: 46px; height: 60px; border-radius: 6px; border: 1px solid var(--line); background: var(--head); object-fit: cover; }
.soc-post { flex: 1; min-width: 0; }
.soc-post p { margin: 4px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.soc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.soc-picks { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.soc-picks label { display: inline-flex; align-items: center; gap: 6px; }
.soc-bar { display: grid; grid-template-columns: 170px 1fr 80px; align-items: center; gap: 10px; padding: 5px 0; }
.soc-track { height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.soc-track span { display: block; height: 100%; background: var(--navy-2); }
.soc-weeks { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.soc-weeks div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; font-size: 11px; color: var(--muted); }
.soc-weeks i { display: block; width: 100%; min-height: 2px; background: var(--navy-2); border-radius: 3px 3px 0 0; }
.soc-account-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.soc-connect { display: flex; flex-wrap: wrap; gap: 6px; }

/* Dialler and CRM (dialler.js) */
.crm-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.crm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.crm-tab { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.crm-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.crm-start { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 22px; }
.crm-start-num { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.crm-start p { max-width: 520px; margin: 0; }
.crm-sim { font-size: 12.5px; }
.crm-modes { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-weight: 500; }
.crm-modes label { display: inline-flex; gap: 6px; align-items: center; }
.crm-verify { display: grid; gap: 8px; max-width: 420px; margin: 4px auto 0; text-align: left; }
.crm-verify-row { display: flex; gap: 8px; }
.crm-verify-row .input { flex: 1; }
.crm-verify-code strong { font-size: 20px; letter-spacing: 2px; }
.crm-via { font-size: 12.5px; margin-left: auto; margin-right: 12px; }
.crm-live { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.crm-side { display: grid; gap: 20px; }
.crm-callbar { display: flex; justify-content: space-between; align-items: center; }
.crm-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; background: #eeedf5; }
.crm-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8a90ad; }
.crm-status.is-ringing { background: #fff3d6; color: #8a4b0b; }
.crm-status.is-ringing::before { background: var(--warn); animation: crm-blink 0.8s infinite; }
.crm-status.is-live { background: #dff7ea; color: #11683f; }
.crm-status.is-live::before { background: var(--good); }
.crm-status.is-missed { background: #fde7e7; color: #991b1b; }
.crm-status.is-missed::before { background: var(--bad); }
@keyframes crm-blink { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .crm-status.is-ringing::before { animation: none; } }
.crm-timer { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; }
.crm-name { margin: 14px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.crm-company { margin: 2px 0 8px; }
.crm-number { font-size: 34px; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; margin-bottom: 6px; overflow-wrap: anywhere; }
.crm-callbtns { margin: 12px 0 18px; }
.crm-outcomes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.crm-outcome { text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 12px; font-weight: 600; }
.crm-outcome:hover { border-color: var(--accent); }
.crm-outcome.is-picked { background: #fdeef7; border-color: var(--accent); color: var(--accent); }
kbd { display: inline-block; min-width: 18px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: 600 11px/16px 'Inter', system-ui, sans-serif; text-align: center; background: var(--head); color: var(--muted); }
.crm-field { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.crm-field input, .crm-field select { width: 100%; }
.crm-check { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.crm-save { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.crm-keys { font-size: 12px; margin: 14px 0 0; }
.crm-history { margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13px; max-height: 260px; overflow-y: auto; }
.crm-next { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.crm-search { min-width: 0; }
.crm-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(23, 31, 68, 0.45); display: grid; place-items: center; padding: 16px; }
.crm-modal { background: #fff; border-radius: 20px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.crm-modal .drawer-head { border-radius: 20px 20px 0 0; }
.crm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.crm-delete { margin-left: auto; color: var(--bad); }
.crm-calls { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink); }
.crm-hint { margin: 0; }
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.crm-col { background: var(--head); border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, background 0.15s; }
.crm-col header { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 4px; }
.crm-col.is-over { border-color: var(--accent); background: #fdf3fa; }
.crm-card { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: grab; font-size: 13px; }
.crm-card small { color: var(--muted); }
.crm-card .crm-tps { color: var(--bad); font-weight: 700; }
.crm-card.is-dragging { opacity: 0.5; }

@media (max-width: 860px) {
  .crm-kpis { grid-template-columns: repeat(3, 1fr); }
  .crm-kpis .kpi-value { font-size: 20px; }
  .crm-live { grid-template-columns: 1fr; }
  .crm-form { grid-template-columns: 1fr; }
  .crm-number { font-size: 28px; }
}


/* Call prep beside a live call (dialler.js, api/_call-prep.js) */
.crm-askfor { margin: 0 0 10px; font-size: 15px; }
.crm-prep-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 13px; }
.crm-prep-kv dt { color: var(--muted); font-weight: 600; }
.crm-prep-kv dd { margin: 0; overflow-wrap: anywhere; }
.crm-seo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 4px; }
.crm-seo-score { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: var(--bad); }
.crm-seo-score.is-mid { background: var(--warn); }
.crm-seo-score.is-good { background: var(--good); }
.crm-flags, .crm-points { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; }
.crm-flags li::marker { color: var(--bad); }
.crm-points li::marker { color: var(--good); }
.crm-prep-foot { font-size: 12px; margin: 8px 0 0; }
.crm-coach-opt { justify-content: center; margin: 0 0 12px; }
.crm-coach { border-color: var(--accent); }
.crm-disclose { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-size: 13px; }
.crm-tip { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.crm-tip.is-close { border-color: #1f9d55; box-shadow: 0 0 0 2px color-mix(in srgb, #1f9d55 25%, transparent); }
.crm-tip p { margin: 0 0 6px; }
.crm-tip-say, .crm-tip-ask { font-size: 15px; line-height: 1.45; }
.crm-tip-say span, .crm-tip-ask span { display: inline-block; min-width: 34px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.crm-tip-close { color: #1f9d55; }
.crm-tip-obj { color: #b45309; font-weight: 600; }
.crm-tip-why { font-size: 12px; margin: 0; }
.crm-thinking { font-size: 12px; margin: 0 0 8px; }
.crm-facts { margin: 0 0 10px; padding-left: 18px; font-size: 13px; }
.crm-feed { max-height: 220px; overflow-y: auto; font-size: 13px; border-top: 1px solid var(--line); padding-top: 6px; }
.crm-feed p { margin: 0 0 6px; }
.crm-feed b { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.crm-feed .is-them b { color: var(--accent); }
.crm-draft { white-space: pre-wrap; font: inherit; font-size: 13px; background: color-mix(in srgb, var(--line) 35%, transparent); padding: 10px; border-radius: 10px; margin: 0 0 8px; }
.crm-draft-subj { font-weight: 600; margin: 0 0 6px; }
.crm-log-sum { margin: 0 0 4px; font-weight: 500; }
.crm-log-rec { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crm-log-rec audio { max-width: 100%; height: 36px; }
.crm-log-rec .crm-feed { flex-basis: 100%; }

/* ---------- Phones and touch screens ---------- */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn--sm { min-height: 38px; }
  .crm-keys, .crm-outcome kbd { display: none; }
}
@media (max-width: 860px) {
  /* Ava sits above the bottom bar, as just her orb */
  .ava-fab { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 8px; }
  .ava-fab b { display: none; }
  .ava-panel { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Dialler: stats scroll sideways so the dialler itself is on screen */
  .crm-kpis { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-bottom: 12px; }
  .crm-kpis::-webkit-scrollbar { display: none; }
  .crm-kpis .kpi { flex: 0 0 auto; min-width: 112px; padding: 10px 12px; }
  .crm-kpis .kpi-value { font-size: 19px; }
  .crm-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
  .crm-tabs::-webkit-scrollbar { display: none; }
  .crm-tab { flex: none; min-height: 40px; }
  .crm-start { padding: 24px 16px; }
  .crm-start-num { font-size: 44px; }
  .crm-modes { gap: 10px 16px; }
  .crm-modes label { min-height: 36px; }
  .crm-verify-row { flex-direction: column; }

  /* A session takes the whole screen: no bottom bar or Ava, and Save & Next stays in reach */
  body.crm-in-session .side, body.crm-in-session .ava-fab { display: none; }
  body.crm-in-session .crm-kpis { display: none; }
  .crm-callbar { flex-wrap: wrap; gap: 6px; }
  .crm-via { order: 3; width: 100%; margin: 0; }
  .crm-name { font-size: 22px; }
  .crm-callbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .crm-callbtns .btn { justify-content: center; min-height: 48px; }
  .crm-callbtns #crmCall, .crm-callbtns #crmHang { min-height: 56px; font-size: 16px; }
  .crm-outcomes { grid-template-columns: 1fr 1fr; }
  .crm-outcome { min-height: 46px; }
  body.crm-in-session .main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  body.crm-in-session .crm-save { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(23, 31, 68, 0.35); }
  .crm-save .btn--primary { flex: 1; justify-content: center; min-height: 50px; }

  /* Contact and call lists as cards */
  table.grid.crm-stack thead { display: none; }
  table.grid.crm-stack tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.grid.crm-stack td { padding: 0; border: 0; text-align: left; }
  table.grid.crm-stack td.s-a { order: 1; } table.grid.crm-stack td.s-b { order: 2; text-align: right; }
  table.grid.crm-stack td.s-c { order: 3; } table.grid.crm-stack td.s-d { order: 4; text-align: right; }
  table.grid.crm-stack td.s-e { order: 5; grid-column: 1 / -1; }
  table.grid.crm-stack td.s-e:empty, table.grid.crm-stack td.s-x { display: none; }
  table.grid.crm-stack td.empty { grid-column: 1 / -1; }
  table.grid.crm-stack .muted-sm { color: var(--muted); font-size: 13px; }
  .toolbar { padding: 12px 16px; }
  .toolbar .grow { flex-basis: 100%; }

  /* Pipeline: one column at a time, swiped sideways */
  .crm-board { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .crm-col { scroll-snap-align: start; }
  .crm-move { margin-top: 6px; width: 100%; font-size: 14px; padding: 6px 10px; }

  /* Contact form slides up from the bottom */
  .crm-scrim { padding: 0; place-items: end stretch; }
  .crm-modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* ------------------------------------------------------------------ Sales agent rewards (dashboard/rewards-ui.js)
   Used by the owner's Partners tab and the partner page. */
.rw { display: grid; gap: 16px; }
.rw-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3a2a6b 0%, #171f44 55%, #0e1330 100%); box-shadow: 0 30px 60px -36px rgba(23, 31, 68, 0.8); }
.rw-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 129, 209, 0.35), transparent 70%); pointer-events: none; }
.rw-hero h2, .rw-hero h3 { margin: 0; color: #fff; }
.rw-hero .serif { font-size: 34px; line-height: 1; letter-spacing: -0.01em; }
.rw-hero p { color: rgba(255, 255, 255, 0.78); margin: 6px 0 0; }
.rw-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 22px 28px; align-items: center; }
.rw-hero-level { display: flex; align-items: center; gap: 16px; }
.rw-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.rw-big { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; }
.rw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rw-chips span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 12.5px; }
.rw-chips b { color: #fff; }
.rw-hero-wide { grid-column: 1 / -1; }
.rw-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.rw-stats div { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 12px 14px; }
.rw-stats small { display: block; color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.rw-stats b { display: block; font-size: 22px; margin-top: 4px; letter-spacing: -0.02em; }
.rw-stats em { font-style: normal; font-size: 12px; color: var(--sky); }

.rw-ring-label { font: 700 22px Inter, system-ui, sans-serif; }
.rw-ring-sub { font: 500 10.5px Inter, system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.rw-av { --hue: 300; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 12.5px; font-weight: 700; color: hsl(var(--hue) 55% 28%); background: hsl(var(--hue) 70% 92%); border: 2px solid #fff; box-shadow: 0 0 0 1px hsl(var(--hue) 40% 85%); }
.rw-av--lg { width: 52px; height: 52px; font-size: 17px; }
.rw-level { --lv: #b82b82; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--lv); background: color-mix(in srgb, var(--lv) 13%, #fff); }
.rw-level::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lv); }

/* The tier ladder */
.rw-track { padding: 30px 6px 0; }
.rw-track-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(23, 31, 68, 0.08); }
.rw-track--dark .rw-track-bar { background: rgba(255, 255, 255, 0.14); }
.rw-track-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #fe81d1, #b82b82); transition: width 0.6s ease; }
.rw-track-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; }
.rw-track-mark i { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid rgba(23, 31, 68, 0.2); }
.rw-track-mark.on i { border-color: #b82b82; }
.rw-track-mark b { position: absolute; bottom: 20px; font-size: 13px; white-space: nowrap; }
.rw-track-mark small { position: absolute; top: 20px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.rw-track--dark .rw-track-mark small { color: rgba(255, 255, 255, 0.6); }
.rw-track-you { position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #171f44; background: var(--sky); box-shadow: 0 0 0 4px rgba(116, 255, 237, 0.25); z-index: 1; }
.rw-track-msg { margin: 30px 0 0 !important; font-size: 14px; }
.rw-track--compact { padding-top: 24px; padding-bottom: 18px; }

/* Levels */
.rw-path { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0 16px; padding: 0; counter-reset: lv; }
.rw-path li { --lv: #b82b82; position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.rw-path li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.rw-path li:first-child::before { display: none; }
.rw-path li.done::before, .rw-path li.now::before { background: var(--lv); }
.rw-path-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); }
.rw-path li.done .rw-path-dot, .rw-path li.now .rw-path-dot { border-color: var(--lv); background: var(--lv); color: #fff; }
.rw-path li.now .rw-path-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--lv) 22%, transparent); }
.rw-path-dot svg { width: 15px; height: 15px; fill: currentColor; }
.rw-path li.now b { color: var(--ink); }
.rw-path small { font-size: 11px; }
.rw-meters { display: grid; gap: 10px; }
.rw-meter { display: grid; grid-template-columns: 28px 9.5em 1fr 2.4em; align-items: center; gap: 10px; font-size: 13.5px; }
.rw-meter-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #fdeef7; color: var(--accent); }
.rw-meter-ic svg, .rw-icon-list svg, .rw-estimate svg, .rw-kpi-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-meter-track { height: 8px; border-radius: 999px; background: rgba(23, 31, 68, 0.08); overflow: hidden; }
.rw-meter-track > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #fe81d1, #b82b82); }
.rw-meter b { text-align: right; }

/* Charts */
.rw-chart { --h: 170px; display: flex; align-items: flex-end; gap: 6px; height: calc(var(--h) + 40px); padding-top: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.rw-col { flex: 1 0 26px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.rw-col-stack { width: min(100%, 44px); min-height: 0; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 3px 3px; overflow: hidden; max-height: var(--h); transition: height 0.5s ease; }
.rw-col-stack i { display: block; min-height: 2px; }
.rw-col-val { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rw-col-label { font-size: 11.5px; color: var(--muted); padding-bottom: 6px; }
.rw-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.rw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rw-legend i { width: 10px; height: 10px; border-radius: 3px; }
.rw-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: rgba(23, 31, 68, 0.06); }
.rw-split span { min-width: 3px; }

/* Ledger months */
.rw-month { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-top: 8px; }
.rw-month summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; }
.rw-month summary::-webkit-details-marker { display: none; }
.rw-month summary::before { content: '›'; font-size: 18px; color: var(--muted); transition: transform 0.2s; }
.rw-month[open] summary::before { transform: rotate(90deg); }
.rw-month-name { font-weight: 600; }
.rw-month-meta { color: var(--muted); font-size: 12.5px; flex: 1 1 220px; }
.rw-month-total { font-weight: 700; font-size: 15px; }
.rw-entries { list-style: none; margin: 0; padding: 4px 14px 12px; border-top: 1px solid var(--line); }
.rw-entries li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.rw-entries li:last-child { border-bottom: 0; }
.rw-entry-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent); }
.rw-entry-main { display: grid; }
.rw-entry-main small, .rw-entry-calc { color: var(--muted); font-size: 12px; }
.rw-neg { color: var(--bad); }

/* Leaderboard */
.rw-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; margin: 8px 0 14px; }
.rw-pod { --medal: #d4a017; position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 16px 10px 0; border-radius: 16px 16px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 14%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--medal) 35%, #fff); border-bottom: 0; }
.rw-pod .rw-av { box-shadow: 0 0 0 3px var(--medal); }
.rw-pod b { font-size: 14px; }
.rw-pod small { color: var(--muted); font-size: 12px; }
.rw-pod-step { margin-top: 8px; width: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: var(--medal); border-radius: 10px 10px 0 0; }
.rw-pod--1 .rw-pod-step { height: 70px; }
.rw-pod--2 .rw-pod-step { height: 48px; }
.rw-pod--3 .rw-pod-step { height: 32px; }
.rw-pod.you { outline: 2px solid var(--accent); outline-offset: 2px; }
.rw-board { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.rw-board li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13.5px; }
.rw-board li.you { border-color: var(--accent); background: #fdf3f9; }
.rw-board-rank { width: 22px; font-weight: 700; color: var(--muted); }
.rw-board-name { font-weight: 600; flex: 1; }

/* KPI tiles */
.rw-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rw-kpi { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: #fff; display: grid; gap: 4px; }
.rw-kpi small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.rw-kpi b { font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.rw-kpi em { font-style: normal; color: var(--muted); font-size: 12px; }
.rw-kpi-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #fdeef7; color: var(--accent); flex: none; }
.rw-kpi:nth-child(4n + 2) .rw-kpi-ic { background: #e6fbf8; color: #0f8a7c; }
.rw-kpi:nth-child(4n + 3) .rw-kpi-ic { background: #ece9ff; color: #5b47d6; }
.rw-kpi:nth-child(4n + 4) .rw-kpi-ic { background: #fff3e2; color: #b45309; }
.rw-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rw-mini span { padding: 6px 12px; border-radius: 999px; background: #f3f1f9; font-size: 12.5px; color: var(--muted); }
.rw-mini b { color: var(--ink); }

/* Simulator */
.rw-estimate { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fffaeb; border: 1px solid #f3dc9a; color: #6b4a07; font-size: 13.5px; }
.rw-estimate svg { margin-top: 2px; flex: none; }
.rw-sim-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; align-items: end; }
.rw-slider, .rw-money-in { display: grid; gap: 8px; font-size: 13px; font-weight: 500; }
.rw-slider > span { display: flex; justify-content: space-between; }
.rw-slider output { font-weight: 700; color: var(--accent); }
.rw-slider input[type='range'] { width: 100%; accent-color: var(--accent); }
.rw-prefix { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.rw-prefix input { flex: 1; min-width: 0; }
.rw-sim-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 14px; }
.rw-sim-kpis div { border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, #fdf0f8, #f1effb); }
.rw-sim-kpis small { display: block; color: var(--muted); font-size: 12px; }
.rw-sim-kpis b { font-size: 22px; letter-spacing: -0.02em; }
.rw-sim-hint { margin-top: 14px; }

/* Owner: tabs, agent cards, settings */
.rw-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.rw-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rw-tabs button[aria-selected='true'] { background: var(--navy); color: #fff; }
.rw-tabs button .pill { margin-left: 6px; }
.rw-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rw-agent { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.rw-agent:hover { border-color: rgba(184, 43, 130, 0.45); }
.rw-agent.open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(254, 129, 209, 0.25); }
.rw-agent-head { display: flex; align-items: center; gap: 12px; }
.rw-agent-head > div { flex: 1; min-width: 0; }
.rw-agent-head b { display: block; font-size: 15px; }
.rw-agent-head small { color: var(--muted); font-size: 12px; }
.rw-agent-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.rw-agent-stats div { background: #f7f6fb; border-radius: 10px; padding: 8px 4px; }
.rw-agent-stats small { display: block; color: var(--muted); font-size: 11px; }
.rw-agent-stats b { font-size: 14.5px; }
.rw-agent-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rw-agent-foot .due { font-weight: 700; }
.rw-agent-foot .btn { margin-left: auto; }
.rw-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border: 2px dashed rgba(184, 43, 130, 0.3); border-radius: 18px; background: #fdf7fb; }
.rw-add b { margin-right: auto; }
.rw-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rw-set { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px; display: grid; gap: 10px; align-content: start; }
.rw-set h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.rw-set p { margin: 0; }
.rw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #f7f6fb; font-size: 13px; }
.rw-row input[type='number'] { width: 5.5em; }
.rw-row .btn { margin-left: auto; }
.rw-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.rw-switch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.rw-switch input { width: 18px; height: 18px; accent-color: var(--accent); }
.rw-detail-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rw-detail-head h2 { margin: 0; font-size: 20px; }
.rw-detail-head .btn { margin-left: auto; }
.rw-icon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rw-icon-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #f7f6fb; font-size: 13.5px; line-height: 1.45; }
.rw-icon-list li > span { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--accent); }
.rw-money-month { display: grid; grid-template-columns: 8em 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rw-money-month:last-child { border-bottom: 0; }
.rw-money-month small { color: var(--muted); display: block; font-size: 12px; }
.rw-money-month .kept { text-align: right; }
.rw-money-month .kept b { color: var(--good); font-size: 16px; }
.rw-flag { color: var(--bad); font-weight: 600; font-size: 12px; }

@media (max-width: 760px) {
  .rw-hero { padding: 20px 18px; }
  .rw-hero-grid { grid-template-columns: 1fr; }
  .rw-big { font-size: 34px; }
  .rw-stats, .rw-kpis { grid-template-columns: repeat(2, 1fr); }
  .rw-grid2, .rw-icon-list { grid-template-columns: 1fr; }
  .rw-sim-kpis { grid-template-columns: 1fr; }
  .rw-meter { grid-template-columns: 28px 7.5em 1fr 2.2em; font-size: 12.5px; }
  .rw-path small { display: none; }
  .rw-path li { font-size: 11px; }
  .rw-money-month { grid-template-columns: 1fr auto; }
  .rw-money-month .rw-split { grid-column: 1 / -1; grid-row: 2; }
  .rw-agents { grid-template-columns: 1fr; }
  .rw-entries li { grid-template-columns: 12px 1fr auto; }
  .rw-entry-calc { display: none; }
}

/* Rewards: the website's premium touches (live badge, mono kickers, shimmer word, glass, orb, rise-in). */
.rw, .rw-stats, .rw-kpi b, .rw-big, .rw-month-total, .rw-sim-kpis b, .rw-agent-stats b { font-variant-numeric: tabular-nums; }
.rw-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05); font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky); backdrop-filter: blur(10px); }
.rw-live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.rw-live i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--sky); animation: rw-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite; }
.rw-live-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rw-live--soft { color: rgba(255, 255, 255, 0.85); }
.rw-live--soft i { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.rw-live--soft i::after { display: none; }
@keyframes rw-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.rw-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.rw-kicker b { color: var(--accent); font-weight: 600; }
.rw-kicker::after { content: ''; height: 1px; width: 32px; background: var(--line); order: 1; }
.rw-kicker span { order: 2; }
.rw-title { margin: 0 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.rw-title .serif { font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--accent); }
.rw-hero-title { font-size: 40px !important; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.rw-shimmer { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; background: linear-gradient(110deg, #fe81d1 0%, #fe81d1 38%, #ffe3f4 50%, #fe81d1 62%, #fe81d1 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rw-shimmer 7s linear infinite; padding-right: 0.06em; }
@keyframes rw-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rw-hero { isolation: isolate; }
.rw-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent); }
.rw-hero::after { animation: rw-drift 14s ease-in-out infinite; }
@keyframes rw-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-24px, 18px, 0) scale(1.08); } }
.rw-orb { position: absolute; right: 28px; top: 24px; width: 120px; height: 120px; border-radius: 50%; pointer-events: none; opacity: 0.55; background: conic-gradient(from 0deg, #fe81d1, #74ffed, #5b47d6, #fe81d1); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px)); animation: rw-turn 22s linear infinite; }
.rw-orb + .rw-orb { width: 84px; height: 84px; right: 46px; top: 42px; animation-duration: 14s; animation-direction: reverse; opacity: 0.4; }
@keyframes rw-turn { to { transform: rotate(360deg); } }
.rw-chips span, .rw-stats div { backdrop-filter: blur(12px); }
.rw-hero .rw-ring { filter: drop-shadow(0 0 18px rgba(116, 255, 237, 0.35)); }
.rw-big { background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.72)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rw > *, .rw-agents > *, .rw-grid2 > * { animation: rw-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rw > *:nth-child(2), .rw-agents > *:nth-child(2) { animation-delay: 0.05s; }
.rw > *:nth-child(3), .rw-agents > *:nth-child(3) { animation-delay: 0.1s; }
.rw > *:nth-child(n + 4), .rw-agents > *:nth-child(n + 4) { animation-delay: 0.15s; }
@keyframes rw-rise { from { transform: translateY(12px); } to { transform: none; } }
.rw .card { border-radius: 22px; }
.rw-kpi, .rw-set, .rw-agent { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s, border-color 0.2s; }
.rw-kpi:hover, .rw-agent:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(23, 31, 68, 0.45); }
.rw-col-stack { box-shadow: 0 10px 20px -14px rgba(184, 43, 130, 0.6); }
.rw-tabs { box-shadow: var(--shadow); }
.rw-tabs button[aria-selected='true'] { background: linear-gradient(135deg, #262f66, #171f44); box-shadow: 0 8px 18px -10px rgba(23, 31, 68, 0.8); }
.rw-free { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #e6fbf8, #f1effb); border: 1px solid #c9f3ec; font-size: 13.5px; }
.rw-free b { color: #0b5f55; }
.rw-free > span { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: #fff; color: #0f8a7c; }
.rw-free svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .rw-hero-title { font-size: 32px !important; } .rw-orb { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rw-live i::after, .rw-shimmer, .rw-hero::after, .rw-orb, .rw > *, .rw-agents > *, .rw-grid2 > * { animation: none; }
}
.rw-set h3 svg { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: #fdeef7; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rw-row input[type='number'] { width: 6.5em; }
.rw-prefix input { flex: 0 1 10em; }

/* Dialler › Training (training.js) */
.train-start p { margin-top: 0; }
.train-chat { max-height: 320px; overflow: auto; display: grid; gap: 8px; margin-bottom: 10px; }
.train-msg { margin: 0; padding: 10px 14px; border-radius: 14px; max-width: 85%; white-space: pre-wrap; }
.train-msg--user { justify-self: end; background: var(--navy); color: #fff; }
.train-msg--assistant { justify-self: start; background: var(--head); border: 1px solid var(--line); }
.train-ask { display: flex; gap: 8px; }
.train-ask input { flex: 1; min-width: 0; }
.train-result .card-head { align-items: baseline; }
.train-score { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.train-bars { display: grid; gap: 8px; margin: 12px 0 16px; }
.train-bar { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.train-track { height: 10px; background: var(--head); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.train-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--accent)); border-radius: 999px; }
.train-bar b { text-align: right; }
.train-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .train-cols { grid-template-columns: 1fr; } .train-bar { grid-template-columns: 1fr 40px; } .train-bar .train-track { grid-column: 1 / -1; grid-row: 2; } }
.train-nathan { background: #fdeef7; border-radius: 12px; padding: 12px 14px; }
.train-lines { display: grid; gap: 6px; margin-top: 10px; font-size: 14px; }
.train-line { margin: 0; }
.train-line--rep b { color: var(--accent); }
.train-call { text-align: center; }
.train-call .actions { justify-content: center; margin-top: 12px; }
.train-call details { text-align: left; margin-top: 14px; }
.train-orb { width: 120px; height: 120px; margin: 18px auto 6px; display: grid; place-items: center; }
.train-orb span { width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #74ffed, #fe81d1 55%, #b82b82); }
.train-orb--speaking span { animation: train-speak 0.7s ease-in-out infinite alternate; }
.train-orb--listening span { animation: train-listen 2s ease-in-out infinite; }
.train-orb--thinking span, .train-orb--marking span { animation: train-think 1s ease-in-out infinite; }
@keyframes train-speak { to { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(254, 129, 209, 0.25); } }
@keyframes train-listen { 50% { box-shadow: 0 0 0 14px rgba(116, 255, 237, 0.25); } }
@keyframes train-think { 50% { transform: scale(0.9); } }
.train-state { font-weight: 700; margin: 4px 0; }
.train-heard { min-height: 1.4em; }
.train-pb { display: grid; gap: 10px; }
.train-pb label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.train-examples { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* Caller guard (guard.js): callers only */
body.guard-on #content { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.guard-on #content input, body.guard-on #content textarea, body.guard-on #content select { -webkit-user-select: text; user-select: text; }
body.guard-hidden #content { filter: blur(18px); transition: none; }
.guard-mark { position: fixed; inset: -50%; z-index: 9990; pointer-events: none; display: flex; flex-wrap: wrap; gap: 70px 90px; align-content: flex-start; transform: rotate(-24deg); opacity: 0.09; font: 600 14px/1 ui-monospace, Menlo, monospace; color: var(--ink, #171f44); white-space: nowrap; overflow: hidden; }
.guard-banner { margin: 0; padding: 6px 16px; font-size: 12px; text-align: center; background: #fff4d6; color: #5c4400; }
.guard-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 9999; max-width: min(92vw, 440px); padding: 10px 16px; border-radius: 10px; background: #171f44; color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.guard-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media print { body.guard-on * { display: none !important; } body.guard-on::after { content: 'Printing the Dialler is not allowed.'; display: block; padding: 40px; font: 20px sans-serif; } }
@media (prefers-color-scheme: dark) { .guard-mark { color: #fff; opacity: 0.07; } .guard-banner { background: #3a2f10; color: #ffe7a3; } }

/* Learning (learn.js) and Plan (plan.js) */
.learn-hero { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.learn-hero > div:first-child { flex: 1 1 320px; }
.learn-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--accent, #b82b82) calc(var(--p) * 1%), var(--line, #e5e3ef) 0); position: relative; }
.learn-ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--card, #fff); }
.learn-ring b, .learn-ring span { position: relative; } .learn-ring b { font-size: 26px; } .learn-ring span { font-size: 11px; color: var(--muted, #6b6b80); }
.learn-list { display: grid; }
.learn-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 14px 18px; border: 0; border-top: 1px solid var(--line, #e5e3ef); background: none; cursor: pointer; font: inherit; color: inherit; }
.learn-item:hover { background: var(--mist, #f5f4fa); }
.learn-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center; background: var(--mist, #f5f4fa); font-weight: 700; }
.learn-t { display: grid; gap: 2px; } .learn-s { display: grid; gap: 4px; justify-items: end; }
.learn-body h3 { margin: 18px 0 6px; } .learn-body li { margin: 6px 0; line-height: 1.5; }
.learn-what { font-size: 17px; margin-top: 0; } .learn-try { background: var(--mist, #f5f4fa); padding: 12px 14px; border-radius: 10px; }
.learn-quiz fieldset { border: 0; padding: 0; margin: 0 0 14px; } .learn-quiz legend { font-weight: 600; margin-bottom: 6px; }
.learn-quiz label { display: block; padding: 8px 10px; border-radius: 8px; cursor: pointer; } .learn-quiz label:hover { background: var(--mist, #f5f4fa); }
.learn-answers li { margin: 4px 0; }
.plan-vision-text { width: 100%; font-size: 20px; font-weight: 600; border: 1px solid transparent; border-radius: 10px; padding: 8px; background: transparent; color: inherit; resize: vertical; }
.plan-vision-text:hover, .plan-vision-text:focus { border-color: var(--line, #e5e3ef); }
.plan-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.plan-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan-num-label { margin: 0; font-size: 13px; color: var(--muted, #6b6b80); min-height: 34px; }
.plan-num-big { margin: 6px 0 10px; font-size: 30px; font-weight: 700; display: flex; align-items: baseline; gap: 6px; }
.plan-num-big input { width: 3.6em; min-width: 64px; font: inherit; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; padding: 0 4px; }
.plan-num-big span, .plan-num-big span input { font-size: 18px; color: var(--muted, #6b6b80); }
.plan-num-big input:hover, .plan-num-big input:focus { border-color: var(--line, #e5e3ef); }
.plan-track { height: 10px; border-radius: 99px; background: var(--line, #e5e3ef); overflow: hidden; } .plan-track i { display: block; height: 100%; background: var(--accent, #b82b82); }
.plan-live { margin: 10px 2px 16px; }
.plan-ms { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.plan-ms li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line, #e5e3ef); }
.plan-ms li.is-done span { text-decoration: line-through; color: var(--muted, #6b6b80); }
.plan-check { display: flex; gap: 10px; align-items: center; cursor: pointer; } .plan-check input { width: 20px; height: 20px; }
.plan-ms-side { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.plan-card { position: relative; border-radius: 14px; background: linear-gradient(135deg, #fff4fb, #eefbf9); border: 1px solid var(--line, #e5e3ef); padding: 10px; min-height: 110px; }
.plan-card textarea { width: calc(100% - 26px); height: 100%; min-height: 90px; border: 0; background: transparent; font: 600 15px/1.4 inherit; color: inherit; resize: none; }
.plan-card .btn { position: absolute; top: 6px; right: 6px; }
.plan-card--add { display: grid; place-content: center; cursor: pointer; font: inherit; color: var(--muted, #6b6b80); border-style: dashed; }
.plan-save { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 0; background: var(--bg, #f6f5fb); }
@media (prefers-color-scheme: dark) { .plan-card { background: linear-gradient(135deg, #2a1b26, #142624); } }

/* First-login tour (tour.js) */
.tour { position: fixed; inset: 0; z-index: 90; }
.tour.is-centre { background: rgba(16, 22, 58, 0.62); display: grid; place-items: center; padding: 16px; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(16, 22, 58, 0.62); outline: 2px solid var(--pink); transition: all 0.25s ease; pointer-events: none; }
.tour-card { position: fixed; width: min(360px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: 18px; padding: 20px 20px 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); }
.tour.is-centre .tour-card { position: relative; }
.tour-count { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b82b82; }
.tour-card h2 { margin: 6px 0 8px; font-size: 19px; line-height: 1.25; }
.tour-card p#tourText { margin: 0 0 16px; color: var(--ink); line-height: 1.55; }
.tour-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tour-actions span { flex: 1; }
.side-gap { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 6px 10px; }
@media (max-width: 860px) { .side-gap { display: none; } }
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none; } }
.tour-skip { border: 0; background: none; color: var(--muted); padding-left: 0; padding-right: 4px; }

/* Max, the sales coach (training.js) */
.max-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 16px; align-items: start; }
.max-skill { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--head); }
.max-skill summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.max-skill p, .max-skill ul { margin: 8px 0 0; }
.max-gym { border-top: 1px solid var(--line); padding-top: 12px; }
.max-obj { font-size: 1.25rem; font-weight: 600; margin: 6px 0 12px; }
.max-mark { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.max-start > summary { cursor: pointer; list-style: none; }
.max-start > summary::-webkit-details-marker { display: none; }
.max-days li, .max-call li { margin-bottom: 8px; }

/* ---------- Training with Max: brand hero, tiles, tabs, gym (training.js) ---------- */
.max-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 28px 30px; border-radius: 24px; color: #fff; background: radial-gradient(600px 260px at 95% -10%, rgba(254, 129, 209, 0.38), transparent 60%), radial-gradient(500px 240px at -5% 120%, rgba(116, 255, 237, 0.22), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: 0 24px 48px -28px rgba(23, 31, 68, 0.7); margin-bottom: 16px; }
.max-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky); }
.max-eyebrow img { border-radius: 8px; }
.max-hero h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; }
.max-hero .rw-shimmer { font-size: 1.12em; }
.max-hero-sub { margin: 12px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; max-width: 46ch; }
.max-hero-stats { display: grid; gap: 10px; }
.max-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); }
.max-stat b { grid-row: span 2; font-size: 30px; line-height: 1; font-weight: 800; color: #fff; }
.max-stat b small { font-size: 16px; color: rgba(255, 255, 255, 0.6); }
.max-stat .max-stat-word { font-size: 17px; color: var(--pink); }
.max-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.max-dots { display: flex; gap: 5px; font-style: normal; }
.max-dots em { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.max-dots em.is-done { background: rgba(255, 255, 255, 0.55); }
.max-dots em.is-pass { background: var(--sky); box-shadow: 0 0 10px rgba(116, 255, 237, 0.8); }

.max-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 10px; }
.max-tile { display: grid; justify-items: start; gap: 6px; text-align: left; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font: inherit; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.max-tile:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--pink); box-shadow: 0 18px 36px -22px rgba(184, 43, 130, 0.55); }
.max-tile[disabled] { opacity: 0.5; cursor: not-allowed; }
.max-tile b { font-size: 17px; }
.max-tile small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.max-tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 22px; background: var(--head); border: 1px solid var(--line); }
.max-tile--hot { background: linear-gradient(135deg, var(--accent), #d6409e 60%, var(--pink)); border-color: transparent; color: #fff; }
.max-tile--hot small { color: rgba(255, 255, 255, 0.85); }
.max-tile--hot .max-tile-icon { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.25); }
.max-owner-link { margin: 0 0 12px; }

.max-gym-card { margin: 6px 0 18px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #fff, var(--head)); border: 2px solid var(--pink); box-shadow: 0 24px 48px -30px rgba(184, 43, 130, 0.6); }
.max-gym-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.max-pill { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.max-x { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.max-scene { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.max-bubble { position: relative; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 20px 20px 20px 6px; background: var(--navy); color: #fff; font-size: clamp(18px, 2.4vw, 22px); font-weight: 700; line-height: 1.3; margin-bottom: 14px; }
.max-hear { flex: none; border: 0; border-radius: 50%; width: 36px; height: 36px; background: rgba(255, 255, 255, 0.14); cursor: pointer; font-size: 16px; }
.max-model { padding: 12px 16px; border-radius: 14px; background: #fff0f9; border: 1px solid #ffd0ec; margin-bottom: 12px; }
.max-model b { color: var(--accent); font-size: 13px; }
.max-model p { margin: 4px 0 0; font-size: 15px; }
.max-model small { color: var(--muted); }
.max-answer { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.max-answer input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); font: inherit; font-size: 15px; }
.max-mic { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; font-size: 22px; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--accent), var(--pink)); box-shadow: 0 10px 22px -10px rgba(184, 43, 130, 0.9); }
.max-mic.is-on { animation: max-pulse 1s ease-in-out infinite; }
@keyframes max-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(254, 129, 209, 0.25); } }
.max-result { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-bottom: 12px; }
.max-score { display: grid; place-items: center; align-content: center; width: 84px; height: 84px; border-radius: 50%; color: #fff; background: var(--muted); }
.max-score b { font-size: 34px; line-height: 1; }
.max-score small { font-size: 12px; opacity: 0.85; }
.max-score.is-top { background: linear-gradient(135deg, #0f9f6e, var(--good)); }
.max-score.is-mid { background: linear-gradient(135deg, #f59e0b, var(--warn)); }
.max-score.is-low { background: linear-gradient(135deg, #ef4444, var(--bad)); }
.max-verdict { margin: 0 0 10px; font-weight: 600; font-size: 15px; }

.max-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 4px 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); scrollbar-width: none; }
.max-tab { flex: none; border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.max-tab.is-on { background: var(--navy); color: #fff; }
.max-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.max-chip { border: 1px solid var(--line); background: var(--head); padding: 8px 14px; border-radius: 999px; font: inherit; cursor: pointer; }
.max-chip:hover { border-color: var(--pink); }

.max-start { display: grid; gap: 12px; }
.max-start .card { margin: 0; }
.max-steps, .max-script { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.max-steps li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: start; }
.max-step-day { display: inline-flex; justify-content: center; padding: 4px 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; }
.max-script li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px; border-radius: 14px; background: var(--head); border: 1px solid var(--line); }
.max-script-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--pink)); color: #fff; font-weight: 800; }
.max-script p { margin: 3px 0 0; font-size: 15px; }
.max-trades { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; align-items: start; }
.max-trade { border: 1px solid var(--line); border-radius: 14px; background: var(--head); }
.max-trade summary { padding: 12px 14px; font-weight: 700; cursor: pointer; }
.max-trade[open] { border-color: var(--pink); background: #fff; }
.max-trade dl { margin: 0; padding: 0 14px 12px; }
.max-trade dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.max-trade dd { margin: 2px 0 0; }
.max-line { padding: 10px 0; border-top: 1px solid var(--line); }
.max-line:first-of-type { border-top: 0; }
.max-line p { margin: 4px 0 0; }
.max-warm { border-left: 4px solid var(--sky); }
.max-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.max-rules { background: var(--navy); color: #fff; }
.max-rules .section-title { color: var(--sky); }
.max-rules ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

.max-bars { display: grid; gap: 6px; }
.max-barrow { border-radius: 12px; border: 1px solid transparent; }
.max-barrow[open] { border-color: var(--line); background: var(--head); }
.max-barrow summary { display: grid; grid-template-columns: 190px 1fr 140px; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.max-barrow summary::-webkit-details-marker { display: none; }
.max-bar-label { font-weight: 600; }
.max-bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.max-bar i { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.max-bar i.is-top { background: linear-gradient(90deg, #0f9f6e, #34d399); }
.max-bar i.is-good { background: linear-gradient(90deg, var(--accent), var(--pink)); }
.max-bar i.is-mid { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.max-bar i.is-low { background: linear-gradient(90deg, #ef4444, #f87171); }
.max-bar-level { font-size: 13px; color: var(--muted); text-align: right; }
.max-lesson { padding: 0 12px 12px; }
.max-lesson p, .max-lesson ul { margin: 6px 0 0; }
.max-drill { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px dashed var(--pink); }

@media (max-width: 760px) {
  .max-hero { grid-template-columns: 1fr; padding: 22px; }
  .max-tiles, .max-two { grid-template-columns: 1fr; }
  .max-tile { grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px; }
  .max-tile-icon { grid-row: span 2; }
  .max-hero-stats { grid-template-columns: 1fr 1fr; }
  .max-hero-stats .max-stat:last-child { grid-column: 1 / -1; }
  .max-barrow summary { grid-template-columns: 1fr 90px; }
  .max-bar { grid-column: 1 / -1; grid-row: 2; }
  .max-answer { flex-wrap: wrap; }
  .max-answer input { flex-basis: calc(100% - 64px); }
}
.crm-screen { border: 2px solid var(--pink); }
.crm-screen-steps { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 10px; }
.crm-screen-ok { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.crm-country { display: inline-flex; gap: 4px; }
.crm-leadstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 12px; }
.crm-leadstat { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.crm-leadstat b { font-size: 24px; }
.crm-leadstat small { color: var(--muted); }
.crm-quote { padding: 22px; display: grid; gap: 10px; }
.crm-quote-tabs { display: flex; gap: 6px; }
.crm-quality { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--muted); align-items: center; }
.crm-score { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--ink); font-weight: 700; }
.crm-score.is-mid { background: #fde7b0; }
.crm-score.is-hi { background: linear-gradient(90deg, var(--accent), var(--pink)); color: #fff; }
.crm-chip { padding: 1px 8px; border-radius: 999px; background: #eef9f7; border: 1px solid #c5efe8; color: #0d5f55; }

/* Sales course (public/dashboard/sales-course.js): simple-English lessons, big text, easy to scan */
.sc { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.sc-nav { display: grid; gap: 4px; position: sticky; top: 12px; }
.sc-progress { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.sc-progress b { color: var(--ink); font-size: 18px; margin-right: 4px; }
.sc-progress i { display: block; height: 6px; border-radius: 6px; background: var(--line); margin-top: 6px; overflow: hidden; }
.sc-progress em { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--navy-2)); }
.sc-nav-item { display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
.sc-nav-item span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); font-size: 11px; font-weight: 700; }
.sc-nav-item.is-on { background: var(--navy); color: #fff; }
.sc-nav-item.is-done span { background: #2bb673; color: #fff; }
.sc-lesson { font-size: 16.5px; line-height: 1.6; max-width: 720px; }
.sc-lesson h2 { margin: 2px 0 6px; font-size: 26px; }
.sc-kicker { margin: 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.sc-short { font-size: 19px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sc-h { margin: 22px 0 8px; font-size: 17px; }
.sc-steps { display: grid; gap: 8px; margin: 14px 0; }
.sc-step { display: grid; grid-template-columns: 170px 1fr; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #f6f5fb; }
.sc-tones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0; }
.sc-tone { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.sc-tone q { font-weight: 600; }
.sc-tone audio { width: 100%; }
.sc-say { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 14px; margin-bottom: 8px; border-left: 4px solid #2bb673; background: #f2fbf6; border-radius: 0 14px 14px 0; }
.sc-say small { grid-column: 1 / -1; color: var(--muted); font-weight: 600; }
.sc-say p { margin: 0; }
.sc-dont { margin: 0; padding-left: 20px; color: #a3354f; }
.sc-obj { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; }
.sc-obj summary { cursor: pointer; font-weight: 600; }
.sc-obj p { margin: 8px 0 0; }
.sc-words { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.sc-words dt { font-weight: 700; }
.sc-words dd { margin: 0; }
.sc-source { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.sc-practise { margin: 20px 0; padding: 14px 16px; border-radius: 16px; background: var(--navy); color: #fff; }
.sc-practise p { margin: 4px 0 10px; }
.sc-quiz fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; }
.sc-quiz legend { font-weight: 700; padding: 0 4px; }
.sc-quiz label { display: flex; gap: 8px; padding: 4px 0; cursor: pointer; }
.sc-why { margin: 6px 0 0; font-weight: 600; }
.sc-why.is-ok { color: #1f8a55; }
.sc-why.is-no { color: #a3354f; }
.max-win { margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: #f2fbf6; color: #1f6e45; font-weight: 600; }
@media (max-width: 760px) {
  .sc { grid-template-columns: minmax(0, 1fr); }
  .sc > * { min-width: 0; }
  .sc-nav { position: static; grid-template-columns: 1fr 1fr; }
  .sc-progress { grid-column: 1 / -1; }
  .sc-step { grid-template-columns: 1fr; gap: 2px; }
  .sc-lesson { font-size: 16px; }
}
.sc-result { margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: #f6f5fb; font-weight: 700; }
.sc-result.is-ok { background: #f2fbf6; color: #1f6e45; }
.sc-nav-test { margin-top: 6px; border-color: var(--line); }
.access-list .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Training: today's numbers, earnings, leaderboard, real-call reviews, listening, translation, follow-up tips */
.max-today { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.max-today-bit { display: grid; gap: 2px; min-width: 92px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.max-today-bit b { font-size: 20px; color: #fff; }
.max-today-bit b small { font-size: 12px; opacity: 0.7; }
.max-today-bit.is-hit { background: rgba(116, 255, 237, 0.22); }
.max-money { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.max-me td { background: #fdf2fa; }
.max-review { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; }
.max-review summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.max-team-reviews { margin-bottom: 14px; }
.max-listen { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.max-listen audio { width: 100%; }
.max-listen p { margin: 0; }
.sc-lang { display: inline-flex; gap: 6px; align-items: center; margin: 4px 0 10px; font-size: 14px; }
.sc-translated { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: #f4f8ff; border-left: 4px solid var(--navy-2); }
.sc-translated h3 { margin: 4px 0 6px; }
.crm-follow { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; background: #f2fbf6; }
.crm-follow p { margin: 0 0 6px; }
.max-target { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.max-target input { width: 90px; }

/* Sales course, deeper and more hands-on (29 Nov 2026): lesson hero, sections, call player, tools, one-at-a-time quiz */
.sc-hero { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; margin-bottom: 14px; border-radius: 22px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(254, 129, 209, 0.55), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow); }
.sc-hero.is-done { background: radial-gradient(120% 140% at 100% 0%, rgba(43, 182, 115, 0.55), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.sc-hero-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 34px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.2); animation: sc-bob 3s ease-in-out infinite; }
.sc-hero .sc-kicker { color: rgba(255, 255, 255, 0.75); }
.sc-hero h2 { color: #fff; margin: 2px 0 4px; }
.sc-hero .sc-short { margin: 0; color: rgba(255, 255, 255, 0.95); }
.sc-hero .btn { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
@keyframes sc-bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.sc-secs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.sc-secs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.sc-secs button:hover { transform: translateY(-1px); }
.sc-secs button.is-on { background: var(--pink); border-color: var(--pink); color: var(--navy); }
.sc-secs button.is-seen span { color: #1f8a55; font-weight: 800; }
.sc-sec { animation: sc-in 0.35s ease both; }
@keyframes sc-in { from { opacity: 0; transform: translateY(8px); } }
.sc-secnav { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sc-lead { font-size: 18px; font-weight: 500; }
.sc-timeline { list-style: none; margin: 16px 0; padding: 0; position: relative; }
.sc-timeline::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--pink), var(--navy-2)); }
.sc-timeline li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; animation: sc-in 0.4s ease both; animation-delay: calc(var(--d) * 60ms); }
.sc-dot { flex: none; z-index: 1; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--card); border: 3px solid var(--pink); font-weight: 800; font-size: 14px; }
.sc-timeline li div { flex: 1; display: grid; gap: 2px; padding: 8px 14px; border-radius: 14px; background: var(--bg); }
.sc-whys { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sc-whycard { display: flex; gap: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #fff7fc, #f4f3ff); border: 1px solid var(--line); animation: sc-in 0.4s ease both; animation-delay: calc(var(--d) * 80ms); }
.sc-whycard span { font-size: 22px; }
.sc-whycard p { margin: 0; font-size: 15px; }
.sc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sc-cards--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sc-word { display: grid; gap: 6px; align-content: start; min-height: 86px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.2s, background 0.2s; }
.sc-word:hover { transform: translateY(-2px) rotate(-0.5deg); }
.sc-word b { font-size: 16px; }
.sc-word span { color: var(--muted); font-size: 14.5px; filter: blur(5px); opacity: 0.6; transition: filter 0.25s, opacity 0.25s; }
.sc-word.is-open { background: #f2fbf6; border-color: #b9e8cf; }
.sc-word.is-open span { filter: none; opacity: 1; color: var(--ink); }
.sc-word--obj b { color: #a3354f; }
.sc-donts { display: grid; gap: 6px; }
.sc-donts p { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fdf1f4; color: #8c2b43; }
.sc-call { display: grid; gap: 8px; padding: 14px; border-radius: 20px; background: var(--bg); margin: 10px 0; }
.sc-cl { max-width: 88%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--card); border: 1px solid var(--line); }
.sc-cl p { margin: 2px 0 0; }
.sc-cl--you, .sc-cl--bad { justify-self: end; border-radius: 18px 18px 6px 18px; background: #eef1ff; border-color: #d9def8; }
.sc-cl--bad { background: #fdf1f4; border-color: #f3cbd5; }
.sc-cl--bad p { text-decoration: line-through; text-decoration-color: rgba(163, 53, 79, 0.5); }
.sc-cl--pause { justify-self: center; background: none; border-style: dashed; color: var(--muted); font-style: italic; }
.sc-cl-who { font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-cl-note { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--pink); color: var(--navy); font-weight: 700; font-size: 12px; }
.sc-cl.is-new { animation: sc-in 0.35s ease both; }
.sc-tool { margin: 14px 0; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.sc-tool .sc-h { margin-top: 0; }
.sc-tool-out { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.sc-tool-out.is-ok, .sc-tool-out.is-mid { background: #f2fbf6; color: #1f6e45; }
.sc-tool-out.is-low { background: #eef1ff; color: #2c3577; }
.sc-tool-out.is-high { background: #fff4e0; color: #8a5300; }
.sc-order { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chip { position: relative; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; max-width: 100%; }
.sc-chip.is-ok { background: #2bb673; border-color: #2bb673; color: #fff; }
.sc-chip.is-ok::before { content: attr(data-n) '. '; }
.sc-chip.is-shake { animation: sc-shake 0.35s; border-color: #e0718b; }
@keyframes sc-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.sc-slider { display: grid; grid-template-columns: 120px 1fr 28px; gap: 10px; align-items: center; margin: 8px 0; font-weight: 600; }
.sc-slider b { text-align: right; font-size: 18px; }
.sc-slider input, .sc-range { width: 100%; accent-color: var(--pink); }
.sc-gauge { position: relative; display: grid; grid-template-columns: 3fr 4fr 3fr; height: 14px; border-radius: 8px; overflow: hidden; margin: 8px 0 4px; }
.sc-gauge i:nth-child(1) { background: #b8c2f2; }
.sc-gauge i:nth-child(2) { background: #8fdcb6; }
.sc-gauge i:nth-child(3) { background: #ffc98a; }
.sc-gauge em { position: absolute; top: -3px; width: 6px; height: 20px; margin-left: -3px; border-radius: 3px; background: var(--navy); transition: left 0.2s; }
.sc-tool--breathe { text-align: center; }
.sc-breath { display: grid; place-items: center; width: 150px; height: 150px; margin: 14px auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd2ee, var(--pink)); color: var(--navy); font-weight: 800; transform: scale(0.65); transition-property: transform; transition-timing-function: ease-in-out; }
.sc-breath.is-in { transform: scale(1); }
.sc-breath.is-out { transform: scale(0.65); }
.sc-breath span { transform: scale(1.1); }
.sc-big { font-size: 20px; font-weight: 700; text-align: center; }
.sc-count { display: grid; place-items: center; width: 96px; height: 96px; margin: 8px auto 12px; border-radius: 50%; border: 6px solid var(--line); font-size: 38px; font-weight: 800; }
.sc-count.is-on { border-color: var(--pink); animation: sc-pulse 1s ease-in-out infinite; }
.sc-count.is-done { border-color: #2bb673; color: #1f8a55; }
@keyframes sc-pulse { 50% { transform: scale(1.06); } }
.sc-calc { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.sc-calc label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.sc-calc input { width: 150px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font: inherit; }
.sc-scen { margin: 16px 0; }
.sc-scen-q { padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--navy); color: #fff; font-weight: 600; }
.sc-scen-opts { display: grid; gap: 8px; }
.sc-scen-opt { display: grid; gap: 6px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; position: relative; transition: transform 0.15s, border-color 0.15s; }
.sc-scen-opt:hover { transform: translateX(3px); border-color: var(--pink); }
.sc-scen-opt small { font-size: 14px; font-weight: 600; animation: sc-in 0.3s ease both; }
.sc-scen-opt.is-best { border-color: #2bb673; background: #f2fbf6; }
.sc-scen-opt.is-best small { color: #1f6e45; }
.sc-scen-opt.is-ok { border-color: #f1c04b; background: #fffaeb; }
.sc-scen-opt.is-ok small { color: #7a5600; }
.sc-scen-opt.is-bad { border-color: #e0718b; background: #fdf1f4; }
.sc-scen-opt.is-bad small { color: #8c2b43; }
.sc-qcard { padding: 20px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); animation: sc-in 0.3s ease both; position: relative; overflow: hidden; }
.sc-qtop { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sc-qbar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.sc-qbar i { display: block; height: 100%; background: var(--pink); transition: width 0.3s; }
.sc-qq { font-size: 20px; font-weight: 700; margin: 14px 0; }
.sc-opts { display: grid; gap: 8px; }
.sc-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.sc-opt span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); font-weight: 800; }
.sc-opt:hover:not([disabled]) { border-color: var(--pink); transform: translateX(3px); }
.sc-opt.is-ok { border-color: #2bb673; background: #f2fbf6; }
.sc-opt.is-ok span { background: #2bb673; color: #fff; }
.sc-opt.is-no { border-color: #e0718b; background: #fdf1f4; animation: sc-shake 0.35s; }
.sc-opt.is-dim { opacity: 0.5; }
.sc-opt[disabled] { cursor: default; }
.sc-qdone { text-align: center; }
.sc-qdone.is-ok { background: linear-gradient(160deg, #f2fbf6, #fff); }
.sc-qbig { font-size: 52px; margin: 0; animation: sc-bob 2s ease-in-out infinite; }
.stars { font-size: 28px; color: var(--line); letter-spacing: 4px; margin: 6px 0 12px; }
.stars .is-on { color: #f5b301; }
.sc-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.sc-confetti i { position: absolute; top: -10px; width: 8px; height: 12px; border-radius: 2px; animation: sc-fall 2.2s ease-in forwards; }
@keyframes sc-fall { to { top: 110%; transform: translateX(30px) rotate(540deg); opacity: 0.7; } }
.sc-scen-opt, .sc-word, .sc-tool, .sc-order { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .sc-hero-icon, .sc-sec, .sc-timeline li, .sc-whycard, .sc-qbig, .sc-count.is-on, .sc-cl.is-new { animation: none; }
}
@media (max-width: 760px) {
  .sc-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 4px; }
  .sc-progress { grid-column: auto; min-width: 140px; }
  .sc-hero { padding: 16px; gap: 12px; }
  .sc-hero-icon { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; }
  .sc-slider { grid-template-columns: 90px 1fr 24px; }
  .sc-cl { max-width: 96%; }
  .sc-qq { font-size: 18px; }
}

/* Role play with Max (29 Nov 2026) */
.rp-closer { margin-bottom: 14px; }
.rp-closer-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.rp-closer h2 { margin: 2px 0 4px; font-size: 24px; }
.rp-stats { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.rp-stats span { display: grid; min-width: 86px; padding: 8px 12px; border-radius: 14px; background: var(--bg); font-size: 12px; color: var(--muted); }
.rp-stats b { font-size: 20px; color: var(--ink); }
.rp-up { color: #1f8a55; font-weight: 700; }
.rp-down { color: #a3354f; font-weight: 700; }
.rp-track { position: relative; height: 14px; margin: 18px 0 30px; border-radius: 8px; background: var(--line); }
.rp-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8b93c9, var(--pink)); transition: width 0.6s; }
.rp-track em { position: absolute; top: 18px; transform: translateX(-2px); font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; border-left: 2px solid var(--line); padding-left: 4px; }
.rp-track em:last-child { transform: translateX(-100%); border-left: 0; border-right: 2px solid var(--line); padding: 0 4px 0 0; }
.rp-track em.is-past { color: var(--ink); }
.rp-spark { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.rp-spark span { flex: 1; max-width: 34px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.rp-spark i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; }
.rp-spark small { font-size: 11px; }
.rp-spark .is-top, .rp-chip.is-top { background: #2bb673; }
.rp-spark .is-mid, .rp-chip.is-mid { background: #f1c04b; }
.rp-spark .is-low, .rp-chip.is-low { background: #e0718b; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rp-card { display: grid; gap: 6px; justify-items: start; align-content: start; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.15s, border-color 0.15s; }
.rp-card:hover { transform: translateY(-3px); border-color: var(--pink); }
.rp-card-icon { font-size: 30px; }
.rp-card-tags { display: flex; gap: 6px; }
.rp-card b { font-size: 16.5px; }
.rp-card small { color: var(--muted); font-size: 13px; }
.rp-goal { color: var(--ink) !important; }
.rp-best { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--navy-2); }
.rp-lvl, .rp-kind { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--bg); }
.rp-lvl--easy { background: #e3f7ec; color: #1f6e45; }
.rp-lvl--medium { background: #fff3d6; color: #7a5600; }
.rp-lvl--hard { background: #fde4ea; color: #8c2b43; }
.rp-q { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; }
.rp-q summary { cursor: pointer; font-weight: 600; }
.rp-brief { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg); margin: 10px 0; }
.rp-brief p { margin: 4px 0 0; font-size: 14px; }
.rp-dots { display: flex; gap: 5px; align-self: center; }
.rp-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.rp-dots i.is-done { background: var(--pink); }
.rp-dots i.is-now { background: var(--navy-2); animation: sc-pulse 1s ease-in-out infinite; }
.rp-chat { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px 10px; }
.rp-line { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; animation: sc-in 0.3s ease both; }
.rp-line > p { margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--card); border: 1px solid var(--line); }
.rp-line--you { justify-self: end; flex-direction: column; align-items: flex-end; }
.rp-line--you > p { border-radius: 18px 18px 6px 18px; background: var(--navy); color: #fff; border-color: var(--navy); }
.rp-who { font-size: 22px; }
.rp-mark { max-width: 520px; font-size: 13.5px; }
.rp-mark summary { cursor: pointer; color: var(--muted); }
.rp-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; color: #fff; font-weight: 800; }
.rp-typing { display: flex; gap: 4px; }
.rp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: sc-pulse 0.9s ease-in-out infinite; }
.rp-typing i:nth-child(2) { animation-delay: 0.15s; }
.rp-typing i:nth-child(3) { animation-delay: 0.3s; }
.rp-debrief { margin-top: 10px; padding: 16px; border-radius: 18px; background: var(--bg); }
.rp-debrief-top { display: flex; gap: 14px; align-items: center; }
.rp-outcome { margin: 0; font-size: 20px; font-weight: 800; }

.rp-skills { display: grid; grid-template-columns: max-content 1fr 34px; gap: 8px 12px; align-items: center; font-size: 14px; }
.rp-skill-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.rp-skill-bar i { display: block; height: 100%; border-radius: 6px; }
.rp-skill-bar .is-top { background: #2bb673; }
.rp-skill-bar .is-mid { background: #f1c04b; }
.rp-skill-bar .is-low { background: #e0718b; }
.rp-skills b { text-align: right; }
@media (max-width: 760px) {
  .rp-track em:nth-child(3), .rp-track em:nth-child(4) { display: none; }
}
