/* =====================================================================
 * 2026-11 redesign: modern, softer, more colourful.
 * Loaded after app.css and overrides it; app.css keeps the layout basics.
 * ===================================================================== */
:root {
    --indigo: #5B4BF0;
    --indigo-2: #4A3AE0;
    --violet: #8B5CF6;
    --indigo-soft: #EFEDFE;
    --paper: #F4F5FB;
    --rule: #E7E8F2;
    --rule-soft: #F0F1F7;
    --grad: linear-gradient(135deg, #6D5DF6 0%, #8B5CF6 55%, #C084FC 100%);
    --grad-deep: linear-gradient(135deg, #312E81 0%, #4C1D95 55%, #6D28D9 100%);
    --r-lg: 20px;
    --r-md: 14px;
    --shadow-sm: 0 1px 2px rgba(30,27,75,.05), 0 2px 8px rgba(30,27,75,.04);
    --shadow-md: 0 8px 24px rgba(30,27,75,.08);
    --shadow-lg: 0 20px 48px rgba(30,27,75,.14);
}
html, body { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; }

/* ---------- Floating sidebar ---------- */
/* Layout reserves 284px; the visible card is 260px with a 12px gap all round. */
.ec-drawer.mud-drawer {
    margin: 12px; width: 260px !important; height: calc(100vh - 24px) !important; border-radius: 22px !important;
    background: linear-gradient(180deg, #1B1640 0%, #120F2E 100%) !important;
    box-shadow: 0 18px 40px rgba(18,15,46,.28);
}
.ec-brand { padding: 1.4rem 1.3rem 1.6rem; font-size: 1.08rem; }
.ec-brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); box-shadow: 0 6px 18px rgba(139,92,246,.55); }
.ec-brand-mark .mud-icon-root { color: #fff; font-size: 1.25rem; }
.ec-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.ec-brand-sub { font-size: .7rem; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: .02em; }
.ec-nav-link { color: rgba(255,255,255,.66) !important; border-radius: 12px !important; }
.ec-nav-link .mud-nav-link { padding: .68rem .9rem !important; border-radius: 12px !important; }
.ec-nav-link .mud-nav-link.active {
    background: var(--grad) !important; box-shadow: 0 8px 20px rgba(109,93,246,.40) !important; color: #fff !important;
}
.ec-nav-foot { margin: auto .9rem 1rem; padding: 1rem; border-radius: 16px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.45; }
.ec-nav-foot b { color: #fff; display: block; font-size: .85rem; margin-bottom: .15rem; }

/* ---------- Top bar floats over the page ---------- */
.ec-topbar { background: rgba(244,245,251,.75) !important; border-bottom: 0 !important; }
.ec-main.mud-main-content { padding-top: calc(var(--mud-appbar-height) + 1rem) !important; }

/* ---------- Type, buttons, inputs ---------- */
.ec-page-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; }
.mud-button-root { border-radius: 12px !important; }
.mud-button-filled.mud-button-filled-primary { background: var(--grad) !important; box-shadow: 0 6px 16px rgba(109,93,246,.32) !important; }
.mud-button-filled.mud-button-filled-primary:hover { background: var(--grad) !important; filter: brightness(1.06); box-shadow: 0 10px 22px rgba(109,93,246,.42) !important; }
.mud-button-filled.mud-button-filled-primary:disabled,
.mud-button-filled.mud-button-filled-primary.mud-button-disabled { background: #E5E7F0 !important; color: #9AA3B5 !important; box-shadow: none !important; filter: none; }
.mud-input-outlined-border { border-radius: 12px !important; }
.ec-panel, .ec-kpi, .ec-rec-group { border-color: transparent; box-shadow: var(--shadow-sm); }

/* ---------- KPI cards: gradient icon tiles ---------- */
.ec-kpi::after { display: none; }
.ec-kpi { padding: 1.3rem 1.35rem; }
.ec-kpi-icon { width: 46px; height: 46px; border-radius: 14px; }
.ec-kpi-icon.i-indigo { background: linear-gradient(135deg, #6D5DF6, #8B5CF6); box-shadow: 0 8px 18px rgba(109,93,246,.35); }
.ec-kpi-icon.i-green { background: linear-gradient(135deg, #10B981, #34D399); box-shadow: 0 8px 18px rgba(16,185,129,.30); }
.ec-kpi-icon.i-red { background: linear-gradient(135deg, #F43F5E, #FB7185); box-shadow: 0 8px 18px rgba(244,63,94,.30); }
.ec-kpi-icon.i-slate { background: linear-gradient(135deg, #0EA5E9, #38BDF8); box-shadow: 0 8px 18px rgba(14,165,233,.30); }
.ec-kpi-icon .mud-icon-root { color: #fff !important; }
.ec-kpi-value { font-weight: 800; font-size: 2.1rem; }

/* ---------- Dashboard welcome banner ---------- */
.ec-hero {
    position: relative; overflow: hidden; border-radius: 24px; padding: 1.8rem 2rem; margin-bottom: 1.4rem;
    background: var(--grad-deep); color: #fff; box-shadow: 0 18px 40px rgba(76,29,149,.25);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.ec-hero::before, .ec-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ec-hero::before { width: 340px; height: 340px; right: -90px; top: -160px; background: radial-gradient(circle, rgba(192,132,252,.55), transparent 65%); }
.ec-hero::after { width: 280px; height: 280px; right: 240px; bottom: -190px; background: radial-gradient(circle, rgba(56,189,248,.35), transparent 65%); }
.ec-hero > * { position: relative; z-index: 1; }
.ec-hero-hello { font-size: .9rem; color: rgba(255,255,255,.72); font-weight: 500; }
.ec-hero-title { margin: .2rem 0 .35rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.ec-hero-text { color: rgba(255,255,255,.80); max-width: 52ch; margin: 0; }
.ec-hero-stats { display: flex; gap: .75rem; flex-wrap: wrap; }
.ec-hero-stat { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); border-radius: 16px; padding: .8rem 1.1rem; min-width: 112px; }
.ec-hero-stat b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.ec-hero-stat span { font-size: .78rem; color: rgba(255,255,255,.78); }
.ec-hero-live { display: inline-flex; align-items: center; gap: .4rem; }
.ec-hero-live i { width: 8px; height: 8px; border-radius: 50%; background: #FB7185; box-shadow: 0 0 0 4px rgba(244,63,94,.25); animation: ec-rec 1.4s ease-in-out infinite; }

/* ---------- Card grids (Devices, Employees) ---------- */
.ec-card-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ec-card-toolbar .ec-search { background: #fff; border-radius: 12px; }
.ec-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.ec-card {
    background: var(--surface); border-radius: var(--r-lg); padding: 1.2rem 1.25rem 1.05rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .9rem; transition: transform .15s ease, box-shadow .15s ease; min-width: 0;
}
.ec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ec-card-head { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.ec-card-head-text { min-width: 0; flex: 1; }
.ec-card-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-card-sub { font-size: .8rem; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-card-avatar { position: relative; width: 48px; height: 48px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 14px rgba(30,27,75,.18); }
.ec-presence { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; background: #CBD5E1; }
.ec-presence.on { background: #10B981; }
.ec-presence.away { background: #F59E0B; }
.ec-presence.rec { background: #F43F5E; animation: ec-rec 1.4s ease-in-out infinite; }
.ec-presence.view { background: var(--indigo); }
.ec-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.ec-fact { background: var(--paper); border-radius: 12px; padding: .55rem .7rem; min-width: 0; }
.ec-fact-wide { grid-column: 1 / -1; }
.ec-fact-value.ec-upd { overflow: visible; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .85rem; white-space: normal; }
.ec-upd.ok { color: #15803D; }
.ec-upd.wait { color: #B45309; }
.ec-upd.bad { color: #E11D48; }
.ec-fact-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-2); font-weight: 700; }
.ec-fact-value { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-card-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .2rem; align-items: center; }
.ec-card-actions .mud-button-root { flex: 1 1 auto; }
.ec-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; white-space: nowrap; }
.ec-badge.on { background: #E7F8F1; color: #0E9F6E; }
.ec-badge.rec { background: #FFE8EC; color: #E11D48; }
.ec-badge.off { background: #EEF0F5; color: #64748B; }
.ec-badge.away { background: #FEF3C7; color: #B45309; }
.ec-badge.view { background: var(--indigo-soft); color: var(--indigo); }
.ec-badge.warn { background: #FFF4E0; color: #B45309; }
.ec-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ec-card-empty { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ---------- Per-employee policy chips + settings block ---------- */
.ec-policy-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ec-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; }
.ec-chip .mud-icon-root { font-size: .95rem; }
.ec-chip.blue { background: #E6F1FE; color: #1D6FD8; }
.ec-chip.violet { background: var(--indigo-soft); color: var(--indigo); }
.ec-chip.green { background: #E7F8F1; color: #0E9F6E; }
.ec-chip.grey { background: #EEF0F5; color: #64748B; }
.ec-chip.red { background: #FDECEC; color: #D92D20; }
.ec-chip.amber { background: #FEF3E2; color: #B45309; }
.ec-chip-sm { margin-left: .4rem; padding: .12rem .45rem; font-size: .7rem; vertical-align: middle; }
.ec-settings-block { margin-top: 1.1rem; padding: 1rem 1rem .6rem; border-radius: 14px; background: var(--paper); }
.ec-settings-title { font-weight: 700; margin-bottom: .6rem; }
.ec-settings-note { font-size: .78rem; color: var(--slate); margin: .2rem 0 .3rem; }

/* ---------- Activity page date filter: one row ---------- */
.ec-date-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.ec-date-filters .ec-date-field { flex: 1 1 200px; max-width: 280px; }
.ec-date-filters .mud-input-control { margin-top: 0 !important; }

/* ---------- Screenshot tiles: 10 per page = two even rows of 5 ---------- */
.ec-shot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.ec-shot {
    all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .15rem;
    background: var(--paper); border-radius: 14px; padding: .4rem .4rem .55rem; transition: transform .12s ease, box-shadow .12s ease;
}
.ec-shot:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #fff; }
.ec-shot:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.ec-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; background: #E4E6F0; }
.ec-shot-time { font-size: .8rem; font-weight: 700; padding: 0 .2rem; margin-top: .25rem; }
.ec-shot-date { font-size: .72rem; color: var(--slate); padding: 0 .2rem; }
@media (max-width: 1280px) { .ec-shot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ec-shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ec-shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Screenshot pager ---------- */
.ec-pager { display: flex; justify-content: center; margin-top: 1.1rem; overflow-x: auto; }
.ec-pager .mud-pagination-item .mud-button-root { border-radius: 10px !important; min-width: 36px; }

/* ---------- Recording groups: rounder avatar ---------- */
.ec-avatar-lg { border-radius: 16px; }
.ec-rec-group-head { background: linear-gradient(180deg, #FBFAFF, #fff); }
.ec-rec-group-link { cursor: pointer; transition: background .15s; }
.ec-rec-group-link:hover { background: #F3F1FF; }
.ec-rec-group-link:hover .ec-rec-group-name { color: var(--indigo); text-decoration: underline; }
.ec-rec-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem .25rem 0; }

/* ---------- Sign-in: split layout ---------- */
.ec-auth-shell { padding: 0 !important; display: block !important; background: var(--paper) !important; }
.ec-auth-split { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; width: 100%; }
.ec-auth-art { position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.ec-auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(192,132,252,.55), transparent 65%); }
.ec-auth-art::after { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.35), transparent 65%); }
.ec-auth-art > * { position: relative; z-index: 1; }
.ec-auth-art .ec-auth-brand { color: #fff; margin: 0; }
.ec-auth-art h2 { font-size: 2.3rem; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; margin: 0 0 .8rem; max-width: 17ch; }
.ec-auth-art p { color: rgba(255,255,255,.80); max-width: 44ch; margin: 0; }
.ec-auth-points { display: grid; gap: .7rem; margin-top: 2rem; }
.ec-auth-point { display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: .75rem .9rem; max-width: 380px; font-weight: 600; font-size: .92rem; }
.ec-auth-point .mud-icon-root { color: #C4B5FD; }
.ec-auth-side { display: grid; place-items: center; padding: 2rem 1.5rem; }
.ec-auth-card { box-shadow: none; background: transparent; padding: 0; max-width: 380px; }
.ec-auth-form input { border-radius: 12px; padding: .8rem .9rem; background: #fff; }
.ec-auth-form button { border-radius: 12px; background: var(--grad); box-shadow: 0 10px 24px rgba(109,93,246,.38); }
.ec-auth-form button:hover { background: var(--grad); filter: brightness(1.06); }

@media (max-width: 900px) {
    .ec-auth-split { grid-template-columns: 1fr; }
    .ec-auth-art { padding: 2rem 1.5rem; }
    .ec-auth-art h2 { font-size: 1.7rem; }
    .ec-auth-points { display: none; }
}
@media (max-width: 959.98px) {
    .ec-drawer.mud-drawer { margin: 0; height: 100vh !important; border-radius: 0 22px 22px 0 !important; }
}
@media (max-width: 600px) {
    .ec-hero { padding: 1.4rem 1.25rem; border-radius: 20px; }
    .ec-hero-title { font-size: 1.5rem; }
    .ec-card-grid { grid-template-columns: minmax(0, 1fr); }
    .ec-page-title { font-size: 1.5rem; }
    .ec-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .ec-kpi { padding: 1rem; }
    .ec-kpi-icon { width: 38px; height: 38px; border-radius: 12px; margin-bottom: .4rem; }
    .ec-kpi-value { font-size: 1.6rem; }
    .ec-hero-stat { min-width: 0; flex: 1 1 calc(50% - .75rem); }
}

/* =====================================================================
 * 2026-11-10 polish: grouped navigation, breadcrumb top bar, tables.
 * ===================================================================== */
.ec-nav-section { margin: 1.1rem .9rem .35rem; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); }
.ec-nav-scroll > .ec-nav-section:first-child { margin-top: .2rem; }
.ec-nav-link .mud-nav-link { padding: .58rem .9rem !important; }
.ec-nav-foot { margin: auto .8rem .9rem; padding: 0; background: none; display: flex; flex-direction: column; gap: .6rem; }
.ec-nav-download { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 14px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none; transition: background .15s; }
.ec-nav-download:hover { background: rgba(255,255,255,.11); }
.ec-nav-download-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); flex: 0 0 auto; }
.ec-nav-download-icon .mud-icon-root { color: #fff; }
.ec-nav-download-text { display: flex; flex-direction: column; line-height: 1.25; }
.ec-nav-download-text b { font-size: .84rem; }
.ec-nav-download-text small { font-size: .7rem; color: rgba(255,255,255,.55); }
.ec-nav-status { display: flex; align-items: center; gap: .45rem; padding: 0 .4rem; font-size: .72rem; color: rgba(255,255,255,.5); }
.ec-nav-status i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }

.ec-crumb { display: flex; align-items: center; gap: .3rem; margin-left: .35rem; min-width: 0; font-size: .9rem; }
.ec-crumb-section { color: #8A90A6; font-weight: 500; }
.ec-crumb-sep { color: #B6BACB; }
.ec-crumb-page { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-topbar-date { color: #8A90A6; font-size: .82rem; margin-right: .9rem; }

/* Consistent data tables */
.ec-table .mud-table-head .mud-table-cell { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A90A6; background: #FAFAFE; }
.ec-table .mud-table-row:hover .mud-table-cell { background: #FAF9FF; }
.ec-user-cell { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.ec-user-cell .ec-person-name { display: flex; align-items: center; gap: .4rem; }
.ec-you { font-size: .66rem; font-weight: 700; color: var(--indigo); background: var(--indigo-soft); padding: .05rem .4rem; border-radius: 999px; }
.ec-status-dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; }
.ec-status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #10B981; }
.ec-status-dot.off { color: #8A90A6; }
.ec-status-dot.off i { background: #C3C7D4; }
.ec-row-actions { display: flex; justify-content: flex-end; gap: .15rem; }
.ec-chip.role-owner { background: #EFE9FF; color: #6D28D9; }
.ec-chip.role-admin { background: #E6F1FE; color: #1D6FD8; }
.ec-chip.role-supervisor { background: #E7F8F1; color: #0E9F6E; }
.ec-chip.role-viewer { background: #EEF0F5; color: #64748B; }

/* Device page summary strip */
.ec-device-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.ec-device-strip > div { background: #fff; border-radius: 16px; padding: .85rem 1rem; box-shadow: var(--shadow-sm); min-width: 0; }
.ec-device-strip > div > span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A90A6; margin-bottom: .2rem; }
.ec-device-strip > div > b { display: flex; align-items: center; min-height: 1.5rem; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 960px) {
    .ec-device-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ec-kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .ec-kpis.three { grid-template-columns: minmax(0, 1fr); }
}
.ec-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
@media (max-width: 700px) { .ec-form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Phones: table rows become compact cards instead of one "label: value" line per column. */
@media (max-width: 599.98px) {
    .ec-table-cards .mud-table-container { overflow: visible; }
    .ec-table-cards .mud-table-row { display: flex !important; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--rule); }
    .ec-table-cards .mud-table-cell { display: block !important; padding: 0 !important; border: 0 !important; text-align: left !important; width: auto !important; }
    .ec-table-cards .mud-table-cell::before { display: none !important; }
    .ec-table-cards .mud-table-cell:first-child { flex: 1 1 100%; }
    .ec-table-cards .mud-table-cell:last-child { margin-left: auto; }
    .ec-table-cards .ec-cell-wrap { flex: 1 1 100%; }
}

/* Device page: activity list */
.ec-activity { display: flex; flex-direction: column; }
.ec-activity-day { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A90A6; margin: .9rem 0 .3rem; }
.ec-activity-day:first-child { margin-top: 0; }
.ec-activity-row { display: grid; grid-template-columns: 72px 32px minmax(0, 1fr); gap: .75rem; align-items: center; padding: .55rem .25rem; border-bottom: 1px solid var(--rule-soft); }
.ec-activity-row:last-child { border-bottom: 0; }
.ec-activity-time { font-size: .8rem; color: #8A90A6; font-variant-numeric: tabular-nums; }
.ec-activity-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.ec-activity-icon.web { background: #E6F1FE; color: #1D6FD8; }
.ec-activity-icon.app { background: var(--indigo-soft); color: var(--indigo); }
.ec-activity-main { min-width: 0; }
.ec-activity-title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-activity-sub { font-size: .78rem; color: #8A90A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-activity-sub a { color: var(--indigo); text-decoration: none; }
.ec-activity-count { margin-left: .4rem; background: #EEF0F5; color: #64748B; border-radius: 999px; padding: 0 .4rem; font-size: .7rem; font-weight: 700; }
@media (max-width: 600px) { .ec-activity-row { grid-template-columns: 58px 28px minmax(0, 1fr); gap: .5rem; } }
