body.blueprint-premium,
body.login-premium {
  background:
    radial-gradient(circle at top left, rgba(0, 91, 255, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(106, 0, 255, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 72, 180, 0.08), transparent 22%),
    linear-gradient(180deg, #05051a 0%, #090b24 48%, #050510 100%);
}

body.blueprint-premium::before,
body.login-premium::before {
  background:
    linear-gradient(120deg, rgba(255,255,255,0.06), transparent 24%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 0,
      rgba(255,255,255,0.025) 1px,
      transparent 1px,
      transparent 92px
    );
  opacity: 0.42;
}

body.blueprint-premium .workflow-hero,
body.blueprint-premium .workflow-section,
body.blueprint-premium .workflow-card,
body.blueprint-premium .workflow-board,
body.blueprint-premium .workflow-item,
body.blueprint-premium .workflow-kpi {
  background:
    radial-gradient(circle at top left, rgba(0, 91, 255, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(106, 0, 255, 0.14), transparent 24%),
    linear-gradient(145deg, rgba(9, 12, 31, 0.96), rgba(13, 18, 42, 0.92));
  border-color: rgba(126, 142, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

body.blueprint-premium .workflow-hero::before,
body.blueprint-premium .workflow-section::before,
body.blueprint-premium .workflow-card::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 24%),
    repeating-linear-gradient(
      120deg,
      rgba(0, 91, 255, 0.045) 0,
      rgba(0, 91, 255, 0.045) 1px,
      transparent 1px,
      transparent 90px
    );
}

body.blueprint-premium .workflow-hero h1,
body.blueprint-premium .workflow-section h2,
body.blueprint-premium .workflow-board-title,
body.blueprint-premium .workflow-item h3,
body.blueprint-premium .workflow-kpi strong,
body.blueprint-premium .workflow-board strong {
  color: #ffffff;
}

body.blueprint-premium .workflow-muted,
body.blueprint-premium .workflow-board span,
body.blueprint-premium .workflow-board p,
body.blueprint-premium .workflow-simple-step span,
body.blueprint-premium .workflow-help-card span,
body.blueprint-premium .workflow-upload-box span,
body.blueprint-premium .workflow-tile span,
body.blueprint-premium .workflow-item small,
body.blueprint-premium .workflow-empty,
body.blueprint-premium .workflow-kpi p {
  color: rgba(221, 229, 255, 0.72);
}

body.blueprint-premium .workflow-input,
body.blueprint-premium .workflow-select,
body.blueprint-premium .workflow-textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(144, 160, 255, 0.16);
  color: #ffffff;
}

body.blueprint-premium .workflow-select option {
  background: #0d1330;
  color: #ffffff;
}

body.blueprint-premium .workflow-input::placeholder,
body.blueprint-premium .workflow-textarea::placeholder {
  color: rgba(218, 226, 255, 0.4);
}

body.blueprint-premium .workflow-pill,
body.blueprint-premium .workflow-stage-pill,
body.blueprint-premium .workflow-edition-pill {
  background: rgba(255,255,255,0.07);
  color: #dfe7ff;
}

body.blueprint-premium .workflow-stage-pill {
  background: rgba(0, 91, 255, 0.16);
  color: #8bc6ff;
}

body.blueprint-premium .workflow-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #005bff 0%, #6a00ff 100%);
  box-shadow: 0 16px 34px rgba(0, 91, 255, 0.28);
}

body.blueprint-premium .workflow-btn-ghost,
body.blueprint-premium .workflow-btn-secondary {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(144, 160, 255, 0.16);
}

body.blueprint-premium .workflow-table,
body.blueprint-premium .admin-mini-table {
  background: rgba(9, 12, 30, 0.9);
  border-color: rgba(126, 142, 255, 0.14);
}

body.blueprint-premium .workflow-table th,
body.blueprint-premium .admin-mini-table th {
  background: linear-gradient(135deg, #0c1332 0%, #142254 100%);
  color: #dfe8ff;
}

body.blueprint-premium .workflow-table td,
body.blueprint-premium .admin-mini-table td {
  color: rgba(228, 235, 255, 0.82);
  border-bottom-color: rgba(122, 136, 205, 0.12);
}

body.blueprint-premium .workflow-board:hover,
body.blueprint-premium .workflow-item:hover,
body.blueprint-premium .workflow-kpi:hover {
  box-shadow: 0 24px 48px rgba(0, 91, 255, 0.14);
  border-color: rgba(0, 91, 255, 0.3);
}

body.blueprint-premium .workflow-simple-step,
body.blueprint-premium .workflow-help-card,
body.blueprint-premium .workflow-upload-box,
body.blueprint-premium .workflow-collapsible,
body.blueprint-premium .workflow-tile,
body.blueprint-premium .workflow-empty,
body.blueprint-premium .workflow-item,
body.blueprint-premium .workflow-quick-icon-card,
body.blueprint-premium .workflow-bar-card,
body.blueprint-premium .workflow-quick-link,
body.blueprint-premium .workflow-board-list > *,
body.blueprint-premium .workflow-list > *:not(.workflow-item):not(.workflow-list-item) {
  background:
    linear-gradient(145deg, rgba(15, 20, 47, 0.96), rgba(11, 15, 36, 0.92));
  border-color: rgba(126, 142, 255, 0.16);
  color: #ffffff;
}

body.blueprint-premium .workflow-upload-box,
body.blueprint-premium .workflow-collapsible,
body.blueprint-premium .workflow-empty {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

body.blueprint-premium .workflow-simple-step strong,
body.blueprint-premium .workflow-help-card strong,
body.blueprint-premium .workflow-upload-box strong,
body.blueprint-premium .workflow-collapsible summary,
body.blueprint-premium .workflow-tile strong,
body.blueprint-premium .workflow-item-head strong,
body.blueprint-premium .workflow-quick-icon-card strong,
body.blueprint-premium .workflow-bar-card strong,
body.blueprint-premium .workflow-list > * strong {
  color: #ffffff;
}

body.blueprint-premium .workflow-quick-icon-card p,
body.blueprint-premium .workflow-quick-link p,
body.blueprint-premium .workflow-bar-card small {
  color: rgba(221, 229, 255, 0.72);
}

body.blueprint-premium .workflow-quick-icon-card:hover,
body.blueprint-premium .workflow-quick-link:hover,
body.blueprint-premium .workflow-bar-card:hover {
  border-color: rgba(0, 91, 255, 0.36);
  box-shadow: 0 22px 44px rgba(0, 91, 255, 0.16);
}

body.blueprint-premium .workflow-board-list > * {
  padding: 14px 16px;
  border-radius: 16px;
}

body.blueprint-premium .workflow-board-list > * + * {
  margin-top: 8px;
}

body.blueprint-premium .workflow-table-wrap {
  border-radius: 18px;
  border: 1px solid rgba(126, 142, 255, 0.12);
  background: rgba(7, 10, 24, 0.6);
}

body.blueprint-premium .workflow-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

body.blueprint-premium .workflow-input:focus,
body.blueprint-premium .workflow-select:focus,
body.blueprint-premium .workflow-textarea:focus {
  outline: none;
  border-color: rgba(0, 91, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(0, 91, 255, 0.12);
}

body.blueprint-premium .workflow-btn-ghost:hover,
body.blueprint-premium .workflow-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
}

/* Global readability guard: fixes washed/light cards and low-contrast rows/buttons */
body.blueprint-premium .card,
body.blueprint-premium .card-box,
body.blueprint-premium .graph-box,
body.blueprint-premium .side-card,
body.blueprint-premium .dashboard-cards .card,
body.blueprint-premium .workflow-quick-link,
body.blueprint-premium .workflow-quick-icon-card,
body.blueprint-premium .workflow-bar-card {
  background: linear-gradient(145deg, rgba(15, 20, 47, 0.96), rgba(11, 15, 36, 0.92)) !important;
  border-color: rgba(126, 142, 255, 0.18) !important;
  color: #ffffff !important;
}

body.blueprint-premium .card *,
body.blueprint-premium .card-box *,
body.blueprint-premium .graph-box *,
body.blueprint-premium .side-card *,
body.blueprint-premium .dashboard-cards .card *,
body.blueprint-premium .workflow-quick-link *,
body.blueprint-premium .workflow-quick-icon-card *,
body.blueprint-premium .workflow-bar-card * {
  color: inherit;
}

body.blueprint-premium .card p,
body.blueprint-premium .card small,
body.blueprint-premium .card span,
body.blueprint-premium .card-box p,
body.blueprint-premium .card-box small,
body.blueprint-premium .card-box span,
body.blueprint-premium .graph-box p,
body.blueprint-premium .graph-box small,
body.blueprint-premium .graph-box span,
body.blueprint-premium .side-card p,
body.blueprint-premium .side-card small,
body.blueprint-premium .side-card span,
body.blueprint-premium .dashboard-cards .card p,
body.blueprint-premium .dashboard-cards .card small,
body.blueprint-premium .dashboard-cards .card span {
  color: rgba(221, 229, 255, 0.78) !important;
}

body.blueprint-premium .card h1,
body.blueprint-premium .card h2,
body.blueprint-premium .card h3,
body.blueprint-premium .card h4,
body.blueprint-premium .card strong,
body.blueprint-premium .card-box h1,
body.blueprint-premium .card-box h2,
body.blueprint-premium .card-box h3,
body.blueprint-premium .card-box h4,
body.blueprint-premium .card-box strong,
body.blueprint-premium .graph-box h1,
body.blueprint-premium .graph-box h2,
body.blueprint-premium .graph-box h3,
body.blueprint-premium .graph-box h4,
body.blueprint-premium .graph-box strong,
body.blueprint-premium .side-card h1,
body.blueprint-premium .side-card h2,
body.blueprint-premium .side-card h3,
body.blueprint-premium .side-card h4,
body.blueprint-premium .side-card strong,
body.blueprint-premium .dashboard-cards .card h1,
body.blueprint-premium .dashboard-cards .card h2,
body.blueprint-premium .dashboard-cards .card h3,
body.blueprint-premium .dashboard-cards .card h4,
body.blueprint-premium .dashboard-cards .card strong {
  color: #ffffff !important;
}

body.blueprint-premium .workflow-table tr[style*="background:#fff3e6"],
body.blueprint-premium .workflow-table tr[style*="background: #fff3e6"],
body.blueprint-premium .workflow-table tr[style*="background:#ffe5e5"],
body.blueprint-premium .workflow-table tr[style*="background: #ffe5e5"] {
  background: rgba(255, 82, 82, 0.14) !important;
}

body.blueprint-premium .workflow-table tr[style*="background:#fff3e6"] td,
body.blueprint-premium .workflow-table tr[style*="background: #fff3e6"] td,
body.blueprint-premium .workflow-table tr[style*="background:#ffe5e5"] td,
body.blueprint-premium .workflow-table tr[style*="background: #ffe5e5"] td {
  color: rgba(237, 243, 255, 0.95) !important;
}

body.blueprint-premium .workflow-table tr[data-low-stock="1"] {
  background: rgba(255, 82, 82, 0.14) !important;
}

body.blueprint-premium .workflow-table tr[data-low-stock="1"] td {
  color: rgba(237, 243, 255, 0.95) !important;
}

body.blueprint-premium .workflow-table button,
body.blueprint-premium .admin-mini-table button,
body.blueprint-premium .data-table button {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(159, 176, 255, 0.26) !important;
  color: #ffffff !important;
}

body.blueprint-premium .workflow-table button:hover,
body.blueprint-premium .admin-mini-table button:hover,
body.blueprint-premium .data-table button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* IMS-specific premium dark contrast fixes */
body.blueprint-premium .ims-module-card,
body.blueprint-premium .ims-side-card,
body.blueprint-premium .ims-action-card,
body.blueprint-premium .ims-table-card,
body.blueprint-premium #reportPreview,
body.blueprint-premium .ims-modal-box {
  background:
    linear-gradient(145deg, rgba(15, 20, 47, 0.96), rgba(11, 15, 36, 0.92));
  border-color: rgba(126, 142, 255, 0.16);
  color: #ffffff;
}

body.blueprint-premium .ims-module-card strong,
body.blueprint-premium .ims-side-card h4,
body.blueprint-premium .ims-action-card h3,
body.blueprint-premium .ims-action-card h4,
body.blueprint-premium #reportPreview h2,
body.blueprint-premium #reportPreview h3 {
  color: #ffffff;
}

body.blueprint-premium .ims-module-card span,
body.blueprint-premium .ims-side-card span,
body.blueprint-premium .ims-action-card p,
body.blueprint-premium #reportPreview p {
  color: rgba(221, 229, 255, 0.72);
}

body.blueprint-premium #reportPreview table,
body.blueprint-premium #reportPreview th,
body.blueprint-premium #reportPreview td {
  color: rgba(228, 235, 255, 0.9);
  border-color: rgba(126, 142, 255, 0.14);
}

.premium-hero-banner {
  position: relative;
  overflow: hidden;
}

.premium-hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,91,255,0.32), transparent 68%);
  pointer-events: none;
}

.premium-ribbon-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.premium-ribbon {
  position: absolute;
  right: -24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(0,91,255,0.78), rgba(106,0,255,0.28));
  animation: premiumRibbonDrift 10s ease-in-out infinite;
}

.premium-ribbon.one {
  width: 260px;
  height: 42px;
  top: 80px;
  transform: rotate(34deg);
}

.premium-ribbon.two {
  width: 220px;
  height: 34px;
  top: 150px;
  transform: rotate(22deg);
  animation-delay: -2s;
}

.premium-ribbon.three {
  width: 290px;
  height: 30px;
  top: 214px;
  transform: rotate(46deg);
  animation-delay: -4s;
}

.premium-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(141, 159, 255, 0.16);
  color: #b9c9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.premium-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.premium-highlight-card {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(17, 22, 52, 0.95), rgba(8, 11, 28, 0.94));
  border: 1px solid rgba(132, 148, 255, 0.14);
}

.premium-highlight-card h3,
.premium-highlight-card p {
  margin: 0;
}

.premium-highlight-card h3 {
  color: #ffffff;
}

.premium-highlight-card p {
  margin-top: 8px;
  color: rgba(220, 228, 255, 0.72);
  line-height: 1.7;
}

.premium-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,91,255,0.26), rgba(106,0,255,0.24));
  color: #ffffff;
  font-size: 22px;
}

.login-premium {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 28px;
}

.login-layout {
  width: min(1280px, 100%);
  display: grid;
  grid-template-columns: 1.2fr 420px;
  gap: 22px;
  align-items: stretch;
}

.login-hero,
.login-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(132, 148, 255, 0.14);
  background:
    radial-gradient(circle at top left, rgba(0, 91, 255, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(106, 0, 255, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(8, 10, 28, 0.98), rgba(14, 17, 42, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.login-hero {
  padding: 42px;
  display: grid;
  align-content: space-between;
}

.login-panel {
  padding: 32px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.login-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.login-mini-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.login-mini-nav span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(140, 156, 255, 0.12);
  color: rgba(226, 233, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
}

.login-brand-copy h1,
.login-brand-copy p,
.login-panel h2,
.login-panel p,
.login-panel label {
  margin: 0;
  color: #ffffff;
}

.login-brand-copy h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.login-brand-copy h1 span {
  display: block;
  background: linear-gradient(90deg, #ffffff 0%, #9ed5ff 42%, #f0a5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-brand-copy p,
.login-panel p {
  color: rgba(221, 229, 255, 0.72);
  line-height: 1.75;
}

.login-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.login-hero-stat {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(140, 156, 255, 0.12);
}

.login-hero-stat strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 28px;
}

.login-hero-stat span {
  color: rgba(226, 233, 255, 0.72);
}

.login-panel input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(140, 156, 255, 0.14);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
}

.login-panel input::placeholder {
  color: rgba(214, 222, 255, 0.38);
}

.login-panel button[type="submit"],
.login-primary-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, #005bff 0%, #6a00ff 100%);
  box-shadow: 0 18px 34px rgba(0, 91, 255, 0.26);
}

.login-toggle-btn {
  border: 1px solid rgba(140, 156, 255, 0.14);
  background: rgba(255,255,255,0.05);
  color: #cfe0ff;
  border-radius: 999px;
  padding: 8px 12px;
}

.login-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes premiumRibbonDrift {
  0%, 100% { transform: translateY(0) rotate(34deg); }
  50% { transform: translateY(-10px) rotate(37deg); }
}

@media (max-width: 1100px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .login-premium {
    padding: 14px;
  }

  .login-hero,
  .login-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .login-hero-grid {
    grid-template-columns: 1fr;
  }
}

body.blueprint-premium .email-page-content,
body.blueprint-premium .chat-page-content {
  padding: 20px;
}

body.blueprint-premium .email-shell,
body.blueprint-premium .chat-shell {
  background:
    linear-gradient(180deg, rgba(10, 16, 36, 0.96), rgba(7, 11, 28, 0.98)),
    radial-gradient(circle at top right, rgba(0, 91, 255, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(106, 0, 255, 0.14), transparent 34%);
  border: 1px solid rgba(126, 151, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  color: #ffffff;
}

body.blueprint-premium .email-nav,
body.blueprint-premium .chat-sidebar {
  background: linear-gradient(180deg, rgba(15, 23, 49, 0.98), rgba(8, 13, 31, 0.96));
  border-color: rgba(126, 151, 255, 0.14);
}

body.blueprint-premium .compose-btn,
body.blueprint-premium .send-btn,
body.blueprint-premium .workflow-btn-primary,
body.blueprint-premium .workflow-btn {
  background: linear-gradient(135deg, #005bff, #6a00ff);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(0, 91, 255, 0.28);
}

body.blueprint-premium .compose-btn:hover,
body.blueprint-premium .send-btn:hover,
body.blueprint-premium .workflow-btn-primary:hover,
body.blueprint-premium .workflow-btn:hover {
  transform: translateY(-2px);
}

body.blueprint-premium .folder,
body.blueprint-premium .btn,
body.blueprint-premium .ghost-btn,
body.blueprint-premium .attach-btn,
body.blueprint-premium .toolbar button,
body.blueprint-premium .chat-list-item,
body.blueprint-premium .sidebar-stat,
body.blueprint-premium .chat-section-title,
body.blueprint-premium .current-user-chip {
  color: rgba(235, 242, 255, 0.9);
}

body.blueprint-premium .folder,
body.blueprint-premium .btn,
body.blueprint-premium .ghost-btn,
body.blueprint-premium .attach-btn,
body.blueprint-premium .toolbar button,
body.blueprint-premium .sidebar-stat,
body.blueprint-premium .chat-sidebar-top,
body.blueprint-premium .chat-section-title,
body.blueprint-premium .current-user-chip,
body.blueprint-premium .thread-item,
body.blueprint-premium .attachment,
body.blueprint-premium .attach-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(126, 151, 255, 0.14);
}

body.blueprint-premium .folder.active,
body.blueprint-premium .row.active,
body.blueprint-premium .chat-list-item.active {
  background: linear-gradient(135deg, rgba(0, 91, 255, 0.22), rgba(106, 0, 255, 0.18));
  color: #ffffff;
}

body.blueprint-premium .row:hover,
body.blueprint-premium .folder:hover,
body.blueprint-premium .chat-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.blueprint-premium .topbar,
body.blueprint-premium .list-head,
body.blueprint-premium .pagination,
body.blueprint-premium .modal-head,
body.blueprint-premium .compose-foot,
body.blueprint-premium .chat-sidebar-top {
  border-color: rgba(126, 151, 255, 0.14);
}

body.blueprint-premium .topbar input,
body.blueprint-premium .topbar select,
body.blueprint-premium .compose-row input,
body.blueprint-premium .compose-meta-row input,
body.blueprint-premium .quick-start select,
body.blueprint-premium .search-box input {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(126, 151, 255, 0.14);
}

body.blueprint-premium .topbar input::placeholder,
body.blueprint-premium .compose-row input::placeholder,
body.blueprint-premium .compose-meta-row input::placeholder,
body.blueprint-premium .search-box input::placeholder {
  color: rgba(214, 224, 255, 0.5);
}

body.blueprint-premium .email-main,
body.blueprint-premium .viewer-pane,
body.blueprint-premium .viewer,
body.blueprint-premium .compose,
body.blueprint-premium .compose-editor-shell,
body.blueprint-premium .editor,
body.blueprint-premium .viewer h2,
body.blueprint-premium .body-html,
body.blueprint-premium .meta,
body.blueprint-premium .empty,
body.blueprint-premium .chat-main,
body.blueprint-premium .chat-content,
body.blueprint-premium .chat-list-name,
body.blueprint-premium .chat-list-preview,
body.blueprint-premium .chat-list-time,
body.blueprint-premium .chat-sidebar-top-head h2,
body.blueprint-premium .sidebar-hint,
body.blueprint-premium .sender,
body.blueprint-premium .subject,
body.blueprint-premium .date,
body.blueprint-premium .compose-title strong,
body.blueprint-premium .compose-title span,
body.blueprint-premium .compose-label {
  color: #ffffff;
}

body.blueprint-premium .meta,
body.blueprint-premium .date,
body.blueprint-premium .sidebar-hint,
body.blueprint-premium .chat-list-preview,
body.blueprint-premium .chat-list-time,
body.blueprint-premium .compose-title span,
body.blueprint-premium .compose-label,
body.blueprint-premium .list-head,
body.blueprint-premium .chip {
  color: rgba(214, 224, 255, 0.72);
}

body.blueprint-premium .list-pane,
body.blueprint-premium .row,
body.blueprint-premium .thread,
body.blueprint-premium .compose-row,
body.blueprint-premium .compose-meta-row,
body.blueprint-premium .toolbar,
body.blueprint-premium .chat-list-item {
  border-color: rgba(126, 151, 255, 0.12);
}

body.blueprint-premium .modal {
  background: rgba(1, 4, 16, 0.58);
  backdrop-filter: blur(10px);
}

body.blueprint-premium .modal-box {
  background: linear-gradient(180deg, rgba(10, 16, 36, 0.98), rgba(7, 11, 28, 0.98));
  border: 1px solid rgba(126, 151, 255, 0.18);
}

body.blueprint-premium .modal-head,
body.blueprint-premium .compose-foot,
body.blueprint-premium .toolbar,
body.blueprint-premium .compose-meta-row {
  background: rgba(255, 255, 255, 0.04);
}

body.blueprint-premium .editor:empty:before {
  color: rgba(214, 224, 255, 0.46);
}

body.blueprint-premium .folder-badge,
body.blueprint-premium .chat-avatar,
body.blueprint-premium .chat-avatar.group {
  background: linear-gradient(135deg, #005bff, #6a00ff);
  color: #ffffff;
}

body.blueprint-premium .chat-type-chip,
body.blueprint-premium .chip {
  background: rgba(0, 91, 255, 0.14);
  color: #d8e4ff;
}

@media (max-width: 900px) {
  body.blueprint-premium .email-page-content,
  body.blueprint-premium .chat-page-content {
    padding: 12px;
  }
}

body.blueprint-premium .workflow-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(126, 151, 255, 0.14);
  color: #ffffff;
}

body.blueprint-premium .workflow-list-item + .workflow-list-item {
  margin-top: 10px;
}

body.blueprint-premium .workflow-list-item strong {
  color: #ffffff;
}

body.blueprint-premium .workflow-list-item span {
  color: rgba(214, 224, 255, 0.72);
  text-align: right;
}

/* Universal readability hardening across modules */
body.blueprint-premium .content h1,
body.blueprint-premium .content h2,
body.blueprint-premium .content h3,
body.blueprint-premium .content h4,
body.blueprint-premium .content h5,
body.blueprint-premium .content h6,
body.blueprint-premium .content strong,
body.blueprint-premium .content th,
body.blueprint-premium .content td,
body.blueprint-premium .content label {
  color: #eef4ff !important;
}

body.blueprint-premium .content p,
body.blueprint-premium .content small,
body.blueprint-premium .content span,
body.blueprint-premium .content li,
body.blueprint-premium .content .workflow-muted,
body.blueprint-premium .content .muted {
  color: rgba(223, 232, 255, 0.86) !important;
}

body.blueprint-premium .content .workflow-section,
body.blueprint-premium .content .workflow-card,
body.blueprint-premium .content .card,
body.blueprint-premium .content .panel,
body.blueprint-premium .content .box {
  background:
    radial-gradient(circle at top left, rgba(0, 91, 255, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(106, 0, 255, 0.1), transparent 26%),
    linear-gradient(145deg, rgba(9, 13, 34, 0.97), rgba(8, 11, 30, 0.95)) !important;
  border-color: rgba(126, 142, 255, 0.2) !important;
}

body.blueprint-premium .content .workflow-table tr[style*="background:#fff"],
body.blueprint-premium .content .workflow-table tr[style*="background: #fff"],
body.blueprint-premium .content .workflow-table tr[style*="background:#fef3c7"],
body.blueprint-premium .content .workflow-table tr[style*="background: #fef3c7"],
body.blueprint-premium .content .workflow-table tr[style*="background:#fff7ed"],
body.blueprint-premium .content .workflow-table tr[style*="background: #fff7ed"] {
  background: rgba(255, 109, 109, 0.14) !important;
}

body.blueprint-premium .content .workflow-table tr[style*="background:#fff"] td,
body.blueprint-premium .content .workflow-table tr[style*="background: #fff"] td,
body.blueprint-premium .content .workflow-table tr[style*="background:#fef3c7"] td,
body.blueprint-premium .content .workflow-table tr[style*="background: #fef3c7"] td,
body.blueprint-premium .content .workflow-table tr[style*="background:#fff7ed"] td,
body.blueprint-premium .content .workflow-table tr[style*="background: #fff7ed"] td {
  color: #eef4ff !important;
}

body.blueprint-premium .content button,
body.blueprint-premium .content .btn,
body.blueprint-premium .content .workflow-btn,
body.blueprint-premium .content .workflow-btn-secondary,
body.blueprint-premium .content .workflow-btn-ghost {
  color: #ffffff !important;
}

body.blueprint-premium .content .workflow-item,
body.blueprint-premium .content .workflow-tile,
body.blueprint-premium .content .workflow-board,
body.blueprint-premium .content .workflow-kpi,
body.blueprint-premium .content .workflow-pill {
  background: linear-gradient(145deg, rgba(15, 20, 47, 0.96), rgba(11, 15, 36, 0.92)) !important;
  border-color: rgba(126, 142, 255, 0.2) !important;
}

body.blueprint-premium .content .workflow-item-head h2,
body.blueprint-premium .content .workflow-item-head h3,
body.blueprint-premium .content .workflow-item-head strong,
body.blueprint-premium .content .workflow-board strong,
body.blueprint-premium .content .workflow-tile strong,
body.blueprint-premium .content .workflow-kpi strong {
  color: #f4f7ff !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

/* 2026-04-25 hard-fix: button contrast + approval tile readability + theme vars */
body.blueprint-premium .workflow-btn,
body.blueprint-premium .workflow-btn-secondary,
body.blueprint-premium .workflow-btn-ghost,
body.blueprint-premium .content .workflow-btn,
body.blueprint-premium .content .workflow-btn-secondary,
body.blueprint-premium .content .workflow-btn-ghost {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

body.blueprint-premium .workflow-btn-secondary,
body.blueprint-premium .workflow-btn-ghost {
  background: linear-gradient(135deg, rgba(24, 33, 76, 0.96), rgba(20, 27, 64, 0.96)) !important;
  border: 1px solid rgba(134, 155, 255, 0.35) !important;
}

body.blueprint-premium .workflow-btn-secondary:hover,
body.blueprint-premium .workflow-btn-ghost:hover {
  background: linear-gradient(135deg, rgba(37, 52, 110, 0.98), rgba(30, 42, 95, 0.98)) !important;
}

body.blueprint-premium .mgmt-approval-item,
body.blueprint-premium .mgmt-approval-item strong,
body.blueprint-premium .mgmt-approval-item small {
  color: #e8eeff !important;
}

body.blueprint-premium .mgmt-approval-tile .mgmt-approval-item,
body.blueprint-premium .content .mgmt-approval-item {
  background:
    radial-gradient(circle at top left, rgba(0, 91, 255, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(15, 20, 47, 0.96), rgba(11, 15, 36, 0.92)) !important;
  border: 1px solid rgba(126, 142, 255, 0.2) !important;
  box-shadow: none !important;
}

body.blueprint-premium .mgmt-approval-tile .mgmt-approval-item strong,
body.blueprint-premium .content .mgmt-approval-item strong {
  color: #f8fafc !important;
}

body.blueprint-premium .mgmt-approval-tile .mgmt-approval-item small,
body.blueprint-premium .content .mgmt-approval-item small {
  color: rgba(221, 229, 255, 0.76) !important;
}

body.blueprint-premium .prodx-risk,
body.blueprint-premium .content .prodx-risk {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(0, 91, 255, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(15, 20, 47, 0.96), rgba(11, 15, 36, 0.92)) !important;
  border-color: rgba(126, 142, 255, 0.24) !important;
}

body.blueprint-premium .prodx-risk strong.prod-high,
body.blueprint-premium .content .prodx-risk strong.prod-high {
  color: #f8fafc !important;
}

body.blueprint-premium .prodx-risk .workflow-muted,
body.blueprint-premium .content .prodx-risk .workflow-muted {
  color: rgba(221, 229, 255, 0.78) !important;
}

:root {
  --theme-primary: #005bff;
  --theme-secondary: #6a00ff;
  --theme-card-radius: 20px;
  --theme-card-padding: 18px;
  --theme-card-gap: 18px;
  --theme-font-scale: 1;
  --theme-content-max: none;
  --theme-glow-strength: 0.28;
  --theme-section-opacity: 0.96;
}

body.blueprint-premium.theme-compact .workflow-card,
body.blueprint-premium.theme-compact .workflow-section,
body.blueprint-premium.theme-compact .workflow-board {
  padding: calc(var(--theme-card-padding, 18px) - 4px) !important;
}

body.blueprint-premium {
  font-size: calc(16px * var(--theme-font-scale, 1));
}

body.blueprint-premium .content > .workflow-shell {
  max-width: var(--theme-content-max, none);
  margin-left: auto;
  margin-right: auto;
}

body.blueprint-premium .workflow-shell,
body.blueprint-premium .workflow-grid,
body.blueprint-premium .workflow-hero-grid,
body.blueprint-premium .workflow-form-grid,
body.blueprint-premium .ims-main-grid,
body.blueprint-premium .ims-module-grid,
body.blueprint-premium .ims-insight-grid {
  gap: var(--theme-card-gap, 18px) !important;
}

body.blueprint-premium .workflow-card,
body.blueprint-premium .workflow-section,
body.blueprint-premium .workflow-board {
  border-radius: var(--theme-card-radius, 20px) !important;
  padding: var(--theme-card-padding, 18px);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--theme-primary, #005bff) 18%, transparent), transparent 28%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--theme-secondary, #6a00ff) 16%, transparent), transparent 24%),
    linear-gradient(145deg, rgba(9, 12, 31, var(--theme-section-opacity, 0.96)), rgba(13, 18, 42, 0.92)) !important;
  box-shadow: 0 24px 60px rgba(0, 91, 255, var(--theme-glow-strength, 0.28)) !important;
}

body.blueprint-premium .workflow-btn {
  background: linear-gradient(135deg, var(--theme-primary, #005bff) 0%, var(--theme-secondary, #6a00ff) 100%) !important;
}

body.blueprint-premium.theme-motion-low *,
body.blueprint-premium.theme-motion-low *::before,
body.blueprint-premium.theme-motion-low *::after {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
}

body.blueprint-premium.theme-table-light .workflow-table td,
body.blueprint-premium.theme-table-light .admin-mini-table td,
body.blueprint-premium.theme-table-light .data-table td {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Editorial/Design readability fixes for light card bleed and low-contrast text */
body.blueprint-premium .workflow-help-inline {
  background: rgba(20, 27, 64, 0.92) !important;
  border: 1px solid rgba(134, 155, 255, 0.24) !important;
  color: rgba(230, 236, 255, 0.88) !important;
}

body.blueprint-premium .workflow-page-card,
body.blueprint-premium .workflow-page-card-ready,
body.blueprint-premium .workflow-page-card-pending {
  background: linear-gradient(145deg, rgba(15, 20, 47, 0.97), rgba(11, 15, 36, 0.94)) !important;
  border-color: rgba(126, 142, 255, 0.2) !important;
}

body.blueprint-premium .workflow-page-card strong {
  color: #f4f7ff !important;
}

body.blueprint-premium .workflow-page-card small,
body.blueprint-premium .workflow-page-card .workflow-page-preview-empty {
  color: rgba(221, 229, 255, 0.8) !important;
}
