:root {
  --bg: #0c1222;
  --surface: #151d33;
  --surface-2: #1d2744;
  --border: #2a3558;
  --text: #e8ecf8;
  --muted: #9aa6c4;
  --accent: #7aa7ff;
  --on-accent: #0a1330;
  --danger: #ff9a9a;
  --mint: #79d2b6;      /* inglês */
  --gold: #f2c46d;      /* chefões, medalhas */
  --ice: #b7c9f2;       /* congelamentos */
  --track-bg: #26304f;
  --radius: 16px;
  --tabbar-h: 64px;
  color-scheme: dark;
}
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--on-accent);
  padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }

.page { max-width: 40rem; margin: 0 auto; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); outline: none; }
.page-with-nav { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.num { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; cursor: pointer; transition: opacity 150ms ease-out, transform 150ms ease-out; }
.btn:active { opacity: .85; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.field { display: block; width: 100%; min-height: 48px; padding: 0 14px; box-sizing: border-box;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; font: inherit; }
.field[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); margin: 0; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom); }
.tab { flex: 1; min-height: var(--tabbar-h); min-width: 44px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none;
  font-size: .75rem; font-weight: 500; transition: color 150ms ease-out; }
.tab-active { color: var(--accent); }
@media (min-width: 768px) { .tabbar { max-width: 40rem; left: 50%; transform: translateX(-50%); border-radius: 16px 16px 0 0; border: 1px solid var(--border); border-bottom: 0; } }

.login { min-height: 80dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.login h1 { font-size: 1.5rem; font-weight: 700; margin: 8px 0 0; }
.login p { margin: 0; }
.login-form { width: 100%; max-width: 20rem; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-form label { font-weight: 500; }

/* ---- Screens: Hoje, Semana, Jornada, tarefa, Mais (Task 8) ---- */
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { flex: none; vertical-align: -0.15em; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.page-head { margin-bottom: 16px; }
.page-head .h1 { margin-bottom: 4px; }
.page-head p { margin: 0; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 600; margin: 0 0 8px; }
.hint { color: var(--muted); font-size: .875rem; margin: 4px 0 0; }
.note { display: flex; gap: 6px; align-items: flex-start; }
.prose { margin: 0 0 12px; white-space: pre-line; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 0; }
.count { font-size: .8125rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 8px; }
.empty p { margin: 0; }

.btn { gap: 8px; text-decoration: none; }
.btn:hover { opacity: .92; }
.btn-ghost:hover { background: var(--surface-2); opacity: 1; }
.btn-soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: .9375rem; flex: none; }
.btn-link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; min-height: 44px; padding: 0 8px; cursor: pointer; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--muted); text-decoration: none; margin: -8px 0 4px; }

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; line-height: 1;
  padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip-dados, .chip-carreira { color: var(--accent); background: rgba(122, 167, 255, .12); }
.chip-ingles { color: var(--mint); background: rgba(121, 210, 182, .12); }
.chip-boss { color: var(--gold); background: rgba(242, 196, 109, .12); }

/* Forms */
.label { display: block; font-weight: 500; font-size: .9375rem; margin-bottom: 6px; }
.fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.checkbox { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form .field { flex: 1; min-width: 0; }

/* Today: task cards */
.task-card { border-left: 4px solid var(--accent); }
.task-card.track-ingles { border-left-color: var(--mint); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; }
.task-title { font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin: 8px 0 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card-actions .btn { flex: 1; }
.complete { margin-top: 8px; }
.complete > summary { list-style: none; width: 100%; box-sizing: border-box; }
.complete > summary::-webkit-details-marker { display: none; }
.complete[open] > summary { margin-bottom: 16px; }
.complete-form { animation: fade-in 200ms ease-out; }

.btn-hero { width: 100%; min-height: 72px; padding: 12px 20px; justify-content: flex-start; gap: 14px; border-radius: var(--radius); text-align: left; }
.btn-hero-text { display: flex; flex-direction: column; }
.btn-hero-title { font-size: 1.125rem; font-weight: 700; }
.btn-hero-sub { font-size: .8125rem; font-weight: 500; opacity: .85; }

/* Rings, streak, level */
.rings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rings { display: flex; gap: 16px; }
.ring { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .875rem; color: var(--muted); }
.ring-track { fill: none; stroke: var(--track-bg); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray 300ms ease-out; }
.ring-ingles { stroke: var(--mint); }
.ring-text { fill: var(--text); font-size: 15px; font-weight: 700; }
.streak-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
.streak-list li { display: flex; align-items: center; gap: 8px; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--muted); flex: none; }
.streak-list li:first-child .stat-icon { color: var(--gold); }
.streak-list li:last-child .stat-icon { color: var(--ice); }
.level { margin-top: 16px; }
.level-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.level-row .section-title { margin: 0; }
.bar { height: 10px; border-radius: 999px; background: var(--track-bg); overflow: hidden; }
.bar-thin { height: 6px; }
.bar-fill { display: block; height: 100%; background: var(--accent); transform-origin: left center; transition: transform 300ms ease-out; }
.bar-ingles { background: var(--mint); }

/* Toast */
.toast-region { position: fixed; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none;
  bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); padding: 0 16px; }
.toast-region-top { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
.toast { pointer-events: auto; width: 100%; max-width: 36rem; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); padding: 4px 4px 4px 16px; animation: toast-in 200ms ease-out; }
.toast-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.toast-xp { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--gold); }
.toast-msg { flex: 1; min-width: 0; color: var(--text); font-size: .9375rem; }
.toast-big { border-color: rgba(242, 196, 109, .45); }
.banner { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px 10px 0; font-size: .9375rem; color: var(--text); border-top: 1px solid var(--border); }
.banner .icon { color: var(--gold); margin-top: 2px; }
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }

/* Week */
.week-summary { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wk-list { list-style: none; margin: 0; padding: 4px 0; }
.wk-item { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 12px; }
.wk-item + .wk-item { border-top: 1px solid var(--border); }
.wk-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin: 0; }
.wk-label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; }
a.wk-row { min-height: 56px; }
.wk-box { width: 20px; height: 20px; border: 2px dashed var(--muted); border-radius: 6px; flex: none; margin: 0 2px; }
.wk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 0; }
.wk-title { font-weight: 500; overflow-wrap: anywhere; }
.wk-meta { font-size: .8125rem; color: var(--muted); }
.wk-item.is-done .wk-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border); }
.someday { padding: 0; }
.someday-summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; cursor: pointer; list-style: none; }
.someday-summary::-webkit-details-marker { display: none; }
.someday-summary .section-title { margin: 0; }
.someday-chev { color: var(--muted); transition: transform 200ms ease-out; display: inline-flex; }
.someday[open] .someday-chev { transform: rotate(90deg); }
.someday > .hint { padding: 0 16px; margin: 0 0 8px; }
.someday-list { list-style: none; margin: 0; padding: 0 16px 8px; }
.someday-item { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.someday-item + .someday-item { border-top: 1px solid var(--border); }

/* Task detail + timer */
.segmented { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 2px; }
.seg { min-height: 44px; min-width: 64px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.seg[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.seg:disabled { cursor: not-allowed; opacity: .6; }
.timer-display { font-size: 3.5rem; font-weight: 700; line-height: 1; text-align: center; margin: 16px 0; letter-spacing: .02em; }
.timer-actions { display: flex; gap: 8px; margin-top: 16px; }
.timer-actions .btn { flex: 1; }
.timer-done { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--accent); animation: fade-in 200ms ease-out; }
.timer-done p { margin: 0; }
.timer-done .timer-actions { margin-top: 12px; }

/* Journey */
.map-card { padding: 8px; }
.journey-map { display: block; width: 100%; height: auto; }
.map-bg { fill: var(--surface-2); }
.map-wave { stroke: var(--border); stroke-width: 1; }
.map-route { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 6; stroke-linecap: round; opacity: .7; }
.map-travelled { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map-city circle { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.map-city text { fill: var(--text); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; }
.map-marker { fill: var(--gold); stroke: var(--bg); stroke-width: 2; }
.map-marker-halo { fill: var(--gold); opacity: .2; }

.week-grid { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
@media (min-width: 480px) { .week-grid { grid-template-columns: repeat(13, 1fr); } }
.wcell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: .75rem; font-weight: 600;
  background: transparent; border: 1px solid var(--border); color: var(--muted); }
.wcell-met { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.wcell-frozen { background: rgba(183, 201, 242, .14); border-color: var(--ice); color: var(--ice); }
.wcell-missed { background: var(--surface-2); border-color: var(--surface-2); color: var(--muted); }
.wcell-rest { border-style: dashed; }
.wcell-current { border: 2px solid var(--text); color: var(--text); }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8125rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 18px; height: 18px; border-radius: 5px; box-sizing: border-box; }

.boss-list { list-style: none; margin: 0; padding: 4px 0; }
.boss + .boss { border-top: 1px solid var(--border); }
.boss-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px; color: inherit; text-decoration: none; }
.boss-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface-2); color: var(--muted); flex: none; }
.boss-done .boss-icon { color: var(--on-accent); background: var(--gold); }
.boss-open .boss-icon { color: var(--gold); }
.boss-done .chip { color: var(--gold); }

.badge-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .badge-shelf { grid-template-columns: repeat(3, 1fr); } }
.badge-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--border); color: var(--muted); }
.badge-item.is-earned { border: 1px solid rgba(242, 196, 109, .45); color: var(--text); }
.badge-icon { color: var(--muted); }
.badge-item.is-earned .badge-icon { color: var(--gold); }
.badge-title { font-weight: 600; font-size: .9375rem; }
.badge-desc { font-size: .8125rem; color: var(--muted); }
.badge-date { font-size: .75rem; color: var(--gold); }

/* Mais */
.menu { list-style: none; margin: 0; padding: 4px 0; }
.menu li + li { border-top: 1px solid var(--border); }
.menu-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 12px; color: inherit; text-decoration: none; }
.menu-row:hover { background: var(--surface-2); }
.logout { margin-top: 16px; }

/* ---- Diário, Vocabulário, Estatísticas (Task 9) ---- */
.field-area { min-height: 72px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field-error { font-size: .875rem; margin-top: 6px; }
.form-submit { margin-top: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 16px; }
.empty-state p { margin: 0; }
.stat-icon-done { color: var(--on-accent); background: var(--mint); }

.entry-list { list-style: none; margin: 0; padding: 4px 0; }
.entry { display: flex; gap: 12px; padding: 12px 16px; }
.entry + .entry { border-top: 1px solid var(--border); }
.entry-icon.entry-recording { color: var(--mint); }
.entry-icon.entry-reflection { color: var(--accent); }
.entry-body { flex: 1; min-width: 0; }
.entry-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .8125rem; }
.entry-text { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.entry-source { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .875rem; text-decoration: none; }
.entry-source:hover { text-decoration: underline; }

.review-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.review-cta-text p { margin: 0; }
.review-cta .section-title { margin-bottom: 4px; }
.inline-form-tight { margin-top: 0; }
.vocab-item { padding-right: 12px; }

.flashcard { padding: 20px 16px; animation: fade-in 200ms ease-out; }
.flashcard-count { margin: 0; font-size: .875rem; }
.flashcard-phrase { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin: 16px 0 24px; text-align: center; overflow-wrap: anywhere; }
.flashcard-empty-title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.reveal > summary { list-style: none; box-sizing: border-box; }
.reveal > summary::-webkit-details-marker { display: none; }
.reveal[open] > summary { display: none; }
.reveal-body { animation: fade-in 200ms ease-out; }
.reveal-body p { margin: 0 0 12px; }
.answer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.answer-row form { margin: 0; }

.stat-big { font-size: 1.5rem; font-weight: 700; }
.hours-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hours-row { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .9375rem; }
.bar-dados, .bar-carreira { background: var(--accent); }
.bar-carreira { opacity: .7; }

.chart { display: block; width: 100%; height: auto; margin-top: 4px; }
.chart-axis { stroke: var(--border); stroke-width: 1; }
.chart-goal { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 4 4; opacity: .8; }
.chart-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-bar-dados { fill: var(--accent); }
.chart-bar-ingles { fill: var(--mint); }
.swatch-dados { background: var(--accent); }
.swatch-ingles { background: var(--mint); }
.legend-line { width: 18px; height: 0; border-top: 2px dashed var(--gold); }
.data-details { margin-top: 8px; }
.data-details > summary { display: inline-flex; align-items: center; padding: 0; list-style: none; }
.data-details > summary::-webkit-details-marker { display: none; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .9375rem; }
.data-table th, .data-table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.data-table thead th { color: var(--muted); font-weight: 500; font-size: .8125rem; }

.level-tests { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.level-test { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.level-result { font-size: 1.125rem; font-weight: 700; color: var(--gold); }
.level-arrow { color: var(--muted); display: inline-flex; }
.level-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.level-form-fields { display: grid; grid-template-columns: 6rem 1fr; gap: 12px; }

/* Admin + Candidaturas */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  background: rgba(121, 210, 182, .1); border: 1px solid rgba(121, 210, 182, .35); color: var(--text); }
.notice .icon { color: var(--mint); margin-top: 3px; }
.card .notice { margin: 12px 0 0; }
.error-box { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 154, 154, .08); border: 1px solid rgba(255, 154, 154, .4); color: var(--danger); }
.error-box .icon { margin-top: 3px; }
.fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.fieldset + .fieldset { border-top: 1px solid var(--border); padding-top: 16px; }
.fieldset > legend { padding: 0; }
select.field { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field-file { padding: 10px 14px; line-height: 1.6; cursor: pointer; }
.field-file::file-selector-button { margin-right: 12px; min-height: 32px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 154, 154, .45); }
.btn-danger:hover { background: rgba(255, 154, 154, .08); opacity: 1; }
.icon-btn-danger:hover { color: var(--danger); }
.bar-gold { background: var(--gold); }
.filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.filter-submit { grid-column: 1 / -1; }
@media (min-width: 480px) { .filter-bar { grid-template-columns: 1fr 1fr auto; } .filter-submit { grid-column: auto; } }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; flex: none;
  font-size: .75rem; font-weight: 600; border: 1px solid var(--border); color: var(--muted); background: var(--surface-2); }
.status-entrevista { color: var(--accent); border-color: rgba(122, 167, 255, .45); }
.status-oferta { color: var(--gold); border-color: rgba(242, 196, 109, .45); }
.legend .status { margin-right: 2px; }
.crm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.crm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.crm-head .wk-text { padding: 0; }
.crm-notes { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.crm-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.crm-status-form { flex: 1; min-width: 0; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
