/* WaLead · propuesta de rediseño
   Identidad: magenta de marca (#EC008C) usado con mesura, neutros cálidos,
   barra lateral oscura, cifras en mono tabular. */

:root {
  --brand: #EC008C;
  --brand-ink: #B8006D;
  --brand-soft: #FDEAF4;
  --brand-line: #F7BFDD;

  --paper: #F6F5F2;
  --surface: #FFFFFF;
  --surface-2: #FAF9F7;
  --muted: #F0EEEA;
  --line: #E7E4DF;
  --line-2: #D9D5CE;

  --ink: #17141A;
  --ink-2: #4E4954;
  --ink-3: #8B8691;
  --ink-4: #B5B0B9;

  --night: #141017;
  --night-2: #1E1822;
  --night-line: #2B2430;
  --night-ink: #EDE8F0;
  --night-ink-2: #A69EAC;
  --night-ink-3: #6F6775;

  --ok: #127A4B;   --ok-soft: #E6F3EC;
  --warn: #9A5A07; --warn-soft: #FBF0DF;
  --bad: #B3261E;  --bad-soft: #FCEBE9;
  --info: #2F4FC9; --info-soft: #ECEFFC;

  --r-1: 4px; --r-2: 6px; --r-3: 9px; --r-4: 12px;
  --shadow-1: 0 1px 0 rgba(23,20,26,.04), 0 1px 2px rgba(23,20,26,.05);
  --shadow-pop: 0 0 0 1px rgba(23,20,26,.06), 0 8px 24px -6px rgba(23,20,26,.18), 0 2px 6px rgba(23,20,26,.06);

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
svg.lucide { width: 16px; height: 16px; stroke-width: 1.75; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-2); }
::selection { background: var(--brand-soft); }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 244px 1fr; height: 100vh; }
.side {
  background: var(--night);
  color: var(--night-ink-2);
  display: flex; flex-direction: column;
  padding: 14px 10px 10px;
  min-height: 0;
}
.side-brand { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
.wordmark { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.wordmark .mark { width: 24px; height: 20px; color: var(--brand); }
.wordmark small { color: var(--night-ink-3); font-weight: 500; font-size: 17px; }

.ws {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px; border-radius: var(--r-3);
  background: var(--night-2); border: 1px solid var(--night-line);
  text-align: left; transition: border-color .15s;
}
.ws:hover { border-color: #3b3240; }
.ws-av { width: 26px; height: 26px; border-radius: 6px; background: #2E2534; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.ws-name { color: var(--night-ink); font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.ws-plan { font-size: 12px; color: var(--night-ink-3); }
.ws .lucide { margin-left: auto; color: var(--night-ink-3); width: 14px; height: 14px; }

.side-search {
  margin: 10px 0 6px; display: flex; align-items: center; gap: 8px; width: 100%;
  height: 32px; padding: 0 8px 0 10px; border-radius: var(--r-2);
  color: var(--night-ink-3); font-size: 13px; transition: background .15s, color .15s;
}
.side-search:hover { background: var(--night-2); color: var(--night-ink-2); }
.side-search kbd { margin-left: auto; }

.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-label { font-size: 11.5px; font-weight: 600; color: var(--night-ink-3); padding: 18px 10px 6px; letter-spacing: .02em; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 10px; border-radius: var(--r-2);
  font-size: 13.5px; font-weight: 500; color: var(--night-ink-2);
  transition: background .12s, color .12s;
}
.nav-item:hover { background: rgba(255,255,255,.04); color: var(--night-ink); }
.nav-item.active { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--brand);
}
.nav-item .count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--night-ink-3); }
.nav-item .count.hot { color: #fff; background: var(--brand); border-radius: 10px; padding: 0 6px; line-height: 17px; }
.nav-item .alert-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: #F0533F; box-shadow: 0 0 0 3px rgba(240,83,63,.18); }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.credits {
  width: 100%; text-align: left; padding: 10px 10px 11px; border-radius: var(--r-3);
  background: var(--night-2); border: 1px solid var(--night-line);
}
.credits:hover { border-color: #3b3240; }
.credits-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--night-ink-3); margin-bottom: 8px; }
.credits-row b { color: var(--night-ink); font-weight: 500; font-family: var(--mono); }
.meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-2); width: 100%; text-align: left; }
.me:hover { background: rgba(255,255,255,.04); }
.me-name { color: var(--night-ink); font-size: 13px; font-weight: 500; line-height: 1.2; }
.me-mail { color: var(--night-ink-3); font-size: 12px; }
.me .lucide { margin-left: auto; color: var(--night-ink-3); }

/* ---------- Main ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar {
  height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-4); }
.crumbs .cur { color: var(--ink); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-2);
  color: var(--ink-2); position: relative; transition: background .12s;
}
.icon-btn:hover { background: var(--muted); color: var(--ink); }
.icon-btn .pip { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); border: 2px solid var(--paper); }

.view { flex: 1; overflow: auto; min-height: 0; }
.page { padding: 28px 36px 64px; max-width: 1320px; }
.page.full { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-title { font-size: 24px; font-weight: 650; letter-spacing: -.025em; margin: 0; line-height: 1.15; }
.page-sub { color: var(--ink-2); margin: 6px 0 0; font-size: 13.5px; max-width: 620px; }
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px;
  border-radius: var(--r-2); font-size: 13.5px; font-weight: 550; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink);
  box-shadow: 0 1px 0 rgba(23,20,26,.04); transition: background .12s, border-color .12s, transform .08s;
}
.btn:hover { background: var(--surface-2); border-color: #CBC6BE; }
.btn:active { transform: translateY(.5px); }
.btn .lucide { width: 15px; height: 15px; color: var(--ink-2); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(23,20,26,.2); }
.btn-primary:hover { background: #2A2430; border-color: #2A2430; }
.btn-primary .lucide { color: #fff; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(184,0,109,.3); }
.btn-brand:hover { background: #D6007F; border-color: #D6007F; }
.btn-brand .lucide { color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--muted); border-color: transparent; color: var(--ink); }
.btn-danger { color: var(--bad); }
.btn-danger .lucide { color: var(--bad); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--brand-ink); font-weight: 550; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

kbd {
  font-family: var(--mono); font-size: 11px; line-height: 18px; padding: 0 5px; border-radius: 4px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3);
  box-shadow: 0 1px 0 var(--line-2);
}
.side kbd { background: transparent; border-color: var(--night-line); color: var(--night-ink-3); box-shadow: none; }

/* ---------- Inputs ---------- */
.input {
  height: 34px; width: 100%; padding: 0 10px; border-radius: var(--r-2);
  border: 1px solid var(--line-2); background: var(--surface); outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.textarea { width: 100%; min-height: 96px; padding: 10px 12px; border-radius: var(--r-2); border: 1px solid var(--line-2); background: var(--surface); outline: none; resize: vertical; line-height: 1.55; }
.search { position: relative; }
.search .lucide { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: var(--ink-3); }
.search .input { padding-left: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 550; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }

.switch { position: relative; width: 34px; height: 20px; border-radius: 20px; background: var(--line-2); transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s var(--ease); }
.switch.on { background: var(--ink); }
.switch.on::after { transform: translateX(14px); }

.check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; flex: none; transition: all .1s; }
.check.on { background: var(--ink); border-color: var(--ink); }
.check.on::after { content: ""; width: 8px; height: 4.5px; border-left: 1.75px solid #fff; border-bottom: 1.75px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.check.mixed { background: var(--ink); border-color: var(--ink); }
.check.mixed::after { content: ""; width: 8px; height: 1.75px; background: #fff; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: var(--muted); }
.seg button { height: 26px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(23,20,26,.08), 0 0 0 1px rgba(23,20,26,.04); }
.seg .num { font-size: 11.5px; color: var(--ink-3); }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { position: relative; padding: 10px 0 12px; font-size: 13.5px; font-weight: 550; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); }
.tabs a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.tabs .num { font-size: 11.5px; color: var(--ink-3); background: var(--muted); padding: 0 6px; border-radius: 10px; line-height: 18px; }

/* ---------- Status ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.warn { background: var(--warn-soft); color: var(--warn); }
.st.bad { background: var(--bad-soft); color: var(--bad); }
.st.info { background: var(--info-soft); color: var(--info); }
.st.brand { background: var(--brand-soft); color: var(--brand-ink); }
.st.mute { background: var(--muted); color: var(--ink-3); }
.st.plain { background: transparent; padding: 0; color: var(--ink-2); font-weight: 500; }
.st.plain.ok::before { background: var(--ok); } .st.plain.warn::before { background: #D48A1B; } .st.plain.bad::before { background: var(--bad); } .st.plain.info::before { background: var(--info); } .st.plain.brand::before { background: var(--brand); } .st.plain.mute::before { background: var(--ink-4); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 5px; font-size: 12px; font-weight: 550; background: var(--muted); color: var(--ink-2); white-space: nowrap; }
.tag .lucide { width: 12px; height: 12px; }

.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 650; flex: none; letter-spacing: .01em; }
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.av-1 { background: #EFE6F5; color: #5B3478; } .av-2 { background: #E3EEEA; color: #22604A; } .av-3 { background: #F6E8DC; color: #8A4B17; }
.av-4 { background: #E5E9F6; color: #33468A; } .av-5 { background: #F7E3EA; color: #8E2A4D; } .av-6 { background: #ECEAE4; color: #55504A; }

/* ---------- Cards / panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow-1); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 14px; font-weight: 650; margin: 0; }
.panel-body { padding: 18px; }
.notice { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-3); font-size: 13.5px; margin-bottom: 18px; }
.notice.bad { background: var(--bad-soft); color: #7A1A14; }
.notice.warn { background: var(--warn-soft); color: #6A3E06; }
.notice.brand { background: var(--brand-soft); color: #7A0048; }
.notice .lucide { width: 17px; height: 17px; }
.notice .grow { flex: 1; }
.notice b { font-weight: 650; }

/* KPI ribbon */
.kpis { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow-1); margin-bottom: 22px; overflow: hidden; }
.kpi { padding: 16px 18px 14px; border-right: 1px solid var(--line); position: relative; }
.kpi:last-child { border-right: 0; }
.kpi-label { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -.04em; margin-top: 6px; line-height: 1.1; }
.kpi-foot { white-space: nowrap; gap: 8px; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.delta { font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.spark { width: 84px; height: 24px; }

/* ---------- Table ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-4); box-shadow: var(--shadow-1); overflow-x: auto; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th { text-align: left; font-size: 12px; font-weight: 550; color: var(--ink-3); padding: 0 14px; height: 36px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.t td { white-space: nowrap; padding: 0 14px; height: 56px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .1s; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr:hover { background: #FBFAF8; }
.t tbody tr.sel { background: #FDF6FA; }
.t tbody tr.open { background: #FBF3F8; box-shadow: inset 2px 0 0 var(--brand); }
.t .r { text-align: right; }
.t .w-check { width: 40px; padding-right: 0; }
.cell-main { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cell-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-person > div { min-width: 0; }
.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.progress { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.progress-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.bar { height: 4px; background: var(--muted); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.bar.brand > i { background: var(--brand); }
.bar.mute > i { background: var(--ink-4); }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); background: var(--surface-2); }
.row-menu { opacity: .5; }
tr:hover .row-menu { opacity: 1; }

.bulk {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 10px;
  background: var(--night); color: var(--night-ink); box-shadow: 0 12px 32px -8px rgba(20,16,23,.5);
  transition: all .2s var(--ease); z-index: 40; font-size: 13px;
}
.bulk.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bulk .btn { background: transparent; border-color: transparent; color: var(--night-ink); box-shadow: none; }
.bulk .btn:hover { background: rgba(255,255,255,.08); }
.bulk .btn .lucide { color: var(--night-ink-2); }
.bulk .divider { width: 1px; height: 18px; background: var(--night-line); margin: 0 4px; }

/* ---------- Funnel (eco de la forma del logo) ---------- */
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 0 22px; }
.fstep { position: relative; padding: 14px 18px 14px 26px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fstep:first-child { border-left: 1px solid var(--line); border-radius: var(--r-4) 0 0 var(--r-4); padding-left: 18px; }
.fstep:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--r-4) var(--r-4) 0; }
.fstep:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; z-index: 2;
  background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg) skew(8deg, 8deg);
}
.fstep .lab { font-size: 12.5px; color: var(--ink-3); }
.fstep .val { font-family: var(--mono); font-size: 22px; letter-spacing: -.04em; margin-top: 4px; }
.fstep .rate { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.fstep .rate b { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.fstep.hl .val { color: var(--brand-ink); }

/* ---------- Drawer / modal / popover ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20,16,23,.28); opacity: 0; transition: opacity .2s; z-index: 50; }
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 8px; right: 8px; bottom: 8px; width: 460px; z-index: 51;
  background: var(--surface); border-radius: var(--r-4); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; transform: translateX(110%); transition: transform .28s var(--ease);
}
.drawer.show { transform: none; }
.drawer-head { padding: 18px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 4px 20px 24px; }
.dsec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.dsec:last-child { border-bottom: 0; }
.dsec h4 { margin: 0 0 12px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); letter-spacing: .01em; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); min-width: 0; }

.modal-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding-top: 10vh; pointer-events: none; }
.modal {
  pointer-events: auto; width: 560px; max-width: calc(100vw - 32px); max-height: 80vh; overflow: auto;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(8px) scale(.985); transition: all .2s var(--ease);
}
.modal.show { opacity: 1; transform: none; }
.modal.wide { width: 720px; }
.modal-head { padding: 20px 22px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-title { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.modal-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.modal-body { padding: 18px 22px; }
.modal-foot { padding: 14px 22px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 14px 14px; }

.pop {
  position: fixed; z-index: 70; min-width: 220px; background: var(--surface); border-radius: 10px;
  box-shadow: var(--shadow-pop); padding: 5px; opacity: 0; transform: translateY(-4px) scale(.98);
  transform-origin: top left; transition: opacity .14s, transform .14s var(--ease);
}
.pop.show { opacity: 1; transform: none; }
.pop.dark { background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line), 0 12px 32px -8px rgba(0,0,0,.6); color: var(--night-ink); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 9px; border-radius: 6px; font-size: 13.5px; color: var(--ink); text-align: left; }
.menu-item:hover, .menu-item.hover { background: var(--muted); }
.menu-item .lucide { color: var(--ink-3); width: 15px; height: 15px; }
.menu-item .end { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.menu-item.danger { color: var(--bad); } .menu-item.danger .lucide { color: var(--bad); }
.menu-sep { height: 1px; background: var(--line); margin: 5px -5px; }
.menu-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 8px 9px 4px; }
.pop.dark .menu-item { color: var(--night-ink); }
.pop.dark .menu-item:hover { background: rgba(255,255,255,.06); }
.pop.dark .menu-sep { background: var(--night-line); }
.pop.dark .menu-label { color: var(--night-ink-3); }

/* Command palette */
.cmd { width: 620px; padding: 0; }
.cmd-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-bottom: 1px solid var(--line); }
.cmd-input input { flex: 1; border: 0; outline: none; font-size: 15.5px; background: transparent; }
.cmd-list { max-height: 380px; overflow: auto; padding: 6px; }
.cmd-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--surface-2); border-radius: 0 0 14px 14px; }
.cmd-foot span { display: flex; align-items: center; gap: 6px; }

/* Toast */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 300px; padding: 11px 12px 11px 14px; border-radius: 10px; background: var(--night); color: var(--night-ink); font-size: 13.5px; box-shadow: 0 12px 30px -10px rgba(20,16,23,.55); animation: tin .25s var(--ease); }
.toast .lucide { color: #6FD3A2; }
.toast button { margin-left: auto; color: var(--brand-line); font-weight: 600; font-size: 13px; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Tooltip */
/* Tooltip: lo pinta studio.js con posición fija para que nunca se salga de la ventana */


/* Skeleton */
.skel { background: linear-gradient(90deg, var(--muted) 0%, #F7F5F2 50%, var(--muted) 100%); background-size: 200% 100%; animation: sk 1.1s infinite linear; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Copilot ---------- */
.copilot { display: grid; grid-template-columns: 1fr 300px; height: 100%; }
.cp-main { display: flex; flex-direction: column; min-height: 0; }
.cp-scroll { flex: 1; overflow: auto; }
.cp-inner { max-width: 760px; margin: 0 auto; padding: 48px 32px 24px; }
.cp-hello { font-size: 30px; font-weight: 650; letter-spacing: -.03em; margin: 0; }
.cp-hello em { font-style: normal; color: var(--brand-ink); }
.cp-lead { color: var(--ink-2); font-size: 15px; margin: 8px 0 28px; }
.composer { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 1px 2px rgba(23,20,26,.04), 0 8px 24px -16px rgba(23,20,26,.2); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft), 0 8px 24px -16px rgba(23,20,26,.2); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; padding: 16px 16px 4px; min-height: 64px; font-size: 15px; background: transparent; line-height: 1.5; }
.composer-foot { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px 12px; }
.composer-foot .hint { font-size: 12px; color: var(--ink-3); margin-right: auto; display: flex; align-items: center; gap: 6px; }
.send { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background .12s; }
.send:hover { background: var(--brand); }
.send .lucide { width: 16px; height: 16px; }
.cp-suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sug { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); transition: border-color .12s, background .12s; }
.sug:hover { border-color: var(--line-2); background: var(--surface-2); }
.sug .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--muted); display: grid; place-items: center; flex: none; }
.sug .ico .lucide { color: var(--ink-2); }
.sug b { display: block; font-weight: 600; font-size: 13.5px; }
.sug span { font-size: 12.5px; color: var(--ink-3); }
.cp-side { border-left: 1px solid var(--line); padding: 20px 16px; overflow: auto; background: var(--paper); }
.cp-side h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 0 8px; }
.hist { display: block; padding: 7px 8px; border-radius: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; text-align: left; }
.hist:hover { background: var(--muted); color: var(--ink); }
.todo { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; text-align: left; width: 100%; }
.todo:hover { border-color: var(--line-2); }
.todo .lucide { margin-top: 1px; }
.todo b { display: block; font-size: 13px; font-weight: 600; }
.todo span { font-size: 12.5px; color: var(--ink-3); }

.msg { display: flex; gap: 12px; margin-bottom: 22px; animation: tin .25s var(--ease); }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--night); color: var(--night-ink); border-radius: 14px 14px 4px 14px; padding: 10px 14px; max-width: 520px; }
.msg .ai-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.msg .ai-mark svg { width: 17px; height: 14px; }
.ai-body { flex: 1; min-width: 0; }
.ai-body p { margin: 2px 0 12px; }
.steps { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: var(--ink-3); }
.steps div { display: flex; align-items: center; gap: 8px; }
.steps .lucide { width: 14px; height: 14px; }
.steps .done .lucide { color: var(--ok); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.result-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.result .t td { height: 48px; }
.result-foot { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.typing::after { content: "▍"; color: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sequence ---------- */
.seq { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }
.flow { position: relative; }
.node { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-align: left; box-shadow: var(--shadow-1); transition: border-color .12s, box-shadow .12s; }
.node:hover { border-color: var(--line-2); }
.node.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,20,26,.06); }
.node .nico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--muted); }
.node .nico.brand { background: var(--brand-soft); } .node .nico.brand .lucide { color: var(--brand-ink); }
.node .nnum { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.node .ntitle { font-weight: 600; font-size: 13.5px; }
.node .nsub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.node .nstat { margin-left: auto; text-align: right; font-size: 12px; color: var(--ink-3); }
.node .nstat b { display: block; font-family: var(--mono); font-weight: 500; color: var(--ink); font-size: 13px; }
.wait { display: flex; align-items: center; gap: 8px; padding: 10px 0 10px 29px; position: relative; font-size: 12.5px; color: var(--ink-3); }
.wait::before { content: ""; position: absolute; left: 29px; top: 0; bottom: 0; border-left: 1.5px dashed var(--line-2); }
.wait button { position: relative; margin-left: 14px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.wait button:hover { border-color: var(--line-2); color: var(--ink); }
.wait button.on { border-color: var(--ink); color: var(--ink); }
.add-step { width: 100%; margin-top: 12px; height: 40px; border-radius: 10px; border: 1.5px dashed var(--line-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 550; font-size: 13.5px; }
.add-step:hover { border-color: var(--ink-3); color: var(--ink); background: var(--surface); }
.editor { position: sticky; top: 0; }
.ed-area { min-height: 220px; padding: 14px 16px; outline: none; line-height: 1.65; font-size: 14.5px; white-space: pre-wrap; }
.var { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; margin: 0 1px; border-radius: 5px; background: var(--muted); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 22px; user-select: all; vertical-align: 1px; }
.var.ai { background: var(--brand-soft); color: var(--brand-ink); }
.var.ai::before { content: "✦"; font-size: 10px; }
.ed-tools { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-4) var(--r-4); }
.ed-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.preview-bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 14px 16px; line-height: 1.6; white-space: pre-wrap; font-size: 14px; }
.variants { display: flex; gap: 6px; }
.variants button { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; }
.variants button.on { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.variants button:hover { color: var(--ink); }
.autosave { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.autosave .lucide { width: 13px; height: 13px; color: var(--ok); }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: 340px 1fr 300px; height: 100%; }
.ib-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.ib-list-head { padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.ib-items { flex: 1; overflow: auto; padding: 0 8px 12px; }
.conv { display: flex; gap: 10px; width: 100%; padding: 11px 10px; border-radius: 9px; text-align: left; position: relative; }
.conv:hover { background: rgba(23,20,26,.035); }
.conv.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.conv .who { display: flex; justify-content: space-between; gap: 8px; }
.conv .who b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .when { font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); flex: none; }
.conv .snip { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 6px; }
.conv.unread .snip { color: var(--ink-2); }
.conv.unread::before { content: ""; position: absolute; left: 2px; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.thread { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.th-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.th-body { flex: 1; overflow: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.day { align-self: center; font-size: 11.5px; color: var(--ink-3); font-family: var(--mono); padding: 2px 8px; border-radius: 10px; background: var(--muted); }
.bub { max-width: 560px; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.bub.in { align-self: flex-start; background: var(--muted); border-bottom-left-radius: 4px; }
.bub.out { align-self: flex-end; background: var(--night); color: var(--night-ink); border-bottom-right-radius: 4px; }
.bub-meta { font-size: 11.5px; color: var(--ink-3); margin-top: -8px; display: flex; align-items: center; gap: 6px; }
.bub-meta.out { align-self: flex-end; }
.bub-meta .lucide { width: 12px; height: 12px; }
.reply { border-top: 1px solid var(--line); padding: 14px 20px 18px; }
.ai-sug { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--brand-line), var(--line)) border-box; border: 1px solid transparent; margin-bottom: 10px; }
.ai-sug .mk { color: var(--brand); width: 18px; height: 15px; flex: none; margin-top: 2px; }
.ai-sug p { margin: 2px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.ib-ctx { border-left: 1px solid var(--line); overflow: auto; padding: 20px 18px; background: var(--paper); }

/* ---------- Settings ---------- */
.set-grid { display: grid; grid-template-columns: 200px 1fr; gap: 36px; }
.subnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.subnav a { padding: 7px 10px; border-radius: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.subnav a:hover { background: var(--muted); color: var(--ink); }
.subnav a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.srow { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.srow:first-child { padding-top: 4px; }
.srow h3 { margin: 0; font-size: 14px; font-weight: 650; }
.srow p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }
.days { display: flex; gap: 4px; }
.days button { width: 34px; height: 32px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.days button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.limit { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 16px; padding: 8px 0; }
.limit label { font-size: 13.5px; }
.limit input[type=range] { width: 100%; accent-color: var(--ink); }
.limit .num { text-align: right; font-size: 13px; }
.savebar { position: sticky; bottom: 16px; margin-top: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 10px; background: var(--night); color: var(--night-ink); box-shadow: 0 12px 30px -10px rgba(20,16,23,.5); font-size: 13.5px; animation: tin .2s var(--ease); }
.savebar .btn-ghost { color: var(--night-ink-2); }
.savebar .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-2); background: var(--surface); height: 34px; }
.stepper button { width: 32px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { background: var(--muted); }
.stepper span { min-width: 56px; text-align: center; font-family: var(--mono); font-size: 13.5px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 32px; }
.plan-sum { position: sticky; top: 0; }
.price { font-family: var(--mono); font-size: 40px; letter-spacing: -.05em; font-weight: 500; line-height: 1; }
.lines { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.lines div { display: flex; justify-content: space-between; }
.lines span:last-child { font-family: var(--mono); }

/* ---------- Accounts / health ---------- */
.ring { --p: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c, var(--ok)) calc(var(--p) * 1%), var(--muted) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.mini-meters { display: grid; grid-template-columns: repeat(4, 96px); gap: 14px; }
.mm { font-size: 12px; color: var(--ink-3); }
.mm b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.mm .bar { margin-top: 5px; }

/* ---------- Charts ---------- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; position: relative; }
.chart .col i { display: block; border-radius: 3px 3px 1px 1px; background: var(--ink); transition: opacity .12s; }
.chart .col i.b { background: var(--brand); }
.chart .col i.c { background: var(--line-2); }
.chart .col:hover i { opacity: .8; }
.chart-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 8px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.legend i.b { background: var(--brand); } .legend i.c { background: var(--line-2); }

/* ---------- Login ---------- */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--surface); }
.login-form { display: flex; flex-direction: column; padding: 36px 56px; }
.login-box { width: 360px; margin: auto; }
.login-box h1 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 6px; font-weight: 650; }
.login-box p { color: var(--ink-2); margin: 0 0 28px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12.5px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-art { background: var(--night); color: var(--night-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::before { content: ""; position: absolute; right: -180px; top: -120px; width: 560px; height: 480px; background: radial-gradient(closest-side, rgba(236,0,140,.28), transparent); }
.login-art h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.035em; font-weight: 600; margin: 0; max-width: 460px; position: relative; }
.login-art h2 em { font-style: normal; color: #FF4FB4; }
.stack { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.stack .card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.stack .card b { color: #fff; font-weight: 600; font-size: 13.5px; }
.stack .card p { margin: 2px 0 0; color: var(--night-ink-2); font-size: 13px; }
.stack .card:nth-child(2) { margin-left: 28px; opacity: .85; }
.stack .card:nth-child(3) { margin-left: 56px; opacity: .6; }
.trust { display: flex; gap: 28px; color: var(--night-ink-3); font-size: 12.5px; position: relative; }
.trust b { display: block; color: #fff; font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: -.03em; }

/* ---------- Import options ---------- */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; border: 1px solid var(--line); text-align: left; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--line-2); background: var(--surface-2); }
.opt.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,20,26,.05); }
.opt .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--muted); display: grid; place-items: center; flex: none; }
.opt b { display: block; font-size: 13.5px; font-weight: 600; }
.opt span { font-size: 12.5px; color: var(--ink-3); }
.group-label { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 14px 0 8px; }
.group-label:first-child { margin-top: 0; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 28px; text-align: center; color: var(--ink-2); background: var(--surface-2); }

.empty { text-align: center; padding: 56px 24px; }
.empty .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--muted); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { margin: 0 0 4px; font-size: 15px; }
.empty p { margin: 0 auto 16px; color: var(--ink-3); max-width: 380px; font-size: 13.5px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tl { display: flex; gap: 12px; position: relative; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: -14px; width: 1.5px; background: var(--line); }
.tl .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--muted); }
.tl .dot .lucide { width: 13px; height: 13px; color: var(--ink-3); }
.tl.done .dot { background: var(--ok-soft); } .tl.done .dot .lucide { color: var(--ok); }
.tl.next .dot { background: var(--brand-soft); } .tl.next .dot .lucide { color: var(--brand-ink); }
.tl b { font-size: 13.5px; font-weight: 600; display: block; }
.tl span { font-size: 12.5px; color: var(--ink-3); }
.score { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.score .big { font-family: var(--mono); font-size: 26px; letter-spacing: -.04em; }
.score ul { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); }
.dots3 { display: flex; gap: 3px; align-items: center; }
.dots3 i { width: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.dots3 i.on { background: var(--ink); }
.sug b, .todo b, .opt b, .conv b { color: var(--ink); }
.sug > span > span, .todo > span > span, .opt > span > span { display: block; }
.seq { grid-template-columns: 380px minmax(0, 1fr); }
.editor { min-width: 0; }
.editor .panel-head { gap: 12px; flex-wrap: wrap; }
.variants button { white-space: nowrap; }
.ed-tools { flex-wrap: wrap; }
.inbox { grid-template-columns: 320px minmax(0, 1fr) 270px; }
.thread { min-width: 0; }
.th-head .btn { flex: none; }
.seg button { white-space: nowrap; }
@media (max-width: 1320px) {
  .inbox { grid-template-columns: 300px minmax(0, 1fr); }
  .ib-ctx { display: none; }
  .copilot { grid-template-columns: 1fr 260px; }
}
.mini-meters { grid-template-columns: repeat(2, 120px); gap: 8px 18px; padding: 10px 0; }
.set-grid { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
.price { font-family: var(--sans); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.srow { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
@media (max-width: 1320px) { .bill-grid { grid-template-columns: minmax(0, 1fr) 260px !important; } }
.progress { min-width: 160px; }
#root { height: 100%; }
.login { height: 100vh; overflow: auto; }
