/* Emtif Flow: an operations desk. Warm charcoal, one saffron accent, mono for data. */
:root {
  --bg: #11100d; --bg-2: #171612; --panel: #1c1b16; --panel-2: #23221c; --line: #2e2c25; --line-2: #3a372e;
  --text: #ece8dc; --text-2: #b4ae9c; --text-3: #7f7a6a;
  --accent: #f2b544; --accent-ink: #1a1305; --accent-soft: rgba(242, 181, 68, .12);
  --good: #6fcf97; --good-soft: rgba(111, 207, 151, .12); --warn: #f2994a; --bad: #eb6f5c; --bad-soft: rgba(235, 111, 92, .12);
  --info: #7cb7e8; --info-soft: rgba(124, 183, 232, .12);
  --radius: 12px; --radius-sm: 8px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4ee; --bg-2: #efece3; --panel: #fffdf8; --panel-2: #f3f0e6; --line: #e3ded0; --line-2: #d4ceba;
    --text: #1d1b15; --text-2: #5a5546; --text-3: #8d8775; --accent: #b97a10; --accent-ink: #fff;
    --accent-soft: rgba(185, 122, 16, .1); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f4ee; --bg-2: #efece3; --panel: #fffdf8; --panel-2: #f3f0e6; --line: #e3ded0; --line-2: #d4ceba;
  --text: #1d1b15; --text-2: #5a5546; --text-3: #8d8775; --accent: #b97a10; --accent-ink: #fff;
  --accent-soft: rgba(185, 122, 16, .1); color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 18px; }
h3 { font-size: 15px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 10px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column;
  gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.ws-switch { width: 100%; margin: 0 0 10px; }
.nav-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-2);
  font-weight: 500; transition: background 140ms var(--ease), color 140ms var(--ease); }
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav a .ico { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav a .count { margin-left: auto; font: 500 11px var(--mono); background: var(--accent); color: var(--accent-ink);
  border-radius: 99px; padding: 1px 7px; }
.nav .sub a { padding-left: 36px; font-weight: 400; font-size: 13.5px; }
.nav .sub a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; margin-left: -18px; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; font: 600 12px var(--sans); color: var(--text-2); flex: none; }
.user-chip .who { min-width: 0; }
.user-chip .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { min-width: 0; }
.topbar { display: none; }
.page { padding: 28px 32px 60px; max-width: 1280px; margin: 0 auto; animation: rise 260ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-2); margin-top: 6px; max-width: 70ch; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.right { margin-left: auto; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.grid { display: grid; gap: 14px; }
.grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi .v { font: 700 28px/1.1 var(--display); margin-top: 6px; }
.kpi .l { color: var(--text-2); font-size: 12.5px; }
.empty { text-align: center; padding: 42px 20px; color: var(--text-2); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: 500 14px var(--sans); cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease); }
.btn:hover { border-color: var(--text-3); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
label.f .hint { font-weight: 400; color: var(--text-3); font-size: 12px; }
input, select, textarea { font: 14px var(--sans); color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 9px 11px; width: 100%; outline: none; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
textarea.code { font-family: var(--mono); font-size: 12.5px; min-height: 280px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 14px; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); min-height: 40px; align-items: center; }
.tags:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tags input { border: 0; background: transparent; padding: 4px; width: auto; flex: 1; min-width: 120px; box-shadow: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line-2);
  padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.tag button { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--text-2); font: 500 13.5px var(--sans); padding: 6px 12px; border-radius: 7px;
  cursor: pointer; display: inline-flex; gap: 6px; align-items: center; transition: background 140ms var(--ease), color 140ms var(--ease); }
.seg button.on { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 0 var(--line-2); }
.seg button .n { font: 500 11px var(--mono); color: var(--text-3); }

/* ---------------------------------------------------------------- pills, tables, bars */
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--sans); padding: 2px 9px; border-radius: 99px;
  background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.plain::before { display: none; }
.pill.good { color: var(--good); background: var(--good-soft); border-color: transparent; }
.pill.warn { color: var(--warn); background: rgba(242, 153, 74, .12); border-color: transparent; }
.pill.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.pill.info { color: var(--info); background: var(--info-soft); border-color: transparent; }
.pill.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 500 11.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); position: sticky; top: 0; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 120ms var(--ease); }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--panel-2); }
td .t { font-weight: 600; }
td .d { color: var(--text-2); font-size: 13px; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.score { font: 600 13px var(--mono); }
.bar { height: 6px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width 400ms var(--ease); }
.breakdown { display: grid; grid-template-columns: minmax(80px, 160px) 1fr 40px; gap: 8px 12px; align-items: center; font-size: 13.5px; }
.breakdown .n { font: 500 12.5px var(--mono); color: var(--text-2); text-align: right; }

/* ---------------------------------------------------------------- campaign workspace */
.split { display: grid; grid-template-columns: minmax(360px, 440px) 1fr; gap: 16px; align-items: start; }
.feed { display: flex; flex-direction: column; height: calc(100vh - 150px); position: sticky; top: 16px; }
.feed-scroll { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.feed-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--text-2); }
.feed-item .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--panel-2); display: grid; place-items: center;
  color: var(--text-3); }
.feed-item .ic svg { width: 13px; height: 13px; }
.feed-item.me .ic { background: var(--accent-soft); color: var(--accent); }
.feed-item .body { min-width: 0; }
.feed-item .body b { color: var(--text); font-weight: 600; }
.feed-item .meta { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.bubble { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--text);
  white-space: pre-wrap; word-wrap: break-word; }
.bubble.user { background: var(--accent-soft); border-color: transparent; align-self: flex-end; max-width: 88%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font: 500 11.5px var(--mono); color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 2px 7px; }
.chip.err { color: var(--bad); }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 180px; resize: none; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan .step { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.plan .step .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; }
.plan .step.done { color: var(--text-3); text-decoration: line-through; }
.plan .step.done .box { background: var(--good); border-color: var(--good); color: #0c1a10; }
.plan .step.now { color: var(--accent); font-weight: 600; }
.plan .step.now .box { border-color: var(--accent); }
.plan .step.now .box::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.status-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--accent-soft);
  border: 1px solid transparent; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.status-banner .bmsg { font-weight: 500; }
.crit { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.crit .r { color: var(--text-3); grid-column: 1 / -1; margin-bottom: 6px; }

/* ---------------------------------------------------------------- inbox */
.inbox { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; }
.list { display: flex; flex-direction: column; }
.list .item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 120ms var(--ease); }
.list .item:hover { background: var(--panel-2); }
.list .item.on { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--accent); }
.list .item .snip { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel); }
.msg.in { border-color: var(--accent-soft); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--panel); }
.msg .h { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.msg .b { white-space: pre-wrap; word-wrap: break-word; }
.why { border-left: 2px solid var(--accent); padding: 4px 10px; color: var(--text); font-style: italic; margin: 8px 0; }

/* ---------------------------------------------------------------- misc */
.toast { background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); padding: 10px 14px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 14px; animation: toast 240ms var(--ease); max-width: 380px; }
.toast.bad { border-color: var(--bad); }
@keyframes toast { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 5, 3, .6); display: grid; place-items: center; z-index: 40; padding: 16px;
  animation: fade 160ms var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; width: min(640px, 100%); max-height: 90vh;
  overflow-y: auto; padding: 22px; animation: pop 220ms var(--ease); }
.modal.wide { width: min(980px, 100%); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { background: radial-gradient(1200px 600px at -10% -10%, rgba(242, 181, 68, .18), transparent 60%),
  radial-gradient(700px 500px at 110% 110%, rgba(124, 183, 232, .10), transparent 60%), var(--bg-2);
  border-right: 1px solid var(--line); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .big { font: 700 44px/1.05 var(--display); letter-spacing: -.02em; max-width: 14ch; }
.auth-art .big em { font-style: normal; color: var(--accent); }
.auth-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--text-2); }
.auth-art li::before { content: "→ "; color: var(--accent); }
.auth-form { display: grid; place-items: center; padding: 32px 16px; }
.auth-form .card { width: min(400px, 100%); padding: 26px; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--text-2);
  transition: border-color 140ms var(--ease), background 140ms var(--ease); cursor: pointer; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.kbd { font: 500 11px var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; color: var(--text-3); }
pre.out { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; overflow: auto;
  max-height: 320px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 0; }
.steps-list { display: flex; flex-direction: column; gap: 8px; }
.step-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; }
.step-row .n { font: 500 12px var(--mono); color: var(--text-3); }
.step-row .ty { font: 500 11px var(--mono); color: var(--accent); text-transform: uppercase; }
.tpl { display: flex; flex-direction: column; gap: 8px; }
.tpl .cat { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1100px) {
  .split, .inbox { grid-template-columns: 1fr; }
  .feed { height: 520px; position: static; }
  .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 30; transform: translateX(-100%);
    transition: transform 240ms var(--ease); }
  .side.open { transform: none; box-shadow: 20px 0 50px rgba(0, 0, 0, .4); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line);
    background: var(--bg-2); position: sticky; top: 0; z-index: 20; }
  .page { padding: 18px 16px 48px; }
  .grid.k3, .grid.k2, .form-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------------------------------------------------------------- brand mark & loaders */
.logo .logo-bg { fill: var(--accent); }
.logo g { stroke: var(--accent-ink); }
.logo .logo-dot { fill: var(--accent-ink); }
.logo.drawing path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 1.6s var(--ease) infinite; }
.logo.drawing .s2 { animation-delay: 120ms; }
.logo.drawing .s3 { animation-delay: 240ms; }
.logo.drawing .s4 { animation-delay: 420ms; }
.logo.drawing .logo-dot { animation: dot 1.6s var(--ease) infinite; transform-origin: 26px 16px; }
@keyframes draw { 0% { stroke-dashoffset: 24; } 45%, 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -24; } }
@keyframes dot { 0%, 40% { transform: scale(0.6); opacity: .4; } 55% { transform: scale(1.25); opacity: 1; } 80%, 100% { transform: scale(1); opacity: .9; } }
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px 16px; }
.loader-text { color: var(--text-2); font-size: 14px; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.sk { background: linear-gradient(90deg, var(--panel-2) 0%, var(--line) 50%, var(--panel-2) 100%); background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite; border-radius: 6px; height: 12px; margin: 10px 0; }
.sk-title { height: 26px; width: 30%; }
.sk-big { height: 34px; width: 55%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- live agent */
.agent-live { display: flex; flex-direction: column; gap: 10px; }
.agent-step { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; animation: rise 280ms var(--ease) both; }
.agent-step .dotc { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good); }
.agent-step .dotc svg { width: 12px; height: 12px; }
.agent-step.now .dotc { background: var(--accent-soft); color: var(--accent); }
.agent-step.now .dotc::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.agent-step .t { padding-top: 1px; }
.reveal { animation: rise 320ms var(--ease) both; }
.profile-peek { display: grid; gap: 10px; }
.profile-peek .k { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* ---------------------------------------------------------------- wizard */
.wizard { min-height: calc(100vh - 0px); display: grid; place-items: center; padding: 32px 16px; }
.wizard .box { width: min(620px, 100%); }
.wizard .steps { display: flex; gap: 6px; margin-bottom: 26px; }
.wizard .steps i { height: 4px; flex: 1; border-radius: 99px; background: var(--line); transition: background 300ms var(--ease); }
.wizard .steps i.on { background: var(--accent); }
.wizard h1 { font-size: 30px; }
.big-input { font-size: 17px; padding: 14px 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { background: var(--panel); border: 1px solid var(--line-2); color: var(--text); border-radius: 99px; padding: 8px 14px;
  font: 500 13.5px var(--sans); cursor: pointer; transition: transform 140ms var(--ease), border-color 140ms var(--ease); }
.choices button:hover { border-color: var(--accent); }
.choices button:active { transform: scale(.97); }

/* ---------------------------------------------------------------- tour */
.tour-hole { position: fixed; z-index: 60; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(8, 7, 4, .62);
  transition: top 260ms var(--ease), left 260ms var(--ease), width 260ms var(--ease), height 260ms var(--ease); pointer-events: none; }
.tour-tip { position: fixed; z-index: 61; width: min(330px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); transition: top 260ms var(--ease), left 260ms var(--ease); }
.tour-tip h3 { font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.tour-tip .count { font: 500 11px var(--mono); color: var(--text-3); }

/* ---------------------------------------------------------------- pipeline board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px;
  align-items: start; }
.col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column;
  max-height: calc(100vh - 210px); transition: border-color 140ms var(--ease), background 140ms var(--ease); }
.col.over { border-color: var(--accent); background: var(--accent-soft); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 8px; font-weight: 600; }
.col-head .n { font: 500 12px var(--mono); color: var(--text-3); }
.col-body { overflow-y: auto; padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.lead-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; cursor: grab;
  transition: transform 140ms var(--ease), border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
.lead-card:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.lead-card:active { cursor: grabbing; transform: scale(.98); }
.lead-card.dragging { opacity: .45; }
.lead-card .who { font-weight: 600; font-size: 14px; }
.lead-card .co { color: var(--text-2); font-size: 12.5px; }
.lead-card select { margin-top: 8px; padding: 5px 8px; font-size: 12.5px; display: none; }
@media (hover: none) { .lead-card select { display: block; } }
.countdown { font: 500 12px var(--mono); color: var(--warn); }
.hint-card { display: flex; gap: 12px; align-items: flex-start; }
.hint-card .num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid;
  place-items: center; font: 600 13px var(--mono); flex: none; }

/* icons: always sized (an unsized inline SVG defaults to 300x150) */
svg.ico { width: 16px; height: 16px; flex: none; }
.btn svg.ico { width: 15px; height: 15px; }
.seg svg.ico { width: 14px; height: 14px; }
.row .loader, .card-head .loader { padding: 0; }

/* ---------------------------------------------------------------- campaign feed: full height, slim stepper */
.feed { height: calc(100vh - 196px); min-height: 480px; position: sticky; top: 16px; }
.stepper { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line); }
.st i { display: block; height: 4px; border-radius: 99px; background: var(--line-2); transition: background 300ms var(--ease); }
.st span { display: block; margin-top: 7px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.st.done i { background: var(--good); }
.st.done span { color: var(--text-2); }
.st.now i { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.st.now span { color: var(--accent); font-weight: 600; }
.working-row { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; padding: 2px 0 4px; }
.working-row .loader { padding: 0; }
.dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.feed-item .ic { border-radius: 8px; }
.feed-item .body { font-size: 14px; line-height: 1.5; }
@media (max-width: 1100px) { .feed { height: 72vh; min-height: 420px; position: static; } }
@media (max-width: 760px) { .feed { height: 78vh; } .stepper span { font-size: 10.5px; } }

/* ---------------------------------------------------------------- sleeker surfaces */
.card { border-color: color-mix(in srgb, var(--line) 85%, transparent); box-shadow: 0 1px 0 rgba(255, 255, 255, .025) inset,
  0 8px 24px -18px rgba(0, 0, 0, .5); }
a.card { transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease); }
a.card:hover { transform: translateY(-1px); border-color: var(--line-2); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .6); }
.status-banner { border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; }
.status-banner .bmsg { font-weight: 600; }
.page-head h1 { letter-spacing: -.02em; }
.nav a { border-radius: 9px; }
.kpi .v { font-size: 30px; letter-spacing: -.02em; }
input, select, textarea { border-color: color-mix(in srgb, var(--line-2) 80%, transparent); }
.btn { border-radius: 9px; }

.page-head .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.choices button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
#cats { gap: 6px; } #cats button { padding: 5px 11px; font-size: 12.5px; }
