/* ===================================================================
   Command skin (dark command-centre: navy glass, Rescue red for actions,
   teal for live data). Active when <html data-style="command">.
   Colours come from the --md-* variables theme.js sets for this style.
   Loaded last, after login-v2.css.
   =================================================================== */

/* Elements that only exist for this skin (login radar, ECG line, Urdu tagline) */
.cmd-only { display: none !important; }

html[data-style="command"] {
  --md-font: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --cmd-display: "Chakra Petch", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  --cmd-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --cmd-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --cmd-tele: var(--md-secondary);
  --cmd-line: rgba(132, 178, 230, .13);
  --cmd-line-strong: rgba(132, 178, 230, .26);
  --cmd-glass: rgba(14, 26, 46, .66);
  --cmd-glass-strong: rgba(17, 31, 54, .9);
  --cmd-raise: rgba(28, 46, 76, .5);
  --cmd-glow: color-mix(in srgb, var(--md-primary) 55%, transparent);
  --cmd-tele-glow: rgba(63, 213, 223, .45);
  --cmd-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

/* ---------- Ground ----------
   Layers, back to front: navy on <html>, then the live dot grid and drifting glows
   (z-index -1, drawn by command-ui.js), then the page. <body> stays transparent so the
   layers behind it show through. */
html[data-style="command"] { background: var(--md-surface) !important; }
html[data-style="command"] body {
  background: transparent !important;
  -webkit-font-smoothing: antialiased;
}
html[data-style="command"] #cmdBg { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#cmdBg, .cmd-glow { display: none; }
html[data-style="command"] .cmd-glow { display: block; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .55; }
html[data-style="command"] .cmd-glow.a { width: 520px; height: 520px; top: -180px; left: -160px; background: rgba(196, 20, 29, .30); }
html[data-style="command"] .cmd-glow.b { width: 600px; height: 600px; bottom: -240px; right: -180px; background: rgba(11, 127, 138, .28); }
html[data-style="command"] .app-page,
html[data-style="command"] .app-shell,
html[data-style="command"] .login-page,
html[data-style="command"] .employee-portal-page { background: transparent !important; }

/* ---------- Type ---------- */
html[data-style="command"] .topbar h1,
html[data-style="command"] .panel-heading h2,
html[data-style="command"] .tab-panel > h2,
html[data-style="command"] .section-heading h2,
html[data-style="command"] .analytics-card h2,
html[data-style="command"] .analytics-card h3,
html[data-style="command"] .employee-portal-topbar h1,
html[data-style="command"] .employee-portal-card h2,
html[data-style="command"] .form-modal-card h2,
html[data-style="command"] .form-modal-card h3,
html[data-style="command"] .sidebar-brand strong {
  font-family: var(--cmd-display) !important;
  letter-spacing: .01em !important;
  text-wrap: balance;
}
html[data-style="command"] .panel-heading h2, html[data-style="command"] .tab-panel > h2 { font-weight: 600 !important; font-size: 26px !important; }
html[data-style="command"] .section-heading h2 { font-weight: 600 !important; }
html[data-style="command"] .analytics-card h2, html[data-style="command"] .analytics-card h3 { font-weight: 600 !important; }
html[data-style="command"] .eyebrow,
html[data-style="command"] .panel-heading .eyebrow {
  font-family: var(--cmd-mono) !important; font-size: 11px !important; font-weight: 500 !important;
  letter-spacing: .16em !important; color: var(--cmd-tele) !important;
}
html[data-style="command"] td, html[data-style="command"] .stats-grid strong, html[data-style="command"] .kpi-grid strong,
html[data-style="command"] .header-pill, html[data-style="command"] .employee-summary-grid strong { font-variant-numeric: tabular-nums; }

/* ---------- Sidebar ---------- */
html[data-style="command"] .sidebar {
  background: linear-gradient(180deg, rgba(10, 19, 34, .94), rgba(5, 10, 20, .97)) !important;
  border-right: 1px solid var(--cmd-line) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
html[data-style="command"] .sidebar-brand strong { font-size: 16px !important; font-weight: 700 !important; letter-spacing: .08em !important; }
html[data-style="command"] .brand-mark {
  background: linear-gradient(135deg, var(--md-primary), #C4141D) !important; color: #fff !important;
  font-family: var(--cmd-display) !important; border-radius: 12px !important;
  box-shadow: 0 0 0 1px var(--cmd-line-strong), 0 10px 26px -10px var(--cmd-glow) !important;
}
html[data-style="command"] .sidebar .sidebar-nav button.tab:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button),
html[data-style="command"] .sidebar button.sm-side {
  position: relative;
  min-height: 42px !important; border-radius: 10px !important;
  color: var(--md-on-surface-variant) !important; background: transparent !important;
  font-size: 13.5px !important; font-weight: 500 !important;
  transition: background .2s, color .2s !important;
}
html[data-style="command"] .sidebar .sidebar-nav button.tab:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button):hover,
html[data-style="command"] .sidebar button.sm-side:hover { background: rgba(255, 255, 255, .045) !important; color: var(--md-on-surface) !important; }
html[data-style="command"] .sidebar .sidebar-nav button.tab.active:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button),
html[data-style="command"] .sidebar button.sm-side.active {
  color: #fff !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--md-primary) 22%, transparent), color-mix(in srgb, var(--md-primary) 2%, transparent)) !important;
  border-left: 0 !important; box-shadow: none !important;
}
html[data-style="command"] .sidebar .tab.active::before,
html[data-style="command"] .sidebar button.sm-side.active::before {
  content: "" !important; display: block !important; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--md-primary); box-shadow: 0 0 12px var(--md-primary);
}
html[data-style="command"] .sidebar .tab.active .nav-icon,
html[data-style="command"] .sidebar button.sm-side.active .nav-icon { color: var(--md-primary) !important; filter: drop-shadow(0 0 5px var(--cmd-glow)); }
html[data-style="command"] .nav-badge { font-family: var(--cmd-mono) !important; font-weight: 600 !important; font-size: 10.5px !important; box-shadow: 0 0 10px -2px var(--cmd-glow); }
html[data-style="command"] .sidebar-footer { border-top: 1px solid var(--cmd-line) !important; }
html[data-style="command"] .sidebar-footer .user-card,
html[data-style="command"] .role-chip { background: var(--cmd-raise) !important; border: 1px solid var(--cmd-line) !important; }
html[data-style="command"] .sidebar .sidebar-footer button:not(.tab):not(.icon-button):not(.md-swatch) {
  border-radius: 9px !important; border: 1px solid var(--cmd-line-strong) !important; color: var(--md-on-surface-variant) !important; background: transparent !important;
}
html[data-style="command"] .sidebar .sidebar-footer button:not(.tab):not(.icon-button):not(.md-swatch):hover { border-color: var(--cmd-tele) !important; color: var(--md-on-surface) !important; }
@keyframes cmdBar { from { transform: scaleY(0); } }

/* ---------- Top bar ---------- */
html[data-style="command"] .topbar {
  background: rgba(5, 10, 20, .62) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--cmd-line) !important;
}
html[data-style="command"] .topbar h1 { font-weight: 600 !important; font-size: 21px !important; }
html[data-style="command"] .header-pill,
html[data-style="command"] .storage-status {
  background: var(--cmd-raise) !important; border: 1px solid var(--cmd-line) !important; border-radius: 999px !important;
  color: var(--md-on-surface-variant) !important; font-family: var(--cmd-mono) !important; font-size: 12px !important; font-weight: 500 !important;
}
html[data-style="command"] .storage-status::before { background: var(--md-ok) !important; }
@keyframes cmdPing { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } }
html[data-style="command"] .notification-dot { color: var(--md-primary) !important; text-shadow: 0 0 10px var(--cmd-glow); }
html[data-style="command"] .password-reset-bell-btn { background: color-mix(in srgb, var(--md-primary) 18%, transparent) !important; color: #fff !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--md-primary) 45%, transparent), 0 0 18px -4px var(--cmd-glow) !important; }
html[data-style="command"] .icon-button { color: var(--md-on-surface-variant) !important; }
@keyframes cmdBlink { 50% { opacity: .35; } }

/* ---------- Glass panels ---------- */
html[data-style="command"] .toolbar, html[data-style="command"] .employee-form, html[data-style="command"] .analytics-card,
html[data-style="command"] .table-wrap, html[data-style="command"] .summary-layout article, html[data-style="command"] .form-card,
html[data-style="command"] .panel-card, html[data-style="command"] .card, html[data-style="command"] details.collapsible,
html[data-style="command"] .collapsible, html[data-style="command"] .employee-portal-card, html[data-style="command"] section.fm-card,
html[data-style="command"] section.pw-panel {
  /* glass fill over a teal-to-red gradient edge (no pseudo-elements, so absolutely
     positioned children such as chart tooltips keep their containing block) */
  background:
    linear-gradient(var(--cmd-glass), var(--cmd-glass)) padding-box,
    linear-gradient(140deg, rgba(63, 213, 223, .5), rgba(132, 178, 230, .1) 32%, rgba(132, 178, 230, .1) 68%, rgba(255, 59, 71, .4)) border-box !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 48px -28px rgba(0, 0, 0, .85) !important;
  transition: transform .3s var(--cmd-ease), box-shadow .3s !important;
}
html[data-style="command"] .analytics-card:hover, html[data-style="command"] .employee-portal-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 28px 50px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(63, 213, 223, .14), 0 0 28px -10px var(--cmd-tele-glow) !important;
}
html[data-style="command"] .tool-drawer, html[data-style="command"] .tool-drawer > summary,
html[data-style="command"] .performance-variable-editor, html[data-style="command"] .performance-variable-editor > summary {
  background: var(--cmd-glass) !important; border-color: var(--cmd-line) !important; color: var(--md-on-surface) !important;
}

/* ---------- KPI tiles ---------- */
html[data-style="command"] .stats-grid > div, html[data-style="command"] .kpi-grid > div,
html[data-style="command"] .performance-summary-grid > article, html[data-style="command"] .employee-summary-grid > div,
html[data-style="command"] .leave-overview > div, html[data-style="command"] button.fm-kpi {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(22, 38, 64, .72), rgba(10, 19, 34, .72)) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--cmd-line) !important; border-radius: 14px !important;
  transition: transform .25s var(--cmd-ease), border-color .25s, box-shadow .25s !important;
}
html[data-style="command"] .stats-grid > div::after, html[data-style="command"] .kpi-grid > div::after,
html[data-style="command"] .employee-summary-grid > div::after, html[data-style="command"] .performance-summary-grid > article::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cmd-tele), transparent); opacity: .55;
}
html[data-style="command"] .stats-grid > div:hover, html[data-style="command"] .kpi-grid > div:hover,
html[data-style="command"] .employee-summary-grid > div:hover, html[data-style="command"] .performance-summary-grid > article:hover,
html[data-style="command"] button.fm-kpi:hover {
  transform: translateY(-3px); border-color: var(--cmd-line-strong) !important;
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(63, 213, 223, .12) !important;
}
html[data-style="command"] .stats-grid strong, html[data-style="command"] .kpi-grid strong,
html[data-style="command"] .employee-summary-grid strong, html[data-style="command"] .performance-summary-grid strong {
  font-family: var(--cmd-display) !important; font-weight: 600 !important;
}
html[data-style="command"] .stats-grid span, html[data-style="command"] .kpi-grid span, html[data-style="command"] .employee-summary-grid span {
  font-family: var(--cmd-mono) !important; font-size: 10.5px !important; letter-spacing: .1em; text-transform: uppercase;
}
html[data-style="command"] .tile-icon { background: rgba(63, 213, 223, .12) !important; color: var(--cmd-tele) !important; }

/* Attendance ring: the app sets --pct (0-100); registering it as a number lets it animate */
@property --pct { syntax: "<number>"; inherits: false; initial-value: 0; }
html[data-style="command"] .attendance-donut {
  background: conic-gradient(var(--md-ok) calc(var(--pct, 0) * 3.6deg), rgba(255, 255, 255, .07) 0deg) !important;
  filter: drop-shadow(0 0 10px rgba(61, 220, 151, .35));
  transition: --pct 1.4s var(--cmd-ease);
}
html[data-style="command"] .donut-shell strong { font-family: var(--cmd-display) !important; color: var(--md-on-surface) !important; }
html[data-style="command"] .donut-shell span { color: var(--md-on-surface-variant) !important; }

/* ---------- Tables ---------- */
html[data-style="command"] th:not(.official-roster-document th) {
  background: rgba(10, 19, 34, .85) !important; color: var(--md-on-surface-variant) !important;
  font-family: var(--cmd-mono) !important; font-size: 10.5px !important; font-weight: 500 !important;
  letter-spacing: .12em !important; text-transform: uppercase !important;
  border-bottom: 1px solid var(--cmd-line-strong) !important;
}
html[data-style="command"] td:not(.official-roster-document td) { border-bottom: 1px solid var(--cmd-line) !important; background: transparent !important; }
html[data-style="command"] tbody tr { transition: background .2s; }
html[data-style="command"] tbody tr:hover { background: rgba(63, 213, 223, .05) !important; }

/* ---------- Buttons ---------- */
html[data-style="command"] body button:not(.tab):not(.icon-button):not(.md-swatch):not(.md-fab):not(.link-button):not(.login-mode-tab):not(.employee-thumb):not(.pw-x):not(.md-theme-x):not(.ghost):not(.secondary):not(.danger):not(.profile-trigger):not([data-sm-go]):not(.password-reset-bell-btn):not([class*="fm-"]):not([class*="sm-"]):not([class*="hr-"]) {
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--md-primary), color-mix(in srgb, var(--md-primary) 70%, #000)) !important;
  color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 10px 24px -12px var(--cmd-glow), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
  transition: transform .2s var(--cmd-ease), box-shadow .2s, filter .2s !important;
}
html[data-style="command"] body button:not(.tab):not(.icon-button):not(.md-swatch):not(.md-fab):not(.link-button):not(.login-mode-tab):not(.employee-thumb):not(.pw-x):not(.md-theme-x):not(.ghost):not(.secondary):not(.danger):not(.profile-trigger):not([data-sm-go]):not(.password-reset-bell-btn):not([class*="fm-"]):not([class*="sm-"]):not([class*="hr-"]):hover:not(:disabled) {
  transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 14px 30px -12px var(--cmd-glow), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}
html[data-style="command"] body button.ghost:not(.x), html[data-style="command"] body button.secondary:not(.x),
html[data-style="command"] .secondary-button, html[data-style="command"] button.outline {
  border-radius: 10px !important; background: transparent !important;
  color: var(--md-on-surface) !important; border: 1px solid var(--cmd-line-strong) !important;
}
html[data-style="command"] body button.ghost:not(.x):hover, html[data-style="command"] body button.secondary:not(.x):hover {
  border-color: var(--cmd-tele) !important; background: rgba(63, 213, 223, .06) !important; box-shadow: 0 0 16px -6px var(--cmd-tele-glow) !important;
}
html[data-style="command"] body button.danger:not(.ghost):not(.secondary) { border-radius: 10px !important; }
html[data-style="command"] .link-button { color: var(--cmd-tele) !important; }
html[data-style="command"] label.file-button { border-radius: 10px !important; border: 1px dashed var(--cmd-line-strong) !important; background: rgba(255, 255, 255, .02) !important; }

/* ---------- Fields ---------- */
html[data-style="command"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]),
html[data-style="command"] select, html[data-style="command"] textarea {
  background: rgba(4, 9, 18, .66) !important; border: 1px solid var(--cmd-line-strong) !important; border-radius: 10px !important;
  transition: border-color .2s, box-shadow .2s !important;
}
html[data-style="command"] input:focus, html[data-style="command"] select:focus, html[data-style="command"] textarea:focus {
  border-color: var(--cmd-tele) !important;
  box-shadow: 0 0 0 3px rgba(63, 213, 223, .14), 0 0 22px -6px var(--cmd-tele-glow) !important;
}
html[data-style="command"] input[type="date"], html[data-style="command"] input[type="month"] { color-scheme: dark; }
html[data-style="command"] label { color: var(--md-on-surface-variant); }
html[data-style="command"] :focus-visible { outline: 2px solid var(--cmd-tele); outline-offset: 2px; }

/* ---------- Dialogs, chips, toasts ---------- */
html[data-style="command"] .form-modal, html[data-style="command"] .pw-modal, html[data-style="command"] .modal-backdrop {
  background: rgba(2, 6, 14, .62) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html[data-style="command"] .form-modal-card, html[data-style="command"] .pw-card, html[data-style="command"] .modal-card {
  background: var(--cmd-glass-strong) !important; border: 1px solid var(--cmd-line-strong) !important; border-radius: 16px !important;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(63, 213, 223, .08), 0 30px 60px -20px rgba(0, 0, 0, .9) !important;
}
html[data-style="command"] .role-chip, html[data-style="command"] .filter-count, html[data-style="command"] .profile-chip,
html[data-style="command"] .employee-shift-badge, html[data-style="command"] .chip {
  font-family: var(--cmd-mono) !important; font-size: 11.5px !important; border-radius: 999px !important;
}
html[data-style="command"] .employee-shift-badge { background: rgba(246, 185, 59, .12) !important; color: var(--md-warn) !important; border: 0 !important; }
html[data-style="command"] .toast, html[data-style="command"] .toast-stack > * {
  background: var(--cmd-glass-strong) !important; color: var(--md-on-surface) !important;
  border: 1px solid rgba(61, 220, 151, .4) !important; border-radius: 10px !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
@keyframes cmdPop { from { opacity: .3; transform: translateY(12px) scale(.98); } }

/* ---------- Motion: panels slide in when a tab opens; tiles stagger ---------- */
@keyframes cmdIn { from { opacity: .25; transform: translateY(10px); } }
@keyframes cmdRise { from { opacity: .2; transform: translateY(14px); } }

/* ---------- Login ---------- */
html[data-style="command"] body #loginPage.login-page { background: transparent !important; font-family: var(--md-font); }
html[data-style="command"] body #loginPage .login-box {
  background: linear-gradient(180deg, rgba(10, 19, 34, .93), rgba(5, 10, 20, .96)) !important;
  border-right: 1px solid var(--cmd-line) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
html[data-style="command"] body #loginPage .login-box::before { display: block !important; height: 3px !important; background: linear-gradient(90deg, transparent, var(--md-primary), var(--cmd-tele), transparent) !important; }
html[data-style="command"] body #loginPage .login-box::after { border-color: var(--cmd-tele); }
html[data-style="command"] body #loginPage .login-brand-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px var(--cmd-line-strong), 0 12px 30px -10px var(--cmd-glow); }
html[data-style="command"] body #loginPage .login-brand-logo img { width: 54px; }
html[data-style="command"] body #loginPage .login-brand strong { font-family: var(--cmd-display); font-size: 20px; letter-spacing: .08em; }
html[data-style="command"] body #loginPage .login-box h1 {
  font-family: var(--cmd-display) !important; font-weight: 600 !important; font-size: clamp(28px, 3vw, 38px) !important; line-height: 1.1 !important;
  letter-spacing: 0 !important; text-wrap: balance;
}
html[data-style="command"] body #loginPage .storage-status { background: var(--cmd-raise) !important; border: 1px solid var(--cmd-line) !important; color: var(--md-on-surface-variant) !important; font-family: var(--cmd-mono) !important; font-size: 12px !important; border-radius: 999px !important; }
html[data-style="command"] body #loginPage .cmd-ecg { display: block !important; width: 100%; max-width: 400px; height: 40px; margin: 6px 0 18px; }
html[data-style="command"] body #loginPage .cmd-ecg path { fill: none; stroke: var(--md-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; filter: drop-shadow(0 0 6px var(--cmd-glow)); }
html[data-style="command"] body #loginPage .cmd-ecg path.base { stroke: var(--cmd-line-strong); stroke-width: 1; stroke-dasharray: none; animation: none; filter: none; }
@keyframes cmdEcg { 0% { stroke-dashoffset: 520; } 70%, 100% { stroke-dashoffset: -520; } }
html[data-style="command"] body #loginPage .login-mode-tabs { position: relative; background: rgba(255, 255, 255, .03) !important; border: 1px solid var(--cmd-line) !important; border-radius: 12px !important; }
/* sliding red pill behind the active login type */
html[data-style="command"] body #loginPage .login-mode-tabs::before {
  content: ""; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 9px;
  background: linear-gradient(135deg, var(--md-primary), color-mix(in srgb, var(--md-primary) 70%, #000));
  box-shadow: 0 8px 20px -8px var(--cmd-glow);
  transition: transform .4s cubic-bezier(.3, 1.3, .5, 1);
}
html[data-style="command"] body #loginPage .login-mode-tabs:has(#employeeLoginTab.active)::before { transform: translateX(calc(100% + 4px)); }
html[data-style="command"] body #loginPage .login-mode-tab { position: relative; z-index: 1; transition: color .25s !important; }
html[data-style="command"] body #loginPage .login-mode-tab.active { background: transparent !important; box-shadow: none !important; }
html[data-style="command"] body #loginPage .login-form-card label { font-family: var(--cmd-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--md-on-surface-variant) !important; }
html[data-style="command"] body #loginPage .login-form-card input { background: rgba(4, 9, 18, .72) !important; border: 1px solid var(--cmd-line-strong) !important; text-transform: none; letter-spacing: 0; font-family: var(--md-font); font-size: 14.5px; }
html[data-style="command"] body #loginPage .login-form-card input:focus { border-color: var(--cmd-tele) !important; outline: 0 !important; box-shadow: 0 0 0 4px rgba(63, 213, 223, .14), 0 0 24px -6px var(--cmd-tele-glow) !important; }
html[data-style="command"] body #loginPage .login-form-card button[type="submit"] {
  position: relative; overflow: hidden; border-radius: 12px !important;
  background: linear-gradient(135deg, var(--md-primary), color-mix(in srgb, var(--md-primary) 70%, #000)) !important;
  box-shadow: 0 12px 28px -12px var(--cmd-glow), inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}
html[data-style="command"] body #loginPage .link-button { color: var(--cmd-tele) !important; }

/* Login visual: radar of Sindh replaces the photo in this skin */
html[data-style="command"] body #loginPage .login-visual {
  position: relative; overflow: hidden; display: grid; place-items: center; padding: 40px 24px !important;
  background: radial-gradient(ellipse at 60% 40%, rgba(11, 127, 138, .2), transparent 60%), linear-gradient(180deg, rgba(8, 16, 30, .55), rgba(4, 8, 16, .9)) !important;
}
html[data-style="command"] body #loginPage .login-visual::before { display: none !important; }
html[data-style="command"] body #loginPage .login-visual > img { display: none !important; }
html[data-style="command"] body #loginPage .cmd-radar-wrap { display: grid !important; place-items: center; width: 100%; }
html[data-style="command"] .cmd-radar {
  position: relative; width: min(460px, 70vh, 80%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 24.6%, var(--cmd-line) 24.8% 25%, transparent 25.2% 49.6%, var(--cmd-line) 49.8% 50%, transparent 50.2% 74.6%, var(--cmd-line) 74.8% 75%, transparent 75.2%);
  box-shadow: 0 0 0 1px var(--cmd-line-strong), inset 0 0 80px rgba(63, 213, 223, .08);
}
html[data-style="command"] .cmd-radar::before, html[data-style="command"] .cmd-radar::after { content: ""; position: absolute; background: var(--cmd-line); }
html[data-style="command"] .cmd-radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
html[data-style="command"] .cmd-radar::after { top: 50%; left: 0; right: 0; height: 1px; }
html[data-style="command"] .cmd-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(63, 213, 223, .38), rgba(63, 213, 223, .06) 50deg, transparent 70deg);
}
@keyframes cmdSpin { to { transform: rotate(360deg); } }
html[data-style="command"] .cmd-blip { position: absolute; translate: -50% -50%; display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--cmd-mono); color: var(--md-on-surface-variant); white-space: nowrap; }
html[data-style="command"] .cmd-blip i { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--cmd-tele); box-shadow: 0 0 12px var(--cmd-tele); }
html[data-style="command"] .cmd-blip i::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--cmd-tele); }
html[data-style="command"] .cmd-blip.hot i { background: var(--md-primary); box-shadow: 0 0 14px var(--md-primary); }
html[data-style="command"] .cmd-blip.hot i::after { border-color: var(--md-primary); }
@keyframes cmdBlip { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
html[data-style="command"] .cmd-visual-copy { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
html[data-style="command"] .cmd-visual-copy h2 { margin: 0; font: 600 22px/1.15 var(--cmd-display); color: var(--md-on-surface); }
html[data-style="command"] .cmd-urdu { font: 500 20px/2 var(--cmd-urdu); color: var(--md-on-surface-variant); direction: rtl; }
html[data-style="command"] .cmd-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--cmd-line); background: rgba(10, 19, 34, .7); font: 500 12px/1 var(--cmd-mono); color: var(--md-on-surface-variant); }
html[data-style="command"] .cmd-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--md-ok); }
html[data-style="command"] .cmd-visual-top { position: absolute; top: 24px; left: 28px; right: 28px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Employee portal ---------- */
html[data-style="command"] .employee-portal-topbar {
  background: var(--cmd-glass) !important; border: 1px solid var(--cmd-line) !important; border-radius: 16px !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--md-on-surface) !important;
}
html[data-style="command"] .employee-portal-topbar::before { background: linear-gradient(90deg, transparent, var(--md-primary), var(--cmd-tele), transparent) !important; height: 2px !important; }
html[data-style="command"] .employee-portal-topbar h1 { font-weight: 600 !important; color: var(--md-on-surface) !important; }

/* ---------- Theme button + panel ---------- */
html[data-style="command"] body #mdThemeFab { background: linear-gradient(135deg, var(--md-primary), color-mix(in srgb, var(--md-primary) 70%, #000)) !important; color: #fff !important; box-shadow: 0 0 0 1px var(--cmd-line-strong), 0 10px 26px -8px var(--cmd-glow) !important; }
html[data-style="command"] .md-theme-panel { background: var(--cmd-glass-strong) !important; border: 1px solid var(--cmd-line-strong) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }

/* ---------- Scrollbars ---------- */
html[data-style="command"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-style="command"] ::-webkit-scrollbar-track { background: transparent; }
html[data-style="command"] ::-webkit-scrollbar-thumb { background: var(--cmd-line-strong); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
html[data-style="command"] ::-webkit-scrollbar-thumb:hover { background-color: rgba(63, 213, 223, .4); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  html[data-style="command"] .cmd-visual-copy { left: 18px; right: 18px; }
}

/* ---------- Employee profile pop-up (style.css paints it white with fixed colours) ---------- */
html[data-style="command"] .employee-profile-head {
  background: var(--cmd-glass-strong) !important; border-bottom: 1px solid var(--cmd-line) !important;
}
html[data-style="command"] .employee-profile-head::before { height: 3px !important; background: linear-gradient(90deg, var(--md-primary), var(--cmd-tele)) !important; }
html[data-style="command"] .profile-photo {
  background: linear-gradient(135deg, var(--md-secondary-container), #12345B) !important; color: #FFFFFF !important;
  border: 1px solid var(--cmd-line-strong) !important; border-radius: 14px !important; font-family: var(--cmd-display) !important;
  box-shadow: 0 0 0 2px rgba(63, 213, 223, .25), 0 0 28px -8px var(--cmd-tele-glow);
}
html[data-style="command"] .profile-identity h2 { color: var(--md-on-surface) !important; font-family: var(--cmd-display) !important; letter-spacing: .01em; }
html[data-style="command"] .profile-identity p { color: var(--md-on-surface-variant) !important; }
html[data-style="command"] .profile-chip {
  background: var(--cmd-raise) !important; border: 1px solid var(--cmd-line-strong) !important; border-radius: 999px !important;
  color: var(--md-on-surface) !important; font-family: var(--cmd-mono) !important; font-size: 11.5px !important;
}
html[data-style="command"] .profile-chip.strong { background: color-mix(in srgb, var(--md-primary) 85%, #000) !important; border-color: transparent !important; color: #FFFFFF !important; }
html[data-style="command"] .profile-chip.warn { background: rgba(255, 93, 108, .14) !important; border-color: rgba(255, 93, 108, .45) !important; color: var(--md-error) !important; }
html[data-style="command"] #employeeProfileModal button.profile-close {
  background: transparent !important; color: var(--md-on-surface-variant) !important;
  border: 1px solid var(--cmd-line-strong) !important; border-radius: 10px !important; box-shadow: none !important;
}
html[data-style="command"] #employeeProfileModal button.profile-close:hover { color: var(--md-on-surface) !important; border-color: var(--md-primary) !important; }
html[data-style="command"] #employeeProfileModal button.profile-close::before { display: none !important; }
html[data-style="command"] .employee-profile-body { background: transparent !important; }
html[data-style="command"] .profile-section {
  background: var(--cmd-glass) !important; border: 1px solid var(--cmd-line) !important; border-radius: 14px !important;
}
html[data-style="command"] .profile-section h3 { color: var(--md-on-surface) !important; font-family: var(--cmd-display) !important; font-weight: 600 !important; }
html[data-style="command"] .profile-grid, html[data-style="command"] .profile-field { border-color: var(--cmd-line) !important; }
html[data-style="command"] .profile-field span { color: var(--md-on-surface-variant) !important; }
html[data-style="command"] .profile-field strong { color: var(--md-on-surface) !important; }
html[data-style="command"] .profile-count, html[data-style="command"] .profile-perf div {
  background: rgba(255, 255, 255, .03) !important; border: 1px solid var(--cmd-line) !important; border-radius: 12px !important;
}
html[data-style="command"] .profile-count strong, html[data-style="command"] .profile-perf strong { color: var(--md-on-surface) !important; font-family: var(--cmd-display) !important; }
html[data-style="command"] .profile-count span:last-child, html[data-style="command"] .profile-perf span { color: var(--md-on-surface-variant) !important; }
html[data-style="command"] .profile-day.empty { background: rgba(255, 255, 255, .04) !important; color: var(--md-on-surface-variant) !important; box-shadow: inset 0 0 0 1px var(--cmd-line); }
html[data-style="command"] .profile-day:not(.empty) { box-shadow: 0 0 14px -4px var(--c); }
html[data-style="command"] .profile-note, html[data-style="command"] .profile-meter small { color: var(--md-on-surface-variant) !important; }
html[data-style="command"] .profile-meter-top { color: var(--md-on-surface) !important; }
html[data-style="command"] .profile-meter-track { background: rgba(255, 255, 255, .07) !important; }
html[data-style="command"] .employee-profile-actions { background: var(--cmd-glass-strong) !important; border-top: 1px solid var(--cmd-line) !important; }

/* ---------- Other surfaces style.css paints light with fixed colours ---------- */
/* pop-up form bodies (performance, roster review, store dialogs, transfer, leave form viewer) */
html[data-style="command"] .form-modal-body { background: transparent !important; color: var(--md-on-surface) !important; }
html[data-style="command"] :is(.performance-employee-strip, .performance-live-total) {
  background: rgba(63, 213, 223, .06) !important; border: 1px solid var(--cmd-line) !important; color: var(--md-on-surface) !important;
}
/* header bell, its request list, notification dot, credit pill */
html[data-style="command"] .topbar button.password-reset-bell-btn,
html[data-style="command"] button#passwordResetBellBtn {
  background: color-mix(in srgb, var(--md-primary) 18%, transparent) !important; color: #FFFFFF !important;
  border: 1px solid color-mix(in srgb, var(--md-primary) 45%, transparent) !important;
}
html[data-style="command"] .password-reset-panel {
  background: var(--cmd-glass-strong) !important; color: var(--md-on-surface) !important; border: 1px solid var(--cmd-line-strong) !important;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9) !important;
}
html[data-style="command"] .notification-dot { background: transparent !important; }
html[data-style="command"] .powered-by.topbar-credit { background: transparent !important; color: var(--md-on-surface-variant) !important; }
/* notes and warnings */
html[data-style="command"] :is(.leave-notifications, .access-note) {
  background: rgba(246, 185, 59, .08) !important; border: 1px solid rgba(246, 185, 59, .35) !important; color: var(--md-on-surface) !important;
}
html[data-style="command"] .clear-data-card {
  background: rgba(255, 93, 108, .08) !important; border: 1px solid rgba(255, 93, 108, .4) !important; color: var(--md-on-surface) !important;
}
html[data-style="command"] .clear-data-card h3 { color: var(--md-error) !important; }
html[data-style="command"] .clear-data-card p { color: var(--md-on-surface-variant) !important; }
html[data-style="command"] .performance-live-total strong { color: var(--cmd-tele) !important; }
/* photo / leave form previews */
html[data-style="command"] .photo-preview { background: rgba(4, 9, 18, .66) !important; border-color: var(--cmd-line-strong) !important; color: var(--md-on-surface-variant) !important; }
/* roster chips */
html[data-style="command"] :is(.roster-score, .roster-status).pending { background: var(--cmd-raise) !important; color: var(--md-on-surface-variant) !important; }
html[data-style="command"] .roster-status.review,
html[data-style="command"] .roster-duty-chip.roster-punishment-chip { background: rgba(255, 93, 108, .14) !important; color: var(--md-error) !important; }
html[data-style="command"] .roster-duty-chip:not(.roster-punishment-chip) { background: rgba(63, 213, 223, .12) !important; color: var(--cmd-tele) !important; }
/* official roster: the panel follows the theme, the document inside stays paper-white for printing */
html[data-style="command"] .official-roster-panel { background: var(--cmd-glass) !important; color: var(--md-on-surface) !important; border: 1px solid var(--cmd-line) !important; }
html[data-style="command"] .official-roster-document { color: #142033 !important; }

/* ===================================================================
   Phones and small tablets
   style.css already stacks the layout; this makes it feel built for touch:
   one-row header, drawer with a dimmed backdrop, bottom-sheet dialogs,
   44px touch targets, lighter blur for smoother scrolling, radar under the login form.
   =================================================================== */
@media (max-width: 900px) {
  /* login: the radar panel sits under the form instead of disappearing */
  html[data-style="command"] body #loginPage .login-visual {
    display: grid !important; min-height: 440px !important; padding: 104px 16px 116px !important;
    width: auto !important; aspect-ratio: auto !important; /* style.css gives the photo a 16:8 banner shape */
    border-top: 1px solid var(--cmd-line);
  }
  html[data-style="command"] .cmd-radar { width: min(320px, 82vw); }
  html[data-style="command"] .cmd-visual-top { top: 16px; left: 16px; right: 16px; }
  html[data-style="command"] .cmd-visual-copy { left: 16px; right: 16px; bottom: 18px; }
  html[data-style="command"] body #loginPage .login-box { min-height: 0 !important; }
}

@media (max-width: 760px) {
  /* header: one compact row of status pills that scrolls sideways if it must */
  html[data-style="command"] .topbar { padding: 10px 14px !important; row-gap: 10px !important; min-height: 0 !important; }
  html[data-style="command"] .topbar h1 { font-size: 18px !important; }
  html[data-style="command"] .topbar .topbar-actions {
    display: flex !important; flex-direction: row !important; align-items: center !important; /* style.css stacks these in a column */
    flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 6px !important;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px;
  }
  html[data-style="command"] .topbar .topbar-actions::-webkit-scrollbar { display: none; }
  html[data-style="command"] .topbar :is(.header-pill, .storage-status) {
    flex: none !important; margin: 0 !important; padding: 5px 10px !important; font-size: 11px !important; white-space: nowrap;
  }
  html[data-style="command"] .topbar .storage-status {
    max-width: 60vw; overflow: hidden; text-overflow: ellipsis;
    padding-left: 24px !important; align-self: center !important; top: 0 !important; /* room for the live dot; level with the clock (style.css nudges it 12px down) */
  }
  html[data-style="command"] .topbar .storage-status::before { top: 50% !important; margin-top: -4px !important; }
  html[data-style="command"] .topbar-credit { font-size: 10.5px !important; }

  /* drawer menu with a dimmed, blurred backdrop */
  html[data-style="command"] .sidebar { width: min(86vw, 300px) !important; box-shadow: 24px 0 60px -20px rgba(0, 0, 0, .9) !important; }
  html[data-style="command"] body.sidebar-open .sidebar-overlay {
    background: rgba(2, 6, 14, .62) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  html[data-style="command"] .sidebar .sidebar-nav button.tab:not(.secondary):not(.ghost):not(.danger):not(.link-button):not(.login-mode-tab):not(.icon-button),
  html[data-style="command"] .sidebar button.sm-side { min-height: 46px !important; font-size: 14.5px !important; }

  /* headings and tiles sized for a phone */
  html[data-style="command"] .panel-heading h2, html[data-style="command"] .tab-panel > h2 { font-size: 22px !important; }
  html[data-style="command"] :is(.stats-grid, .kpi-grid, .employee-summary-grid, .performance-summary-grid) { gap: 10px !important; }
  html[data-style="command"] :is(.stats-grid, .kpi-grid) strong { font-size: 24px !important; }
  html[data-style="command"] :is(.stats-grid, .kpi-grid, .employee-summary-grid) span { font-size: 9.5px !important; letter-spacing: .08em; }

  /* touch targets (toolbars, forms, dialogs and action bars; table cells keep their compact controls) */
  html[data-style="command"] :is(.toolbar, .tool-row, .sidebar-footer, .login-form-card, [class*="-actions"]) button:not(td *) { min-height: 44px; }
  html[data-style="command"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]), select, textarea):not(td *) {
    min-height: 46px; font-size: 16px !important; /* 16px stops iOS zooming into a field when it is tapped */
  }

  /* tables scroll sideways inside their card */
  html[data-style="command"] .table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

  /* dialogs become bottom sheets */
  html[data-style="command"] :is(.form-modal, .pw-modal) { align-items: end !important; place-items: end center !important; padding: 0 !important; }
  html[data-style="command"] :is(.form-modal-card, .pw-card) {
    width: 100% !important; max-width: 100% !important; max-height: 92dvh !important;
    border-radius: 20px 20px 0 0 !important; border-bottom: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  html[data-style="command"] :is(.form-modal-card, .pw-card)::after {
    content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 4px; background: var(--cmd-line-strong); pointer-events: none;
  }
  html[data-style="command"] .employee-profile-head { padding-top: 26px !important; }
  html[data-style="command"] .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 12px; }
  /* the palette button would cover a sheet's buttons */
  html[data-style="command"] body:has(:is(.form-modal, .pw-modal):not(.hidden)) #mdThemeFab { display: none !important; }

  /* lighter glass: one blur per screen is plenty on a phone GPU */
  html[data-style="command"] :is(.toolbar, .analytics-card, .table-wrap, .employee-portal-card, .profile-section, .stats-grid > div, .kpi-grid > div, .employee-summary-grid > div) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html[data-style="command"] { --cmd-glass: rgba(14, 26, 46, .86); }

  /* theme button clear of the phone's home bar */
  html[data-style="command"] body #mdThemeFab { bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; width: 48px !important; height: 48px !important; }

  /* employee portal header */
  html[data-style="command"] .employee-portal-topbar { padding: 16px !important; }
  html[data-style="command"] .employee-portal-topbar h1 { font-size: 20px !important; }
  html[data-style="command"] .employee-topbar-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; width: 100%; }
  html[data-style="command"] .employee-topbar-actions button { width: 100%; margin: 0 !important; }
}

@media (max-width: 400px) {
  html[data-style="command"] :is(.stats-grid, .kpi-grid) > div { padding: 12px !important; }
  html[data-style="command"] .topbar #currentDate { display: none !important; } /* the clock and status stay */
}

/* ---------- Printing (profile and roster print from this page): back to dark ink on white paper ---------- */
@media print {
  html[data-style="command"] {
    --md-surface: #FFFFFF !important; --md-on-surface: #142033 !important; --md-on-surface-variant: #4A5568 !important;
    --md-surface-container-lowest: #FFFFFF !important; --md-surface-container-low: #F5F7FA !important;
    --md-surface-container: #EEF2F6 !important; --md-surface-container-high: #E3E8EF !important;
    --md-outline: #94A3B8 !important; --md-outline-variant: #CBD5E1 !important;
    --cmd-glass: #FFFFFF; --cmd-glass-strong: #FFFFFF; --cmd-raise: #F1F5F9; --cmd-line: #CBD5E1; --cmd-line-strong: #94A3B8;
    background: #FFFFFF !important;
  }
  html[data-style="command"] #cmdBg, html[data-style="command"] .cmd-glow { display: none !important; }
  html[data-style="command"] th:not(.official-roster-document th) { background: #EEF2F6 !important; color: #142033 !important; }
  html[data-style="command"] .profile-count, html[data-style="command"] .profile-perf div, html[data-style="command"] .profile-day.empty { background: #FFFFFF !important; }
}

/* ===================================================================
   Motion
   Every animation of this skin is declared here, and only for people who have not asked
   their device for reduced motion. The declarations are !important because style.css
   switches all animation off with "*, *::before, *::after { animation: none !important }".
   =================================================================== */
@keyframes cmdDrift { to { transform: translate(80px, 60px) scale(1.1); } }
@keyframes cmdBtnSheen { 0% { transform: translateX(-75%) rotate(8deg); } 55%, 100% { transform: translateX(75%) rotate(8deg); } }
@keyframes cmdScanX { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@keyframes cmdReveal { from { clip-path: inset(100% 0 0 0); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes cmdDayPop { from { opacity: .2; transform: scale(.85); } }
@keyframes cmdSheet { from { transform: translateY(60px); opacity: .4; } }

@media (prefers-reduced-motion: no-preference) {
  /* ambient: drifting glows behind the page */
  html[data-style="command"] .cmd-glow.a { animation: cmdDrift 18s ease-in-out infinite alternate !important; }
  html[data-style="command"] .cmd-glow.b { animation: cmdDrift 22s ease-in-out infinite alternate-reverse !important; }

  /* live indicators */
  html[data-style="command"] .storage-status::before,
  html[data-style="command"] .cmd-pill i { animation: cmdPing 1.8s infinite !important; }
  html[data-style="command"] .notification-dot { animation: cmdBlink 1.6s ease-in-out infinite !important; }

  /* light travelling along the bottom edge of the top bar */
  html[data-style="command"] .topbar::after {
    content: "" !important; display: block !important; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--cmd-tele), transparent) -40% 0 / 30% 100% no-repeat;
    animation: cmdScanX 6s linear infinite !important;
  }

  /* navigation: the active marker grows in */
  html[data-style="command"] .sidebar .tab.active::before,
  html[data-style="command"] .sidebar button.sm-side.active::before { animation: cmdBar .35s var(--cmd-ease) !important; }

  /* primary buttons: a light sheen passes every few seconds (style.css already makes these
     buttons position:relative + isolation + overflow:hidden, and hides this ::before) */
  html[data-style="command"] body button:not(.tab):not(.icon-button):not(.md-swatch):not(.md-fab):not(.link-button):not(.login-mode-tab):not(.employee-thumb):not(.pw-x):not(.md-theme-x):not(.ghost):not(.secondary):not(.danger):not(.profile-trigger):not([data-sm-go]):not(.password-reset-bell-btn):not([class*="fm-"]):not([class*="sm-"]):not([class*="hr-"])::before {
    content: "" !important; display: block !important; position: absolute; inset: -90% -45%; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .26) 50%, transparent 62%) !important;
    transform: translateX(-75%) rotate(8deg);
    animation: cmdBtnSheen 4.2s ease-in-out infinite !important;
  }

  /* a tab opens: the panel slides up, then its cards and tiles follow one after another */
  html[data-style="command"] .tab-panel.active { animation: cmdIn .5s var(--cmd-ease) !important; }
  html[data-style="command"] .tab-panel.active > *,
  html[data-style="command"] .tab-panel.active :is(.stats-grid, .kpi-grid, .performance-summary-grid, .analytics-grid, .dashboard-grid) > *,
  html[data-style="command"] .employee-portal-page:not(.hidden) :is(.employee-summary-grid, .employee-portal-grid) > * { animation: cmdRise .6s var(--cmd-ease) backwards !important; }
  html[data-style="command"] :is(.tab-panel.active, .employee-portal-page) :is(.stats-grid, .kpi-grid, .employee-summary-grid, .performance-summary-grid, .employee-portal-grid, .analytics-grid, .dashboard-grid) > :nth-child(2),
  html[data-style="command"] .tab-panel.active > :nth-child(2) { animation-delay: .06s !important; }
  html[data-style="command"] :is(.tab-panel.active, .employee-portal-page) :is(.stats-grid, .kpi-grid, .employee-summary-grid, .performance-summary-grid, .employee-portal-grid, .analytics-grid, .dashboard-grid) > :nth-child(3),
  html[data-style="command"] .tab-panel.active > :nth-child(3) { animation-delay: .12s !important; }
  html[data-style="command"] :is(.tab-panel.active, .employee-portal-page) :is(.stats-grid, .kpi-grid, .employee-summary-grid, .performance-summary-grid, .employee-portal-grid, .analytics-grid, .dashboard-grid) > :nth-child(4),
  html[data-style="command"] .tab-panel.active > :nth-child(4) { animation-delay: .18s !important; }
  html[data-style="command"] :is(.tab-panel.active, .employee-portal-page) :is(.stats-grid, .kpi-grid, .employee-summary-grid, .performance-summary-grid, .employee-portal-grid, .analytics-grid, .dashboard-grid) > :nth-child(n+5),
  html[data-style="command"] .tab-panel.active > :nth-child(n+5) { animation-delay: .24s !important; }

  /* charts are revealed from the baseline up when their panel opens */
  html[data-style="command"] :is(.tab-panel.active, .employee-portal-page:not(.hidden)) canvas { animation: cmdReveal 1s var(--cmd-ease) .2s backwards !important; }

  /* employee calendar: days pop in row by row */
  html[data-style="command"] .employee-calendar-grid > * { animation: cmdDayPop .45s var(--cmd-ease) backwards !important; }
  html[data-style="command"] .employee-calendar-grid > :nth-child(n+8) { animation-delay: .05s !important; }
  html[data-style="command"] .employee-calendar-grid > :nth-child(n+15) { animation-delay: .1s !important; }
  html[data-style="command"] .employee-calendar-grid > :nth-child(n+22) { animation-delay: .15s !important; }
  html[data-style="command"] .employee-calendar-grid > :nth-child(n+29) { animation-delay: .2s !important; }
  html[data-style="command"] .employee-calendar-grid > :nth-child(n+36) { animation-delay: .25s !important; }

  /* dialogs (bottom sheets slide up on phones) */
  html[data-style="command"] :is(.form-modal-card, .pw-card, .modal-card) { animation: cmdPop .35s var(--cmd-ease) !important; }
  @media (max-width: 760px) {
    html[data-style="command"] :is(.form-modal-card, .pw-card) { animation: cmdSheet .42s var(--cmd-ease) !important; }
  }

  /* login: heartbeat line, radar sweep and pings, button sheen */
  html[data-style="command"] body #loginPage .cmd-ecg path:not(.base) { animation: cmdEcg 3.2s linear infinite !important; }
  html[data-style="command"] .cmd-sweep { animation: cmdSpin 5s linear infinite !important; }
  html[data-style="command"] .cmd-blip i::after { animation: cmdBlip 2.4s ease-out infinite !important; animation-delay: var(--d, 0s) !important; }
    html[data-style="command"] body #loginPage :is(.login-brand, h1, .cmd-ecg, .storage-status, .login-mode-tabs, .login-form-card) { animation: cmdRise .7s var(--cmd-ease) backwards !important; }
  html[data-style="command"] body #loginPage h1 { animation-delay: .06s !important; }
  html[data-style="command"] body #loginPage .cmd-ecg { animation-delay: .12s !important; }
  html[data-style="command"] body #loginPage .storage-status { animation-delay: .16s !important; }
  html[data-style="command"] body #loginPage .login-mode-tabs { animation-delay: .2s !important; }
  html[data-style="command"] body #loginPage .login-form-card { animation-delay: .26s !important; }
  html[data-style="command"] body #loginPage .cmd-radar { animation: cmdPop .9s var(--cmd-ease) .1s backwards !important; }
}

/* reduced motion: no transitions either (animations are already off via style.css) */
@media (prefers-reduced-motion: reduce) {
  html[data-style="command"] *, html[data-style="command"] *::before, html[data-style="command"] *::after { transition-duration: .001ms !important; }
}
