:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --brand: #0e2b25;
  --brand-2: #174036;
  --accent: #22a35a;
  --accent-soft: #e6f6ec;
  --primary: #1f4fd1;
  --primary-soft: #eaf0fe;
  --up: #067647;
  --up-soft: #e8f6ee;
  --down: #b42318;
  --down-soft: #fdecea;
  --warn-soft: #fff6e0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.up { color: var(--up); }
.down { color: var(--down); }
.hidden { display: none !important; }

/* ---------- Boutons et formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #1a43b5; }
.btn-danger { color: var(--down); }
.btn-danger:hover { background: var(--down-soft); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.icon-btn {
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent;
  color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; font-size: 16px;
}
.icon-btn:hover { background: var(--surface-2); color: var(--down); }

label { display: block; font-size: 13px; font-weight: 550; color: var(--text-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { background: var(--down-soft); color: var(--down); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }

/* ---------- Coque applicative ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.shell > * { min-width: 0; }
.sidebar {
  background: var(--brand); color: #c4d8d1; padding: 18px 12px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; color: #fff; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; font-weight: 750; color: #fff; font-size: 14px;
}
.brand-name { font-weight: 650; font-size: 15px; }
.brand-org { font-size: 12px; color: #86a69b; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px;
  color: #c4d8d1; font-weight: 500;
}
.nav a:hover { background: var(--brand-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--brand-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nav .ico { width: 18px; text-align: center; opacity: .9; }
.nav .badge { margin-left: auto; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6a8e82; padding: 16px 10px 6px; }
.sidebar-foot { margin-top: auto; }
.demo-note { font-size: 12px; background: rgba(34, 163, 90, .16); color: #a9e3c0; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: #fff; }
.user-chip:hover { background: var(--brand-2); text-decoration: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #2c5a4d; color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none;
}
.user-chip .meta { min-width: 0; }
.user-chip .name { font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .role { font-size: 12px; color: #86a69b; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20;
}
.search { position: relative; flex: 1; max-width: 420px; }
.search input { padding-left: 34px; background: var(--surface-2); }
.search::before { content: "⌕"; position: absolute; left: 11px; top: 6px; color: var(--muted); font-size: 17px; }
.topbar .spacer { flex: 1; }
.bell { position: relative; padding: 0 8px; }
.bell svg { display: block; }
.bell .count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--down); color: #fff; font-size: 11px; font-weight: 650; display: grid; place-items: center; padding: 0 5px;
}
.view { padding: 28px; max-width: 1280px; width: 100%; }

/* ---------- Autocomplétion ---------- */
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden;
}
.ac-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; cursor: pointer; }
.ac-item:hover, .ac-item.sel { background: var(--primary-soft); }
.ac-item .sym { font-weight: 600; }
.ac-wrap { position: relative; }

/* ---------- Mise en page des pages ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card-body { padding: 16px 18px; }
.card-foot { padding: 10px 18px; border-top: 1px solid var(--border); font-size: 13px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi .label { font-size: 12px; color: var(--muted); font-weight: 550; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 22px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .sub { font-size: 13px; margin-top: 2px; font-variant-numeric: tabular-nums; }

.market { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ticker { padding: 12px 14px; display: block; color: inherit; }
.ticker:hover { text-decoration: none; border-color: var(--border-strong); }
.ticker .top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ticker .name { font-size: 12px; color: var(--muted); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .price { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ticker .chg { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ticker svg { display: block; margin-top: 6px; width: 100%; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 12px; font-weight: 550; color: var(--muted);
  padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fbfcfd; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
.sym-cell a { font-weight: 600; color: var(--text); }
.sym-cell .nm { font-size: 12px; color: var(--muted); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weight { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.weight .bar { width: 60px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; border: 1px solid var(--border); }
.weight .bar i { display: block; height: 100%; background: var(--primary); }
.range52 { width: 110px; }
.range52 .track { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: 4px 0 2px; }
.range52 .dot { position: absolute; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); }
.range52 .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-buy { background: var(--up-soft); color: var(--up); }
.badge-hold { background: var(--warn-soft); color: #93590b; }
.badge-sell { background: var(--down-soft); color: var(--down); }
.badge-neutral { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-admin { background: #f1ebfd; color: #5b2bb5; }
.badge-analyst { background: var(--primary-soft); color: var(--primary); }
.badge-viewer { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-alert { background: var(--down); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pill.up { background: var(--up-soft); }
.pill.down { background: var(--down-soft); }

/* ---------- Notes ---------- */
.note { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.note:last-child { border-bottom: none; }
.note-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.note-title { font-weight: 600; font-size: 15px; color: var(--text); }
.note-body { color: var(--text-2); white-space: pre-line; margin-top: 8px; }
.note-meta { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note.compact .note-title { font-size: 14px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Actualités / activité ---------- */
.feed-item { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: none; }
.feed-item .when { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 72px; }
.news-title { font-weight: 550; color: var(--text); }
.news-summary { color: var(--muted); font-size: 13px; margin-top: 2px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: 13px; cursor: pointer; color: var(--text-2); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Fiche valeur ---------- */
.quote-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.quote-price { font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.tabs button { border: none; background: transparent; font: inherit; font-size: 13px; font-weight: 550; color: var(--muted); padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-tip {
  position: absolute; pointer-events: none; background: var(--brand); color: #fff; border-radius: 6px;
  padding: 4px 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -120%); font-variant-numeric: tabular-nums;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stats div { padding: 10px 18px; border-bottom: 1px solid var(--border); }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Modale / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 18px 20px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.secret-box { font-family: ui-monospace, Menlo, monospace; font-size: 16px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 12px; text-align: center; letter-spacing: .04em; user-select: all; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-lg); font-size: 13px; max-width: 360px; }
.toast.error { background: var(--down); }

/* ---------- Connexion ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: var(--brand); color: #c4d8d1; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h1 { color: #fff; font-size: 30px; max-width: 460px; margin-top: 64px; }
.auth-side .lead { margin-top: 14px; max-width: 460px; font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; max-width: 460px; }
.auth-points li { display: flex; gap: 10px; }
.auth-points li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.auth-main { display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }
.demo-accounts { margin-top: 26px; }
.demo-accounts h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.demo-account {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); margin-bottom: 6px; cursor: pointer; font: inherit; text-align: left;
}
.demo-account:hover { border-color: var(--primary); background: var(--primary-soft); }
.demo-account .avatar { width: 28px; height: 28px; font-size: 11px; }
.demo-account .who { flex: 1; min-width: 0; }
.demo-account .who b { display: block; font-weight: 600; font-size: 13px; }
.demo-account .who span { font-size: 12px; color: var(--muted); }

.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .market { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3-1 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; padding: 10px 12px; }
  .brand { padding-bottom: 10px; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav a { white-space: nowrap; }
  .nav-section, .sidebar-foot { display: none; }
  .topbar { padding: 0 16px; }
  .view { padding: 18px 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .alert-form { grid-template-columns: 1fr !important; }
}

/* ---------- Pipeline (kanban) ---------- */
.board { display: grid; grid-template-columns: repeat(6, minmax(178px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: #eef1f3; border-radius: 10px; padding: 8px; min-height: 200px; border: 2px dashed transparent; }
.col.drop { border-color: var(--primary); background: var(--primary-soft); }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 10px; }
.col-head h3 { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.col-head .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.col-head .sum { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lead-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 11px; margin-bottom: 8px; color: inherit; box-shadow: var(--shadow); cursor: pointer; }
.lead-card:hover { border-color: var(--border-strong); text-decoration: none; }
.lead-card[draggable=true] { cursor: grab; }
.lead-card.dragging { opacity: .4; }
.lead-card .t { font-weight: 600; font-size: 13px; }
.lead-card .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-card .b { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 6px; }
.lead-card .v { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-avatar { width: 22px; height: 22px; border-radius: 50%; background: #2c5a4d; color: #fff; font-size: 10px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.due { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 9px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.due.late { background: var(--down-soft); color: var(--down); border-color: transparent; }
.due.today { background: var(--warn-soft); color: #93590b; border-color: transparent; }

/* ---------- Étapes ---------- */
.stage-new { --c: #64748b; } .stage-contacted { --c: #2563eb; } .stage-qualified { --c: #7c3aed; }
.stage-proposal { --c: #d97706; } .stage-won { --c: #16a34a; } .stage-lost { --c: #b42318; }
.badge-stage { background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); }
.stepper { display: flex; gap: 4px; flex-wrap: wrap; }
.stepper button { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 550; padding: 6px 12px; cursor: pointer; border-radius: 6px; }
.stepper button.done { background: color-mix(in srgb, var(--c) 10%, white); border-color: color-mix(in srgb, var(--c) 30%, white); color: var(--c); }
.stepper button.current { background: var(--c); border-color: var(--c); color: #fff; }
.stepper button:disabled { cursor: default; }

/* ---------- Entonnoir ---------- */
.funnel-row { display: grid; grid-template-columns: 110px 1fr 120px; gap: 12px; align-items: center; padding: 7px 18px; }
.funnel-row .bar { height: 22px; border-radius: 5px; background: var(--c); min-width: 3px; display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 12px; font-weight: 600; }
.funnel-row .lbl { font-size: 13px; font-weight: 550; }
.funnel-row .val { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Frise d'échanges ---------- */
.timeline { padding: 4px 18px 12px; }
.tl-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tl-item:last-child { border-bottom: none; }
.tl-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; }
.tl-item.stage .tl-ico { background: var(--accent-soft); border-color: transparent; }
.tl-item.stage .tl-text { color: var(--muted); font-size: 13px; }
.tl-text { white-space: pre-line; }
.tl-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.type-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.type-tabs label { margin: 0; }
.type-tabs input { display: none; }
.type-tabs span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--border-strong); font-size: 13px; cursor: pointer; font-weight: 550; color: var(--text-2); background: var(--surface); }
.type-tabs input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.task-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.task-row:last-child { border-bottom: none; }
.task-row input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--accent); cursor: pointer; }
.task-row .grow { flex: 1; min-width: 0; }
.task-row.done .title { text-decoration: line-through; color: var(--muted); }
.group-title { padding: 10px 18px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.group-title.late { color: var(--down); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: end; }
.filters .field { margin: 0; min-width: 160px; }
.filters .grow { flex: 1; min-width: 220px; }
.info-list { margin: 0; }
.info-list div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.info-list div:last-child { border-bottom: none; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; word-break: break-word; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 13px; }
@media (max-width: 860px) { .info-list div { grid-template-columns: 100px 1fr; } .funnel-row { grid-template-columns: 90px 1fr 90px; } }
