/* Spaces (Unistack) — Global light theme layer
   Mirrors the structure of `public/css/ustk-dark.css`, but for Bootstrap 5.3
   color-modes via `html[data-bs-theme="light"]`.
*/

/* -----------------------------------------------------------------------------
   Theme tokens (light)
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] .ustk-git-footer {
  background: var(--ustk-surface-2);
}

html[data-bs-theme="light"] {
  color-scheme: light;

  --ustk-bg: #f7f9fc;              /* app background */
  --ustk-surface: #ffffff;         /* cards, panels */
  --ustk-surface-2: #f1f5fb;       /* elevated / subtle tint */
  --ustk-surface-3: #e9effa;       /* hover / active */
  --ustk-border: rgba(15, 23, 42, 0.10);
  --ustk-border-strong: rgba(15, 23, 42, 0.16);
  --ustk-text: #0f172a;
  --ustk-muted: rgba(15, 23, 42, 0.62);
  --ustk-muted-2: rgba(15, 23, 42, 0.74);

  --ustk-primary: #2563eb;
  --ustk-primary-600: #1d4ed8;
  --ustk-success: #16a34a;
  --ustk-warning: #f59e0b;
  --ustk-danger: #dc2626;

  --ustk-shadow-sm: 0 1px 0 rgba(15, 23, 42, 0.06);
  --ustk-shadow-md: 0 18px 55px rgba(15, 23, 42, 0.10);
}

/* Bootstrap variable tuning (works with Bootstrap 5.3 color modes) */
html[data-bs-theme="light"] {
  --bs-body-bg: var(--ustk-bg);
  --bs-body-color: var(--ustk-text);
  --bs-secondary-color: var(--ustk-muted);
  --bs-tertiary-color: var(--ustk-muted);
  --bs-emphasis-color: var(--ustk-text);
  --bs-border-color: var(--ustk-border);
  --bs-border-color-translucent: var(--ustk-border);

  --bs-link-color: var(--ustk-primary);
  --bs-link-hover-color: var(--ustk-primary-600);

  --bs-heading-color: var(--ustk-text);
  --bs-secondary-bg: var(--ustk-surface);
  --bs-tertiary-bg: var(--ustk-surface-2);

  --bs-card-bg: var(--ustk-surface);
  --bs-modal-bg: var(--ustk-surface);
  --bs-dropdown-bg: var(--ustk-surface);
  --bs-popover-bg: var(--ustk-surface);
}

/* -----------------------------------------------------------------------------
   Global text/background
----------------------------------------------------------------------------- */
html[data-bs-theme="light"],
html[data-bs-theme="light"] body {
  background: var(--ustk-bg) !important;
  color: var(--ustk-text) !important;
}

/* Common layout wrapper used across pages */
html[data-bs-theme="light"] .page-shell {
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(800px 520px at 82% 18%, rgba(236, 72, 153, 0.06), transparent 62%),
    radial-gradient(900px 560px at 55% 85%, rgba(34, 211, 238, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(247, 249, 252, 1) 0%, rgba(243, 246, 252, 1) 48%, rgba(247, 249, 252, 1) 100%) !important;
  background-attachment: fixed;
  color: var(--ustk-text) !important;
}

/* Fix common dark utility usage in templates */
html[data-bs-theme="light"] .text-muted,
html[data-bs-theme="light"] .lead-muted {
  color: var(--ustk-muted) !important;
}

html[data-bs-theme="light"] .text-dark {
  color: var(--ustk-text) !important;
}

/* -----------------------------------------------------------------------------
   Navbar + top bars (modern glass on light)
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] .navbar {
  background-color: rgba(255, 255, 255, 0.72) !important;
  border-bottom-color: rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 1200;
}

/* -----------------------------------------------------------------------------
   Board header navigation (project tabs) — modern light “glass” panel
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] body.page-shell .ustk-project-nav {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.62) 100%);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

/* Make active tab feel “selected” without looking too dark/heavy */
html[data-bs-theme="light"] body.page-shell .ustk-project-nav .btn.ustk-tab-active,
html[data-bs-theme="light"] body.page-shell .ustk-project-nav .btn.ustk-tab-active:hover,
html[data-bs-theme="light"] body.page-shell .ustk-project-nav .btn.ustk-tab-active:focus {
  border-color: rgba(37, 99, 235, 0.35) !important;
  background: rgba(37, 99, 235, 0.10) !important;
  color: var(--ustk-text) !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.08) !important;
  transform: none !important;
}

/* Order notice (dashboard / space) — modern info hint, light */
html[data-bs-theme="light"] .ustk-order-notice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, var(--ustk-surface-2) 100%) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 10px;
  color: var(--ustk-muted-2) !important;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: var(--ustk-shadow-sm);
}
html[data-bs-theme="light"] .ustk-order-notice svg {
  flex-shrink: 0;
  color: var(--ustk-primary) !important;
  opacity: 0.95;
}

/* -----------------------------------------------------------------------------
   Cards / surfaces
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] .card,
html[data-bs-theme="light"] .workspace-card,
html[data-bs-theme="light"] .settings-card,
html[data-bs-theme="light"] .profile-card,
html[data-bs-theme="light"] .message-container,
html[data-bs-theme="light"] .message-form,
html[data-bs-theme="light"] .history-card,
html[data-bs-theme="light"] .task-header,
html[data-bs-theme="light"] .bill-container,
html[data-bs-theme="light"] .bill-preview,
html[data-bs-theme="light"] .invite-card {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: var(--ustk-border) !important;
  box-shadow: var(--ustk-shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-bs-theme="light"] .card .card-text {
  color: var(--ustk-muted-2);
}

/* Task/List labels: modern light “chip” style (with color dot like dark theme) */
html[data-bs-theme="light"] .label-badge {
  --ustk-label-color: #61bd4f;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(15, 23, 42, 0.92) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] .label-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ustk-label-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  flex: 0 0 auto;
}

html[data-bs-theme="light"] .label-badge:hover {
  background: rgba(37, 99, 235, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  color: rgba(15, 23, 42, 0.95) !important;
}

/* Notification list "New" label — gradient pill matching site (light) */
html[data-bs-theme="light"] .notification-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.95) 0%,
    rgba(99, 102, 241, 0.9) 40%,
    rgba(168, 85, 247, 0.88) 100%
  ) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

/* Reports list + detail (light) */
html[data-bs-theme="light"] body.page-shell .ustk-reports-header { margin-bottom: 1.25rem; }
html[data-bs-theme="light"] body.page-shell .ustk-reports-header__icon {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.2); color: #2563eb; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-header__title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.2; color: #0f172a; }
html[data-bs-theme="light"] body.page-shell .ustk-reports-domain-pill {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(15, 23, 42, 0.05); border: 1px solid rgba(15, 23, 42, 0.1); color: #64748b;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-source-form .form-select {
  min-width: 10rem; max-width: 16rem; font-size: 0.82rem; font-weight: 600;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-panel {
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06); overflow: hidden;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview {
  display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; padding: 0.75rem;
  border-radius: 16px; background: #fff; border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__item {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.75rem; border-radius: 10px; color: inherit; border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__item:hover {
  background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.2);
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem;
  font-size: 0.84rem; font-weight: 600; color: #0f172a; min-width: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__workspace,
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__workspace {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #2563eb; flex-shrink: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__workspace::after,
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__workspace::after {
  content: '·'; margin-left: 0.4rem; color: #64748b; font-weight: 400; text-transform: none; letter-spacing: normal;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.5rem; min-width: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; flex-shrink: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__total {
  font-size: 0.72rem; font-weight: 600; color: #64748b;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-type-overview__statuses {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem;
  padding: 0.65rem 1.1rem; background: #f8fafc; border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; min-width: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0f172a;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__total {
  font-size: 0.72rem; font-weight: 600; color: #64748b; text-transform: none; letter-spacing: normal;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__delete-form {
  margin: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__statuses {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-reports-group-header__statuses .ustk-reports-tab__count {
  font-size: 0.62rem; min-width: auto; height: auto; padding: 0.2rem 0.45rem; text-transform: none; letter-spacing: normal;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap {
  display: flex; align-items: stretch; border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap:last-child { border-bottom: none; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap:hover { background: rgba(37, 99, 235, 0.04); }
html[data-bs-theme="light"] body.page-shell .ustk-report-row {
  display: flex; align-items: flex-start; gap: 0.85rem; flex: 1; min-width: 0;
  padding: 1rem 0.65rem 1rem 1.1rem; text-decoration: none; color: inherit;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__aside {
  display: flex; align-items: center; justify-content: center;
  padding: 0.65rem 1rem 0.65rem 0.35rem; flex-shrink: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--unread {
  border-left: 3px solid #2563eb; background: rgba(37, 99, 235, 0.04);
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--unread:hover {
  background: rgba(37, 99, 235, 0.07);
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__icon {
  width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid transparent;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__icon--info {
  background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.22); color: #2563eb;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__icon--success {
  background: rgba(22, 163, 74, 0.1); border-color: rgba(22, 163, 74, 0.22); color: #16a34a;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__icon--failure {
  background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.2); color: #dc2626;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__icon--alert {
  background: rgba(234, 88, 12, 0.1); border-color: rgba(234, 88, 12, 0.24); color: #ea580c;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__icon--check {
  background: rgba(14, 165, 233, 0.12); border-color: rgba(14, 165, 233, 0.28); color: #0284c7;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__icon--activity {
  background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.28); color: #db2777;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-status-label {
  display: inline-flex; align-items: center; padding: 0.18rem 0.55rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; flex-shrink: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-status-label--info {
  background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.22); color: #2563eb;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-status-label--success {
  background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.22); color: #15803d;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-status-label--failure {
  background: rgba(220, 38, 38, 0.08); border: 1px solid rgba(220, 38, 38, 0.2); color: #b91c1c;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-status-label--alert {
  background: rgba(234, 88, 12, 0.1); border: 1px solid rgba(234, 88, 12, 0.24); color: #c2410c;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-status-label--check {
  background: rgba(14, 165, 233, 0.12); border: 1px solid rgba(14, 165, 233, 0.28); color: #0369a1;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-status-label--activity {
  background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.28); color: #be185d;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--status-failure.ustk-report-row-wrap--unread { border-left-color: #dc2626; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--status-alert.ustk-report-row-wrap--unread { border-left-color: #ea580c; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--status-success.ustk-report-row-wrap--unread { border-left-color: #16a34a; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--status-check.ustk-report-row-wrap--unread { border-left-color: #0284c7; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--status-activity.ustk-report-row-wrap--unread { border-left-color: #ec4899; }
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-card--activity .ustk-report-detail-header { background: rgba(236, 72, 153, 0.06); }
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-card--check .ustk-report-detail-header { background: rgba(14, 165, 233, 0.06); }
html[data-bs-theme="light"] body.page-shell .ustk-reports-tab__count--blue { color: #0284c7; }
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-card--failure .ustk-report-detail-header { background: rgba(220, 38, 38, 0.04); }
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-card--alert .ustk-report-detail-header { background: rgba(234, 88, 12, 0.06); }
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-card--success .ustk-report-detail-header { background: rgba(22, 163, 74, 0.05); }
html[data-bs-theme="light"] body.page-shell .ustk-report-row__subject { font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.35rem; color: #0f172a; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--unread .ustk-report-row__subject { font-weight: 700; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.75rem; color: #64748b; margin-bottom: 0.45rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__preview {
  font-size: 0.82rem; line-height: 1.45; color: #475569; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-row__chev { flex-shrink: 0; margin-top: 0.35rem; opacity: 0.35; }
html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap:hover .ustk-report-row__chev { opacity: 0.65; }

html[data-bs-theme="light"] body.page-shell .ustk-report-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.42rem 0.72rem; border-radius: 10px; font-size: 0.72rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff; color: #64748b; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-action:hover {
  color: #0f172a; border-color: rgba(15, 23, 42, 0.16); background: #f8fafc;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-action--create {
  border-color: rgba(37, 99, 235, 0.28); background: rgba(37, 99, 235, 0.08); color: #2563eb;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-action--create:hover {
  border-color: rgba(37, 99, 235, 0.4); background: rgba(37, 99, 235, 0.14); color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); transform: translateY(-1px);
}
html[data-bs-theme="light"] body.page-shell .ustk-report-action--linked {
  border-color: rgba(22, 163, 74, 0.28); background: rgba(22, 163, 74, 0.08); color: #15803d;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-action--linked:hover {
  border-color: rgba(22, 163, 74, 0.4); background: rgba(22, 163, 74, 0.14); color: #166534;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-action--ghost { background: transparent; }
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.5rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-create-modal .modal-content {
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}
html[data-bs-theme="light"] body.page-shell .ustk-report-create-modal .modal-title {
  font-weight: 700; letter-spacing: -0.02em; color: #0f172a;
}

html[data-bs-theme="light"] body.page-shell .ustk-task-status-banner {
  display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.7rem 1rem;
  font-size: 0.84rem; line-height: 1.45; border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-bs-theme="light"] body.page-shell .ustk-task-status-banner--archived {
  background: #f1f5f9; color: #334155;
}
html[data-bs-theme="light"] body.page-shell .ustk-task-status-banner__label {
  display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: #e2e8f0; color: #475569; flex-shrink: 0;
}
html[data-bs-theme="light"] body.page-shell #unitEditModal.ustk-task-edit--archived .modal-content {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}
@media (max-width: 640px) {
  html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap { flex-wrap: wrap; }
  html[data-bs-theme="light"] body.page-shell .ustk-report-row { padding-right: 1.1rem; }
  html[data-bs-theme="light"] body.page-shell .ustk-report-row__aside {
    width: 100%; padding: 0 1.1rem 0.85rem; justify-content: flex-start;
  }
}
@media (min-width: 641px) {
  html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap .ustk-report-action { opacity: 0.78; }
  html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap:hover .ustk-report-action,
  html[data-bs-theme="light"] body.page-shell .ustk-report-row-wrap--unread .ustk-report-action,
  html[data-bs-theme="light"] body.page-shell .ustk-report-action:focus-visible { opacity: 1; }
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-empty { padding: 3.5rem 1.5rem; text-align: center; }
html[data-bs-theme="light"] body.page-shell .ustk-reports-empty__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: #f1f5f9; border: 1px solid rgba(15, 23, 42, 0.08); color: #94a3b8;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-card {
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06); overflow: hidden;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-header {
  padding: 1.25rem 1.35rem; border-bottom: 1px solid rgba(15, 23, 42, 0.06); background: #f8fafc;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-detail-title {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; margin: 0 0 0.65rem; color: #0f172a;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-body {
  margin: 0; padding: 1.25rem 1.35rem; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.84rem; line-height: 1.6; color: #334155; max-height: 70vh; overflow: auto;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-back-link {
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: #64748b; text-decoration: none; margin-bottom: 1rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-report-back-link:hover { color: #2563eb; }
html[data-bs-theme="light"] body.page-shell .ustk-reports-pagination {
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-pagination .pagination {
  margin-bottom: 0;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.35rem; border-radius: 14px;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tabs--sources .ustk-reports-tab {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 10px;
  font-size: 0.84rem; font-weight: 600; text-decoration: none; color: #64748b; border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab:hover {
  color: #0f172a; background: rgba(37, 99, 235, 0.06);
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab--active {
  color: #0f172a; background: rgba(37, 99, 235, 0.1); border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab__count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem;
  padding: 0 0.35rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; line-height: 1;
  background: #e2e8f0; color: #334155;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab__count--green {
  background: #16a34a; color: #fff;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab__count--orange {
  background: #ea580c; color: #fff;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab__count--red {
  background: #dc2626; color: #fff;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab__count--pink {
  background: #ec4899; color: #fff;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab-count {
  font-size: 0.72rem; font-weight: 600; border-radius: 999px; padding: 0.28rem 0.55rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab-count--green {
  background: #16a34a !important; color: #fff !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab-count--orange {
  background: #ea580c !important; color: #fff !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab-count--red {
  background: #dc2626 !important; color: #fff !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-reports-tab-count--pink {
  background: #ec4899 !important; color: #fff !important;
}

/* Dashboard (spaces home) */
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-header {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-header__icon {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(37, 99, 235, 0.1); border: 1px solid rgba(37, 99, 235, 0.2); color: #2563eb; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-header__title {
  font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.2; color: #0f172a;
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-header__subtitle { color: #64748b; font-size: 0.9rem; margin: 0.35rem 0 0; }
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-header--compact .ustk-dashboard-header__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-header--compact .ustk-dashboard-header__title {
  font-size: 1.28rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-members .badge {
  font-weight: 500;
}
html[data-bs-theme="light"] body.page-shell .ustk-super-admin-page-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  vertical-align: middle;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #b45309;
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-stat {
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 14px; padding: 0.95rem 1.1rem; height: 100%;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-stat__label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; margin-bottom: 0.35rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-stat__value { font-size: 1.65rem; font-weight: 700; line-height: 1.1; color: #0f172a; }
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-stat__value--accent { color: #2563eb; }
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-stat__value--danger { color: #dc2626; }
html[data-bs-theme="light"] body.page-shell .ustk-space-card {
  cursor: pointer; border-radius: 16px !important; overflow: hidden; border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #fff !important; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card:hover {
  transform: translateY(-3px); border-color: rgba(37, 99, 235, 0.25) !important; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card__accent {
  height: 3px; background: linear-gradient(90deg, rgba(37, 99, 235, 0.85), rgba(6, 182, 212, 0.65));
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card__title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.3; color: #0f172a; }
html[data-bs-theme="light"] body.page-shell .ustk-space-card__desc { color: #64748b; font-size: 0.88rem; line-height: 1.45; margin: 0.65rem 0 0; min-height: 2.6rem; }
html[data-bs-theme="light"] body.page-shell .ustk-space-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.85rem; }
html[data-bs-theme="light"] body.page-shell .ustk-space-card__chip {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(15, 23, 42, 0.05); border: 1px solid rgba(15, 23, 42, 0.08); color: #64748b;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card__chip--tasks {
  background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.18); color: #2563eb;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card__boards { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid rgba(15, 23, 42, 0.06); }
html[data-bs-theme="light"] body.page-shell .ustk-space-card__boards-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; margin-bottom: 0.45rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card__board-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; padding: 0.35rem 0; line-height: 1.4;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card__board-link { font-size: 0.84rem; font-weight: 600; color: #0f172a; text-decoration: none; }
html[data-bs-theme="light"] body.page-shell .ustk-space-card__board-link:hover { color: #2563eb; }
html[data-bs-theme="light"] body.page-shell .ustk-space-card__tracking {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding: 0.15rem 0 0.45rem 0.5rem; font-size: 0.78rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-card__actions .btn-link { opacity: 0.65; transition: opacity 0.15s ease; }
html[data-bs-theme="light"] body.page-shell .ustk-space-card:hover .ustk-space-card__actions .btn-link { opacity: 1; }
html[data-bs-theme="light"] body.page-shell .workspace-drag-handle {
  cursor: grab; padding: 0.2rem; margin: -0.2rem 0.15rem -0.2rem -0.2rem; border-radius: 6px; opacity: 0.45; color: #64748b; display: inline-flex; align-items: center;
}
html[data-bs-theme="light"] body.page-shell .workspace-drag-handle:hover { opacity: 0.95; background: rgba(15, 23, 42, 0.05); }
html[data-bs-theme="light"] body.page-shell .workspace-drag-handle:active { cursor: grabbing; }
html[data-bs-theme="light"] body.page-shell #workspaces-sortable .workspace-col { transition: opacity 0.2s; }
html[data-bs-theme="light"] body.page-shell #workspaces-sortable .workspace-col.dragging { opacity: 0.5; }
html[data-bs-theme="light"] body.page-shell #workspaces-sortable .workspace-col.drag-over {
  outline: 2px dashed rgba(37, 99, 235, 0.55); outline-offset: 4px; border-radius: 16px;
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-section { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(15, 23, 42, 0.08); }
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-section__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-section__title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; margin: 0;
}
html[data-bs-theme="light"] body.page-shell .ustk-org-card {
  border-radius: 14px !important; border: 1px solid rgba(15, 23, 42, 0.08) !important; background: #fff !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
html[data-bs-theme="light"] body.page-shell .ustk-org-card:hover {
  transform: translateY(-2px); border-color: rgba(37, 99, 235, 0.22) !important; box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}
html[data-bs-theme="light"] body.page-shell .ustk-org-card__title { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.35rem; color: #0f172a; }
html[data-bs-theme="light"] body.page-shell .ustk-hidden-space-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.75rem; border-radius: 999px; font-size: 0.84rem;
  background: rgba(15, 23, 42, 0.04); border: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-bs-theme="light"] body.page-shell .ustk-hidden-space-chip a { color: #0f172a; text-decoration: none; font-weight: 600; }
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-empty {
  text-align: center; padding: 3.5rem 1.5rem; border-radius: 16px; border: 1px dashed rgba(15, 23, 42, 0.15); background: rgba(248, 250, 252, 0.8);
}
html[data-bs-theme="light"] body.page-shell .ustk-dashboard-empty__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.16); color: #2563eb;
}
html[data-bs-theme="light"] body.page-shell .ustk-space-badge-all { background-color: #2563eb !important; color: #fff !important; font-size: 0.68rem; font-weight: 600; }
html[data-bs-theme="light"] body.page-shell .ustk-space-badge-my { background-color: #dc2626 !important; color: #fff !important; font-size: 0.68rem; font-weight: 600; }
html[data-bs-theme="light"] body.page-shell .ustk-org-group__label { font-size: 0.82rem; font-weight: 600; margin-bottom: 0.5rem; color: #334155; }
html[data-bs-theme="light"] body.page-shell .ustk-org-group__pill {
  display: inline-flex; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-decoration: none;
  background: rgba(15, 23, 42, 0.04); border: 1px solid rgba(15, 23, 42, 0.08); color: #0f172a; transition: background-color 0.15s ease, border-color 0.15s ease;
}
html[data-bs-theme="light"] body.page-shell .ustk-org-group__pill:hover {
  background: rgba(37, 99, 235, 0.08); border-color: rgba(37, 99, 235, 0.18); color: #2563eb;
}

/* -------------------------------------------------------------------------- */
/* Files page (board tab) — modern light list UI                               */
/* -------------------------------------------------------------------------- */

html[data-bs-theme="light"] body.page-files .ustk-file-card.card {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

html[data-bs-theme="light"] body.page-files .ustk-badge-glass {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  color: var(--ustk-text) !important;
}

html[data-bs-theme="light"] body.page-files .ustk-file-list {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}

html[data-bs-theme="light"] body.page-files .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s, border-color 0.2s;
}
html[data-bs-theme="light"] body.page-files .file-item:last-child {
  border-bottom: 0;
}
html[data-bs-theme="light"] body.page-files .file-item:hover {
  background-color: rgba(37, 99, 235, 0.06) !important;
  border-bottom-color: rgba(37, 99, 235, 0.14);
}

html[data-bs-theme="light"] body.page-files .file-icon {
  font-size: 1.8rem;
  margin-right: 6px;
  filter: drop-shadow(0 10px 26px rgba(15, 23, 42, 0.10));
}

html[data-bs-theme="light"] body.page-files .file-info {
  flex: 1;
  min-width: 0;
}

html[data-bs-theme="light"] body.page-files .file-name {
  font-weight: 650;
  color: var(--ustk-text) !important;
  margin-bottom: 0.25rem;
}
html[data-bs-theme="light"] body.page-files .file-name a {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="light"] body.page-files .file-name a:hover {
  color: rgba(37, 99, 235, 1) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-bs-theme="light"] body.page-files .file-meta {
  font-size: 0.875rem;
  color: var(--ustk-muted) !important;
}
html[data-bs-theme="light"] body.page-files .file-meta a {
  color: rgba(37, 99, 235, 1) !important;
}
html[data-bs-theme="light"] body.page-files .file-meta a:hover {
  color: rgba(29, 78, 216, 1) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-bs-theme="light"] body.page-files .file-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

html[data-bs-theme="light"] body.page-files .file-size {
  color: var(--ustk-muted) !important;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  html[data-bs-theme="light"] body.page-files .file-item {
    align-items: flex-start;
  }
  html[data-bs-theme="light"] body.page-files .file-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}

/* -----------------------------------------------------------------------------
   Board task cards (match dark theme “modern” treatment but light)
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] body.page-shell .unit-card,
html[data-bs-theme="light"] body.page-shell .task-card {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08) !important;
  transition:
    transform 0.12s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
html[data-bs-theme="light"] body.page-shell .unit-card:hover,
html[data-bs-theme="light"] body.page-shell .task-card:hover {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  transform: translateY(-1px);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.10) !important;
}

/* Status variants */
html[data-bs-theme="light"] body.page-shell .unit-card.is-done,
html[data-bs-theme="light"] body.page-shell .task-card.is-done {
  background: rgba(22, 163, 74, 0.08) !important;
  border-color: rgba(22, 163, 74, 0.22) !important;
}
html[data-bs-theme="light"] body.page-shell .unit-card.is-pinned,
html[data-bs-theme="light"] body.page-shell .task-card.is-pinned {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.22) !important;
}
html[data-bs-theme="light"] body.page-shell .unit-card.is-urgent,
html[data-bs-theme="light"] body.page-shell .task-card.is-urgent {
  background: rgba(220, 38, 38, 0.07) !important;
  border-color: rgba(220, 38, 38, 0.22) !important;
}
html[data-bs-theme="light"] body.page-shell .unit-card.is-waiting-for-answer,
html[data-bs-theme="light"] body.page-shell .task-card.is-waiting-for-answer,
html[data-bs-theme="light"] body.page-shell .unit-card.ustk-task-card.is-waiting-for-answer,
html[data-bs-theme="light"] body.page-shell .ustk-kanban-column .unit-card.is-waiting-for-answer {
  background-color: rgba(254, 226, 226, 0.95) !important;
  background: rgba(254, 226, 226, 0.95) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
}
html[data-bs-theme="light"] body.page-shell .unit-card.is-waiting-for-answer:hover,
html[data-bs-theme="light"] body.page-shell .task-card.is-waiting-for-answer:hover,
html[data-bs-theme="light"] body.page-shell .unit-card.ustk-task-card.is-waiting-for-answer:hover,
html[data-bs-theme="light"] body.page-shell .ustk-kanban-column .unit-card.is-waiting-for-answer:hover {
  background-color: rgba(254, 202, 202, 0.98) !important;
  background: rgba(254, 202, 202, 0.98) !important;
  border-color: rgba(220, 38, 38, 0.45) !important;
}
html[data-bs-theme="light"] body.page-shell .list-view-row.is-waiting-for-answer {
  background-color: rgba(254, 226, 226, 0.95) !important;
}

/* Drag & drop feedback should win over hover */
html[data-bs-theme="light"] body.page-shell .unit-card.drag-over,
html[data-bs-theme="light"] body.page-shell .unit-card.drag-over:hover {
  background: rgba(34, 211, 238, 0.10) !important;
  border: 2px dashed rgba(34, 211, 238, 0.55) !important;
  transform: none !important;
}

/* Fast mode: highlight tasks that have active time tracking (even though timers are hidden) */
.ustk-fast-mode .unit-card.ustk-tracking-active {
  border: 2px solid rgba(34, 197, 94, 0.85) !important;
  box-shadow:
    0 18px 55px rgba(15, 23, 42, 0.08),
    0 0 0 2px rgba(34, 197, 94, 0.18) !important;
}

.ustk-fast-mode .list-view-row.ustk-tracking-active {
  box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.95) !important;
}

/* Done pending: orange checkbox in task list */
.unit-card.is-done-pending .form-check-input:checked {
  background-color: #eab308 !important;
  border-color: #eab308 !important;
}
.unit-card.is-done-pending .form-check-input:checked:focus {
  box-shadow: 0 0 0 0.25rem rgba(234, 179, 8, 0.25) !important;
}

/* Waiting for answer: red checkbox in task list */
.unit-card.is-waiting-for-answer .form-check-input {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}
.unit-card.is-waiting-for-answer .form-check-input:checked {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}
.unit-card.is-waiting-for-answer .form-check-input:focus,
.unit-card.is-waiting-for-answer .form-check-input:checked:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}
body.page-shell .ustk-task-card.is-waiting-for-answer .form-check-input {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

/* Board list drop targets + placeholders */
html[data-bs-theme="light"] body.page-shell .list-container.drag-over {
  background: rgba(34, 211, 238, 0.10) !important;
  border-color: rgba(34, 211, 238, 0.42) !important;
}
html[data-bs-theme="light"] body.page-shell .units.drag-over {
  background: rgba(34, 211, 238, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.20) !important;
}
html[data-bs-theme="light"] body.page-shell .drop-placeholder {
  background: rgba(37, 99, 235, 0.05) !important;
  border: 2px dashed rgba(37, 99, 235, 0.25) !important;
}

/* Assigned user “chips” (tasks, lists, modals, list view, board view) */
html[data-bs-theme="light"] .user-badge {
  background-color: rgba(37, 99, 235, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.16) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="light"] .user-badge:hover {
  background-color: rgba(37, 99, 235, 0.10) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
}

/* Labels wrapper (group labels in tasks/list rows with a subtle border) */
html[data-bs-theme="light"] .ustk-labels-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

/* -----------------------------------------------------------------------------
   Dropdowns & modals (slightly frosted)
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] body.page-shell .dropdown-menu,
html[data-bs-theme="light"] body.page-shell .modal-content {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

/* -----------------------------------------------------------------------------
   Buttons + focus rings (modern)
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] body.page-shell .btn-primary {
  border-color: rgba(37, 99, 235, 0.55) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 1) 0%, rgba(99, 102, 241, 0.95) 55%, rgba(34, 211, 238, 0.85) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
}

html[data-bs-theme="light"] body.page-shell .btn-outline-primary {
  border-color: rgba(37, 99, 235, 0.32) !important;
  color: rgba(37, 99, 235, 1) !important;
  background: rgba(255, 255, 255, 0.60) !important;
}
html[data-bs-theme="light"] body.page-shell .btn-outline-primary:hover {
  border-color: rgba(37, 99, 235, 0.45) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

html[data-bs-theme="light"] body.page-shell .btn:focus,
html[data-bs-theme="light"] body.page-shell .btn:focus-visible,
html[data-bs-theme="light"] body.page-shell .form-control:focus,
html[data-bs-theme="light"] body.page-shell .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

/* -----------------------------------------------------------------------------
   Top nav profile dropdown (light)
----------------------------------------------------------------------------- */
html[data-bs-theme="light"] body.page-shell .ustk-top-nav .ustk-brand-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ustk-text) !important;
}

/* Breadcrumb chevrons (top nav + board title) */
html[data-bs-theme="light"] body.page-shell .ustk-crumb-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  color: rgba(71, 85, 105, 0.65);
}
html[data-bs-theme="light"] body.page-shell .ustk-crumb-sep__svg {
  display: block;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb .ustk-crumb-sep__svg {
  width: 11px;
  height: 11px;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb {
  margin-left: 0.65rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb__track {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: min(100%, 52vw);
  padding: 0.2rem 0.45rem 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb__link {
  color: rgba(71, 85, 105, 0.92) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.12rem 0.3rem;
  border-radius: 999px;
  white-space: nowrap;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb__link:hover {
  color: rgba(15, 23, 42, 0.96) !important;
  background: rgba(15, 23, 42, 0.05);
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb__current {
  color: rgba(15, 23, 42, 0.96);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.12rem 0.3rem;
  white-space: nowrap;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb .ustk-crumb-sep {
  margin: 0 0.02rem;
  color: rgba(100, 116, 139, 0.55);
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb__board-select {
  width: auto;
  max-width: 14rem;
  height: 1.65rem;
  margin: 0;
  padding: 0 1.35rem 0 0.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.15rem center / 12px 12px;
  color: rgba(15, 23, 42, 0.92);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb__board-select:hover {
  background: rgba(15, 23, 42, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.15rem center / 12px 12px;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-breadcrumb__board-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

/* Page content title tagline "by nomads.lt" (e.g. dashboard) — Recursive italic, smaller, thin */
html[data-bs-theme="light"] body.page-shell .ustk-page-brand-tagline {
  font-family: 'Recursive', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.38em;
  letter-spacing: -0.02em;
  color: var(--ustk-muted) !important;
  opacity: 0.92;
}
html[data-bs-theme="light"] body.page-shell a.ustk-page-brand-tagline:visited,
html[data-bs-theme="light"] body.page-shell a.ustk-page-brand-tagline:focus {
  color: var(--ustk-muted) !important;
  text-decoration: none !important;
}
html[data-bs-theme="light"] body.page-shell a.ustk-page-brand-tagline:hover {
  color: var(--ustk-muted) !important;
  text-decoration: underline !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-icon-btn.btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-bs-theme="light"] body.page-shell .ustk-icon-btn--label.btn {
  width: auto;
  padding: 0 10px;
  gap: 0.4rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-nav-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  overflow: visible;
  padding: 6px 4px 2px 4px;
}

html[data-bs-theme="light"] body.page-shell .ustk-badge-pill {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(35%, -35%);
  display: none;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  border: 2px solid var(--ustk-bg, #f8fafc);
}

html[data-bs-theme="light"] body.page-shell .ustk-nav-badge-stack {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -35%);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  z-index: 2;
  pointer-events: none;
}

html[data-bs-theme="light"] body.page-shell .ustk-nav-badge-stack .ustk-badge-pill {
  position: static;
  transform: none;
  display: none;
}

html[data-bs-theme="light"] body.page-shell .ustk-badge-pill--green {
  background: #16a34a !important;
  color: #fff !important;
  border-color: var(--ustk-bg, #f8fafc) !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-badge-pill--red {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: var(--ustk-bg, #f8fafc) !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-badge-pill--orange {
  background: #ea580c !important;
  color: #fff !important;
  border-color: var(--ustk-bg, #f8fafc) !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-badge-pill--pink {
  background: #ec4899 !important;
  color: #fff !important;
  border-color: var(--ustk-bg, #f8fafc) !important;
}

/* Project/board navigation buttons: keep icon sizing consistent (SVGs have no explicit size attrs). */
html[data-bs-theme="light"] body.page-shell .ustk-btn-with-ico {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
html[data-bs-theme="light"] body.page-shell .ustk-btn-with-ico svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Compact mode: tighten board header / nav / tracking banner */
html.ustk-compact-mode body.page-shell .ustk-project-header {
  margin-bottom: 0.35rem !important; /* override .mb-2 */
  padding-top: 0.35rem !important; /* override .pt-6 */
  padding-bottom: 0.35rem !important; /* override .pb-2 */
}

html.ustk-compact-mode body.page-shell .ustk-project-header .mb-1 {
  margin-bottom: 0.15rem !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-header .gap-2 {
  gap: 0.4rem !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-header__title {
  font-size: 1.1rem !important;
  line-height: 1.15 !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-header .text-muted {
  font-size: 0.8rem !important;
  line-height: 1.2 !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-header__icon-btn.btn.ustk-icon-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-header__icon-btn svg {
  width: 16px !important;
  height: 16px !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav {
  margin-bottom: 0.5rem !important; /* override .mb-3 */
  padding: 0.5rem !important; /* override .p-3 */
  border-radius: 12px;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .btn {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.8rem !important;
  line-height: 1.1 !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .ustk-btn-with-ico {
  gap: 0.35rem !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .ustk-btn-with-ico svg {
  width: 16px !important;
  height: 16px !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .mt-2 {
  margin-top: 0.35rem !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .gap-3 {
  gap: 0.5rem !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .gap-2 {
  gap: 0.4rem !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .form-check-label {
  font-size: 0.8rem !important;
  line-height: 1.1 !important;
}

html.ustk-compact-mode body.page-shell .ustk-project-nav .form-check-input {
  transform: scale(0.9);
  transform-origin: left center;
}

/* Compact mode: hide archive icon button on task cards in lists */
/* Archive icon kept visible in compact mode */

html.ustk-compact-mode body.page-shell .ustk-project-nav .badge,
html.ustk-compact-mode body.page-shell .ustk-project-nav .text-muted.small {
  font-size: 0.75rem !important;
}

html.ustk-compact-mode body.page-shell #active-tracking-users-container {
  margin-bottom: 0.5rem !important; /* override .mb-3 */
}

html.ustk-compact-mode body.page-shell #active-tracking-users-container > .d-flex {
  padding: 0.5rem !important; /* override .p-3 + inline background panel */
  min-height: 34px !important;
  border-radius: 10px !important;
  gap: 0.4rem !important;
}

html.ustk-compact-mode body.page-shell #active-tracking-users-container .fw-semibold {
  font-size: 0.8rem !important;
  line-height: 1.1 !important;
  margin-right: 0.25rem !important;
}

html.ustk-compact-mode body.page-shell #active-tracking-users-container #active-tracking-users-list .badge {
  padding: 0.2rem 0.5rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

html.ustk-compact-mode body.page-shell #active-tracking-users-container #active-tracking-users-list span {
  font-size: 0.75rem !important;
}

html[data-bs-theme="light"] body.page-shell .ustk-top-nav .ustk-profile-trigger.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 12px 0 10px;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: rgba(255, 255, 255, 0.65) !important;
  color: var(--ustk-text) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
  /* Performance: avoid "glass" blur on a frequently hovered control (can feel laggy). */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* Make hover feel instant (no easing delay from Bootstrap button transitions). */
  transition: none !important;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-nav .ustk-profile-trigger.btn:hover {
  border-color: rgba(37, 99, 235, 0.28) !important;
  background: rgba(37, 99, 235, 0.08) !important;
  transform: none;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-nav .show > .ustk-profile-trigger.btn {
  border-color: rgba(37, 99, 235, 0.32) !important;
  background: rgba(37, 99, 235, 0.10) !important;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-nav .ustk-profile-trigger.dropdown-toggle::after {
  display: none;
}
html[data-bs-theme="light"] body.page-shell .ustk-top-nav .ustk-profile-trigger__text {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  letter-spacing: -0.01em;
}

html[data-bs-theme="light"] body.page-shell .ustk-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
}
html[data-bs-theme="light"] body.page-shell .ustk-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 700;
}
html[data-bs-theme="light"] body.page-shell .ustk-avatar--md {
  width: 38px;
  height: 38px;
  font-size: 16px;
  font-weight: 700;
}
html[data-bs-theme="light"] body.page-shell .ustk-avatar--initial {
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.30);
  background: linear-gradient(135deg, rgba(37, 99, 235, 1) 0%, rgba(236, 72, 153, 0.90) 55%, rgba(34, 211, 238, 0.85) 100%);
}

/* Inline user avatars (task cards, assignee chips) */
html[data-bs-theme="light"] img.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
}
html[data-bs-theme="light"] .user-avatar-initial {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #2563eb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Hard cap large profile uploads (not inline avatars) */
html[data-bs-theme="light"] img.ustk-avatar,
html[data-bs-theme="light"] img.message-avatar,
html[data-bs-theme="light"] img.profile-photo,
html[data-bs-theme="light"] img.profile-avatar {
  max-width: 200px;
  max-height: 200px;
}

html[data-bs-theme="light"] body.page-shell .ustk-profile-menu.dropdown-menu {
  padding: 10px;
  border-radius: 16px;
  min-width: 290px;
  /* Performance: override global dropdown glass blur for the profile menu. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-bs-theme="light"] body.page-shell .ustk-profile-menu__divider.dropdown-divider {
  margin: 8px 6px;
  border-top-color: rgba(15, 23, 42, 0.10);
}
html[data-bs-theme="light"] body.page-shell .ustk-profile-menu .dropdown-item {
  border-radius: 12px;
  padding: 10px 10px;
  color: var(--ustk-text) !important;
  /* Instant hover highlight (no "laggy" eased transition). */
  transition: none;
}
html[data-bs-theme="light"] body.page-shell .ustk-profile-menu .dropdown-item:hover,
html[data-bs-theme="light"] body.page-shell .ustk-profile-menu .dropdown-item:focus {
  background: rgba(37, 99, 235, 0.08) !important;
  transform: none;
}
html[data-bs-theme="light"] body.page-shell .ustk-profile-menu .dropdown-item.text-danger:hover,
html[data-bs-theme="light"] body.page-shell .ustk-profile-menu .dropdown-item.text-danger:focus {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* Board dropdown in nav — legacy id hook; trail select uses __board-select */
html[data-bs-theme="light"] body.page-shell #boardSelect.ustk-top-breadcrumb__board-select {
  background-color: transparent !important;
  border-color: transparent !important;
}

/* Unified page styles (dashboard-aligned) — light mode */
html[data-bs-theme="light"] body.page-shell .profile-card,
html[data-bs-theme="light"] body.page-shell .settings-card {
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}
html[data-bs-theme="light"] body.page-shell .profile-photo-frame {
  width: 160px; height: 160px; border-radius: 16px; overflow: hidden;
  border: 3px solid rgba(37, 99, 235, 0.45); background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
}
html[data-bs-theme="light"] body.page-shell .profile-photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-bs-theme="light"] body.page-shell .profile-photo-initial {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 3rem; font-weight: 700; user-select: none;
  background: linear-gradient(135deg, #2563eb, #ec4899);
}
html[data-bs-theme="light"] body.page-shell .photo-upload-area { position: relative; display: inline-block; }
html[data-bs-theme="light"] body.page-shell .photo-upload-btn {
  position: absolute; bottom: 0; right: 0; background: #2563eb; color: #fff; border: none;
  border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
html[data-bs-theme="light"] body.page-shell .message-card,
html[data-bs-theme="light"] body.page-shell .ustk-interactive-card {
  cursor: pointer; border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #fff !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
html[data-bs-theme="light"] body.page-shell .message-card:hover,
html[data-bs-theme="light"] body.page-shell .ustk-interactive-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}
html[data-bs-theme="light"] body.page-shell .message-card.unread {
  background: rgba(37, 99, 235, 0.06) !important;
  border-left: 3px solid #2563eb !important;
}
html[data-bs-theme="light"] body.page-shell .project-card {
  border: 1px solid rgba(15, 23, 42, 0.08) !important; border-radius: 16px !important;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: #fff !important;
}
html[data-bs-theme="light"] body.page-shell .project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1) !important;
}
html[data-bs-theme="light"] body.page-shell .ustk-notification-panel,
html[data-bs-theme="light"] body.page-shell .ustk-data-panel {
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: #fff !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06) !important;
}
html[data-bs-theme="light"] body.page-shell .notification-item.unread {
  background-color: rgba(37, 99, 235, 0.06) !important;
  border-left: 3px solid #2563eb !important;
}
html[data-bs-theme="light"] body.page-shell .login-card,
html[data-bs-theme="light"] body.page-shell .register-card {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08) !important;
}
html[data-bs-theme="light"] body.page-shell .landing-card {
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 18px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
}
html[data-bs-theme="light"] body.page-shell .skill-item {
  margin-bottom: 1rem; padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
}

/* My Hours */
html[data-bs-theme="light"] body.page-shell .hours-table tbody tr.task-row {
  background: rgba(15, 23, 42, 0.03);
}
html[data-bs-theme="light"] body.page-shell .task-name-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}
html[data-bs-theme="light"] body.page-shell .task-name-link:hover {
  color: #1e40af;
  text-decoration: underline;
}
html[data-bs-theme="light"] body.page-shell .task-list {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-top: 4px;
}
html[data-bs-theme="light"] body.page-shell .task-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}
html[data-bs-theme="light"] body.page-shell .task-status-done {
  background: #d1fae5;
  color: #065f46;
}
html[data-bs-theme="light"] body.page-shell .task-status-archived {
  background: #e5e7eb;
  color: #6b7280;
}
html[data-bs-theme="light"] body.page-shell .money-cell,
html[data-bs-theme="light"] body.page-shell .my-hours-money-cost {
  color: #2563eb;
  font-weight: 600;
}
html[data-bs-theme="light"] body.page-shell .money-cell-client {
  color: #059669;
  font-weight: 600;
}
html[data-bs-theme="light"] body.page-shell .tracking-info {
  color: var(--bs-secondary-color);
}
html[data-bs-theme="light"] body.page-shell .tracking-date {
  font-size: 0.75rem;
  color: var(--bs-tertiary-color);
}
html[data-bs-theme="light"] body.page-shell .tracking-paid-indicator.paid {
  color: #2563eb;
}
html[data-bs-theme="light"] body.page-shell .my-hours-accent {
  color: #2563eb;
}
html[data-bs-theme="light"] body.page-shell .my-hours-breakdown-panel {
  background: rgba(15, 23, 42, 0.03);
}
html[data-bs-theme="light"] body.page-shell .my-hours-summary h5 {
  font-size: 1rem;
  font-weight: 600;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ustk-muted);
  margin-bottom: 0.55rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-type-pill {
  background: rgba(15, 23, 42, 0.05);
  color: var(--ustk-text);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-type-pill--active,
html[data-bs-theme="light"] body.page-shell .ustk-prompt-type-pill:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1d4ed8;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-type-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-weight: 500;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-board-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-board-pill__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-board-pill__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ustk-text);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel--main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__head--main {
  padding: 1.25rem 1.5rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #2563eb;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__icon--tags {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.2);
  color: #0284c7;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__icon--prompt {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
  color: #7c3aed;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ustk-muted);
  line-height: 1.4;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__body {
  padding: 1.15rem 1.25rem 1.25rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel--main .ustk-prompt-create-panel__body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1 1 auto;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-panel__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-body-input {
  min-height: 360px;
  resize: vertical;
  line-height: 1.6;
  font-size: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-char-count {
  font-variant-numeric: tabular-nums;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input--combo {
  position: relative;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__combo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__combo:focus-within {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__chips {
  display: contents;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.45rem 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  line-height: 1;
  padding: 0 0.1rem;
  font-size: 1rem;
  opacity: 0.7;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__chip-remove:hover {
  opacity: 1;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__field {
  flex: 1 1 120px;
  min-width: 120px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ustk-text);
  font-size: 0.88rem;
  padding: 0.25rem 0.35rem;
  box-shadow: none;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__suggestions {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  background: #fff;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__quick-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ustk-muted);
  margin-bottom: 0.55rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__quick-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  color: var(--ustk-text);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__quick-btn:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

html[data-bs-theme="light"] body.page-shell .ustk-tag-input__quick-btn.is-selected,
html[data-bs-theme="light"] body.page-shell .ustk-tag-input__quick-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 991.98px) {
  html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-layout {
    grid-template-columns: 1fr;
  }

  html[data-bs-theme="light"] body.page-shell .ustk-prompt-create-board-pill {
    align-items: flex-start;
    width: 100%;
  }
}

html[data-bs-theme="light"] body.page-shell .ustk-prompts-header__icon {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__section {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__section--last {
  border-bottom: 0;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ustk-muted);
  margin-bottom: 0.6rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__tabs {
  margin: 0;
  padding: 0.25rem;
  background: rgba(15, 23, 42, 0.03);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.02);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__clear {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ustk-muted);
  text-decoration: none;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-filters-panel__clear:hover {
  color: #2563eb;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row-wrap {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: background-color 0.15s ease;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row-wrap:last-child {
  border-bottom: none;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row-wrap:hover {
  background: rgba(37, 99, 235, 0.04);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  color: inherit;
  text-decoration: none;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__icon--manual {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #16a34a;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__icon--incoming {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--ustk-muted);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--ustk-text);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__badge--manual {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: #16a34a;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__badge--app {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--ustk-muted);
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--ustk-muted);
  margin-bottom: 0.35rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__preview {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(71, 85, 105, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row__chev {
  display: inline-flex;
  align-items: center;
  color: var(--ustk-muted);
  opacity: 0.45;
  flex-shrink: 0;
  padding-top: 0.15rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

html[data-bs-theme="light"] body.page-shell .ustk-prompt-row-wrap:hover .ustk-prompt-row__chev {
  opacity: 0.9;
  transform: translateX(2px);
}