/* ============================================================================
   SyntroSprint · Demo interactiva
   Sistema visual: claro, aireado, con acentos cyan de la marca.
   ============================================================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/inter-500.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/inter-600.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/inter-700.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/inter-800.ttf') format('truetype'); }

:root {
  --primary: #00aadd;
  --primary-600: #0095c2;
  --primary-700: #0066cc;
  --primary-050: #eafaff;
  --primary-100: #d5f4ff;
  --accent: #ff4488;
  --accent-050: #fff0f6;
  --ink: #0f172a;
  --text: #344054;
  --muted: #667085;
  --soft: #98a2b3;
  --border: #e4e9f0;
  --border-strong: #d3dbe6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f2f6fb;
  --bg: #f4f7fb;
  --success: #0e9f6e;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --slate: #64748b;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
  --shadow: 0 10px 34px rgba(16, 24, 40, .07);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --sidebar-w: 254px;
  --topbar-h: 76px;
  --chart-grid: #e9eef5;
  --chart-axis: #98a2b3;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.panel-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
p, h1, h2, h3, h4, h5 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
em { font-style: normal; }
[hidden] { display: none !important; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px; height: 20px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

::selection { background: rgba(0, 170, 221, .2); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b7c2d0; }

.mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.nowrap { white-space: nowrap; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }

/* ============================================================================
   Botones, badges, avatares
   ============================================================================ */
.btn {
  --btn-bg: var(--surface);
  --btn-color: var(--text);
  --btn-border: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 8px 14px;
  border: 1px solid var(--btn-border); border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-color);
  font-size: 13px; font-weight: 600; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow-xs); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, .icon-btn:focus-visible, .nav-item:focus-visible, .task-card:focus-visible, .task-row:focus-visible { outline: 3px solid rgba(0, 170, 221, .28); outline-offset: 2px; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--primary-700), var(--primary));
  --btn-color: #fff; --btn-border: transparent;
  box-shadow: 0 8px 20px rgba(0, 120, 190, .2);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(0, 120, 190, .28); border-color: transparent; }
.btn-secondary { --btn-bg: var(--surface); }
.btn-soft { --btn-bg: var(--primary-050); --btn-color: var(--primary-700); --btn-border: rgba(0, 170, 221, .18); }
.btn-soft:hover { --btn-bg: #def7ff; }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; --btn-color: var(--muted); }
.btn-ghost:hover { --btn-bg: var(--surface-3); border-color: transparent; }
.btn-danger { --btn-bg: var(--danger); --btn-color: #fff; --btn-border: transparent; }
.btn-success { --btn-bg: var(--success); --btn-color: #fff; --btn-border: transparent; }
.btn-sm { min-height: 32px; padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 12px 20px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-icon { width: 38px; padding: 0; }

.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  border-radius: 10px; transition: all .15s ease; position: relative;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .icon { width: 19px; height: 19px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px; letter-spacing: -.01em;
  flex: 0 0 auto; border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, .06);
}
.avatar-xs { width: 24px; height: 24px; font-size: 9px; border-width: 1.5px; }
.avatar-sm { width: 30px; height: 30px; font-size: 10px; }
.avatar-md { width: 44px; height: 44px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 72px; height: 72px; font-size: 23px; }
.avatar-more { background: var(--surface-3) !important; color: var(--muted) !important; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar { margin-left: -7px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  color: var(--muted); background: var(--surface-3);
  border: 1px solid transparent; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; }
.badge-primary { color: var(--primary-700); background: var(--primary-050); border-color: rgba(0, 170, 221, .16); }
.badge-success { color: #047857; background: var(--success-bg); border-color: rgba(14, 159, 110, .16); }
.badge-warning { color: #b45309; background: var(--warning-bg); border-color: rgba(217, 119, 6, .16); }
.badge-danger { color: #b91c1c; background: var(--danger-bg); border-color: rgba(220, 38, 38, .14); }
.badge-purple { color: #6d28d9; background: var(--purple-bg); border-color: rgba(124, 58, 237, .16); }
.badge-blue { color: #1d4ed8; background: var(--blue-bg); border-color: rgba(37, 99, 235, .14); }
.badge-slate { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.badge-pink { color: #be185d; background: var(--accent-050); border-color: rgba(255, 68, 136, .14); }
.badge-outline { background: transparent; border-color: var(--border); color: var(--muted); }
.badge-sm { padding: 2px 7px; font-size: 10px; }
.badge-lg { padding: 5px 11px; font-size: 12px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--soft); display: inline-block; flex: 0 0 auto; }
.dot-blue { background: var(--blue); } .dot-green { background: var(--success); } .dot-amber { background: var(--warning); }
.dot-red { background: var(--danger); } .dot-purple { background: var(--purple); } .dot-slate { background: #94a3b8; }
.dot-cyan { background: var(--primary); } .dot-pink { background: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 8px;
  background: var(--surface-3); border: 1px solid transparent;
  color: var(--muted); font-size: 11.5px; font-weight: 500;
}
.chip .icon { width: 14px; height: 14px; }
.chip-project { background: var(--surface); border-color: var(--border); color: var(--text); }

.status-pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-todo { color: #475569; background: #f1f5f9; }
.status-inprogress { color: #1d4ed8; background: #eff6ff; }
.status-review { color: #b45309; background: #fffbeb; }
.status-done { color: #047857; background: #ecfdf5; }
.status-archived { color: #475569; background: #f1f5f9; }

.priority-pill { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: .02em; }
.priority-1 { color: #b91c1c; background: #fef2f2; }
.priority-2 { color: #b45309; background: #fffbeb; }
.priority-3 { color: #1d4ed8; background: #eff6ff; }
.priority-4 { color: #475569; background: #f1f5f9; }

/* ============================================================================
   Login / presentación
   ============================================================================ */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  background: #eef6fb;
  position: relative;
  overflow: hidden;
}
.login-orb { position: fixed; border-radius: 50%; filter: blur(8px); pointer-events: none; opacity: .5; }
.login-orb-1 { width: 520px; height: 520px; right: -180px; top: -180px; background: radial-gradient(circle, rgba(0, 170, 221, .18), transparent 70%); }
.login-orb-2 { width: 420px; height: 420px; left: 38%; bottom: -220px; background: radial-gradient(circle, rgba(124, 58, 237, .12), transparent 70%); }

.login-story {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 26px;
  padding: 42px clamp(34px, 5.2vw, 78px) 30px;
  background:
    radial-gradient(900px 520px at 78% 0%, rgba(0, 170, 221, .23), transparent 62%),
    radial-gradient(700px 500px at 5% 100%, rgba(124, 58, 237, .16), transparent 60%),
    linear-gradient(160deg, #061a30 0%, #07253f 52%, #082c49 100%);
  color: #fff;
  overflow: hidden;
}
.login-story::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 75%);
  pointer-events: none;
}
.login-story > * { position: relative; z-index: 1; }
.login-brand img { width: 178px; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.login-copy { margin-top: 6px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #a5f3fc; background: rgba(6, 182, 212, .11); border: 1px solid rgba(103, 232, 249, .24);
  padding: 6px 11px; border-radius: 999px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); }
.login-copy h1 {
  margin-top: 18px;
  font-size: clamp(36px, 4.2vw, 57px);
  line-height: 1.04; letter-spacing: -.045em; font-weight: 800;
}
.login-copy h1 span {
  background: linear-gradient(90deg, #67e8f9 0%, #38bdf8 45%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-copy > p { margin-top: 16px; max-width: 530px; color: #b9ccdf; font-size: 15px; line-height: 1.7; }
.login-benefits { margin-top: 24px; display: grid; gap: 12px; max-width: 560px; }
.login-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefit-icon {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: #67e8f9; background: rgba(103, 232, 249, .09);
  border: 1px solid rgba(103, 232, 249, .18);
}
.benefit-icon .icon { width: 16px; height: 16px; }
.login-benefits li > span:last-child { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; color: #9fb5ca; line-height: 1.5; }
.login-benefits strong { color: #eef8ff; font-size: 13px; font-weight: 600; }

.login-preview {
  margin-top: auto;
  width: 100%; max-width: 690px;
  border-radius: 18px; padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  border: 1px solid rgba(148, 197, 255, .2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.preview-head > div { display: flex; flex-direction: column; gap: 3px; }
.preview-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #67e8f9; }
.preview-head strong { font-size: 14px; font-weight: 600; color: #f1f9ff; }
.preview-percent { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.preview-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin: 12px 0 14px; overflow: hidden; }
.preview-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #38bdf8); }
.preview-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.preview-column { background: rgba(6, 20, 36, .28); border: 1px solid rgba(148, 197, 255, .13); border-radius: 10px; padding: 7px; min-width: 0; }
.preview-col-title { display: flex; align-items: center; gap: 5px; color: #a9c1d7; font-size: 9.5px; font-weight: 600; margin-bottom: 6px; }
.preview-col-title b { margin-left: auto; color: #7f9ab3; font-weight: 600; }
.preview-card {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(255, 255, 255, .075); border: 1px solid rgba(148, 197, 255, .14);
  border-radius: 7px; padding: 7px; margin-bottom: 5px;
  font-size: 9.5px; color: #e7f3fd; line-height: 1.35;
}
.preview-card:last-child { margin-bottom: 0; }
.preview-card-active { border-color: rgba(34, 211, 238, .42); box-shadow: 0 0 0 1px rgba(34, 211, 238, .12); }
.preview-card-done { opacity: .72; }
.preview-tag { font-size: 8px; color: #7fa0bb; font-family: 'SFMono-Regular', Consolas, monospace; }
.preview-card > div { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.preview-card em { font-size: 8.5px; color: #9fb8ce; }
.preview-card em.warn { color: #fcd34d; }
.mini-avatar { width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 6.5px; font-weight: 700; color: #fff; font-style: normal; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 10px; color: #9fb8ce; }
.preview-footer b { color: #fff; }
.login-legal { font-size: 10.5px; color: #6f8aa3; margin-top: 2px; }

.login-panel {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 38px clamp(28px, 4.5vw, 72px);
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(0, 170, 221, .08), transparent 65%),
    #f5f9fd;
}
.login-card {
  width: 100%; max-width: 448px;
  background: var(--surface);
  border: 1px solid rgba(207, 218, 230, .8);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(16, 42, 80, .11);
  padding: 32px;
}
.login-card-head { text-align: left; margin-bottom: 24px; }
.login-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--success); background: var(--success-bg); border: 1px solid rgba(14, 159, 110, .18);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 15px;
}
.login-live span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(14, 159, 110, .13); }
.login-card-head h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; color: var(--ink); font-weight: 800; }
.login-card-head p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text); }
.input-shell {
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; transition: all .15s ease;
}
.input-shell:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(0, 170, 221, .09); }
.input-shell .icon { width: 17px; height: 17px; color: var(--soft); }
.input-shell input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; color: var(--ink); font-size: 13px; padding: 11px 0; }
.input-shell input::placeholder { color: var(--soft); }
.input-action { border: none; background: transparent; color: var(--soft); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; }
.input-action:hover { background: var(--surface-3); color: var(--text); }
.input-action .icon { width: 17px; height: 17px; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); cursor: pointer; }
.checkbox input { width: 15px; height: 15px; accent-color: var(--primary); }
.login-help { font-size: 11px; color: var(--soft); }
.login-form .btn-lg { margin-top: 2px; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--soft); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.login-divider::before, .login-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }
.profile-choices { display: grid; gap: 8px; }
.profile-choice {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  text-align: left; transition: all .15s ease;
}
.profile-choice:hover { border-color: rgba(0, 170, 221, .35); background: var(--primary-050); transform: translateY(-1px); }
.profile-choice > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.profile-choice strong { font-size: 12px; color: var(--ink); font-weight: 600; }
.profile-choice small { font-size: 10.5px; color: var(--muted); }
.profile-choice > .icon { width: 15px; height: 15px; color: var(--soft); }
.login-demo-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--soft); font-size: 10.5px; line-height: 1.5; }
.login-demo-note .icon { width: 15px; height: 15px; color: var(--success); margin-top: 1px; }

/* ============================================================================
   Shell de la aplicación
   ============================================================================ */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 80;
  width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: transform .25s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; }
.brand-link { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; background: linear-gradient(145deg, #f0fbff, #ffffff); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: var(--shadow-xs); }
.brand-mark img { width: 31px; height: 31px; object-fit: contain; }
.brand-word { font-size: 17px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); white-space: nowrap; }
.brand-word em { background: linear-gradient(90deg, var(--primary-700), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: normal; }
.sidebar-close { display: none; margin-left: auto; }
.workspace-card {
  display: flex; align-items: center; gap: 9px; margin: 0 12px 14px;
  padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfdff, #f7fafc); text-align: left;
  transition: all .15s ease;
}
.workspace-card:hover { border-color: rgba(0, 170, 221, .3); box-shadow: var(--shadow-xs); }
.workspace-avatar { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f2e4d, #0b5580); color: #fff; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.workspace-copy { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.workspace-copy strong { font-size: 11.5px; color: var(--ink); font-weight: 700; }
.workspace-copy small { font-size: 9.5px; color: var(--muted); }
.workspace-badge { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-700); background: var(--primary-050); border: 1px solid rgba(0, 170, 221, .16); border-radius: 999px; padding: 2px 6px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 2px 12px 12px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.nav-label { font-size: 9.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--soft); padding: 4px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--muted); font-size: 12.5px; font-weight: 500;
  transition: all .15s ease; position: relative;
}
.nav-item .icon { width: 18px; height: 18px; color: #8a97a8; transition: color .15s ease; }
.nav-item:hover { background: var(--surface-3); color: var(--ink); }
.nav-item:hover .icon { color: var(--primary-700); }
.nav-item.active { background: linear-gradient(90deg, rgba(0, 170, 221, .1), rgba(0, 170, 221, .035)); color: var(--primary-700); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--primary-700), var(--primary)); }
.nav-item.active .icon { color: var(--primary); }
.nav-live { margin-left: auto; font-size: 7.5px; letter-spacing: .08em; font-weight: 800; color: var(--success); background: var(--success-bg); border: 1px solid rgba(14, 159, 110, .16); padding: 2px 5px; border-radius: 999px; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.guide-card {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px; border-radius: 11px; border: 1px solid rgba(0, 170, 221, .18);
  background: linear-gradient(135deg, #f2fcff, #f8fbff); text-align: left;
  transition: all .15s ease;
}
.guide-card:hover { border-color: rgba(0, 170, 221, .38); box-shadow: var(--shadow-xs); }
.guide-icon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-700), var(--primary)); color: #fff; flex: 0 0 auto; }
.guide-icon .icon { width: 16px; height: 16px; }
.guide-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.guide-card strong { font-size: 11px; font-weight: 700; color: var(--ink); }
.guide-card small { font-size: 9.5px; color: var(--muted); }
.guide-arrow { width: 14px; height: 14px; color: var(--primary-700); }
.sidebar-meta { padding: 11px 4px 0; font-size: 9px; color: var(--soft); text-align: center; }
.sidebar-meta span { color: #b4bfcd; }
.sidebar-scrim { display: none; }

.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 30px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mobile-menu { display: none; }
.page-heading { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.page-eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.page-heading h1 { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 7px; }
.global-search {
  position: relative; display: flex; align-items: center; gap: 7px;
  height: 38px; width: 248px; padding: 0 9px 0 11px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2);
  transition: all .15s ease;
}
.global-search:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(0, 170, 221, .08); width: 290px; }
.global-search .icon { width: 16px; height: 16px; color: var(--soft); }
.global-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 11.5px; color: var(--ink); }
.global-search input::placeholder { color: var(--soft); }
.global-search kbd { font-family: var(--font); font-size: 9px; color: var(--soft); border: 1px solid var(--border); background: #fff; border-radius: 4px; padding: 1px 5px; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 380px; overflow-y: auto;
}
.search-result { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: none; background: transparent; border-radius: 8px; text-align: left; }
.search-result:hover { background: var(--surface-3); }
.search-result .result-code { font-size: 9.5px; color: var(--soft); font-family: 'SFMono-Regular', Consolas, monospace; }
.search-result .result-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.search-result .result-copy strong { font-size: 11.5px; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result .result-copy small { font-size: 9.5px; color: var(--muted); }
.search-empty { padding: 16px; text-align: center; font-size: 11.5px; color: var(--muted); }
.demo-date { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.demo-date .icon { width: 14px; height: 14px; color: var(--soft); }
.popover-wrap { position: relative; }
.notif-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1.5px solid #fff; }
.user-button {
  display: flex; align-items: center; gap: 8px; padding: 4px 7px 4px 4px;
  border: 1px solid transparent; background: transparent; border-radius: 10px; transition: all .15s ease;
}
.user-button:hover { background: var(--surface-3); }
.user-button .icon { width: 14px; height: 14px; color: var(--soft); }
.user-button-copy { display: flex; flex-direction: column; gap: 0; text-align: left; min-width: 0; }
.user-button-copy strong { font-size: 11px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.user-button-copy small { font-size: 9.5px; color: var(--muted); white-space: nowrap; }

.popover {
  position: absolute; top: calc(100% + 9px); right: 0; z-index: 130;
  width: 330px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: popIn .18s ease both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }
.popover-head { padding: 13px 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.popover-head strong { font-size: 12px; color: var(--ink); }
.popover-head span { font-size: 10px; color: var(--muted); }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item { display: flex; gap: 10px; padding: 10px 15px; border-bottom: 1px solid #f2f5f9; }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 29px; height: 29px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-050); color: var(--primary-700); flex: 0 0 auto; }
.notif-icon .icon { width: 14px; height: 14px; }
.notif-item p { font-size: 10.5px; color: var(--text); line-height: 1.45; }
.notif-item p strong { color: var(--ink); }
.notif-item time { font-size: 9px; color: var(--soft); }
.popover-foot { padding: 9px 15px; text-align: center; border-top: 1px solid var(--border); }
.popover-foot button { border: none; background: transparent; color: var(--primary-700); font-size: 10.5px; font-weight: 600; }
.user-popover { width: 270px; padding: 7px; }
.user-popover-head { padding: 9px 10px 11px; border-bottom: 1px solid var(--border); margin-bottom: 5px; display: flex; gap: 9px; align-items: center; }
.user-popover-head div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.user-popover-head strong { font-size: 12px; color: var(--ink); }
.user-popover-head small { font-size: 10px; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: none; background: transparent; border-radius: 7px; text-align: left; color: var(--text); font-size: 11.5px; }
.menu-item:hover { background: var(--surface-3); }
.menu-item .icon { width: 15px; height: 15px; color: var(--soft); }
.menu-item.menu-danger { color: var(--danger); }
.menu-item.menu-danger .icon { color: var(--danger); }
.menu-divider { height: 1px; background: var(--border); margin: 5px 4px; }
.menu-label { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: 6px 9px 4px; }

.content { padding: 26px 30px 42px; flex: 1; max-width: 1680px; width: 100%; margin: 0 auto; animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Componentes generales
   ============================================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 20px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: 15px; color: var(--ink); font-weight: 700; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.section-head h2 .icon { width: 17px; height: 17px; color: var(--primary-700); }
.section-head p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.section-action { font-size: 11.5px; color: var(--primary-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; border: none; background: transparent; padding: 4px; }
.section-action:hover { color: var(--primary-600); }
.section-action .icon { width: 13px; height: 13px; }

.view-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.view-header h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; color: var(--ink); font-weight: 800; }
.view-header p { margin-top: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 650px; }
.view-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.view-actions .btn { font-size: 12px; }

.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .btn { font-size: 11.5px; }
.select-shell { position: relative; display: inline-flex; align-items: center; }
.select-shell .icon { position: absolute; right: 8px; width: 13px; height: 13px; color: var(--soft); pointer-events: none; }
.select-control, .input-control, .textarea-control {
  appearance: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); border-radius: 9px; outline: none; font-size: 11.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select-control { height: 36px; padding: 0 30px 0 10px; min-width: 130px; cursor: pointer; }
.select-control:hover, .input-control:hover, .textarea-control:hover { border-color: var(--border-strong); }
.select-control:focus, .input-control:focus, .textarea-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 170, 221, .09); }
.input-control { height: 36px; padding: 0 11px; }
.textarea-control { padding: 9px 11px; resize: vertical; min-height: 84px; }
.input-search { position: relative; display: inline-flex; align-items: center; }
.input-search .icon { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--soft); pointer-events: none; }
.input-search .input-control { padding-left: 32px; width: 210px; }
.input-search .input-control::placeholder { color: var(--soft); }
.select-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }

.progress { height: 7px; border-radius: 999px; background: #edf1f6; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-700), var(--primary)); transition: width .35s ease; }
.progress.thin { height: 5px; }
.progress.success > i { background: linear-gradient(90deg, #0b8f63, #10b981); }
.progress.warning > i { background: linear-gradient(90deg, #d97706, #f59e0b); }
.progress.purple > i { background: linear-gradient(90deg, #6d28d9, #a78bfa); }
.progress.pink > i { background: linear-gradient(90deg, #db2777, #fb7185); }
.progress-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted); margin-bottom: 5px; }
.progress-label strong { color: var(--ink); font-weight: 600; }

.empty-state { padding: 38px 20px; text-align: center; color: var(--muted); }
.empty-state .empty-icon { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--soft); }
.empty-state .empty-icon .icon { width: 21px; height: 21px; }
.empty-state h3 { font-size: 13px; color: var(--ink); font-weight: 600; }
.empty-state p { font-size: 11.5px; margin-top: 3px; }

.avatar-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.avatar-name span { font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-name small { font-size: 9.5px; color: var(--soft); }

/* ============================================================================
   Dashboard
   ============================================================================ */
.dash-greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-greeting h2 { font-size: 25px; line-height: 1.15; letter-spacing: -.04em; color: var(--ink); font-weight: 800; }
.dash-greeting h2 span { color: var(--primary-700); }
.dash-greeting p { margin-top: 5px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dash-greeting p .dot { width: 6px; height: 6px; background: var(--success); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card {
  position: relative; padding: 16px 16px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.kpi-card::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -38px; top: -44px; background: radial-gradient(circle, var(--kpi-glow, rgba(0, 170, 221, .1)), transparent 70%); }
.kpi-top { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.kpi-icon { width: 31px; height: 31px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--kpi-bg, var(--primary-050)); color: var(--kpi-color, var(--primary-700)); }
.kpi-icon .icon { width: 16px; height: 16px; }
.kpi-top span { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { display: flex; align-items: baseline; gap: 5px; }
.kpi-value strong { font-size: 26px; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-weight: 800; }
.kpi-value span { font-size: 10.5px; color: var(--muted); }
.kpi-bottom { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; color: var(--success); }
.trend .icon { width: 12px; height: 12px; }
.trend.down { color: var(--danger); }
.kpi-spark { position: absolute; right: 10px; bottom: 8px; width: 92px; opacity: .8; }
.kpi-spark .sparkline { width: 100%; height: 30px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(300px, .95fr); gap: 16px; align-items: start; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.focus-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 22px;
  background:
    radial-gradient(500px 300px at 90% -20%, rgba(34, 211, 238, .25), transparent 60%),
    radial-gradient(420px 280px at 5% 110%, rgba(124, 58, 237, .22), transparent 60%),
    linear-gradient(135deg, #071f38 0%, #0a2d4c 58%, #0c3d61 100%);
  color: #fff; box-shadow: 0 20px 50px rgba(7, 31, 56, .22);
}
.focus-card::after { content: ''; position: absolute; right: -70px; bottom: -100px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(103, 232, 249, .13); box-shadow: 0 0 0 38px rgba(103, 232, 249, .035), 0 0 0 78px rgba(103, 232, 249, .02); pointer-events: none; }
.focus-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; position: relative; z-index: 1; }
.focus-kicker { display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #67e8f9; }
.focus-kicker .dot { width: 6px; height: 6px; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .14); }
.focus-card h3 { margin-top: 7px; font-size: 21px; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.focus-goal { display: flex; align-items: flex-start; gap: 6px; margin-top: 7px; font-size: 11.5px; line-height: 1.5; color: #a8c4da; max-width: 520px; }
.focus-goal .icon { width: 14px; height: 14px; color: #67e8f9; margin-top: 2px; }
.focus-days { text-align: right; flex: 0 0 auto; }
.focus-days strong { display: block; font-size: 25px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.focus-days span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: #8fb0ca; }
.focus-progress { margin-top: 17px; position: relative; z-index: 1; }
.focus-progress .progress { height: 8px; background: rgba(255, 255, 255, .13); }
.focus-progress .progress > i { background: linear-gradient(90deg, #22d3ee, #5eead4); box-shadow: 0 0 14px rgba(34, 211, 238, .3); }
.focus-progress-label { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: #9fbdd4; margin-bottom: 6px; }
.focus-progress-label strong { color: #fff; }
.focus-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 17px; position: relative; z-index: 1; }
.focus-stat { border-left: 1px solid rgba(148, 197, 255, .16); padding-left: 10px; }
.focus-stat:first-child { border-left: none; padding-left: 0; }
.focus-stat strong { display: block; font-size: 15px; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.focus-stat span { font-size: 9.5px; color: #8fb0ca; }
.focus-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(148, 197, 255, .14); position: relative; z-index: 1; }
.focus-footer .avatar-stack .avatar { border-color: #0b2b48; }
.focus-footer-copy { font-size: 10px; color: #8fb0ca; }
.focus-footer-copy strong { color: #e4f4ff; }
.focus-footer .btn { --btn-bg: rgba(255, 255, 255, .09); --btn-color: #fff; --btn-border: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.focus-footer .btn:hover { --btn-bg: rgba(255, 255, 255, .15); }
.focus-spark { position: absolute; right: 22px; bottom: 64px; width: 210px; opacity: .8; pointer-events: none; z-index: 0; }
.focus-spark .sparkline { width: 100%; height: 58px; }

.panel-card { padding: 17px; }
.task-list { display: flex; flex-direction: column; }
.task-list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid #f0f4f8;
  cursor: pointer; transition: background .15s ease; border-radius: 6px;
}
.task-list-item:last-child { border-bottom: none; }
.task-list-item:hover { background: #fafcff; }
.task-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: transparent; }
.task-check.done { background: var(--success); border-color: var(--success); color: #fff; }
.task-check.done .icon { width: 11px; height: 11px; }
.task-list-item .task-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-list-item .task-main strong { font-size: 11.5px; font-weight: 550; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-list-item .task-main small { font-size: 9.5px; color: var(--soft); display: flex; align-items: center; gap: 5px; }
.task-list-item .task-main small .dot { width: 5px; height: 5px; }
.task-list-item .task-meta { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.task-list-item .status-pill { font-size: 9.5px; padding: 2px 7px; }
.task-list-item .avatar { width: 24px; height: 24px; font-size: 8px; }

.workload-list { display: flex; flex-direction: column; gap: 12px; }
.workload-item { display: flex; align-items: center; gap: 9px; }
.workload-item .avatar { width: 30px; height: 30px; font-size: 10px; }
.workload-copy { flex: 1; min-width: 0; }
.workload-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.workload-top strong { font-size: 10.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workload-top span { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.workload-copy .progress { height: 5px; }
.workload-note { font-size: 9px; color: var(--soft); margin-top: 2px; }

.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2f5f9; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 27px; height: 27px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--surface-3); color: var(--muted); }
.activity-icon .icon { width: 13px; height: 13px; }
.activity-icon.act-move { background: var(--blue-bg); color: var(--blue); }
.activity-icon.act-check { background: var(--success-bg); color: var(--success); }
.activity-icon.act-comment { background: var(--purple-bg); color: var(--purple); }
.activity-icon.act-assign { background: var(--warning-bg); color: var(--warning); }
.activity-icon.act-sprint { background: var(--primary-050); color: var(--primary-700); }
.activity-copy { flex: 1; min-width: 0; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.activity-copy strong { color: var(--ink); font-weight: 600; }
.activity-copy time { display: block; font-size: 9px; color: var(--soft); margin-top: 2px; }

.ceremony-list { display: flex; flex-direction: column; gap: 8px; }
.ceremony-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.ceremony-date { width: 38px; height: 38px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }
.ceremony-date strong { font-size: 14px; color: var(--ink); line-height: 1; }
.ceremony-date span { font-size: 8px; color: var(--soft); text-transform: uppercase; }
.ceremony-copy { flex: 1; min-width: 0; }
.ceremony-copy strong { display: block; font-size: 10.5px; color: var(--ink); font-weight: 600; }
.ceremony-copy small { font-size: 9px; color: var(--soft); }
.ceremony-item .badge { font-size: 8.5px; }

.mini-sprints { display: flex; flex-direction: column; gap: 7px; }
.mini-sprint { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); transition: all .15s ease; cursor: pointer; }
.mini-sprint:hover { border-color: rgba(0, 170, 221, .35); background: #fbfeff; transform: translateX(2px); }
.mini-sprint-icon { width: 27px; height: 27px; border-radius: 7px; background: var(--primary-050); color: var(--primary-700); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mini-sprint-icon .icon { width: 13px; height: 13px; }
.mini-sprint-copy { flex: 1; min-width: 0; }
.mini-sprint-copy strong { display: block; font-size: 10.5px; color: var(--ink); font-weight: 600; }
.mini-sprint-copy small { font-size: 9px; color: var(--soft); }
.mini-sprint .badge { font-size: 8.5px; }

/* ============================================================================
   Backlog
   ============================================================================ */
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.summary-tile { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.summary-tile .st-icon { width: 31px; height: 31px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); flex: 0 0 auto; }
.summary-tile .st-icon .icon { width: 15px; height: 15px; }
.summary-tile strong { display: block; font-size: 17px; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); font-weight: 800; }
.summary-tile span { font-size: 9.5px; color: var(--muted); }

.backlog-block { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.backlog-block.drop-over { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 170, 221, .12); }
.backlog-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #fcfdff, #f9fbfd); flex-wrap: wrap; }
.backlog-head-copy { flex: 1; min-width: 180px; }
.backlog-head-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.backlog-head-title h3 { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.backlog-goal { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 10px; color: var(--muted); }
.backlog-goal .icon { width: 12px; height: 12px; color: var(--primary); }
.backlog-head-metrics { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.backlog-metric { text-align: right; }
.backlog-metric strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 700; }
.backlog-metric span { font-size: 8.5px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.backlog-head-actions { display: flex; align-items: center; gap: 6px; }
.backlog-head-actions .btn { font-size: 10.5px; min-height: 29px; padding: 4px 9px; }
.backlog-tasks { padding: 4px 10px 8px; }
.backlog-block.backlog-only { background: linear-gradient(180deg, #fbfdff, #fff); border-style: dashed; }
.backlog-only .backlog-head { background: transparent; border-bottom-style: dashed; }

.task-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 140px 116px 58px 96px 70px;
  align-items: center; gap: 10px;
  padding: 8px 7px; border-bottom: 1px solid #f1f5f9; border-radius: 7px;
  cursor: pointer; transition: background .15s ease, box-shadow .15s ease;
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: #f8fbff; }
.task-row.dragging { opacity: .45; }
.task-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.task-row-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task-row-title strong { font-size: 11.5px; font-weight: 550; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row-title .task-code { font-size: 9px; color: var(--soft); font-family: 'SFMono-Regular', Consolas, monospace; flex: 0 0 auto; }
.task-row-sub { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--soft); }
.task-row-sub .epic-dot { width: 6px; height: 6px; border-radius: 50%; }
.task-row-assignee { min-width: 0; }
.task-row-assignee .avatar-name span { font-size: 10px; }
.task-row-assignee .avatar { width: 22px; height: 22px; font-size: 7.5px; }
.task-row-assignee .unassigned { font-size: 9.5px; color: var(--soft); font-style: italic; }
.task-row-priority { display: flex; justify-content: flex-start; }
.task-row-points { font-size: 10.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.task-row-points strong { color: var(--ink); }
.task-row-status { display: flex; justify-content: flex-end; }
.task-row-due { font-size: 9.5px; color: var(--soft); text-align: right; white-space: nowrap; display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.task-row-due .icon { width: 11px; height: 11px; }
.task-row-due.overdue { color: var(--danger); font-weight: 600; }
.drag-handle { color: #c3ccd8; cursor: grab; display: flex; justify-content: center; }
.drag-handle .icon { width: 13px; height: 13px; }
.task-row:hover .drag-handle { color: var(--soft); }
.backlog-block.drop-over .backlog-tasks { background: rgba(0, 170, 221, .025); }

.backlog-hint { display: flex; align-items: center; gap: 7px; padding: 9px 12px; margin-bottom: 14px; border: 1px dashed var(--border-strong); border-radius: 10px; background: rgba(255, 255, 255, .6); color: var(--muted); font-size: 10.5px; }
.backlog-hint .icon { width: 15px; height: 15px; color: var(--primary-700); }

/* ============================================================================
   Tablero Kanban
   ============================================================================ */
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.board-toolbar-left, .board-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board-summary { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 11px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); margin-bottom: 16px; }
.board-summary-item { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); }
.board-summary-item strong { font-size: 12px; color: var(--ink); font-weight: 700; }
.board-summary-item .icon { width: 14px; height: 14px; color: var(--soft); }
.board-summary .summary-progress { flex: 1; min-width: 150px; display: flex; align-items: center; gap: 9px; }
.board-summary .summary-progress .progress { flex: 1; height: 6px; }
.board-summary .summary-progress span { font-size: 9.5px; color: var(--muted); white-space: nowrap; }

.board { display: grid; grid-template-columns: repeat(4, minmax(238px, 1fr)); gap: 12px; align-items: start; }
.board-column { background: #f5f8fc; border: 1px solid #e8edf4; border-radius: 13px; padding: 8px; min-width: 0; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.board-column.drop-over { background: #ecfaff; border-color: rgba(0, 170, 221, .55); box-shadow: inset 0 0 0 1px rgba(0, 170, 221, .2); }
.board-column-head { display: flex; align-items: center; gap: 7px; padding: 5px 4px 10px; }
.board-column-head .dot { width: 7px; height: 7px; }
.board-column-head strong { font-size: 11px; color: var(--ink); font-weight: 600; }
.column-count { margin-left: auto; min-width: 18px; height: 18px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); font-size: 9px; color: var(--muted); font-weight: 600; padding: 0 4px; }
.column-points { font-size: 8.5px; color: var(--soft); font-weight: 600; }
.column-wip { font-size: 8px; color: var(--warning); background: var(--warning-bg); border: 1px solid rgba(217, 119, 6, .15); border-radius: 4px; padding: 1px 4px; }
.board-cards { display: flex; flex-direction: column; gap: 7px; min-height: 90px; }
.board-card {
  position: relative; padding: 10px 11px 9px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border-top: 3px solid var(--card-priority, #94a3b8);
}
.board-card:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(16, 24, 40, .08); border-color: var(--border-strong); }
.board-card.dragging { opacity: .4; transform: rotate(1.5deg); }
.board-card.priority-1 { --card-priority: #ef4444; }
.board-card.priority-2 { --card-priority: #f59e0b; }
.board-card.priority-3 { --card-priority: #3b82f6; }
.board-card.priority-4 { --card-priority: #94a3b8; }
.board-card.is-done { opacity: .76; }
.board-card.is-done .board-card-title { text-decoration: line-through; text-decoration-color: #b6c1cf; color: var(--muted); }
.board-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.board-card-top .task-code { font-size: 8.5px; color: var(--soft); font-family: 'SFMono-Regular', Consolas, monospace; }
.board-card-top .priority-pill { margin-left: auto; }
.board-card-title { font-size: 11.5px; line-height: 1.4; font-weight: 550; color: var(--ink); margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.board-card-epic { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--muted); margin-bottom: 8px; }
.board-card-epic .epic-dot { width: 6px; height: 6px; border-radius: 50%; }
.board-card-foot { display: flex; align-items: center; gap: 6px; padding-top: 7px; border-top: 1px solid #f1f4f8; }
.board-card-foot .avatar { width: 21px; height: 21px; font-size: 7.5px; border-width: 1.5px; }
.board-card-foot .avatar-name span { font-size: 9px; color: var(--muted); }
.board-card-foot .spacer { flex: 1; }
.board-card-foot .meta-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; color: var(--soft); white-space: nowrap; }
.board-card-foot .meta-pill .icon { width: 10px; height: 10px; }
.board-card-foot .meta-pill.overdue { color: var(--danger); font-weight: 600; }
.board-card-foot .subtask-pill { font-size: 8px; color: var(--primary-700); background: var(--primary-050); border-radius: 4px; padding: 1px 4px; font-weight: 600; }
.board-empty { padding: 22px 8px; text-align: center; font-size: 9.5px; color: var(--soft); border: 1px dashed var(--border); border-radius: 8px; }
.column-footer { padding: 6px 2px 1px; }
.column-new { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; border: none; background: transparent; color: var(--soft); font-size: 9.5px; padding: 5px; border-radius: 6px; }
.column-new:hover { background: #fff; color: var(--primary-700); }
.column-new .icon { width: 12px; height: 12px; }

/* ============================================================================
   Sprint list
   ============================================================================ */
.sprint-list { display: flex; flex-direction: column; gap: 13px; }
.sprint-card { border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.sprint-card.active { border-color: rgba(0, 170, 221, .35); box-shadow: 0 8px 30px rgba(0, 120, 190, .08); }
.sprint-card.closed { opacity: .88; }
.sprint-card-head { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.sprint-card-copy { flex: 1; min-width: 220px; }
.sprint-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sprint-card-title h3 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.sprint-card-goal { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; font-size: 10.5px; color: var(--muted); line-height: 1.5; }
.sprint-card-goal .icon { width: 12px; height: 12px; color: var(--primary); margin-top: 1px; }
.sprint-card-meta { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.sprint-meta-item { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.sprint-meta-item .icon { width: 12px; height: 12px; color: var(--soft); }
.sprint-card-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.sprint-card-actions .btn { font-size: 10.5px; min-height: 30px; padding: 5px 10px; }
.sprint-card-body { padding: 0 18px 15px; }
.sprint-progress-row { display: flex; align-items: center; gap: 12px; }
.sprint-progress-row .progress { flex: 1; height: 7px; }
.sprint-progress-row span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.sprint-task-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.sprint-task-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: var(--surface-3); color: var(--muted); font-size: 9px; border: 1px solid transparent; }
.sprint-task-chip .dot { width: 5px; height: 5px; }
.sprint-task-chip.more { background: transparent; border-color: var(--border); }
.sprint-empty { font-size: 10.5px; color: var(--soft); padding: 12px 0 2px; }
.sprint-timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline-item { display: flex; gap: 11px; }
.timeline-rail { display: flex; flex-direction: column; align-items: center; width: 15px; flex: 0 0 auto; padding-top: 3px; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--primary); background: var(--surface); flex: 0 0 auto; }
.timeline-item.done .timeline-dot { background: var(--success); border-color: var(--success); }
.timeline-item.planned .timeline-dot { border-color: var(--border-strong); }
.timeline-line { width: 1px; flex: 1; background: var(--border); margin-top: 3px; }
.timeline-copy { flex: 1; min-width: 0; padding-bottom: 6px; }
.timeline-copy strong { display: block; font-size: 11px; color: var(--ink); font-weight: 600; }
.timeline-copy small { font-size: 9px; color: var(--soft); }

/* ============================================================================
   Reportes
   ============================================================================ */
.report-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.report-kpi { padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.report-kpi span { font-size: 9.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.report-kpi span .icon { width: 13px; height: 13px; color: var(--soft); }
.report-kpi strong { display: block; font-size: 21px; letter-spacing: -.035em; color: var(--ink); font-weight: 800; margin-top: 3px; }
.report-kpi small { font-size: 9.5px; color: var(--soft); }
.report-tabs { display: inline-flex; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 18px; }
.report-tab { border: none; background: transparent; padding: 7px 13px; border-radius: 7px; font-size: 11.5px; color: var(--muted); font-weight: 500; transition: all .15s ease; }
.report-tab:hover { color: var(--ink); background: var(--surface-3); }
.report-tab.active { background: var(--ink); color: #fff; box-shadow: 0 3px 8px rgba(15, 23, 42, .16); }
.report-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(250px, .85fr); gap: 16px; align-items: start; }
.chart-card { padding: 18px; }
.chart-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.chart-card-head h3 { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.chart-card-head p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.chart-wrap { width: 100%; overflow: hidden; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis-label { fill: var(--chart-axis); font-family: var(--font); font-size: 10px; }
.chart-value-label { fill: var(--ink); font-family: var(--font); font-size: 9.5px; font-weight: 600; }
.chart-average-label { fill: var(--accent); font-family: var(--font); font-size: 9.5px; font-weight: 700; }
.donut-svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
.donut-total { fill: var(--ink); font-family: var(--font); font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.donut-caption { fill: var(--muted); font-family: var(--font); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.legend-swatch { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.legend-swatch.round { border-radius: 50%; }
.legend-swatch.dashed { height: 0; border-top: 2px dashed; border-radius: 0; }
.insight-card { padding: 16px; border: 1px solid rgba(0, 170, 221, .2); border-radius: 13px; background: linear-gradient(160deg, #f2fcff, #fbfeff); }
.insight-card .insight-icon { width: 31px; height: 31px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--primary-050); color: var(--primary-700); margin-bottom: 9px; }
.insight-card .insight-icon .icon { width: 16px; height: 16px; }
.insight-card h4 { font-size: 11.5px; color: var(--ink); font-weight: 700; }
.insight-card p { margin-top: 4px; font-size: 10.5px; color: var(--muted); line-height: 1.55; }
.insight-card .insight-foot { margin-top: 10px; display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--primary-700); font-weight: 600; }
.insight-card .insight-foot .icon { width: 12px; height: 12px; }
.report-side { display: flex; flex-direction: column; gap: 14px; }
.report-table-card { padding: 16px; }
.report-table-card h4 { font-size: 11.5px; color: var(--ink); font-weight: 700; margin-bottom: 9px; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { font-size: 8.5px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--border); font-weight: 700; }
.mini-table td { font-size: 10px; color: var(--text); padding: 7px 6px; border-bottom: 1px solid #f2f5f9; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table td.num, .mini-table th.num { text-align: right; }
.mini-table .total-row td { font-weight: 700; color: var(--ink); border-top: 1px solid var(--border); }
.report-tasks { margin-top: 16px; }
.report-tasks h3 { font-size: 12.5px; color: var(--ink); font-weight: 700; margin-bottom: 9px; }
.report-tasks .table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.report-tasks table { width: 100%; border-collapse: collapse; }
.report-tasks th { background: var(--surface-2); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-weight: 700; }
.report-tasks td { font-size: 10.5px; color: var(--text); padding: 8px 10px; border-bottom: 1px solid #f2f5f9; }
.report-tasks tr:last-child td { border-bottom: none; }
.report-tasks td.num { text-align: right; }
.distribution-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: center; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.donut-legend-item { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.donut-legend-item strong { margin-left: auto; color: var(--ink); font-weight: 600; }
.hbar-list { display: flex; flex-direction: column; gap: 11px; }
.hbar-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) 42px; gap: 10px; align-items: center; }
.hbar-name { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text); min-width: 0; }
.hbar-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 7px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-700), var(--primary)); }
.hbar-value { font-size: 10px; color: var(--muted); text-align: right; }

/* ============================================================================
   Proyectos, épicas y equipo
   ============================================================================ */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card {
  position: relative; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface);
  box-shadow: var(--shadow-xs); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--project-color, var(--primary)); }
.project-top { display: flex; align-items: flex-start; gap: 10px; }
.project-key { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f2f7fb; background: color-mix(in srgb, var(--project-color, var(--primary)) 12%, white); color: var(--project-color, var(--primary)); font-size: 11px; font-weight: 800; letter-spacing: .02em; flex: 0 0 auto; }
.project-copy { flex: 1; min-width: 0; }
.project-copy h3 { font-size: 14px; color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
.project-copy small { font-size: 9.5px; color: var(--soft); }
.project-card > p { margin-top: 10px; font-size: 10.5px; line-height: 1.55; color: var(--muted); min-height: 32px; }
.project-progress { margin-top: 12px; }
.project-stats { display: flex; align-items: center; gap: 13px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #f1f4f8; }
.project-stat { display: flex; flex-direction: column; gap: 0; }
.project-stat strong { font-size: 14px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.project-stat span { font-size: 8.5px; color: var(--soft); text-transform: uppercase; letter-spacing: .05em; }
.project-stats .project-owner { margin-left: auto; }
.group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 14px; }
.group-card { padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.group-head { display: flex; align-items: center; gap: 9px; }
.group-color { width: 11px; height: 11px; border-radius: 4px; }
.group-head h3 { font-size: 12.5px; color: var(--ink); font-weight: 700; }
.group-head .badge { margin-left: auto; }
.group-card p { margin-top: 7px; font-size: 10px; color: var(--muted); }
.group-projects { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.group-project-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); font-size: 9px; color: var(--text); }
.group-project-chip .dot { width: 5px; height: 5px; }

.epic-list { display: flex; flex-direction: column; gap: 12px; }
.epic-card { display: flex; align-items: center; gap: 15px; padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid var(--epic-color, var(--primary)); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-xs); transition: transform .15s ease, box-shadow .15s ease; }
.epic-card:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.epic-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: #f2f7fb; background: color-mix(in srgb, var(--epic-color, var(--primary)) 11%, white); color: var(--epic-color, var(--primary)); flex: 0 0 auto; }
.epic-icon .icon { width: 19px; height: 19px; }
.epic-copy { flex: 1; min-width: 0; }
.epic-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.epic-title h3 { font-size: 13px; font-weight: 700; color: var(--ink); }
.epic-copy p { font-size: 10px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epic-progress { width: 190px; flex: 0 0 auto; }
.epic-progress .progress-label { font-size: 9px; }
.epic-metrics { display: flex; gap: 14px; margin-top: 6px; }
.epic-metric { font-size: 9px; color: var(--soft); }
.epic-metric strong { display: block; font-size: 11px; color: var(--ink); font-weight: 700; }
.epic-owner { width: 90px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.epic-owner .avatar-name { gap: 4px; }
.epic-owner .avatar { width: 26px; height: 26px; font-size: 8px; }
.epic-owner .avatar-name span { font-size: 9px; }
.epic-owner small { font-size: 8px; color: var(--soft); }

.team-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 18px; }
.team-banner { position: relative; overflow: hidden; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #07233f, #0b3c5f); color: #fff; }
.team-banner::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -80px; top: -90px; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); }
.team-banner .eyebrow { background: rgba(103, 232, 249, .1); border-color: rgba(103, 232, 249, .22); }
.team-banner h2 { margin-top: 13px; font-size: 25px; letter-spacing: -.035em; font-weight: 800; }
.team-banner p { margin-top: 5px; font-size: 11.5px; color: #a8c4da; max-width: 460px; line-height: 1.55; }
.team-banner-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.team-banner-foot .avatar-stack .avatar { border-color: #0b3454; }
.team-banner-foot span { font-size: 10px; color: #a8c4da; }
.team-banner-foot strong { color: #fff; }
.capacity-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.capacity-head { display: flex; align-items: center; justify-content: space-between; }
.capacity-head h3 { font-size: 12px; color: var(--ink); font-weight: 700; }
.capacity-ring { display: flex; align-items: center; gap: 16px; }
.ring-wrap { position: relative; width: 96px; height: 96px; flex: 0 0 auto; }
.ring-wrap svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring-wrap .ring-bg { fill: none; stroke: #eef2f7; stroke-width: 8; }
.ring-wrap .ring-fg { fill: none; stroke: url(#ringGradient); stroke-width: 8; stroke-linecap: round; }
.ring-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-value strong { font-size: 19px; color: var(--ink); letter-spacing: -.03em; font-weight: 800; }
.ring-value span { font-size: 8px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.capacity-breakdown { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.capacity-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--muted); }
.capacity-line strong { color: var(--ink); font-weight: 600; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.member-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-xs); transition: transform .15s ease, box-shadow .15s ease; }
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.member-top { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.member-top .avatar { width: 40px; height: 40px; font-size: 13px; }
.member-copy { flex: 1; min-width: 0; }
.member-copy strong { display: block; font-size: 12px; color: var(--ink); font-weight: 600; }
.member-copy small { font-size: 9.5px; color: var(--muted); }
.member-card .badge { font-size: 8.5px; }
.member-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 9px; margin-top: 9px; border-top: 1px solid #f2f5f9; font-size: 9px; color: var(--soft); }
.member-meta span { display: inline-flex; align-items: center; gap: 4px; }
.member-meta .icon { width: 11px; height: 11px; }
.member-load { margin-top: 10px; }
.member-load .progress-label { font-size: 9px; margin-bottom: 4px; }
.member-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.member-tags .badge { font-size: 8px; background: var(--surface-3); color: var(--muted); }
.user-table-card { margin-top: 18px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #f2f5f9; font-size: 10.5px; color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fbfdff; }
.data-table .user-cell { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.data-table .user-cell .avatar { width: 27px; height: 27px; font-size: 8px; }
.data-table .user-cell div { display: flex; flex-direction: column; gap: 1px; }
.data-table .user-cell strong { font-size: 10.5px; color: var(--ink); font-weight: 600; }
.data-table .user-cell small { font-size: 9px; color: var(--soft); }
.data-table .role-badge { font-size: 8.5px; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: var(--muted); }
.data-table .state-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 4px; }

/* ============================================================================
   Panel de tarea
   ============================================================================ */
.side-panel-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(6, 20, 36, .36); backdrop-filter: blur(2px); animation: fadeIn .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(530px, 94vw);
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(16, 24, 40, .14);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.22, .8, .3, 1);
  display: flex; flex-direction: column;
}
.side-panel.open { transform: translateX(0); }
.side-panel-body { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.panel-head { padding: 18px 20px 15px; border-bottom: 1px solid var(--border); flex: 0 0 auto; background: linear-gradient(180deg, #fcfdff, #fff); }
.panel-head-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.panel-head-top .task-code { font-size: 10px; color: var(--soft); font-family: 'SFMono-Regular', Consolas, monospace; }
.panel-head-top .badge { font-size: 9.5px; }
.panel-close { margin-left: auto; }
.panel-head h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.025em; color: var(--ink); font-weight: 700; padding-right: 10px; }
.panel-head-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.panel-scroll { padding: 18px 20px 28px; overflow-y: auto; flex: 1; }
.panel-section { margin-bottom: 22px; }
.panel-section:last-child { margin-bottom: 0; }
.panel-section-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.panel-section-head h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.panel-section-head .icon { width: 14px; height: 14px; color: var(--soft); }
.panel-section-head .count { margin-left: auto; font-size: 9.5px; color: var(--soft); }
.panel-description { font-size: 11.5px; line-height: 1.65; color: var(--muted); white-space: pre-line; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.meta-field { display: flex; flex-direction: column; gap: 4px; }
.meta-field > label { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 700; }
.meta-field .select-control, .meta-field .input-control { width: 100%; height: 34px; font-size: 11px; }
.meta-readonly { min-height: 34px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text); }
.meta-readonly .avatar { width: 22px; height: 22px; font-size: 7.5px; }
.meta-readonly .badge { font-size: 9px; }
.subtask-list { display: flex; flex-direction: column; gap: 1px; }
.subtask-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 5px; border-radius: 6px; cursor: pointer; }
.subtask-item:hover { background: var(--surface-2); }
.subtask-item input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--success); flex: 0 0 auto; }
.subtask-item span { font-size: 11px; color: var(--text); line-height: 1.4; }
.subtask-item.done span { color: var(--soft); text-decoration: line-through; }
.subtask-item.read-only { cursor: default; }
.subtask-item.read-only:hover { background: transparent; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment-item { display: flex; gap: 8px; }
.comment-item .avatar { width: 27px; height: 27px; font-size: 8px; margin-top: 1px; }
.comment-body { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid #eef2f7; border-radius: 9px; padding: 8px 10px; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.comment-head strong { font-size: 10px; color: var(--ink); font-weight: 600; }
.comment-head time { font-size: 8.5px; color: var(--soft); }
.comment-body p { font-size: 10.5px; color: var(--text); line-height: 1.5; }
.comment-form { display: flex; gap: 7px; margin-top: 10px; }
.comment-form .avatar { width: 27px; height: 27px; font-size: 8px; margin-top: 2px; }
.comment-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.comment-input-wrap textarea { width: 100%; min-height: 58px; resize: vertical; font-size: 10.5px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: var(--surface); }
.comment-input-wrap textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 170, 221, .08); }
.comment-input-wrap .btn { align-self: flex-end; min-height: 28px; font-size: 10px; padding: 4px 10px; }
.history-list { display: flex; flex-direction: column; gap: 0; }
.history-item { display: flex; gap: 9px; position: relative; padding-bottom: 12px; }
.history-item:last-child { padding-bottom: 0; }
.history-rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.history-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); margin-top: 4px; flex: 0 0 auto; }
.history-item:not(:last-child) .history-line { width: 1px; flex: 1; background: var(--border); margin-top: 2px; }
.history-copy { font-size: 9.5px; color: var(--muted); line-height: 1.45; }
.history-copy strong { color: var(--text); font-weight: 600; }
.history-copy time { display: block; font-size: 8.5px; color: var(--soft); margin-top: 1px; }
.history-type { display: inline-flex; align-items: center; gap: 4px; font-size: 8px; padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--muted); margin-right: 3px; font-weight: 600; }
.history-type.estado { background: var(--blue-bg); color: var(--blue); }
.history-type.asignacion { background: var(--purple-bg); color: var(--purple); }
.history-type.creacion { background: var(--success-bg); color: var(--success); }
.history-type.prioridad { background: var(--warning-bg); color: var(--warning); }
.history-type.comentario { background: var(--accent-050); color: var(--accent); }
.panel-viewer-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 9px; background: var(--warning-bg); border: 1px solid rgba(217, 119, 6, .16); color: #92400e; font-size: 10px; line-height: 1.45; }
.panel-viewer-note .icon { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }

/* ============================================================================
   Modales
   ============================================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(6, 20, 36, .42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s ease both; }
.modal-card { width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid rgba(255, 255, 255, .5); border-radius: 18px; box-shadow: var(--shadow-lg); animation: modalIn .22s cubic-bezier(.22, .8, .3, 1) both; overflow: hidden; }
.modal-card.wide { max-width: 720px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 19px 20px 14px; border-bottom: 1px solid var(--border); }
.modal-head-copy { flex: 1; min-width: 0; }
.modal-head h2 { font-size: 16px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.modal-head p { margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
.modal-foot .btn { font-size: 11.5px; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field > label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); font-weight: 700; }
.form-field .input-control, .form-field .select-control, .form-field .textarea-control { width: 100%; }
.form-field .input-control, .form-field .select-control { height: 37px; }
.modal-error { display: none; padding: 8px 10px; background: var(--danger-bg); color: var(--danger); font-size: 10.5px; border-radius: 7px; }
.modal-error.visible { display: block; }
.confirm-icon { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--warning-bg); color: var(--warning); margin-bottom: 12px; }
.confirm-icon .icon { width: 21px; height: 21px; }
.confirm-text { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.confirm-text strong { color: var(--ink); }
.guide-list { display: flex; flex-direction: column; gap: 5px; }
.guide-step { display: flex; align-items: flex-start; gap: 11px; padding: 10px; border-radius: 9px; border: 1px solid transparent; transition: all .15s ease; }
.guide-step:hover { background: var(--surface-2); border-color: var(--border); }
.guide-num { width: 25px; height: 25px; border-radius: 7px; background: var(--primary-050); color: var(--primary-700); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.guide-copy { flex: 1; min-width: 0; }
.guide-copy strong { display: block; font-size: 11.5px; color: var(--ink); font-weight: 600; }
.guide-copy p { font-size: 10px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.guide-step .btn { flex: 0 0 auto; min-height: 28px; font-size: 9.5px; padding: 4px 9px; }
.guide-tip { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: var(--primary-050); border: 1px solid rgba(0, 170, 221, .18); font-size: 10px; color: var(--primary-700); line-height: 1.5; }
.guide-tip strong { color: var(--ink); }

/* ============================================================================
   Toasts y tooltip
   ============================================================================ */
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; transition: right .25s ease, left .25s ease; }
body.panel-open .toast-stack { right: calc(min(530px, 94vw) + 22px); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 11px; color: var(--text); pointer-events: auto; animation: toastIn .25s cubic-bezier(.22, .8, .3, 1) both; }
.toast.hide { animation: toastOut .22s ease both; }
.toast .toast-icon { width: 23px; height: 23px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--primary-050); color: var(--primary-700); flex: 0 0 auto; }
.toast .toast-icon .icon { width: 13px; height: 13px; }
.toast-copy { flex: 1; min-width: 0; }
.toast-copy strong { display: block; font-size: 10.5px; color: var(--ink); font-weight: 600; }
.toast-copy span { display: block; font-size: 10px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.toast-close { border: none; background: transparent; color: var(--soft); width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.toast-close:hover { background: var(--surface-3); color: var(--ink); }
.toast-close .icon { width: 12px; height: 12px; }
.toast.success { border-left-color: var(--success); }
.toast.success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast.warning { border-left-color: var(--warning); }
.toast.warning .toast-icon { background: var(--warning-bg); color: var(--warning); }
.toast.error { border-left-color: var(--danger); }
.toast.error .toast-icon { background: var(--danger-bg); color: var(--danger); }
.toast.info { border-left-color: var(--primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }
.chart-tooltip { position: fixed; z-index: 400; pointer-events: none; padding: 5px 8px; background: #0f172a; color: #fff; font-size: 9.5px; line-height: 1.35; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); max-width: 240px; }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1340px) {
  .global-search { width: 210px; }
  .global-search:focus-within { width: 245px; }
  .demo-date { display: none; }
  .task-row { grid-template-columns: 22px minmax(0, 1fr) 124px 58px 58px 96px; }
  .task-row-due { display: none; }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1160px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .report-grid { grid-template-columns: minmax(0, 1fr); }
  .report-side { display: grid; grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-hero { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(4, minmax(215px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .board-column { min-width: 215px; }
}
@media (max-width: 1020px) {
  :root { --sidebar-w: 0px; }
  .sidebar { width: 254px; transform: translateX(-105%); box-shadow: 20px 0 60px rgba(16, 24, 40, .18); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-flex; }
  .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(6, 20, 36, .35); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .sidebar-scrim.open { opacity: 1; pointer-events: auto; }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .login-screen { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 34px 26px 30px; }
  .login-preview { display: none; }
  .login-benefits { display: none; }
  .login-copy { max-width: none; }
  .login-copy h1 { font-size: clamp(32px, 6vw, 46px); }
  .login-copy > p { margin-top: 10px; }
  .login-panel { padding: 30px 22px 42px; }
  .login-card { max-width: 520px; }
  .login-legal { display: none; }
  .login-story .login-brand img { width: 150px; }
  .board { grid-template-columns: repeat(4, 240px); }
}
@media (max-width: 820px) {
  .topbar { padding: 0 18px; height: 68px; flex-basis: 68px; }
  .content { padding: 20px 18px 36px; }
  .global-search { display: none; }
  .user-button-copy { display: none; }
  .user-button .icon { display: none; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .report-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .report-side { grid-template-columns: 1fr; }
  .dash-side { grid-template-columns: 1fr; }
  .task-row { grid-template-columns: 22px minmax(0, 1fr) 58px 96px; }
  .task-row-priority { display: none; }
  .task-row-assignee { display: none; }
  .task-row-due { display: none; }
  .epic-card { flex-wrap: wrap; }
  .epic-progress { width: 100%; order: 4; }
  .epic-owner { width: auto; margin-left: auto; }
  .group-grid { grid-template-columns: 1fr; }
  .distribution-grid { grid-template-columns: 1fr; }
  .donut-svg { max-width: 230px; }
  .view-header h2 { font-size: 20px; }
}
@media (max-width: 640px) {
  .login-story { padding: 28px 20px 24px; }
  .login-copy h1 { font-size: 33px; }
  .login-copy > p { font-size: 13px; }
  .login-panel { padding: 22px 14px 32px; }
  .login-card { padding: 24px 20px; border-radius: 18px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi-card { padding: 13px; }
  .kpi-value strong { font-size: 22px; }
  .kpi-spark { display: none; }
  .dash-greeting h2 { font-size: 21px; }
  .focus-card { padding: 17px; }
  .focus-card h3 { font-size: 18px; }
  .focus-stats { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .focus-stat:nth-child(3) { border-left: none; padding-left: 0; }
  .focus-days strong { font-size: 21px; }
  .focus-spark { display: none; }
  .summary-strip { gap: 8px; }
  .summary-tile { padding: 9px 10px; gap: 7px; }
  .summary-tile strong { font-size: 15px; }
  .summary-tile .st-icon { width: 27px; height: 27px; }
  .task-row { grid-template-columns: 18px minmax(0, 1fr) 58px 60px; gap: 7px; }
  .task-row-status { display: none; }
  .task-row-points { text-align: right; }
  .backlog-head { padding: 12px; }
  .backlog-head-metrics { width: 100%; justify-content: flex-start; margin-left: 0; gap: 18px; }
  .backlog-head-actions { width: 100%; }
  .backlog-head-actions .btn { flex: 1; }
  .backlog-tasks { padding: 3px 6px 7px; }
  .project-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .report-tabs { width: 100%; overflow-x: auto; }
  .report-tab { flex: 1; white-space: nowrap; padding: 7px 9px; font-size: 10.5px; }
  .report-kpi-grid { gap: 8px; }
  .report-kpi strong { font-size: 18px; }
  .topbar-right .icon-btn { width: 34px; height: 34px; }
  .notif-popover { width: min(330px, calc(100vw - 24px)); right: -50px; }
  .user-popover { right: -5px; }
  .page-heading h1 { font-size: 17px; }
  .page-eyebrow { font-size: 8.5px; }
  .task-row-title strong { font-size: 10.5px; }
  .board { grid-template-columns: repeat(4, 82vw); }
  .form-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 10px; }
  .modal-card { max-height: 94vh; }
  .panel-head h2 { font-size: 17px; }
  .side-panel { width: 100vw; }
  .meta-grid { grid-template-columns: 1fr; }
  .toast-stack { right: 12px !important; bottom: 12px; width: calc(100vw - 24px); }
  body.panel-open .toast-stack { right: 12px !important; bottom: 12px; }
  .report-tasks .table-wrap { overflow-x: auto; }
  .report-tasks table { min-width: 520px; }
  .epic-card { gap: 10px; padding: 13px; }
  .epic-icon { width: 34px; height: 34px; }
  .epic-owner { display: none; }
  .task-row-status { display: none; }
  .task-row { grid-template-columns: 18px minmax(0, 1fr) 58px; }
  .team-banner { padding: 18px; }
  .team-banner h2 { font-size: 21px; }
  .capacity-card { padding: 15px; }
  .data-table { min-width: 680px; }
}
@media (max-width: 640px) {
  .login-story { padding: 22px 20px 20px; gap: 12px; }
  .login-copy h1 { font-size: 27px; margin-top: 8px; }
  .login-copy > p { display: none; }
  .login-copy .eyebrow { display: none; }
  .login-brand img { width: 128px; }
  .login-panel { padding-top: 18px; }
  .login-card { padding-top: 22px; }
}
@media (max-width: 420px) {
  .login-copy h1 { font-size: 25px; }
  .login-card-head h2 { font-size: 22px; }
  .profile-choice { padding: 8px 9px; }
  .focus-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   Impresión (reporte)
   ============================================================================ */
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .sidebar-scrim, .toast-stack, .side-panel, .side-panel-backdrop, .modal-overlay, .view-actions, .report-tabs, .chart-card-head .btn, .section-action, .report-side .insight-card { display: none !important; }
  .app-main { margin-left: 0; }
  .content { padding: 0; max-width: none; }
  .report-grid { display: block; }
  .chart-card, .card, .report-kpi, .insight-card { box-shadow: none; border-color: #d7dde5; break-inside: avoid; }
  .report-kpi-grid { margin-bottom: 10px; }
  .chart-card { margin-bottom: 14px; }
  .report-side { display: block; }
  .report-side .card { margin-bottom: 12px; }
  .report-tasks { break-inside: avoid; }
  .view-header { margin-bottom: 12px; }
  .view-header h2 { font-size: 20px; }
  .chart-svg { max-height: 300px; }
}
