/* Revisión semanal + Áreas y objetivos (sections/review.js) */
.rv-gray { --lc-bg: var(--surface-2); --lc-fg: var(--text-3); }
.rv-muted { color: var(--text-3); font-size: 13px; }
.rv-bad { color: var(--urgent-fg); font-weight: 600; }
.rv-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--lc-fg); flex-shrink: 0; }
.rv-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.rv-pill.ok { background: var(--ok-soft); color: var(--ok); }
.rv-pill.off { background: var(--high-bg); color: var(--high-fg); }

/* Pantalla */
[data-sec="review"] { max-width: 720px; }
[data-sec="review"] .rv-loading { color: var(--text-3); padding: 24px 0; }
[data-sec="review"] .rv-head { align-items: center; }
[data-sec="review"] .rv-week { display: flex; align-items: center; gap: 2px; }
[data-sec="review"] .rv-week .icon-btn { width: 36px; height: 36px; }
[data-sec="review"] .rv-week .rv-next svg { transform: rotate(180deg); }
[data-sec="review"] .rv-week-l { display: flex; flex-direction: column; align-items: center; min-width: 96px; font-weight: 600; font-size: 14px; line-height: 1.2; }
[data-sec="review"] .rv-week-l small { font-weight: 500; color: var(--text-3); font-size: 12px; }

[data-sec="review"] .rv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
[data-sec="review"] .rv-steps button {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 6px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-width: 0; white-space: nowrap;
}
[data-sec="review"] .rv-steps button[aria-current="step"] { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
[data-sec="review"] .rv-step-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); font-size: 11px; flex-shrink: 0; }
[data-sec="review"] .rv-steps button[aria-current="step"] .rv-step-n { background: var(--accent); color: var(--on-accent); }
[data-sec="review"] .rv-steps button.done .rv-step-n { background: var(--ok-soft); color: var(--ok); }

[data-sec="review"] .rv-body { display: flex; flex-direction: column; gap: 14px; transition: opacity 150ms var(--ease); }
[data-sec="review"] .rv-card { gap: 14px; }
[data-sec="review"] .rv-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
[data-sec="review"] .rv-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
[data-sec="review"] .rv-total-n { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* Barras horizontales con marcador de objetivo */
.rv-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rv-bar-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rv-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.rv-bar-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-bar-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.rv-track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: visible; }
.rv-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--lc-fg); min-width: 2px; transition: width 400ms var(--ease); }
.rv-marker { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; }
.rv-marker::after { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 3px; border-radius: 2px; background: var(--text); }
.rv-bar-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.rv-bar-chats { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rv-fill, [data-sec="review"] .rv-body { transition: none; } }

[data-sec="review"] .rv-how summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
[data-sec="review"] .rv-how p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* Triage (Respondo / Delego / No es mío) */
.rv-triage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.rv-tri { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rv-tri strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.rv-tri span { font-size: 12px; color: var(--text-3); }

/* Impacto de la semana anterior */
[data-sec="review"] .rv-impact { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); }
[data-sec="review"] .rv-impact.ok { background: var(--ok-soft); border-color: transparent; }
[data-sec="review"] .rv-impact.off { background: var(--high-bg); border-color: transparent; }
[data-sec="review"] .rv-impact p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
[data-sec="review"] .rv-impact-k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
[data-sec="review"] .rv-impact.ok .rv-impact-k { color: var(--ok); }
[data-sec="review"] .rv-impact.off .rv-impact-k { color: var(--high-fg); }

/* Desvíos */
[data-sec="review"] .rv-devs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
[data-sec="review"] .rv-dev-head { display: flex; gap: 12px; align-items: flex-start; }
[data-sec="review"] .rv-dev-head h3 { margin: 0; }
[data-sec="review"] .rv-dev-head p { margin: 2px 0 0; }
[data-sec="review"] .rv-dev-n { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--high-bg); color: var(--high-fg); font-weight: 700; font-size: 13px; }
[data-sec="review"] .rv-dev-chats ul { list-style: none; margin: 6px 0 0; padding: 0; }
[data-sec="review"] .rv-dev-chats li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
[data-sec="review"] .rv-chat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-sec="review"] .rv-k { font-size: 12px; font-weight: 600; color: var(--text-3); }
[data-sec="review"] .rv-dev .btn { align-self: flex-start; }

/* Acción */
[data-sec="review"] .rv-devseg { align-self: flex-start; max-width: 100%; overflow-x: auto; }
[data-sec="review"] .rv-opts { display: flex; flex-direction: column; gap: 8px; }
[data-sec="review"] .rv-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; min-width: 0;
}
[data-sec="review"] .rv-opt:hover { background: var(--surface-2); }
[data-sec="review"] .rv-opt[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
[data-sec="review"] .rv-opt[aria-checked="true"] .fp-radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
[data-sec="review"] .rv-opt-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
[data-sec="review"] .rv-opt-t strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
[data-sec="review"] .rv-opt-t span { font-size: 13px; color: var(--text-2); }
[data-sec="review"] .rv-skip { align-self: flex-start; }
[data-sec="review"] .rv-done p, [data-sec="review"] .rv-allok p, [data-sec="review"] .rv-empty-setup p { margin: 0; }
[data-sec="review"] .rv-big-ico { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
[data-sec="review"] .rv-big-ico.ok { background: var(--ok-soft); color: var(--ok); }

/* Hoja de configuración */
.rv-setup { display: flex; flex-direction: column; gap: 14px; }
.rv-setup .modal-text { margin: 0; }
.rv-area-row { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rv-area-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rv-in { height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--input); color: var(--text); font: inherit; font-size: 15px; padding: 0 10px; min-width: 0; }
.rv-name { flex: 1 1 auto; font-weight: 600; }
.rv-kind { flex: 0 0 auto; width: 70px; padding: 0 6px; }
.rv-pct-wrap { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; color: var(--text-2); font-size: 14px; }
.rv-pct { width: 58px; text-align: right; padding: 0 6px; }
.rv-del { width: 32px; height: 32px; flex: 0 0 auto; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chips .chip-label, .rv-chips .chip-ghost { height: 30px; font-size: 12.5px; padding: 0 10px; }
.rv-chips .chip-ghost .i { width: 14px; height: 14px; }
.rv-chips .rv-groups[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--text-2); }
.rv-setup-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Tarjeta de Hoy */
.rv-hoy {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; min-width: 0;
}
.rv-hoy:hover { background: var(--surface-2); }
.rv-hoy-ico { display: inline-flex; width: 32px; height: 32px; border-radius: 10px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.rv-hoy-t { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.rv-hoy-t strong { font-size: 14px; }
.rv-hoy-t span { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-hoy > svg:last-child { color: var(--text-3); flex-shrink: 0; }
@media (max-width: 900px) { .rv-hoy { margin: 0 16px 20px; } }

/* Bloque de Ajustes */
.rv-set-list { list-style: none; margin: 0; padding: 0; }
.rv-set-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.rv-set-name { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.rv-set-name small { font-weight: 400; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
