/* ====================================================================
   YUBIKEY MANAGEMENT — css/yubikeys.css
   ==================================================================== */
:root {
    --yk-accent: #7c5cfc;
    --yk-accent-glow: rgba(124, 92, 252, 0.25);
    --yk-healthy: #22c55e;
    --yk-caution: #eab308;
    --yk-warning: #f97316;
    --yk-danger: #ef4444;
    --yk-critical: #dc2626;
    --yk-never: #6b7280;
    --yk-disabled: #475569;
}

.yk-page { padding: 0; display: flex; flex-direction: column; gap: 20px; animation: ykFadeIn 0.4s ease; }
@keyframes ykFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ykRowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* Hero */
.yk-hero { position: relative; border-radius: 16px; overflow: hidden; padding: 32px 36px; border: 1px solid var(--border); }
.yk-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 10% 40%, rgba(124,92,252,0.12), transparent), radial-gradient(ellipse 60% 50% at 90% 30%, rgba(99,102,241,0.08), transparent), linear-gradient(135deg, var(--dark-800), var(--dark-700)); z-index: 0; }
.yk-hero-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.yk-hero-left { display: flex; align-items: center; gap: 20px; }
.yk-hero-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #7c5cfc, #6366f1); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(124,92,252,0.3); flex-shrink: 0; }
.yk-hero-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; margin: 0; }
.yk-hero-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.yk-hero-actions { display: flex; gap: 10px; }

/* Buttons */
.yk-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s ease; white-space: nowrap; }
.yk-btn-primary { background: linear-gradient(135deg, #7c5cfc, #6366f1); color: #fff; box-shadow: 0 4px 14px rgba(124,92,252,0.3); }
.yk-btn-primary:hover { box-shadow: 0 6px 20px rgba(124,92,252,0.45); transform: translateY(-1px); }
.yk-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.yk-btn-ghost { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); }
.yk-btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.yk-btn-send { background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; box-shadow: 0 4px 14px rgba(17,153,142,0.3); }
.yk-btn-send:hover { box-shadow: 0 6px 20px rgba(17,153,142,0.45); transform: translateY(-1px); }
.yk-btn-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.yk-btn-disable { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.yk-btn-disable:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.35); }
.yk-btn-enable { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.yk-btn-enable:hover { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.35); }

/* KPI Strip */
.yk-kpi-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.yk-kpi { background: var(--dark-700); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; transition: all 0.25s ease; position: relative; overflow: hidden; }
.yk-kpi::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.02), transparent); pointer-events: none; }
.yk-kpi:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.yk-kpi-clickable { cursor: pointer; }
.yk-kpi-active { border-color: var(--yk-accent); box-shadow: 0 0 0 2px var(--yk-accent-glow), var(--shadow-md); transform: translateY(-2px); }
.yk-kpi-warn { border-color: rgba(239,68,68,0.2); background: linear-gradient(135deg, rgba(239,68,68,0.05), var(--dark-700)); }
.yk-kpi-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yk-kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.yk-kpi-label { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }
.loading-pulse { animation: ykPulse 1.5s ease-in-out infinite; }
@keyframes ykPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.8; } }

/* Risk Distribution */
.yk-risk-bar-container { background: var(--dark-700); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.yk-risk-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.yk-risk-bar-title { font-size: 14px; font-weight: 600; }
.yk-risk-bar-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.yk-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.yk-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.yk-risk-bar { display: flex; height: 32px; border-radius: 8px; overflow: hidden; gap: 2px; }
.yk-risk-seg { display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; min-width: 4px; border-radius: 4px; }
.yk-risk-seg span { font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.yk-risk-seg:hover { filter: brightness(1.2); transform: scaleY(1.15); }
.yk-risk-healthy { background: var(--yk-healthy); }
.yk-risk-caution { background: var(--yk-caution); }
.yk-risk-warning { background: var(--yk-warning); }
.yk-risk-danger  { background: var(--yk-danger); }
.yk-risk-never   { background: var(--yk-never); }
.yk-risk-disabled { background: var(--yk-disabled); }

/* Activity Chart */
.yk-chart-card { background: var(--dark-700); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; }
.yk-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.yk-chart-header h3 { font-size: 14px; font-weight: 600; margin: 0; }
.yk-chart-controls { display: flex; gap: 4px; }
.yk-chart-btn { padding: 5px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--dark-600); color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.yk-chart-btn:hover { background: var(--dark-500); color: var(--text-primary); }
.yk-chart-btn.active { background: rgba(124,92,252,0.15); border-color: rgba(124,92,252,0.4); color: #a78bfa; }
.yk-chart-area { min-height: 180px; }

/* Filters */
.yk-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; background: var(--dark-700); border: 1px solid var(--border); border-radius: 14px; }
.yk-search-wrap { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.yk-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.yk-search { width: 100%; padding: 10px 14px 10px 42px; background: var(--dark-600); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 13px; outline: none; transition: all 0.2s ease; }
.yk-search:focus { border-color: var(--yk-accent); box-shadow: 0 0 0 3px var(--yk-accent-glow); }
.yk-search::placeholder { color: var(--text-muted); }
.yk-search-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-muted); font-weight: 500; }
.yk-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.yk-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--dark-600); color: var(--text-secondary); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.yk-pill:hover { background: var(--dark-500); color: var(--text-primary); }
.yk-pill.active { background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(99,102,241,0.1)); border-color: rgba(124,92,252,0.4); color: #a78bfa; }
.yk-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.yk-dot-healthy  { background: var(--yk-healthy); }
.yk-dot-warning  { background: var(--yk-warning); }
.yk-dot-danger   { background: var(--yk-danger); }
.yk-dot-critical { background: var(--yk-critical); box-shadow: 0 0 6px var(--yk-critical); }
.yk-dot-never    { background: var(--yk-never); }
.yk-dot-disabled { background: var(--yk-disabled); }
.yk-select { padding: 9px 32px 9px 14px; background: var(--dark-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 12px; font-weight: 500; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; }
.yk-select:focus { border-color: var(--yk-accent); }

/* Table */
.yk-table-wrap { border-radius: 14px; border: 1px solid var(--border); overflow: auto; background: var(--dark-700); max-height: 600px; }
.yk-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.yk-th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); background: var(--dark-800); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; cursor: pointer; user-select: none; white-space: nowrap; transition: color 0.2s; }
.yk-th:hover { color: var(--text-primary); }
.yk-th-num { text-align: center; }
.yk-th-status { width: 140px; }
.yk-sort-icon { font-size: 10px; color: var(--yk-accent); }
.yk-row { cursor: pointer; transition: background 0.15s ease; animation: ykRowIn 0.25s ease both; }
.yk-row:hover { background: rgba(255,255,255,0.03); }
.yk-row.yk-status-critical { background: rgba(220,38,38,0.04); }
.yk-row.yk-status-critical:hover { background: rgba(220,38,38,0.08); }
.yk-row.yk-status-danger { background: rgba(239,68,68,0.03); }
.yk-row.yk-status-danger:hover { background: rgba(239,68,68,0.06); }
.yk-row.yk-status-disabled { background: rgba(71,85,105,0.06); opacity: 0.7; }
.yk-row.yk-status-disabled:hover { background: rgba(71,85,105,0.12); opacity: 0.85; }
.yk-td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
.yk-num { text-align: center; font-variant-numeric: tabular-nums; }
.yk-loading-row, .yk-empty-row { text-align: center; padding: 48px 24px !important; color: var(--text-muted); }
.yk-empty-row { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Status Badge */
.yk-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
.yk-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.yk-status-badge.yk-status-healthy { background: rgba(34,197,94,0.12); color: #4ade80; }
.yk-status-badge.yk-status-healthy .yk-status-dot { background: var(--yk-healthy); box-shadow: 0 0 6px var(--yk-healthy); }
.yk-status-badge.yk-status-caution { background: rgba(234,179,8,0.12); color: #facc15; }
.yk-status-badge.yk-status-caution .yk-status-dot { background: var(--yk-caution); }
.yk-status-badge.yk-status-warning { background: rgba(249,115,22,0.12); color: #fb923c; }
.yk-status-badge.yk-status-warning .yk-status-dot { background: var(--yk-warning); box-shadow: 0 0 6px var(--yk-warning); }
.yk-status-badge.yk-status-danger { background: rgba(239,68,68,0.12); color: #f87171; }
.yk-status-badge.yk-status-danger .yk-status-dot { background: var(--yk-danger); box-shadow: 0 0 8px var(--yk-danger); }
.yk-status-badge.yk-status-critical { background: rgba(220,38,38,0.18); color: #fca5a5; animation: ykCriticalPulse 2s ease-in-out infinite; }
.yk-status-badge.yk-status-critical .yk-status-dot { background: var(--yk-critical); box-shadow: 0 0 10px var(--yk-critical); animation: ykDotPulse 1.5s ease-in-out infinite; }
.yk-status-badge.yk-status-never { background: rgba(107,114,128,0.12); color: #9ca3af; }
.yk-status-badge.yk-status-never .yk-status-dot { background: var(--yk-never); }
.yk-status-badge.yk-status-disabled { background: rgba(71,85,105,0.15); color: #94a3b8; }
.yk-status-badge.yk-status-disabled .yk-status-dot { background: var(--yk-disabled); }
@keyframes ykCriticalPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } 50% { box-shadow: 0 0 0 4px rgba(220,38,38,0.15); } }
@keyframes ykDotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }

/* Employee Cell */
.yk-employee-cell { display: flex; align-items: center; gap: 10px; }
.yk-avatar { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #7c5cfc, #6366f1); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.yk-avatar-disabled { background: linear-gradient(135deg, #475569, #64748b); opacity: 0.6; }
.yk-name { font-weight: 600; font-size: 13px; }
.yk-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.yk-unmapped { color: var(--text-muted); font-style: italic; font-weight: 400; }
.yk-email { font-size: 12px; color: var(--text-secondary); }
.yk-project-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; background: rgba(124,92,252,0.1); color: #a78bfa; border: 1px solid rgba(124,92,252,0.15); }

/* Days Badge & Mini Bar */
.yk-days-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; background: rgba(255,255,255,0.05); color: var(--text-secondary); }
.yk-days-warning { background: rgba(249,115,22,0.12); color: #fb923c; }
.yk-days-danger  { background: rgba(239,68,68,0.12); color: #f87171; }
.yk-days-critical { background: rgba(220,38,38,0.18); color: #fca5a5; font-weight: 800; }
.yk-mini-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 80px; }
.yk-mini-bar-wrap span { font-size: 12px; font-weight: 600; color: var(--text-secondary); min-width: 20px; }
.yk-mini-bar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--yk-accent), #818cf8); flex: 1; transition: width 0.3s ease; }

/* Pagination */
.yk-pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; flex-wrap: wrap; gap: 12px; }
.yk-pag-info { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.yk-pag-btns { display: flex; gap: 4px; }
.yk-pag-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--border); background: var(--dark-600); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; }
.yk-pag-btn:hover:not(:disabled) { background: var(--dark-500); color: var(--text-primary); }
.yk-pag-btn.active { background: var(--yk-accent); color: #fff; border-color: var(--yk-accent); }
.yk-pag-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.yk-pag-dots { padding: 0 6px; color: var(--text-muted); font-size: 14px; align-self: center; }

/* Drawer */
.yk-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.yk-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.yk-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 92vw; background: var(--dark-800); border-left: 1px solid var(--border); z-index: 9999; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,0.4); }
.yk-drawer.open { transform: translateX(0); }
.yk-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.yk-drawer-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.yk-drawer-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--dark-700); color: var(--text-secondary); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.yk-drawer-close:hover { background: var(--dark-600); color: var(--text-primary); }
.yk-drawer-body { flex: 1; overflow-y: auto; padding: 28px; }

/* Drawer Detail */
.yk-detail-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 24px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.yk-detail-status.yk-status-healthy { background: rgba(34,197,94,0.12); color: #4ade80; }
.yk-detail-status.yk-status-healthy .yk-status-dot { background: var(--yk-healthy); }
.yk-detail-status.yk-status-caution { background: rgba(234,179,8,0.12); color: #facc15; }
.yk-detail-status.yk-status-caution .yk-status-dot { background: var(--yk-caution); }
.yk-detail-status.yk-status-warning { background: rgba(249,115,22,0.12); color: #fb923c; }
.yk-detail-status.yk-status-warning .yk-status-dot { background: var(--yk-warning); }
.yk-detail-status.yk-status-danger { background: rgba(239,68,68,0.12); color: #f87171; }
.yk-detail-status.yk-status-danger .yk-status-dot { background: var(--yk-danger); }
.yk-detail-status.yk-status-critical { background: rgba(220,38,38,0.18); color: #fca5a5; }
.yk-detail-status.yk-status-critical .yk-status-dot { background: var(--yk-critical); box-shadow: 0 0 8px var(--yk-critical); }
.yk-detail-status.yk-status-never { background: rgba(107,114,128,0.12); color: #9ca3af; }
.yk-detail-status.yk-status-never .yk-status-dot { background: var(--yk-never); }
.yk-detail-status.yk-status-disabled { background: rgba(71,85,105,0.15); color: #94a3b8; }
.yk-detail-status.yk-status-disabled .yk-status-dot { background: var(--yk-disabled); }

/* Toggle Status Button in Drawer */
.yk-toggle-status-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 10px; }
.yk-toggle-status-wrap .yk-btn { padding: 8px 16px; font-size: 12px; }
.yk-toggle-hint { font-size: 11px; color: var(--text-muted); }

/* Key Status Tags */
.yk-key-status-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.yk-key-active-tag { background: rgba(34,197,94,0.12); color: #4ade80; }
.yk-key-disabled-tag { background: rgba(71,85,105,0.15); color: #94a3b8; }

/* Drawer Info Rows */
.yk-drawer-info { margin-bottom: 24px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.yk-drawer-info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.yk-drawer-info-row:last-child { border-bottom: none; }
.yk-drawer-info-row:hover { background: rgba(255,255,255,0.02); }
.yk-drawer-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; flex-shrink: 0; }
.yk-drawer-val { font-size: 13px; color: var(--text-primary); font-weight: 500; text-align: right; word-break: break-all; }
.yk-drawer-mono { font-size: 12px; opacity: 0.8; }

.yk-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.yk-detail-item label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.yk-detail-item span { font-size: 13px; font-weight: 500; word-break: break-all; }

.yk-detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.yk-dstat { text-align: center; padding: 16px 8px; border-radius: 12px; background: var(--dark-700); border: 1px solid var(--border); }
.yk-dstat-val { font-size: 24px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.yk-dstat-of { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.yk-dstat-label { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }

.yk-detail-section { margin-bottom: 28px; }
.yk-detail-section h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }

.yk-cal { display: flex; gap: 6px; flex-wrap: wrap; }
.yk-cal-month { display: flex; flex-direction: column; gap: 4px; }
.yk-cal-month-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 4px; }
.yk-cal-days { display: flex; flex-wrap: wrap; gap: 3px; max-width: 120px; }
.yk-cal-day { width: 12px; height: 12px; border-radius: 3px; background: rgba(255,255,255,0.04); transition: all 0.15s ease; }
.yk-cal-day.yk-cal-used { background: var(--yk-accent); box-shadow: 0 0 4px var(--yk-accent-glow); }
.yk-cal-day.yk-cal-today { outline: 1.5px solid var(--yk-accent); outline-offset: 1px; }
.yk-cal-day:hover { transform: scale(1.5); z-index: 2; }

.yk-activity-list { max-height: 300px; overflow-y: auto; }
.yk-activity-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.yk-activity-item:last-child { border-bottom: none; }
.yk-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yk-accent); flex-shrink: 0; }
.yk-activity-info { display: flex; justify-content: space-between; flex: 1; }
.yk-activity-date { font-size: 13px; font-weight: 500; }
.yk-activity-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* History Timeline */
.yk-hist-list { max-height: 400px; overflow-y: auto; }
.yk-hist-month { margin-bottom: 8px; }
.yk-hist-month-label { font-size: 11px; font-weight: 700; color: var(--yk-accent); text-transform: uppercase; letter-spacing: 0.6px; padding: 8px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.yk-hist-day { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 12px; border-radius: 8px; transition: background 0.15s; }
.yk-hist-day:hover { background: rgba(255,255,255,0.03); }
.yk-hist-day-left { display: flex; align-items: center; gap: 10px; }
.yk-hist-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yk-accent); flex-shrink: 0; }
.yk-hist-dayname { font-size: 12px; color: var(--text-muted); font-weight: 600; min-width: 30px; }
.yk-hist-daynum { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.yk-hist-user { font-size: 11px; color: var(--yk-accent); background: rgba(124,92,252,0.1); padding: 2px 8px; border-radius: 4px; font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yk-hist-day-right { display: flex; align-items: center; gap: 12px; }
.yk-hist-time { font-size: 11px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.yk-hist-count { font-size: 11px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; font-weight: 600; }

/* ─── Email Alert Panel ─────────────────────────────────────────────── */
.yk-email-panel { width: 480px; }
.yk-email-section { padding: 20px; background: var(--dark-700); border: 1px solid var(--border); border-radius: 14px; }
.yk-email-section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.yk-email-desc { font-size: 12px; color: var(--text-muted); margin: 0 0 16px 0; line-height: 1.6; }

.yk-email-toggle-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* Toggle Switch */
.yk-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.yk-toggle input { opacity: 0; width: 0; height: 0; }
.yk-toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--dark-500); border: 1px solid var(--border); border-radius: 24px; transition: all 0.3s ease; }
.yk-toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 2px; bottom: 2px; background: var(--text-muted); border-radius: 50%; transition: all 0.3s ease; }
.yk-toggle input:checked + .yk-toggle-slider { background: rgba(124,92,252,0.3); border-color: rgba(124,92,252,0.5); }
.yk-toggle input:checked + .yk-toggle-slider::before { transform: translateX(20px); background: var(--yk-accent); box-shadow: 0 0 8px var(--yk-accent-glow); }

.yk-email-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.yk-email-field { display: flex; flex-direction: column; gap: 6px; }
.yk-email-field label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.yk-input { padding: 10px 14px; background: var(--dark-600); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 13px; outline: none; transition: all 0.2s ease; font-family: inherit; }
.yk-input:focus { border-color: var(--yk-accent); box-shadow: 0 0 0 3px var(--yk-accent-glow); }
.yk-input::placeholder { color: var(--text-muted); }

.yk-email-actions { display: flex; gap: 10px; }
.yk-email-actions .yk-btn { flex: 1; justify-content: center; }

.yk-email-last-info { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.yk-email-last-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.yk-email-last-row:last-child { border-bottom: none; }
.yk-email-last-row span:first-child { color: var(--text-muted); font-weight: 600; }
.yk-email-last-row span:last-child { color: var(--text-primary); font-weight: 500; }

/* Responsive */
@media (max-width: 1400px) { .yk-kpi-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .yk-kpi-strip { grid-template-columns: repeat(2, 1fr); } .yk-hero { padding: 24px 20px; } .yk-hero-title { font-size: 20px; } .yk-filters { flex-direction: column; align-items: stretch; } .yk-search-wrap { max-width: none; } .yk-filter-pills { overflow-x: auto; flex-wrap: nowrap; } .yk-detail-grid { grid-template-columns: 1fr; } .yk-detail-stats { grid-template-columns: repeat(2, 1fr); } .yk-email-panel { width: 100vw; max-width: 100vw; } }
@media (max-width: 600px) { .yk-kpi-strip { grid-template-columns: 1fr; } .yk-hero-content { flex-direction: column; align-items: flex-start; } .yk-drawer { width: 100vw; max-width: 100vw; } .yk-email-panel { width: 100vw; max-width: 100vw; } }