/* Sales: the rep's portal (public/rep-portal.js), the studio's Sales page (public/sales-admin.js), and their shared
   pieces (public/sales-ui.js). Uses the workspace's tokens, so light and dark mode come along. */

/* Chart colors: validated for both modes (one hue for a single series; a warm second for stacked "owed"). */
:root{--chart-1:#2f77b0;--chart-2:#b8691c;--chart-track:#dbe7f1;--hot:#c2541b;--hot-soft:#fcebe1}
:root[data-theme="dark"]{--chart-1:#4e95ca;--chart-2:#b8802f;--chart-track:#1e3244;--hot:#f0935f;--hot-soft:#2e1d13}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--chart-1:#4e95ca;--chart-2:#b8802f;--chart-track:#1e3244;--hot:#f0935f;--hot-soft:#2e1d13}}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- Shared pieces ---------- */
.sales-avatar{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border-radius:11px;font-size:12.5px;font-weight:760;letter-spacing:-.02em;color:#fff;background:#4f6b7e}
.sales-avatar[data-tone="0"]{background:linear-gradient(145deg,#4f6b7e,#334958)}
.sales-avatar[data-tone="1"]{background:linear-gradient(145deg,#5b7f6b,#3d5a4a)}
.sales-avatar[data-tone="2"]{background:linear-gradient(145deg,#7a6a52,#57492f)}
.sales-avatar[data-tone="3"]{background:linear-gradient(145deg,#6a5f86,#483f62)}
.sales-avatar[data-tone="4"]{background:linear-gradient(145deg,#2f6f93,#1f4f6b)}
.sales-avatar.is-large{width:46px;height:46px;border-radius:14px;font-size:16px}

.sales-pill{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap;border:1px solid var(--line);background:var(--sunken);color:var(--text)}
.sales-pill .icon{width:13px;height:13px}
.sales-pill[data-tone="info"]{background:var(--info-soft);border-color:var(--info-line);color:var(--info)}
.sales-pill[data-tone="success"]{background:var(--success-soft);border-color:var(--success-line);color:var(--success)}
.sales-pill[data-tone="attention"]{background:var(--attention-soft);border-color:var(--attention-line);color:var(--attention)}
.sales-pill[data-tone="danger"]{background:var(--danger-soft);border-color:var(--danger-line);color:var(--danger)}
.sales-pill[data-tone="muted"]{color:var(--muted)}
.sales-pill[data-tone="hot"]{background:var(--hot-soft);border-color:transparent;color:var(--hot)}

.sales-copy{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:12px;font-weight:650;transition:background .2s,border-color .2s,color .2s}
.sales-copy .icon{width:13px;height:13px}
.sales-copy:hover{border-color:var(--line-strong);background:var(--sunken)}
.sales-copy.is-done{color:var(--success);border-color:var(--success-line);background:var(--success-soft)}

.sales-empty{display:grid;justify-items:center;text-align:center;gap:8px;padding:34px 18px}
.sales-empty-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:var(--sunken);color:var(--muted);margin-bottom:4px}
.sales-empty-mark .icon{width:22px;height:22px}
.sales-empty strong{font-size:15px;letter-spacing:-.02em}
.sales-empty p{max-width:42ch;font-size:13.5px;color:var(--muted);line-height:1.6}
.sales-empty>button{margin-top:6px}

.sales-skeleton{display:grid;gap:14px;padding:8px 0}
.sales-skeleton span{display:block;height:96px;border-radius:var(--radius-lg);background:linear-gradient(90deg,var(--sunken) 0%,var(--hover) 50%,var(--sunken) 100%);background-size:200% 100%;animation:sales-shimmer 1.4s linear infinite}
.sales-skeleton span:first-child{height:54px;width:46%}
@keyframes sales-shimmer{to{background-position:-200% 0}}

.sales-segmented{display:inline-flex;padding:3px;gap:2px;border-radius:11px;background:var(--sunken);border:1px solid var(--line)}
.sales-segment{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:0;border-radius:8px;background:none;color:var(--muted);font-size:12.5px;font-weight:700;transition:background .2s,color .2s,box-shadow .2s}
.sales-segment .icon{width:15px;height:15px}
.sales-segment[aria-checked="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(20,32,46,.08),0 0 0 1px var(--line)}

/* Stat tiles */
.sales-stat{position:relative;display:grid;align-content:start;gap:6px;min-width:0;padding:18px 18px 16px;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);text-align:left;color:var(--ink);overflow:hidden;transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
button.sales-stat{font:inherit;cursor:pointer}
button.sales-stat:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift);border-color:var(--line-strong)}
.sales-stat-label{font-size:12.5px;font-weight:650;color:var(--muted)}
.sales-stat-value{font-size:30px;font-weight:760;letter-spacing:-.045em;line-height:1.05}
.sales-stat-foot{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:12px}
.sales-stat-note{color:var(--muted)}
.sales-delta{font-weight:700;color:var(--muted)}
.sales-delta[data-tone="good"]{color:var(--success)}
.sales-delta[data-tone="bad"]{color:var(--danger)}
.sales-spark{position:absolute;right:14px;top:16px;width:84px;height:26px;overflow:visible}
.sales-spark polyline{fill:none;stroke:var(--line-strong);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sales-spark circle{fill:var(--chart-1);stroke:var(--surface);stroke-width:2}

/* Meter */
.sales-meter{position:relative;height:8px;border-radius:999px;background:var(--chart-track);overflow:hidden}
.sales-meter span{position:absolute;inset:0 auto 0 0;width:0;border-radius:inherit;background:var(--chart-1);transition:width .9s var(--ease)}
.sales-meter.is-met span{background:var(--success)}

/* Stage bars */
.sales-bars{display:grid;gap:12px}
.sales-bar-row{display:grid;gap:6px;width:100%;padding:0;border:0;background:none;text-align:left;color:inherit;font:inherit}
button.sales-bar-row{cursor:pointer;border-radius:8px}
button.sales-bar-row:hover .sales-bar{filter:brightness(1.12)}
button.sales-bar-row:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.sales-bar-head{display:flex;justify-content:space-between;gap:10px;font-size:13px;font-weight:650}
.sales-bar-sub{font-size:12px;font-weight:500;color:var(--faint)}
.sales-bar-track{display:flex;align-items:center;gap:8px;height:14px}
.sales-bar{display:block;height:12px;width:0;border-radius:0 4px 4px 0;background:var(--chart-1);transition:width .8s var(--ease),filter .2s}
.sales-bar-value{font-size:12.5px;font-weight:720;color:var(--text);font-variant-numeric:tabular-nums}

/* Column chart */
.sales-chart{position:relative;margin:0;display:grid;gap:10px}
.sales-chart-plot{position:relative;width:100%}
.sales-chart svg{display:block;overflow:visible}
.sales-grid{stroke:var(--line);stroke-width:1}
.sales-axis{fill:var(--faint);font-size:11px;font-variant-numeric:tabular-nums}
.sales-cap{fill:var(--text);font-size:11.5px;font-weight:720}
.sales-goal{stroke:var(--muted);stroke-width:1;opacity:.55}
.sales-goal-label{fill:var(--muted);font-size:11px;font-weight:650}
.sales-col{fill:var(--chart-1);transition:filter .2s}
.sales-col[data-series="1"]{fill:var(--chart-2)}
@keyframes sales-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.sales-hit{position:absolute;padding:0;border:0;background:none;border-radius:6px;cursor:default}
.sales-hit:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.sales-hit.is-on{background:color-mix(in srgb,var(--ink) 4%,transparent)}
.sales-tip{position:absolute;z-index:3;display:grid;gap:3px;min-width:120px;padding:9px 11px;border-radius:10px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lift);pointer-events:none;font-size:12px;animation:sales-fade .15s var(--ease)}
.sales-tip-label{font-size:11px;font-weight:650;color:var(--muted)}
.sales-tip-row{display:flex;align-items:center;gap:7px;color:var(--muted)}
.sales-tip-row strong{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}
.sales-tip-row i,.sales-key i{display:inline-block;width:12px;height:3px;border-radius:2px;background:var(--chart-1)}
.sales-tip-row i[data-series="1"],.sales-key[data-series="1"] i{background:var(--chart-2)}
.sales-legend{display:flex;gap:16px;font-size:12px;color:var(--muted)}
.sales-key{display:inline-flex;align-items:center;gap:7px}
.sales-key i{width:10px;height:10px;border-radius:3px}
@keyframes sales-fade{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

/* History */
.sales-timeline{list-style:none;margin:0;padding:0;display:grid}
.sales-event{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding-bottom:16px}
.sales-event:not(:last-child)::before{content:"";position:absolute;left:13.5px;top:30px;bottom:2px;width:1px;background:var(--line)}
.sales-event-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--sunken);color:var(--muted);border:1px solid var(--line)}
.sales-event-mark .icon{width:14px;height:14px}
.sales-event[data-kind="client"] .sales-event-mark,.sales-event[data-kind="earned"] .sales-event-mark,.sales-event[data-kind="paid"] .sales-event-mark{background:var(--success-soft);color:var(--success);border-color:var(--success-line)}
.sales-event[data-kind="demo_ready"] .sales-event-mark,.sales-event[data-kind="demo_requested"] .sales-event-mark{background:var(--attention-soft);color:var(--attention);border-color:var(--attention-line)}
.sales-event-body{display:grid;gap:2px;min-width:0;padding-top:4px}
.sales-event-who{justify-self:start;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-size:13px;font-weight:720;text-align:left}
button.sales-event-who:hover{text-decoration:underline;text-underline-offset:3px}
.sales-event-text{font-size:13px;color:var(--text);overflow-wrap:anywhere}
.sales-event-note{margin:2px 0 0;padding:9px 12px;border-radius:10px;background:var(--sunken);font-size:13px;line-height:1.55;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.sales-event-time{font-size:11.5px;color:var(--faint)}

/* Side sheet (a bottom sheet on phones) */
dialog.dialog.sheet{margin:0 0 0 auto;width:min(560px,100vw);height:100dvh;max-height:100dvh;border-radius:22px 0 0 22px;display:none;flex-direction:column}
dialog.dialog.sheet[open]{display:flex;animation:sales-sheet-in .38s var(--ease)}
dialog.dialog.sheet .dialog-head{flex:none;padding:22px 24px 14px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:2}
dialog.dialog.sheet .dialog-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 32px;align-content:start}
@keyframes sales-sheet-in{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
dialog.dialog.sheet.is-closing{animation:sales-sheet-out .3s cubic-bezier(.5,0,.75,0) forwards}
@keyframes sales-sheet-out{to{transform:translateX(105%)}}
@media(max-width:640px){
  dialog.dialog.sheet{margin:auto 0 0;width:100vw;max-width:100vw;height:auto;max-height:92dvh;border-radius:22px 22px 0 0}
  dialog.dialog.sheet[open]{animation:sales-sheet-up .38s var(--ease)}
  dialog.dialog.sheet .dialog-head{padding:18px 18px 12px}
  dialog.dialog.sheet .dialog-head::before{content:"";position:absolute;top:7px;left:50%;width:38px;height:4px;margin-left:-19px;border-radius:999px;background:var(--line-strong)}
  dialog.dialog.sheet .dialog-body{padding:16px 18px calc(28px + env(safe-area-inset-bottom))}
}
@keyframes sales-sheet-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media(max-width:640px){dialog.dialog.sheet.is-closing{animation:sales-sheet-down .3s cubic-bezier(.5,0,.75,0) forwards}}
@keyframes sales-sheet-down{to{transform:translateY(105%)}}
.sales-confirm-actions{justify-content:flex-end}
@media(prefers-reduced-motion:reduce){dialog.dialog.sheet[open]{animation:none}.sales-meter span,.sales-bar{transition:none}}

/* ---------- The rep's portal ---------- */
body[data-rep="true"] .workspace-shell{display:none}
body[data-rep="true"]{background:var(--paper)}
.rep-app{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.rep-top{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:10px max(20px,calc((100vw - 1180px)/2));background:color-mix(in srgb,var(--paper) 82%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.rep-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;justify-self:start}
.rep-brand img{border-radius:10px}
.rep-brand-text{display:grid;line-height:1.05}
.rep-brand-text strong{font-size:15px;font-weight:790;letter-spacing:-.045em}
.rep-brand-text small{font-size:9.5px;font-weight:800;letter-spacing:.18em;color:var(--muted);margin-top:3px}
.rep-nav{display:flex;gap:2px;padding:4px;border-radius:13px;background:var(--sunken);border:1px solid var(--line)}
.rep-nav-link{display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:9px;color:var(--muted);font-size:13px;font-weight:700;text-decoration:none;transition:background .2s,color .2s,box-shadow .2s}
.rep-nav-link .icon{width:16px;height:16px}
.rep-nav-link:hover{color:var(--ink)}
.rep-nav-link[aria-current="page"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(20,32,46,.08),0 0 0 1px var(--line)}
.rep-account{position:relative;justify-self:end}
.rep-who{display:flex;align-items:center;gap:10px;padding:4px 4px 4px 12px;border:1px solid transparent;border-radius:14px;background:none;color:inherit;text-align:right;transition:background .2s,border-color .2s}
.rep-who:hover,.rep-who[aria-expanded="true"]{background:var(--surface);border-color:var(--line)}
.rep-who-text{display:grid;line-height:1.25;min-width:0}
.rep-who-text strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.rep-who-text small{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.rep-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;width:290px;padding:8px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lift);transform-origin:top right;animation:rep-menu-in .22s var(--ease)}
.rep-menu.is-closing{animation:rep-menu-out .16s cubic-bezier(.4,0,1,1) forwards;pointer-events:none}
@keyframes rep-menu-in{from{opacity:0;transform:translateY(-6px) scale(.96)}}
@keyframes rep-menu-out{to{opacity:0;transform:translateY(-4px) scale(.97)}}
.rep-menu-item{transition:background .15s,transform .15s var(--ease)}
.rep-menu-item:active{transform:scale(.985)}
.rep-menu-head{display:grid;justify-items:start;gap:3px;padding:10px 10px 14px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.rep-menu-head .sales-avatar{margin-bottom:8px}
.rep-menu-head strong{font-size:14px}
.rep-menu-head small{font-size:12px;color:var(--muted)}
.rep-menu-note{font-size:11.5px;color:var(--faint);line-height:1.5;margin-top:6px}
.rep-menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:10px;background:none;color:var(--ink);font-size:13px;font-weight:650;text-align:left}
.rep-menu-item:hover{background:var(--sunken)}
.rep-menu-item .icon{width:17px;height:17px;color:var(--muted)}
.rep-menu-item>span:not(.rep-switch){flex:1}
.rep-switch{position:relative;width:34px;height:20px;border-radius:999px;background:var(--line-strong);transition:background .2s;flex:none}
.rep-switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .25s var(--ease)}
.rep-switch[data-on="true"]{background:var(--success)}
.rep-switch[data-on="true"]::after{transform:translateX(14px)}
.rep-main{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:34px 20px 90px;outline:none}
.rep-tabbar,.rep-fab{display:none}

.rep-view.is-entering{animation:rep-enter .42s var(--ease)}
@keyframes rep-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.rep-view{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.rep-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:6px}
.rep-head h1{font-size:clamp(30px,4vw,42px);letter-spacing:-.06em;line-height:1.02}
.rep-sub{margin-top:8px;font-size:14.5px;color:var(--muted)}
.rep-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.rep-hint{font-size:12.5px;color:var(--muted);line-height:1.55}

.rep-card{display:grid;gap:16px;align-content:start;min-width:0;padding:22px;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}
.rep-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.rep-card-head h2{font-size:16px;letter-spacing:-.03em}
.rep-card-head p{font-size:12.5px;color:var(--muted);margin-top:3px}
.rep-grid{display:grid;gap:18px;align-items:start}
.rep-grid-focus{grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr)}
.rep-grid-chart{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr)}
.rep-grid-chart>.rep-card,.rep-grid-focus>.rep-card{align-self:stretch}
.rep-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}

/* Today */
.rep-focus{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rep-focus li{display:flex;align-items:center;gap:8px;border-radius:12px;transition:background .2s}
.rep-focus li:hover{background:var(--sunken)}
.rep-focus-main{flex:1;display:flex;align-items:center;gap:12px;min-width:0;padding:10px;border:0;background:none;color:inherit;font:inherit;text-align:left;border-radius:12px}
.rep-focus-text{display:grid;gap:2px;min-width:0}
.rep-focus-text strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-focus-why{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--muted)}
.rep-focus-why .icon{width:13px;height:13px}
.rep-focus-why.is-late{color:var(--danger);font-weight:650}
.rep-focus-why.is-hot{color:var(--hot);font-weight:650}
.rep-focus-quick{display:flex;gap:4px;padding-right:8px;flex:none}
.rep-focus-quick .icon-button{width:34px;height:34px}

/* This week's goal */
.rep-goal{gap:12px;background:linear-gradient(160deg,var(--surface) 40%,color-mix(in srgb,var(--chart-1) 7%,var(--surface)))}
.rep-goal-figure{display:flex;align-items:baseline;gap:10px}
.rep-goal-figure strong{font-size:52px;font-weight:780;letter-spacing:-.06em;line-height:1}
.rep-goal-figure span{font-size:14px;color:var(--muted);font-weight:600}
.rep-goal-note{font-size:14px;font-weight:650;color:var(--ink)}
.rep-goal-small{font-size:12px;color:var(--faint)}

/* Pipeline */
.rep-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.rep-toolbar-right{display:flex;gap:10px;align-items:center}
.rep-search{position:relative;display:flex;align-items:center;flex:1;min-width:220px;max-width:460px}
.rep-search .icon{position:absolute;left:13px;width:17px;height:17px;color:var(--faint);pointer-events:none}
.rep-search input{padding-left:40px!important;padding-right:38px!important;border-radius:12px!important}
.rep-search kbd{position:absolute;right:10px;min-width:20px;height:20px;display:grid;place-items:center;border-radius:6px;border:1px solid var(--line);background:var(--sunken);color:var(--muted);font:600 11px/1 ui-monospace,Menlo,monospace}
.rep-sort{width:auto!important;min-width:170px}
.rep-chips{display:flex;gap:8px;flex-wrap:wrap}
.rep-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:12.5px;font-weight:700;transition:background .2s,border-color .2s,color .2s}
.rep-chip small{font-size:11px;color:var(--faint);font-weight:700}
.rep-chip i,.rep-col-head i,.rep-step i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--faint)}
[data-tone="info"]>i,i[data-tone="info"]{background:var(--info)}
[data-tone="attention"]>i,i[data-tone="attention"]{background:var(--attention)}
[data-tone="success"]>i,i[data-tone="success"]{background:var(--success)}
[data-tone="muted"]>i,i[data-tone="muted"]{background:var(--line-strong)}
.rep-chip:hover{border-color:var(--line-strong)}
.rep-chip[aria-checked="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.rep-chip[aria-checked="true"] small{color:inherit;opacity:.65}

.rep-board{display:grid;grid-template-columns:repeat(5,minmax(200px,1fr));gap:12px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity}
.rep-col{display:grid;grid-template-rows:auto 1fr;gap:10px;min-height:200px;padding:10px;border-radius:16px;background:var(--sunken);border:1px solid transparent;scroll-snap-align:start;transition:background .2s,border-color .2s}
.rep-col[data-stage="said_no"]{opacity:.82}
.rep-col.is-target{background:color-mix(in srgb,var(--chart-1) 8%,var(--sunken));border-color:color-mix(in srgb,var(--chart-1) 45%,transparent);border-style:dashed}
.rep-col-head{display:flex;align-items:center;gap:8px;padding:4px 6px}
.rep-col-head strong{font-size:13px}
.rep-col-head small{margin-left:auto;font-size:12px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.rep-col-body{display:grid;gap:8px;align-content:start}
.rep-col-empty{padding:18px 8px;text-align:center;font-size:12px;color:var(--faint);border:1px dashed var(--line-strong);border-radius:12px}
.rep-lead{display:grid;gap:7px;padding:13px 14px;border-radius:13px;background:var(--surface);border:1px solid var(--line);box-shadow:0 1px 2px rgba(20,32,46,.04);cursor:pointer;transition:transform .2s var(--ease),box-shadow .2s,border-color .2s}
.rep-lead:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--line-strong)}
.rep-lead:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.rep-lead.is-dragging{opacity:.45;transform:rotate(1.2deg)}
.rep-lead-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.rep-lead-head strong{font-size:13.5px;letter-spacing:-.015em;overflow-wrap:anywhere}
.rep-lead-channel{font-size:11px;color:var(--faint);white-space:nowrap}
.rep-lead-who{font-size:12px;color:var(--muted)}
.rep-lead-time{font-size:11px;color:var(--faint)}
.rep-tags{display:flex;flex-wrap:wrap;gap:5px}
.rep-tags .sales-pill{min-height:22px;padding:2px 8px;font-size:11px}

.rep-list{display:grid;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);overflow:hidden;box-shadow:var(--shadow)}
.rep-row{display:grid;grid-template-columns:auto minmax(0,1.3fr) minmax(0,1.4fr) auto auto;align-items:center;gap:14px;padding:13px 16px;border:0;border-bottom:1px solid var(--line);background:none;color:inherit;font:inherit;text-align:left;transition:background .15s}
.rep-row:last-child{border-bottom:0}
.rep-row:hover{background:var(--sunken)}
.rep-row-main{display:grid;gap:2px;min-width:0}
.rep-row-main strong{font-size:14px}
.rep-row-main small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-row-meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.rep-row-time{font-size:12px;color:var(--faint);white-space:nowrap}
.rep-row-go{width:16px;height:16px;color:var(--faint)}

/* One business */
.rep-sheet{display:grid;gap:22px}
.rep-sheet-top{display:grid;gap:12px}
.rep-sheet-meta{font-size:13px;color:var(--muted)}
.rep-quick{display:flex;flex-wrap:wrap;gap:8px}
.rep-quick-btn{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 13px;border-radius:11px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font-size:13px;font-weight:700;text-decoration:none;transition:background .2s,border-color .2s}
.rep-quick-btn .icon{width:16px;height:16px}
.rep-quick-btn:hover{background:var(--sunken);border-color:var(--accent)}
.rep-quick-btn.is-accent{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.rep-quick-btn.is-accent:hover{background:var(--ink-hover)}
.rep-stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:var(--sunken);border:1px solid var(--line)}
.rep-stepper .rep-hint{grid-column:1/-1;padding:4px 6px 2px}
.rep-step{display:flex;flex-direction:column;align-items:center;gap:6px;padding:9px 4px;border:0;border-radius:10px;background:none;color:var(--muted);font-size:11.5px;font-weight:700;transition:background .2s,color .2s,box-shadow .2s}
.rep-step:hover:not(:disabled){color:var(--ink)}
.rep-step.is-past i{background:var(--chart-1)}
.rep-step[aria-checked="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(20,32,46,.08),0 0 0 1px var(--line)}
.rep-step:disabled{cursor:default}
.rep-sheet-block{display:grid;gap:10px}
.rep-sheet-block h3{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.rep-follow-now{display:flex;align-items:center;gap:8px;font-size:15px}
.rep-follow-now .icon{width:18px;height:18px;color:var(--muted)}
.rep-follow-now.is-late,.rep-follow-now.is-late .icon{color:var(--danger)}
.rep-follow-opts,.rep-opts{display:flex;flex-wrap:wrap;gap:7px}
.rep-opt{position:relative;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:12.5px;font-weight:700;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.rep-opt:hover{border-color:var(--line-strong);background:var(--sunken)}
.rep-opt[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.rep-opt.is-quiet{border-color:transparent;background:none;color:var(--muted)}
.rep-opt .icon{width:14px;height:14px}
.rep-opt-date input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;padding:0!important}
.rep-demo,.rep-demo-wait{display:grid;gap:12px;padding:16px;border-radius:14px;border:1px solid var(--line);background:var(--sunken)}
.rep-demo-wait p{font-size:13px;color:var(--muted);line-height:1.55}
.rep-demo-status{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rep-demo-seen{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);font-weight:600}
.rep-demo-seen .icon{width:15px;height:15px}
.rep-demo-seen.is-hot{color:var(--hot)}
.rep-demo-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13.5px;font-weight:650}
.rep-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rep-code{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label copy" "code copy" "hint hint";align-items:center;gap:2px 10px;padding:12px 13px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.rep-code>small{grid-area:label;font-size:11.5px;font-weight:700;color:var(--muted)}
.rep-code>strong{grid-area:code;font:750 17px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;color:var(--ink);overflow-wrap:anywhere}
.rep-code>span{grid-area:hint;margin-top:6px;font-size:11.5px;color:var(--muted);line-height:1.45}
.rep-code>.sales-copy{grid-area:copy}
.rep-demo-card .rep-codes{grid-template-columns:1fr}
.rep-card>.sales-pill,.rep-demo-wait>.sales-pill,.rep-demo-status>.sales-pill{justify-self:start}
.rep-mini{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rep-mini-row{display:flex;align-items:center;gap:12px;width:100%;padding:9px 8px;border:0;border-radius:12px;background:none;color:inherit;font:inherit;text-align:left;transition:background .2s}
.rep-mini-row:hover{background:var(--sunken)}
.rep-mini-row .rep-focus-text{flex:1}
.rep-focus-why{flex-wrap:wrap;gap:4px 10px}
.rep-focus-why>span{display:inline-flex;align-items:center;gap:4px}
.rep-focus-why .is-late{color:var(--danger);font-weight:650}
.rep-focus-why .is-hot,.rep-focus-why.is-hot{color:var(--hot);font-weight:650}
.rep-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rep-details .field:first-child,.rep-details .field:has(textarea){grid-column:1/-1}
.rep-saved{grid-column:1/-1;justify-self:end;font-size:12px;font-weight:700;color:var(--success);opacity:0;transition:opacity .3s}
.rep-saved.is-on{opacity:1}
.rep-note{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}
.rep-note textarea{min-height:44px!important}
.rep-sheet-foot{display:flex;justify-content:flex-start;padding-top:6px;border-top:1px solid var(--line)}
.rep-remove{color:var(--danger)!important}

/* Add a business, and email */
.rep-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rep-check{font-size:12.5px;font-weight:650;min-height:18px;color:var(--muted);transition:color .2s}
.rep-check[data-tone="good"]{color:var(--success)}
.rep-check[data-tone="bad"]{color:var(--danger)}
.rep-check[data-tone="good"]::before{content:"✓ "}
.rep-signature{display:grid;gap:1px;padding:12px 14px;border-left:3px solid var(--line-strong);border-radius:0 10px 10px 0;background:var(--sunken);font-size:12.5px;color:var(--muted)}
.rep-signature strong{color:var(--ink);font-size:13px}
.rep-send-row{justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.rep-compose textarea{min-height:220px;line-height:1.6}

/* Demos */
.rep-demos{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;align-items:start}
.rep-demo-card{gap:14px}
.rep-demo-head{display:flex;align-items:center;gap:12px}
.rep-demo-name{padding:0;border:0;background:none;color:var(--ink);font:inherit;font-size:16px;font-weight:760;letter-spacing:-.03em;text-align:left}
.rep-demo-name:hover{text-decoration:underline;text-underline-offset:3px}
.rep-demo-big{display:flex;align-items:baseline;gap:8px;color:var(--muted)}
.rep-demo-big .icon{width:18px;height:18px;align-self:center}
.rep-demo-big strong{font-size:34px;font-weight:780;letter-spacing:-.05em;color:var(--ink);line-height:1}
.rep-demo-big span{font-size:13px}
.rep-demo-big.is-hot .icon,.rep-demo-big.is-hot strong{color:var(--hot)}
.rep-progress{height:4px;border-radius:999px;background:var(--chart-track);overflow:hidden;position:relative}
.rep-progress::after{content:"";position:absolute;inset:0;width:40%;border-radius:inherit;background:var(--attention);animation:rep-progress 1.8s var(--ease) infinite}
@keyframes rep-progress{from{transform:translateX(-100%)}to{transform:translateX(260%)}}

/* Earnings */
.rep-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:28px;padding:28px;background:linear-gradient(150deg,var(--surface) 45%,color-mix(in srgb,var(--chart-1) 8%,var(--surface)))}
.rep-hero-figure{display:grid;gap:6px}
.rep-hero-label{font-size:13px;font-weight:700;color:var(--muted)}
.rep-hero-figure strong{font-size:clamp(44px,6vw,60px);font-weight:780;letter-spacing:-.06em;line-height:1}
.rep-hero-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0}
.rep-hero-facts div{padding:14px 16px;border-radius:13px;background:color-mix(in srgb,var(--surface) 70%,transparent);border:1px solid var(--line)}
.rep-hero-facts dt{font-size:12px;font-weight:650;color:var(--muted)}
.rep-hero-facts dd{margin:4px 0 0;font-size:20px;font-weight:760;letter-spacing:-.04em}
.rep-client{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.rep-client:first-of-type{border-top:0}
.rep-client .sales-meter{grid-column:2/-1;height:5px}
.rep-client-text{display:grid;gap:2px;min-width:0}
.rep-client-text strong{font-size:14px}
.rep-client-text small{font-size:12px;color:var(--muted)}
.rep-client-earned{font-size:14px;font-weight:760;font-variant-numeric:tabular-nums}
.rep-table-wrap{overflow-x:auto;margin:0 -22px -22px;border-top:1px solid var(--line)}
.rep-table{width:100%;border-collapse:collapse;font-size:13px}
.rep-table th{padding:11px 16px;text-align:left;font-size:11.5px;font-weight:750;letter-spacing:.04em;color:var(--muted);background:var(--sunken);white-space:nowrap}
.rep-table td{padding:13px 16px;border-top:1px solid var(--line);white-space:nowrap}
.rep-table .num{text-align:right;font-variant-numeric:tabular-nums}
.rep-table th.num{text-align:right}
.rep-table .strong{font-weight:760}
.rep-table tbody tr{transition:background .15s}
.rep-table tbody tr:hover{background:var(--sunken)}

/* ---------- Phones and narrow screens ---------- */
@media(max-width:1020px){
  .rep-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rep-grid-focus,.rep-grid-chart{grid-template-columns:1fr}
  .rep-who-text{display:none}
}
@media(max-width:760px){
  .rep-top{grid-template-columns:1fr auto;padding:10px 16px}
  .rep-nav{display:none}
  .rep-main{padding:22px 16px calc(110px + env(safe-area-inset-bottom))}
  /* Studio previews: the preview bar sits just above the tab bar instead of covering it. */
  body[data-preview="true"] .preview-bar{bottom:calc(84px + env(safe-area-inset-bottom))}
  body[data-preview="true"] .rep-main{padding-bottom:calc(190px + env(safe-area-inset-bottom))}
  .rep-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:saturate(1.4) blur(16px);-webkit-backdrop-filter:saturate(1.4) blur(16px);border-top:1px solid var(--line)}
  .rep-tab{display:grid;justify-items:center;gap:3px;padding:6px 0;border-radius:12px;color:var(--faint);font-size:10.5px;font-weight:700;text-decoration:none;transition:color .2s}
  .rep-tab .icon{width:22px;height:22px}
  .rep-tab[aria-current="page"]{color:var(--ink)}
  .rep-fab{display:grid;place-items:center;justify-self:center;width:50px;height:50px;margin-top:-22px;border-radius:17px;border:0;background:var(--ink);color:var(--on-ink);box-shadow:0 8px 22px rgba(20,32,46,.28),0 0 0 4px var(--paper)}
  .rep-fab .icon{width:24px;height:24px}
  .rep-head-actions{display:none}
  .rep-toolbar-right .rep-layout{display:none}
  .rep-search{max-width:none}
  .rep-sort{min-width:0}
  .rep-chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none}
  .rep-chips::-webkit-scrollbar{display:none}
  .rep-chip{flex:none}
  .rep-row{grid-template-columns:auto minmax(0,1fr) auto;gap:12px}
  .rep-row-meta{grid-column:2/-1;grid-row:2}
  .rep-row-time{display:none}
  .rep-card{padding:18px}
  .rep-table-wrap{margin:0 -18px -18px}
  .rep-hero{grid-template-columns:1fr;padding:22px}
  .rep-goal-figure strong{font-size:44px}
  .rep-stepper{grid-template-columns:repeat(5,minmax(58px,1fr));overflow-x:auto}
  .rep-codes,.rep-details,.rep-pair{grid-template-columns:1fr}
  .sales-stat-value{font-size:26px}
  .sales-spark{display:none}
}
@media(prefers-reduced-motion:reduce){.rep-view.is-entering,.rep-menu,.rep-menu.is-closing{animation:none}.rep-progress::after{animation:none}}

.rep-banner{display:flex;align-items:flex-start;gap:14px;padding:16px 18px;border-radius:var(--radius-lg);border:1px solid var(--attention-line);background:var(--attention-soft)}
.rep-banner>.icon{flex:none;width:20px;height:20px;margin-top:1px;color:var(--attention)}
.rep-banner>div{display:grid;gap:3px;font-size:13.5px;line-height:1.55}
.rep-banner strong{color:var(--ink)}
.rep-banner>div>span{color:var(--muted)}
.rep-nowrap{white-space:nowrap}

/* ---------- The studio's Sales page ---------- */
.sales-admin-view{display:grid;gap:18px}
.sales-admin-view>*{min-width:0}
.sales-admin-view.is-entering{animation:rep-enter .42s var(--ease)}
.tab.has-alert .tab-count{background:var(--attention-soft);color:var(--attention)}
.sales-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.sales-stats.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.sales-stats .sales-spark{top:46px;width:64px}
.sales-lede{max-width:70ch;font-size:13.5px}
.sales-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:4px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.sales-facts div{display:grid;gap:2px;min-width:0}
.sales-facts dt{font-size:11.5px;font-weight:650;color:var(--muted)}
.sales-facts dd{margin:0;font-size:17px;font-weight:760;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.sales-who{display:flex;align-items:center;gap:11px;min-width:0}
.sales-who>strong{font-weight:720}
.sales-who-text{display:grid;gap:1px;min-width:0}
.sales-who-text strong{font-weight:720;overflow:hidden;text-overflow:ellipsis}
.sales-who-text small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.sales-rank{width:18px;font-size:12px;font-weight:700;color:var(--faint);text-align:right;font-variant-numeric:tabular-nums}
.sales-board tbody tr:first-child .sales-rank{color:var(--attention)}
.sales-sort{padding:0;border:0;background:none;font:inherit;color:inherit;letter-spacing:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:4px}
.sales-sort:hover{color:var(--ink)}
.sales-sort::after{content:"";width:0;height:0;border:4px solid transparent;border-top-color:currentColor;margin-top:4px;opacity:0;transition:opacity .2s}
th[aria-sort] .sales-sort{color:var(--ink)}
th[aria-sort] .sales-sort::after{opacity:1}
.sales-week{min-width:118px}
.sales-week>span{display:block;margin-bottom:6px;font-size:12px;color:var(--muted)}
.sales-week .sales-meter{height:6px;margin-left:auto;max-width:110px}
.rep-table tbody tr[tabindex]{cursor:pointer}
.rep-table tbody tr[tabindex]:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.rep-table .muted-cell{color:var(--muted)}
.rep-table-wrap.is-card{margin:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}
.sales-leads td:first-child{min-width:220px}

.sales-rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.sales-rep-card{display:grid;gap:16px;align-content:start;padding:20px;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
.sales-rep-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift);border-color:var(--line-strong)}
.sales-rep-card:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.sales-rep-card.is-off{opacity:.62}
.sales-rep-card.is-test{border-style:dashed;border-color:var(--info-line)}
.sales-try{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;margin-top:-6px}
.sales-rep-card.is-off .sales-avatar{filter:grayscale(1)}
.sales-rep-top{display:flex;align-items:center;gap:12px;min-width:0}
.sales-rep-id{display:grid;gap:2px;flex:1;min-width:0}
.sales-rep-id strong{font-size:15.5px;letter-spacing:-.025em}
.sales-rep-id small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sales-rep-addr{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 11px;border-radius:11px;background:var(--sunken);font-size:12.5px;color:var(--muted)}
.sales-rep-addr span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sales-rep-addr i{flex:none;width:8px;height:8px;border-radius:50%;background:var(--line-strong)}
.sales-rep-addr i[data-state="ok"]{background:var(--success);box-shadow:0 0 0 3px var(--success-soft)}
.sales-rep-addr i[data-state="wait"]{background:var(--attention);box-shadow:0 0 0 3px var(--attention-soft)}
.sales-rep-goal{display:grid;grid-template-columns:1fr auto;gap:7px 10px;align-items:baseline;font-size:12.5px;color:var(--muted)}
.sales-rep-goal strong{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}
.sales-rep-goal .sales-meter{grid-column:1/-1}
.sales-rep-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-top:14px;border-top:1px solid var(--line)}
.sales-rep-stats span{display:grid;gap:1px;min-width:0}
.sales-rep-stats strong{font-size:16px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.sales-rep-stats small{font-size:11.5px;color:var(--muted)}

.sales-steps{list-style:none;margin:-6px 0 0;padding:12px 14px;display:grid;gap:8px;border-radius:12px;background:var(--sunken)}
.sales-steps li{display:flex;align-items:center;gap:9px;font-size:13px}
.sales-steps .icon{width:16px;height:16px;color:var(--success)}
.sales-three{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}
.sales-rep-sheet-top{display:flex;align-items:center;gap:13px}
.sales-rep-sheet-top>div{display:grid;gap:2px;flex:1;min-width:0}
.sales-rep-sheet-top strong{font-size:14px;overflow:hidden;text-overflow:ellipsis}
.sales-rep-sheet-top small{font-size:12px;color:var(--muted)}
.sales-addr-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.sales-addr-line strong{font-size:14.5px;letter-spacing:-.015em}
.rep-sheet-block>button.secondary,.rep-sheet-block>button.link-button{justify-self:start}
.sales-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0;padding:14px 16px;border-radius:14px;background:var(--sunken)}
.sales-contact div{display:grid;gap:2px;min-width:0}
.sales-contact dt{font-size:11.5px;font-weight:650;color:var(--muted)}
.sales-contact dd{margin:0;font-size:13.5px;overflow-wrap:anywhere}
.sales-attach{display:flex;gap:8px;align-items:center}
.sales-attach select{flex:1;min-width:0}
.sales-attach>button{flex:none;white-space:nowrap}

.sales-queue{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}
.sales-request{gap:14px}
.sales-request-from{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--muted)}
.sales-request-from .sales-avatar{width:24px;height:24px;border-radius:8px;font-size:10px}
.sales-request .rep-demo-head .rep-demo-name{flex:1;min-width:0}
.sales-quote{margin:0;padding:10px 14px;border-left:3px solid var(--chart-1);border-radius:0 10px 10px 0;background:var(--sunken);font-size:13.5px;line-height:1.55;color:var(--ink)}
.sales-request .sales-contact{padding:12px 14px;grid-template-columns:1fr}
.sales-request-actions{display:flex;flex-wrap:wrap;gap:8px}
.sales-request-actions:empty{display:none}
.sales-request .sales-attach{padding-top:14px;border-top:1px solid var(--line)}

.sales-pay{gap:0;padding:0;overflow:hidden}
.sales-pay-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px}
.sales-pay-list{list-style:none;margin:0;padding:0}
.sales-pay-list li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:16px;padding:13px 22px;border-top:1px solid var(--line)}
.sales-pay-amount{font-size:14.5px;font-variant-numeric:tabular-nums}
.sales-pay-actions{display:flex;gap:14px}

@media(max-width:1180px){.sales-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .sales-stats,.sales-stats.is-three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sales-stats>.sales-stat:last-child:nth-child(odd){grid-column:1/-1}
  .sales-facts dd{font-size:16px}
  .sales-contact{grid-template-columns:1fr}
  .rep-pair.sales-three{grid-template-columns:1fr 1fr}
  .rep-pair.sales-three>:first-child{grid-column:1/-1}
  .sales-queue,.sales-rep-grid{grid-template-columns:1fr}
  .sales-pay-head{padding:16px 18px}
  .sales-pay-list li{grid-template-columns:minmax(0,1fr) auto;padding:12px 18px}
  .sales-pay-actions{grid-column:1/-1}
  .sales-attach{flex-wrap:wrap}
  .sales-attach select{flex-basis:100%}
  /* Leads become stacked rows on phones: the business, its pills, then who and when. */
  .sales-leads thead{display:none}
  .sales-leads,.sales-leads tbody{display:block}
  .sales-leads tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 16px;border-top:1px solid var(--line)}
  .sales-leads tbody tr:first-child{border-top:0}
  .sales-leads td{padding:0;border:0;white-space:normal}
  .sales-leads td:first-child{flex-basis:100%;min-width:0}
  .sales-leads td[data-empty]{display:none}
  .sales-leads td:nth-child(2){order:5;flex-basis:100%;font-size:12px;color:var(--muted)}
  .sales-leads td:nth-child(2)::before{content:"By "}
  .sales-leads td:nth-child(2)::after{content:attr(data-after)}
  .sales-leads td:nth-child(6){display:none}
}
@media(prefers-reduced-motion:reduce){.sales-admin-view.is-entering{animation:none}.sales-rep-card:hover{transform:none}}

/* ---------- Motion ---------- */
/* The gliding highlight behind the chosen item of the top menu and the Board/List switch. */
.has-thumb{position:relative;isolation:isolate}
.sales-thumb{position:absolute;top:0;left:0;z-index:-1;border-radius:9px;background:var(--surface);box-shadow:0 1px 2px rgba(20,32,46,.08),0 0 0 1px var(--line);opacity:0;pointer-events:none;transition:transform .34s var(--ease),width .34s var(--ease),height .34s var(--ease),opacity .2s}
.sales-segmented .sales-thumb{border-radius:8px}
.sales-thumb.is-still{transition:none}
.has-thumb>.rep-nav-link[aria-current="page"],.has-thumb>.sales-segment[aria-checked="true"]{background:transparent;box-shadow:none}
/* A press you can feel: buttons and cards give slightly under a tap. */
.rep-app button,.sales-admin-view button,dialog.dialog button{transition:transform .14s var(--ease),background .2s,border-color .2s,color .2s,box-shadow .2s,opacity .2s}
.rep-app button:not(:disabled):active,.sales-admin-view button:not(:disabled):active,dialog.dialog button:not(:disabled):active{transform:scale(.97)}
.sales-rep-card:not(:disabled):active,button.sales-stat:active{transform:translateY(0) scale(.985)}
.rep-lead:active{transform:scale(.985)}
.rep-lead.is-dragging{box-shadow:var(--shadow-lift)}
.rep-col{transition:background .2s,box-shadow .2s,border-color .2s}
/* The phone tab bar: the chosen tab's icon lifts, and the Add button springs. */
.rep-tab .icon{transition:transform .3s var(--ease)}
.rep-tab[aria-current="page"] .icon{transform:translateY(-2px)}
.rep-fab{transition:transform .2s var(--ease),box-shadow .2s}
.rep-fab:active{transform:scale(.92)}
/* Chips, steps, and rows ease between states instead of snapping. */
.rep-chip,.rep-step,.rep-opt,.sales-sort,.rep-table tbody tr,.rep-mini-row,.rep-focus li{transition:background .2s,border-color .2s,color .2s,box-shadow .2s,transform .15s var(--ease)}
.rep-chip:active,.rep-opt:active,.rep-step:active{transform:scale(.96)}
/* Lists and cards arrive in a soft cascade the first time a view opens. */
.is-entering .sales-stats>*,.is-entering .rep-stats>*,.is-entering .sales-rep-grid>*,.is-entering .sales-queue>*,.is-entering .rep-demos>*{animation:rep-enter .5s var(--ease) both}
.is-entering .sales-stats>:nth-child(2),.is-entering .rep-stats>:nth-child(2),.is-entering .sales-rep-grid>:nth-child(2),.is-entering .sales-queue>:nth-child(2),.is-entering .rep-demos>:nth-child(2){animation-delay:.04s}
.is-entering .sales-stats>:nth-child(3),.is-entering .rep-stats>:nth-child(3),.is-entering .sales-rep-grid>:nth-child(3),.is-entering .sales-queue>:nth-child(3),.is-entering .rep-demos>:nth-child(3){animation-delay:.08s}
.is-entering .sales-stats>:nth-child(4),.is-entering .rep-stats>:nth-child(4),.is-entering .sales-rep-grid>:nth-child(4),.is-entering .sales-queue>:nth-child(4),.is-entering .rep-demos>:nth-child(4){animation-delay:.12s}
.is-entering .sales-stats>:nth-child(n+5),.is-entering .sales-rep-grid>:nth-child(n+5),.is-entering .sales-queue>:nth-child(n+5),.is-entering .rep-demos>:nth-child(n+5){animation-delay:.16s}
/* Tabs on the Sales page: each switch fades the new panel in. */
.sales-admin-view.is-switching{animation:sales-fade .28s var(--ease)}
/* Sheets: their sections ease in after the panel lands. */
dialog.dialog.sheet.is-opening .rep-sheet>*{animation:sales-fade .4s var(--ease) both}
dialog.dialog.sheet.is-opening .rep-sheet>:nth-child(2){animation-delay:.05s}
dialog.dialog.sheet.is-opening .rep-sheet>:nth-child(3){animation-delay:.09s}
dialog.dialog.sheet.is-opening .rep-sheet>:nth-child(n+4){animation-delay:.13s}
@media(prefers-reduced-motion:reduce){
  .sales-thumb,.rep-tab .icon,.rep-fab{transition:none}
  .rep-app button:active,.sales-admin-view button:active,dialog.dialog button:active,.rep-lead:active,.rep-chip:active,.rep-opt:active,.rep-step:active,.rep-fab:active,.sales-rep-card:active{transform:none}
  .is-entering *,.sales-admin-view.is-switching,dialog.dialog.sheet .rep-sheet>*{animation:none!important}
}

/* ---------- Adam's list (businesses up for grabs) ---------- */
.rep-grab-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.rep-grab-item{display:flex;align-items:flex-start;gap:12px;padding:12px 8px;border-radius:12px;transition:background .2s,opacity .3s,transform .3s var(--ease)}
.rep-grab-item:hover{background:var(--sunken)}
.rep-grab-item+.rep-grab-item{border-top:1px solid var(--line)}
.rep-grab-item.is-taken{opacity:0;transform:translateX(12px)}
.rep-grab-text{display:grid;gap:2px;flex:1;min-width:0}
.rep-grab-text strong{font-size:14px;letter-spacing:-.015em}
.rep-grab-facts{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.rep-grab-notes{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--text)}
.rep-grab-time{font-size:11.5px;color:var(--faint)}
.rep-grab-take{flex:none;align-self:center}
.rep-grab>.link-button{justify-self:start}
.rep-grab-nudge{display:flex;align-items:center;gap:12px;margin-top:2px;padding:12px 14px;border-radius:12px;background:var(--info-soft);border:1px solid var(--info-line);color:var(--ink);text-decoration:none;transition:background .2s,transform .15s var(--ease)}
.rep-grab-nudge:hover{background:color-mix(in srgb,var(--info-soft) 70%,var(--info-line))}
.rep-grab-nudge:active{transform:scale(.985)}
.rep-grab-nudge>.icon{flex:none;width:18px;height:18px;color:var(--info)}
.rep-grab-nudge>.icon:last-child{margin-left:auto;color:var(--muted);transition:transform .2s var(--ease)}
.rep-grab-nudge:hover>.icon:last-child{transform:translateX(3px)}
.rep-grab-nudge span{display:grid;gap:1px}
.rep-grab-nudge strong{font-size:13.5px}
.rep-grab-nudge small{font-size:12px;color:var(--muted)}
.rep-nav-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--info);color:#fff;font-size:10.5px;font-weight:800;line-height:1;animation:rep-badge-in .4s var(--ease)}
.rep-tab{position:relative}
.rep-tab .rep-nav-badge{position:absolute;top:0;left:calc(50% + 6px)}
@keyframes rep-badge-in{from{transform:scale(.4);opacity:0}}
@media(max-width:760px){.rep-grab-item{flex-wrap:wrap}.rep-grab-take{margin-left:46px}}
@media(prefers-reduced-motion:reduce){.rep-nav-badge{animation:none}.rep-grab-item.is-taken{transform:none}}
.sales-head-actions{display:flex;flex-wrap:wrap;gap:8px}
.sales-list{list-style:none;margin:0;padding:0;display:grid}
.sales-list-item{display:flex;align-items:flex-start;gap:12px;padding:14px 4px;transition:opacity .3s,transform .3s var(--ease)}
.sales-list-item+.sales-list-item{border-top:1px solid var(--line)}
.sales-list-item.is-taken{opacity:0;transform:translateX(12px)}
.sales-list-actions{display:flex;align-items:center;gap:6px;flex:none;align-self:center}
.sales-list-actions select{width:auto;min-width:170px}
.sales-mode .sales-segmented{width:100%}
.sales-mode .sales-segment{flex:1;justify-content:center}
.sales-picks{display:flex;flex-wrap:wrap;gap:8px}
.sales-picks .check{margin:0}
@media(max-width:760px){.sales-list-item{flex-wrap:wrap}.sales-list-actions{width:100%;padding-left:46px}.sales-list-actions select{flex:1;min-width:0}}

/* ---------- The Playbook ---------- */
.sales-rich{display:grid;gap:10px;font-size:14px;line-height:1.65;color:var(--text)}
.sales-rich p,.sales-rich ul{margin:0}
.sales-rich ul{padding-left:20px;display:grid;gap:5px}
.sales-rich strong{color:var(--ink);font-weight:740}
.rep-start{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:var(--radius-lg);border:1px solid var(--info-line);background:linear-gradient(120deg,var(--info-soft),var(--surface) 70%);color:var(--ink);text-decoration:none;box-shadow:var(--shadow);transition:transform .25s var(--ease),box-shadow .25s}
.rep-start:hover{transform:translateY(-2px);box-shadow:var(--shadow-lift)}
.rep-start:active{transform:scale(.99)}
.rep-start>.icon:first-child{flex:none;width:26px;height:26px;color:var(--info)}
.rep-start>.icon:last-child{flex:none;color:var(--muted);transition:transform .2s var(--ease)}
.rep-start:hover>.icon:last-child{transform:translateX(3px)}
.rep-start-text{display:grid;gap:2px;flex:1;min-width:0}
.rep-start-text small{font-size:10.5px;font-weight:800;letter-spacing:.12em;color:var(--info)}
.rep-start-text strong{font-size:16px;letter-spacing:-.025em}
.rep-start-text span{font-size:13px;color:var(--muted)}
.rep-start .sales-meter{flex:0 0 140px}
.rep-guide-progress{gap:12px}
.rep-guide-progress-line{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.rep-guide-progress-line strong{font-size:15px}
.rep-guide-progress-line span{font-size:12.5px;color:var(--muted)}
.rep-guide{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.rep-guide-item{border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);transition:border-color .3s,opacity .3s,transform .4s var(--ease)}
.rep-guide-item.is-read{box-shadow:none;background:color-mix(in srgb,var(--surface) 60%,var(--sunken))}
.rep-guide-item.is-done{border-color:var(--success-line);transform:scale(.99)}
.rep-guide-item details>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;list-style:none}
.rep-guide-item details>summary::-webkit-details-marker{display:none}
.rep-guide-item details>summary strong{flex:1;font-size:15.5px;letter-spacing:-.02em}
.rep-guide-item details>summary>.icon:last-child{color:var(--faint);transition:transform .25s var(--ease)}
.rep-guide-item details[open]>summary>.icon:last-child{transform:rotate(90deg)}
.rep-guide-num{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--sunken);color:var(--muted);font-size:12.5px;font-weight:800}
.rep-guide-item.is-read .rep-guide-num{background:var(--success-soft);color:var(--success)}
.rep-guide-num .icon{width:15px;height:15px}
.rep-guide-item details>.sales-rich{padding:0 20px 4px 60px;animation:sales-fade .3s var(--ease)}
.rep-guide-got{margin:14px 20px 18px 60px;display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:11px;border:0;background:var(--ink);color:var(--surface);font-weight:720;font-size:13px}
.rep-guide-item.is-done .rep-guide-got{background:var(--success)}
.rep-guide-item.is-read details>.sales-rich{padding-bottom:18px}
.rep-menu-count{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--info)}

/* ---------- The Pitch sheet ---------- */
.rep-pitch-btn{white-space:nowrap;flex:none;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 13px;border-radius:11px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font-size:13px;font-weight:700}
.rep-pitch-btn .icon{width:16px;height:16px}
.rep-account{display:flex;align-items:center;gap:10px}
.rep-pitch{display:grid;gap:22px}
.rep-pitch-label{font-size:10.5px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.rep-pitch-now{display:grid;gap:6px;padding:18px 20px;border-radius:16px;background:var(--ink);color:var(--surface)}
.rep-pitch-now .rep-pitch-label{color:color-mix(in srgb,var(--surface) 65%,transparent)}
.rep-pitch-turn{font-size:34px;line-height:1.05;letter-spacing:-.04em}
.rep-pitch-now p{margin:0;font-size:13.5px;line-height:1.55;color:color-mix(in srgb,var(--surface) 82%,transparent)}
.rep-pitch-live{display:flex;align-items:center;gap:8px}
.rep-pitch-live::before{content:"";width:8px;height:8px;border-radius:50%;background:#5fd08d;box-shadow:0 0 0 3px rgba(95,208,141,.25)}
.rep-pitch-working{display:grid;gap:4px;margin-top:6px;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--surface) 18%,transparent)}
.rep-pitch-working .sales-rich{color:var(--surface);font-size:13.5px}
.rep-pitch-working .sales-rich strong{color:var(--surface)}
.rep-pitch-updated{font-size:11.5px;color:color-mix(in srgb,var(--surface) 55%,transparent)}
.rep-pitch-block{display:grid;gap:10px}
.rep-pitch-block h3{font-size:11.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.rep-pitch-points{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rep-pitch-points li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.45;font-weight:600;color:var(--ink)}
.rep-pitch-points .icon{flex:none;width:18px;height:18px;margin-top:2px;color:var(--success)}
.rep-pitch-prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.rep-pitch-price{display:grid;gap:2px;padding:14px;border-radius:14px;border:1px solid var(--line);background:var(--sunken)}
.rep-pitch-price span{font-size:12.5px;font-weight:700;color:var(--muted)}
.rep-pitch-price strong{font-size:24px;letter-spacing:-.035em}
.rep-pitch-price small{font-size:11.5px;color:var(--muted)}
.rep-pitch-q{border-top:1px solid var(--line)}
.rep-pitch-q>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 2px;cursor:pointer;list-style:none;font-weight:700;font-size:14px}
.rep-pitch-q>summary::-webkit-details-marker{display:none}
.rep-pitch-q>summary .icon{flex:none;color:var(--faint);transition:transform .25s var(--ease)}
.rep-pitch-q[open]>summary .icon{transform:rotate(90deg)}
.rep-pitch-q>.sales-rich{padding:0 2px 14px;animation:sales-fade .3s var(--ease)}
dialog.dialog.sheet.is-left{margin:0 auto 0 0;border-radius:0 22px 22px 0}
dialog.dialog.sheet.is-left[open]{animation:sales-sheet-in-left .38s var(--ease)}
dialog.dialog.sheet.is-left.is-closing{animation:sales-sheet-out-left .3s cubic-bezier(.5,0,.75,0) forwards}
@keyframes sales-sheet-in-left{from{transform:translateX(-40px);opacity:0}to{transform:none;opacity:1}}
@keyframes sales-sheet-out-left{to{transform:translateX(-105%)}}
@media(max-width:760px){
  .rep-pitch-btn span{display:none}
  .rep-pitch-btn{padding:8px 10px}
  .rep-start{flex-wrap:wrap}
  .rep-start .sales-meter{flex:1 0 100%;order:5}
  .rep-start>.icon:last-child{display:none}
  .rep-guide-item details>.sales-rich{padding:0 18px 4px}
  .rep-guide-got{margin:14px 18px 18px}
}
@media(max-width:640px){
  dialog.dialog.sheet.is-left{margin:auto 0 0;border-radius:22px 22px 0 0}
  dialog.dialog.sheet.is-left[open]{animation:sales-sheet-up .38s var(--ease)}
  dialog.dialog.sheet.is-left.is-closing{animation:sales-sheet-down .3s cubic-bezier(.5,0,.75,0) forwards}
}
@media(prefers-reduced-motion:reduce){.rep-start,.rep-guide-item{transition:none}.rep-guide-item details>.sales-rich,.rep-pitch-q>.sales-rich{animation:none}}
/* The studio's Playbook tab */
.sales-now{display:grid;gap:12px}
.sales-now-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sales-now-actions .check{margin:0}
.sales-guide{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sales-guide-row{display:flex;align-items:center;gap:6px;border-radius:12px;border:1px solid var(--line);background:var(--surface);transition:border-color .2s,box-shadow .2s,opacity .2s,transform .2s var(--ease)}
.sales-guide-row:hover{border-color:var(--line-strong)}
.sales-guide-row.is-dragging{opacity:.5}
.sales-guide-row.is-over{border-color:var(--chart-1);box-shadow:0 -3px 0 var(--chart-1)}
.sales-guide-open{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:12px 14px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.sales-guide-open .rep-focus-text{flex:1}
.sales-guide-open>.icon:last-child{color:var(--faint)}
.sales-guide-move{display:flex;align-items:center;gap:2px;padding-right:8px}
.sales-guide-move .is-up .icon{transform:rotate(-45deg)}
.sales-guide-grip{cursor:grab;color:var(--faint);font-size:13px;letter-spacing:-3px;padding:0 6px;user-select:none}
.sales-guide-preview{display:grid;gap:8px;padding:16px;border-radius:14px;border:1px dashed var(--line-strong);background:var(--sunken)}
.sales-readers .sales-reader{display:flex;align-items:center;gap:12px;padding:10px 6px}
.sales-reader .rep-focus-text{flex:1}
.sales-reader-meter{display:grid;gap:5px;flex:0 0 120px;text-align:right;font-size:11.5px;color:var(--muted)}
.sales-rep-playbook{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.sales-rep-playbook .icon{width:15px;height:15px}
.sales-rep-playbook.is-done{color:var(--success)}
.sales-price-rows,.sales-q-rows{display:grid;gap:8px}
.sales-price-row{display:grid;grid-template-columns:1.3fr .8fr 1fr auto;gap:8px;align-items:center}
.sales-q-row{display:grid;grid-template-columns:1fr auto;gap:6px 8px;padding:10px;border-radius:12px;background:var(--sunken)}
.sales-q-row textarea{grid-column:1}
.sales-q-row .icon-button{grid-row:1/span 2;grid-column:2;align-self:start}
form.stack>.link-button{justify-self:start;margin-top:-8px}
@media(max-width:760px){.sales-price-row{grid-template-columns:1fr 1fr auto}.sales-price-row input:nth-child(3){grid-column:1/3;grid-row:2}.sales-reader-meter{flex-basis:84px}.sales-guide-grip{display:none}}
@media(max-width:1180px){.rep-pitch-btn span{display:none}.rep-pitch-btn{padding:8px 10px}}

/* ---------- The dashboard look for the rep portal ---------- */
.rep-main{max-width:1440px}
.rep-view-overview .rep-head h1{font-size:30px;font-weight:500;letter-spacing:-.02em}
.rep-view-overview .rep-head h1 .dot{display:none}
.cols-rep{grid-template-columns:minmax(0,2.2fr) minmax(0,1fr) minmax(0,auto) 52px}
.row-quick{display:flex;gap:8px;justify-content:flex-end}
.mini-round{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--surface);color:var(--hl-strong);border:1px solid var(--line);text-decoration:none;cursor:pointer;transition:background .2s}
.mini-round:hover{background:var(--hl);color:var(--hl-ink)}
.mini-round .icon{width:17px;height:17px}
.pill-row.is-lit .mini-round{background:rgba(8,19,32,.1);border-color:transparent;color:var(--hl-ink)}
.who-text small.is-late{color:#e5484d}
.pill-row.is-lit .who-text small.is-late{color:var(--hl-ink)}
.folder-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:8px;padding:0 6px;border-radius:999px;background:var(--hl);color:var(--hl-ink);font-size:11px;font-weight:600;vertical-align:2px}
.rep-goal{gap:12px}
.rep-goal .rep-goal-figure strong{font-size:48px;font-weight:500}
.rep-earn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rep-earn-grid div{display:grid;gap:2px;padding:14px;border-radius:18px;background:var(--raised)}
.rep-earn-grid small{font-size:12px;color:var(--muted)}
.rep-earn-grid strong{font-size:19px;font-weight:500;color:var(--ink)}
.home-dashboard .empty-state{padding:22px}
/* The rep's top bar and phone bar in the same spirit. */
.rep-top{background:color-mix(in srgb,var(--paper) 88%,transparent);border-bottom:0}
.rep-nav{border-radius:999px;padding:5px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.rep-nav-link{border-radius:999px;font-weight:500;padding:9px 16px}
.sales-thumb{border-radius:999px;background:var(--hl);box-shadow:none}
.has-thumb>.rep-nav-link[aria-current="page"],.has-thumb>.sales-segment[aria-checked="true"]{color:var(--hl-ink)}
.sales-segmented{border-radius:999px}.sales-segment{border-radius:999px}
.rep-who{border-radius:999px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);padding:5px 6px 5px 14px}
.rep-pitch-btn{border-radius:999px}
.sales-avatar{border-radius:50%}
.rep-card,.sales-stat,.sales-rep-card,.rep-guide-item{border-radius:var(--radius-lg)}
.rep-chip[aria-checked="true"]{background:var(--hl);border-color:var(--hl);color:var(--hl-ink)}
.rep-chip[aria-checked="true"] small{color:var(--hl-ink);opacity:.7}
.rep-fab{background:var(--hl);color:var(--hl-ink);border-radius:50%}
.rep-quick-btn{border-radius:999px}
.rep-quick-btn.is-accent,.rep-guide-got{background:var(--hl);color:var(--hl-ink);border-color:var(--hl)}
.rep-start{border-color:transparent;background:var(--hl);color:var(--hl-ink);border-radius:26px}
.rep-start-text small,.rep-start>.icon:first-child,.rep-start-text span,.rep-start>.icon:last-child{color:var(--hl-ink)}
.rep-start-text small{text-transform:none;letter-spacing:0}
.rep-start .sales-meter{background:rgba(8,19,32,.15)}
.rep-start .sales-meter span{background:var(--hl-ink)}
.rep-lead,.rep-col{border-radius:22px}
@media(max-width:700px){.cols-rep{grid-template-columns:minmax(0,1fr) auto 52px}.cols-rep>.cell{display:none}.rep-earn-grid{grid-template-columns:1fr 1fr 1fr}}
.rep-top{padding:12px max(20px,calc((100vw - 1440px)/2 + 20px))}
@media(max-width:700px){.row-quick .mini-round+.mini-round{display:none}}
/* Adam's calendar (rep portal): his week, open times, and the rep's own calls. */
.rep-cal{display:grid;gap:18px}
.rep-cal-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rep-cal-nav strong{font-size:15px;font-weight:600}
.rep-cal-nav-btns{display:flex;gap:8px}
.rep-cal-week{display:grid;grid-template-columns:repeat(var(--cal-cols,7),minmax(0,1fr));gap:10px}
.rep-cal-day{display:grid;gap:8px;align-content:start;min-width:0;padding:12px;border-radius:18px;background:var(--sunken);border:1px solid transparent}
.rep-cal-day.is-today{border-color:var(--hl)}
.rep-cal-day-head{display:flex;align-items:baseline;gap:6px;padding:0 2px 4px}
.rep-cal-day-head span{font-size:12px;color:var(--muted);font-weight:600}
.rep-cal-day-head strong{font-size:18px;font-weight:600;color:var(--ink)}
.rep-cal-busy{display:grid;gap:1px;padding:7px 10px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:12px;min-width:0}
.rep-cal-busy span{color:var(--muted)}
.rep-cal-busy strong{font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-cal-busy.is-yours{background:var(--hl-soft);border-color:var(--hl)}
.rep-cal-slots{display:flex;flex-wrap:wrap;gap:6px}
.rep-cal-slot,.rep-cal-slot:not([class]){display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.rep-cal-slot:hover:not(:disabled){background:var(--hl);border-color:var(--hl);color:var(--hl-ink)}
.rep-cal-slot:disabled{cursor:default;opacity:.7}
.rep-cal-calls{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rep-cal-call{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--sunken)}
.rep-cal-call>.icon{color:var(--hl-strong);flex:none}
.rep-cal-call-text{display:grid;min-width:0;flex:1}
.rep-cal-call-text strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-cal-call-text span{font-size:12.5px;color:var(--muted)}
.rep-cal-call-acts{display:flex;gap:12px;flex:none}
.rep-book{display:grid;gap:16px}
.rep-book select,.rep-book textarea{width:100%}
.rep-book-when{display:grid;gap:10px}
.rep-book-days{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.rep-book-days .rep-chip{flex:none;cursor:pointer}
.rep-book-days .rep-chip.is-on{background:var(--hl);border-color:var(--hl);color:var(--hl-ink)}
.rep-book-days .rep-chip.is-on small{color:var(--hl-ink)}
.rep-book-picked{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-radius:16px;background:var(--hl-soft)}
.rep-book-picked strong{font-weight:600}
.rep-book-picked .link-button{margin-left:auto}
.rep-invite{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--text)}
.rep-invite input{margin-top:3px}
@media(max-width:1100px){.rep-cal-week{grid-template-columns:repeat(min(4,var(--cal-cols,7)),minmax(0,1fr))}}
.rep-cal-strip{display:none}
@media(max-width:700px){.rep-cal-strip{display:flex}.rep-cal-week{grid-template-columns:minmax(0,1fr)}.rep-cal-day:not(.is-picked){display:none}.rep-cal-day{border-color:transparent}.rep-cal-day-head{display:none}.rep-cal-slot{min-height:40px;padding:0 14px}.rep-cal-call{flex-wrap:wrap}.rep-cal-call-acts{width:100%;justify-content:flex-end}}
/* The studio's Calendar page: the booking-hours form (public/calendar-admin.js). */
.cal-days{display:flex;gap:6px;flex-wrap:wrap}
.cal-days button,.cal-days button:not([class]){width:44px;height:40px;min-height:0;padding:0;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.cal-days button[aria-pressed="true"]{background:var(--hl);border-color:var(--hl);color:var(--hl-ink)}
.cal-form{display:grid;gap:16px}
.cal-form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.cal-form input[type="time"],.cal-form select{width:100%}
.cal-account{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cal-account strong{font-weight:600}
.sales-admin-cal{display:grid;gap:18px}
.sales-admin-cal .rep-remove{justify-self:start}
/* The Calendar page on phones: the seven days fit one row, and the settings sit two to a row. */
@media(max-width:700px){
  .cal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
  .cal-days button,.cal-days button:not([class]){width:auto;height:38px;font-size:12px}
  .cal-form{gap:14px}
  .cal-form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .cal-form-row .field-label{font-size:12px}
  .cal-form input[type="time"],.cal-form select{min-width:0;font-size:15px}
  .cal-account{gap:8px}
  .cal-account strong{overflow-wrap:anywhere}
  .sales-admin-cal .rep-card{padding:18px}
}
.sales-hidden-note{margin:0 0 10px}
.rep-who{position:relative}.rep-who.has-unread::after{content:"";position:absolute;top:2px;right:2px;width:10px;height:10px;border-radius:50%;background:var(--hl);box-shadow:0 0 0 2px var(--paper)}
/* The account chip: the name beside the avatar (the email is in the menu); on phones, just the round avatar. */
.rep-who-text strong{max-width:180px}
@media(max-width:1020px){.rep-who{padding:3px;gap:0;border-radius:50%}}
/* ---------- The Playbook, redone 2026-11-04 (public/rep-portal.js playbook()) ----------
   Two tabs: "For your calls" (the call parts in cards, with My notes beside them) and "Learn the basics" (a table of
   contents, then one section at a time). */
.pb-tabs{margin:0 0 18px}
.pb-call{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px;align-items:start}
.pb-call-main{display:grid;gap:16px;min-width:0}
.pb-call-main>.rep-pitch-now{border-radius:var(--radius-lg);padding:22px 24px}
.pb-call-main>.rep-pitch-block{gap:12px}
.pb-call-side{position:sticky;top:84px;min-width:0}
.pb-ask-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pb-ask-item{display:flex;align-items:flex-start;gap:12px;padding:11px 14px;border-radius:16px;background:var(--sunken);cursor:pointer;font-size:14.5px;line-height:1.45;font-weight:500;color:var(--ink);transition:background .2s,color .2s}
.pb-ask-item input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--hl-strong);cursor:pointer}
.pb-ask-item:has(input:checked){color:var(--muted);background:color-mix(in srgb,var(--sunken) 55%,transparent)}
.pb-ask-item:has(input:checked) span{text-decoration:line-through;text-decoration-color:var(--faint)}
.pb-ask .rep-hint{margin:0;font-size:12.5px}
.pb-fresh{justify-self:start;font-size:13px}
.pb-notes{display:grid;gap:10px;min-width:0}
.pb-notes-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.pb-notes-head h3{font-size:16px;font-weight:600;letter-spacing:-.02em}
.rep-pitch .pb-notes-head h3{font-size:11.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.pb-notes-status{font-size:12px;color:var(--muted);white-space:nowrap}
.pb-notes textarea{width:100%;min-height:150px;resize:vertical;border-radius:16px;padding:14px 16px;line-height:1.55;font-size:14.5px;background:var(--sunken);border:1px solid transparent}
.pb-notes textarea:focus{background:var(--surface);border-color:var(--hl)}
.pb-call-side .pb-notes textarea{min-height:min(420px,calc(100vh - 260px))}
.pb-notes textarea[readonly]{opacity:.75}
/* Learn the basics */
.pb-learn{display:grid;gap:14px;max-width:860px}
.pb-learn-progress{display:flex;align-items:center;gap:14px;padding:0 4px;font-size:13.5px;color:var(--muted)}
.pb-learn-progress span{flex:1}
.pb-learn-progress .sales-meter{flex:0 0 180px}
.pb-toc{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pb-toc-item,.pb-toc-item:not([class]){display:flex;align-items:center;gap:14px;width:100%;min-height:0;padding:14px 18px 14px 14px;border-radius:22px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s,transform .2s var(--ease)}
.pb-toc-item:hover{border-color:var(--hl)}
.pb-toc-item:active{transform:scale(.99)}
.pb-toc-item.is-read{box-shadow:none;background:color-mix(in srgb,var(--surface) 55%,var(--sunken))}
.pb-num{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:var(--hl);color:var(--hl-ink);font-size:13px;font-weight:600}
.pb-toc-item.is-read .pb-num{background:var(--success-soft);color:var(--success)}
.pb-num .icon{width:16px;height:16px}
.pb-toc-text{display:grid;gap:1px;flex:1;min-width:0}
.pb-toc-text strong{font-size:15px;font-weight:600;letter-spacing:-.015em}
.pb-toc-text small{font-size:12px;color:var(--muted)}
.pb-toc-item>.icon:last-child{flex:none;color:var(--faint)}
.pb-reader{gap:18px;padding:26px 30px 24px}
.pb-back,.pb-back:not([class]){justify-self:start;display:inline-flex;align-items:center;gap:6px;min-height:0;padding:7px 13px 7px 9px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.pb-back .icon{width:16px;height:16px}
.pb-reader-head{display:grid;gap:6px;justify-items:start}
.pb-reader-head small{font-size:12px;font-weight:600;color:var(--muted)}
.pb-reader-head h2{font-size:26px;font-weight:600;letter-spacing:-.03em;line-height:1.15}
.pb-reader>.sales-rich{font-size:15.5px;line-height:1.65;max-width:68ch}
.pb-reader-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:16px;border-top:1px solid var(--line)}
.pb-step,.pb-step:not([class]){display:grid;gap:2px;min-width:0;min-height:0;padding:13px 16px;border-radius:18px;border:1px solid var(--line);background:var(--sunken);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .2s}
.pb-step:hover{border-color:var(--hl)}
.pb-step small{font-size:11.5px;color:var(--muted);font-weight:600}
.pb-step strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-step.is-next{grid-column:2;text-align:right;background:var(--hl);border-color:var(--hl);color:var(--hl-ink)}
.pb-step.is-next small{color:var(--hl-ink);opacity:.75}
@media(max-width:980px){
  .pb-call{grid-template-columns:minmax(0,1fr)}
  .pb-call-side{position:static}
  .pb-call-side .pb-notes textarea{min-height:200px}
}
@media(max-width:640px){
  .pb-tabs{display:flex;width:100%}
  .pb-tabs .sales-segment{flex:1;justify-content:center;padding:8px 6px;font-size:12.5px}
  .pb-call-main>.rep-pitch-now{padding:18px 20px}
  .pb-learn-progress{flex-wrap:wrap}
  .pb-learn-progress .sales-meter{flex:1 0 100%}
  .pb-reader{padding:18px 18px 18px}
  .pb-reader-head h2{font-size:22px}
  .pb-reader-nav{grid-template-columns:minmax(0,1fr)}
  .pb-step.is-next{grid-column:1}
}
.pb-tab-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--hl);color:var(--hl-ink);font-size:10.5px;font-weight:600}
.sales-segment[aria-checked="true"] .pb-tab-count{background:var(--hl-ink);color:var(--hl)}
.pb-tabs{justify-self:start;width:fit-content}
/* Narrower screens: one column, with My notes right under Ask them instead of at the very end. */
@media(max-width:980px){
  .pb-call{display:flex;flex-direction:column;align-items:stretch;gap:16px}
  .pb-call-main,.pb-call-side{display:contents}
  .pb-call-main>.rep-pitch-now{order:1}
  .pb-call-main>.pb-ask{order:2}
  .pb-call-side>.pb-notes{order:3}
  .pb-call-main>.rep-pitch-block:not(.pb-ask){order:4}
  .pb-call-side .pb-notes textarea{min-height:160px}
}
@media(max-width:640px){.pb-tabs{width:100%}}
/* Tablets and small laptops: the top menu has seven pages, so only the open one keeps its name (the rest show their
   icon, named on hover), and nothing runs off the right edge. */
@media(min-width:761px) and (max-width:1320px){
  .rep-nav-link:not([aria-current="page"]) span{display:none}
  .rep-nav-link:not([aria-current="page"]){padding:9px 12px}
}
/* Paid automatically through Stripe (0059): the rep's Earnings card, and the studio's notes. */
.rep-payouts-body{display:grid;gap:12px;justify-items:start}
.rep-payouts-text{margin:0;font-size:14px;line-height:1.6;color:var(--text);max-width:70ch}
.rep-payouts.is-ready{border-color:var(--hl)}
.sales-pay-held{color:#c2410c!important;white-space:normal!important}
.sales-pay-auto{color:var(--hl-strong)!important}
.sales-pay-note{margin:0;padding:12px 22px 16px;font-size:12.5px}
.sales-payouts-line{margin:4px 0 0;padding:10px 14px;border-radius:14px;background:var(--sunken);font-size:13px}
.sales-payouts-line.is-on{background:var(--hl-soft);color:var(--ink)}
.rep-cal-week{max-width:calc(var(--cal-cols,7) * 360px)}
/* The business sheet's stage (2026-11-04): one track forward, "Said no" apart. */
.rep-stepper{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:0;background:none;border:0}
.rep-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.rep-track-step,.rep-track-step:not([class]){display:grid;gap:8px;min-height:0;padding:6px 2px 4px;border:0;background:none;color:var(--muted);font:inherit;font-size:12.5px;font-weight:500;text-align:left;cursor:pointer}
.rep-track-bar{display:block;height:8px;border-radius:999px;background:var(--sunken);border:1px solid var(--line);transition:background .25s}
.rep-track-step.is-done .rep-track-bar{background:var(--hl);border-color:var(--hl)}
.rep-track-step.is-on{color:var(--ink);font-weight:600}
.rep-track-step:hover:not(:disabled) .rep-track-bar{border-color:var(--hl)}
.rep-track-step:disabled{cursor:default}
.rep-track-label{line-height:1.3;overflow-wrap:anywhere}
.rep-track-no{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.rep-track-no.is-on{padding:10px 12px;border-radius:12px;background:var(--sunken);color:var(--text)}
.rep-track-no .icon{width:16px;height:16px;flex:none}
.rep-track-no .link-button{font-size:13px}
.rep-track-label{overflow-wrap:normal;word-break:normal;hyphens:none}
@media(max-width:520px){.rep-track{gap:4px}.rep-track-step,.rep-track-step:not([class]){font-size:11px;letter-spacing:-.01em}}
/* Messages: Clients and Businesses (email with businesses, src/rep-mail.js). */
.msg-kinds{justify-self:start;margin-bottom:4px}
.rep-pick-business{gap:12px}
.rep-pick-list{display:grid;gap:6px;max-height:min(60vh,520px);overflow:auto}
.rep-pick-row,.rep-pick-row:not([class]){display:flex;align-items:center;gap:10px;width:100%;min-height:0;padding:12px 14px;border:0;border-radius:16px;background:var(--sunken);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.rep-pick-row:hover{background:var(--hover)}
.rep-pick-text{display:grid;gap:1px;flex:1;min-width:0}
.rep-pick-text strong{font-weight:600;font-size:14.5px}
.rep-pick-text small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-pick-row>.icon{flex:none;color:var(--faint)}
.sales-mail-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sales-mail{padding:12px 14px;border-radius:16px;background:var(--sunken)}
.sales-mail.is-out{background:var(--hl-soft)}
.sales-mail-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:4px}
.sales-mail-head strong{font-size:13.5px;font-weight:600}
.sales-mail-head small{font-size:12px;color:var(--muted)}
.sales-mail p{margin:0;white-space:pre-wrap;font-size:13.5px;line-height:1.55;color:var(--text);overflow-wrap:anywhere}
.sales-mail-file{display:inline-block;margin-top:6px;font-size:12.5px}
/* Add a business, simplified (2026-11-09). */
.rep-add-talk{width:100%}
.rep-add-talk .sales-segment{flex:1;justify-content:center}
.rep-add-reach{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rep-add-reach input{min-width:0}
@media(max-width:640px){.rep-add-reach{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rep-add-reach input[type="email"]{grid-column:1/-1}}
/* The business page, simplified (2026-11-09). */
.rep-sheet-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:2px 0 0;font-size:13.5px}
.rep-sheet-links .link-button{font-size:13.5px}
.rep-dot-sep{color:var(--faint)}
.rep-follow-row{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:14px}
.rep-follow-row>h3{margin:0}
.rep-follow-row>.rep-follow-now{margin:0}
.rep-follow-row>.rep-follow-opts,.rep-follow-row>.rep-hint{grid-column:1/-1}
.rep-fold{border-radius:16px;background:var(--sunken)}
.rep-fold>summary{display:flex;align-items:center;gap:10px;padding:14px 16px;cursor:pointer;list-style:none}
.rep-fold>summary::-webkit-details-marker{display:none}
.rep-fold>summary span{font-weight:600;font-size:14.5px;color:var(--ink)}
.rep-fold>summary small{flex:1;font-size:12.5px;color:var(--muted)}
.rep-fold>summary .icon{flex:none;color:var(--faint);transition:transform .2s var(--ease)}
.rep-fold[open]>summary .icon{transform:rotate(90deg)}
.rep-fold>.rep-details{padding:0 16px 16px}
.rep-history-more{justify-self:start;font-size:13px}
.rep-codes.is-compact .rep-code{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 10px;padding:10px 12px}
.rep-codes.is-compact .rep-code small{grid-column:1}
.rep-codes.is-compact .rep-code strong{grid-column:1;font-size:16px}
.rep-codes.is-compact .rep-code .copy-button,.rep-codes.is-compact .rep-code button{grid-column:2;grid-row:1/span 2}
/* Home, simplified (2026-11-09). */
.rep-home-say{margin:-6px 0 4px;font-size:17px;line-height:1.5;color:var(--text)}
.rep-home-say strong{color:var(--ink);font-weight:600}
.rep-home-say a{color:var(--hl-strong);font-weight:600}
.rep-today .pill-list{gap:8px}
.rep-today-more{justify-self:start;margin:4px 0 0 6px}
a.rep-home-money{display:grid;gap:8px;text-decoration:none;color:inherit;transition:border-color .2s}
a.rep-home-money:hover{border-color:var(--hl)}
.rep-home-money-line{margin:0;font-size:14.5px;line-height:1.55;color:var(--muted)}
.rep-home-money-line strong{color:var(--ink);font-weight:600;font-size:17px}
/* Phones: Today first, then the week, the turnaround, and money. */
@media(max-width:900px){
  .home-dashboard .rep-home .rep-today{order:1}
  .home-dashboard .rep-home .rep-goal{order:2}
  .home-dashboard .rep-home .hl-card{order:3}
  .home-dashboard .rep-home .rep-home-money{order:4}
}
/* Earnings, simplified (2026-11-09). */
.rep-earn-hero{gap:6px}
.rep-earn-hero small{font-size:13px;font-weight:600;color:var(--muted)}
.rep-earn-hero strong{font-size:48px;font-weight:600;letter-spacing:-.03em;line-height:1.05;color:var(--ink)}
.rep-earn-hero p{margin:4px 0 0;font-size:14.5px;line-height:1.55;color:var(--text);max-width:70ch}
.rep-earn-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start}
.rep-earn-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.rep-earn-row{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 16px;border-radius:18px;background:var(--sunken)}
.rep-earn-text{display:grid;gap:1px;flex:1;min-width:0}
.rep-earn-text strong{font-size:14.5px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rep-earn-text small{font-size:12.5px;color:var(--muted)}
.rep-earn-text small.is-paid{color:var(--success)}
.rep-earn-amount{flex:none;font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.rep-earn-amount.is-paid{color:var(--muted)}
.rep-earn-csv{justify-self:start;font-size:13px;margin-top:4px}
@media(max-width:900px){.rep-earn-cols{grid-template-columns:minmax(0,1fr)}.rep-earn-hero strong{font-size:40px}}
.rep-earn-hero .rep-earn-sums{margin-top:8px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted)}
.rep-earn-hero .rep-earn-sums strong{font-size:15px;letter-spacing:0;color:var(--ink);font-weight:600}
/* Adam's calendar for reps, simplified (2026-11-09). */
.rep-cal-range{display:grid;gap:1px}
.rep-cal-range small{font-size:12.5px;color:var(--muted)}
.rep-cal-step{width:40px;height:40px;box-shadow:none}
.rep-cal-step:disabled{opacity:.4;cursor:default}
.rep-cal-step .icon{width:18px;height:18px}
.rep-cal-nav{flex-wrap:nowrap}
.rep-cal-range{min-width:0}
.rep-cal-nav-btns{flex:none}
/* Phones: the rep's tab bar is a solid bar along the bottom edge, its color filling the strip under Safari's floating
   address bar too (like the studio's dock, Adam 2026-11-04). */
@media(max-width:760px){
  .rep-tabbar{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 -8px 24px rgba(0,0,0,.12)}
  .rep-tabbar::after{content:"";position:absolute;left:0;right:0;top:100%;height:240px;background:var(--surface);pointer-events:none}
}
/* The + in the rep's phone bar: its ring matches the bar and no shadow falls on it (Adam, 2026-11-09). */
@media(max-width:760px){.rep-fab{box-shadow:0 0 0 5px var(--surface)}}

/* The app slides between the bottom bar's pages itself (public/app-mode.js), so the page doesn't also rise in. */
html.is-sliding .rep-view.is-entering,html.is-sliding .is-entering .rep-stats>*{animation:none}

/* Phones: the rep's picture in the top bar is just the picture, like the studio's (no bordered, shadowed ring). */
@media(max-width:1020px){.rep-who,.rep-who:hover,.rep-who[aria-expanded="true"]{padding:0;border:0;background:none;box-shadow:none}.rep-who.has-unread::after{top:0;right:0}}
