:root {
  --bg: #f5f6f8; --surface: #fff; --border: #e2e5ea; --border-light: #f0f1f4;
  --text: #1a1d23; --text-mid: #4a5060; --text-soft: #8b91a0;
  --blue: #2563eb; --blue-light: #eff4ff; --blue-bg: #dbeafe;
  --green: #16a34a; --green-light: #f0fdf4; --green-bg: #dcfce7;
  --amber: #d97706; --amber-light: #fffbeb; --amber-bg: #fef3c7;
  --red: #dc2626; --red-light: #fef2f2; --red-bg: #fee2e2;
  --purple: #7c3aed; --purple-light: #f5f3ff;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="dark"] {
  --bg: #111318; --surface: #1a1d24; --border: #2a2e38; --border-light: #222630;
  --text: #e4e6eb; --text-mid: #b0b5c0; --text-soft: #6b7280;
  --blue: #3b82f6; --blue-light: #1e293b; --blue-bg: #1e3a5f;
  --green: #22c55e; --green-light: #0f2418; --green-bg: #14532d;
  --amber: #f59e0b; --amber-light: #1c1708; --amber-bg: #422006;
  --red: #ef4444; --red-light: #1f0a0a; --red-bg: #450a0a;
  --purple: #a78bfa; --purple-light: #1e1533;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.5; }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── HEADER ─── */
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 54px; position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 20px; }
.logo { font-size: 17px; font-weight: 700; color: var(--blue); letter-spacing: -0.5px; }
.logo span { color: var(--text-soft); font-weight: 400; font-size: 12px; margin-left: 6px; }
.tabs { display: flex; gap: 0; }
.tab { padding: 16px 18px; font-size: 13px; font-weight: 500; color: var(--text-soft); border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; user-select: none; }
.tab:hover { color: var(--text-mid); }
.tab.drag-over { border-bottom: 2px solid var(--blue); }
.tab.dragging { opacity: 0.4; }
.status-dropdown { position:relative; display:inline-block; }
.status-dropdown-menu { position:absolute; top:100%; left:0; z-index:100; background:var(--surface); border:1px solid var(--border); border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,.15); padding:4px; min-width:120px; margin-top:4px; }
.status-dropdown-item { display:block; width:100%; padding:6px 12px; border:none; background:none; text-align:left; font-size:12px; border-radius:4px; cursor:pointer; color:var(--text); }
.status-dropdown-item:hover { background:var(--bg-hover, rgba(0,0,0,.05)); }
.milestone-timeline { display:flex; gap:0; align-items:stretch; margin-top:12px; padding:12px; background:var(--bg); border-radius:8px; border:1px solid var(--border-light); overflow-x:auto; }
.milestone-node { display:flex; flex-direction:column; align-items:center; min-width:80px; flex:1; position:relative; }
.milestone-dot { width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:#fff; z-index:2; }
.milestone-dot.done { background:var(--green); }
.milestone-dot.current { background:var(--blue); }
.milestone-dot.pending { background:var(--border); color:var(--text-soft); }
.milestone-label { font-size:10px; color:var(--text-soft); margin-top:4px; text-align:center; max-width:90px; }
.milestone-date { font-size:9px; color:var(--text-soft); margin-top:2px; }
.milestone-connector { display:flex; align-items:center; justify-content:center; min-width:50px; flex:0 0 auto; position:relative; }
.milestone-line { height:2px; flex:1; background:var(--border); position:relative; }
.milestone-line.done { background:var(--green); }
.milestone-days-badge { position:absolute; top:-10px; left:50%; transform:translateX(-50%); background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:1px 6px; font-size:9px; font-weight:600; white-space:nowrap; }
.milestone-days-badge.fast { color:var(--green); border-color:rgba(16,185,129,.3); }
.milestone-days-badge.medium { color:var(--amber); border-color:rgba(245,158,11,.3); }
.milestone-days-badge.slow { color:var(--red); border-color:rgba(239,68,68,.3); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-soft); }
.user-info { display: flex; align-items: center; gap: 6px; }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.btn { padding: 7px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all 0.12s; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.btn:hover { background: var(--bg); border-color: #ccc; }
.btn.primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.primary:hover { background: #1d4ed8; }
.btn.sm { padding: 4px 10px; font-size: 11px; }
.btn.ghost { border: none; background: none; color: var(--text-soft); }
.btn.ghost:hover { background: var(--bg); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-light); }
.content { padding: 24px 28px 90px; max-width: 1440px; margin: 0 auto; }
.view { display: none; } .view.active { display: block; }

/* ─── LOGIN SCREEN ─── */
.login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-logo { font-size: 28px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.login-sub { color: var(--text-soft); margin-bottom: 32px; }
.login-btn { padding: 12px 32px; font-size: 14px; font-weight: 600; background: var(--blue); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.12s; display: inline-flex; align-items: center; gap: 10px; }
.login-btn:hover { background: #1d4ed8; }
.login-btn svg { width: 20px; height: 20px; }

/* ─── LOADING ─── */
.loading-overlay { position: fixed; inset: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 999; }
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.6s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SYNC INDICATOR ─── */
.sync-indicator { display: flex; align-items: center; gap: 5px; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.sync-indicator.syncing { color: var(--amber); background: var(--amber-light); }
.sync-indicator.synced { color: var(--green); background: var(--green-light); }
.sync-indicator.error { color: var(--red); background: var(--red-light); }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; }
.sync-indicator.syncing .sync-dot { background: var(--amber); animation: pulse 1s infinite; }
.sync-indicator.synced .sync-dot { background: var(--green); }
.sync-indicator.error .sync-dot { background: var(--red); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Resto de estilos idénticos al dashboard v2 */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.kpi-label { font-size: 11px; color: var(--text-soft); font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1.1; }
.kpi-sub { font-size: 11px; color: var(--text-soft); margin-top: 4px; }
.funnel-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; }
.funnel-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.funnel { display: flex; align-items: stretch; gap: 0; }
.funnel-stage { flex: 1; text-align: center; position: relative; }
.funnel-bar-wrap { height: 56px; display: flex; align-items: flex-end; justify-content: center; padding: 0 4px; margin-bottom: 8px; }
.funnel-bar { width: 100%; border-radius: 4px 4px 0 0; transition: height 0.4s ease; min-height: 4px; cursor: pointer; position: relative; }
.funnel-count { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.funnel-name { font-size: 10px; color: var(--text-soft); font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.3; }
.funnel-arrow { display: flex; align-items: center; justify-content: center; width: 32px; flex-shrink: 0; }
.funnel-conversion { font-size: 10px; font-weight: 700; color: var(--text-soft); background: var(--bg); padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.funnel-conversion.good { color: var(--green); background: var(--green-light); }
.funnel-conversion.warn { color: var(--amber); background: var(--amber-light); }
.funnel-conversion.bad { color: var(--red); background: var(--red-light); }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: 8px; }
.filter-pill { padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-mid); transition: all 0.12s; }
.filter-pill:hover { border-color: var(--blue); color: var(--blue); }
.filter-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.filter-pill .count { background: rgba(255,255,255,0.2); padding: 1px 5px; border-radius: 999px; margin-left: 4px; font-size: 10px; }
.filter-pill.active .count { background: rgba(255,255,255,0.25); }
.search-input { padding: 6px 12px 6px 30px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; width: 200px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238b91a0' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 10px center no-repeat; }
.search-input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead th { background: #fafbfc; border-bottom: 1px solid var(--border); padding: 10px 14px; text-align: left; font-weight: 600; color: var(--text-soft); font-size: 11px; white-space: nowrap; cursor: pointer; user-select: none; position: sticky; top: 0; z-index: 2; }
thead th:hover { color: var(--text); }
thead th .sort-icon { font-size: 9px; margin-left: 3px; opacity: 0.4; }
thead th.sorted .sort-icon { opacity: 1; color: var(--blue); }
tbody tr { border-bottom: 1px solid var(--border-light); transition: background 0.08s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f8f9fb; }
tbody tr.stale { background: var(--amber-light); }
tbody tr.won-row { background: var(--green-light); }
tbody tr.lost-row { background: var(--red-light); opacity: 0.7; }
td { padding: 10px 14px; vertical-align: middle; }
.deal-company { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 1px; }
.deal-contact { font-size: 11px; color: var(--text-soft); }
.deal-source { font-size: 11px; color: var(--text-soft); }
.stage-stepper { display: flex; align-items: center; gap: 3px; }
.step { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.step.done { background: var(--green-bg); color: var(--green); }
.step.current { background: var(--blue-bg); color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.step.pending { background: var(--border-light); color: var(--text-soft); }
.step.lost { background: var(--red-bg); color: var(--red); }
.step-line { width: 6px; height: 2px; border-radius: 1px; flex-shrink: 0; }
.step-line.done { background: var(--green); }
.step-line.pending { background: var(--border); }
.stage-label { font-size: 10px; color: var(--text-mid); font-weight: 500; margin-top: 3px; }
.days-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.days-badge.ok { background: var(--green-light); color: var(--green); }
.days-badge.warn { background: var(--amber-bg); color: var(--amber); }
.days-badge.danger { background: var(--red-bg); color: var(--red); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.badge.active { background: var(--blue-light); color: var(--blue); }
.badge.won { background: var(--green-bg); color: var(--green); }
.badge.lost { background: var(--red-bg); color: var(--red); }
.badge.paused { background: var(--amber-bg); color: var(--amber); }
.next-action { font-size: 12px; padding: 3px 6px; border-radius: 4px; border: none; outline: none; background: transparent; color: var(--text); width: 100%; min-width: 120px; }
.next-action:focus { background: var(--blue-light); outline: 2px solid var(--blue); }
.next-action::placeholder { color: var(--text-soft); font-style: italic; }
.analytics-strip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 24px; }
.analytics-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.analytics-item { text-align: center; }
.analytics-value { font-size: 22px; font-weight: 700; color: var(--text); }
.analytics-label { font-size: 10px; color: var(--text-soft); margin-top: 2px; }
.analytics-bar { height: 4px; background: var(--border-light); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.analytics-fill { height: 100%; border-radius: 2px; }
.impl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow); }
.impl-header { padding: 16px 20px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--border-light); }
.impl-client { font-weight: 700; font-size: 15px; color: var(--text); }
.impl-meta { font-size: 11px; color: var(--text-soft); margin-top: 3px; display: flex; gap: 16px; flex-wrap: wrap; }
.impl-meta-item { display: flex; align-items: center; gap: 4px; }
.impl-controls { display: flex; align-items: center; gap: 8px; }
.impl-timeline { padding: 24px 20px 20px; }
.timeline-track { display: flex; align-items: flex-start; position: relative; }
.timeline-node { flex: 1; position: relative; text-align: center; min-width: 0; }
.node-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin: 0 auto 8px; position: relative; z-index: 2; }
.node-dot.done { background: var(--green); color: #fff; }
.node-dot.current { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-light); }
.node-dot.pending { background: var(--border); color: var(--text-soft); }
.node-dot.risk { background: var(--amber); color: #fff; box-shadow: 0 0 0 4px var(--amber-light); }
.node-label { font-size: 10px; font-weight: 600; color: var(--text-mid); line-height: 1.3; margin-bottom: 4px; }
.node-date { font-size: 11px; color: var(--text-soft); margin-bottom: 2px; }
.node-note { font-size: 10px; color: var(--text-soft); font-style: italic; max-width: 120px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-line { position: absolute; top: 14px; left: 0; right: 0; height: 3px; z-index: 1; display: flex; }
.timeline-segment { flex: 1; height: 3px; }
.timeline-segment.done { background: var(--green); }
.timeline-segment.active { background: var(--blue); background: linear-gradient(90deg, var(--blue), var(--border)); }
.timeline-segment.pending { background: var(--border-light); }
.impl-progress { padding: 0 20px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.progress-stat { font-size: 12px; color: var(--text-mid); }
.progress-stat strong { color: var(--text); }
.add-form { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; display: none; animation: slideDown 0.15s ease; }
.add-form.open { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.form-title { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.form-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-soft); margin-bottom: 4px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-family: inherit; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-actions { display: flex; gap: 8px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 200; display: none; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius); padding: 24px; width: 560px; max-width: 95vw; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.15s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.modal h3 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.modal-actions { margin-top: 20px; display: flex; gap: 8px; justify-content: flex-end; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }

/* ─── ADMIN PANEL ─── */
.admin-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; }
.admin-section-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: #fafbfc; }
.admin-section-title { font-size: 14px; font-weight: 600; }
.admin-section-body { padding: 0; }

/* Audit log table */
.audit-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.audit-table thead th { background: #fafbfc; border-bottom: 1px solid var(--border); padding: 8px 14px; text-align: left; font-weight: 600; color: var(--text-soft); font-size: 11px; white-space: nowrap; }
.audit-table tbody tr { border-bottom: 1px solid var(--border-light); }
.audit-table tbody tr:hover { background: #f8f9fb; }
.audit-table td { padding: 8px 14px; vertical-align: top; }
.audit-action { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.audit-action.create { background: var(--green-light); color: var(--green); }
.audit-action.update { background: var(--blue-light); color: var(--blue); }
.audit-action.delete { background: var(--red-light); color: var(--red); }
.audit-changes { font-size: 11px; color: var(--text-mid); max-width: 300px; }
.audit-changes .change-field { font-weight: 600; color: var(--text); }
.audit-changes .change-from { color: var(--red); text-decoration: line-through; }
.audit-changes .change-to { color: var(--green); }
.audit-timestamp { font-size: 11px; color: var(--text-soft); white-space: nowrap; }
.audit-user { display: flex; align-items: center; gap: 6px; }
.audit-user-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--purple-light); color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.audit-filter-row { display: flex; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; align-items: center; }

/* Users list */
.user-card { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border-light); }
.user-card:last-child { border-bottom: none; }
.user-card-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.user-card-info { flex: 1; }
.user-card-name { font-size: 13px; font-weight: 600; }
.user-card-email { font-size: 11px; color: var(--text-soft); }
.user-card-meta { font-size: 11px; color: var(--text-soft); text-align: right; }
.admin-badge { background: var(--purple-light); color: var(--purple); padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; margin-left: 6px; }

/* Modified-by indicator */
.modified-by { font-size: 10px; color: var(--text-soft); margin-top: 2px; font-style: italic; }

/* Expandable rows */
.expand-btn { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--text-soft); padding: 2px 6px; border-radius: 4px; transition: all 0.15s; line-height: 1; }
.expand-btn:hover { background: var(--bg); color: var(--text); }
.expand-btn.open { transform: rotate(90deg); }
.expand-detail { display: none; }
.expand-detail.open { display: table-row; }
.expand-detail td { padding: 0 14px 16px 14px; background: var(--bg); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 14px 0; }
.detail-item { font-size: 12px; }
.detail-label { font-size: 10px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 3px; }
.detail-value { color: var(--text); }
.detail-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 500; }
.detail-link:hover { text-decoration: underline; }
.detail-link svg { width: 12px; height: 12px; }

/* Admin tab hidden by default */
.tab.admin-only { display: none; }
.tab.admin-only.visible { display: block; }
/* Calendar tab hidden by default (shown only if user can see at least one section) */
.tab.cal-tab { display: none; }
.tab.cal-tab.visible { display: block; }

/* ─── CALENDARIO ─── */
.cal-layout { display: flex; gap: 16px; align-items: flex-start; }
.cal-sidebar { width: 220px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cal-sidebar-header { padding: 12px 14px; border-bottom: 1px solid var(--border); background: #fafbfc; }
[data-theme="dark"] .cal-sidebar-header { background: #15171d; }
.cal-sidebar-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cal-sidebar-search { width: 100%; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; font-family: inherit; background: var(--bg); color: var(--text); }
.cal-sidebar-search:focus { outline: 2px solid var(--blue); border-color: transparent; }
.cal-sidebar-section { border-bottom: 1px solid var(--border-light); }
.cal-sidebar-section-title { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-soft); }
.cal-sidebar-actions { display: flex; gap: 4px; }
.cal-sidebar-act { font-size: 10px; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--border); background: none; cursor: pointer; color: var(--text-soft); font-family: inherit; }
.cal-sidebar-act:hover { border-color: var(--blue); color: var(--blue); }
.cal-sidebar-list { max-height: 220px; overflow-y: auto; padding: 4px 0; }
.cal-sidebar-item { display: flex; align-items: center; gap: 8px; padding: 5px 14px; cursor: pointer; transition: background 0.08s; }
.cal-sidebar-item:hover { background: var(--bg); }
.cal-sidebar-item input[type=checkbox] { width: 13px; height: 13px; cursor: pointer; flex-shrink: 0; accent-color: var(--blue); }
.cal-sidebar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cal-sidebar-label { font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.cal-sidebar-sub { font-size: 10px; color: var(--text-soft); }
.cal-main { flex: 1; min-width: 0; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-month-title { font-size: 18px; font-weight: 700; color: var(--text); min-width: 160px; text-align: center; }
.cal-nav-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-mid); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.12s; }
.cal-nav-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.cal-today-btn { padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 500; cursor: pointer; color: var(--text-mid); }
.cal-today-btn:hover { border-color: var(--blue); color: var(--blue); }
.cal-view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.cal-view-btn { padding: 5px 14px; font-size: 12px; font-weight: 500; border: none; background: var(--surface); color: var(--text-soft); cursor: pointer; transition: all 0.12s; }
.cal-view-btn.active { background: var(--blue); color: #fff; }
.cal-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-mid); }
.cal-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
/* Month grid */
.cal-grid-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-days-header { display: grid; grid-template-columns: repeat(7, 1fr); background: #fafbfc; border-bottom: 1px solid var(--border); }
[data-theme="dark"] .cal-days-header { background: #15171d; }
.cal-day-name { padding: 9px 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 108px; border-right: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 6px; transition: background 0.12s; cursor: pointer; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--blue-light); }
[data-theme="dark"] .cal-cell:hover { background: #1a2233; }
.cal-cell.other-month { background: var(--bg); opacity: 0.55; }
.cal-cell.other-month:hover { opacity: 0.75; }
.cal-cell.today { background: var(--blue-light); }
[data-theme="dark"] .cal-cell.today { background: #1e293b; }
.cal-cell-num { font-size: 12px; font-weight: 600; color: var(--text-soft); margin-bottom: 4px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.cal-cell.today .cal-cell-num { background: var(--blue); color: #fff; }
.cal-cell.other-month .cal-cell-num { color: var(--border); }
.cal-event { display: block; font-size: 10px; font-weight: 500; padding: 2px 6px; border-radius: 3px; margin-bottom: 2px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: none; text-align: left; width: 100%; transition: opacity 0.12s; }
.cal-event:hover { opacity: 0.78; }
.cal-event.pipeline-stage { background: var(--blue-bg); color: var(--blue); }
.cal-event.pipeline-won  { background: var(--green-bg); color: var(--green); }
.cal-event.impl-kickoff  { background: var(--purple-light); color: var(--purple); }
.cal-event.impl-golive   { background: var(--green-bg); color: var(--green); }
.cal-event.impl-stage    { background: var(--amber-bg); color: var(--amber); }
.cal-more-badge { font-size: 10px; color: var(--text-soft); font-style: italic; padding: 1px 4px; }
/* Year grid */
.cal-year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .cal-year-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cal-year-grid { grid-template-columns: repeat(2, 1fr); } }
.cal-mini-month { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; cursor: pointer; transition: box-shadow 0.12s, border-color 0.12s; }
.cal-mini-month:hover { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-bg); }
.cal-mini-month.current-month { border-color: var(--blue); }
.cal-mini-title { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 6px; text-align: center; }
.cal-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-mini-cell { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 8px; color: var(--text-soft); border-radius: 2px; position: relative; }
.cal-mini-cell.today { background: var(--blue); color: #fff; border-radius: 50%; }
.cal-mini-cell.has-events { font-weight: 700; color: var(--text); }
.cal-mini-dots { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 1px; }
.cal-mini-dot { width: 3px; height: 3px; border-radius: 50%; }
/* Calendar empty state */
.cal-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; color: var(--text-soft); }
.cal-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.cal-empty-msg { font-size: 13px; max-width: 280px; line-height: 1.5; }
/* Calendar selected count */
.cal-sidebar-count { font-size: 10px; color: var(--text-soft); font-weight: 400; margin-left: 4px; }
/* Contact info in pipeline */
.contact-extra { font-size: 10px; color: var(--text-soft); margin-top: 1px; display: flex; flex-direction: column; gap: 1px; }
.contact-extra a { color: var(--blue); text-decoration: none; }
.contact-extra a:hover { text-decoration: underline; }
/* Responsive sidebar */
@media (max-width: 900px) { .cal-layout { flex-direction: column; } .cal-sidebar { width: 100%; } .cal-sidebar-list { max-height: 140px; } }
/* Popover */
.cal-popover { position: fixed; z-index: 500; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; min-width: 240px; max-width: 300px; box-shadow: var(--shadow-lg); animation: modalIn 0.12s ease; }
.cal-popover h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.cal-popover-event { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border-light); font-size: 12px; }
.cal-popover-event:last-child { border-bottom: none; }
.cal-popover-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.cal-popover-close { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-soft); line-height: 1; padding: 2px 6px; border-radius: 4px; }
.cal-popover-close:hover { background: var(--bg); }

/* ─── KPIs DASHBOARD ─── */
.kpi-time-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); flex-wrap: wrap; }
.kpi-filter-label { font-weight: 600; color: var(--text-soft); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; margin-right: 4px; }
.kpi-filter-btn { padding: 5px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-mid); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.12s; font-family: inherit; }
.kpi-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.kpi-filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.kpi-date-input { padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-family: inherit; background: var(--bg); color: var(--text); }
.kpi-summary-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.kpi-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi-summary-card.alert { border-color: var(--amber); background: var(--amber-light); }
.kpi-summary-card.good { border-color: var(--green); background: var(--green-light); }
.kpi-s-label { font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; }
.kpi-s-value { font-size: 30px; font-weight: 700; color: var(--text); line-height: 1.1; }
.kpi-s-sub { font-size: 11px; color: var(--text-soft); margin-top: 4px; }
.kpi-section { margin-bottom: 32px; }
.kpi-section-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; transition: color 0.15s; }
.kpi-section-title:hover { color: var(--blue); }
.kpi-section-title .kpi-toggle { margin-left: auto; font-size: 12px; color: var(--text-soft); transition: transform 0.25s; }
.kpi-section-title.collapsed .kpi-toggle { transform: rotate(-90deg); }
.kpi-section .kpi-section-body { transition: max-height 0.3s ease, opacity 0.2s ease; overflow: hidden; }
.kpi-section .kpi-section-body.collapsed { max-height: 0 !important; opacity: 0; margin: 0; padding: 0; }
.kpi-section-dot { width: 10px; height: 10px; border-radius: 50%; }
.kpi-charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.kpi-chart-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi-chart-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.kpi-chart-box canvas { width: 100% !important; max-height: 280px; }
.kpi-tab { display: none; }
.kpi-tab.visible { display: block; }
@media (max-width: 900px) { .kpi-charts-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .kpi-summary-row { grid-template-columns: repeat(2, 1fr); } }

/* ─── KPI Upload & GitHub ─── */
.kpi-upload-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.kpi-upload-status { font-size: 12px; color: var(--text-soft); }
.kpi-upload-status.ok { color: var(--green); }
.kpi-upload-status.err { color: var(--red); }
.kpi-github-status { font-size: 11px; padding: 2px 10px; border-radius: 10px; margin-left: 10px; font-weight: 500; }
.kpi-github-status.connected { background: rgba(34,197,94,.12); color: #16a34a; }
.kpi-github-status.disconnected { background: rgba(239,68,68,.1); color: #ef4444; }
.gh-spinner { width:36px; height:36px; border:3px solid var(--border); border-top-color:var(--blue); border-radius:50%; animation:spin .7s linear infinite; margin:0 auto; }
.user-delete-btn { background:none; border:none; color:var(--text-soft); cursor:pointer; padding:4px 6px; border-radius:4px; font-size:14px; line-height:1; }
.user-delete-btn:hover { background:rgba(239,68,68,.1); color:#ef4444; }
.kpi-empty-state { text-align: center; padding: 40px 20px; color: var(--text-soft); font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 12px; }
.kpi-gh-filters { display: flex; gap: 16px; margin-bottom: 16px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); flex-wrap: wrap; }
.kpi-gh-filter-label { font-size: 12px; font-weight: 600; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.kpi-gh-filter-label select { font-size: 12px; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); cursor: pointer; min-width: 140px; }

/* ─── MY DAY (Briefing) ─── */
.bd-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.bd-header-left h2 { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.bd-header-left .bd-subtitle { font-size: 13px; color: var(--text-soft); margin-top: 2px; }
.bd-date { font-size: 12px; padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-soft); font-weight: 500; }
.bd-toolbar { display: flex; gap: 8px; margin-top: 8px; }

.bd-progress { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.bd-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bd-progress-title { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.bd-progress-stats { font-size: 13px; font-weight: 700; color: var(--green); }
.bd-progress-bg { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bd-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), #34d399); border-radius: 4px; transition: width 0.5s ease; }

.bd-workflow { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; margin-bottom: 20px; overflow-x: auto; flex-wrap: wrap; }
.bd-step { display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.bd-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: var(--text-soft); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.bd-step-num.active { background: var(--blue); color: #fff; }
.bd-step-num.done { background: var(--green); color: #fff; }
.bd-step-text { font-size: 12px; color: var(--text-soft); font-weight: 500; transition: color 0.2s; }
.bd-step-text.done { color: var(--green); text-decoration: line-through; }
.bd-step-arrow { color: var(--text-soft); font-size: 11px; opacity: 0.4; }

.bd-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.bd-metric { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; border-top: 3px solid var(--border); transition: transform 0.15s; }
.bd-metric:hover { transform: translateY(-1px); }
.bd-metric.red { border-top-color: var(--red); }
.bd-metric.amber { border-top-color: var(--amber); }
.bd-metric.blue { border-top-color: var(--blue); }
.bd-metric.green { border-top-color: var(--green); }
.bd-metric-label { font-size: 11px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.bd-metric-value { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.bd-metric.red .bd-metric-value { color: var(--red); }
.bd-metric.amber .bd-metric-value { color: var(--amber); }
.bd-metric.blue .bd-metric-value { color: var(--blue); }
.bd-metric.green .bd-metric-value { color: var(--green); }
.bd-metric-detail { font-size: 11px; color: var(--text-soft); margin-top: 3px; }

.bd-section { margin-bottom: 24px; }
.bd-section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; cursor: pointer; user-select: none; }
.bd-section-toggle { font-size: 10px; color: var(--text-soft); transition: transform 0.2s; margin-left: auto; }
.bd-section-header.collapsed .bd-section-toggle { transform: rotate(-90deg); }
.bd-section-body { overflow: hidden; max-height: 2000px; transition: max-height 0.3s ease; }
.bd-section-body.collapsed { max-height: 0; }
.bd-section-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.bd-section-icon.urgent { background: rgba(239,68,68,.12); }
.bd-section-icon.action { background: rgba(245,158,11,.12); }
.bd-section-icon.follow { background: rgba(59,130,246,.12); }
.bd-section-title { font-size: 14px; font-weight: 700; color: var(--text); }
.bd-section-count { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.bd-section-count.red { background: rgba(239,68,68,.12); color: var(--red); }
.bd-section-count.amber { background: rgba(245,158,11,.12); color: var(--amber); }
.bd-section-count.blue { background: rgba(59,130,246,.12); color: var(--blue); }

.bd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; transition: all 0.3s ease; position: relative; }
.bd-card:hover { border-color: color-mix(in srgb, var(--border) 50%, var(--text-soft)); transform: translateY(-1px); }
.bd-card.done { opacity: 0.4; }
.bd-card.done .bd-card-subject { text-decoration: line-through; }
.bd-card.done .bd-card-action { display: none; }
.bd-card.done .bd-card-stamp { display: flex; }
.bd-card.urgent { border-left: 3px solid var(--red); }
.bd-card.action { border-left: 3px solid var(--amber); }
.bd-card.follow { border-left: 3px solid var(--blue); }
.bd-card.custom { border-left: 3px solid var(--purple); }

.bd-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.bd-card-top-left { display: flex; align-items: center; gap: 10px; flex: 1; }
.bd-card-check { width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.bd-card-check:hover { border-color: var(--green); background: rgba(34,197,94,.1); }
.bd-card-check.checked { background: var(--green); border-color: var(--green); }
.bd-card-check svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.15s; }
.bd-card-check.checked svg { opacity: 1; }
.bd-card-sender { font-size: 12px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bd-source-tag { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.bd-source-email { background: rgba(59,130,246,0.12); color: var(--blue); }
.bd-source-teams { background: rgba(139,92,246,0.12); color: var(--purple); }
.bd-card-time { font-size: 10px; color: var(--text-soft); white-space: nowrap; }
.bd-card-subject { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; transition: all 0.2s; }
.bd-card-summary { font-size: 12px; color: var(--text-soft); line-height: 1.5; }
.bd-card-action { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.bd-card-action.respond { background: rgba(239,68,68,.1); color: var(--red); }
.bd-card-action.review { background: rgba(245,158,11,.1); color: var(--amber); }
.bd-card-action.wait { background: rgba(59,130,246,.1); color: var(--blue); }
.bd-card-action.info { background: rgba(139,92,246,.1); color: var(--purple); }
.bd-card-stamp { display: none; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--green); }
.bd-card-stamp svg { width: 12px; height: 12px; }
.bd-done-stamp { display: none; align-items: center; gap: 6px; margin: 8px 0 4px 36px; font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.5px; }
.bd-done-stamp svg { width: 16px; height: 16px; }
.bd-card.done .bd-done-stamp { display: flex; }
.bd-card.done .bd-card-subject { text-decoration: line-through; opacity: 0.5; }
.bd-card.done .bd-card-summary { opacity: 0.4; }
.bd-card.done .bd-card-action { opacity: 0.4; }
.bd-card.done { opacity: 0.7; }

.bd-card-toolbar { display: flex; gap: 6px; margin-top: 8px; }
.bd-card-btn { background: var(--bg); border: 1px solid var(--border); color: var(--text-soft); border-radius: 5px; padding: 3px 8px; font-size: 10px; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.bd-card-btn:hover { background: var(--surface); color: var(--text); }
.bd-card-btn.active { background: rgba(99,102,241,.1); color: var(--blue); border-color: rgba(99,102,241,.2); }
.bd-card-notes { margin-top: 8px; display: none; }
.bd-card-notes.open { display: block; }
.bd-card-notes textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: inherit; font-size: 11px; padding: 8px 10px; resize: vertical; min-height: 40px; outline: none; }
.bd-card-notes textarea:focus { border-color: var(--blue); }

.bd-snooze-menu { position: absolute; bottom: 100%; left: 60px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px; display: none; z-index: 50; min-width: 140px; box-shadow: var(--shadow); }
.bd-snooze-menu.open { display: block; }
.bd-snooze-opt { padding: 6px 10px; font-size: 11px; color: var(--text-soft); cursor: pointer; border-radius: 4px; transition: all 0.1s; }
.bd-snooze-opt:hover { background: var(--bg); color: var(--text); }

.bd-add-task { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.15s; margin-bottom: 8px; }
.bd-add-task:hover { border-color: var(--blue); background: rgba(59,130,246,.03); }
.bd-add-task .plus { color: var(--text-soft); font-size: 16px; }
.bd-add-task:hover .plus { color: var(--blue); }
.bd-add-task input { background: transparent; border: none; color: var(--text); font-family: inherit; font-size: 12px; outline: none; flex: 1; }

.bd-tag-high { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 1px 6px; border-radius: 3px; background: rgba(239,68,68,.15); color: var(--red); margin-left: 6px; }
.bd-source-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; padding: 1px 6px; border-radius: 3px; margin-left: 4px; }
.bd-source-tag.outlook { background: rgba(0,120,212,.12); color: #0078d4; }
.bd-source-tag.teams { background: rgba(98,100,167,.12); color: #6264a7; }

@media (max-width: 768px) { .bd-metrics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .bd-metrics { grid-template-columns: 1fr; } }

/* ─── DARK MODE OVERRIDES ─── */
[data-theme="dark"] thead th { background: #15171d; }
[data-theme="dark"] .login-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .login-screen { background: var(--bg); }
[data-theme="dark"] tbody tr:hover { background: #1f222b; }
[data-theme="dark"] .admin-section-header { background: #15171d; }
[data-theme="dark"] .audit-table thead th { background: #15171d; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background: var(--bg); color: var(--text); border-color: var(--border); }
[data-theme="dark"] .search-input { background-color: var(--bg); }
[data-theme="dark"] .theme-toggle { color: var(--text-soft); }
.theme-toggle { background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--text-soft); transition: color 0.15s; }
.theme-toggle:hover { color: var(--text); }

/* ─── CHAT BAR ─── */
.chat-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--surface); border-top: 1px solid var(--border); padding: 12px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; box-shadow: 0 -2px 8px rgba(0,0,0,0.06); }
.chat-bar-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.chat-bar input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: inherit; background: var(--bg); min-width: 0; }
.chat-bar input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.chat-bar button { padding: 11px 22px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; border: none; background: var(--blue); color: #fff; transition: background 0.12s; white-space: nowrap; }
.chat-bar button:hover { background: #1d4ed8; }
.chat-bar button:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-response { font-size: 12px; color: var(--text-mid); width: 100%; padding: 6px 0 0; line-height: 1.4; white-space: normal; word-wrap: break-word; }
.chat-response:empty { display: none; padding: 0; }
.chat-response.ok { color: var(--green); font-weight: 500; }
.chat-response.err { color: var(--red); }
.chat-response.thinking { color: var(--amber); }

/* ─── CLIENTES ─── */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.client-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s; cursor: pointer; }
.client-card:hover { box-shadow: var(--shadow-lg); }
.client-card-header { padding: 16px 18px 12px; border-bottom: 1px solid var(--border-light); }
.client-card-company { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.client-card-contact { font-size: 12px; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.client-card-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.client-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.client-badge.geo { background: var(--blue-light); color: var(--blue); }
.client-badge.sector { background: var(--purple-light); color: var(--purple); }
.client-badge.stage { background: var(--green-light); color: var(--green); }
.client-badge.lost { background: var(--red-light); color: var(--red); }
.client-card-body { padding: 14px 18px; }
.client-card-section { margin-bottom: 10px; }
.client-card-section:last-child { margin-bottom: 0; }
.client-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-soft); margin-bottom: 6px; }
.client-card-row { font-size: 12px; color: var(--text-mid); padding: 3px 0; display: flex; justify-content: space-between; align-items: center; }
.client-card-row .stage-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.client-card-footer { padding: 10px 18px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.client-card-footer .btn { font-size: 11px; }
.client-stat { font-size: 11px; color: var(--text-soft); }
.client-empty { text-align: center; padding: 60px 20px; color: var(--text-soft); font-size: 14px; }
.client-detail-modal { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.35); justify-content: center; align-items: center; }
.client-detail-modal.open { display: flex; }
.client-detail-content { background: var(--surface); border-radius: var(--radius); padding: 24px; width: 90vw; max-width: 640px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); }

/* ═══════ CONTROL DE AVANCE ═══════ */
.avance-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); margin-bottom:16px; overflow:hidden; box-shadow:var(--shadow); }
.avance-hdr { padding:16px 20px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; transition:background .15s; }
.avance-hdr:hover { background:var(--bg); }
.avance-hdr-info { flex:1; }
.avance-hdr-title { font-size:14px; font-weight:700; color:var(--text); }
.avance-hdr-sub { font-size:11px; color:var(--text-soft); margin-top:2px; }
.avance-hdr-right { text-align:right; margin-left:20px; }
.avance-hdr-pct { font-size:20px; font-weight:700; color:var(--text); }
.avance-hdr-label { font-size:10px; color:var(--text-soft); }
.avance-pbar { width:160px; height:6px; background:var(--border-light); border-radius:3px; overflow:hidden; margin-top:6px; }
.avance-pbar-fill { height:100%; background:var(--green); border-radius:3px; transition:width .3s ease; }
.avance-body { max-height:0; overflow:hidden; transition:max-height .35s ease; }
.avance-body.open { max-height:4000px; }
.avance-stage { border-bottom:1px solid var(--border-light); }
.avance-stage:last-child { border-bottom:none; }
.avance-stage-hdr { display:flex; align-items:center; justify-content:space-between; padding:12px 20px; cursor:pointer; }
.avance-stage-hdr:hover { background:var(--bg); }
.avance-stage-title { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--text); }
.avance-ind { width:22px; height:22px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; }
.avance-ind.done { background:var(--green); color:#fff; }
.avance-ind.curr { background:var(--blue); color:#fff; box-shadow:0 0 0 3px rgba(59,130,246,.25); }
.avance-ind.lock { background:var(--border-light); color:var(--text-soft); }
.avance-stage-count { font-size:11px; color:var(--text-soft); font-weight:500; white-space:nowrap; }
.avance-stage-body { max-height:0; overflow:hidden; transition:max-height .3s ease; padding:0 20px; }
.avance-stage-body.open { max-height:2000px; padding:0 20px 16px; }
.avance-gate { padding:10px 12px; background:var(--surface); border:1px solid var(--border); border-radius:6px; margin-bottom:8px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.avance-gate-left { display:flex; align-items:center; gap:8px; flex:1; min-width:200px; }
.avance-gate-check { width:20px; height:20px; border-radius:4px; border:2px solid var(--border); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.avance-gate-check.ok { background:var(--green); border-color:var(--green); color:#fff; }
.avance-gate-name { font-size:12px; font-weight:500; color:var(--text); }
.avance-gate-badge { font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; padding:2px 6px; border-radius:3px; flex-shrink:0; }
.avance-gate-badge.doc { background:rgba(59,130,246,.12); color:var(--blue); }
.avance-gate-badge.info { background:rgba(245,158,11,.12); color:#d97706; }
.avance-gate-right { display:flex; align-items:center; gap:8px; }
.avance-gate-input { width:220px; padding:6px 10px; border:1px solid var(--border); border-radius:6px; font-size:12px; background:var(--bg); color:var(--text); }
.avance-gate-input:focus { outline:2px solid var(--blue); border-color:transparent; }
.avance-gate-notes { width:100%; min-width:220px; padding:8px 10px; border:1px solid var(--border); border-radius:6px; font-size:12px; background:var(--bg); color:var(--text); font-family:inherit; resize:vertical; line-height:1.5; }
.avance-gate-notes:focus { outline:2px solid var(--blue); border-color:transparent; }
.avance-gate-badge.notes { background:rgba(139,92,246,.1); color:#7c3aed; }
.avance-gate.optional-gate { opacity:0.85; border-left:3px solid rgba(139,92,246,.3); padding-left:10px; }
.avance-gate.optional-gate .avance-gate-right { flex:1; min-width:0; }
.avance-gate.optional-gate .avance-gate-notes { width:100%; }
.avance-tpl-btn { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:6px; background:rgba(59,130,246,.08); color:var(--blue); text-decoration:none; font-size:11px; font-weight:500; cursor:pointer; border:none; white-space:nowrap; }
.avance-tpl-btn:hover { background:rgba(59,130,246,.16); }
.avance-locked { opacity:.45; pointer-events:none; }
.avance-complete-banner { padding:10px 14px; background:rgba(16,185,129,.08); border:1px solid rgba(16,185,129,.2); border-radius:6px; color:var(--green); font-size:12px; font-weight:600; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.avance-toast { position:fixed; top:20px; right:20px; background:var(--green); color:#fff; padding:12px 20px; border-radius:var(--radius); z-index:500; font-size:13px; font-weight:600; box-shadow:0 4px 12px rgba(0,0,0,.15); animation:slideIn .3s ease; }
@keyframes slideIn { from { transform:translateX(100px); opacity:0; } to { transform:translateX(0); opacity:1; } }
.avance-empty { text-align:center; padding:60px 20px; color:var(--text-soft); font-size:14px; }
.avance-meta { font-size:10px; color:var(--text-soft); margin-left:auto; white-space:nowrap; }
.avance-info-btn { display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; border-radius:50%; background:rgba(59,130,246,.1); color:var(--blue); font-size:10px; font-weight:700; cursor:help; border:none; flex-shrink:0; position:relative; }
.avance-info-btn:hover .avance-tooltip { display:block; }
.avance-tooltip { display:none; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:var(--text); color:var(--bg); padding:8px 12px; border-radius:6px; font-size:11px; font-weight:400; line-height:1.4; width:280px; z-index:200; box-shadow:0 4px 12px rgba(0,0,0,.2); pointer-events:none; text-align:left; }
.avance-tooltip::after { content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%); border:5px solid transparent; border-top-color:var(--text); }
.avance-drop-zone { border:2px dashed var(--border); border-radius:8px; padding:16px; text-align:center; cursor:pointer; transition:all .2s ease; background:var(--bg); min-height:60px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.avance-drop-zone:hover { border-color:var(--blue); background:rgba(59,130,246,.04); }
.avance-drop-zone.dragover { border-color:var(--blue); background:rgba(59,130,246,.08); border-style:solid; }
.avance-drop-zone .drop-icon { font-size:20px; opacity:.5; }
.avance-drop-zone .drop-text { font-size:11px; color:var(--text-soft); }
.avance-drop-zone .drop-actions { display:flex; gap:8px; align-items:center; }
.avance-uploading { display:flex; align-items:center; gap:8px; padding:8px 12px; background:rgba(59,130,246,.06); border-radius:6px; font-size:11px; color:var(--blue); }
.avance-uploading .upload-spinner { width:14px; height:14px; border:2px solid rgba(59,130,246,.2); border-top-color:var(--blue); border-radius:50%; animation:spin .6s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.avance-sp-link { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--blue); text-decoration:none; padding:4px 8px; border-radius:4px; background:rgba(59,130,246,.06); max-width:300px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.avance-sp-link:hover { background:rgba(59,130,246,.12); text-decoration:underline; }
.avance-upload-progress { width:100%; height:4px; background:var(--border); border-radius:2px; overflow:hidden; margin-top:4px; }
.avance-upload-progress-bar { height:100%; background:var(--blue); border-radius:2px; transition:width .2s ease; }

/* ═══════ RESPONSIVE: 768px — TABLET ═══════ */
@media (max-width: 768px) {
  .content { padding: 16px; padding-bottom: 70px; }
  .funnel { flex-wrap: wrap; }
  .timeline-track { flex-wrap: wrap; }
  .timeline-line { display: none; }
  .chat-bar { padding: 8px 12px; }

  /* Tabs: scroll horizontal oculto */
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; padding: 14px 16px; }

  /* Header */
  .header { padding: 0 16px; }
  .header-left { gap: 14px; }

  /* Search */
  .search-input { width: 100%; max-width: 300px; }

  /* Tables */
  .table-scroll { -webkit-overflow-scrolling: touch; }
  td, thead th { padding: 8px 10px; font-size: 11px; }
  .deal-company { font-size: 12px; }

  /* Modal */
  .modal { padding: 18px; width: 90vw; }

  /* KPI charts single column */
  .kpi-charts-grid { grid-template-columns: 1fr; }

  /* Calendar cells */
  .cal-cell { min-height: 80px; padding: 4px; }
  .cal-cell-num { font-size: 11px; width: 20px; height: 20px; }

  /* BD workflow: arreglar conflicto overflow/wrap */
  .bd-workflow { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bd-workflow::-webkit-scrollbar { display: none; }
  .bd-step { flex-shrink: 0; }

  /* BD header */
  .bd-header { flex-wrap: wrap; gap: 10px; }
  .bd-header-right { gap: 8px; }

  /* Client grid */
  .client-grid { grid-template-columns: 1fr 1fr; }
  .client-card-company { font-size: 14px; }

  /* Touch targets & iOS zoom prevention */
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 36px; }
}

/* ═══════ RESPONSIVE: 600px — TELÉFONO GRANDE ═══════ */
@media (max-width: 600px) {
  /* Header: stack and compress */
  .header { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .header-left { width: 100%; gap: 10px; }
  .logo { font-size: 16px; }
  .logo span { display: none; }
  .header-right { width: 100%; justify-content: flex-start; font-size: 10px; gap: 8px; }
  .sync-status { font-size: 9px; }

  /* Tabs smaller */
  .tab { padding: 12px 14px; font-size: 12px; }

  /* Search full width */
  .search-input { max-width: 100%; }

  /* KPI summary single column */
  .kpi-summary-row { grid-template-columns: 1fr; gap: 10px; }
  .kpi-summary-card { padding: 14px; }
  .kpi-s-value { font-size: 22px; }

  /* BD metrics 2 columns */
  .bd-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bd-metric { padding: 12px; }
  .bd-metric-val { font-size: 22px; }
  .bd-metric-label { font-size: 10px; }

  /* Form grid single column */
  .form-grid { grid-template-columns: 1fr; }

  /* Calendar tighter */
  .cal-cell { min-height: 70px; padding: 3px; }
  .cal-day-name { padding: 6px 0; font-size: 10px; }
  .cal-event { font-size: 9px; padding: 1px 4px; }
  .cal-sidebar { width: 100%; margin-bottom: 12px; }
  .cal-layout { flex-direction: column; }

  /* Modal */
  .modal { padding: 14px; width: 95vw; }
  .modal h3 { font-size: 14px; }

  /* Funnel stages wrap */
  .funnel-stage { min-width: 45%; }
  .funnel-arrow { width: 20px; font-size: 14px; }

  /* Analytics grid */
  .analytics-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }

  /* Section titles */
  .kpi-section-title { font-size: 14px; }

  /* KPI upload bar wrap */
  .kpi-upload-bar { flex-wrap: wrap; gap: 8px; }

  /* Client grid single column */
  .client-grid { grid-template-columns: 1fr; }
}

/* ═══════ RESPONSIVE: 480px — TELÉFONO PEQUEÑO ═══════ */
@media (max-width: 480px) {
  /* Content minimal padding */
  .content { padding: 12px 12px 70px; }

  /* Header tight */
  .header { padding: 8px 12px; }

  /* Tabs minimal */
  .tab { padding: 10px 12px; font-size: 11px; }

  /* KPI row single column */
  .kpi-row { grid-template-columns: 1fr; }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 22px; }
  .kpi-label { font-size: 10px; }

  /* BD metrics single column */
  .bd-metrics { grid-template-columns: 1fr; gap: 8px; }
  .bd-metric { padding: 10px; }
  .bd-metric-val { font-size: 20px; }

  /* BD workflow tight */
  .bd-workflow { padding: 10px 12px; gap: 4px; }
  .bd-step-num { width: 20px; height: 20px; font-size: 10px; }
  .bd-step-text { font-size: 11px; }

  /* BD cards */
  .bd-card { padding: 10px 12px; margin-bottom: 6px; }

  /* Tables very tight */
  td, thead th { padding: 6px 8px; font-size: 10px; }
  .deal-company { font-size: 11px; }

  /* Buttons */
  .btn { padding: 6px 12px; font-size: 11px; }
  .btn.sm { padding: 3px 8px; font-size: 10px; }

  /* Calendar minimal */
  .cal-cell { min-height: 60px; padding: 2px; }
  .cal-cell-num { font-size: 10px; width: 18px; height: 18px; }
  .cal-month-title { font-size: 14px; min-width: 120px; }

  /* Modal full width */
  .modal { padding: 12px; width: 100%; max-width: 100vw; border-radius: 12px 12px 0 0; max-height: 90vh; overflow-y: auto; }

  /* GH filters stack */
  .kpi-gh-filters { flex-direction: column; gap: 8px; }
  .kpi-gh-filter-label select { width: 100%; font-size: 11px; }

  /* Admin sections */
  .admin-section { margin-bottom: 12px; }
  .user-card { padding: 10px 12px; gap: 10px; }
  .user-card-avatar { width: 28px; height: 28px; font-size: 11px; }

  /* Audit table */
  .audit-table td, .audit-table th { padding: 6px 8px; font-size: 10px; }

  /* Filter pills */
  .filter-pill { padding: 4px 10px; font-size: 10px; }

  /* Login card */
  .login-card { padding: 28px 20px; max-width: 90vw; }
  .login-logo { font-size: 22px; }
  .login-btn { padding: 10px 24px; font-size: 13px; }

  /* Chat bar */
  .chat-bar button { padding: 8px 14px; font-size: 12px; }
  .chat-bar input { font-size: 14px; }
}
/* ─── Global Toast ─── */
.cardia-toast { position:fixed; top:20px; right:20px; padding:12px 20px; border-radius:var(--radius); z-index:600; font-size:13px; font-weight:600; box-shadow:0 4px 12px rgba(0,0,0,.15); animation:slideIn .3s ease; display:flex; align-items:center; gap:8px; max-width:400px; }
.cardia-toast.toast-ok { background:var(--green); color:#fff; }
.cardia-toast.toast-err { background:var(--red); color:#fff; }
.cardia-toast.toast-info { background:var(--blue); color:#fff; }
.cardia-toast.toast-warn { background:var(--amber); color:#fff; }
.cardia-toast.toast-out { animation:slideOut .3s ease forwards; }
@keyframes slideOut { to { transform:translateX(100px); opacity:0; } }
/* ─── Confirm Modal ─── */
.confirm-overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:550; display:flex; align-items:center; justify-content:center; animation:fadeIn .15s ease; }
@keyframes fadeIn { from { opacity:0; } }
.confirm-box { background:var(--surface); border-radius:var(--radius); padding:24px; max-width:400px; width:90%; box-shadow:var(--shadow-lg); }
.confirm-box h4 { font-size:15px; font-weight:600; margin-bottom:8px; }
.confirm-box p { font-size:13px; color:var(--text-mid); margin-bottom:20px; line-height:1.5; }
.confirm-actions { display:flex; gap:8px; justify-content:flex-end; }
/* ─── Loading Button ─── */
.btn.loading { pointer-events:none; opacity:.7; }
.btn.loading::after { content:''; display:inline-block; width:12px; height:12px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .5s linear infinite; margin-left:6px; vertical-align:middle; }
.btn.ghost.loading::after { border-color:rgba(0,0,0,.15); border-top-color:var(--text); }
/* ─── Inline Save Indicator ─── */
.save-flash { animation:savePulse .8s ease; }
@keyframes savePulse { 0%{box-shadow:0 0 0 0 rgba(22,163,74,.4)} 50%{box-shadow:0 0 0 3px rgba(22,163,74,.2)} 100%{box-shadow:none} }
