/* Spaces (Unistack) — Global dark theme layer
   This file is intentionally plain CSS (no Tailwind) so it can safely sit on top
   of Bootstrap CDN + existing inline styles across Blade pages. */

@import url('https://fonts.googleapis.com/css2?family=Recursive:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');
@import url('ustk-mobile.css');
@import url('ustk-board.css');
@import url('ustk-app.css');

/* App palette */
:root {
  --ustk-bg: #0b1220;          /* app background */
  --ustk-surface: #0f172a;     /* cards, panels */
  --ustk-surface-2: #111c33;   /* elevated */
  --ustk-surface-3: #16213d;   /* hover / active */
  --ustk-border: rgba(148, 163, 184, 0.22);
  --ustk-border-strong: rgba(148, 163, 184, 0.32);
  --ustk-text: #e5e7eb;
  --ustk-muted: #94a3b8;
  --ustk-muted-2: #a8b3c7;

  --ustk-primary: #3b82f6;
  --ustk-primary-600: #2563eb;
  --ustk-success: #22c55e;
  --ustk-warning: #f59e0b;
  --ustk-danger: #ef4444;

  --ustk-shadow-sm: 0 1px 0 rgba(2, 6, 23, 0.55);
  --ustk-shadow-md: 0 10px 30px rgba(2, 6, 23, 0.45);

  /* Layering: keep overlays above sticky headers/navbars (navbar uses z-index: 1200) */
  --bs-backdrop-zindex: 3990;
  --bs-modal-zindex: 4000;
  --bs-popover-zindex: 4100;
  --bs-tooltip-zindex: 4200;
}

/* -----------------------------------------------------------------------------
   Overlay layering fixes
   Bootstrap may define these z-index CSS variables on `.modal` / `.modal-backdrop`
   themselves, which would override our `:root` values. Force them here so modals
   never end up underneath the sticky top navigation.
----------------------------------------------------------------------------- */
html .modal {
  --bs-modal-zindex: 4000;
  z-index: var(--bs-modal-zindex) !important;
}
html .modal-backdrop {
  --bs-backdrop-zindex: 3990;
  z-index: var(--bs-backdrop-zindex) !important;
}

/* Delete / danger buttons: transparent background + red text + red border (global) */
.btn-danger,
.btn-outline-danger {
  --ustk-danger-btn: rgb(var(--bs-danger-rgb, 220, 53, 69));
  background-color: transparent !important;
  border-color: var(--ustk-danger-btn) !important;
  color: var(--ustk-danger-btn) !important;
}
.btn-danger:hover,
.btn-outline-danger:hover {
  background-color: transparent !important;
  border-color: var(--ustk-danger-btn) !important;
  color: var(--ustk-danger-btn) !important;
}
.btn-danger:active,
.btn-outline-danger:active {
  background-color: transparent !important;
  border-color: var(--ustk-danger-btn) !important;
  color: var(--ustk-danger-btn) !important;
}
.btn-danger:focus-visible,
.btn-outline-danger:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb, 220, 53, 69), 0.25) !important;
}
.btn-danger:disabled,
.btn-outline-danger:disabled,
.btn-danger.disabled,
.btn-outline-danger.disabled {
  background-color: transparent !important;
  border-color: var(--ustk-danger-btn) !important;
  color: var(--ustk-danger-btn) !important;
  opacity: 0.55;
}

/* Force dark color-scheme so form controls + scrollbars behave properly */
html[data-bs-theme="dark"] {
  color-scheme: dark;
}

/* Bootstrap variable tuning (works with Bootstrap 5.3 color modes) */
html[data-bs-theme="dark"] {
  --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: #7fb0ff;
  --bs-link-hover-color: #9ac2ff;

  --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="dark"],
html[data-bs-theme="dark"] body {
  background: var(--ustk-bg) !important;
  color: var(--ustk-text) !important;
}

/* Common layout wrapper used across pages */
html[data-bs-theme="dark"] .page-shell {
  background: var(--ustk-bg) !important;
  color: var(--ustk-text) !important;
}

/* Fix common light utility usage in templates */
html[data-bs-theme="dark"] .bg-white {
  background-color: var(--ustk-surface) !important;
}
html[data-bs-theme="dark"] .bg-light {
  background-color: var(--ustk-bg) !important;
}
html[data-bs-theme="dark"] .text-dark {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .lead-muted {
  color: var(--ustk-muted) !important;
}
html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-top,
html[data-bs-theme="dark"] .border-end,
html[data-bs-theme="dark"] .border-start,
html[data-bs-theme="dark"] .border-bottom {
  border-color: var(--ustk-border) !important;
}

/* Navbar + top bars */
html[data-bs-theme="dark"] .navbar {
  background-color: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1200; /* stay above sticky headers/cards */
}

/* Cards */
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .workspace-card {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
  box-shadow: var(--ustk-shadow-sm);
}
html[data-bs-theme="dark"] .card .card-text {
  color: var(--ustk-muted-2);
}

/* Custom “card” blocks used on several pages */
html[data-bs-theme="dark"] .settings-card,
html[data-bs-theme="dark"] .profile-card,
html[data-bs-theme="dark"] .message-container,
html[data-bs-theme="dark"] .message-form,
html[data-bs-theme="dark"] .history-card,
html[data-bs-theme="dark"] .task-header,
html[data-bs-theme="dark"] .bill-container,
html[data-bs-theme="dark"] .bill-preview,
html[data-bs-theme="dark"] .invite-card {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}

html[data-bs-theme="dark"] .task-card {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
}

/* “Unread” accents */
html[data-bs-theme="dark"] .message-card.unread {
  background-color: rgba(59, 130, 246, 0.10) !important;
  border-left-color: rgba(59, 130, 246, 0.85) !important;
}
html[data-bs-theme="dark"] .notification-item.unread {
  background-color: rgba(59, 130, 246, 0.08) !important;
  border-left-color: rgba(59, 130, 246, 0.85) !important;
}
html[data-bs-theme="dark"] .notification-item:hover {
  background-color: rgba(148, 163, 184, 0.10) !important;
}

/* Files page */
html[data-bs-theme="dark"] .file-item:hover {
  background-color: rgba(148, 163, 184, 0.08) !important;
}
html[data-bs-theme="dark"] .file-name {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .file-meta,
html[data-bs-theme="dark"] .file-size,
html[data-bs-theme="dark"] .tracking-info,
html[data-bs-theme="dark"] .tracking-date,
html[data-bs-theme="dark"] .task-list,
html[data-bs-theme="dark"] .estimate-cell {
  color: var(--ustk-muted) !important;
}

/* My Hours / list-like rows */
html[data-bs-theme="dark"] .summary-card {
  background: var(--ustk-surface) !important;
  border: 1px solid var(--ustk-border) !important;
}
html[data-bs-theme="dark"] .tracking-row,
html[data-bs-theme="dark"] .task-row {
  background: rgba(148, 163, 184, 0.06) !important;
}

/* Summary boxes (Tracked Hours page) */
html[data-bs-theme="dark"] .summary-box {
  border-radius: 8px;
  border: 1px solid var(--ustk-border) !important;
  background: rgba(148, 163, 184, 0.06) !important;
}
html[data-bs-theme="dark"] .summary-box--paid {
  border-color: rgba(34, 197, 94, 0.35) !important;
  background: rgba(34, 197, 94, 0.10) !important;
}
html[data-bs-theme="dark"] .summary-box--paid .h4 {
  color: #bbf7d0 !important;
}
html[data-bs-theme="dark"] .summary-box--unpaid {
  border-color: rgba(239, 68, 68, 0.35) !important;
  background: rgba(239, 68, 68, 0.10) !important;
}
html[data-bs-theme="dark"] .summary-box--unpaid .h4 {
  color: #fecaca !important;
}

/* Timeline page */
html[data-bs-theme="dark"] .layout,
html[data-bs-theme="dark"] .timeline-header-wrapper,
html[data-bs-theme="dark"] .timeline-header,
html[data-bs-theme="dark"] .unit-row-left {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
}

/* List view (board/.../list) */
html[data-bs-theme="dark"] .list-view-header {
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .list-view-row {
  border-bottom-color: rgba(148, 163, 184, 0.14) !important;
}
html[data-bs-theme="dark"] .list-view-row:hover {
  background: rgba(148, 163, 184, 0.08) !important;
}
html[data-bs-theme="dark"] .list-view-row.is-done {
  background: rgba(34, 197, 94, 0.10) !important;
}
html[data-bs-theme="dark"] .list-view-row.is-urgent {
  background: rgba(239, 68, 68, 0.10) !important;
}
html[data-bs-theme="dark"] .list-view-row.is-waiting-for-answer {
  background-color: rgba(127, 29, 29, 0.45) !important;
}
html[data-bs-theme="dark"] .list-separator {
  background: rgba(148, 163, 184, 0.08) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}

/* Timeline-specific highlights (make them subtle on dark) */
html[data-bs-theme="dark"] .timeline-header-left,
html[data-bs-theme="dark"] .timeline-header-right,
html[data-bs-theme="dark"] .list-header-row,
html[data-bs-theme="dark"] .list-header-row .unit-row-right {
  background: rgba(148, 163, 184, 0.06) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .day-cell {
  border-left-color: rgba(148, 163, 184, 0.12) !important;
}
html[data-bs-theme="dark"] .today,
html[data-bs-theme="dark"] .today-indicator {
  background-color: rgba(245, 158, 11, 0.14) !important;
}
html[data-bs-theme="dark"] .weekend,
html[data-bs-theme="dark"] .weekend-indicator {
  background-color: rgba(148, 163, 184, 0.06) !important;
}
html[data-bs-theme="dark"] .unit-wrapper {
  border-bottom-color: rgba(148, 163, 184, 0.12) !important;
}
html[data-bs-theme="dark"] .unit-row-right:hover {
  background: rgba(148, 163, 184, 0.08) !important;
}
html[data-bs-theme="dark"] .list-name {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .assign-hint {
  color: var(--ustk-muted) !important;
}



/* Buttons: global “landing-style” gradient primary (every page) */
html[data-bs-theme="dark"] .btn-primary,
html[data-bs-theme="dark"] .btn-ustk-primary {
  border-color: rgba(99, 102, 241, 0.55) !important;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 1) 0%,
    rgba(236, 72, 153, 0.90) 55%,
    rgba(34, 211, 238, 0.85) 100%
  ) !important;
  color: #0b1020 !important;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
}
html[data-bs-theme="dark"] .btn-primary:hover,
html[data-bs-theme="dark"] .btn-primary:focus,
html[data-bs-theme="dark"] .btn-ustk-primary:hover,
html[data-bs-theme="dark"] .btn-ustk-primary:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
html[data-bs-theme="dark"] .btn-primary:active,
html[data-bs-theme="dark"] .btn-ustk-primary:active {
  filter: brightness(0.98);
  transform: translateY(0);
}
html[data-bs-theme="dark"] .btn-primary:disabled,
html[data-bs-theme="dark"] .btn-primary.disabled,
html[data-bs-theme="dark"] .btn-ustk-primary:disabled,
html[data-bs-theme="dark"] .btn-ustk-primary.disabled {
  filter: none;
  transform: none;
  opacity: 0.65;
}

/* Outline primary: glass button */
html[data-bs-theme="dark"] .btn-outline-primary,
html[data-bs-theme="dark"] .btn-ustk-outline {
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: var(--ustk-text) !important;
  background: rgba(10, 16, 34, 0.35) !important;
}
html[data-bs-theme="dark"] .btn-outline-primary:hover,
html[data-bs-theme="dark"] .btn-ustk-outline:hover {
  border-color: rgba(34, 211, 238, 0.40) !important;
  background: rgba(34, 211, 238, 0.10) !important;
  color: var(--ustk-text) !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-bs-theme="dark"] .btn-primary:hover,
  html[data-bs-theme="dark"] .btn-ustk-primary:hover {
    transform: none;
  }
}
html[data-bs-theme="dark"] .btn-outline-danger:hover {
  background-color: rgba(239, 68, 68, 0.14) !important;
}

/* Forms */
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select {
  background-color: rgba(15, 23, 42, 0.7) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus {
  border-color: rgba(59, 130, 246, 0.7) !important;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18) !important;
}
html[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(148, 163, 184, 0.75) !important;
}

/* Alerts */
html[data-bs-theme="dark"] .alert {
  border-color: var(--ustk-border) !important;
}
html[data-bs-theme="dark"] .alert-success {
  background-color: rgba(34, 197, 94, 0.12) !important;
  color: #bbf7d0 !important;
}
html[data-bs-theme="dark"] .alert-danger {
  background-color: rgba(239, 68, 68, 0.12) !important;
  color: #fecaca !important;
}
html[data-bs-theme="dark"] .alert-warning {
  background-color: rgba(245, 158, 11, 0.14) !important;
  color: #fde68a !important;
}
html[data-bs-theme="dark"] .alert-info {
  background-color: rgba(56, 189, 248, 0.12) !important;
  color: #bae6fd !important;
}

/* Order notice (dashboard / space) — modern info hint, dark */
html[data-bs-theme="dark"] .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(59, 130, 246, 0.08) 0%, var(--ustk-surface-2) 100%) !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !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="dark"] .ustk-order-notice svg {
  flex-shrink: 0;
  color: var(--ustk-primary) !important;
  opacity: 0.95;
}

/* Modals */
html[data-bs-theme="dark"] .modal-content {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
  box-shadow: var(--ustk-shadow-md);
}
html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer {
  border-color: var(--ustk-border) !important;
}

/* Dropdowns */
html[data-bs-theme="dark"] .dropdown-menu {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
  z-index: 2000; /* ensure profile dropdown stays above board UI */
}
html[data-bs-theme="dark"] .dropdown-item {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus {
  background: rgba(148, 163, 184, 0.12) !important;
}

/* Tables */
html[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ustk-text);
  --bs-table-border-color: var(--ustk-border);
  --bs-table-striped-bg: rgba(148, 163, 184, 0.06);
  --bs-table-hover-bg: rgba(148, 163, 184, 0.08);
}

/* Badges */
html[data-bs-theme="dark"] .badge.bg-primary {
  background-color: rgba(59, 130, 246, 0.9) !important;
}

/* Notification list "New" label — gradient pill matching site primary */
html[data-bs-theme="dark"] .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.2);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 1) 0%,
    rgba(236, 72, 153, 0.92) 50%,
    rgba(34, 211, 238, 0.9) 100%
  ) !important;
  color: #0b1020 !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Reports list + detail */
html[data-bs-theme="dark"] body.page-shell .ustk-reports-header {
  margin-bottom: 1.25rem;
}

html[data-bs-theme="dark"] 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(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-header__title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

html[data-bs-theme="dark"] 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(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--ustk-muted);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-source-form .form-select {
  min-width: 10rem;
  max-width: 16rem;
  background-color: rgba(10, 16, 34, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--ustk-text);
  font-size: 0.82rem;
  font-weight: 600;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-panel {
  background: rgba(10, 16, 34, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.45);
  overflow: hidden;
}

html[data-bs-theme="dark"] 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: rgba(10, 16, 34, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-reports-type-overview__item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
}

html[data-bs-theme="dark"] 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: var(--ustk-text);
  min-width: 0;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-type-overview__workspace,
html[data-bs-theme="dark"] body.page-shell .ustk-reports-group-header__workspace {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
  flex-shrink: 0;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-type-overview__workspace::after,
html[data-bs-theme="dark"] body.page-shell .ustk-reports-group-header__workspace::after {
  content: '·';
  margin-left: 0.4rem;
  color: var(--ustk-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-reports-type-overview__total {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ustk-muted);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-type-overview__statuses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

html[data-bs-theme="dark"] 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: rgba(2, 6, 23, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-reports-group-header__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ustk-text);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-group-header__total {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ustk-muted);
  text-transform: none;
  letter-spacing: normal;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-group-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-group-header__delete-form {
  margin: 0;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-group-header__statuses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-report-row-wrap {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: background-color 0.15s ease;
}

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

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap:hover {
  background: rgba(59, 130, 246, 0.08);
}

html[data-bs-theme="dark"] 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;
  transition: color 0.15s ease;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-report-row-wrap--unread {
  background: rgba(59, 130, 246, 0.06);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--unread:hover {
  background: rgba(59, 130, 246, 0.1);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--unread {
  border-left: 3px solid rgba(59, 130, 246, 0.85);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-report-row__icon--info {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.32);
  color: #93c5fd;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row__icon--success {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
  color: #86efac;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row__icon--failure {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row__icon--alert {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fcd34d;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row__icon--check {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-report-status-label--info {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.32);
  color: #93c5fd;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-status-label--success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #86efac;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-status-label--failure {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-status-label--alert {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: #fcd34d;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-status-label--check {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #7dd3fc;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--status-failure.ustk-report-row-wrap--unread {
  border-left-color: rgba(239, 68, 68, 0.85);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--status-alert.ustk-report-row-wrap--unread {
  border-left-color: rgba(245, 158, 11, 0.9);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--status-success.ustk-report-row-wrap--unread {
  border-left-color: rgba(34, 197, 94, 0.85);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--status-check.ustk-report-row-wrap--unread {
  border-left-color: rgba(56, 189, 248, 0.9);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-detail-card--check .ustk-report-detail-header {
  background: rgba(56, 189, 248, 0.08);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-tab__count--blue {
  color: #7dd3fc;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-detail-card--failure .ustk-report-detail-header {
  background: rgba(239, 68, 68, 0.06);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-detail-card--alert .ustk-report-detail-header {
  background: rgba(245, 158, 11, 0.08);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-detail-card--success .ustk-report-detail-header {
  background: rgba(34, 197, 94, 0.06);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row__subject {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--unread .ustk-report-row__subject {
  font-weight: 700;
}

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

html[data-bs-theme="dark"] body.page-shell .ustk-report-row__preview {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-row__chev {
  flex-shrink: 0;
  margin-top: 0.35rem;
  opacity: 0.35;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

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

html[data-bs-theme="dark"] 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;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(10, 16, 34, 0.55);
  color: var(--ustk-muted);
  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="dark"] body.page-shell .ustk-report-action svg {
  flex-shrink: 0;
  opacity: 0.85;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-action:hover {
  color: var(--ustk-text);
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-action--create {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-action--create:hover {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.22);
  color: #dbeafe;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.35);
  transform: translateY(-1px);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-action--linked {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-action--linked:hover {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-action--ghost {
  background: transparent;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-report-create-modal .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 16, 34, 0.96);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-create-modal .modal-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[data-bs-theme="dark"] 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(148, 163, 184, 0.16);
}

html[data-bs-theme="dark"] body.page-shell .ustk-task-status-banner--archived {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

html[data-bs-theme="dark"] 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: rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
  flex-shrink: 0;
}

html[data-bs-theme="dark"] body.page-shell #unitEditModal.ustk-task-edit--archived .modal-content {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2);
}

@media (max-width: 640px) {
  html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap {
    flex-wrap: wrap;
  }

  html[data-bs-theme="dark"] body.page-shell .ustk-report-row {
    padding-right: 1.1rem;
  }

  html[data-bs-theme="dark"] body.page-shell .ustk-report-row__aside {
    width: 100%;
    padding: 0 1.1rem 0.85rem;
    justify-content: flex-start;
  }

  html[data-bs-theme="dark"] body.page-shell .ustk-report-action__label {
    display: inline;
  }
}

@media (min-width: 641px) {
  html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap .ustk-report-action {
    opacity: 0.72;
  }

  html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap:hover .ustk-report-action,
  html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--unread .ustk-report-action,
  html[data-bs-theme="dark"] body.page-shell .ustk-report-action:focus-visible {
    opacity: 1;
  }
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-empty {
  padding: 3.5rem 1.5rem;
  text-align: center;
}

html[data-bs-theme="dark"] 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: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--ustk-muted);
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-detail-card {
  background: rgba(10, 16, 34, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.45);
  overflow: hidden;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-detail-header {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(2, 6, 23, 0.2);
}

html[data-bs-theme="dark"] 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;
}

html[data-bs-theme="dark"] 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: rgba(226, 232, 240, 0.92);
  max-height: 70vh;
  overflow: auto;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ustk-muted);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.15s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-report-back-link:hover {
  color: #93c5fd;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-pagination {
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(10, 16, 34, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

html[data-bs-theme="dark"] body.page-shell .ustk-reports-pagination .page-link {
  background-color: rgba(10, 16, 34, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--ustk-text);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-pagination .page-item.active .page-link {
  background-color: rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--ustk-text);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-pagination .page-item.disabled .page-link {
  background-color: rgba(10, 16, 34, 0.45);
  color: var(--ustk-muted);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 14px;
  background: rgba(10, 16, 34, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

html[data-bs-theme="dark"] 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: var(--ustk-muted);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-tab:hover {
  color: var(--ustk-text);
  background: rgba(59, 130, 246, 0.08);
}

html[data-bs-theme="dark"] body.page-shell .ustk-reports-tab--active {
  color: var(--ustk-text);
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
}

html[data-bs-theme="dark"] 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: rgba(148, 163, 184, 0.18);
  color: var(--ustk-text);
}

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

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

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

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-reports-tab-count--green {
  background: #16a34a !important;
  color: #fff !important;
}

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

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

/* Dashboard (spaces home) */
html[data-bs-theme="dark"] 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="dark"] 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(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-header__title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-header__subtitle {
  color: var(--ustk-muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-header--compact .ustk-dashboard-header__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-header--compact .ustk-dashboard-header__title {
  font-size: 1.28rem;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-members .badge {
  font-weight: 500;
}

html[data-bs-theme="dark"] 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.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-stat {
  background: rgba(10, 16, 34, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  height: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ustk-muted);
  margin-bottom: 0.35rem;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-stat__value {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ustk-text);
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-stat__value--accent {
  color: #93c5fd;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-stat__value--danger {
  color: #fca5a5;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card {
  cursor: pointer;
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: rgba(10, 16, 34, 0.58) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.45) !important;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.55) !important;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card__accent {
  height: 3px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.85), rgba(34, 211, 238, 0.65));
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card__desc {
  color: var(--ustk-muted-2);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0.65rem 0 0;
  min-height: 2.6rem;
}

html[data-bs-theme="dark"] 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="dark"] 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(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--ustk-muted);
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card__chip--tasks {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.28);
  color: #bfdbfe;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card__boards {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card__boards-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ustk-muted);
  margin-bottom: 0.45rem;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-space-card__board-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ustk-text);
  text-decoration: none;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card__board-link:hover {
  color: #93c5fd;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-space-card__actions .btn-link {
  opacity: 0.65;
  transition: opacity 0.15s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-space-card:hover .ustk-space-card__actions .btn-link {
  opacity: 1;
}

html[data-bs-theme="dark"] 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: var(--ustk-muted);
  display: inline-flex;
  align-items: center;
}

html[data-bs-theme="dark"] body.page-shell .workspace-drag-handle:hover {
  opacity: 0.95;
  background: rgba(148, 163, 184, 0.12);
}

html[data-bs-theme="dark"] body.page-shell .workspace-drag-handle:active {
  cursor: grabbing;
}

html[data-bs-theme="dark"] body.page-shell #workspaces-sortable .workspace-col {
  transition: opacity 0.2s;
}

html[data-bs-theme="dark"] body.page-shell #workspaces-sortable .workspace-col.dragging {
  opacity: 0.5;
}

html[data-bs-theme="dark"] body.page-shell #workspaces-sortable .workspace-col.drag-over {
  outline: 2px dashed rgba(59, 130, 246, 0.65);
  outline-offset: 4px;
  border-radius: 16px;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-dashboard-section__title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ustk-muted);
  margin: 0;
}

html[data-bs-theme="dark"] body.page-shell .ustk-org-card {
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: rgba(10, 16, 34, 0.45) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-org-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.4) !important;
}

html[data-bs-theme="dark"] body.page-shell .ustk-org-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

html[data-bs-theme="dark"] 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(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] body.page-shell .ustk-hidden-space-chip a {
  color: var(--ustk-text);
  text-decoration: none;
  font-weight: 600;
}

html[data-bs-theme="dark"] body.page-shell .ustk-dashboard-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(10, 16, 34, 0.35);
}

html[data-bs-theme="dark"] 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(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

html[data-bs-theme="dark"] 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="dark"] 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="dark"] body.page-shell .ustk-org-group__label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

html[data-bs-theme="dark"] 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(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--ustk-text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-org-group__pill:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #bfdbfe;
}

html[data-bs-theme="dark"] .list-container:not(.ustk-kanban-column) {
  background: rgba(148, 163, 184, 0.14) !important;
  border-color: var(--ustk-border) !important;
}
html[data-bs-theme="dark"] .unit-card {
  background: var(--ustk-surface) !important;
  box-shadow: var(--ustk-shadow-sm) !important;
  border: 1px solid var(--ustk-border) !important;
}
html[data-bs-theme="dark"] .unit-card:hover {
  background: var(--ustk-surface-2) !important;
}

/* Rich-text / markdown editor blocks used on board pages */
html[data-bs-theme="dark"] .description-toolbar {
  background: rgba(15, 23, 42, 0.75) !important;
  border-bottom-color: var(--ustk-border) !important;
}
html[data-bs-theme="dark"] .description-toolbar button {
  background: rgba(15, 23, 42, 0.75) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .description-toolbar button:hover {
  background: rgba(148, 163, 184, 0.12) !important;
}
html[data-bs-theme="dark"] .description-display {
  background-color: rgba(148, 163, 184, 0.08) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal.ustk-task-edit .description-display {
  background: transparent !important;
}
html[data-bs-theme="dark"] .description-display blockquote {
  border-left-color: rgba(148, 163, 184, 0.35) !important;
  color: var(--ustk-muted-2) !important;
}
html[data-bs-theme="dark"] .description-display code,
html[data-bs-theme="dark"] .description-display pre {
  background-color: rgba(148, 163, 184, 0.12) !important;
  color: var(--ustk-text) !important;
}

html[data-bs-theme="dark"] .description-editor {
  background-color: rgba(15, 23, 42, 0.7) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .description-editor:empty:before {
  /* Placeholder ("Add description") - keep visible on dark editor surfaces */
  color: rgba(148, 163, 184, 0.78) !important;
}
html[data-bs-theme="dark"] .description-editor blockquote {
  border-left-color: rgba(148, 163, 184, 0.35) !important;
  color: var(--ustk-muted-2) !important;
}
html[data-bs-theme="dark"] .description-editor code,
html[data-bs-theme="dark"] .description-editor pre {
  background-color: rgba(148, 163, 184, 0.12) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .description-editor a {
  color: rgba(147, 197, 253, 0.95) !important;
}

/* Task/List labels: landing-page “glass chip” style */
html[data-bs-theme="dark"] .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: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(248, 250, 252, 0.94) !important;
  background: rgba(10, 16, 34, 0.35) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

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

html[data-bs-theme="dark"] .label-badge:hover {
  background: rgba(10, 16, 34, 0.48) !important;
  border-color: rgba(148, 163, 184, 0.30) !important;
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .check-dropdown {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
  box-shadow: var(--ustk-shadow-md) !important;
  color: var(--ustk-text) !important;
}

/* Assigned user “chips” (tasks, lists, modals, list view, board view) */
html[data-bs-theme="dark"] .user-badge {
  background-color: rgba(148, 163, 184, 0.12) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .user-badge:hover {
  background-color: rgba(148, 163, 184, 0.16) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
}

/* Labels wrapper (group labels in tasks/list rows with a subtle border) */
html[data-bs-theme="dark"] .ustk-labels-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(10, 16, 34, 0.30);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* “Assign users / labels” containers inside modals (they were hardcoded to #f8f9fa inline) */
html[data-bs-theme="dark"] #usersContainer,
html[data-bs-theme="dark"] #createTaskUsersContainer,
html[data-bs-theme="dark"] #listUsersContainer,
html[data-bs-theme="dark"] #labelsContainer,
html[data-bs-theme="dark"] #listLabelsContainer {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}

/* Create task modal: cover drop zone was hardcoded to light theme */
html[data-bs-theme="dark"] #createTaskModal #createTaskCoverDropZone {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}
html[data-bs-theme="dark"] #createTaskModal #createTaskCoverDropZone [style*="color: #666"] {
  color: rgba(226, 232, 240, 0.78) !important;
}

/* Dropdowns used by assign-user/assign-label UIs (often have inline white background) */
html[data-bs-theme="dark"] #addUserDropdown,
html[data-bs-theme="dark"] #createTaskAddUserDropdown,
html[data-bs-theme="dark"] #addListUserDropdown,
html[data-bs-theme="dark"] #addLabelDropdown,
html[data-bs-theme="dark"] #createTaskLabelsDropdown,
html[data-bs-theme="dark"] #addListLabelDropdown {
  background-color: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
  box-shadow: var(--ustk-shadow-md) !important;
}

/* The board modals build dropdown items as plain <div> with hardcoded light backgrounds via JS.
   Force them to match the landing-page dark theme surfaces. */
html[data-bs-theme="dark"] #addUserDropdown > div,
html[data-bs-theme="dark"] #createTaskAddUserDropdown > div,
html[data-bs-theme="dark"] #addListUserDropdown > div,
html[data-bs-theme="dark"] #addLabelDropdown > div,
html[data-bs-theme="dark"] #createTaskLabelsDropdown > div {
  background-color: transparent !important; /* beats JS-set #f8f9fa / #e9ecef */
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #addUserDropdown > div:hover,
html[data-bs-theme="dark"] #createTaskAddUserDropdown > div:hover,
html[data-bs-theme="dark"] #addListUserDropdown > div:hover,
html[data-bs-theme="dark"] #addLabelDropdown > div:hover,
html[data-bs-theme="dark"] #createTaskLabelsDropdown > div:hover {
  background-color: rgba(148, 163, 184, 0.12) !important;
}

/* Make dropdown items feel native on dark */
html[data-bs-theme="dark"] .dropdown-item {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus {
  background: rgba(148, 163, 184, 0.12) !important;
}

/* Small readonly cost display (was forced to #f8f9fa) */
html[data-bs-theme="dark"] #costDisplayInput {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}

/* Edit task modal (#unitEditModal): kill remaining light inline backgrounds */
html[data-bs-theme="dark"] #unitEditModal #manualTimeTrackingForm,
html[data-bs-theme="dark"] #unitEditModal #commentForm,
html[data-bs-theme="dark"] #unitEditModal #askClientForm {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal #commentInput,
html[data-bs-theme="dark"] #unitEditModal #askClientInput {
  background-color: rgba(2, 6, 23, 0.35) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #commentInput:empty:before,
html[data-bs-theme="dark"] #askClientInput:empty:before {
  color: rgba(148, 163, 184, 0.75) !important;
}

/* Edit task modal core surfaces */
html[data-bs-theme="dark"] #unitEditModal:not(.ustk-task-edit) .modal-content {
  /* Lighter “white-tinted” glass, matching the landing dark theme aesthetic */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.07) 100%),
    rgba(10, 16, 34, 0.44) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.65);
}
html[data-bs-theme="dark"] #unitEditModal.ustk-task-edit .modal-content {
  background: #16181f !important;
  background-image: none !important;
  border: 1px solid #2a2e3a !important;
  border-radius: 18px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-bs-theme="dark"] #unitEditModal .modal-header,
html[data-bs-theme="dark"] #unitEditModal .modal-body,
html[data-bs-theme="dark"] #unitEditModal .modal-footer {
  background: transparent !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}

/* Edit task modal: tab bar — dark glass, no white background */
html[data-bs-theme="dark"] #unitEditModal:not(.ustk-task-edit) .task-modal-tabs-wrapper {
  background: rgba(10, 16, 34, 0.55) !important;
  border-bottom-color: var(--ustk-border) !important;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  padding: 0.5rem 1rem 0 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-bs-theme="dark"] #unitEditModal:not(.ustk-task-edit) .task-modal-tabs,
html[data-bs-theme="dark"] #unitEditModal:not(.ustk-task-edit) .task-modal-tabs-wrapper .task-modal-tabs {
  background: transparent !important;
  border-bottom: none !important;
}
html[data-bs-theme="dark"] #unitEditModal:not(.ustk-task-edit) .task-modal-tabs .nav-link {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-bottom: none !important;
  margin-bottom: -1px;
  color: var(--ustk-muted) !important;
  border-radius: 10px 10px 0 0;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}
html[data-bs-theme="dark"] #unitEditModal:not(.ustk-task-edit) .task-modal-tabs .nav-link:hover {
  background: rgba(148, 163, 184, 0.12) !important;
  border-color: transparent !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal:not(.ustk-task-edit) .task-modal-tabs .nav-link.active {
  background: rgba(148, 163, 184, 0.14) !important;
  border-color: var(--ustk-border) !important;
  border-bottom-color: transparent !important;
  color: var(--ustk-text) !important;
  box-shadow: 0 -1px 0 0 var(--ustk-border);
}
html[data-bs-theme="dark"] #unitEditModal .task-modal-tabs-actions .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
}
html[data-bs-theme="dark"] #unitEditModal .task-modal-tabs-actions .btn-close:hover {
  opacity: 1;
}

/* Modern dark buttons in dialogs/modals (keep them calm; brighten on hover) */
html[data-bs-theme="dark"] .modal .btn,
html[data-bs-theme="dark"] .modal button.btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
html[data-bs-theme="dark"] .modal .btn.btn-sm {
  border-radius: 9px;
}
html[data-bs-theme="dark"] .modal .btn.btn-lg {
  border-radius: 12px;
}
html[data-bs-theme="dark"] .modal .btn:focus,
html[data-bs-theme="dark"] .modal .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18) !important;
}

/* Primary (inherit global gradient primary; only tune contrast for modal surfaces) */
html[data-bs-theme="dark"] .modal .btn-primary {
  color: #0b1020 !important;
}

/* Secondary */
html[data-bs-theme="dark"] .modal .btn-secondary {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--ustk-text);
}
html[data-bs-theme="dark"] .modal .btn-secondary:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.34);
  color: #ffffff;
}

/* Success */
html[data-bs-theme="dark"] .modal .btn-success {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.30);
  color: #dcfce7;
}
html[data-bs-theme="dark"] .modal .btn-success:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.42);
  color: #ffffff;
}

/* Warning */
html[data-bs-theme="dark"] .modal .btn-warning {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.30);
  color: #ffedd5;
}
html[data-bs-theme="dark"] .modal .btn-warning:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.42);
  color: #ffffff;
}

/* Danger / Delete */
html[data-bs-theme="dark"] .modal .btn-danger,
html[data-bs-theme="dark"] .modal .btn-outline-danger {
  background: transparent !important;
  border-color: rgb(var(--bs-danger-rgb, 220, 53, 69)) !important;
  color: rgb(var(--bs-danger-rgb, 220, 53, 69)) !important;
}
html[data-bs-theme="dark"] .modal .btn-danger:hover,
html[data-bs-theme="dark"] .modal .btn-outline-danger:hover {
  background: transparent !important;
  border-color: rgb(var(--bs-danger-rgb, 220, 53, 69)) !important;
  color: rgb(var(--bs-danger-rgb, 220, 53, 69)) !important;
}

/* Outline variants: keep readable + modern on dark (inherit global glass outline) */
html[data-bs-theme="dark"] .modal .btn-outline-primary {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .modal .btn-outline-secondary {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.24);
  color: var(--ustk-text);
}
html[data-bs-theme="dark"] .modal .btn-outline-secondary:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.34);
  color: #ffffff;
}

/* Close button in modal header (avoid "bright" close on dark) */
html[data-bs-theme="dark"] .modal .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.65;
}
html[data-bs-theme="dark"] .modal .btn-close:hover {
  opacity: 0.9;
}

/* Active tracking banner (top of board) */
html[data-bs-theme="dark"] #active-tracking-users-container > .d-flex {
  background-color: rgba(34, 197, 94, 0.14) !important; /* dark transparent green */
  border: 1px solid rgba(34, 197, 94, 0.22) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #active-tracking-users-container .fw-semibold {
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #active-tracking-users-container #active-tracking-users-list .badge {
  background-color: rgba(34, 197, 94, 0.20) !important; /* override inline #22c55e */
  border: 1px solid rgba(34, 197, 94, 0.30) !important;
  color: #dcfce7 !important;
}
html[data-bs-theme="dark"] #active-tracking-users-container #active-tracking-users-list .badge:hover {
  background-color: rgba(34, 197, 94, 0.26) !important;
  border-color: rgba(34, 197, 94, 0.42) !important;
  color: #ffffff !important;
}
html[data-bs-theme="dark"] #active-tracking-users-container #active-tracking-users-list span {
  color: var(--ustk-text) !important;
}

/* Description viewer/editor inside edit modal (was yellow/white) */
html[data-bs-theme="dark"] #unitEditModal #descriptionDisplay {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal #descriptionEditor {
  background-color: rgba(2, 6, 23, 0.35) !important;
  border-color: var(--ustk-border) !important;
  /* Make typed text brighter/whiter for readability in dark modal */
  color: rgba(255, 255, 255, 0.96) !important;
  caret-color: #ffffff !important;
}
html[data-bs-theme="dark"] #unitEditModal #descriptionEditor:empty:before {
  /* Placeholder ("Add description") was too dark on the modal background */
  color: rgba(248, 250, 252, 0.72) !important;
}

/* Description editor inside create task modal (match edit modal styling) */
html[data-bs-theme="dark"] #createTaskModal #createTaskDescriptionEditor {
  background-color: rgba(2, 6, 23, 0.35) !important;
  border-color: var(--ustk-border) !important;
  /* Make typed text brighter/whiter for readability in dark modal */
  color: rgba(255, 255, 255, 0.96) !important;
  caret-color: #ffffff !important;
}
html[data-bs-theme="dark"] #createTaskModal #createTaskDescriptionEditor:empty:before {
  /* Placeholder ("Add description") was too dark on the modal background */
  color: rgba(248, 250, 252, 0.72) !important;
}

/* Cover drop zone inside modal header (was #f8f9fa) */
html[data-bs-theme="dark"] #unitEditModal #coverDropZone {
  background-color: rgba(15, 23, 42, 0.55) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal #coverDropZone [style*="color: #666"] {
  color: var(--ustk-muted) !important;
}

/* Generic safety net for inline light backgrounds inside the edit modal */
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: #f8f9fa"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: #f8f9fa"],
html[data-bs-theme="dark"] #unitEditModal [style*="background:#f8f9fa"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color:#f8f9fa"] {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: #e9ecef"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color:#e9ecef"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: #e9ecef"],
html[data-bs-theme="dark"] #unitEditModal [style*="background:#e9ecef"] {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: #fffef0"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color:#fffef0"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: #fffef0"],
html[data-bs-theme="dark"] #unitEditModal [style*="background:#fffef0"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: #fff9e6"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color:#fff9e6"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: #fff9e6"],
html[data-bs-theme="dark"] #unitEditModal [style*="background:#fff9e6"] {
  background-color: rgba(15, 23, 42, 0.65) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}

/* Comments + Ask Client rendered items (JS uses light backgrounds like #f3f4f6 / #fef3c7 inline) */
html[data-bs-theme="dark"] #unitEditModal #commentsList [data-comment-id],
html[data-bs-theme="dark"] #unitEditModal #askClientList [data-comment-id] {
  /* Slightly lighter translucent surface for contrast against modal bg */
  background-color: rgba(148, 163, 184, 0.14) !important;
  border-color: rgba(148, 163, 184, 0.30) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal #commentsList [data-comment-id] .text-muted,
html[data-bs-theme="dark"] #unitEditModal #askClientList [data-comment-id] .text-muted {
  color: var(--ustk-muted) !important;
}
html[data-bs-theme="dark"] #unitEditModal #commentsList [data-comment-id] a,
html[data-bs-theme="dark"] #unitEditModal #askClientList [data-comment-id] a {
  color: #93c5fd !important;
}

/* Override inline "light theme" text colors inside rendered comment/question bodies */
html[data-bs-theme="dark"] #unitEditModal #commentsList [data-comment-id] [style*="color: #374151"],
html[data-bs-theme="dark"] #unitEditModal #askClientList [style*="color: #374151"] {
  color: #ffffff !important;
}

/* Some inline fragments inside comments use the same color but live outside [data-comment-id] */
html[data-bs-theme="dark"] #unitEditModal #commentsList [style*="color: #374151"],
html[data-bs-theme="dark"] #unitEditModal #askClientList [style*="color: #374151"] {
  color: #ffffff !important;
}

/* User badge inside comments/questions is rendered with inline light background */
html[data-bs-theme="dark"] #unitEditModal #commentsList [data-comment-id] [style*="background-color: #e5e7eb"],
html[data-bs-theme="dark"] #unitEditModal #askClientList [style*="background-color: #e5e7eb"] {
  background-color: rgba(148, 163, 184, 0.14) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: var(--ustk-text) !important;
}

/* Safety net for specific light comment/ask-client backgrounds set inline */
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: #f3f4f6"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color:#f3f4f6"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: #f3f4f6"],
html[data-bs-theme="dark"] #unitEditModal [style*="background:#f3f4f6"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: #fef3c7"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color:#fef3c7"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: #fef3c7"],
html[data-bs-theme="dark"] #unitEditModal [style*="background:#fef3c7"] {
  background-color: rgba(148, 163, 184, 0.14) !important;
  border-color: rgba(148, 163, 184, 0.30) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: white"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color:#fff"],
html[data-bs-theme="dark"] #unitEditModal [style*="background-color: #fff"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: white"],
html[data-bs-theme="dark"] #unitEditModal [style*="background:#fff"],
html[data-bs-theme="dark"] #unitEditModal [style*="background: #fff"] {
  background-color: rgba(2, 6, 23, 0.35) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}

/* Archive icon button on task cards – always visible and on top */
.unit-card .task-archive-btn,
.task-card .task-archive-btn,
.list-view-row .task-archive-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 50 !important;
}
html[data-bs-theme="dark"] .task-archive-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .task-archive-btn:hover {
  background: rgba(148, 163, 184, 0.14) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
}
html[data-bs-theme="dark"] .task-archive-btn:focus,
html[data-bs-theme="dark"] .task-archive-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18) !important;
}

/* Compact mode: keep archive icon visible so users can archive from the list */
/* (previously hidden; re-enabled by request) */

/* Image lightboxes on board pages */
html[data-bs-theme="dark"] .lightbox-nav {
  background-color: rgba(15, 23, 42, 0.85) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .lightbox-nav:hover {
  background-color: rgba(148, 163, 184, 0.14) !important;
}

/* Tiny pill-like badges on workspace/hire pages */
html[data-bs-theme="dark"] .ai-tool-badge,
html[data-bs-theme="dark"] .skill-badge {
  background-color: rgba(148, 163, 184, 0.10) !important;
  border-color: var(--ustk-border) !important;
  color: var(--ustk-text) !important;
}
html[data-bs-theme="dark"] .ai-tool-badge:hover,
html[data-bs-theme="dark"] .skill-badge:hover {
  background-color: rgba(148, 163, 184, 0.14) !important;
  border-color: var(--ustk-border-strong) !important;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.35) !important;
}

/* Space color bar (workspace boards list) */
html[data-bs-theme="dark"] .ustk-space-color-bar {
  --ustk-bar-color: #0079bf;
  height: 10px;
  max-height: 10px;
  border-radius: 9999px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.20) 0%,
      rgba(255, 255, 255, 0.06) 35%,
      rgba(0, 0, 0, 0.18) 100%
    ),
    var(--ustk-bar-color);
  box-shadow:
    0 6px 16px rgba(2, 6, 23, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Robotron2-style main app theme (authenticated pages)                        */
/* Applies to pages using <body class="page-shell">                            */
/* -------------------------------------------------------------------------- */

html[data-bs-theme="dark"] body.page-shell {
  /* Override app palette for a more “neon/glass” feel */
  --ustk-bg: #050816;
  --ustk-surface: rgba(10, 16, 34, 0.58);
  --ustk-surface-2: rgba(10, 16, 34, 0.72);
  --ustk-surface-3: rgba(20, 28, 56, 0.82);
  --ustk-border: rgba(148, 163, 184, 0.20);
  --ustk-border-strong: rgba(148, 163, 184, 0.32);
  --ustk-text: #eaf0ff;
  --ustk-muted: rgba(226, 232, 240, 0.72);
  --ustk-muted-2: rgba(226, 232, 240, 0.82);

  /* Background like the landing page (no pseudo-elements to avoid z-index issues) */
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(800px 520px at 82% 18%, rgba(236, 72, 153, 0.14), transparent 62%),
    radial-gradient(900px 560px at 55% 85%, rgba(34, 211, 238, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(5, 8, 22, 1) 0%, rgba(11, 18, 32, 1) 48%, rgba(5, 8, 22, 1) 100%) !important;
  background-attachment: fixed;
  color: var(--ustk-text) !important;
}

/* Ensure body text/background use the updated palette (only for page-shell) */
html[data-bs-theme="dark"] body.page-shell,
html[data-bs-theme="dark"] body.page-shell .page-shell {
  color: var(--ustk-text) !important;
}

/* Top nav cleanup + glass treatment */
html[data-bs-theme="dark"] body.page-shell .ustk-top-nav.navbar {
  background-color: rgba(10, 16, 34, 0.55) !important;
  border-bottom-color: rgba(148, 163, 184, 0.20) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Brand wordmark: match landing page vibe (title-only, no logo) */
html[data-bs-theme="dark"] body.page-shell .ustk-top-nav .ustk-brand-title {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ustk-text) !important;
  text-shadow: 0 10px 40px rgba(2, 6, 23, 0.65);
}

/* Breadcrumb chevrons (top nav + board title) */
html[data-bs-theme="dark"] body.page-shell .ustk-crumb-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  color: rgba(148, 163, 184, 0.72);
}
html[data-bs-theme="dark"] body.page-shell .ustk-crumb-sep__svg {
  display: block;
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-breadcrumb .ustk-crumb-sep__svg {
  width: 11px;
  height: 11px;
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-breadcrumb {
  margin-left: 0.65rem;
}
html[data-bs-theme="dark"] 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.22);
  background: rgba(15, 23, 42, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-breadcrumb__link {
  color: rgba(203, 213, 225, 0.82) !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="dark"] body.page-shell .ustk-top-breadcrumb__link:hover {
  color: rgba(248, 250, 252, 0.98) !important;
  background: rgba(148, 163, 184, 0.12);
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-breadcrumb__current {
  color: rgba(248, 250, 252, 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="dark"] body.page-shell .ustk-top-breadcrumb .ustk-crumb-sep {
  margin: 0 0.02rem;
  color: rgba(148, 163, 184, 0.45);
}
html[data-bs-theme="dark"] 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='%2394a3b8' 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(248, 250, 252, 0.94);
  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="dark"] body.page-shell .ustk-top-breadcrumb__board-select:hover {
  background: rgba(148, 163, 184, 0.1) 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='%2394a3b8' 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="dark"] body.page-shell .ustk-top-breadcrumb__board-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
}

/* Page content title tagline "by nomads.lt" (e.g. dashboard) — Recursive italic, smaller, thin */
html[data-bs-theme="dark"] 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="dark"] body.page-shell a.ustk-page-brand-tagline:visited,
html[data-bs-theme="dark"] body.page-shell a.ustk-page-brand-tagline:focus {
  color: var(--ustk-muted) !important;
  text-decoration: none !important;
}
html[data-bs-theme="dark"] body.page-shell a.ustk-page-brand-tagline:hover {
  color: var(--ustk-muted) !important;
  text-decoration: underline !important;
}

/* Top-nav icon buttons (glass pills) */
html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-icon-btn--label.btn {
  width: auto;
  padding: 0 10px;
  gap: 0.4rem;
}

/* Board/project header + navigation: match landing-style glass + modern icons */
html[data-bs-theme="dark"] body.page-shell .ustk-project-header__title {
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(2, 6, 23, 0.45);
}

html[data-bs-theme="dark"] body.page-shell .ustk-project-nav {
  background: rgba(10, 16, 34, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.30);
}

html[data-bs-theme="dark"] body.page-shell .ustk-btn-with-ico {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
html[data-bs-theme="dark"] 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;
}

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;
}

/* Project header right-side tabs: active state should match the left-side glass/outline highlight (not the global gradient primary) */
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--right .btn.ustk-tab-active,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--right .btn.ustk-tab-active:hover,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--right .btn.ustk-tab-active:focus {
  /* keep it subtle for the dark theme (less “old bright blue”) */
  border-color: rgba(59, 130, 246, 0.55) !important;
  background: rgba(59, 130, 246, 0.16) !important;
  color: var(--ustk-text) !important;
  box-shadow:
    0 0 0 0.2rem rgba(59, 130, 246, 0.10),
    0 10px 26px rgba(2, 6, 23, 0.25) !important;
  transform: none !important;
}

/* Project header right-side tabs: non-active hover/focus should match the left-side tab hover */
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--right .btn.btn-outline-primary:hover,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--right .btn.btn-outline-primary:focus,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--right .btn.btn-outline-primary:focus-visible,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--right .btn.btn-outline-primary:active {
  /* match left-side tab hover style */
  border-color: rgba(59, 130, 246, 0.55) !important;
  background: rgba(59, 130, 246, 0.16) !important;
  color: var(--ustk-text) !important;
  box-shadow:
    0 0 0 0.2rem rgba(59, 130, 246, 0.10),
    0 10px 26px rgba(2, 6, 23, 0.25) !important;
  transform: none !important;
}

/* Project header left-side tabs: match the brighter “active tab” look for hover/focus/press */
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--left .btn.btn-outline-primary:hover,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--left .btn.btn-outline-primary:focus,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--left .btn.btn-outline-primary:focus-visible,
html[data-bs-theme="dark"] body.page-shell .ustk-project-nav .view-toggle--left .btn.btn-outline-primary:active {
  border-color: rgba(59, 130, 246, 0.55) !important;
  background: rgba(59, 130, 246, 0.16) !important;
  color: var(--ustk-text) !important;
  box-shadow:
    0 0 0 0.2rem rgba(59, 130, 246, 0.10),
    0 10px 26px rgba(2, 6, 23, 0.25) !important;
  transform: none !important;
}

html[data-bs-theme="dark"] 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="dark"] 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, #0b1220);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-nav-badge-stack .ustk-badge-pill {
  position: static;
  transform: none;
  display: none;
}

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

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

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

/* Cards / surfaces get a subtle glass look */
html[data-bs-theme="dark"] body.page-shell .card,
html[data-bs-theme="dark"] body.page-shell .workspace-card,
html[data-bs-theme="dark"] body.page-shell .settings-card,
html[data-bs-theme="dark"] body.page-shell .profile-card,
html[data-bs-theme="dark"] body.page-shell .message-container,
html[data-bs-theme="dark"] body.page-shell .message-form,
html[data-bs-theme="dark"] body.page-shell .history-card,
html[data-bs-theme="dark"] body.page-shell .task-header,
html[data-bs-theme="dark"] body.page-shell .bill-container,
html[data-bs-theme="dark"] body.page-shell .bill-preview,
html[data-bs-theme="dark"] body.page-shell .invite-card {
  background: var(--ustk-surface) !important;
  border-color: var(--ustk-border) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Board task cards (match landing page “glass” feel) */
html[data-bs-theme="dark"] body.page-shell .unit-card,
html[data-bs-theme="dark"] body.page-shell .task-card {
  background: rgba(10, 16, 34, 0.58) !important;
  border: 1px solid rgba(148, 163, 184, 0.20) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.45) !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="dark"] body.page-shell .unit-card:hover,
html[data-bs-theme="dark"] body.page-shell .task-card:hover {
  background: rgba(10, 16, 34, 0.72) !important;
  border-color: rgba(34, 211, 238, 0.25) !important;
  transform: translateY(-1px);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.55) !important;
}

/* Status variants */
html[data-bs-theme="dark"] body.page-shell .unit-card.is-done,
html[data-bs-theme="dark"] body.page-shell .task-card.is-done {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
}
html[data-bs-theme="dark"] body.page-shell .unit-card.is-pinned,
html[data-bs-theme="dark"] body.page-shell .task-card.is-pinned {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
html[data-bs-theme="dark"] body.page-shell .unit-card.is-urgent,
html[data-bs-theme="dark"] body.page-shell .task-card.is-urgent {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}
html[data-bs-theme="dark"] body.page-shell .unit-card.is-waiting-for-answer,
html[data-bs-theme="dark"] body.page-shell .task-card.is-waiting-for-answer,
html[data-bs-theme="dark"] body.page-shell .unit-card.ustk-task-card.is-waiting-for-answer,
html[data-bs-theme="dark"] body.page-shell .ustk-kanban-column .unit-card.is-waiting-for-answer {
  background-color: rgba(127, 29, 29, 0.45) !important;
  background: rgba(127, 29, 29, 0.45) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
}
html[data-bs-theme="dark"] body.page-shell .unit-card.is-waiting-for-answer:hover,
html[data-bs-theme="dark"] body.page-shell .task-card.is-waiting-for-answer:hover,
html[data-bs-theme="dark"] body.page-shell .unit-card.ustk-task-card.is-waiting-for-answer:hover,
html[data-bs-theme="dark"] body.page-shell .ustk-kanban-column .unit-card.is-waiting-for-answer:hover {
  background-color: rgba(153, 27, 27, 0.55) !important;
  background: rgba(153, 27, 27, 0.55) !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
}

/* Fast mode: keep archive icon visible so users can archive from the list */
/* (archive button no longer hidden in fast mode) */

.ustk-fast-mode .unit-card.ustk-tracking-active {
  border: 2px solid rgba(34, 197, 94, 0.85) !important;
  box-shadow:
    0 18px 55px rgba(2, 6, 23, 0.45),
    0 0 0 2px rgba(34, 197, 94, 0.20) !important;
}

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

.ustk-fast-mode .unit-card input.form-check-input[type="checkbox"] {
  display: none !important;
}

.ustk-fast-mode .unit-card > img[alt="cover"],
.ustk-fast-mode .unit-card > img[data-unit-id] {
  display: none !important;
}

.ustk-fast-mode .unit-card > .mb-2 > br,
.ustk-fast-mode .unit-card > .mb-2 > small {
  display: none !important;
}

.ustk-fast-mode .unit-card > .mb-2 svg,
.ustk-fast-mode .unit-card > .mb-2 .deadline-indicator {
  display: none !important;
}

.ustk-fast-mode .unit-card > .mb-2 > span:not(.unit-title):not(.ustk-done-pending-dot) {
  display: none !important;
}

.ustk-fast-mode .unit-card > .mb-2 > span.ustk-done-pending-dot {
  display: inline-block !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;
}

/* Hide meta rows (dates/hours/cost) and time tracking blocks */
.ustk-fast-mode .unit-card .d-flex.align-items-center.flex-wrap.gap-2.pt-2,
.ustk-fast-mode .unit-card .mt-2.pt-2.border-top,
.ustk-fast-mode .unit-card [id^="other-users-tracking-"] {
  display: none !important;
}

/* Archive page task cards: hide everything except title + users + labels + action buttons */
.ustk-fast-mode .task-card p.text-muted,
.ustk-fast-mode .task-card .task-details-toggle,
.ustk-fast-mode .task-card .task-details-expanded,
.ustk-fast-mode .task-card small.text-muted,
.ustk-fast-mode .task-card .badge.bg-secondary {
  display: none !important;
}

.ustk-fast-mode .task-card .btn.btn-outline-success,
.ustk-fast-mode .task-card .btn.btn-outline-danger {
  display: none !important;
}

/* Drag & drop feedback should win over glass hover */
html[data-bs-theme="dark"] body.page-shell .unit-card.drag-over,
html[data-bs-theme="dark"] 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;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.45) !important;
}

/* Board list drop targets + placeholders (avoid bright “light blue” blocks) */
html[data-bs-theme="dark"] body.page-shell .list-container.drag-over {
  background: rgba(34, 211, 238, 0.06) !important;
  border-color: rgba(34, 211, 238, 0.42) !important;
}

html[data-bs-theme="dark"] body.page-shell .units.drag-over {
  background: rgba(34, 211, 238, 0.04) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

html[data-bs-theme="dark"] body.page-shell .drop-placeholder {
  background: rgba(10, 16, 34, 0.35) !important;
  border: 2px dashed rgba(34, 211, 238, 0.38) !important;
  box-shadow: 0 14px 45px rgba(2, 6, 23, 0.35);
}

/* Dropdowns & modals (higher “glass” because they sit on top of the UI) */
html[data-bs-theme="dark"] body.page-shell .dropdown-menu,
html[data-bs-theme="dark"] body.page-shell .modal-content {
  background: rgba(10, 16, 34, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Profile dropdown (top nav) — landing-style “glass/neo” */
html[data-bs-theme="dark"] 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(148, 163, 184, 0.35) !important;
  background: rgba(10, 16, 34, 0.35) !important;
  color: var(--ustk-text) !important;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
  /* 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="dark"] body.page-shell .ustk-top-nav .ustk-profile-trigger.btn:hover {
  border-color: rgba(34, 211, 238, 0.40) !important;
  background: rgba(34, 211, 238, 0.10) !important;
  transform: none;
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-nav .show > .ustk-profile-trigger.btn {
  border-color: rgba(99, 102, 241, 0.55) !important;
  background: rgba(99, 102, 241, 0.12) !important;
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-nav .ustk-profile-trigger.dropdown-toggle::after {
  display: none;
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-nav .ustk-profile-trigger__text {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.01em;
}
html[data-bs-theme="dark"] body.page-shell .ustk-top-nav .ustk-profile-trigger__chev {
  opacity: 0.9;
}

html[data-bs-theme="dark"] 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(148, 163, 184, 0.22);
  background: rgba(10, 16, 34, 0.55);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35);
}
html[data-bs-theme="dark"] body.page-shell .ustk-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 700;
}
html[data-bs-theme="dark"] body.page-shell .ustk-avatar--md {
  width: 38px;
  height: 38px;
  font-size: 16px;
  font-weight: 700;
}
html[data-bs-theme="dark"] body.page-shell .ustk-avatar--initial {
  color: #0b1020;
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(236, 72, 153, 0.90) 55%, rgba(34, 211, 238, 0.85) 100%);
}

html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu.dropdown-menu {
  padding: 10px;
  border-radius: 16px;
  min-width: 290px;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.65);
  /* Performance: override global dropdown glass blur for the profile menu. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu__header {
  padding: 6px 6px 10px 6px;
}
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(10, 16, 34, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu__name {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 252, 0.95);
  line-height: 1.2;
}
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu__email {
  margin-top: 2px;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.72);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu__divider.dropdown-divider {
  margin: 8px 6px;
  border-top-color: rgba(148, 163, 184, 0.18);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-profile-menu .dropdown-item:hover,
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu .dropdown-item:focus {
  background: rgba(34, 211, 238, 0.10) !important;
  transform: none;
}
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu .dropdown-item.text-danger:hover,
html[data-bs-theme="dark"] body.page-shell .ustk-profile-menu .dropdown-item.text-danger:focus {
  background: rgba(239, 68, 68, 0.10) !important;
}

/* Primary button: neon gradient like landing */
html[data-bs-theme="dark"] body.page-shell .btn-primary {
  border-color: rgba(99, 102, 241, 0.55) !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 1) 0%, rgba(236, 72, 153, 0.90) 55%, rgba(34, 211, 238, 0.85) 100%) !important;
  color: #0b1020 !important;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
}
html[data-bs-theme="dark"] body.page-shell .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Outline primary: glass button */
html[data-bs-theme="dark"] body.page-shell .btn-outline-primary {
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: var(--ustk-text) !important;
  background: rgba(10, 16, 34, 0.35) !important;
}
html[data-bs-theme="dark"] body.page-shell .btn-outline-primary:hover {
  border-color: rgba(34, 211, 238, 0.40) !important;
  background: rgba(34, 211, 238, 0.10) !important;
}

/* Softer focus ring */
html[data-bs-theme="dark"] body.page-shell .btn:focus,
html[data-bs-theme="dark"] body.page-shell .btn:focus-visible,
html[data-bs-theme="dark"] body.page-shell .form-control:focus,
html[data-bs-theme="dark"] body.page-shell .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.18) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
}

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

@media (prefers-reduced-motion: reduce) {
  html[data-bs-theme="dark"] body.page-shell .btn-primary:hover {
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Files page (landing-style)                                                 */
/* -------------------------------------------------------------------------- */

html[data-bs-theme="dark"] body.page-files .ustk-file-card.card {
  background: rgba(10, 16, 34, 0.58) !important;
  border-color: rgba(148, 163, 184, 0.20) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-bs-theme="dark"] body.page-files .ustk-badge-glass {
  background: rgba(10, 16, 34, 0.45) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  color: var(--ustk-text) !important;
}

html[data-bs-theme="dark"] body.page-files .ustk-file-list {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 16, 34, 0.25);
}

html[data-bs-theme="dark"] body.page-files .file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  transition: background-color 0.2s, border-color 0.2s;
}
html[data-bs-theme="dark"] body.page-files .file-item:last-child {
  border-bottom: 0;
}
html[data-bs-theme="dark"] body.page-files .file-item:hover {
  background-color: rgba(34, 211, 238, 0.06) !important;
  border-bottom-color: rgba(34, 211, 238, 0.18);
}

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

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

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

html[data-bs-theme="dark"] body.page-files .file-meta {
  font-size: 0.875rem;
  color: var(--ustk-muted) !important;
}
html[data-bs-theme="dark"] body.page-files .file-meta a {
  color: rgba(34, 211, 238, 0.95) !important;
}
html[data-bs-theme="dark"] body.page-files .file-meta a:hover {
  color: rgba(34, 211, 238, 1) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

/* -------------------------------------------------------------------------- */
/* Avatar / user photo safety clamps (prevents huge uploads from breaking UI)  */
/* -------------------------------------------------------------------------- */

/* Ensure avatar sizing works even on pages that don't include `.page-shell`. */
html[data-bs-theme="dark"] .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(148, 163, 184, 0.22);
  background: rgba(10, 16, 34, 0.55);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35);
}
html[data-bs-theme="dark"] .ustk-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 700;
}
html[data-bs-theme="dark"] .ustk-avatar--md {
  width: 38px;
  height: 38px;
  font-size: 16px;
  font-weight: 700;
}
html[data-bs-theme="dark"] .ustk-avatar--initial {
  color: #0b1020;
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 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="dark"] img.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
}
html[data-bs-theme="dark"] .user-avatar-initial {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--ustk-primary);
  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="dark"] img.ustk-avatar,
html[data-bs-theme="dark"] img.message-avatar,
html[data-bs-theme="dark"] img.profile-photo,
html[data-bs-theme="dark"] img.profile-avatar {
  max-width: 200px;
  max-height: 200px;
}

/* -------------------------------------------------------------------------- */
/* Responsive layout (loads with theme CSS; selectors are theme-agnostic)    */
/* -------------------------------------------------------------------------- */

/* Deploy commit footer (super admin / organisation admin) */
body.page-shell:has(.ustk-git-footer) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ustk-git-footer {
  position: static;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 4px 16px;
  font-size: 0.7rem;
  color: var(--ustk-muted);
  background: var(--ustk-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--ustk-border);
  box-shadow: var(--ustk-shadow-sm);
  pointer-events: none;
}
html[data-bs-theme="dark"] .ustk-git-footer {
  background: rgba(15, 23, 42, 0.88);
}
.ustk-git-footer__label {
  color: var(--ustk-muted);
  opacity: 0.75;
}
.ustk-git-footer__hash {
  color: var(--ustk-primary);
}
.ustk-git-footer__message {
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ustk-muted-2);
}
.ustk-git-footer__by {
  color: var(--ustk-muted);
  opacity: 0.85;
}
.ustk-git-footer__author {
  color: var(--ustk-success);
}
.ustk-git-footer__age {
  color: var(--ustk-muted);
  opacity: 0.9;
}

/* Board list view: wide grid scrolls horizontally instead of overflowing */
body.page-shell .list-view-container > .container-fluid {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
body.page-shell .list-view-container .list-view-header,
body.page-shell .list-view-container .list-view-row {
  min-width: 42rem;
}

/* Kanban columns: respect narrow viewports when a single column is visible */
body.page-shell .board-container .list-container {
  min-width: min(300px, calc(100vw - 2rem));
  max-width: min(300px, calc(100vw - 2rem));
}

/* Hours / tracking / estimated-hours summary rows */
@media (max-width: 575.98px) {
  body.page-shell .unit-row {
    grid-template-columns: 1fr;
    gap: 0.5rem 0;
  }
}

/* Filter toolbars: full-width selects on small screens */
body.page-shell .ustk-filter-select {
  width: auto;
  min-width: min(12.5rem, 100%);
  max-width: 100%;
}
@media (max-width: 575.98px) {
  body.page-shell .ustk-filter-select {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Project board nav: many tab buttons */
@media (max-width: 991.98px) {
  body.page-shell .ustk-project-nav__tabs-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  body.page-shell .ustk-project-nav .view-toggle--right {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  body.page-shell .ustk-project-nav .view-toggle--right .btn-group {
    flex-wrap: nowrap;
    width: max-content;
  }
  body.page-shell .ustk-project-nav .view-toggle--left .btn-group {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
}

body.page-shell .ustk-project-nav__filters-row {
  flex-wrap: wrap;
  gap: 0.75rem;
  row-gap: 0.5rem;
}
@media (max-width: 575.98px) {
  body.page-shell .ustk-project-nav__toggles {
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Unified page styles (dashboard-aligned)                                     */
/* -------------------------------------------------------------------------- */

/* Content panels — profile, settings, forms */
html[data-bs-theme="dark"] body.page-shell .profile-card,
html[data-bs-theme="dark"] body.page-shell .settings-card {
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.45) !important;
}

/* Profile photo */
html[data-bs-theme="dark"] body.page-shell .profile-photo-frame {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(59, 130, 246, 0.55);
  background: var(--ustk-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-bs-theme="dark"] body.page-shell .profile-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html[data-bs-theme="dark"] 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, rgba(59, 130, 246, 0.85), rgba(236, 72, 153, 0.75));
}
html[data-bs-theme="dark"] body.page-shell .photo-upload-area {
  position: relative;
  display: inline-block;
}
html[data-bs-theme="dark"] body.page-shell .photo-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--ustk-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.45);
}
html[data-bs-theme="dark"] body.page-shell .photo-upload-btn:hover {
  background: var(--ustk-primary-600);
}

/* Interactive cards — hire, messages list */
html[data-bs-theme="dark"] body.page-shell .message-card,
html[data-bs-theme="dark"] body.page-shell .ustk-interactive-card {
  cursor: pointer;
  border-radius: 16px !important;
  border: 1px solid var(--ustk-border) !important;
  background: var(--ustk-surface) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
html[data-bs-theme="dark"] body.page-shell .message-card:hover,
html[data-bs-theme="dark"] body.page-shell .ustk-interactive-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.55) !important;
}
html[data-bs-theme="dark"] body.page-shell .message-card.unread {
  background: rgba(59, 130, 246, 0.10) !important;
  border-left: 3px solid rgba(59, 130, 246, 0.85) !important;
}
html[data-bs-theme="dark"] body.page-shell .unread-badge {
  background: var(--ustk-primary);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Project / board cards on workspace page */
html[data-bs-theme="dark"] body.page-shell .project-card {
  border: 1px solid var(--ustk-border) !important;
  border-radius: 16px !important;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  background: var(--ustk-surface) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html[data-bs-theme="dark"] body.page-shell .project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.5) !important;
}
html[data-bs-theme="dark"] body.page-shell .project-card.archived-board {
  opacity: 0.72;
  border-style: dashed !important;
}
html[data-bs-theme="dark"] body.page-shell .project-card.archived-board:hover {
  transform: none;
}

/* Notification list panel */
html[data-bs-theme="dark"] body.page-shell .ustk-notification-panel {
  border-radius: 16px !important;
  overflow: hidden;
  border: 1px solid var(--ustk-border) !important;
  background: var(--ustk-surface) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.45) !important;
}
html[data-bs-theme="dark"] body.page-shell .notification-item {
  transition: background-color 0.15s ease;
  cursor: pointer;
}
html[data-bs-theme="dark"] body.page-shell .notification-item:hover {
  background-color: rgba(148, 163, 184, 0.10) !important;
}
html[data-bs-theme="dark"] body.page-shell .notification-item.unread {
  background-color: rgba(59, 130, 246, 0.08) !important;
  border-left: 3px solid rgba(59, 130, 246, 0.85) !important;
}

/* Data tables in cards */
html[data-bs-theme="dark"] body.page-shell .ustk-data-panel {
  border-radius: 16px !important;
  border: 1px solid var(--ustk-border) !important;
  background: var(--ustk-surface) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.35) !important;
}
html[data-bs-theme="dark"] body.page-shell .ustk-data-panel .table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(148, 163, 184, 0.08);
  margin-bottom: 0;
}
html[data-bs-theme="dark"] body.page-shell tr.workspace-row-editable,
html[data-bs-theme="dark"] body.page-shell tr.developer-row-editable {
  cursor: pointer;
}
html[data-bs-theme="dark"] body.page-shell tr.workspace-row-editable:hover,
html[data-bs-theme="dark"] body.page-shell tr.developer-row-editable:hover {
  background-color: rgba(148, 163, 184, 0.08) !important;
}

/* Autocomplete dropdown */
html[data-bs-theme="dark"] body.page-shell .autocomplete-container {
  position: relative;
}
html[data-bs-theme="dark"] body.page-shell .autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ustk-surface-2);
  border: 1px solid var(--ustk-border);
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.55);
  display: none;
}
html[data-bs-theme="dark"] body.page-shell .autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--ustk-border);
}
html[data-bs-theme="dark"] body.page-shell .autocomplete-item:hover {
  background-color: rgba(148, 163, 184, 0.10);
}
html[data-bs-theme="dark"] body.page-shell .autocomplete-item:last-child {
  border-bottom: none;
}
html[data-bs-theme="dark"] body.page-shell .autocomplete-item-name {
  font-weight: 600;
  color: var(--ustk-text);
}
html[data-bs-theme="dark"] body.page-shell .autocomplete-item-email {
  font-size: 0.875rem;
  color: var(--ustk-muted);
}

/* Hours / tracking unit rows */
html[data-bs-theme="dark"] body.page-shell .unit-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--ustk-border);
}
html[data-bs-theme="dark"] body.page-shell .unit-row:last-child {
  border-bottom: 0;
}
html[data-bs-theme="dark"] body.page-shell .total-row {
  font-weight: 600;
}
html[data-bs-theme="dark"] body.page-shell .chart-container {
  position: relative;
  height: 400px;
  margin-bottom: 2rem;
}

/* Auth login card */
html[data-bs-theme="dark"] body.page-shell .login-card,
html[data-bs-theme="dark"] body.page-shell .register-card {
  border: 1px solid var(--ustk-border) !important;
  border-radius: 16px !important;
  background: var(--ustk-surface) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.55) !important;
}
html[data-bs-theme="dark"] body.page-shell .btn-ustk-primary {
  background-color: var(--ustk-primary);
  border-color: var(--ustk-primary);
  color: #fff;
}
html[data-bs-theme="dark"] body.page-shell .btn-ustk-primary:hover {
  background-color: var(--ustk-primary-600);
  border-color: var(--ustk-primary-600);
  color: #fff;
}
html[data-bs-theme="dark"] body.page-shell .btn-ustk-outline {
  border-color: var(--ustk-primary);
  color: var(--ustk-primary);
}
html[data-bs-theme="dark"] body.page-shell .btn-ustk-outline:hover {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: var(--ustk-primary);
  color: #9ac2ff;
}

/* Messages conversation shell */
html[data-bs-theme="dark"] body.page-shell .landing-card {
  background: var(--ustk-surface);
  border: 1px solid var(--ustk-border);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.55);
}

/* Task list extras */
html[data-bs-theme="dark"] body.page-shell .task-card--ready-stale {
  background-color: rgba(220, 53, 69, 0.16) !important;
  border-color: rgba(220, 53, 69, 0.38) !important;
}
html[data-bs-theme="dark"] body.page-shell .task-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--ustk-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}
html[data-bs-theme="dark"] body.page-shell .drag-handle {
  cursor: grab;
  padding: 0 6px;
  opacity: 0.45;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
html[data-bs-theme="dark"] body.page-shell .drag-handle:hover {
  opacity: 0.85;
}
html[data-bs-theme="dark"] body.page-shell .drag-handle:active {
  cursor: grabbing;
}
html[data-bs-theme="dark"] body.page-shell .sortable-ghost {
  opacity: 0.35;
}
html[data-bs-theme="dark"] body.page-shell .sortable-chosen {
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45) !important;
}
@keyframes ustk-tracking-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
html[data-bs-theme="dark"] body.page-shell .ready-age-indicator,
html[data-bs-theme="dark"] body.page-shell .creation-age-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--ustk-danger);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Skill items on available-for-hire */
html[data-bs-theme="dark"] body.page-shell .skill-item {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--ustk-border);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
}

/* My Hours */
html[data-bs-theme="dark"] body.page-shell .hours-table tbody tr.task-row {
  background: rgba(148, 163, 184, 0.06);
}
html[data-bs-theme="dark"] body.page-shell .hours-table tbody tr.tracking-row {
  background: transparent;
}
html[data-bs-theme="dark"] body.page-shell .task-name-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}
html[data-bs-theme="dark"] body.page-shell .task-name-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}
html[data-bs-theme="dark"] body.page-shell .task-list {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  margin-top: 4px;
}
html[data-bs-theme="dark"] 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="dark"] body.page-shell .task-status-done {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}
html[data-bs-theme="dark"] body.page-shell .task-status-archived {
  background: rgba(148, 163, 184, 0.12);
  color: var(--bs-secondary-color);
}
html[data-bs-theme="dark"] body.page-shell .money-cell,
html[data-bs-theme="dark"] body.page-shell .my-hours-money-cost {
  color: #93c5fd;
  font-weight: 600;
}
html[data-bs-theme="dark"] body.page-shell .money-cell-client {
  color: #6ee7b7;
  font-weight: 600;
}
html[data-bs-theme="dark"] body.page-shell .tracking-info {
  color: var(--bs-secondary-color);
}
html[data-bs-theme="dark"] body.page-shell .tracking-date {
  font-size: 0.75rem;
  color: var(--bs-tertiary-color);
}
html[data-bs-theme="dark"] body.page-shell .tracking-paid-indicator {
  color: var(--bs-tertiary-color);
}
html[data-bs-theme="dark"] body.page-shell .tracking-paid-indicator.paid {
  color: #93c5fd;
}
html[data-bs-theme="dark"] body.page-shell .my-hours-accent {
  color: #93c5fd;
}
html[data-bs-theme="dark"] body.page-shell .my-hours-breakdown-panel {
  background: rgba(148, 163, 184, 0.06);
}
html[data-bs-theme="dark"] body.page-shell .my-hours-summary h5 {
  font-size: 1rem;
  font-weight: 600;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-prompt-type-pill {
  background: rgba(148, 163, 184, 0.14);
  color: var(--ustk-text);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-type-pill--active,
html[data-bs-theme="dark"] body.page-shell .ustk-prompt-type-pill:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-type-badge {
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-weight: 500;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-form-card,
html[data-bs-theme="dark"] body.page-shell .ustk-prompt-create-layout {
  /* legacy alias kept for safety */
}

html[data-bs-theme="dark"] 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(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.24);
}

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

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

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-prompt-create-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-create-panel {
  background: rgba(10, 16, 34, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.35);
}

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

html[data-bs-theme="dark"] 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(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.18);
}

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

html[data-bs-theme="dark"] 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(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-create-panel__icon--tags {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-create-panel__icon--prompt {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

html[data-bs-theme="dark"] 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="dark"] 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="dark"] body.page-shell .ustk-prompt-create-panel__body {
  padding: 1.15rem 1.25rem 1.25rem;
}

html[data-bs-theme="dark"] 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="dark"] 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(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.12);
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-create-panel .form-select,
html[data-bs-theme="dark"] body.page-shell .ustk-prompt-create-panel .form-control {
  background: rgba(2, 6, 23, 0.35);
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-body-input {
  min-height: 360px;
  resize: vertical;
  line-height: 1.6;
  font-size: 0.9rem;
  background: rgba(2, 6, 23, 0.42);
  border-color: rgba(148, 163, 184, 0.22);
  padding: 1rem 1.1rem;
  border-radius: 12px;
}

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

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

html[data-bs-theme="dark"] 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(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-tag-input__combo:focus-within {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

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

html[data-bs-theme="dark"] 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(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #e0f2fe;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-tag-input__chip-remove:hover {
  opacity: 1;
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-tag-input__field.is-invalid {
  color: #fca5a5;
}

html[data-bs-theme="dark"] 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(148, 163, 184, 0.22);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  background: rgba(10, 16, 34, 0.98);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-tag-input__quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

html[data-bs-theme="dark"] body.page-shell .ustk-tag-input__quick-btn {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
  color: var(--ustk-text);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

html[data-bs-theme="dark"] body.page-shell .ustk-tag-input__quick-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

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

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

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

html[data-bs-theme="dark"] body.page-shell .ustk-prompts-header__icon {
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-filters-panel {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 16, 34, 0.45);
  overflow: hidden;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-filters-panel__section {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-prompt-filters-panel__tabs {
  margin: 0;
  padding: 0.25rem;
  background: rgba(2, 6, 23, 0.2);
}

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

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-filters-panel__footer {
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.12);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-prompt-filters-panel__clear:hover {
  color: #93c5fd;
}

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

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

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-row-wrap:hover {
  background: rgba(59, 130, 246, 0.06);
}

html[data-bs-theme="dark"] 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="dark"] 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="dark"] body.page-shell .ustk-prompt-row__icon--manual {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-row__icon--incoming {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--ustk-muted);
}

html[data-bs-theme="dark"] 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="dark"] 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;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-row__badge--manual {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #86efac;
}

html[data-bs-theme="dark"] body.page-shell .ustk-prompt-row__badge--app {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--ustk-muted);
}

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-prompt-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

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

html[data-bs-theme="dark"] 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="dark"] body.page-shell .ustk-prompt-row-wrap:hover .ustk-prompt-row__chev {
  opacity: 0.9;
  transform: translateX(2px);
}

@media (max-width: 767.98px) {
  html[data-bs-theme="dark"] body.page-shell .ustk-prompt-row {
    padding: 0.85rem 0.9rem;
    gap: 0.7rem;
  }

  html[data-bs-theme="dark"] body.page-shell .ustk-prompt-row__icon {
    width: 32px;
    height: 32px;
  }
}


html[data-bs-theme="dark"] body.page-shell .ustk-report-row__icon--activity {
  background: rgba(236, 72, 153, 0.16);
  border-color: rgba(236, 72, 153, 0.36);
  color: #f9a8d4;
}
html[data-bs-theme="dark"] body.page-shell .ustk-report-status-label--activity {
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.36);
  color: #f9a8d4;
}
html[data-bs-theme="dark"] body.page-shell .ustk-report-row-wrap--status-activity.ustk-report-row-wrap--unread {
  border-left-color: rgba(236, 72, 153, 0.9);
}
html[data-bs-theme="dark"] body.page-shell .ustk-report-detail-card--activity .ustk-report-detail-header {
  background: rgba(236, 72, 153, 0.08);
}
html[data-bs-theme="dark"] body.page-shell .ustk-reports-tab__count--pink {
  background: #ec4899;
  color: #fff;
}
html[data-bs-theme="dark"] body.page-shell .ustk-reports-tab-count--pink {
  background: #ec4899 !important;
  color: #fff !important;
}
html[data-bs-theme="dark"] body.page-shell .ustk-badge-pill--pink {
  background: #ec4899 !important;
  color: #fff !important;
  border-color: var(--ustk-bg, #0b1220) !important;
}
