/* Heighliner: feature pages (ops, earnings, recruiting, payroll, crew, territories, Navigator AI).
   Builds on index.html's tokens and components (.card, .eyebrow, .seg, .pill, .dune, .wide, .cond). */

.view[hidden] { display: none !important; }
.view { display: flex; flex-direction: column; gap: 22px; container-type: inline-size; }

/* ---------- shared bits ---------- */
.sample { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); border: 1px dashed hsl(var(--border)); background: #000a; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ptitle { margin: 4px 0 0; font-family: var(--font-display); font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: 12.5px; }
.grid2 { display: grid; gap: 22px; grid-template-columns: 1fr; }
@container (min-width: 860px) { .grid2 { grid-template-columns: 1.45fr 1fr; } .grid2.even { grid-template-columns: 1fr 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: var(--gradient-primary); color: hsl(var(--primary-foreground)); box-shadow: var(--glow-sm); transition: filter .2s, transform .2s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.btn.ghost { background: hsl(var(--card-hover)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); box-shadow: none; }
.btn.light { background: hsl(var(--foreground)); color: #000; box-shadow: 0 8px 24px -8px #000; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border)); background: hsl(var(--background-secondary)); transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { color: hsl(var(--foreground)); }
.chip[aria-pressed="true"] { color: hsl(var(--foreground)); border-color: hsl(var(--primary) / .5); background: hsl(var(--primary) / .12); box-shadow: var(--glow-sm); }
.chip b { font-family: var(--font-display); font-weight: 800; color: hsl(var(--gold)); }

.field { display: grid; gap: 6px; }
.field span { font-size: 12px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--background-secondary));
  color: hsl(var(--foreground)); font: inherit; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: hsl(var(--primary) / .6); box-shadow: 0 0 0 3px hsl(var(--primary) / .15); }
.input.num { width: 92px; height: 36px; text-align: right; font-family: var(--font-display); font-weight: 800; }

.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap;
  border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); background: hsl(var(--background-secondary)); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 6px; background: currentColor; }
.status.ok { color: hsl(var(--success)); border-color: hsl(var(--success) / .35); background: hsl(var(--success) / .08); }
.status.warn { color: hsl(var(--warning)); border-color: hsl(var(--warning) / .35); background: hsl(var(--warning) / .08); }
.status.bad { color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / .35); background: hsl(var(--destructive) / .08); }
.status.hot { color: hsl(var(--gold)); border-color: hsl(var(--gold) / .35); background: hsl(var(--gold) / .08); }

.live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: hsl(var(--primary-hover)); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 9px; background: hsl(var(--primary)); box-shadow: 0 0 0 0 hsl(var(--primary) / .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px hsl(var(--primary) / 0); } }

.ini { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  color: #1a0d08; background: linear-gradient(140deg, hsl(var(--gold)), hsl(var(--primary))); }
.ini.cool { background: linear-gradient(140deg, #fff1cf, hsl(var(--amber))); }
.ini.deep { background: linear-gradient(140deg, hsl(var(--primary-hover)), hsl(var(--brick))); color: #fff3e6; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { padding: 16px 16px 14px; border-radius: 20px; container-type: inline-size; }
.kpi .lbl { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.kpi .v { display: block; margin-top: 8px; font-size: min(30px, 15cqw); line-height: 1; white-space: nowrap; }
.kpi .d { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.kpi .d b { color: hsl(var(--success)); font-weight: 800; }
.kpi.hot { background: radial-gradient(120% 90% at 100% 0%, hsl(var(--primary) / .22), transparent 60%), var(--gradient-card); border-color: hsl(var(--primary) / .3); }
.kpi.hot .v { color: hsl(var(--gold)); }

/* ---------- column chart (single series, ember) ---------- */
.colchart { position: relative; height: 150px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; align-items: end;
  border-bottom: 1px solid hsl(var(--border)); padding-top: 18px; }
.colchart .c { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.colchart .c i { display: block; width: min(70%, 22px); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, hsl(var(--primary-hover)), hsl(var(--brick)));
  transition: filter .15s; min-height: 2px; position: relative; }
.colchart .c:hover i, .colchart .c:focus-visible i { filter: brightness(1.25); }
.colchart .c.peak i { background: linear-gradient(180deg, hsl(var(--gold)), hsl(var(--primary))); }
.colchart .c .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; pointer-events: none;
  padding: 6px 9px; border-radius: 10px; background: hsl(var(--popover)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-lg); font-size: 12px; opacity: 0; transition: opacity .12s; }
.colchart .c:hover .tip, .colchart .c:focus-visible .tip { opacity: 1; }
.colchart .c .tip b { font-family: var(--font-display); }
.colchart .peak-lbl { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 11px; font-weight: 800; color: hsl(var(--gold)); }
.axis { white-space: nowrap; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; margin-top: 6px; font-size: 10.5px; color: hsl(var(--muted-foreground)); text-align: center; }

.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 96px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; font-weight: 700; }
.hbar .track { height: 10px; border-radius: 0 4px 4px 0; background: hsl(var(--muted)); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--gradient-primary); }
.hbar b { text-align: right; font-family: var(--font-display); }

/* ---------- live feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feed li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.feed li:hover { background: hsl(var(--card-hover)); }
.feed img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.feed p { margin: 0; font-size: 13.5px; line-height: 1.35; }
.feed small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.feed .amt { font-family: var(--font-display); font-weight: 800; color: hsl(var(--gold)); font-size: 14px; }
@container (min-width: 760px) { .feed.two { grid-template-columns: 1fr 1fr; column-gap: 14px; } }
.feed li.fresh { background: linear-gradient(90deg, hsl(var(--primary) / .16), transparent); }

/* ---------- data table ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); padding: 0 10px 10px; white-space: nowrap; }
.tbl th button { display: inline-flex; align-items: center; gap: 4px; letter-spacing: inherit; text-transform: inherit; font-weight: inherit; }
.tbl th button[aria-sort="descending"]::after { content: "↓"; color: hsl(var(--primary)); }
.tbl th button[aria-sort="ascending"]::after { content: "↑"; color: hsl(var(--primary)); }
.tbl td { padding: 9px 10px; border-top: 1px solid hsl(var(--border) / .7); vertical-align: middle; }
.tbl tr:hover td { background: hsl(var(--card-hover) / .6); }
.tbl .num { text-align: right; font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.tbl .person { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.tbl .person img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.tbl tr.is-me td { background: hsl(var(--primary) / .08); }
.rate { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.rate .track { flex: 1; height: 4px; border-radius: 4px; background: hsl(var(--muted)); overflow: hidden; }
.rate .track i { display: block; height: 100%; background: var(--gradient-primary); border-radius: 4px; }
.rate b { font-family: var(--font-display); font-size: 12.5px; width: 36px; text-align: right; }
.streak { display: inline-flex; align-items: center; gap: 4px; color: hsl(var(--gold)); font-weight: 800; font-family: var(--font-display); }
.streak .icon { width: 14px; height: 14px; color: hsl(var(--primary)); }
.tbl-wrap { overflow-x: auto; margin: 0 -10px; }
@media (max-width: 640px) {
  .tbl .hide-sm { display: none; }
  .tbl td, .tbl th { padding-left: 6px; padding-right: 6px; }
  .rate { min-width: 84px; }
  .tbl .person .you { display: none; }
}

/* ---------- earnings ---------- */
.earn-hero { position: relative; overflow: hidden; padding: 24px; display: grid; gap: 18px; isolation: isolate; background: #000; }
.earn-hero .heat { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 75%); mask-image: linear-gradient(100deg, transparent 25%, #000 75%); overflow: hidden; }
.earn-hero .big { font-size: clamp(48px, 11vw, 84px); line-height: .9; margin: 10px 0 4px; filter: drop-shadow(0 2px 20px #000); }
.earn-split { display: flex; flex-wrap: wrap; gap: 10px; }
.earn-split div { padding: 10px 14px; border-radius: 14px; background: #000b; border: 1px solid hsl(var(--border)); backdrop-filter: blur(8px); }
.earn-split small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.earn-split b { font-family: var(--font-display); font-size: 18px; }

.tier { display: grid; gap: 10px; }
.tier-track { position: relative; height: 12px; border-radius: 12px; background: hsl(var(--muted)); }
.tier-track i { position: absolute; inset: 0 auto 0 0; border-radius: 12px; background: var(--gradient-ember); box-shadow: var(--glow-sm); }
.tier-track .mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: hsl(var(--foreground) / .6); border-radius: 2px; }
.tier-labels { position: relative; height: 30px; font-size: 11.5px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.tier-labels span { position: absolute; transform: translateX(-50%); text-align: center; line-height: 1.2; white-space: nowrap; }
.tier-labels span:first-child { transform: none; text-align: left; }
.tier-labels span:last-child { transform: translateX(-100%); text-align: right; }
.tier-labels b { display: block; color: hsl(var(--foreground)); }

/* receipt: Wrapped-style thermal-paper stub */
.receipt { --paper: #fff3d6; position: relative; color: #1a100b; background: var(--paper); padding: 22px 22px 30px; border-radius: 6px 6px 0 0;
  font-family: var(--font-display); font-stretch: 75%; font-variation-settings: "wdth" 75; box-shadow: 0 30px 60px -30px hsl(var(--primary) / .5);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x; }
.receipt h3 { margin: 0; font-family: var(--font-brand); font-weight: 400; font-size: 18px; letter-spacing: .08em; text-align: center; }
.receipt .sub { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin: 6px 0 14px; }
.receipt hr { border: 0; border-top: 2px dashed #1a100b40; margin: 12px 0; }
.receipt .line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; font-weight: 700; padding: 5px 0; }
.receipt .line small { grid-column: 1; font-size: 11.5px; font-weight: 600; opacity: .6; letter-spacing: .02em; }
.receipt .line .r { text-align: right; font-weight: 900; }
.receipt .line.dim { opacity: .55; }
.receipt .total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .06em; }
.receipt .total b { font-size: 34px; letter-spacing: -.02em; font-stretch: 100%; font-variation-settings: "wdth" 100; }
.receipt .barcode { height: 34px; margin-top: 14px; background: repeating-linear-gradient(90deg, #1a100b 0 2px, transparent 2px 4px, #1a100b 4px 5px, transparent 5px 8px, #1a100b 8px 11px, transparent 11px 12px); opacity: .85; }

/* ---------- commission ladder ---------- */
.ladder { display: grid; gap: 0; }
.rung { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.rung::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: hsl(var(--border)); }
.rung:first-child::before { top: 50%; } .rung:last-child::before { bottom: 50%; }
.rung .dot { position: relative; width: 22px; height: 22px; border-radius: 22px; display: grid; place-items: center; background: hsl(var(--card)); border: 2px solid hsl(var(--primary) / .6); }
.rung .dot::after { content: ""; width: 8px; height: 8px; border-radius: 8px; background: hsl(var(--primary)); }
.rung.base .dot { border-color: hsl(var(--gold)); } .rung.base .dot::after { background: hsl(var(--gold)); }
.rung p { margin: 0; font-weight: 700; font-size: 14px; }
.rung small { display: block; color: hsl(var(--muted-foreground)); font-size: 12px; font-weight: 600; }
.rung .amt { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.rung.total { margin-top: 6px; padding-top: 16px; border-top: 1px dashed hsl(var(--border)); }
.rung.total::before { display: none; }
.rung.total .amt { font-size: 26px; color: hsl(var(--gold)); }
.prod-tbl td .input.num { margin-left: auto; display: block; }
.dollar { position: relative; display: inline-block; }
.dollar::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: hsl(var(--muted-foreground)); font-weight: 800; font-size: 13px; pointer-events: none; }
.dollar .input.num { padding-left: 20px; }

/* ---------- payroll ---------- */
.pay-item { display: grid; grid-template-columns: 22px 36px 1fr auto auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; transition: background .2s, opacity .3s; }
.pay-item:hover { background: hsl(var(--card-hover)); }
.pay-item img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.pay-item p { margin: 0; font-weight: 700; font-size: 14px; }
.pay-item small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.pay-item .amt { font-family: var(--font-display); font-weight: 800; font-size: 16px; text-align: right; }
.pay-item .acts { display: flex; gap: 6px; }
.pay-item.done { opacity: .5; }
.pay-item.flag { box-shadow: inset 0 0 0 1px hsl(var(--warning) / .35); background: hsl(var(--warning) / .05); }
.pay-item input[type=checkbox] { width: 18px; height: 18px; accent-color: hsl(var(--primary)); }
@media (max-width: 640px) {
  .pay-item { grid-template-columns: 22px 36px 1fr auto; }
  .pay-item .acts { grid-column: 3 / -1; justify-content: flex-end; }
  .pay-item .amt br, .pay-item .amt small { display: none; }
}
.flag-note { display: inline-flex; align-items: center; gap: 5px; color: hsl(var(--warning)); font-weight: 700; }
.flag-note .icon { width: 13px; height: 13px; }

/* ---------- recruiting kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 82%); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
@container (min-width: 900px) { .kanban { grid-auto-flow: row; grid-template-columns: repeat(var(--lanes, 5), minmax(0, 1fr)); overflow: visible; } .lane { padding: 10px; } .rcard { padding: 10px; } }
.lane { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px; background: hsl(var(--background-secondary)); border: 1px solid hsl(var(--border)); min-height: 220px; }
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; }
.lane-head b { font-size: 13px; font-weight: 800; }
.lane-head span { font-family: var(--font-display); font-weight: 800; font-size: 12px; color: hsl(var(--muted-foreground)); padding: 2px 8px; border-radius: 99px; background: hsl(var(--card-hover)); }
.lane.active-lane { border-color: hsl(var(--primary) / .35); background: radial-gradient(100% 60% at 50% 0%, hsl(var(--primary) / .1), transparent), hsl(var(--background-secondary)); }
.rcard { padding: 12px; border-radius: 14px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); display: grid; gap: 10px; animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.rcard .top { display: flex; align-items: center; gap: 10px; }
.rcard .top p { margin: 0; font-weight: 700; font-size: 14px; }
.rcard .top small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.creds { display: flex; flex-wrap: wrap; gap: 5px; }
.cred { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.cred.ok { color: hsl(var(--success)); border-color: hsl(var(--success) / .35); }
.rcard .foot { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.rcard .foot .late { color: hsl(var(--warning)); font-weight: 700; }
.adv { height: 30px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px;
  background: hsl(var(--primary) / .14); color: hsl(var(--primary-hover)); border: 1px solid hsl(var(--primary) / .3); }
.adv:hover { background: hsl(var(--primary) / .22); }
.adv .icon { width: 14px; height: 14px; }

/* ---------- crew ---------- */
.composer { padding: 16px; display: grid; gap: 12px; }
.composer .row1 { display: flex; gap: 12px; align-items: flex-start; }
.composer img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.composer .cbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; height: auto; background: none; max-width: none; overflow: visible; }
.post { padding: 16px 18px; display: grid; gap: 12px; animation: rise .4s cubic-bezier(.2,.8,.2,1) both; }
.post .who-row { display: flex; align-items: center; gap: 12px; }
.post .who-row img, .post .who-row .ini { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.post .who-row p { margin: 0; font-weight: 700; font-size: 14px; }
.post .who-row small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.post .body { margin: 0; font-size: 14.5px; line-height: 1.55; }
.post.auto { background: radial-gradient(80% 120% at 100% 0%, hsl(var(--primary) / .1), transparent 60%), var(--gradient-card); }
.post .badge { margin-left: auto; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.react { height: 32px; padding: 0 11px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800;
  border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); background: hsl(var(--background-secondary)); transition: all .15s; }
.react .icon { width: 15px; height: 15px; }
.react[aria-pressed="true"] { color: hsl(var(--gold)); border-color: hsl(var(--primary) / .45); background: hsl(var(--primary) / .12); }
.react[aria-pressed="true"] .icon { color: hsl(var(--primary)); }
.react:active { transform: scale(.94); }
.big-stat { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #000a; border: 1px solid hsl(var(--border)); }
.big-stat b { font-size: 30px; line-height: 1; }

/* ---------- placeholder ---------- */
.placeholder { padding: 40px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.placeholder .icon { width: 36px; height: 36px; color: hsl(var(--primary)); }
.placeholder p { margin: 0; max-width: 440px; color: hsl(var(--muted-foreground)); }

/* ---------- sheet (modal) ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 90; background: #000c; backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 91; left: 50%; bottom: 0; width: min(520px, 100vw); max-height: 92dvh; overflow: auto; transform: translate(-50%, 104%);
  background: hsl(var(--background-secondary)); border: 1px solid hsl(var(--border)); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-xl);
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom, 0px)); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.sheet.open { transform: translate(-50%, 0); }
@media (min-width: 640px) { .sheet { bottom: 50%; border-radius: 26px; transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  .sheet.open { transform: translate(-50%, 50%); opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: hsl(var(--border)); margin: 0 auto 12px; }
.sheet h2 { margin: 6px 0 4px; font-size: 22px; }
.sheet .x { position: absolute; top: 12px; right: 12px; }
.sheet form, .sheet .stack { display: grid; gap: 16px; margin-top: 14px; }
.preview { padding: 16px; border-radius: 18px; background: #000; border: 1px solid hsl(var(--border)); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview b { font-size: 34px; color: hsl(var(--gold)); line-height: 1; }
.preview small { display: block; color: hsl(var(--muted-foreground)); font-size: 12px; margin-top: 4px; }
.success { text-align: center; padding: 18px 0 6px; display: grid; gap: 8px; justify-items: center; }
.success .tick { width: 64px; height: 64px; border-radius: 64px; display: grid; place-items: center; background: var(--gradient-primary); box-shadow: var(--glow-lg); color: #1a0d08; animation: pop .3s ease-out; }
.success .tick .icon { width: 30px; height: 30px; stroke-width: 2.6; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 999px; background: hsl(var(--popover)); border: 1px solid hsl(var(--primary) / .4); box-shadow: var(--shadow-xl), var(--glow-md);
  transition: transform .4s cubic-bezier(.2,.8,.2,1); font-size: 14px; font-weight: 700; white-space: nowrap; }
.toast.on { transform: translate(-50%, 0); }
.toast .ic { width: 34px; height: 34px; border-radius: 34px; display: grid; place-items: center; background: var(--gradient-primary); color: #1a0d08; }
.toast .ic .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.toast b { font-family: var(--font-display); color: hsl(var(--gold)); }

/* ---------- Navigator (assistant) ---------- */
.nav-ai { position: fixed; z-index: 95; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px)); display: flex; flex-direction: column;
  background: hsl(var(--background-secondary) / .92); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid hsl(var(--border)); border-radius: 24px; box-shadow: var(--shadow-xl); overflow: hidden; isolation: isolate;
  transform: translateX(calc(100% + 24px)); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.nav-ai.open { transform: none; }
@media (max-width: 640px) { .nav-ai { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 88dvh; border-radius: 26px 26px 0 0; transform: translateY(104%); } }
.nav-ai .hd { position: relative; padding: 18px 18px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid hsl(var(--border)); overflow: hidden; }
.nav-ai .hd .heat { position: absolute; inset: 0; z-index: -1; opacity: .55; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.nav-ai .hd h2 { margin: 0; font-size: 17px; }
.nav-ai .hd small { display: block; color: hsl(var(--muted-foreground)); font-size: 12px; }
.nav-ai .hd .icon-btn { margin-left: auto; background: #0008; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; animation: rise .3s cubic-bezier(.2,.8,.2,1) both; }
.msg.mine { align-self: flex-end; background: var(--gradient-primary); color: hsl(var(--primary-foreground)); border-bottom-right-radius: 6px; font-weight: 600; }
.msg.ai { align-self: flex-start; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-bottom-left-radius: 6px; }
.msg.ai p { margin: 0 0 8px; } .msg.ai p:last-child { margin: 0; }
.msg.ai b { color: hsl(var(--gold)); }
.msg .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 4px; }
.msg .trio div { padding: 8px; border-radius: 12px; background: #000; border: 1px solid hsl(var(--border)); text-align: center; }
.msg .trio b { display: block; font-family: var(--font-display); font-size: 18px; color: hsl(var(--foreground)); }
.msg .trio small { font-size: 10.5px; color: hsl(var(--muted-foreground)); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.msg .mini-list { display: grid; gap: 4px; margin: 8px 0 4px; }
.msg .mini-list div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 10px; background: #000; font-size: 13px; }
.msg .go { margin-top: 10px; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 6px; background: hsl(var(--muted-foreground)); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.suggest { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.suggest .chip { flex: none; height: 32px; font-size: 12.5px; }
.ask { display: flex; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid hsl(var(--border)); }
.ask .input { border-radius: 999px; }
.ask .btn { width: 44px; padding: 0; flex: none; }
.scope-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: hsl(var(--muted-foreground)); padding: 0 16px 8px; }
.scope-note .icon { width: 13px; height: 13px; }
.dock .ai { color: hsl(var(--gold)); }
.dock .ai .icon { color: hsl(var(--gold)); }

/* nav extras */
.nav .tag { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: hsl(var(--primary) / .14); color: hsl(var(--primary-hover)); }
.nav-label.mgr { padding-top: 16px; }

/* ---------- earnings: pay steps + backend tracker ---------- */
.paysteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; position: relative; }
.paysteps .step { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; }
.paysteps .step + .step::before { content: ""; position: absolute; left: -10px; top: 50%; width: 10px; height: 2px; background: hsl(var(--border)); }
.paysteps .dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; background: hsl(var(--primary) / .14); color: hsl(var(--primary-hover)); border: 1px solid hsl(var(--primary) / .3); }
.paysteps .dot.gold { background: hsl(var(--gold) / .12); color: hsl(var(--gold)); border-color: hsl(var(--gold) / .3); }
.paysteps .dot .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.paysteps b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.paysteps small { display: block; color: hsl(var(--muted-foreground)); font-size: 12px; line-height: 1.3; }
@container (max-width: 560px) { .paysteps { grid-template-columns: 1fr; gap: 2px; } .paysteps .step + .step::before { left: 25px; top: -4px; width: 2px; height: 8px; } }
.vault { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.vault > div { padding: 14px; border-radius: 16px; background: #000; border: 1px solid hsl(var(--border)); }
.vault small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.vault b { display: block; font-size: 28px; line-height: 1; margin-top: 8px; }
.vault span { display: block; margin-top: 6px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.bk-list { display: grid; gap: 8px; }
.bk { padding: 12px 14px; border-radius: 14px; background: hsl(var(--background-secondary)); border: 1px solid hsl(var(--border)); display: grid; gap: 8px; }
.bk.dim { opacity: .55; border-style: dashed; }
.bk-top { display: flex; justify-content: space-between; gap: 12px; }
.bk-top p { margin: 0; font-weight: 700; font-size: 14px; }
.bk-top small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.bk-top .r { text-align: right; flex: none; }
.bk-top .r b { display: block; font-family: var(--font-display); font-weight: 800; color: hsl(var(--gold)); font-size: 16px; }
.bk-track { height: 6px; border-radius: 6px; background: hsl(var(--muted)); overflow: hidden; }
.bk-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, hsl(var(--brick)), hsl(var(--primary)), hsl(var(--gold))); }
.bk-foot { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: hsl(var(--muted-foreground)); }

/* ---------- schedule ---------- */
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.day { scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 8px; border-radius: 16px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); transition: all .2s; }
.day small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.day b { font-size: 20px; line-height: 1.1; }
.day .dots { display: flex; gap: 3px; height: 6px; }
.day .dots i { width: 5px; height: 5px; border-radius: 5px; background: hsl(var(--primary)); }
.day[aria-selected="true"] { background: var(--gradient-primary); border-color: transparent; color: hsl(var(--primary-foreground)); box-shadow: var(--glow-md); }
.day[aria-selected="true"] small { color: hsl(var(--primary-foreground) / .8); }
.day[aria-selected="true"] .dots i { background: hsl(var(--primary-foreground)); }
.agenda { display: grid; gap: 8px; }
.ag { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: start; }
.ag .t { padding-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.ag .body { padding: 10px 14px; border-radius: 14px; background: hsl(var(--background-secondary)); border: 1px solid hsl(var(--border)); border-left: 3px solid hsl(var(--primary)); }
.ag .body p { margin: 4px 0 2px; font-weight: 700; font-size: 14px; }
.ag .body small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.ag .kind { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--primary-hover)); }
.ag .kind .icon { width: 13px; height: 13px; }
.ag-callback .body { border-left-color: hsl(var(--amber)); } .ag-callback .kind { color: hsl(var(--amber)); }
.ag-team .body, .ag-travel .body { border-left-color: hsl(var(--muted-foreground)); } .ag-team .kind, .ag-travel .kind { color: hsl(var(--foreground)); }
.ag-payout .body, .ag-backend .body { border-left-color: hsl(var(--gold)); background: hsl(var(--gold) / .05); } .ag-payout .kind, .ag-backend .kind { color: hsl(var(--gold)); }

/* ---------- blitz schedule ---------- */
.blitz-live .tier-track { max-width: 520px; }
.blitz-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.bcard { padding: 18px; display: grid; gap: 12px; align-content: start; }
.bcard .bc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bcard h3 { margin: 0; font-size: 18px; line-height: 1.15; }
.spots { display: grid; gap: 8px; }
.spots .tier-track { height: 8px; }
.sp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stack { display: inline-flex; align-items: center; }
.stack img, .stack span { width: 28px; height: 28px; border-radius: 28px; object-fit: cover; border: 2px solid hsl(var(--card)); margin-left: -8px; }
.stack img:first-child { margin-left: 0; }
.stack span { display: grid; place-items: center; background: hsl(var(--card-hover)); font-size: 10.5px; font-weight: 800; }

/* ---------- profile ---------- */
.profile-hero { padding: 22px; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; background: radial-gradient(70% 90% at 0% 0%, hsl(var(--primary) / .16), transparent 60%), var(--gradient-card); }
@container (min-width: 620px) { .profile-hero { grid-template-columns: 200px 1fr; } }
.pf-card { width: min(200px, 60vw); justify-self: center; perspective: 1000px; }
.pf-card .tcard { --tilt: -2deg; }
.pf-info h2 { margin: 8px 0 6px; font-size: clamp(26px, 6cqw, 40px); line-height: 1; }
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.pf-stat { padding: 10px; border-radius: 14px; background: #000; border: 1px solid hsl(var(--border)); text-align: center; }
.pf-stat b { display: block; font-size: 20px; }
.pf-stat small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.badge { position: relative; padding: 14px 12px; border-radius: 16px; border: 1px dashed hsl(var(--border)); display: grid; gap: 4px; justify-items: start; opacity: .6; }
.badge .bi { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); margin-bottom: 4px; }
.badge .bi .icon { width: 17px; height: 17px; }
.badge b { font-size: 13.5px; }
.badge small { font-size: 11.5px; color: hsl(var(--muted-foreground)); line-height: 1.3; }
.badge .prog { position: absolute; top: 12px; right: 12px; font-family: var(--font-display); font-weight: 800; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.badge.on { opacity: 1; border-style: solid; border-color: hsl(var(--primary) / .35); background: radial-gradient(100% 80% at 0% 0%, hsl(var(--primary) / .14), transparent 70%); }
.badge.on .bi { background: var(--gradient-primary); color: hsl(var(--primary-foreground)); box-shadow: var(--glow-sm); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid hsl(var(--border) / .7); }
.set-row:first-of-type { border-top: 0; }
.set-row p { margin: 0; font-weight: 700; font-size: 14px; }
.set-row small { color: hsl(var(--muted-foreground)); font-size: 12px; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 28px; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 20px; background: hsl(var(--muted-foreground)); transition: transform .2s, background .2s; }
.switch[aria-checked="true"] { background: var(--gradient-primary); border-color: transparent; }
.switch[aria-checked="true"] i { transform: translateX(18px); background: #fff8ee; }

/* ---------- under construction ---------- */
.construction { position: relative; padding: 56px 24px 44px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.construction .tape { position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: repeating-linear-gradient(-45deg, hsl(var(--primary)) 0 14px, #000 14px 28px); opacity: .85; }
.construction .cone { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: hsl(var(--primary) / .12); border: 1px solid hsl(var(--primary) / .35); color: hsl(var(--primary)); box-shadow: var(--glow-sm); margin-bottom: 6px; }
.construction .cone .icon { width: 28px; height: 28px; }
.construction h2 { margin: 0; font-size: clamp(20px, 5cqw, 30px); color: hsl(var(--gold)); }
.construction p { margin: 0 0 8px; max-width: 420px; color: hsl(var(--muted-foreground)); }

/* =====================================================================
   REMOTE: Make a sale (order entry wizard) + My orders
   ===================================================================== */
/* stepper */
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.stepper li { position: relative; }
.stepper li + li::before { content: ""; position: absolute; top: 17px; right: calc(50% + 22px); width: calc(100% - 38px); height: 2px; background: hsl(var(--border)); }
.stepper li.done + li::before, .stepper li.done::before { background: hsl(var(--primary) / .6); }
.stepper button { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 0; background: none; color: hsl(var(--muted-foreground)); }
.stepper button[disabled] { cursor: default; opacity: .55; }
.stepper .sd { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 14px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); transition: all .2s; position: relative; z-index: 1; }
.stepper .sd .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper .sl { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.stepper .done .sd { background: hsl(var(--primary) / .14); color: hsl(var(--primary-hover)); border-color: hsl(var(--primary) / .35); }
.stepper .done button { color: hsl(var(--foreground)); }
.stepper .now .sd { background: var(--gradient-primary); color: hsl(var(--primary-foreground)); border-color: transparent; box-shadow: var(--glow-md); }
.stepper .now button { color: hsl(var(--foreground)); }

/* the step card */
.order-grid { align-items: start; }
.ostep { display: grid; gap: 18px; container-type: inline-size; }
.ohead .ptitle { margin: 4px 0 2px; }
.ohead p { margin: 0; }
.fgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@container (min-width: 420px) { .fgrid { grid-template-columns: 1fr 1fr; } .fgrid .span2 { grid-column: 1 / -1; } .fgrid.addr { grid-template-columns: 2fr 1fr 1fr; } .fgrid.addr .span2 { grid-column: 1 / 3; } }
.req { color: hsl(var(--primary)); font-style: normal; }
.input[aria-invalid="true"] { border-color: hsl(var(--destructive) / .7); box-shadow: 0 0 0 3px hsl(var(--destructive) / .12); }
textarea.input { height: 84px; padding: 11px 14px; resize: vertical; font: inherit; }
.ferr { font-style: normal; font-size: 12px; font-weight: 700; color: hsl(var(--destructive)); }
.ferr.block { margin: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: hsl(var(--destructive) / .08); border: 1px solid hsl(var(--destructive) / .3); }
.ferr .icon { width: 16px; height: 16px; flex: none; }
.onav { display: flex; justify-content: space-between; gap: 10px; padding-top: 4px; border-top: 1px solid hsl(var(--border) / .7); padding-top: 16px; }
.onav .btn { min-width: 120px; }
.chip[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* availability check */
.avail { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid hsl(var(--border)); background: #000; color: hsl(var(--muted-foreground)); font-weight: 700; font-size: 13.5px; }
.avail.ok { display: grid; gap: 10px; border-color: hsl(var(--success) / .35); }
.avail-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: hsl(var(--success)); }
.avail-hd .icon { width: 18px; height: 18px; }
.avail-hd small { color: hsl(var(--muted-foreground)); font-weight: 600; }
.avail-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.avail-list span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; opacity: .5; }
.avail-list span.on { opacity: 1; color: hsl(var(--foreground)); }
.avail-list .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.avail-list span.on .icon { color: hsl(var(--success)); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid hsl(var(--primary) / .25); border-top-color: hsl(var(--primary)); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* plans + add-ons */
.plans { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
.plan { display: grid; gap: 10px; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); transition: all .2s; }
.plan .pn { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.plan .pr b { display: block; font-size: 24px; line-height: 1; color: hsl(var(--gold)); }
.plan .pr small { font-size: 11px; font-weight: 700; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .1em; }
.plan:hover, .addon:hover { border-color: hsl(var(--primary) / .35); }
.plan[aria-pressed="true"] { border-color: hsl(var(--primary) / .6); background: linear-gradient(160deg, hsl(var(--primary) / .18), hsl(var(--primary) / .03)); box-shadow: var(--glow-sm); }
.addons { display: grid; gap: 8px; }
.addon { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); transition: all .2s; }
.addon b { display: block; font-size: 14px; }
.addon small { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); }
.addon .box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid hsl(var(--border)); display: grid; place-items: center; color: transparent; transition: all .2s; }
.addon .box .icon { width: 14px; height: 14px; stroke-width: 3; }
.addon[aria-pressed="true"] { border-color: hsl(var(--primary) / .5); background: hsl(var(--primary) / .08); }
.addon[aria-pressed="true"] .box { background: var(--gradient-primary); border-color: transparent; color: hsl(var(--primary-foreground)); }

/* install date (reuses the schedule's day strip) */
.day[aria-pressed="true"] { background: var(--gradient-primary); border-color: transparent; color: hsl(var(--primary-foreground)); box-shadow: var(--glow-md); }
.day[aria-pressed="true"] small { color: hsl(var(--primary-foreground) / .8); }
.day .mo { font-size: 10px; letter-spacing: .08em; }

/* review */
.rvs { display: grid; gap: 10px; }
.rv { padding: 12px 14px; border-radius: 14px; border: 1px solid hsl(var(--border)); background: #000; }
.rv-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.rv p { margin: 0; font-size: 15px; }
.rv small { color: hsl(var(--muted-foreground)); font-size: 12.5px; }
.link { background: none; padding: 0; color: hsl(var(--primary-hover)); font-weight: 800; font-size: 13px; }
.link:hover { text-decoration: underline; }
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid hsl(var(--primary) / .35); background: hsl(var(--primary) / .06); font-size: 14px; font-weight: 600; cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: hsl(var(--primary)); }

/* live summary receipt */
.osum { position: sticky; top: 20px; }
.osum .line.t { grid-template-columns: auto minmax(0, 1fr); }
.osum .line.t .r { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* submitted */
.odone { position: relative; overflow: hidden; isolation: isolate; padding: 44px 24px 36px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.odone .heat { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(circle at 50% 0%, #000 10%, transparent 75%); opacity: .8; }
.okmark { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--gradient-primary); color: hsl(var(--primary-foreground)); box-shadow: var(--glow-md); }
.okmark .icon { width: 30px; height: 30px; stroke-width: 2.8; }
.odone h2 { margin: 0; font-size: clamp(24px, 6cqw, 38px); color: hsl(var(--gold)); }
.odone p { margin: 0; }
.odone-grid { width: min(560px, 100%); display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
@container (min-width: 620px) { .odone-grid { grid-template-columns: repeat(4, 1fr); } }
.odone-grid div { padding: 12px; border-radius: 14px; background: #000; border: 1px solid hsl(var(--border)); display: grid; gap: 2px; }
.odone-grid small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.odone-grid b { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.odone-act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* my orders */
.otools { display: grid; gap: 12px; margin-bottom: 14px; }
@container (min-width: 900px) { .otools { grid-template-columns: 1fr 280px; align-items: center; } }
.otools .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.otools .chip { flex: none; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: hsl(var(--muted-foreground)); pointer-events: none; }
.search .input { padding-left: 38px; }
.otbl tr.click { cursor: pointer; }
.otbl tr.click:focus-visible td { background: hsl(var(--primary) / .1); outline: none; }
.otbl .status { font-size: 11px; }

/* order detail sheet */
.osheet { display: grid; gap: 16px; margin-top: 14px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.kv small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.kv p { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.timeline { display: grid; gap: 0; padding: 6px 14px; border-radius: 16px; background: #000; border: 1px solid hsl(var(--border)); }
.tl { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.tl + .tl::before { content: ""; position: absolute; left: 16px; top: -12px; height: 22px; width: 2px; background: hsl(var(--border)); }
.tl.done + .tl.done::before { background: hsl(var(--primary) / .6); }
.tl .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); position: relative; z-index: 1; }
.tl.done .dot { background: hsl(var(--primary) / .14); border-color: hsl(var(--primary) / .35); color: hsl(var(--primary-hover)); }
.tl .dot .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.tl b { display: block; font-size: 14px; }
.tl small { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); }
.tl .r { font-family: var(--font-display); font-weight: 800; color: hsl(var(--gold)); }

/* ===================== live backend (server/): sign-in, CallTools drafts, manager tools ===================== */
body.hl-live .sample, body.hl-live [data-act="ai"], body.hl-live .ai-fab { display: none !important; }
body.live-locked { overflow: hidden; }
body.hl-live .nav a[hidden], body.hl-live .dock a[hidden], body.hl-live .menu a[hidden], body.hl-live .nav-label[hidden] { display: none !important; }
/* centred when it fits; a card taller than the screen (the onboarding agreement) starts at the top instead of spilling up out of reach */
.live-gate { position: fixed; inset: 0; z-index: 300; background: #000; display: grid; place-items: start center; padding: 20px; overflow-y: auto; overflow-x: hidden; }
.live-gate > .lg-card { margin-block: auto; }
.live-gate .lg-heat { position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.live-gate .lg-heat svg, .live-gate .lg-heat img { width: 100%; height: 100%; object-fit: cover; }
.lg-card { position: relative; width: min(400px, 100%); padding: 28px; display: grid; gap: 14px; }
.lg-card .brand { display: flex; align-items: center; gap: 10px; }
.lg-title { margin: 0; font-size: 30px; }
.lg-form { display: grid; gap: 12px; }
.lg-form .btn { width: 100%; justify-content: center; }
.live-note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.live-note .icon { width: 16px; height: 16px; flex: none; color: hsl(var(--primary)); }
.drafts { margin-bottom: 16px; }
.draft-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.draft-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); }
.draft-list .dl-main { display: grid; gap: 2px; min-width: 0; }
.draft-list .dl-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-list .assign { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.draft-list .assign select { height: 32px; padding: 0 8px; font-size: 13px; max-width: 200px; }
.draft-act { display: flex; gap: 6px; flex: none; }
.admin-ctl { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px dashed hsl(var(--border)); }
.admin-ctl .ac-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.admin-ctl .field { flex: 1 1 180px; margin: 0; }
.btn.danger { color: hsl(var(--destructive)); }
.team-inv { display: grid; gap: 12px; margin: 14px 0 18px; }
.team-inv .ptitle, #sheetBody > .ptitle { margin: 6px 0 0; font-size: 16px; }
.inv-link { display: flex; gap: 8px; }
.inv-link .input { flex: 1; font-size: 12px; }
.team-list { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 8px; }
.team-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: hsl(var(--secondary)); }
.team-list li > div { display: grid; min-width: 0; }
.team-list li small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-list li.off { opacity: .55; }
.team-list .ct { display: grid; gap: 2px; }
.team-list .ct .input { height: 32px; padding: 0 8px; font-size: 12px; max-width: 190px; }
@media (max-width: 560px) { .team-list li { grid-template-columns: 1fr; } .draft-list li { flex-direction: column; align-items: stretch; } }

/* Dialer: CallTools agent screen in a frame, sales list beside it */
.dial-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.dial-frame { padding: 0; overflow: hidden; height: calc(100vh - 210px); min-height: 560px; }
.dial-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.dial-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; padding: 24px; }
.dial-empty .icon { width: 32px; height: 32px; opacity: .6; }
.dial-side { display: grid; gap: 12px; }
.dial-side .panel { padding: 16px; display: grid; gap: 8px; }
.dial-help ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 960px) {
  .dial-grid { grid-template-columns: 1fr; }
  .dial-frame { height: calc(100vh - 190px); min-height: 520px; }
}
/* the floating dock would sit on top of CallTools' own buttons */
body:has(.view[data-view="dial"]:not([hidden])) .dock { display: none; }
/* the order form lives in the Dialer's right column and scrolls on its own */
.dial-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
.dial-side { height: calc(100vh - 210px); min-height: 560px; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding-right: 4px; }
.dial-side-head .ptitle { margin: 2px 0 0; }
.dial-side .order-grid { grid-template-columns: 1fr; }
.dial-side .stepper { margin-bottom: 4px; }
.dial-side .stepper .sl { font-size: 10px; }
.dial-side .ostep { padding: 18px; }
.dial-side .odone { padding: 32px 18px 24px; }
.dial-side .odone-grid { grid-template-columns: 1fr 1fr; }
.dial-help summary { cursor: pointer; list-style: none; }
.dial-help[open] summary { margin-bottom: 6px; }
@media (max-width: 960px) {
  .dial-grid { grid-template-columns: 1fr; }
  .dial-side { height: auto; min-height: 0; overflow: visible; padding-right: 0; }
}
/* stack at full height and scroll, instead of squeezing every card to fit */
.dial-side { display: flex; flex-direction: column; gap: 12px; }
.dial-side > * { flex: none; }

/* Live Ops (managers) */
.lo-range { margin: -4px 0 14px; }
.lo-live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: lo-pulse 2s infinite; }
@keyframes lo-pulse { 70% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .lo-live i { animation: none; } }
.lo-empty { padding: 24px; }
.lo-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.lo-grid.wide-left { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.lo-grid > .panel { padding: 18px; display: grid; gap: 12px; align-content: start; }
.lo-legend { display: flex; gap: 14px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.lo-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lo-legend i.sold, .lo-stack .sold { background: hsl(var(--primary)); }
.lo-legend i.rest, .lo-stack .rest { background: hsl(var(--muted-foreground) / .35); }
.lo-bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; height: 190px; align-items: end; }
.lo-bar { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 6px; outline: none; border-radius: 6px; }
.lo-bar:hover .lo-stack, .lo-bar:focus-visible .lo-stack { background: hsl(var(--foreground) / .05); }
.lo-stack { display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 6px; padding: 0 3px; }
.lo-stack span { display: block; width: 100%; min-height: 0; }
.lo-stack span { border-radius: 3px; }
.lo-stack span:last-child { border-radius: 4px 4px 3px 3px; }
.lo-bar small { font-size: 10.5px; text-align: center; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; }
.lo-bar.now small { color: hsl(var(--foreground)); font-weight: 800; }
.lo-dispos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lo-dispos li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; isolation: isolate; }
.lo-dispos li i { position: absolute; inset: 0 auto 0 0; z-index: -1; border-radius: 8px; background: hsl(var(--muted-foreground) / .16); }
.lo-dispos li.sold i { background: hsl(var(--primary) / .28); }
.lo-dispos li.sold span { font-weight: 800; }
.lo-reps td { vertical-align: top; }
.lo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: hsl(var(--muted-foreground) / .4); vertical-align: 1px; }
.lo-dot.on { background: hsl(var(--success)); box-shadow: 0 0 0 3px hsl(var(--success) / .2); }
.lo-feed ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 520px; overflow-y: auto; }
.lo-feed li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 6px; border-radius: 8px; font-size: 13px; }
.lo-feed li time { color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.lo-feed li small { display: block; color: hsl(var(--muted-foreground)); }
.lo-feed li.sold { background: hsl(var(--primary) / .1); }
.lo-feed li.sold small { color: hsl(var(--foreground)); font-weight: 700; }
.lo-feed li .icon { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; color: hsl(var(--primary)); }
@media (max-width: 960px) { .lo-grid, .lo-grid.wide-left { grid-template-columns: 1fr; } .lo-bars { height: 150px; } }
.view.lo-settled .fade-in { animation: none; }

/* recruiting links and the approval queue (Team) */
.team-join { display: grid; gap: 8px; margin-bottom: 18px; }
.team-join .ptitle, .team-join p { margin: 0; }
.team-list.pending li { border: 1px solid hsl(var(--warning) / .35); background: hsl(var(--warning) / .06); }
.team-list.pending .ct .input { max-width: 240px; }
.team-list.pending .ct small { max-width: 240px; }
.approve-act { display: flex; gap: 6px; }
.team-direct { margin: 6px 0 18px; }
.team-direct summary { cursor: pointer; list-style: none; margin: 0 0 10px; }
.team-direct summary::before { content: "+ "; color: hsl(var(--primary)); }
.team-direct[open] summary::before { content: "– "; }
.lg-form .field small { display: block; margin-top: 4px; font-size: 12px; }

/* Sign in with Google */
.lg-or { display: flex; align-items: center; gap: 10px; color: hsl(var(--muted-foreground)); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.g-btn { display: flex; justify-content: center; min-height: 44px; align-items: center; }
.g-as { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.g-as .icon { flex: none; margin-top: 2px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* Owner: badge and per-person edit */
.owner-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; font-size: 11px; }
.owner-tag .icon { width: 12px; height: 12px; }
.team-list li details.team-edit { grid-column: 1 / -1; }
.team-edit summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.team-edit summary::-webkit-details-marker { display: none; }
.team-edit summary .icon { width: 14px; height: 14px; }
.team-edit form { margin-top: 10px; align-items: end; }
.team-edit .btn { justify-self: start; }

/* app icon used as an avatar */
.app-av { width: 34px; height: 34px; flex: none; border-radius: 0 !important; object-fit: contain !important; } /* the icon has its own rounded frame */

/* Settings */
.set-sec { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid hsl(var(--border)); }
.set-photo { display: flex; align-items: center; gap: 14px; }
.set-photo > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid hsl(var(--border)); }
.set-photo > div { display: grid; gap: 4px; }
.set-photo-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.team-edit .set-photo { margin: 10px 0 4px; }
.set-sec:first-of-type { border-top: 0; }
.set-sec .ptitle { margin: 0; }
.set-sec p { margin: 0; }
.set-dl { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; }
.set-dl dt { font-size: 12px; color: hsl(var(--muted-foreground)); }
.set-dl dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.set-row { display: flex; gap: 10px; align-items: flex-end; }
.set-row .field { flex: 1; }
.set-toggle { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.set-toggle > div { display: grid; gap: 2px; }
.set-toggle small { font-size: 12px; }
.set-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; color: hsl(var(--success)); background: hsl(var(--success) / .08); border: 1px solid hsl(var(--success) / .3); margin: 10px 0 0; }

/* Install calendar */
.inst-list { display: grid; gap: 8px; }
.inst-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .5); }
.inst-row .t { font-size: 12px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.inst-row p { margin: 0; overflow-wrap: anywhere; }
.inst-row small { color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.inst-row.done { opacity: .65; }
.inst-row .t .icon { width: 16px; height: 16px; color: hsl(var(--success)); }
@media (max-width: 560px) { .inst-row { grid-template-columns: 1fr; gap: 4px; } }

/* Payroll approvals (live) */
.pay-kind { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px;
  color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); }
.pay-kind.ovr { color: hsl(var(--gold)); border-color: hsl(var(--gold) / .35); }
.due-now { color: hsl(var(--warning)); font-weight: 700; }
.chip-sep { width: 1px; align-self: stretch; background: hsl(var(--border)); margin: 0 4px; }
.pay-bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .6); }
.pay-all { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; margin-right: auto; }
.pay-flat { display: inline-flex; gap: 6px; align-items: center; }
.pay-flat .input { width: 90px; }

/* live Recruiting / Crew / Earnings */
.rec-kanban { grid-template-columns: repeat(4, minmax(200px, 1fr)); }
.rcard .ini-img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.rec-acts { display: inline-flex; gap: 6px; }
.post .who-row { position: relative; }
.icon-x { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 0; background: transparent; color: hsl(var(--muted-foreground)); cursor: pointer; }
.icon-x:hover { background: hsl(var(--muted) / .5); color: hsl(var(--foreground)); }
.icon-x .icon { width: 16px; height: 16px; }
.post .who-row .badge + .icon-x { margin-left: 6px; }
.tbl .who { display: flex; gap: 10px; align-items: center; }
.tbl .who img { width: 28px; height: 28px; border-radius: 50%; }
/* the Crew "Auto" tag is a status pill, not an achievement badge */
.post .status.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 0; border-radius: 999px; opacity: 1; flex: none; white-space: nowrap; }

/* Dialer: CallTools in a framed, dark "night" view */
.dial-frame { position: relative; border: 1px solid hsl(var(--primary) / .22); box-shadow: 0 24px 60px -30px hsl(var(--primary) / .45); }
.dial-frame iframe { transition: filter .35s ease; }
.dial-frame.night { background: #0c0a09; }
/* invert turns CallTools' white to near-black; hue-rotate puts its blues and reds back */
.dial-frame.night iframe { filter: invert(.9) hue-rotate(180deg) saturate(.85) contrast(.92) brightness(.95); }
.dial-theme { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 5px 0 12px; border-radius: 999px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card) / .6); font-size: 13px; font-weight: 700; }
.dial-theme > .icon { width: 15px; height: 15px; color: hsl(var(--primary)); }

/* themed scrollbars everywhere: a slim ember thumb, no track, no arrows */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { border-radius: 999px; border: 3px solid transparent; background-clip: padding-box;
  background-color: hsl(var(--primary) / .35); background-image: linear-gradient(180deg, hsl(var(--primary) / .6), hsl(var(--gold) / .4)); }
::-webkit-scrollbar-thumb:hover { border-width: 2px; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: hsl(var(--primary) / .5) transparent; }
}

/* Leads */
.lead-up { display: grid; gap: 14px; }
.lead-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid hsl(var(--border)); cursor: pointer; }
.lead-check input { margin-top: 3px; accent-color: hsl(var(--primary)); }
.lead-check span { display: grid; gap: 2px; font-size: 13px; }
.lead-check small { font-size: 12px; }
.lead-map { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.lead-reps { display: grid; gap: 8px; }
.lead-go { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lead-acts { display: inline-flex; gap: 6px; }
label.btn { cursor: pointer; }

/* Leads: the ISP file and the Tracerfy skip trace, side by side */
.lead-slots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 12px; }
.lead-slot { display: grid; gap: 4px; align-content: start; justify-items: start; padding: 12px 14px; border-radius: 14px;
  border: 1px dashed hsl(var(--border)); background: hsl(var(--card) / .4); }
.lead-slot.on { border-style: solid; border-color: hsl(var(--success) / .35); background: hsl(var(--success) / .05); }
.lead-slot b { overflow-wrap: anywhere; }
.lead-slot .btn { margin-top: 4px; }
.lead-up .set-note { margin: 0 0 12px; align-items: flex-start; }
.lead-up .set-note .icon { flex: none; margin-top: 2px; }
.set-note.warn { color: hsl(var(--warning, 38 92% 50%)); background: hsl(var(--warning, 38 92% 50%) / .08); border-color: hsl(var(--warning, 38 92% 50%) / .3); }

/* Astound sales card on the Dialer page */
.ast-card { display: grid; gap: 10px; margin-bottom: 14px; }
.ast-card .panel-head { margin: 0; }
.ast-copy { flex-wrap: wrap; gap: 6px; }
.ast-copy .chip .icon { width: 14px; height: 14px; }

/* Dialer: pick an ISP first */
.isp-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 860px; }
.isp-card { display: grid; gap: 8px; justify-items: start; text-align: left; padding: 24px; cursor: pointer; font: inherit; color: inherit; border: 1px solid hsl(var(--border, 0 0% 100% / .1)); transition: transform .15s, border-color .15s; }
.isp-card:hover, .isp-card:focus-visible { transform: translateY(-2px); border-color: hsl(var(--accent, 18 90% 55%)); }
.isp-card .isp-name { font-size: 28px; line-height: 1.1; }
.isp-card .btn { margin-top: 8px; pointer-events: none; }
.isp-lock { pointer-events: none; gap: 6px; }
.isp-lock .icon { width: 14px; height: 14px; }

/* Leads: which ISP a list is for */
.lead-isp { margin-bottom: 12px; }
.lead-isp .chips { gap: 8px; }
.lead-isp-set { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.lead-isp-set .chip.sm { height: 24px; padding: 0 10px; font-size: 11.5px; }

/* Astound login codes on the Dialer */
.ast-login { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ast-login .eyebrow { width: 100%; }
.ast-cred { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; border: 1px solid hsl(0 0% 100% / .12); background: hsl(0 0% 100% / .04); color: inherit; font: inherit; cursor: pointer; }
.ast-cred small { opacity: .7; font-size: 11px; }
.ast-cred b { font-size: 15px; letter-spacing: .04em; word-break: break-all; text-align: left; }
.ast-cred .icon { width: 14px; height: 14px; opacity: .7; }
.ast-cred:hover { border-color: hsl(18 90% 55% / .6); }

/* ---------- new rep onboarding (in the sign-in gate) ---------- */
.lg-card.onb { width: min(620px, 100%); container-type: inline-size; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { flex: 1; height: 4px; border-radius: 4px; background: hsl(var(--foreground) / .12); }
.onb-dots i.on { background: hsl(var(--primary)); }
.onb-nav { display: flex; gap: 10px; }
.lg-form .onb-nav .btn { width: auto; flex: 1; }
.lg-form .onb-nav .btn.ghost { flex: 0 0 auto; }
.lg-form .field .ferr { display: block; margin-top: 2px; }
.onb-sec { display: grid; gap: 8px; }
.onb-sec h4 { margin: 6px 0 0; font-size: 13px; }
.onb-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.onb-sec .ptitle { margin: 0; }
.onb-policy { max-height: 260px; overflow-y: auto; white-space: pre-wrap; font-size: 12.5px; line-height: 1.55; padding: 14px; border-radius: 12px;
  background: hsl(var(--foreground) / .04); border: 1px solid hsl(var(--border)); }
.onb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; cursor: pointer; }
.onb-check input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: hsl(var(--primary)); }
.onb-sig { width: 100%; height: 150px; border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; }
.onb-sig-row { display: flex; justify-content: space-between; align-items: center; }
.onb-shot { display: flex; align-items: center; gap: 14px; }
.onb-shot img, .onb-shot-empty { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; flex: none; }
.onb-shot-empty { display: grid; place-items: center; background: hsl(var(--foreground) / .06); border: 1px dashed hsl(var(--border)); }
.onb-shot-empty .icon { width: 32px; height: 32px; opacity: .5; }
.onb-shot label.btn { cursor: pointer; }
/* a manager reading what someone filled in */
.onb-view { display: grid; gap: 12px; margin-top: 8px; }
.onb-view dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.onb-view dt { color: hsl(var(--muted-foreground)); }
.onb-view dd { margin: 0; }
.onb-view .onb-sig-img { background: #fff; border-radius: 10px; max-width: 320px; width: 100%; }

/* Team: taking someone off the team (manager asks, owner OKs) */
.team-remove { display: grid; gap: 16px; margin-top: 8px; }
.team-remove .chip { cursor: pointer; }
.team-remove .chip input { position: absolute; opacity: 0; pointer-events: none; }
.team-remove .chip:has(input:checked) { color: hsl(var(--foreground)); border-color: hsl(var(--destructive) / .55); background: hsl(var(--destructive) / .12); }
.team-remove .chip:has(input:focus-visible) { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }
.team-remove .field i { font-style: normal; font-weight: 500; }
.team-remove > p .icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.leave-what { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.team-remove .btn.danger { justify-self: start; }
.btn.danger:not(.ghost) { background: hsl(var(--destructive)); color: #fff; box-shadow: none; }
.team-list.leaving li { border: 1px solid hsl(var(--destructive) / .35); background: hsl(var(--destructive) / .06); }
.team-remove:has(input[value=fired]:checked) .if-not-fired, .team-remove:not(:has(input[value=fired]:checked)) .if-fired { display: none; }
.team-list.seats li { border: 1px solid hsl(var(--warning) / .35); background: hsl(var(--warning) / .06); }
.team-list.seats b .icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: hsl(var(--primary)); }
.team-list.seats li small { white-space: normal; }
.pay-item.lost { opacity: .6; }
.pay-kind.fee { background: hsl(var(--foreground) / .08); color: hsl(var(--muted-foreground)); }
.pay-item.fee .amt { color: hsl(var(--muted-foreground)); }
.team-list.docs b .icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: hsl(var(--primary)); }
.team-list.docs li small { white-space: normal; }
.pay-item.lost .amt s { text-decoration-thickness: 2px; }
.leave-why { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Earnings: the commission ladder (a step line in purple; text stays in the text colours) */
.ladder { --lad: 263 90% 74%; --lad-ink: 266 60% 12%; display: grid; gap: 14px; }
.ladder .status.lad { color: hsl(var(--lad)); border-color: hsl(var(--lad) / .4); background: hsl(var(--lad) / .12); }
.ladder-chart { position: relative; width: 100%; min-height: 236px; touch-action: pan-y; }
.ladder-chart svg { display: block; overflow: visible; font-family: var(--font-sans); }
.lad-grid { stroke: hsl(var(--foreground) / .08); stroke-dasharray: 3 5; }
.lad-axis { stroke: hsl(var(--foreground) / .22); }
.lad-ax { fill: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 600; }
.lad-ax.cap { font-size: 10.5px; letter-spacing: .04em; }
.lad-line { fill: none; stroke: hsl(var(--lad) / .35); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lad-line.done { stroke: hsl(var(--lad)); stroke-width: 2.5; filter: drop-shadow(0 0 6px hsl(var(--lad) / .45)); }
.lad-tier circle { fill: hsl(var(--card)); stroke: hsl(var(--lad) / .6); stroke-width: 2; }
.lad-tier.on circle { fill: hsl(var(--lad)); stroke: hsl(var(--card)); }
.lad-tn { fill: hsl(var(--muted-foreground)); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lad-tv { fill: hsl(var(--foreground) / .7); font-size: 12.5px; font-weight: 800; }
.lad-tier.on .lad-tv { fill: hsl(var(--foreground)); }
.lad-you-line { stroke: hsl(var(--lad)); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lad-you { fill: hsl(var(--lad)); stroke: hsl(var(--card)); stroke-width: 3; filter: drop-shadow(0 0 8px hsl(var(--lad) / .7)); }
.lad-badge { fill: hsl(var(--lad)); }
.lad-badge-t { fill: hsl(var(--lad-ink)); font-size: 11.5px; font-weight: 800; }
.lad-fee .fee-on { fill: hsl(var(--foreground) / .18); }
.lad-fee .fee-off { fill: hsl(var(--lad) / .55); }
.lad-hover[hidden], .lad-tip[hidden] { display: none; }
.lad-hover line { stroke: hsl(var(--foreground) / .35); stroke-width: 1; }
.lad-hover circle { fill: hsl(var(--foreground)); stroke: hsl(var(--lad)); stroke-width: 2; }
.lad-hit { fill: transparent; cursor: crosshair; }
.lad-tip { position: absolute; z-index: 2; pointer-events: none; display: grid; gap: 2px; padding: 8px 11px; border-radius: 12px; font-size: 12px; white-space: nowrap;
  background: hsl(var(--popover, var(--card))); border: 1px solid hsl(var(--lad) / .45); box-shadow: 0 10px 30px -10px #000; color: hsl(var(--muted-foreground)); }
.lad-tip b { color: hsl(var(--foreground)); }
.ladder-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.ladder-sum > div { padding: 10px 12px; border-radius: 14px; background: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); display: grid; gap: 2px; align-content: start; }
.ladder-sum small { font-size: 11.5px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.ladder-sum b { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.ladder-sum > div.next { border-color: hsl(var(--lad) / .45); background: hsl(var(--lad) / .08); }
.ladder-sum span { font-size: 11.5px; color: hsl(var(--muted-foreground)); }

/* Organization: the org chart (top-down; a parent's people with nobody under them stack in a column) */
.org-panel { display: grid; gap: 12px; }
.org-how { margin: 0; max-width: 78ch; }
.org-how .icon { width: 14px; height: 14px; vertical-align: -2px; }
.org-scroll { overflow: auto; margin: 0 -18px -18px; padding: 8px 0 22px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: hsl(var(--foreground) / .22) transparent; border-radius: 0 0 22px 22px; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree { --ol: hsl(var(--foreground) / .16); --gap: 16px; display: flex; justify-content: center; min-width: max-content; padding: 0 18px; }
.org-tree ul { display: flex; justify-content: center; position: relative; padding-top: var(--gap); }
.org-tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--gap) 6px 0; }
.org-tree > li { padding-top: 0; }
.org-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: var(--gap); border-left: 2px solid var(--ol); }
.org-tree ul > li::before, .org-tree ul > li::after { content: ""; position: absolute; top: 0; width: 50%; height: var(--gap); border-top: 2px solid var(--ol); }
.org-tree ul > li::before { right: 50%; }
.org-tree ul > li::after { left: 50%; border-left: 2px solid var(--ol); }
.org-tree ul > li:first-child::before, .org-tree ul > li:last-child::after { border-top-color: transparent; }
.org-tree ul > li:last-child::after { border-top: 0; }
.org-tree ul > li:first-child::after { border-top-left-radius: 10px; }
.org-tree ul > li:last-child::before { border-right: 2px solid var(--ol); border-top-right-radius: 10px; right: calc(50% - 2px); }
.org-tree ul > li:only-child::before { display: none; }
.org-tree ul > li:only-child::after { border-top: 0; border-radius: 0; }
.org-tree ul > li:last-child:not(:only-child)::after { border-left: 0; }
/* a column of people with nobody under them */
.org-tree ul.stack { flex-direction: column; align-items: stretch; gap: 8px; padding: calc(var(--gap) + 6px) 0 0 22px; }
.org-tree ul.stack::before { left: 9px; top: var(--gap); bottom: 27px; height: auto; }
.org-tree ul.stack::after { content: ""; position: absolute; top: 0; left: 9px; width: calc(50% - 9px); height: var(--gap); border-right: 2px solid var(--ol); border-bottom: 2px solid var(--ol); border-bottom-right-radius: 10px; }
.org-tree ul.stack > li { padding: 0; align-items: stretch; }
.org-tree ul.stack > li::after { display: none; }
.org-tree ul.stack > li::before { display: block; left: -13px; right: auto; top: 50%; width: 13px; height: 0; border-top: 2px solid var(--ol); border-right: 0; border-radius: 0; }
/* the cards */
.org-card { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 186px; min-height: 54px; padding: 8px 10px; border-radius: 16px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: 0 1px 0 hsl(var(--foreground) / .04) inset; text-align: left;
  transition: border-color .15s, box-shadow .15s, opacity .15s, transform .15s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.org-card[data-drag] { cursor: grab; }
.org-card img, .org-card .org-mark { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; pointer-events: none; }
.org-card .org-mark { display: grid; place-items: center; background: hsl(var(--secondary)); }
.org-who { min-width: 0; flex: 1; display: grid; gap: 1px; }
.org-who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-who b .icon { width: 13px; height: 13px; color: hsl(var(--gold)); vertical-align: -1px; }
.org-who small { font-size: 11.5px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-card.own { border-color: hsl(var(--gold) / .45); }
.org-card.me { border-color: hsl(var(--primary) / .5); }
.org-card.org-top { width: auto; padding-right: 16px; border-style: dashed; }
.org-card.off { opacity: .55; }
.org-card.off img { filter: grayscale(1); }
.org-off { color: hsl(var(--destructive)); font-weight: 700; }
.org-more { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: hsl(var(--muted-foreground)); }
.org-card:has(.org-more) .org-who b { padding-right: 20px; }
.org-more:hover, .org-more:focus-visible { color: hsl(var(--foreground)); background: hsl(var(--foreground) / .08); }
.org-more .icon { width: 15px; height: 15px; }
/* while dragging */
body.org-dragging, body.org-dragging * { cursor: grabbing !important; user-select: none; }
.org-card.dragging { opacity: .3; }
.org-card.drop-no { opacity: .28; }
.org-card.drop-ok { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .28), var(--glow-sm); transform: scale(1.04); }
.org-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: .95; box-shadow: 0 18px 40px hsl(0 0% 0% / .5), var(--glow-sm); border-color: hsl(var(--primary) / .6); }
.org-move { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 14px 0 6px; }
.org-move .field { flex: 1 1 220px; margin: 0; }
.org-off-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); }
.org-off-form .ptitle { margin: 0; }
@media (max-width: 560px) { .org-card { width: 172px; } .org-tree { --gap: 14px; } }

/* phones and tablets: the bottom bar steps aside while the menu is open */
.dock { transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s; }
@media (max-width: 1023px) {
  body.nav-open .dock { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 24px); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s .25s; }
}
