:root {
  --bg: #0b0b0f;
  --surface: #131319;
  --surface-2: #1a1a22;
  --line: #262631;
  --line-2: #33333f;
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --faint: #6b6b78;
  --lime: #c9f24d;
  --lime-ink: #0b0b0f;
  --lime-soft: rgba(201, 242, 77, 0.12);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.12);
  --amber: #ffc857;
  --amber-soft: rgba(255, 200, 87, 0.12);
  --blue: #7cc4ff;
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar: 248px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
[hidden] { display: none !important; }

/* ───────────── Botones y formularios ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  text-decoration: none; color: var(--text);
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: #4a4a58; background: #20202a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn.primary:hover { background: #d6f76f; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.icon-btn:disabled { opacity: .3; cursor: default; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--bg); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.input:focus-visible { outline: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.switch input { accent-color: var(--lime); width: 16px; height: 16px; }

/* ───────────── Login ───────────── */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(600px 400px at 80% -10%, rgba(201,242,77,.10), transparent 60%),
    radial-gradient(500px 400px at -10% 110%, rgba(201,242,77,.06), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px;
}
.auth-card .logo { height: 34px; display: block; margin: 0 0 28px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card form { margin-top: 24px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--text); }
.demo-box {
  margin-top: 22px; padding: 16px; border-radius: 12px;
  border: 1px dashed var(--line-2); background: var(--bg);
}
.demo-box p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.form-error { color: var(--red); font-size: 13px; min-height: 18px; margin: 0; }

/* ───────────── Shell ───────────── */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line); background: var(--surface);
  padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar .logo { height: 26px; margin: 0 8px 26px; align-self: flex-start; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 16px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px;
}
.nav-link svg { width: 18px; height: 18px; flex: none; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--lime-soft); color: var(--lime); }
.nav-link .count {
  margin-left: auto; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; background: var(--red); color: #fff; display: grid; place-items: center;
}
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 13px; font-family: var(--display);
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.me-name { font-weight: 600; font-size: 14px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-mail { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-pill {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--amber);
  background: var(--amber-soft); border-radius: 99px; padding: 3px 9px; align-self: flex-start; margin-left: 6px;
}

.main { min-width: 0; padding: 36px 40px 80px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head .sub { margin: 6px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.topbar, .bottom-nav { display: none; }

/* ───────────── Tarjetas y métricas ───────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-value { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 12px; color: var(--faint); margin-top: 2px; }
.kpi.accent { border-color: rgba(201,242,77,.35); background: linear-gradient(180deg, rgba(201,242,77,.08), var(--surface) 70%); }
.kpi.accent .kpi-value { color: var(--lime); }
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.dash-grid .span-2 { grid-column: span 2; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--lime); min-width: 2px; }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.funnel { display: grid; gap: 8px; }
.funnel-step { display: grid; grid-template-columns: 130px 1fr 36px; gap: 12px; align-items: center; font-size: 13px; }
.funnel-step .bar-fill { background: var(--stage, var(--lime)); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: var(--faint); margin-bottom: 8px; }

/* ───────────── Lista de seguimientos ───────────── */
.task-list { display: grid; gap: 2px; }
.task {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 10px; border-radius: 10px; cursor: pointer;
}
.task:hover { background: var(--surface-2); }
.task-main { min-width: 0; }
.task-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: transparent;
  cursor: pointer; display: grid; place-items: center; color: transparent; padding: 0;
}
.check:hover { border-color: var(--lime); color: var(--lime); }
.check svg { width: 13px; height: 13px; }
.group-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 18px 10px 6px; color: var(--faint); }
.group-title.overdue { color: var(--red); }
.group-title.today { color: var(--lime); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted);
}
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.lime { background: var(--lime-soft); color: var(--lime); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }

/* ───────────── Kanban ───────────── */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { height: 38px; max-width: 260px; }
.toolbar select.input { max-width: 180px; }
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px;
  overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity;
}
.col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 220px); scroll-snap-align: start; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.col-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stage); }
.col-head h3 { font-size: 14px; font-family: var(--font); font-weight: 600; }
.col-head .n { color: var(--faint); font-size: 13px; }
.col-head .sum { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.col-body { padding: 4px 10px 12px; display: grid; gap: 8px; overflow-y: auto; min-height: 80px; align-content: start; border-radius: 0 0 var(--radius) var(--radius); transition: background .15s; }
.col-body.over { background: var(--lime-soft); }
.deal {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px;
  cursor: grab; display: grid; gap: 7px; user-select: none;
}
.deal:hover { border-color: var(--line-2); }
.deal.dragging { opacity: .4; }
.deal-top { display: flex; align-items: center; gap: 8px; }
.deal-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-val { margin-left: auto; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.deal-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.deal-next { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-deal { margin: 0 10px 12px; }

/* ───────────── Tabla ───────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 10px; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.off td { opacity: .5; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-name { font-weight: 600; }
.person-mail { font-size: 12px; color: var(--faint); }
.mini-progress { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.mini-progress .bar-track { flex: 1; height: 6px; }
.mini-progress span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; text-align: right; }

/* ───────────── Alumno: módulos ───────────── */
.hero-progress {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(135deg, rgba(201,242,77,.13), rgba(201,242,77,.02) 60%), var(--surface);
  border: 1px solid rgba(201,242,77,.25); border-radius: 18px; padding: 26px 28px; margin-bottom: 28px;
}
.hero-progress h2 { font-size: 22px; }
.hero-progress p { margin: 6px 0 16px; color: var(--muted); }
.ring { width: 96px; height: 96px; }
.ring text { font-family: var(--display); font-weight: 700; fill: var(--text); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.module-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, transform .15s;
}
.module-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.module-num { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--lime); letter-spacing: .04em; }
.module-card h3 { font-size: 18px; }
.module-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.module-foot { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); padding-top: 6px; }
.module-foot .bar-track { flex: 1; height: 6px; }
.done-tag { color: var(--lime); font-weight: 600; }

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.player { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.player.none { display: grid; place-items: center; color: var(--faint); background: var(--surface); font-size: 14px; text-align: center; padding: 20px; }
.lesson-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 22px 0 8px; }
.lesson-head h1 { font-size: 26px; flex: 1; min-width: 220px; }
.prose { color: #d6d6de; max-width: 72ch; }
.prose h2, .prose h3 { margin: 22px 0 8px; color: var(--text); }
.prose p { margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin-bottom: 4px; }
.prose strong { color: var(--text); }
.resources { display: grid; gap: 8px; margin-top: 22px; max-width: 560px; }
.resource {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px;
}
.resource:hover { border-color: var(--lime); }
.resource svg { width: 18px; height: 18px; color: var(--lime); flex: none; }
.lesson-nav { display: flex; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

.syllabus { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.syllabus-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.syllabus-head .bar-track { height: 6px; margin-top: 10px; }
.syllabus-list { max-height: calc(100vh - 170px); overflow-y: auto; padding: 6px; }
.syl-mod { font-size: 12px; font-weight: 600; color: var(--faint); padding: 12px 12px 4px; text-transform: uppercase; letter-spacing: .05em; }
.syl-item {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 14px;
}
.syl-item:hover { background: var(--surface-2); color: var(--text); }
.syl-item.active { background: var(--lime-soft); color: var(--text); }
.syl-item .tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.syl-item .tick.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.syl-item .tick svg { width: 11px; height: 11px; }
.syl-item .dur { font-size: 12px; color: var(--faint); }

/* ───────────── Admin: contenido ───────────── */
.cms-mod { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.cms-mod-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.cms-mod-head .module-num { width: 28px; }
.cms-mod-head h3 { flex: 1; min-width: 0; font-size: 16px; }
.cms-lessons { border-top: 1px solid var(--line); padding: 6px 10px 10px; }
.cms-lesson { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 38px; border-radius: 9px; font-size: 14px; }
.cms-lesson:hover { background: var(--surface-2); }
.cms-lesson .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cms-lesson svg.vid { width: 16px; height: 16px; color: var(--lime); flex: none; }
.cms-lesson svg.vid.off { color: var(--faint); }
.cms-actions { display: flex; gap: 2px; }

/* ───────────── Modal / drawer ───────────── */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px;
  animation: pop .18s ease;
}
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal-head h2 { flex: 1; }
.modal-foot { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.deal-layout { display: grid; grid-template-columns: 1fr 250px; gap: 22px; }
.timeline { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.tl-item { font-size: 13px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.tl-item time { display: block; font-size: 11px; color: var(--faint); }
.stage-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-pill {
  height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.stage-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stage); }
.stage-pill.on { border-color: var(--stage); color: var(--text); background: color-mix(in srgb, var(--stage) 14%, transparent); }
.res-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 11px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--red); color: #fff; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ───────────── Responsive ───────────── */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .span-2 { grid-column: auto; }
  .lesson-layout { grid-template-columns: 1fr; }
  .syllabus { position: static; }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
    padding: 12px 16px; background: rgba(11,11,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .topbar .logo { height: 22px; }
  .topbar .spacer { flex: 1; }
  .bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    background: rgba(19,19,25,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--faint);
    text-decoration: none; font-size: 11px; font-weight: 500; position: relative;
  }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a.active { color: var(--lime); }
  .bottom-nav .count { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 0 5px; }
  .main { padding: 22px 16px 100px; }
  h1 { font-size: 24px; }
  .page-head { margin-bottom: 20px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .kpi-value { font-size: 24px; }
  .kpi { padding: 14px 16px; }
  .grid-2, .deal-layout { grid-template-columns: 1fr; }
  .board { grid-auto-columns: 82%; }
  .col { max-height: none; }
  .hero-progress { grid-template-columns: 1fr; padding: 20px; }
  .hero-progress .ring { display: none; }
  .modules { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 90px 1fr 36px; }
  .funnel-step { grid-template-columns: 96px 1fr 30px; }
  .modal { padding: 20px 18px; border-radius: 16px; }
  .res-row { grid-template-columns: 1fr; }
  .toolbar .input, .toolbar select.input { max-width: none; flex: 1 1 140px; }
  .hide-sm { display: none; }
}
