/* upsold accounts and team space. Dark, navy-tinted, calm. No external fonts or files. */
:root {
  --bg: #10152a; --side: #0d1224; --solid: #1a2040;
  --panel: rgba(255, 255, 255, .07); --edge: rgba(255, 255, 255, .1); --hover: rgba(255, 255, 255, .11); --field: rgba(255, 255, 255, .06);
  --ink: #f5f5f7; --ink2: #aab0c4; --ink3: #7f87a0;
  --blue: #0a84ff; --blue2: #2997ff; --orange: #ff9d70; --green: #30d158; --yellow: #ffd60a; --red: #ff6b61;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
body { font: 400 15px/1.45 var(--text); letter-spacing: -.01em; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; border: 0; background: none; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
a { color: var(--blue2); }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.boot { padding: 40px 28px; color: var(--ink2); }
[hidden] { display: none !important; }

/* ---------- signed out, and choosing a team ---------- */
.door { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; }
.doorbox { width: 100%; max-width: 430px; }
.doorbox.wide { max-width: 640px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 600 19px/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.doorbox .card h1 { font-size: 23px; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 6px; }
.doorbox .card > p { color: var(--ink2); margin-bottom: 16px; }
.joining { padding: 12px 14px; border-radius: 12px; background: rgba(48, 209, 88, .12); border: 1px solid rgba(48, 209, 88, .28); margin-bottom: 14px; }
.joining span { color: var(--ink2); }
.stack { display: grid; gap: 12px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.three { grid-template-columns: repeat(3, 1fr); }
.choice { padding: 16px; border-radius: 14px; background: var(--field); border: 1px solid var(--edge); text-align: left; transition: background .15s, border-color .15s; }
.choice:hover { background: var(--hover); border-color: rgba(255, 255, 255, .22); }
.choice b { display: block; margin-bottom: 3px; }
.choice span { color: var(--ink2); font-size: 13.5px; }
.under { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13.5px; color: var(--ink3); }
.link { color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }
.link:hover { color: var(--ink); }

/* ---------- the space ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; height: 100%; }
aside { display: flex; flex-direction: column; background: var(--side); border-right: 1px solid rgba(255, 255, 255, .06); padding: 14px 12px; min-height: 0; }
.team { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; color: inherit; text-decoration: none; transition: background .15s; }
.team:hover { background: rgba(255, 255, 255, .06); }
.mark { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--green); display: grid; place-items: center; font: 600 14px/1 var(--display); color: #04140a; }
.team > span:last-child { min-width: 0; }
.team b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team small { display: block; font-size: 12.5px; color: var(--ink3); }
nav { margin-top: 14px; display: grid; gap: 1px; }
nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; color: var(--ink2); text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
nav a:hover { background: rgba(255, 255, 255, .05); color: var(--ink); }
nav a.on { background: rgba(255, 255, 255, .1); color: var(--ink); }
nav a span { font-size: 12.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
nav a span.live { color: var(--green); }
nav a span.count { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; text-align: center; }
.foot { margin-top: auto; min-width: 0; }
.conn { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; font-size: 12.5px; color: var(--ink3); }
.me { padding: 10px; font-size: 13px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me b { display: block; color: var(--ink2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

main { min-width: 0; overflow-y: auto; }
.note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 28px; background: rgba(255, 214, 10, .1); color: var(--yellow); font-size: 13.5px; }
.note button { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.page { padding: 26px 28px 60px; max-width: 1180px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.top > div { min-width: 0; }
.top h1 { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.top p { margin-top: 4px; color: var(--ink2); }
.pill { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 999px; padding: 9px 16px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform .2s ease, background .15s; }
.pill:hover { background: var(--blue2); }
.pill:active { transform: scale(.96); }
.pill.ghost { background: rgba(255, 255, 255, .1); }
.pill.ghost:hover { background: rgba(255, 255, 255, .16); }
.pill.danger { background: rgba(255, 107, 97, .16); color: var(--red); }
.pill.danger:hover { background: rgba(255, 107, 97, .26); }
.pill.small { padding: 5px 12px; font-size: 13px; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.fig { padding: 18px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--edge); }
.fig b { display: block; font: 600 32px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fig span { display: block; margin-top: 6px; color: var(--ink2); font-size: 13.5px; }
.fig.live b { color: var(--green); }

h2 { font-size: 17px; margin: 0 0 10px; }
.list { display: grid; border-radius: 16px; overflow: hidden; margin-bottom: 28px; background: var(--panel); border: 1px solid var(--edge); }
.rowx { display: grid; grid-template-columns: 18px 1.1fr 1.3fr 1.1fr 84px 104px; gap: 14px; align-items: center; width: 100%; padding: 13px 18px; text-align: left; border-top: 1px solid rgba(255, 255, 255, .06); transition: background .15s; }
.rowx:first-child { border-top: 0; }
.rowx.reps { grid-template-columns: 18px 1.3fr 1.2fr 120px 70px 96px; }
.rowx > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowx > .dot { overflow: visible; }
button.rowx:hover { background: rgba(255, 255, 255, .05); }
.rowx.head { padding-top: 10px; padding-bottom: 8px; font-size: 12.5px; color: var(--ink3); }
.rowx .dim { color: var(--ink2); }
.rowx .num { font-variant-numeric: tabular-nums; color: var(--ink2); }
.rowx small { display: block; font-size: 12.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }
.rowx.unread > :nth-child(2) { font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); flex: none; }
.dot.live { background: var(--green); animation: pulse 1.8s ease-in-out infinite; }
.dot.new { background: var(--blue2); }
.dot.warn { background: var(--yellow); }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .09); color: var(--ink2); vertical-align: 1px; }
.tag.good { background: rgba(48, 209, 88, .16); color: var(--green); }
.tag.blue { background: rgba(41, 151, 255, .18); color: #7cc0ff; }
.tag.warn { background: rgba(255, 214, 10, .14); color: var(--yellow); }
.tag.first { margin-left: 0; }
.empty { padding: 26px 18px; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; color: var(--ink2); margin-bottom: 28px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.bar select { width: auto; min-width: 150px; padding: 7px 10px; }
.tabs { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 10px; background: var(--panel); }
.tabs button { padding: 6px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: rgba(255, 255, 255, .16); color: var(--ink); }
.more { display: flex; justify-content: center; margin: -14px 0 28px; }

/* ---------- one call, one lead ---------- */
.back { display: inline-block; color: var(--ink2); font-size: 13.5px; margin-bottom: 10px; text-decoration: none; }
.back:hover { color: var(--ink); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
.split.even { grid-template-columns: 1fr 1fr; align-items: stretch; }
h2.gap { margin-top: 28px; }
.col { display: grid; gap: 14px; min-width: 0; }
.card { padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--edge); min-width: 0; }
.card h3 { font-size: 15px; margin-bottom: 12px; }
.card h3 small { font: 400 13px/1 var(--text); color: var(--ink3); margin-left: 6px; }
.card p.dim, .dim { color: var(--ink2); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.stages span { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ink3); font-size: 12.5px; font-weight: 600; }
.stages span.done { background: rgba(48, 209, 88, .16); color: var(--green); }
.stages span.cur { background: rgba(10, 132, 255, .28); color: #fff; }
.lines { display: grid; gap: 12px; }
.line { overflow-wrap: anywhere; padding-left: 12px; border-left: 2px solid transparent; }
.line b { display: block; font-size: 12.5px; font-weight: 600; }
.line b small { font-weight: 400; color: var(--ink3); margin-left: 6px; font-variant-numeric: tabular-nums; }
.line.rep { border-left-color: rgba(41, 151, 255, .55); }
.line.rep b { color: #64b5ff; }
.line.cust { border-left-color: rgba(255, 157, 112, .6); }
.line.cust b { color: var(--orange); }
.hint { margin-left: 26px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .2); font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.hint small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); margin-bottom: 2px; }
.fresh { animation: rise .35s ease both; }
.said { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); overflow-wrap: anywhere; }
.said small { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 600; margin-bottom: 2px; }
.said + .said { margin-top: 10px; }
.minutes h4 { font: 600 13.5px/1.3 var(--display); margin: 14px 0 4px; color: var(--ink2); }
.minutes h4:first-child { margin-top: 0; }
.minutes ul { padding-left: 18px; }
.minutes li { margin: 2px 0; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; }
.facts dt { color: var(--ink3); font-size: 13.5px; }
.facts dd { overflow-wrap: anywhere; min-width: 0; }
.thread { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); overflow-wrap: anywhere; white-space: pre-wrap; justify-self: start; }
.msg.mine { justify-self: end; background: rgba(10, 132, 255, .2); }
.msg small { display: block; font-size: 12px; color: var(--ink3); margin-bottom: 2px; white-space: normal; }

/* ---------- forms ---------- */
.sheet { padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--edge); margin-bottom: 20px; animation: rise .3s ease both; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
label { display: grid; gap: 5px; font-size: 13px; color: var(--ink2); align-content: start; }
label.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--edge); color: var(--ink); outline: none; }
textarea { resize: vertical; min-height: 44px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--ink3); }
input:focus, select:focus, textarea:focus { border-color: var(--blue2); box-shadow: 0 0 0 2px rgba(41, 151, 255, .35); }
input[readonly] { color: var(--ink2); }
select option { background: #161c36; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 12px; }
.saved { font-size: 13.5px; color: var(--green); }
.saved.bad, .bad { color: var(--yellow); font-size: 13.5px; }
.bad:empty { display: none; }
.invite { display: flex; gap: 8px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--edge); margin-bottom: 20px; flex-wrap: wrap; }
.invite input { flex: 1 1 260px; min-width: 0; }
.hintline { font-size: 13px; color: var(--ink3); margin-top: 6px; }
.sect { margin-bottom: 14px; }
.narrow { max-width: 620px; }

/* ---------- question boxes and small notices ---------- */
.veil { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(6, 9, 22, .66); backdrop-filter: blur(6px); animation: fade .15s ease both; }
.ask { width: 100%; max-width: 420px; padding: 22px; border-radius: 18px; background: var(--solid); border: 1px solid var(--edge); box-shadow: 0 24px 80px rgba(0, 0, 0, .5); }
.ask h3 { font-size: 18px; margin-bottom: 6px; }
.ask p { color: var(--ink2); margin-bottom: 12px; overflow-wrap: anywhere; }
.ask .actions { margin-top: 16px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 36px)); }
.toast { padding: 11px 14px; border-radius: 12px; background: var(--solid); border: 1px solid var(--edge); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); font-size: 14px; text-align: left; overflow-wrap: anywhere; animation: rise .3s ease both; }
a.toast { display: block; color: var(--ink); text-decoration: none; }
a.toast:hover { border-color: rgba(255, 255, 255, .26); }
.toast small { display: block; color: var(--ink2); font-size: 13px; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) {
  html, body, #root { height: auto; min-height: 100%; }
  .app { grid-template-columns: 1fr; height: auto; }
  aside { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .team { width: auto; max-width: 100%; } .team small { display: none; }
  nav { margin: 0; display: flex; flex-wrap: wrap; } nav a { padding: 7px 8px; } .me, .conn span:last-child { display: none; }
  .foot { margin: 0 0 0 auto; } .conn { padding: 0 6px; }
  main { overflow: visible; }
  .page { padding: 20px 16px 50px; } .note { padding: 9px 16px; }
  .top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .split, .split.even, .grid, .grid.two { grid-template-columns: 1fr; }
  .rowx, .rowx.reps { grid-template-columns: 14px 1fr 1fr; gap: 10px; padding: 12px 14px; }
  .rowx > :nth-child(n+4) { display: none; }
  .rowx.reps > :nth-child(3) { display: none; } .rowx.reps > :nth-child(6) { display: block; justify-self: end; overflow: visible; }
  .msg { max-width: 100%; }
}
@media (max-width: 480px) {
  .choices, .choices.three { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .fig { padding: 14px 16px; } .fig b { font-size: 26px; }
  .hint { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .dot.live, .fresh, .sheet, .toast, .veil { animation: none; } }
