/* ===== Hub v5 (Nov 2026 overhaul): workspaces, flat paper, contrast where it matters =====
   Loaded after hub.css, so these rules win. Ideas: workspace colour coding (Slack, Linear, HubSpot), ink first with mint as the
   one "do this now" signal (Linear's base + accent + contrast idea), numbers in tabular figures, every number explains itself.
   Colour means place: --wsc is the open workspace (set on <html data-ws>). Mint means act now. Red means something is wrong. */
:root {
  --bg: #E3EAE6; --surface: #FFFFFF; --surface-2: #EDF2EF; --ink: #0E1A15; --ink-2: #26362F; --muted: #42514A; --line: #C3CFC8; --line-2: #A5B5AD;
  --r: 14px; --shadow: 0 1px 0 rgba(15, 27, 23, .04);
  --ws-home: #1E9E70; --ws-sell: #E2492F; --ws-inbox: #2A63E8; --ws-clients: #6E4FE6; --ws-deliver: #E07A0C; --ws-insights: #0B93A6; --ws-money: #B58A00; --ws-automate: #4F625B; --ws-settings: #4F625B;
  --wsc: var(--ws-home);
  --wst: color-mix(in srgb, var(--wsc) 82%, #000);   /* the workspace colour dark enough for text on white */
  --wsl: color-mix(in srgb, var(--wsc) 10%, var(--surface));
  --rail: #0A1411; --rail-ink: #B7C8C0;
  --spring: cubic-bezier(.32, 1.25, .5, 1); --sheet: cubic-bezier(.32, .72, 0, 1);
}
html[data-ws=home] { --wsc: var(--ws-home); } html[data-ws=sell] { --wsc: var(--ws-sell); } html[data-ws=inbox] { --wsc: var(--ws-inbox); }
html[data-ws=clients] { --wsc: var(--ws-clients); } html[data-ws=deliver] { --wsc: var(--ws-deliver); } html[data-ws=insights] { --wsc: var(--ws-insights); }
html[data-ws=money] { --wsc: var(--ws-money); } html[data-ws=automate] { --wsc: var(--ws-automate); } html[data-ws=settings] { --wsc: var(--ws-settings); }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08110E; --surface: #0F1B17; --surface-2: #13221D; --ink: #EEF6F2; --ink-2: #C5D6CE; --muted: #9AB0A6; --line: #22362E; --line-2: #33493F;
    --ws-home: #43D69F; --ws-sell: #FF7A5C; --ws-inbox: #6E9BFF; --ws-clients: #A08BFF; --ws-deliver: #FFA640; --ws-insights: #3FCEDF; --ws-money: #E9C24A; --ws-automate: #9AB0A6; --ws-settings: #9AB0A6;
    --wst: var(--wsc); --wsl: color-mix(in srgb, var(--wsc) 14%, var(--surface)); --rail: #050C0A;
  }
}

/* Flat canvas: the dotted grid is gone. */
body.hubbg { background: var(--bg); background-image: none; }
.hub .main { max-width: none; padding-top: 22px; }

/* ---------- Rail: one tile per workspace ---------- */
@media (min-width: 901px) {
  .hub { grid-template-columns: 88px minmax(0, 1fr); }
  body.rail-collapsed .hub { grid-template-columns: 88px minmax(0, 1fr); }
  .hub .rail { background: var(--rail); padding: calc(12px + env(safe-area-inset-top)) 8px calc(12px + var(--sab)); gap: 4px; align-items: stretch; }
  .rail-head { justify-content: center; border: 0; padding: 2px 0 10px; margin: 0; }
  .rail-brand .rb-full { display: none; }
  .rail-brand .rb-mark { display: block; width: 36px; height: 36px; border-radius: 10px; }
  .rail nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .wsg-tabs { display: none; }
  .wsg.util:first-of-type, .rail nav .wsg.util { margin-top: 0; }
  .rail nav .wsg.util { order: 9; }
  .rail nav .wsg[data-wsg=automate] { margin-top: auto; }
  .rail nav a.ws-tile { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 2px 8px; border-radius: 12px; font: 600 11.5px/1.1 var(--body); letter-spacing: 0; color: var(--rail-ink); text-align: center; }
  .rail nav a.ws-tile svg { width: 22px; height: 22px; color: inherit; }
  .rail nav a.ws-tile:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .rail nav a.ws-tile.is-active { background: var(--wsc); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--wsc) 40%, transparent); }
  .rail nav a.ws-tile.is-active::before { display: none; }
  .rail nav a.ws-tile .nbadge { position: absolute; top: 4px; right: 10px; margin: 0; font-size: 10px; line-height: 16px; min-width: 16px; padding: 0 4px; background: #FF5A4E; color: #fff; }
  .rail nav a.ws-tile.is-active .nbadge { background: #fff; color: var(--ink); }
  html[data-ws=money] .rail nav a.ws-tile.is-active, html[data-ws=deliver] .rail nav a.ws-tile.is-active { color: #120D02; }
}
/* Each workspace tile carries its colour on the icon. */
.rail nav [data-wsg=home] .ws-tile:not(.is-active) svg { color: #5FE0B0; } .rail nav [data-wsg=sell] .ws-tile:not(.is-active) svg { color: #FF8A70; }
.rail nav [data-wsg=inbox] .ws-tile:not(.is-active) svg { color: #86A9FF; } .rail nav [data-wsg=clients] .ws-tile:not(.is-active) svg { color: #B4A2FF; }
.rail nav [data-wsg=deliver] .ws-tile:not(.is-active) svg { color: #FFB45C; } .rail nav [data-wsg=insights] .ws-tile:not(.is-active) svg { color: #5ED6E5; }
.rail nav [data-wsg=money] .ws-tile:not(.is-active) svg { color: #EDCB5E; }
.rail nav a.ws-tile[data-nav] svg { color: inherit; }

/* Phone and tablet drawer: workspaces with their pages listed under them. */
@media (max-width: 900px) {
  .hub .rail { background: var(--rail); width: min(88vw, 320px); }
  .rail-brand .rb-mark { display: none; }
  .rail nav a.ws-tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: #E6F0EB; font: 650 16px var(--display); }
  .rail nav a.ws-tile svg { width: 21px; height: 21px; }
  .rail nav a.ws-tile.is-active { background: color-mix(in srgb, var(--wsc) 22%, transparent); color: #fff; }
  .rail nav a.ws-tile.is-active::before { background: var(--wsc); }
  .wsg-tabs { display: grid; gap: 1px; margin: 0 0 8px 44px; }
  .wsg-tabs a { padding: 8px 10px !important; font: 600 14.5px var(--body) !important; color: var(--rail-ink) !important; border-radius: 8px; }
  .wsg-tabs a.is-active { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
  .wsg-tabs a.is-active::before { display: none; }
}

/* ---------- Command bar and the workspace signal strip ---------- */
.hub .cmd { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; box-shadow: inset 0 4px 0 var(--wsc); padding-top: calc(14px + env(safe-area-inset-top)); }
.cmd-title small, .cmd-title[data-ws] small { font: 650 12.5px var(--body); letter-spacing: 0; text-transform: none; color: var(--wst); display: flex; align-items: center; gap: 6px; }
.cmd-title small::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--wsc); }
.cmd-title b { font: 750 21px var(--display); letter-spacing: -.02em; }
.cmd-search { border-radius: 10px; background: var(--surface-2); border-color: var(--line); }
.cmd-ico, .stpill { border-color: var(--line); background: var(--surface); }
.cmd-ico:hover, .cmd-search:hover { border-color: var(--wsc); }
#sndbtn svg { width: 18px; height: 18px; }

.wsbar { flex: none; display: flex; align-items: stretch; gap: 10px; padding: 0 clamp(12px, 2.4vw, 28px); background: var(--surface); border-bottom: 1px solid var(--line);
  max-height: 60px; overflow: hidden; transition: max-height .28s var(--sheet), opacity .2s; position: relative; z-index: 40; }
.wsbar.ws-hide { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.ws-tabs { display: flex; gap: 2px; min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tabs a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 13px 14px 12px; font: 600 14.5px var(--body); color: var(--muted); text-decoration: none; white-space: nowrap; scroll-snap-align: start; transition: color .15s; }
.ws-tabs a:hover { color: var(--ink); }
.ws-tabs a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--wsc); transform: scaleX(0); transition: transform .3s var(--spring); }
.ws-tabs a.is-active { color: var(--ink); }
.ws-tabs a.is-active::after { transform: scaleX(1); }
.ws-tabs a .nbadge { margin: 0; font-size: 10.5px; line-height: 17px; min-width: 17px; padding: 0 5px; background: var(--ws-sell); color: #fff; }
.ws-tabs a .nbadge[hidden] { display: none; }
.wsbar .qbar { flex: 0 1 auto; border: 0; background: none; padding: 0; min-height: 0; gap: 6px; }
.wsbar .qbar .qb-cap { display: none; }
.wsbar .qbar .qb-chip { font-size: 12.5px; padding: 5px 10px; }
@media (max-width: 1180px) { .wsbar .qbar { display: none; } }
@media (max-width: 900px) {
  .wsbar { padding: 0 8px; }
  .ws-tabs { scroll-snap-type: x mandatory; scroll-padding: 0 8px; }
  .ws-tabs a { padding: 12px 12px 11px; font-size: 14px; }
}
.hub .qbar#qbar-top:empty { display: none; }

/* ---------- Type: no mono capitals for labels ---------- */
.eyebrow, .pmenu-cap, .pal-kind, .qb-cap, .rail-grp > p, .hello .eyebrow { font-family: var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; }
.hub .main .page-head .eyebrow { display: none; }
.hub .main .page-head h1 { font: 760 clamp(28px, 3.2vw, 42px)/1.05 var(--display); letter-spacing: -.03em; }
.hub .main h2 { font-weight: 700; letter-spacing: -.015em; }
.stat-num, .tile .stat-num, .ins-tile b, .num, .mono.big { font-family: var(--display) !important; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-num { font-weight: 750; }
.stat-label { color: var(--muted); font-weight: 550; }
.muted, .small { color: var(--muted); }

/* ---------- Surfaces: flat, sharper, contrast from borders not shadows ---------- */
.hub .main .card { border-radius: var(--r); box-shadow: var(--shadow); border-color: var(--line); }
.hub .main .stat { border-radius: 12px; box-shadow: none; }
.hub .main .stat[class*="tint-"] { background: var(--surface); border-color: var(--line); box-shadow: inset 4px 0 0 var(--wc); }
.hub .main .stat[class*="tint-"] .stat-num { color: var(--ink); }
.hub .main .stat.hero, .hub .main .tile.hero { background: var(--fill); color: var(--on-fill); }
.hub .main .card[class*="wc-"] { border-top: 0; box-shadow: inset 0 3px 0 var(--wc), var(--shadow); }
.btn { border-radius: 10px; font-weight: 650; }
.btn-sm { border-radius: 9px; }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { background: var(--wsl); border-color: var(--wsc); }
.btn-mint { background: var(--mint); color: #0F1B17; box-shadow: inset 0 -2px 0 rgba(15, 27, 23, .12); }
input, select, textarea { border-radius: 10px; background: var(--surface); border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--wsc); }
:focus-visible { outline: 2px solid var(--wsc); outline-offset: 2px; }
.badge { font-weight: 650; }
.badge.ok { background: #DDF6EA; color: #0B5C3F; } .badge.bad { background: #FBE1DD; color: #8E2414; } .badge.warn { background: #FCEFD2; color: #7A4D00; }
@media (prefers-color-scheme: dark) {
  .badge.ok { background: rgba(67, 214, 159, .16); color: #8FF0C8; } .badge.bad { background: rgba(255, 122, 92, .16); color: #FFB3A1; } .badge.warn { background: rgba(233, 194, 74, .16); color: #F4D98A; }
}

/* Page level tabs: an underline in the workspace colour, swipe on touch screens. */
.hub .main .tabs { width: auto; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; gap: 2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hub .main .tabs::-webkit-scrollbar { display: none; }
.hub .main .tabs a, .hub .main .tabs button { position: relative; border-radius: 0; padding: 10px 14px; background: none; color: var(--muted); font-weight: 650; scroll-snap-align: start; }
.hub .main .tabs a:hover { background: none; color: var(--ink); }
.hub .main .tabs a.is-active, .hub .main .tabs button.is-on { background: none; color: var(--ink); }
.hub .main .tabs a::after, .hub .main .tabs button::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--wsc); transform: scaleX(0); transition: transform .3s var(--spring); }
.hub .main .tabs a.is-active::after, .hub .main .tabs button.is-on::after { transform: scaleX(1); }

/* Pipeline board stage tops keep their colours; chips get firmer. */
.chip { border-color: var(--line-2); }
.chip.on, .tz.is-on { background: var(--sel) !important; color: var(--on-sel) !important; border-color: var(--sel) !important; }
.chip.on b, .tz.is-on b { color: var(--on-sel) !important; opacity: .8; }

/* Bottom bar on phones */
@media (max-width: 900px) {
  .bbar { background: var(--rail); border-top: 0; padding-bottom: calc(4px + max(0px, calc(var(--sab) - 20px))); } /* V: stretch to the bottom; labels sit about 18pt up, clear of the home indicator line */
  .bb-item { color: #A9BDB4; }
  .bb-item.is-active { color: #fff; background: color-mix(in srgb, var(--wsc) 30%, transparent); }
  .bb-item.is-active svg { color: var(--wsc); filter: brightness(1.35); }
  .bb-item .nbadge { background: #FF5A4E; color: #fff; }
}

/* ---------- Chip rows that fold into a dropdown (public/hub/compact.js) ---------- */
.cmp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
  font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
.cmp-btn .cmp-l { color: var(--muted); font-weight: 550; }
.cmp-btn .cmp-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.cmp-btn::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 2px; opacity: .6; }
.cmp-btn[aria-expanded=true] { border-color: var(--wsc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsc) 18%, transparent); }
.cmp-on { display: none !important; }
.cmp-on.cmp-open { display: flex !important; flex-direction: column; align-items: stretch !important; flex-wrap: nowrap !important; gap: 2px !important; position: fixed; z-index: 160; max-height: min(60vh, 420px); overflow-y: auto;
  width: max-content; min-width: 220px; max-width: min(92vw, 360px); padding: 6px !important; margin: 0 !important; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(6, 14, 11, .22); animation: cmpIn .22s var(--sheet) both; }
.cmp-on.cmp-open > * { width: 100%; justify-content: space-between; text-align: left; border-radius: 8px !important; margin: 0 !important; }
.cmp-on.cmp-open > span.small, .cmp-on.cmp-open > .small { padding: 6px 8px 4px; }
/* Menu rows are plain list rows, not a stack of bordered buttons (Nov 2026, V: the call lists dropdown looked messy). */
.cmp-on.cmp-open > button, .cmp-on.cmp-open > a, .cmp-on.cmp-open > label { border-color: transparent !important; background: transparent !important; box-shadow: none !important; min-height: 38px; padding: 0 10px !important; justify-content: flex-start !important; font-weight: 550; }
.cmp-on.cmp-open > button:hover, .cmp-on.cmp-open > a:hover { background: var(--surface-2) !important; }
.cmp-on.cmp-open > .on, .cmp-on.cmp-open > .is-on, .cmp-on.cmp-open > [aria-pressed=true] { background: color-mix(in srgb, var(--wsc) 14%, transparent) !important; color: var(--wst) !important; }
@keyframes cmpIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* ---------- Metric explainers (public/hub/explain.js) ---------- */
.xi { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font: 700 11px/1 var(--display); cursor: pointer; vertical-align: 2px; padding: 0; flex: none; transition: background .15s, color .15s, border-color .15s; }
.xi:hover, .xi[aria-expanded=true] { background: var(--wsc); color: #fff; border-color: var(--wsc); }
.xpop { position: fixed; z-index: 170; width: min(380px, calc(100vw - 20px)); max-height: min(70vh, 560px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(6, 14, 11, .28); padding: 16px 16px 12px; animation: cmpIn .24s var(--sheet) both; }
.xpop h4 { margin: 0 0 4px; font: 750 17px var(--display); letter-spacing: -.01em; padding-right: 26px; }
.xpop .xp-what { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.xpop dl { margin: 0; display: grid; gap: 8px; }
.xpop dt { font: 650 12px var(--body); color: var(--wst); }
.xpop dd { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.xpop dd.xp-f { font: 500 12.5px/1.4 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.xpop .xp-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.xpop .xp-miss { border-left: 3px solid var(--ws-sell); padding-left: 8px; }
@media (max-width: 600px) { .xpop { left: 8px !important; right: 8px; bottom: calc(8px + var(--sab)); top: auto !important; width: auto; max-height: 72vh; border-radius: 18px; } }

/* ---------- Charts added in the overhaul ---------- */
.heat { display: grid; grid-template-columns: 38px repeat(var(--cols, 12), minmax(0, 1fr)); gap: 3px; font-size: 11.5px; }
.heat > span { color: var(--muted); display: grid; place-items: center; font-weight: 600; }
.heat > i { display: block; aspect-ratio: 1.3; border-radius: 4px; background: color-mix(in srgb, var(--ws-insights) calc(var(--v, 0) * 100%), var(--surface-2)); border: 1px solid var(--line); min-height: 16px; }
.heat > i.none { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, transparent 3px, transparent 6px); }
.heat-key { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.heat-key b { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--ws-insights)); }
.funnel { display: grid; gap: 6px; }
.funnel .fr { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) 90px; align-items: center; gap: 10px; font-size: 13.5px; }
.funnel .fr > b { font: 700 15px var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.funnel .fb { height: 26px; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.funnel .fb i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--wsc), color-mix(in srgb, var(--wsc) 70%, #fff)); transform-origin: left; animation: growX .8s var(--sheet) both; }
.funnel .fb em { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 650 12px var(--body); font-style: normal; color: var(--ink); mix-blend-mode: normal; }
@keyframes growX { from { transform: scaleX(0); } }
.curve svg { width: 100%; height: 180px; display: block; }
.db-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin: 0 0 14px; }
.db-charts .card { padding: 16px; }
.cov { display: grid; gap: 7px; }
.cov .cr { display: grid; grid-template-columns: minmax(0, 1fr) 120px 44px; gap: 10px; align-items: center; font-size: 13px; }
.cov .cb { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.cov .cb i { display: block; height: 100%; background: var(--wsc); border-radius: 4px; animation: growX .7s var(--sheet) both; transform-origin: left; }
.cov .cr b { text-align: right; font: 700 13px var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Motion: one entrance per page, springy feedback on touch ---------- */
@media (prefers-reduced-motion: no-preference) {
  body:not(.settled) .hub .main > * { animation: v5in .5s var(--sheet) both; }
  body:not(.settled) .hub .main > *:nth-child(2) { animation-delay: .04s; } body:not(.settled) .hub .main > *:nth-child(3) { animation-delay: .08s; }
  body:not(.settled) .hub .main > *:nth-child(4) { animation-delay: .12s; } body:not(.settled) .hub .main > *:nth-child(n+5) { animation-delay: .16s; }
  .ws-tile, .ws-tabs a, .btn, .chip, .tz, .cmp-btn { transition: transform .18s var(--spring), background .15s, color .15s, border-color .15s; }
  .ws-tile:active, .btn:active, .chip:active, .tz:active, .cmp-btn:active { transform: scale(.95); }
  .main.swipe-l { animation: swl .42s var(--sheet) both; } .main.swipe-r { animation: swr .42s var(--sheet) both; }
}
@keyframes v5in { from { opacity: 0; transform: translateY(10px); } }
@keyframes swl { from { opacity: .3; transform: translateX(32%); } }
@keyframes swr { from { opacity: .3; transform: translateX(-32%); } }
@media (prefers-reduced-motion: reduce) { .wsbar { transition: none; } .cmp-on.cmp-open, .xpop { animation: none; } }

/* Desktop: the command bar names the workspace; the page title lives in the page and the active tab. Phones keep both. */
@media (min-width: 901px) {
  .cmd-title b { display: none; }
  .cmd-title small, .cmd-title[data-ws] small { font: 760 22px var(--display); letter-spacing: -.02em; color: var(--ink); gap: 10px; }
  .cmd-title small::before { width: 12px; height: 12px; border-radius: 4px; }
}

/* Resume strip: a slim ink bar instead of a big mint box. */
.hub .resume-strip { background: var(--fill); color: var(--on-fill); border: 0; border-radius: 12px; padding: 10px 12px 10px 16px; margin-bottom: 14px; box-shadow: none; }
.hub .resume-strip .rs-text b { color: #fff; font: 700 15px var(--display); }
.hub .resume-strip .rs-text span { color: #A9BDB4; }
.hub .resume-strip .btn-primary, .hub .resume-strip .btn-mint { background: var(--mint); color: #0F1B17; }
.hub .resume-strip a, .hub .resume-strip .linkbtn { color: #A9BDB4; }
.rs-facts i { text-transform: none; letter-spacing: 0; font-size: 12px; }
@media (prefers-color-scheme: dark) { .hub .resume-strip { background: var(--surface-2); border: 1px solid var(--line); } }

/* Phones: the command bar keeps search, alerts and you; the rest lives in the profile menu. */
@media (max-width: 600px) {
  .hub .cmd #presbtn, .hub .cmd #sndbtn, .hub .cmd .stpill { display: none; }
  .cmd-title b { font-size: 18px; }
}
.cov .cb i { background: var(--mint-strong); }

/* Tab rows are one line that snaps tab by tab (swipe the row, or swipe the page to change tab), with a fade where more tabs wait. */
.hub .main .tabs, .hub .main .tabs.pipe-tabs { flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.hub .main .tabs > * { flex: none !important; }
.ws-tabs, .hub .main .tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.ws-tabs.at-end, .hub .main .tabs.at-end { -webkit-mask-image: none; mask-image: none; }
.ws-tabs, .hub .main .tabs { position: relative; }
/* Sideways swipes on a page change tabs (public/hub/wsnav.js): the page itself only pans up and down. Inner rows that scroll sideways keep their own panning. */
.hub .main { touch-action: pan-y; }

/* ---------- Inbox: all conversations (public/hub/convo.js), GoHighLevel Conversations layout ---------- */
.cv { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden;
  height: calc(100dvh - 190px); min-height: 460px; }
.cv-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface); }
.cv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 14px 6px; }
.cv-head h1 { font: 760 22px var(--display) !important; margin: 0; }
.cv-views { padding: 0 12px; gap: 6px; flex-wrap: wrap; }
.cv-views .chip b { font-weight: 700; opacity: .7; }
.cv-list > input { margin: 8px 12px; width: auto; min-height: 40px; }
.cv-rows { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.cv-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; cursor: pointer; position: relative; }
.cv-row:hover { background: var(--surface-2); }
.cv-row.is-open { background: var(--wsl); box-shadow: inset 3px 0 0 var(--wsc); }
.cv-row.unread .cv-top b, .cv-row.unread .cv-prev { font-weight: 750; color: var(--ink); }
.cv-av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--fill); color: var(--mint); font: 700 14px var(--display); }
.cv-av.big { width: 44px; height: 44px; }
.cv-mid { display: grid; gap: 2px; min-width: 0; }
.cv-top { display: flex; justify-content: space-between; gap: 8px; } .cv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-top time { font-size: 12px; color: var(--muted); flex: none; }
.cv-biz { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-prev { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-wait { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ws-inbox); margin-right: 6px; vertical-align: 1px; }
.cv-ch { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.cv-ch i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.cv-ch i svg { width: 12px; height: 12px; }
.cv-ch i.ch-text { color: var(--ws-inbox); } .cv-ch i.ch-call { color: var(--ws-sell); } .cv-ch i.ch-email { color: var(--ws-clients); } .cv-ch i.ch-form { color: var(--ws-home); }
.cv-n { margin-left: auto; font-style: normal; background: var(--ws-sell); color: #fff; border-radius: 99px; padding: 0 7px; font: 700 11px/18px var(--body); }
.cv-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.cvt-empty { margin: auto; text-align: center; max-width: 340px; padding: 24px; display: grid; gap: 8px; justify-items: center; }
.cvt-empty-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--wsl); color: var(--wsc); display: grid; place-items: center; } .cvt-empty-ic svg { width: 26px; height: 26px; }
.cvt-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cvt-who { display: grid; min-width: 0; flex: 1; } .cvt-who b { font: 700 16px var(--display); }
.cvt-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cvt-back { display: none !important; }
.cvt-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.cvi-day { text-align: center; margin: 10px 0 4px; } .cvi-day span { font-size: 12px; font-weight: 650; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; }
.cvi { max-width: min(78%, 560px); display: grid; gap: 3px; animation: cvIn .3s var(--sheet) both; }
.cvi p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cvi.msg { padding: 9px 12px; border-radius: 16px; }
.cvi.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cvi.out { align-self: flex-end; background: var(--fill); color: var(--on-fill); border-bottom-right-radius: 6px; }
.cvi.out .cvi-meta { color: #9DB2A9; } .cvi.out.email { background: color-mix(in srgb, var(--ws-clients) 14%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ws-clients) 30%, var(--line)); }
.cvi.out.email .cvi-meta { color: var(--muted); }
.cvi.event { align-self: center; max-width: 92%; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 99px; padding: 5px 12px; }
.cvi.event svg { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; } .cvi.event.missed { color: var(--ws-sell); border-color: color-mix(in srgb, var(--ws-sell) 40%, transparent); }
.cvi.note { align-self: stretch; max-width: none; background: #FFF7DD; border: 1px solid #F1D98A; border-radius: 12px; padding: 8px 12px; color: #4A3A00; }
.cvi-meta { font-size: 11.5px; color: var(--muted); } .cvi-who { font-weight: 650; margin-right: 6px; }
.cvt-box { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px calc(12px + var(--sab)); display: grid; gap: 8px; }
.cvt-box textarea { min-height: 70px; } .cvt-box[data-mode=note] textarea { background: #FFFBEB; }
.cvt-mode { justify-self: start; } .cvt-why { color: var(--muted); } .cvt-why:empty { display: none; }
.cvt-send { gap: 8px; }
@keyframes cvIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@media (prefers-color-scheme: dark) { .cvi.note { background: rgba(233, 194, 74, .12); border-color: rgba(233, 194, 74, .35); color: #F4E2A8; } .cvt-box[data-mode=note] textarea { background: rgba(233, 194, 74, .08); } .cvi.out { background: #1E3A31; } }
@media (max-width: 900px) {
  .cv { grid-template-columns: 1fr; height: calc(100dvh - 170px - var(--sab)); border-radius: 0; border-left: 0; border-right: 0; margin: -18px calc(-14px - env(safe-area-inset-right)) 0 calc(-14px - env(safe-area-inset-left)); }
  .cv .cv-thread { display: none; } .cv.has-open .cv-list { display: none; } .cv.has-open .cv-thread { display: flex; animation: swl .32s var(--sheet) both; }
  .cvt-back { display: inline-grid !important; } .cvt-acts .btn span, .cvt-acts .btn { font-size: 13px; }
  .cvi { max-width: 86%; }
}

/* ---------- Workflow builder (public/hub/workflows.js), GoHighLevel style canvas ---------- */
.wf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-bottom: 22px; }
.wf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; box-shadow: inset 4px 0 0 var(--line-2); }
.wf-card.on { box-shadow: inset 4px 0 0 var(--mint-strong); }
.wf-card-top { display: flex; align-items: center; gap: 10px; } .wf-name { font: 700 17px var(--display); color: var(--ink); text-decoration: none; } .wf-name:hover { color: var(--wst); }
.wf-trig { margin: 0; } .wf-when { font-weight: 750; color: var(--wst); margin-right: 4px; }
.wf-mini { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 2px; } .wf-mini li { overflow-wrap: anywhere; }
.wf-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .wf-stats b { color: var(--ink); font-family: var(--display); }
.wf-sec { margin: 8px 0 8px; }
.wf-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.wf-recipe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.wf-recipe > b { font: 700 16px var(--display); } .wf-recipe p { margin: 0; } .wf-recipe .btn { justify-self: start; margin-top: 4px; }
.wfb { display: grid; gap: 14px; }
.wfb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wfb-name { font: 760 22px var(--display); border: 1px solid transparent; background: transparent; min-height: 44px; width: min(420px, 100%); padding: 4px 10px; }
.wfb-name:hover, .wfb-name:focus { border-color: var(--line-2); background: var(--surface); }
.wfb-on { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.wfb-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.wfb-pal, .wfb-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; align-self: start; }
.wfb-cap { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.wfb-grp { display: grid; gap: 4px; margin-bottom: 10px; } .wfb-grp > span { font: 650 12px var(--body); color: var(--wst); margin: 4px 2px; }
.wfb-act { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: 600 13.5px var(--body); cursor: grab; }
.wfb-act:hover { border-color: var(--wsc); background: var(--wsl); } .wfb-act svg { width: 16px; height: 16px; flex: none; color: var(--wst); }
.wfb-act:active { cursor: grabbing; }
.wfb-canvas { display: flex; flex-direction: column; align-items: center; padding: 18px 10px 24px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface-2) radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 0) 0 0 / 18px 18px; min-height: 420px; }
.wfb-node { position: relative; width: min(440px, 100%); background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer;
  box-shadow: 0 2px 0 rgba(15, 27, 23, .05); transition: transform .2s var(--spring), border-color .15s, box-shadow .15s; }
.wfb-node:hover { border-color: var(--wsc); }
.wfb-node.is-sel { border-color: var(--wsc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wsc) 18%, transparent); }
.wfb-node.trig { flex-direction: column; align-items: flex-start; gap: 2px; background: var(--fill); color: var(--on-fill); border-color: var(--fill); }
.wfb-node.trig .wfb-kind { color: var(--mint); } .wfb-node.trig .muted { color: #9DB2A9 !important; }
.wfb-node.dragging { opacity: .35; transform: scale(.97); }
.wfb-node.fresh { animation: wfPop .45s var(--spring) both; }
.wfb-kind { font: 650 12px var(--body); color: var(--wst); }
.wfb-txt { display: grid; min-width: 0; flex: 1; } .wfb-txt b { font-weight: 650; overflow-wrap: anywhere; }
.wfb-num { width: 24px; height: 24px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font: 700 12px var(--display); flex: none; }
.wfb-ic { color: var(--wst); flex: none; } .wfb-ic svg { width: 18px; height: 18px; }
.wfb-node.k-wait .wfb-ic { color: var(--ws-deliver); } .wfb-node.k-condition .wfb-ic { color: var(--ws-clients); } .wfb-node.k-send_text .wfb-ic { color: var(--ws-inbox); } .wfb-node.k-send_email .wfb-ic { color: var(--ws-clients); }
.wfb-tools { display: flex; gap: 2px; opacity: .55; } .wfb-node:hover .wfb-tools, .wfb-node.is-sel .wfb-tools { opacity: 1; }
.wfb-tools button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); cursor: pointer; font-size: 15px; } .wfb-tools button:hover:not(:disabled) { background: var(--surface-2); } .wfb-tools button:disabled { opacity: .25; }
.wfb-gap { position: relative; width: min(440px, 100%); height: 34px; display: grid; place-items: center; transition: height .2s var(--sheet); }
.wfb-gap::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line-2); transform: translateX(-1px); }
.wfb-plus { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .2s var(--spring), background .15s; }
.wfb-plus svg { width: 14px; height: 14px; } .wfb-plus:hover { background: var(--wsc); color: #fff; border-color: var(--wsc); transform: scale(1.12); }
.wfb-canvas.dragging .wfb-gap { height: 52px; } .wfb-canvas.dragging .wfb-plus { border-style: dashed; }
.wfb-gap.over { height: 70px; } .wfb-gap.over .wfb-plus { transform: scale(1.4); background: var(--wsc); color: #fff; border-color: var(--wsc); }
.wfb-gap.over::after { content: 'Drop here'; position: absolute; top: 50%; left: calc(50% + 26px); transform: translateY(-50%); font: 650 12px var(--body); color: var(--wst); }
.wfb-end { margin-top: 4px; font: 650 12.5px var(--body); color: var(--muted); padding: 6px 14px; border: 1px dashed var(--line-2); border-radius: 99px; background: var(--surface); }
.wfb-form { display: grid; gap: 10px; } .wfb-form h3 { margin: 0; }
.wfb-vars { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .wfb-vars .chip { cursor: pointer; font-size: 12px; }
.wfb-checks { display: grid; gap: 4px; } .wfb-checks label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.wfb-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.wfb-pick .wfb-act { cursor: pointer; align-items: flex-start; } .wfb-pick .wfb-act span { display: grid; gap: 2px; } .wfb-pick small { color: var(--muted); font-weight: 500; }
.wfr summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 4px; cursor: pointer; } .wfr summary .btn { margin-left: auto; }
.wfr-log { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 4px; font-size: 13.5px; } .wfr-log time { color: var(--muted); font-size: 12px; margin-right: 8px; }
@keyframes wfPop { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
@media (max-width: 1180px) { .wfb-grid { grid-template-columns: minmax(0, 1fr) 320px; } .wfb-pal { grid-column: 1 / -1; position: static; max-height: none; display: flex; gap: 8px; overflow-x: auto; } .wfb-grp { display: flex; gap: 6px; margin: 0; } .wfb-grp > span { display: none; } .wfb-act { white-space: nowrap; } }
@media (max-width: 760px) { .wfb-grid { grid-template-columns: 1fr; } .wfb-side { position: static; max-height: none; } .wfb-name { font-size: 18px; } }

/* Swipe hint: the name of the tab the page is heading to, at the edge it comes from (public/hub/wsnav.js). */
.swhint { position: fixed; top: 50%; z-index: 120; transform: translateY(-50%); padding: 8px 14px; border-radius: 99px; background: var(--fill); color: var(--on-fill); font: 650 14px var(--body);
  box-shadow: 0 10px 30px rgba(6, 14, 11, .3); pointer-events: none; opacity: 0; }
.swhint[data-side=right] { right: 12px; } .swhint[data-side=left] { left: 12px; }
.swhint.none { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.hub .main { will-change: auto; }

/* iPhone: fields at 16px so Safari never zooms the page in when one is tapped (that zoom is what leaves the Hub wider than the screen). */
@media (max-width: 900px) { .hub input:not([type=checkbox]):not([type=radio]), .hub select, .hub textarea, .portal input:not([type=checkbox]):not([type=radio]), .portal select, .portal textarea { font-size: 16px; } }
.cv-list > .cmp-btn { margin: 4px 12px; max-width: calc(100% - 24px); }
@media (max-width: 900px) { .cv { margin: 0; border-radius: var(--r); border: 1px solid var(--line); height: calc(100dvh - 200px - var(--sab)); } }
.cv { grid-template-rows: minmax(0, 1fr); align-items: stretch; } .cv > .cv-list, .cv > .cv-thread { height: 100%; align-self: stretch; }

/* ===== Home Screen frame, v2 (Nov 2026, iOS 26 WebKit bug 301108; the stretch and transform hack of v1 is gone: WebKit does not draw fixed content past the short edge) =====
   Fix 1: when the page is at least as tall as the screen, iOS gives it the full viewport and the fixed Hub frame reaches the bottom by itself. Standalone only.
   min() keeps 100lvh from adding a scroll when the status bar is opaque (inset 0). Fix 2 (safety net): index.html sets html.rw-short when the layout still ends
   short; the strip under the bar then takes the bar colour so it reads as part of it. */
@media (display-mode: standalone) {
  html:has(.hub) { min-height: min(100lvh, calc(100% + env(safe-area-inset-top, 0px))); }
}
html.rw-short:has(.hub) { background: var(--rail); }

/* Do not call list legend (Nov 2026): one row per reason, the count on the right, tap to filter the table. */
.sp-leg { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-width: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 13.5px var(--body); text-align: left; cursor: pointer; }
.sp-leg span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sp-leg i { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.sp-leg.on { background: var(--sel); color: var(--on-sel); border-color: var(--sel); }

/* Screen check (Nov 2026): the two lines and the number table. */
.sc-marks { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; }
.sc-line { position: absolute; left: 0; right: 0; height: 3px; }
.sc-line b { position: absolute; right: 8px; top: -18px; padding: 1px 7px; border-radius: 6px; font: 700 11px var(--body); color: #fff; }
.sc-line[style*="bottom:0"] b { top: auto; bottom: 4px; }
.sc-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.sc-t { width: 100%; border-collapse: collapse; font: 500 12.5px var(--mono); }
.sc-t th { text-align: left; padding: 5px 10px; color: var(--muted); font-weight: 500; white-space: nowrap; vertical-align: top; }
.sc-t td { padding: 5px 10px; color: var(--ink); overflow-wrap: anywhere; }
.sc-t tr + tr { border-top: 1px solid var(--line); }

/* Script picker and Script tests (Nov 2026) */
.sp-list { display: grid; gap: 8px; margin-top: 10px; }
.sp-card { text-align: left; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.sp-card b { font-size: 15px; }
.sp-card span { color: var(--muted); font-size: 13px; }
.sp-card:hover, .sp-card:focus-visible { border-color: var(--wsc, var(--mint-strong)); }
.sp-card.on { border-color: var(--mint-strong); box-shadow: inset 0 0 0 1px var(--mint-strong); }
.sp-test { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.st-verdict { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--line); }
.st-verdict.tone-ok { border-left-color: var(--mint-strong); }
.st-verdict.tone-warn { border-left-color: #E0A030; }
.st-bars { display: grid; gap: 12px; }
.st-bar { display: grid; grid-template-columns: minmax(120px, 180px) 1fr minmax(160px, 260px); gap: 12px; align-items: center; }
.st-track { position: relative; height: 14px; background: var(--surface-2); border-radius: 7px; }
.st-range { position: absolute; top: 3px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--mint-strong) 35%, transparent); }
.st-dot { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--mint-strong); }
@media (max-width: 700px) { .st-bar { grid-template-columns: 1fr; gap: 4px; } }

/* Mirror and label (Nov 2026, public/hub/mlview.js) */
.ml-lead { margin: 8px 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 1.55; }
.ml-tag { display: inline-block; min-width: 44px; font: 700 11px var(--body); color: var(--wst, var(--accent)); }
.ml-group { margin: 14px 0 4px; font-weight: 700; font-size: 13px; color: var(--muted); }
.ml-say { font-size: 15px; margin: 6px 0 8px; }
.ml-step { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 4px 0; font-size: 14px; border-top: 1px dashed var(--line); }
.ml-step b { color: var(--muted); font-weight: 600; }
.ml-rules ol { margin: 6px 0 0 18px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
@media (max-width: 600px) { .ml-step { grid-template-columns: 1fr; gap: 2px; } }
