/* ===================== SyncTrack console — light theme ===================== */
:root {
    --bg: #eef1f7; --bg-2: #f4f6fb;
    --surface: #ffffff; --surface-2: #f6f8fc; --surface-3: #eef1f8;
    --border: #e3e8f2; --border-2: #d5dce9;
    --text: #1c2434; --text-2: #333e52; --muted: #64748b; --faint: #94a3b8;
    --danger: #e04a43;
    /* accent — overridden live by the theme-color switcher */
    --accent: #7b6cf6; --accent-2: #5b4fe0; --accent-text: #5b4fe0; --accent-soft: rgba(123,108,246,.22);
}

html, body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { margin: 0; background: var(--bg-2); color: var(--text); }

/* ===================== Sign-in ===================== */
.lg-page {
    min-height: 100vh; box-sizing: border-box; padding: 24px;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(1100px 560px at 14% 8%, rgba(123,108,246,.10) 0%, rgba(0,0,0,0) 60%),
        radial-gradient(1000px 700px at 92% 96%, rgba(59,110,232,.08) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(160deg, #f2f4fb 0%, #e9edf6 100%);
}
.lg-card {
    width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px;
    padding: 44px 40px; border: 1px solid var(--border);
    box-shadow: 0 20px 55px rgba(16,24,40,.12);
}
.lg-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 28px; }
.lg-badge {
    width: 54px; height: 54px; border-radius: 16px; flex: none; display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px var(--accent-soft);
}
.lg-badge svg { width: 28px; height: 28px; color: #fff; }
.lg-brandtext { display: flex; flex-direction: column; line-height: 1.15; }
.lg-name { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.lg-tag { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lg-title { margin: 0; text-align: center; font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.lg-sub { margin: 6px 0 26px; text-align: center; font-size: 14px; color: var(--muted); }
.lg-error { background: rgba(224,74,67,.08); color: #c53a33; border: 1px solid rgba(224,74,67,.35); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; text-align: center; }
.lg-form { display: flex; flex-direction: column; }
.lg-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 7px 2px; }
.lg-field { position: relative; margin-bottom: 18px; }
.lg-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--faint); pointer-events: none; }
.lg-input {
    width: 100%; height: 52px; box-sizing: border-box; padding: 0 16px 0 44px;
    border: 1.5px solid var(--border-2); border-radius: 13px; background: #fff;
    font-size: 15px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.lg-input::placeholder { color: var(--faint); }
.lg-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lg-btn {
    height: 52px; margin-top: 6px; border: none; border-radius: 13px; cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    font-size: 15.5px; font-weight: 700; box-shadow: 0 12px 26px var(--accent-soft);
    transition: transform .06s, filter .15s;
}
.lg-btn:hover { filter: brightness(1.08); }
.lg-btn:active { transform: translateY(1px); }
.lg-foot { margin: 22px 0 0; text-align: center; font-size: 12px; color: var(--faint); }
@media (max-width: 480px) { .lg-card { padding: 34px 24px; border-radius: 18px; } }

/* ===================== App shell + top navbar (Keka-style) ===================== */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg-2); }
.app-top {
    position: sticky; top: 0; z-index: 100; box-sizing: border-box;
    display: flex; align-items: center; gap: 22px;
    height: 62px; padding: 0 26px; color: rgba(255,255,255,.85);
    background: linear-gradient(90deg, var(--accent-2) 0%, var(--accent) 100%);
    box-shadow: 0 4px 14px rgba(16,24,40,.18);
}
.top-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.side-badge { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.side-badge svg { width: 20px; height: 20px; color: #fff; }
.side-name { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.01em; }

.top-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-nav::-webkit-scrollbar { display: none; }
.nav-item { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; color: rgba(255,255,255,.78); text-decoration: none; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: background .14s, color .14s; }
.nav-item svg { width: 17px; height: 17px; flex: none; color: rgba(255,255,255,.65); transition: color .14s; }
.nav-item:hover { background: rgba(255,255,255,.14); color: #fff; }
.nav-item:hover svg { color: #fff; }
.nav-item.active { background: rgba(255,255,255,.22); color: #fff; }
.nav-item.active svg { color: #fff; }

.top-right { display: flex; align-items: center; gap: 16px; flex: none; margin-left: auto; }
.side-swatches { display: flex; gap: 7px; }
.sw { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); cursor: pointer; padding: 0; outline: none; transition: transform .1s, border-color .12s; }
.sw:hover { transform: scale(1.15); }
.sw:focus-visible { border-color: #fff; }
.sw-purple { background: #7b6cf6; } .sw-blue { background: #3b82f6; } .sw-pink { background: #ec4899; } .sw-green { background: #22c55e; } .sw-orange { background: #f59e0b; }

.top-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.side-avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.22); color: #fff; font-weight: 700; font-size: 13px; }
.side-username { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.side-logout { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 9px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .14s, color .14s, border-color .14s; }
.side-logout svg { width: 15px; height: 15px; }
.side-logout:hover { background: rgba(255,255,255,.9); border-color: #fff; color: var(--accent-2); }

.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--bg-2); }
.app-content { padding: 30px 38px; flex: 1; color: var(--text-2); }
.monitor-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(123,108,246,.12); color: var(--accent-text); border-bottom: 1px solid var(--border); padding: 12px 38px; font-size: 14px; }
.monitor-exit { background: transparent; border: 1px solid var(--accent); color: var(--accent-text); border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.monitor-exit:hover { background: var(--accent); color: #fff; }

@media (max-width: 1000px) {
    .side-username, .side-swatches { display: none; }
    .app-top { gap: 14px; padding: 0 16px; }
}
@media (max-width: 720px) {
    .nav-item span { display: none; }
    .nav-item { padding: 10px; }
    .side-name { display: none; }
    .side-logout span { display: none; }
    .app-content { padding: 20px 16px; }
    .monitor-banner { padding: 12px 16px; }
}

/* ===================== Content: headings, tables, cards ===================== */
.app-content .mud-typography-h4 { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; margin-bottom: 4px; }
.app-content .mud-typography-h5 { font-size: 20px; font-weight: 800; color: var(--text); }
.app-content .mud-typography-h6 { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }
.app-content .mud-typography-body2, .app-content .mud-typography-body1, .app-content .mud-typography-caption { color: var(--muted) !important; }

.app-content .mud-paper { background: var(--surface) !important; border-radius: 15px !important; border: 1px solid var(--border) !important; box-shadow: 0 4px 16px rgba(16,24,40,.06) !important; color: var(--text-2); }

/* table.st-table = plain-HTML twin of MudTable styling (used where rows need an onclick, e.g. History). */
.app-content .mud-table, .app-content table.st-table { background: var(--surface) !important; border-radius: 15px !important; border: 1px solid var(--border) !important; overflow: hidden; box-shadow: 0 4px 16px rgba(16,24,40,.06) !important; }
.app-content table.st-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.app-content .mud-table-root thead th, .app-content .mud-table-head .mud-table-cell, .app-content table.st-table thead th {
    background: var(--surface-2) !important; color: var(--muted) !important; font-size: 11.5px !important; font-weight: 700 !important;
    text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border) !important; padding: 12px 16px !important; text-align: left;
}
.app-content .mud-table-root tbody td, .app-content .mud-table-body .mud-table-cell, .app-content table.st-table tbody td {
    color: var(--text-2) !important; font-size: 14px !important; padding: 13px 16px !important;
    border-bottom: 1px solid var(--border) !important; border-right: none !important; background: transparent !important;
}
.app-content .mud-table-root tbody tr:last-child td, .app-content table.st-table tbody tr:last-child td { border-bottom: none !important; }
/* Zebra striping for data lists (also inherited by History / Team tables). */
.app-content .mud-table-root tbody tr:nth-child(even) td, .app-content table.st-table tbody tr:nth-child(even) td { background: var(--surface-2) !important; }
.app-content .mud-table-hover tbody tr:hover td, .app-content table.st-table tbody tr:hover td { background: rgba(123,108,246,.08) !important; }
.app-content table.st-table tr.row-link { cursor: pointer; }

.app-content .mud-chip { border-radius: 999px !important; font-weight: 600; font-size: 12px; height: 24px; }
.app-content .mud-chip-color-primary { background-color: var(--accent) !important; color: #fff !important; }

/* Mud primary elements follow the live accent */
.app-content .mud-button-filled-primary { background-color: var(--accent) !important; border-radius: 9px; text-transform: none; font-weight: 700; box-shadow: none; }
.app-content .mud-button-outlined { border-radius: 9px; text-transform: none; font-weight: 600; }
.app-content .mud-button-outlined-primary { color: var(--accent-text) !important; border-color: var(--accent) !important; }
.app-content .mud-progress-linear-bar { background-color: var(--accent) !important; }

/* Icon buttons (View/History/Calendar) + text buttons in the light theme */
.app-content .mud-icon-button { color: var(--muted); }
.app-content .mud-icon-button:hover { color: var(--accent-text); background: var(--accent-soft); }
.app-content .mud-button-text { color: var(--accent-text); text-transform: none; font-weight: 600; }
.app-content .mud-button-text:hover { background: var(--accent-soft); }

/* ===================== Custom inputs / buttons ===================== */
.st-input { display: block; width: 100%; box-sizing: border-box; padding: 10px 13px; margin-bottom: 12px; border: 1.5px solid var(--border-2); border-radius: 10px; font-size: 14px; background: #fff; color: var(--text); transition: border-color .14s, box-shadow .14s; }
.st-input::placeholder { color: var(--faint); }
.st-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.st-input { height: 40px; background: #fff; }
.st-btn { width: 100%; padding: 10px 16px; border: none; border-radius: 10px; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: 14.5px; font-weight: 700; box-shadow: 0 6px 16px var(--accent-soft); transition: filter .14s; }
.st-btn:hover { filter: brightness(1.08); }
.st-linkbtn { background: transparent; border: none; color: var(--accent-text); cursor: pointer; font: inherit; font-weight: 600; padding: 6px 8px; }
.st-linkbtn:hover { text-decoration: underline; filter: brightness(1.1); }
.st-pill { color: var(--accent-text); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 14px; text-decoration: none; font-size: 14px; font-weight: 600; }
.st-pill:hover { background: var(--accent); color: #fff; }

/* ===================== Misc page pieces ===================== */
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pager-bottom { margin: 20px 0 0; justify-content: center; }
.pager-info { font-size: 13px; color: var(--muted); }
.pager-controls { display: flex; align-items: center; gap: 8px; }
.pager-page { font-size: 13px; color: var(--text-2); min-width: 92px; text-align: center; }
.pager-btn { display: inline-block; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .14s, border-color .14s; }
.pager-btn:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent-text); }
.pager-btn.disabled { opacity: .4; pointer-events: none; }
.pager-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.period-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* Time-log session bar */
.sessionbar { display: flex; width: 100%; height: 26px; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.seg { min-width: 2px; }
.seg-work { background: linear-gradient(180deg, #4fd070, #38b95a); }
.seg-break { background: #d7dbe6; }

/* Month calendar */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cal-title { font-size: 16px; font-weight: 700; color: var(--text); min-width: 170px; text-align: center; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal-dow div { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { display: flex; flex-direction: column; justify-content: space-between; min-height: 74px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-2); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.cal-cell:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(16,24,40,.08); }
.cal-cell.empty { border: none; background: transparent; }
.cal-cell.muted { color: var(--faint); background: var(--surface-2); }
.cal-day { font-size: 13px; font-weight: 700; }
.cal-today { color: var(--accent-text); }
.cal-hours { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .cal-cell { min-height: 56px; padding: 5px; } .cal-hours { font-size: 10px; } }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.shot-card img { width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; background: #f3f4f8; }
.shot-card .cap { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

/* Hubstaff-style screenshot cards (one per shot; 5-6 per row) */
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.scard { display: flex; flex-direction: column; }
.scard-app { font-size: 13px; font-weight: 600; color: var(--text-2); text-align: center; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-time { font-size: 12.5px; color: var(--text-2); text-align: center; margin: 8px 0 6px; font-weight: 600; }
.scard-pct { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.scard-stats { display: flex; justify-content: center; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.scard-stats span { white-space: nowrap; }

/* ===================== Loaders (reusable in-page spinner) ===================== */
.st-ring { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: st-spin .7s linear infinite; }
.st-ring--sm { width: 26px; height: 26px; border-width: 3px; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: var(--muted); }
.st-loader--tall { flex-direction: column; min-height: 220px; }
.st-loader-text { font-size: 13px; font-weight: 600; }

.sblock-bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.sblock-bar > span { display: block; height: 100%; border-radius: 999px; }

.sshot { position: relative; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #f3f4f8; box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.sshot img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.sshot-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,20,35,.45); opacity: 0; text-decoration: none; transition: opacity .15s; }
.sshot:hover .sshot-overlay { opacity: 1; }
.sshot-view { background: #fff; color: #111827; padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.scard-screens { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(255,255,255,.92); color: #111827; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

.admin-form { display: flex; flex-direction: column; gap: 2px; }
.admin-form .st-input { margin-bottom: 6px; }
.admin-form label { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.admin-form label.chk { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text); }
.admin-form label.chk input { width: auto; }
.admin-row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-row-form .st-input { margin-bottom: 0; }

.sort-link { color: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.sort-link:hover { color: var(--accent-text); }

.heatstrip { display: flex; gap: 1px; width: 100%; }
.heatcell { flex: 1 1 0; min-width: 0; height: 34px; border-radius: 2px; }
.heataxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 4px; }

/* Remark overlay under the heatstrip: one span per remark, positioned by % of the 24 h day. */
.remarkstrip { position: relative; height: 10px; margin-top: 3px; }
.remarkspan { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 2px 6px var(--accent-soft); }
.remarkspan:hover { filter: brightness(1.15); }

/* ===================== Employee day page ===================== */
.emp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.emp-avatar { width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 8px 20px var(--accent-soft); }
.emp-chips { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-text); }
.chip.gray { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.chip-live { background: rgba(67,196,99,.15); color: #1f9d55; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: chip-pulse 1.6s ease-out infinite; }
@keyframes chip-pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.stat-tile { padding: 18px !important; display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; }
.stat-top { display: flex; align-items: center; gap: 10px; }
.stat-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.stat-ico svg { width: 18px; height: 18px; }
.stat-ico.green { background: rgba(67,196,99,.16); color: #1f9d55; }
.stat-ico.orange { background: rgba(245,158,11,.16); color: #b45309; }
.stat-cap { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-val { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }

.tl-legend { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.tl-legend .set { display: inline-flex; align-items: center; gap: 5px; }
.tl-sw { width: 13px; height: 13px; border-radius: 3px; }

.type-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.type-work { background: rgba(67,196,99,.15); color: #1f9d55; }
.type-break { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* Remarks — timeline cards */
.rk-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.rk-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px !important; border-left: 4px solid var(--accent) !important; transition: box-shadow .15s; }
.rk-card:hover { box-shadow: 0 8px 22px rgba(16,24,40,.10) !important; }
.rk-when { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.rk-time { background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 13.5px; padding: 5px 13px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-dur { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.rk-main { flex: 1 1 auto; min-width: 0; }
.rk-text { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 5px; overflow-wrap: anywhere; }
.rk-by { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.rk-avatar { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff; font-size: 10px; font-weight: 800; }
.rk-del { flex: none; border: none; background: transparent; color: var(--faint); cursor: pointer; padding: 8px; border-radius: 9px; transition: color .12s, background .12s; }
.rk-del:hover { color: var(--danger); background: rgba(224,74,67,.10); }
.rk-del svg { width: 17px; height: 17px; display: block; }
.rk-empty { border: 1.5px dashed var(--border-2); border-radius: 15px; padding: 26px; text-align: center; color: var(--muted); font-size: 14px; background: var(--surface-2); margin-bottom: 16px; }
.rk-empty svg { width: 26px; height: 26px; color: var(--faint); margin-bottom: 6px; }

/* Remark add-form card */
.rk-form-card { padding: 18px 20px !important; }
.rk-form-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.rk-form-head svg { width: 17px; height: 17px; color: var(--accent-text); }
.rk-form-grid { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.rk-field { display: flex; flex-direction: column; gap: 5px; }
.rk-field label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rk-field .st-input { margin-bottom: 0; }
.rk-grow { flex: 1 1 240px; }
.rk-presets { display: flex; align-items: center; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.rk-presets .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.rk-preset { border: 1px solid var(--accent); color: var(--accent-text); background: transparent; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .12s, color .12s; }
.rk-preset:hover { background: var(--accent); color: #fff; }
.rk-badge { display: inline-block; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* Data-table extras (cohorts + time log + history) */
.app-content .mud-table td.num, .app-content .mud-table th.num, .app-content table.st-table td.num, .app-content table.st-table th.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.app-content .mud-table td.tcol, .app-content table.st-table td.tcol { font-weight: 700 !important; color: var(--text) !important; font-variant-numeric: tabular-nums; }
.app-content .mud-table td.dim, .app-content table.st-table td.dim { color: var(--faint) !important; }
.app-content .mud-table th.sort-active .sort-link, .app-content table.st-table th.sort-active .sort-link { color: var(--accent-text); }
.app-content .mud-table th.sort-active, .app-content table.st-table th.sort-active { box-shadow: inset 0 -2px 0 var(--accent); }
.cell-bar { display: block; margin-top: 5px; height: 4px; width: 76px; margin-left: auto; border-radius: 999px; background: var(--border); overflow: hidden; }
.cell-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.warn-pill { display: inline-block; background: rgba(245,158,11,.16); color: #b45309; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; font-variant-numeric: tabular-nums; }

/* Team dashboard */
.tm-emp { display: flex; align-items: center; gap: 10px; }
.tm-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-2)); color: #fff; font-size: 12px; font-weight: 800; }
.tm-name { font-weight: 700; color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pill .status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-on { background: rgba(67,196,99,.15); color: #1f9d55; }
.status-idle { background: rgba(245,158,11,.16); color: #b45309; }
.status-off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* Day insights cards (Hubstaff-style: activity gauge, top apps & sites, classification) */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 980px) { .ins-grid { grid-template-columns: 1fr; } }
.ins-card { padding: 18px !important; }
.ins-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ins-big { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.ins-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ins-scale { position: relative; height: 10px; border-radius: 999px; margin-top: 22px;
    background: linear-gradient(90deg, #e04a43 0%, #f59e0b 35%, #43c463 70%, #1f9d55 100%); }
.ins-marker { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px #fff; }
.ins-scale-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 6px; }
.app-row { margin-bottom: 11px; }
.app-row:last-child { margin-bottom: 0; }
.app-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.app-row-top .app-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row-top b { color: var(--text); }
.app-row-top .app-time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-web { font-size: 10px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; margin-left: 5px; vertical-align: 1px; }
.app-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.app-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.cls-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); margin: 16px 0 12px; background: var(--surface-2); }
.cls-bar > span { min-width: 0; }
.cls-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cls-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; }
