:root {
  /* ==========================================================
     PRISMA DESIGN SYSTEM
     ========================================================== */

  /* App surfaces */
  --prisma-bg: #f5f7fa;
  --prisma-surface: #ffffff;
  --prisma-surface-subtle: #f9fafb;
  --prisma-surface-selected: #f2f4f7;

  /* Text */
  --prisma-text-strong: #101828;
  --prisma-text: #344054;
  --prisma-text-muted: #667085;
  --prisma-text-subtle: #98a2b3;

  /* Borders */
  --prisma-border: #e4e7ec;
  --prisma-border-subtle: #f0f2f5;
  --prisma-border-strong: #d0d5dd;

  /* Brand */
  --prisma-primary: #245b91;
  --prisma-primary-hover: #1d4d7d;
  --prisma-primary-soft: #eef4fa;

  /* Critical */
  --prisma-critical: #b42318;
  --prisma-critical-bg: #fef3f2;
  --prisma-critical-border: #fecdca;

  /* Watch / High */
  --prisma-watch: #b54708;
  --prisma-watch-bg: #fffaeb;
  --prisma-watch-border: #fedf89;

  /* Information / Medium */
  --prisma-info: #175cd3;
  --prisma-info-bg: #eff8ff;
  --prisma-info-border: #b2ddff;

  /* Healthy */
  --prisma-healthy: #027a48;
  --prisma-healthy-bg: #ecfdf3;
  --prisma-healthy-border: #abefc6;

  /* Neutral */
  --prisma-neutral-bg: #f2f4f7;

  /* Sidebar */
  --prisma-sidebar-bg: #111827;
  --prisma-sidebar-hover: #182230;
  --prisma-sidebar-active: #1d2939;
  --prisma-sidebar-text: #d0d5dd;
  --prisma-sidebar-muted: #98a2b3;

  /* Shape */
  --prisma-radius-sm: 6px;
  --prisma-radius-control: 8px;
  --prisma-radius-panel: 10px;
  --prisma-radius-modal: 12px;

  /* Spacing */
  --prisma-space-1: 4px;
  --prisma-space-2: 8px;
  --prisma-space-3: 12px;
  --prisma-space-4: 16px;
  --prisma-space-5: 20px;
  --prisma-space-6: 24px;
  --prisma-space-8: 32px;

  /* Shadow */
  --prisma-shadow-xs:
    0 1px 2px rgba(16, 24, 40, 0.04);

  --prisma-shadow-overlay:
    0 12px 30px rgba(16, 24, 40, 0.12);

  /* Sidebar brand */
  --prisma-injourney-navy: #0b1830;
  --prisma-injourney-navy-2: #102443;
  --prisma-injourney-surface: #11294d;
  --prisma-injourney-gold: #f5b335;
  --prisma-injourney-gold-soft: rgba(245, 179, 53, .16);

  /* Readability */
  --prisma-readable-body: 14px;
  --prisma-readable-meta: 12px;
  --prisma-readable-nav: 13px;

  /* Controls */
  --prisma-control-height: 38px;
  --prisma-control-height-sm: 34px;
  --prisma-control-bg: var(--prisma-surface);
  --prisma-control-bg-hover: var(--prisma-surface-subtle);
  --prisma-control-disabled-bg: var(--prisma-neutral-bg);
  --prisma-control-placeholder: var(--prisma-text-subtle);
  --prisma-focus-ring: 0 0 0 3px rgba(36, 91, 145, .14);
  --prisma-danger-focus-ring: 0 0 0 3px rgba(180, 35, 24, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--prisma-bg);
  color: var(--prisma-text-strong);
}

/* ===== Layout ===== */
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.header-brand h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-brand p {
  font-size: 12px;
  color: #8b8fa8;
  margin: 3px 0 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.header-right .user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
}

.header-right .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.header-right .user-name {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a2e;
}

.header-right a {
  color: #8b8fa8;
  text-decoration: none;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #e2e5ef;
  background: #fff;
  font-weight: 500;
  transition: all 0.15s;
}

.header-right a:hover {
  border-color: #c5c9dc;
  color: #1a1a2e;
}

.header-right a.btn-logout {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.header-right a.btn-logout:hover {
  background: #fee2e2;
}

/* ===== Stat Cards ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #e2e5ef;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-icon.blue {
  background: #eff6ff;
}

.stat-icon.amber {
  background: #fffbeb;
}

.stat-icon.purple {
  background: #f5f3ff;
}

.stat-icon.green {
  background: #f0fdf4;
}

.stat-text .label {
  font-size: 11px;
  color: #8b8fa8;
  margin: 0 0 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.stat-text .value {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
  line-height: 1;
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Charts ===== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.charts-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.chart-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid #e2e5ef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chart-title {
  font-size: 11px;
  font-weight: 600;
  color: #8b8fa8;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}

.chart-box {
  position: relative;
  height: 150px;
}

@media (max-width: 640px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Tabs ===== */
.tabs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 12px;
  padding: 5px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  color: #8b8fa8;
  font-weight: 500;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn.active {
  background: #1a1a2e;
  color: #fff;
}

.tab-btn:hover:not(.active) {
  background: #f0f2f5;
  color: #1a1a2e;
}

.tab-manage-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e2e5ef;
  color: #8b8fa8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.15s;
}

.tab-manage-btn:hover {
  border-color: #c5c9dc;
  color: #1a1a2e;
  background: #f8f9fc;
}

/* ===== Buttons ===== */
.add-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

button,
.btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 9px;
  font-size: 13px;
  padding: 9px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: all 0.15s;
  border: none;
}

.btn-primary {
  background: #1a1a2e;
  color: #fff;
}

.btn-primary:hover {
  background: #2d2d4e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.25);
}

.btn-ghost {
  background: #fff;
  border: 1px solid #e2e5ef;
  color: #6b7080;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-ghost:hover {
  border-color: #c5c9dc;
  color: #1a1a2e;
  background: #f8f9fc;
}

.btn-danger {
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

.btn-danger:hover {
  background: #fff5f5 !important;
}

/* ===== Task / Arahan / Assessment Cards ===== */
.card {
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.card .title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #1a1a2e;
}

.card .meta {
  font-size: 12px;
  color: #8b8fa8;
  margin: 4px 0 0;
}

/* ===== Badge ===== */
.badge {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.badge.ontrack {
  background: #fef9c3;
  color: #854d0e;
}

.badge.late {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.done {
  background: #dcfce7;
  color: #15803d;
}

.badge.process {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ===== Progress Bar ===== */
.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-bg {
  flex: 1;
  height: 7px;
  background: #f0f2f5;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 12px;
  color: #8b8fa8;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* ===== Card Actions ===== */
.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}

/* ===== Empty State ===== */
.empty {
  text-align: center;
  padding: 60px 0;
  color: #b0b4c8;
  font-size: 14px;
  background: #fff;
  border: 1px dashed #d4d8e8;
  border-radius: 14px;
}

.empty::before {
  content: '📋';
  display: block;
  font-size: 32px;
  margin-bottom: 12px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 30, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

.modal {
  background: #fff;
  border-radius: 18px;
  padding: 26px 28px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal h2 {
  font-size: 17px;
  margin: 0 0 20px;
  font-weight: 700;
  color: #1a1a2e;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  color: #8b8fa8;
  margin-bottom: 5px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  padding: 9px 12px;
  border: 1px solid #e2e5ef;
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.field input[type="range"] {
  padding: 0;
  border: none;
  background: transparent;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f0f2f5;
}

/* ===== Divider ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-divider h3 {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  white-space: nowrap;
}

.section-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid #e2e5ef;
}

/* ===== Login ===== */
.login-wrap h1 {
  font-size: 20px;
  margin: 0 0 4px;
  font-weight: 700;
}

.login-wrap p {
  font-size: 13px;
  color: #8b8fa8;
  margin: 0 0 24px;
}

.error-msg {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 9px;
  margin-bottom: 16px;
}

/* ===== Overview (Ringkasan) ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ov-section {
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.ov-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbff;
}

.ov-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  line-height: 1;
}

.ov-header-text {
  flex: 1;
  min-width: 0;
}

.ov-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}

.ov-sub {
  font-size: 11px;
  color: #8b8fa8;
  margin-top: 2px;
}

.ov-link {
  font-size: 11px;
  color: #667eea;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}

.ov-link:hover {
  text-decoration: underline;
}

.ov-items-wrap {
  padding: 4px 16px 8px;
}

.ov-item {
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f8;
}

.ov-item:last-of-type {
  border-bottom: none;
}

.ov-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ov-item-title {
  font-size: 12px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}

.ov-item-badge {
  flex-shrink: 0;
  font-size: 10px !important;
  padding: 2px 7px !important;
}

.ov-more {
  font-size: 12px;
  color: #667eea;
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 9px 16px;
  border-top: 1px solid #f0f2f5;
  font-weight: 600;
}

.ov-more:hover {
  background: #f5f6fb;
}

.ov-tab-link {
  font-size: 12px;
  color: #b0b4c8;
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 8px 16px;
  border-top: 1px solid #f0f2f5;
}

.ov-tab-link:hover {
  color: #667eea;
  background: #f5f6fb;
}

@media (max-width: 900px) {
  .ov-stat-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .ov-stat-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===== Profile Dropdown ===== */
/* ===== Notifikasi Bell ===== */
.notif-wrap {
  position: relative;
}

.notif-btn {
  position: relative;
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s;
}

.notif-btn:hover {
  border-color: #c5c9dc;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e24b4a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f5f5f0;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid #e5e3dc;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 999;
  overflow: hidden;
}

.notif-dropdown.open {
  display: block;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0eb;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #f9f9f7;
  transition: background 0.15s;
  align-items: flex-start;
}

.notif-item:hover {
  background: #f9f9f7;
}

.notif-item.unread {
  background: #f5f7ff;
}

.notif-item.unread:hover {
  background: #eef1ff;
}

.notif-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 2px;
  line-height: 1.4;
}

.notif-body {
  font-size: 11px;
  color: #6b6a63;
  line-height: 1.4;
  margin-bottom: 3px;
}

.notif-time {
  font-size: 10px;
  color: #b0b4c8;
}

.profile-wrap {
  position: relative;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  user-select: none;
}

.user-pill:hover {
  border-color: #c5c9dc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-pill.open {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  overflow: hidden;
}

.profile-dropdown.open {
  display: block;
}

.profile-header {
  padding: 18px 18px 14px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-info .profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.profile-info .profile-username {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.profile-body {
  padding: 8px;
}

.profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #4a4d60;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}

.profile-item:hover {
  background: #f0f2f5;
  color: #1a1a2e;
}

.profile-item-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.profile-divider {
  height: 1px;
  background: #f0f2f5;
  margin: 4px 8px;
}

.profile-item.danger {
  color: #dc2626;
}

.profile-item.danger:hover {
  background: #fff5f5;
}

.profile-meta {
  padding: 8px 18px 10px;
  font-size: 11px;
  color: #b0b4c8;
  border-top: 1px solid #f0f2f5;
}

/* ===== Task Detail Page ===== */
.page-header {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #4a4d60;
  text-decoration: none;
  background: #fff;
  border: 1.5px solid #e2e5ef;
  padding: 6px 14px 6px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.back-link:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(26, 26, 46, .18);
  transform: translateX(-2px);
}

.back-link .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0f1f7;
  font-size: 13px;
  transition: background .15s;
}

.back-link:hover .back-arrow {
  background: rgba(255, 255, 255, .15);
}

/* Back button inside forms */
.btn-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #4a4d60;
  background: #fff;
  border: 1.5px solid #e2e5ef;
  padding: 8px 16px 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.btn-back-inline:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
  box-shadow: 0 2px 8px rgba(26, 26, 46, .18);
  transform: translateX(-2px);
}

.btn-back-inline .back-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0f1f7;
  font-size: 13px;
  transition: background .15s;
}

.btn-back-inline:hover .back-arrow {
  background: rgba(255, 255, 255, .15);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.update-item {
  background: #fff;
  border: 1px solid #e2e5ef;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
}

.update-item.deleted {
  opacity: 0.55;
  background: #fafafa;
}

.update-meta {
  font-size: 11px;
  color: #8b8fa8;
  margin-bottom: 6px;
}

.update-content {
  font-size: 13px;
  color: #1a1a2e;
  line-height: 1.6;
}

.update-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

/* ===== Stats Bar ===== */
.statsbar {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.sb-item {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #e8eaf0;
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
}

.sb-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
  border-color: #c8cce0;
}

.sb-item.sb-active {
  border-color: #1a1a2e;
  background: #f7f8ff;
}

.sb-item.sb-progress {
  cursor: default;
}

.sb-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sb-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sb-label {
  font-size: 11px;
  font-weight: 600;
  color: #8b8fa8;
  letter-spacing: .04em;
}

.sb-value {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
}

.sb-pills {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}

.sb-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.sb-pill.ontrack {
  background: #ecfdf5;
  color: #15803d;
}

.sb-pill.late {
  background: #fee2e2;
  color: #b91c1c;
}

.sb-pill.done {
  background: #eff6ff;
  color: #1d4ed8;
}


/* ==========================================================
   Application shell — Application Shell
   Dashboard-only structure; legacy detail/admin pages remain intact.
   ========================================================== */
.prisma-app {
  --prisma-sidebar: 252px;
  --prisma-sidebar-collapsed: 76px;
  --prisma-topbar: 72px;
  min-height: 100vh;
}

.prisma-app .prisma-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--prisma-topbar);
  margin: 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e6e9f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
  backdrop-filter: blur(10px);
}

.prisma-topbar-left,
.prisma-topbar-center,
.prisma-topbar-actions {
  display: flex;
  align-items: center;
}

.prisma-topbar-left {
  gap: 12px;
  min-width: 0;
}

.prisma-topbar-center {
  gap: 10px;
  justify-content: center;
}

.prisma-topbar-actions {
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.prisma-menu-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid #e3e7ef;
  background: #fff;
  border-radius: 10px;
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.prisma-menu-toggle span {
  width: 100%;
  height: 1.5px;
  background: #344054;
  border-radius: 999px;
  display: block;
}

.prisma-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.prisma-brand img {
  width: auto;
  height: 36px;
  max-width: 150px;
  object-fit: contain;
}

.prisma-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #18243f;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.prisma-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prisma-brand-copy strong {
  font-size: 14px;
  color: #172033;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prisma-brand-copy small {
  color: #98a2b3;
  font-size: 10px;
  margin-top: 1px;
  white-space: nowrap;
}

.prisma-context-chip,
.prisma-year-control {
  min-height: 44px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
}

.prisma-context-icon {
  color: #475467;
  font-size: 16px;
}

.prisma-context-chip span:nth-child(2),
.prisma-year-control>span {
  display: flex;
  flex-direction: column;
}

.prisma-context-chip small,
.prisma-year-control small {
  font-size: 9px;
  letter-spacing: .06em;
  color: #98a2b3;
  line-height: 1.2;
}

.prisma-context-chip strong,
.prisma-year-control strong {
  font-size: 12px;
  color: #344054;
  line-height: 1.35;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prisma-year-control select {
  border: 0;
  background: #f8fafc;
  color: #344054;
  border-radius: 7px;
  padding: 5px 24px 5px 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.prisma-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #475467;
}

.prisma-live-dot {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #12b76a;
  border: 1.5px solid #fff;
}

.prisma-user-pill {
  min-height: 40px !important;
  padding: 5px 9px 5px 6px !important;
  border-radius: 11px !important;
  cursor: pointer;
}

.prisma-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.prisma-user-copy {
  display: flex;
  flex-direction: column;
  max-width: 135px;
}

.prisma-user-copy .user-name {
  font-size: 12px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prisma-user-copy>span:last-child {
  font-size: 9px;
  color: #98a2b3;
  text-transform: capitalize;
}

.prisma-chevron {
  font-size: 11px;
  color: #98a2b3;
  margin-left: 2px;
}

.prisma-workspace {
  display: grid;
  grid-template-columns: var(--prisma-sidebar) minmax(0, 1fr);
  min-height: calc(100vh - var(--prisma-topbar));
  transition: grid-template-columns .2s ease;
}

.prisma-sidebar {
  position: sticky;
  top: var(--prisma-topbar);
  height: calc(100vh - var(--prisma-topbar));
  padding: 18px 12px 14px;
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 800;
}

.prisma-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prisma-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prisma-nav-item,
.prisma-nav-domain-title {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #c9d1df;
  text-decoration: none;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.prisma-nav-item:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.prisma-nav-item.active {
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.prisma-nav-icon {
  width: 20px;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: inherit;
}

.prisma-nav-domain {
  border-radius: 10px;
}

.prisma-nav-domain-title {
  color: #eaecf0;
  min-height: 34px;
  padding-bottom: 5px;
}

.prisma-nav-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 30px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .09);
}

.prisma-nav-child {
  color: #98a2b3;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.35;
  padding: 7px 9px;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prisma-nav-child:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.prisma-nav-child.active {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  font-weight: 650;
}

.prisma-nav-admin {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.prisma-sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prisma-sidebar-company {
  color: #d0d5dd;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prisma-sidebar-footer small {
  color: #667085;
  font-size: 9px;
}

.prisma-sidebar-backdrop {
  display: none;
}

.prisma-main {
  min-width: 0;
  padding: 24px 28px 72px;
  background: #f5f7fa;
}

.prisma-page-context {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.prisma-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #98a2b3;
  font-size: 10px;
  margin-bottom: 7px;
}

.prisma-breadcrumb b {
  font-weight: 400;
  color: #d0d5dd;
}

.prisma-breadcrumb strong {
  color: #667085;
  font-weight: 600;
}

.prisma-page-context h1 {
  margin: 0;
  color: #101828;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -.02em;
}

.prisma-page-context p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 11.5px;
}

.prisma-context-meta {
  display: flex;
  gap: 8px;
}

.prisma-context-meta>span {
  min-width: 105px;
  padding: 8px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.prisma-context-meta strong {
  color: #344054;
  font-size: 11px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prisma-context-meta small {
  color: #98a2b3;
  font-size: 9px;
  letter-spacing: .05em;
  margin-top: 2px;
}

.prisma-section-divider {
  height: 1px;
  background: #eaecf0;
  margin: 3px 0 16px;
}

/* Dashboard canvas no longer constrained by legacy .wrap */
.wrap:has(.prisma-app) {
  max-width: none;
  margin: 0;
  padding: 0;
}

body:has(.prisma-app) {
  background: #f5f7fa;
}

.prisma-app .statsbar {
  margin-top: 0;
}

.prisma-app.sidebar-collapsed .prisma-workspace {
  grid-template-columns: var(--prisma-sidebar-collapsed) minmax(0, 1fr);
}

.prisma-app.sidebar-collapsed .prisma-nav-label,
.prisma-app.sidebar-collapsed .prisma-nav-text,
.prisma-app.sidebar-collapsed .prisma-nav-children,
.prisma-app.sidebar-collapsed .prisma-sidebar-footer {
  display: none;
}

.prisma-app.sidebar-collapsed .prisma-sidebar {
  padding-left: 12px;
  padding-right: 12px;
}

.prisma-app.sidebar-collapsed .prisma-nav-item,
.prisma-app.sidebar-collapsed .prisma-nav-domain-title {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.prisma-app.sidebar-collapsed .prisma-nav-icon {
  width: auto;
  min-width: 0;
}

@media (max-width: 1120px) {
  .prisma-app .prisma-topbar {
    grid-template-columns: 1fr auto;
  }

  .prisma-topbar-center {
    display: none;
  }

  .prisma-brand-copy small {
    display: none;
  }
}

@media (max-width: 820px) {
  .prisma-app .prisma-topbar {
    height: 64px;
    padding: 0 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .prisma-app {
    --prisma-topbar: 64px;
  }

  .prisma-brand img {
    height: 30px;
    max-width: 110px;
  }

  .prisma-brand-copy {
    display: none;
  }

  .prisma-user-copy,
  .prisma-chevron {
    display: none;
  }

  .prisma-user-pill {
    padding: 4px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .prisma-main {
    padding: 18px 16px 56px;
  }

  .prisma-workspace {
    display: block;
  }

  .prisma-sidebar {
    position: fixed;
    left: 0;
    top: var(--prisma-topbar);
    width: 268px;
    transform: translateX(-102%);
    transition: transform .2s ease;
    box-shadow: 18px 0 35px rgba(16, 24, 40, .18);
  }

  .prisma-app.mobile-nav-open .prisma-sidebar {
    transform: translateX(0);
  }

  .prisma-sidebar-backdrop {
    position: fixed;
    inset: var(--prisma-topbar) 0 0;
    background: rgba(16, 24, 40, .45);
    z-index: 790;
  }

  .prisma-app.mobile-nav-open .prisma-sidebar-backdrop {
    display: block;
  }

  .prisma-page-context {
    align-items: flex-start;
  }

  .prisma-context-meta {
    display: none;
  }
}

.prisma-calendar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
  z-index: 1100;
  overflow: hidden;
}

.prisma-calendar-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-bottom: 1px solid #f0f2f5;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 650;
  color: #344054;
}

.prisma-calendar-dropdown-head>div {
  display: flex;
  gap: 5px;
}

.prisma-calendar-dropdown-head button {
  padding: 4px 7px;
  border: 1px solid #e4e7ec;
  background: #fff;
  color: #667085;
  border-radius: 6px;
  font-size: 10px;
}

.prisma-calendar-dropdown-body {
  padding: 10px 12px;
  max-height: 360px;
  overflow-y: auto;
  min-height: 60px;
}

/* ===== Application shell — navigation mapping & sidebar refinement ===== */
.prisma-sidebar {
  padding: 16px 12px 14px;
  background: #101828;
}

.prisma-nav {
  gap: 16px;
}

.prisma-nav-group {
  gap: 5px;
}

.prisma-nav-item,
.prisma-nav-domain-title {
  width: 100%;
  min-height: 38px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.prisma-nav-item {
  position: relative;
  color: #b9c2d0;
  font-size: 14px;
  font-weight: 580;
}

.prisma-nav-item:hover,
.prisma-nav-domain-title:hover {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.prisma-nav-item.active {
  background: #fff;
  color: #182230;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px rgba(255, 255, 255, .05);
}

.prisma-nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #f59e0b;
}

.prisma-nav-icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.prisma-nav-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.prisma-nav-domain {
  border-radius: 10px;
  transition: background .16s ease;
}

.prisma-nav-domain.active {
  background: rgba(255, 255, 255, .025);
}

.prisma-nav-domain-title {
  color: #e4e7ec;
  padding: 7px 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 650;
}

.prisma-nav-domain.active>.prisma-nav-domain-title {
  color: #fff;
}

.prisma-nav-domain.active>.prisma-nav-domain-title .prisma-nav-icon {
  color: #fdb022;
}

.prisma-nav-chevron {
  margin-left: auto;
  color: #667085;
  font-size: 11px;
  transition: transform .18s ease;
}

.prisma-nav-domain.collapsed .prisma-nav-chevron {
  transform: rotate(-90deg);
}

.prisma-nav-domain.collapsed .prisma-nav-children {
  display: none;
}

.prisma-nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: #98a2b3;
  font-size: 9px;
  font-weight: 700;
}

.prisma-nav-domain-title .prisma-nav-count+.prisma-nav-chevron {
  margin-left: 0;
}

.prisma-nav-children {
  gap: 1px;
  margin: 1px 0 5px 27px;
  padding: 2px 0 2px 9px;
  border-left-color: rgba(255, 255, 255, .08);
}

.prisma-nav-child {
  position: relative;
  min-height: 29px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  color: #98a2b3;
  font-size: 12px;
  line-height: 1.3;
}

.prisma-nav-child:hover {
  color: #f2f4f7;
  background: rgba(255, 255, 255, .045);
}

.prisma-nav-child.active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  font-weight: 650;
}

.prisma-nav-child.active::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 8px;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: #fdb022;
}

.prisma-nav-more {
  padding: 5px 9px 3px;
  color: #667085;
  font-size: 9.5px;
}

.prisma-nav-admin {
  margin-top: 1px;
  padding-top: 15px;
}

.prisma-sidebar-footer {
  padding: 13px 10px 1px;
}

.prisma-sidebar-company {
  font-size: 10.5px;
  font-weight: 600;
  color: #d0d5dd;
}

.prisma-sidebar-footer small {
  font-size: 8.5px;
  color: #667085;
}

/* Keep collapsed mode useful: domain buttons act as discoverable icons. */
.prisma-app.sidebar-collapsed .prisma-nav-domain-title {
  width: 100%;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.prisma-app.sidebar-collapsed .prisma-nav-chevron,
.prisma-app.sidebar-collapsed .prisma-nav-count {
  display: none;
}

.prisma-app.sidebar-collapsed .prisma-nav-domain.active {
  background: rgba(255, 255, 255, .05);
}

/* Brand copy: keep the long product title readable without dominating the shell. */
.prisma-brand-copy strong {
  max-width: 470px;
  font-size: 12.5px;
  font-weight: 700;
}

.prisma-brand-copy small {
  font-size: 9px;
}

@media (max-width: 1280px) {
  .prisma-brand-copy strong {
    max-width: 320px;
  }
}

/* ===== Application shell — context architecture ===== */
.prisma-topbar-center .prisma-context-chip,
.prisma-topbar-center .prisma-year-control {
  min-height: 42px;
}

.prisma-context-chip .prisma-context-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #667085;
}

.prisma-context-chip .prisma-context-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.prisma-context-chip small,
.prisma-year-control small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;
}

.prisma-context-chip strong,
.prisma-year-control strong {
  font-size: 11px;
  font-weight: 650;
}

.prisma-page-context {
  align-items: flex-start;
  margin-bottom: 17px;
}

.prisma-page-context-main {
  min-width: 0;
}

.prisma-breadcrumb {
  margin-bottom: 8px;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 9.5px;
}

.prisma-breadcrumb span {
  color: #98a2b3;
}

.prisma-breadcrumb strong {
  color: #667085;
}

.prisma-page-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.prisma-page-title-row h1 {
  min-width: 0;
}

.prisma-scope-mode {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .03em;

}

.prisma-page-context p {
  max-width: 760px;
  margin-top: 4px;
}

.prisma-context-summary {
  min-height: 21px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #667085;
}

.prisma-context-summary>span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.prisma-context-summary strong {
  max-width: 220px;
  color: #475467;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prisma-context-summary small {
  color: #98a2b3;
  font-size: 8.5px;
}

.prisma-context-summary i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d0d5dd;
  flex: 0 0 auto;
}

/* Application shell removes duplicated right-hand Scope/Period cards from the page header. */
.prisma-context-meta {
  display: none;
}

@media (max-width: 820px) {
  .prisma-page-title-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
  }

  .prisma-context-summary {
    flex-wrap: wrap;
    gap: 6px;
  }

  .prisma-context-summary strong {
    max-width: 170px;
  }
}

@media (max-width: 520px) {
  .prisma-breadcrumb {
    margin-bottom: 6px;
  }

  .prisma-scope-mode {
    min-height: 20px;
    font-size: 8px;
  }

  .prisma-context-summary small {
    display: none;
  }
}

/* =========================================================
   Application shell — Domain landing pages
   ========================================================= */
.prisma-nav-domain-overview {
  font-weight: 700;
  color: #aebbd0
}

.domain-landing {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px
}

.domain-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03)
}

.domain-eyebrow {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7c8aa5;
  margin-bottom: 7px
}

.domain-hero h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 7px;
  color: #0f172a
}

.domain-hero p {
  margin: 0;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b
}

.domain-hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 300px
}

.domain-hero-meta span {
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  letter-spacing: .04em
}

.domain-hero-meta strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0
}

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

.domain-module-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.domain-module-grid.single {
  grid-template-columns: minmax(0, 1fr)
}

.domain-module-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 168px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease
}

.domain-module-card:hover {
  border-color: #b8c5d8;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px)
}

.domain-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800
}

.domain-card-icon svg {
  width: 17px;
  height: 17px
}

.domain-card-icon.budget {
  background: #fff7e6;
  color: #d97706
}

.domain-card-icon.nonbudget {
  background: #eef2ff;
  color: #4f46e5
}

.domain-card-icon.rka {
  background: #ecfdf5;
  color: #047857
}

.domain-card-icon.direction {
  background: #fff7ed;
  color: #ea580c
}

.domain-card-icon.action {
  background: #eff6ff;
  color: #2563eb
}

.domain-card-icon.risk {
  background: #fef3c7;
  color: #b45309
}

.domain-card-body {
  min-width: 0;
  flex: 1
}

.domain-card-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #94a3b8;
  margin-bottom: 5px
}

.domain-card-body h3 {
  font-size: 14px;
  margin: 0 0 6px;
  color: #111827
}

.domain-card-body p {
  font-size: 11px;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 16px;
  min-height: 34px
}

.domain-card-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.domain-card-stats span {
  font-size: 10px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #edf1f5;
  border-radius: 999px;
  padding: 5px 8px
}

.domain-card-stats b {
  color: #1e293b
}

.domain-card-stats .danger,
.domain-card-stats .danger b {
  color: #dc2626;
  background: #fff7f7;
  border-color: #fee2e2
}

.domain-card-arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 17px;
  color: #94a3b8
}

.domain-module-card:hover .domain-card-arrow {
  color: #334155
}

.domain-note {
  font-size: 10px;
  line-height: 1.5;
  color: #94a3b8;
  padding: 0 2px
}

.domain-attention-strip {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff
}

.domain-attention-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  color: #94a3b8;
  margin-bottom: 3px
}

.domain-attention-strip strong {
  font-size: 12px;
  color: #334155
}

.domain-progress-track {
  height: 7px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden
}

.domain-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #65a30d
}

@media (max-width:1100px) {
  .domain-module-grid {
    grid-template-columns: 1fr
  }

  .domain-module-grid.two {
    grid-template-columns: 1fr
  }

  .domain-hero {
    flex-direction: column
  }

  .domain-hero-meta {
    justify-content: flex-start;
    min-width: 0
  }

  .domain-attention-strip {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {
  .domain-hero {
    padding: 17px
  }

  .domain-module-card {
    padding: 15px;
    min-height: 0
  }

  .domain-hero-meta span {
    min-width: 88px;
    flex: 1
  }

  .domain-card-body p {
    min-height: 0
  }
}


/* ===== Application shell — Role-based navigation ===== */
.prisma-nav-flat-module {
  margin: 2px 8px;
}

.prisma-nav-flat-module .prisma-nav-text {
  font-weight: 560;
}

.prisma-sidebar.collapsed .prisma-nav-flat-module {
  margin-left: 7px;
  margin-right: 7px;
}

/* ============================================================
   Application shell — Role-based landing experience
   ============================================================ */
.role-landing {
  margin: 2px 0 18px;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.role-landing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #edf0f5;
}

.role-landing-eyebrow {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  color: #74809a;
}

.role-landing-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
  color: #111827;
}

.role-landing-head p {
  max-width: 720px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #68738a;
}

.role-landing-scope {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.role-landing-scope span {
  min-width: 108px;
  padding: 8px 10px;
  border: 1px solid #e5e9f1;
  border-radius: 10px;
  background: #f8fafc;
}

.role-landing-scope small,
.role-landing-scope strong {
  display: block;
}

.role-landing-scope small {
  margin-bottom: 2px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;

  color: #98a1b5;
}

.role-landing-scope strong {
  font-size: 10px;
  color: #253047;
}

.role-landing-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-landing-metrics>div {
  min-height: 78px;
  padding: 14px 18px;
  border-right: 1px solid #edf0f5;
}

.role-landing-metrics>div:last-child {
  border-right: 0;
}

.role-landing-metrics span,
.role-landing-metrics strong,
.role-landing-metrics small {
  display: block;
}

.role-landing-metrics span {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 700;

  letter-spacing: .06em;
  color: #7f8aa1;
}

.role-landing-metrics strong {
  margin-bottom: 2px;
  font-size: 22px;
  line-height: 1;
  color: #111827;
}

.role-landing-metrics small {
  font-size: 9px;
  color: #929bae;
}

.role-landing-metrics .attention strong {
  color: #d14343;
}

.role-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.role-focus-card {
  min-width: 0;
  border: 1px solid #e6eaf1;
  border-radius: 11px;
  background: #fbfcfe;
  overflow: hidden;
}

.role-focus-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #e9edf3;
}

.role-focus-title strong {
  font-size: 11px;
  color: #1d273a;
}

.role-focus-title a {
  font-size: 9px;
  font-weight: 600;
  color: #5b6edc;
  text-decoration: none;
}

.role-focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 9px 13px;
  border-bottom: 1px solid #edf0f5;
  color: inherit;
  text-decoration: none;
}

.role-focus-row:last-child {
  border-bottom: 0;
}

.role-focus-row:hover:not(.static) {
  background: #f5f7fb;
}

.role-focus-row>span {
  min-width: 0;
}

.role-focus-row b,
.role-focus-row small {
  display: block;
}

.role-focus-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 650;
  color: #202a3d;
}

.role-focus-row small {
  margin-top: 3px;
  font-size: 8px;
  color: #919aab;
}

.focus-status,
.focus-priority {
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-transform: capitalize;
}

.focus-status.ontrack {
  background: #eef6ff;
  color: #2f73bc;
}

.focus-status.late {
  background: #fff0f0;
  color: #c94545;
}

.focus-status.done {
  background: #eff9f0;
  color: #4f8f2e;
}

.focus-priority.high {
  background: #fff0f0;
  color: #c94545;
}

.focus-priority.medium {
  background: #fff7e8;
  color: #ad6b00;
}

.focus-priority.low {
  background: #eef6ff;
  color: #2f73bc;
}

.role-focus-empty {
  padding: 18px 13px;
  font-size: 10px;
  color: #9aa3b4;
}

.role-landing-group {
  border-top: 2px solid #334155;
}

.role-landing-company {
  border-top: 2px solid #315f9b;
}

.role-landing-management {
  border-top: 2px solid #9a6a16;
}

.role-landing-operational {
  border-top: 2px solid #4f7c50;
}

@media (max-width: 900px) {
  .role-landing-head {
    flex-direction: column;
  }

  .role-landing-scope {
    width: 100%;
  }

  .role-landing-scope span {
    flex: 1;
  }

  .role-landing-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-landing-metrics>div:nth-child(2) {
    border-right: 0;
  }

  .role-landing-metrics>div:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f5;
  }

  .role-focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .role-landing-head {
    padding: 15px;
  }

  .role-landing-scope {
    flex-direction: column;
  }

  .role-landing-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .role-landing-metrics>div {
    padding: 12px 14px;
  }

  .role-focus-grid {
    padding: 0 14px 14px;
  }
}

/* ========================================================================
   Executive monitoring — Executive Monitoring Intelligence
   ======================================================================== */
.executive-intelligence {
  margin: 0 22px 20px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.executive-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #edf0f5;
}

.executive-kicker {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
}

.executive-section-heading h3 {
  margin: 0;
  color: #172033;
  font-size: 20px;
  letter-spacing: -.02em;
}

.executive-section-heading p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.executive-coverage {
  min-width: 160px;
  padding: 9px 11px;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: #f8fafc;
}

.executive-coverage span,
.executive-coverage strong {
  display: block;
}

.executive-coverage span {
  margin-bottom: 3px;
  color: #7b8495;
  font-size: 10px;
}

.executive-coverage strong {
  color: #344054;
  font-size: 12px;
}

.executive-attention-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #edf0f5;
}

.executive-attention-stat {
  min-height: 100px;
  padding: 15px 18px;
  border-right: 1px solid #edf0f5;
}

.executive-attention-stat:last-child {
  border-right: 0;
}

.executive-attention-stat span,
.executive-attention-stat strong,
.executive-attention-stat small {
  display: block;
}

.executive-attention-stat span {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.executive-attention-stat strong {
  margin-top: 5px;
  color: #1f2937;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}

.executive-attention-stat small {
  margin-top: 7px;
  color: #98a2b3;
  font-size: 10px;
}

.executive-attention-stat.critical strong {
  color: #b42318;
}

.executive-attention-stat.high strong {
  color: #b54708;
}

.executive-attention-stat.medium strong {
  color: #175cd3;
}

.executive-attention-stat.health strong {
  color: #344054;
}

.executive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
  gap: 0;
}

.executive-panel {
  min-width: 0;
  background: #fff;
}

.executive-attention-panel {
  border-right: 1px solid #edf0f5;
}

.executive-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 14px 18px;
  border-bottom: 1px solid #edf0f5;
}

.executive-panel-head strong,
.executive-panel-head small {
  display: block;
}

.executive-panel-head strong {
  color: #27364b;
  font-size: 13px;
}

.executive-panel-head small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 10px;
}

.executive-total-pill {
  padding: 5px 8px;
  border: 1px solid #e5eaf1;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.executive-attention-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 18px;
  border-bottom: 1px solid #f0f2f5;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}

.executive-attention-row:hover {
  background: #fafbfc;
}

.executive-attention-row:last-child {
  border-bottom: 0;
}

.executive-severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}

.executive-severity.critical {
  background: #fef3f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.executive-severity.high {
  background: #fff6ed;
  color: #b54708;
  border: 1px solid #fedf89;
}

.executive-severity.medium {
  background: #eff8ff;
  color: #175cd3;
  border: 1px solid #b2ddff;
}

.executive-attention-main {
  min-width: 0;
}

.executive-attention-main b,
.executive-attention-main small,
.executive-attention-main em {
  display: block;
}

.executive-attention-main b {
  overflow: hidden;
  color: #27364b;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-attention-main small {
  margin-top: 3px;
  color: #8992a3;
  font-size: 10px;
}

.executive-attention-main em {
  margin-top: 6px;
  color: #475467;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.executive-reason-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.executive-reason-tags i {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.executive-attention-meta {
  text-align: right;
}

.executive-attention-meta b,
.executive-attention-meta small,
.executive-attention-meta i {
  display: block;
}

.executive-attention-meta b {
  color: #344054;
  font-size: 12px;
}

.executive-attention-meta small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 9px;
}

.executive-attention-meta i {
  margin-top: 8px;
  color: #98a2b3;
  font-size: 13px;
  font-style: normal;
}

.executive-health-row {
  display: grid;
  grid-template-columns: 10px 56px minmax(0, 1fr) auto 16px;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f2f5;
}

.executive-health-row:last-child {
  border-bottom: 0;
}

.executive-health-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
}

.executive-health-dot.healthy {
  background: #3b8f5a;
}

.executive-health-dot.watch {
  background: #d08a17;
}

.executive-health-dot.critical {
  background: #c13c37;
}

.executive-health-main {
  margin-left: 22px;
}

.executive-health-main b,
.executive-health-main small,
.executive-health-main em {
  display: block;
}

.executive-health-main b {
  color: #27364b;
  font-size: 11px;
}

.executive-health-main small {
  margin-top: 3px;
  color: #8992a3;
  font-size: 9px;
}

.executive-health-main em {
  margin-top: 5px;
  color: #667085;
  font-size: 9px;
  font-style: normal;
  line-height: 1.4;
}

.executive-health-badge {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.executive-health-badge.healthy {
  background: #ecfdf3;
  color: #027a48;
}

.executive-health-badge.watch {
  background: #fffaeb;
  color: #b54708;
}

.executive-health-badge.critical {
  background: #fef3f2;
  color: #b42318;
}

.executive-health-note {
  padding: 10px 15px;
  border-top: 1px solid #edf0f5;
  background: #fafbfc;
  color: #7b8495;
  font-size: 9px;
  line-height: 1.45;
}

.executive-health-note b {
  color: #475467;
}

.executive-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #edf0f5;
  background: #fbfcfd;
}

.executive-signal-strip>span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-right: 1px solid #edf0f5;
}

.executive-signal-strip>span:last-child {
  border-right: 0;
}

.executive-signal-strip small {
  color: #7b8495;
  font-size: 9px;
}

.executive-signal-strip strong {
  color: #344054;
  font-size: 12px;
}

.executive-empty {
  display: flex;
  min-height: 135px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.executive-empty strong {
  color: #475467;
  font-size: 12px;
}

.executive-empty span {
  max-width: 460px;
  margin-top: 5px;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.5;
}

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

  .executive-attention-panel {
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
  }
}

@media (max-width: 820px) {
  .executive-intelligence {
    margin: 0 14px 16px;
  }

  .executive-section-heading {
    flex-direction: column;
    padding: 16px;
  }

  .executive-coverage {
    width: 100%;
  }

  .executive-attention-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-attention-stat:nth-child(2) {
    border-right: 0;
  }

  .executive-attention-stat:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f5;
  }

  .executive-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-signal-strip>span:nth-child(2) {
    border-right: 0;
  }

  .executive-signal-strip>span:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f5;
  }
}

@media (max-width: 560px) {
  .executive-attention-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .executive-attention-meta {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .executive-attention-meta b,
  .executive-attention-meta small,
  .executive-attention-meta i {
    display: inline;
    margin: 0;
  }
}

/* ============================================================
   Executive monitoring — ATTENTION ENGINE REFINEMENT
   ============================================================ */
.executive-total-link {
  text-decoration: none;
}

.executive-total-link:hover {
  background: #f2f4f7;
  color: #344054;
}

.executive-attention-page {
  margin: 0 18px 18px;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.executive-attention-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid #edf0f5;
}

.executive-attention-page-head h2 {
  margin: 4px 0 0;
  color: #233044;
  font-size: 22px;
  line-height: 1.2;
}

.executive-attention-page-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
}

.executive-attention-page-summary {
  border-bottom: 1px solid #edf0f5;
}

.executive-attention-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.executive-attention-bucket {
  min-width: 0;
}

.executive-attention-bucket.executive {
  border-right: 1px solid #edf0f5;
}

.executive-bucket-head {
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f5;
  background: #fbfcfd;
}

.executive-bucket-head div>span,
.executive-bucket-head div>strong,
.executive-bucket-head div>small {
  display: block;
}

.executive-bucket-head div>span {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.executive-bucket-head div>strong {
  margin-top: 4px;
  color: #27364b;
  font-size: 13px;
}

.executive-bucket-head div>small {
  max-width: 420px;
  margin-top: 4px;
  color: #98a2b3;
  font-size: 9px;
  line-height: 1.45;
}

.executive-bucket-head>b {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e4e7ec;
  color: #344054;
  font-size: 13px;
}

.executive-attention-bucket.executive .executive-bucket-head>b {
  color: #b42318;
  border-color: #fecdca;
  background: #fef3f2;
}

.executive-rule-note {
  display: flex;
  gap: 8px;
  padding: 13px 20px;
  border-top: 1px solid #edf0f5;
  background: #fafbfc;
  color: #667085;
  font-size: 9px;
  line-height: 1.5;
}

.executive-rule-note strong {
  color: #475467;
  white-space: nowrap;
}

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

  .executive-attention-bucket.executive {
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
  }
}

@media (max-width: 720px) {
  .executive-attention-page {
    margin: 0 12px 16px;
    border-radius: 12px;
  }

  .executive-attention-page-head {
    flex-direction: column;
    padding: 16px;
  }

  .executive-attention-page-head h2 {
    font-size: 19px;
  }

  .executive-bucket-head {
    padding: 15px 14px;
  }

  .executive-rule-note {
    flex-direction: column;
    padding: 12px 14px;
  }
}

/* ===== Executive monitoring — severity context, aging, and strategic importance ===== */
.executive-attention-context {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.executive-attention-context i {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid #e4e7ec;
  border-radius: 5px;
  background: #fff;
  color: #667085;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.executive-attention-context .aging {
  background: #f9fafb;
  color: #475467;
}

.executive-attention-context .rule {
  border-style: dashed;
  color: #344054;
}

.executive-attention-context .importance.strategic {
  background: #fff4ed;
  border-color: #ffd6ae;
  color: #b93815;
}

.executive-attention-context .importance.key {
  background: #f4f3ff;
  border-color: #d9d6fe;
  color: #5925dc;
}

.executive-attention-context .importance.standard {
  background: #f9fafb;
  color: #667085;
}

/* Executive monitoring Company Health refinement */
.executive-health-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px
}

.executive-health-context i {
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 999px;
  color: var(--muted, #667085);
  background: rgba(255, 255, 255, .65)
}

.executive-health-context i.warn {
  font-weight: 700
}

.executive-health-context i.coverage {
  opacity: .82
}

.company-monitoring-logo {
  width: 86px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 86px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden
}

.company-monitoring-logo img {
  max-width: 78px;
  max-height: 40px;
  object-fit: contain;
  display: block
}

.company-monitoring-logo.fallback {
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em
}

.company-detail-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 5px
}

.company-detail-title-line h2 {
  margin: 0
}

.company-detail-logo {
  width: 72px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden
}

.company-detail-logo img {
  max-width: 62px;
  max-height: 34px;
  object-fit: contain;
  display: block
}

.company-detail-logo.fallback {
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em
}

.mobile-company-monitoring-logo {
  width: 62px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #fff;
  overflow: hidden
}

.mobile-company-monitoring-logo img {
  max-width: 54px;
  max-height: 30px;
  object-fit: contain;
  display: block
}

.mobile-company-monitoring-logo.fallback {
  background: #f8fafc;
  color: #475467;
  font-size: 11px;
  font-weight: 800
}

.work-record-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0
}

.work-record-title-row>div {
  min-width: 0
}

.work-company-logo {
  width: 94px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 94px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden
}

.work-company-logo img {
  max-width: 84px;
  max-height: 42px;
  object-fit: contain;
  display: block
}

.work-company-logo.fallback {
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em
}

/* ========================================================================
   Executive budget dashboard — Serapan vs RKAP forward plan
   ======================================================================== */
.exec-budget-dashboard {
  margin: 0 22px 20px;
  color: #1f2937
}

.exec-budget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px
}

.exec-budget-head span,
.exec-budget-panel-head span,
.exec-budget-kpis span {
  display: block;
  color: #60708a;
  font-size: 10px;
  font-weight: 800;
}

.exec-budget-head h2 {
  margin: 4px 0;
  color: #172033;
  font-size: 27px;
  line-height: 1.16;
  letter-spacing: 0
}

.exec-budget-head p {
  max-width: 980px;
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.55
}

.exec-budget-head>b {
  padding: 7px 10px;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 10px;
  white-space: nowrap
}

.exec-budget-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px
}

.exec-budget-kpis article {
  min-height: 104px;
  padding: 17px 18px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #f3f8f5
}

.exec-budget-kpis article.gold {
  background: #fff8ea
}

.exec-budget-kpis article.danger {
  background: #fff4f0
}

.exec-budget-kpis article.positive {
  background: #eef8f2
}

.exec-budget-kpis strong {
  display: block;
  margin-top: 8px;
  color: #1f2937;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0
}

.exec-budget-kpis article:first-child strong,
.exec-budget-kpis article.positive strong {
  color: #2f7657
}

.exec-budget-kpis article.gold strong {
  color: #a77a30
}

.exec-budget-kpis article.danger strong {
  color: #b93815
}

.exec-budget-kpis small {
  display: block;
  margin-top: 8px;
  color: #60708a;
  font-size: 11px
}

.exec-budget-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  gap: 14px;
  margin-bottom: 14px
}

.exec-budget-main-grid.secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.exec-budget-panel {
  min-width: 0;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  background: #fff;
  overflow: hidden
}

.exec-budget-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f5
}

.exec-budget-panel-head strong {
  display: block;
  margin-top: 4px;
  color: #253348;
  font-size: 15px
}

.exec-budget-panel-head small {
  color: #738198;
  font-size: 11px;
  white-space: nowrap
}

.exec-budget-table-wrap {
  overflow-x: auto
}

.exec-budget-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12px
}

.exec-budget-table th {
  padding: 11px 12px;
  background: #194a37;
  color: #fff;
  font-size: 11px;
  text-align: right;
  white-space: nowrap
}

.exec-budget-table th:first-child,
.exec-budget-table td:first-child {
  text-align: left
}

.exec-budget-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9eef3;
  color: #26364d;
  text-align: right;
  white-space: nowrap
}

.exec-budget-table tbody tr:nth-child(even) {
  background: #f8fbf9
}

.exec-budget-table .good {
  color: #24714f;
  font-weight: 800
}

.exec-budget-table .warn {
  color: #a77a30;
  font-weight: 800
}

.exec-budget-table .bad {
  color: #b93815;
  font-weight: 800
}

.exec-budget-company {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0
}

.exec-budget-bars,
.exec-budget-category-bars,
.exec-budget-proposal-bars {
  padding: 16px
}

.exec-budget-bars>div,
.exec-budget-category-bars>div,
.exec-budget-proposal-bars>div {
  margin-bottom: 16px
}

.exec-budget-bars>div:last-child,
.exec-budget-category-bars>div:last-child,
.exec-budget-proposal-bars>div:last-child {
  margin-bottom: 0
}

.exec-budget-bars span,
.exec-budget-category-bars span,
.exec-budget-proposal-bars span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #1f2937;
  font-size: 12px
}

.exec-budget-bars em {
  color: #60708a;
  font-size: 11px;
  font-style: normal
}

.exec-budget-bars i,
.exec-budget-category-bars i,
.exec-budget-proposal-bars i {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  background: #edf1f4;
  overflow: hidden
}

.exec-budget-bars i b,
.exec-budget-category-bars i b,
.exec-budget-proposal-bars i b {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-right: 10px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap
}

.exec-budget-bars .green,
.exec-budget-category-bars i b,
.exec-budget-proposal-bars .capex {
  background: #2f7657
}

.exec-budget-bars .red {
  background: #b84834
}

.exec-budget-bars .gold,
.exec-budget-proposal-bars .opex {
  background: #b78b43
}

.exec-budget-programs {
  padding: 0 16px 16px
}

.exec-budget-programs h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 14px
}

.exec-budget-programs a,
.exec-budget-program-table a {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f5;
  color: inherit;
  text-decoration: none
}

.exec-budget-programs a {
  grid-template-columns: minmax(0, 1fr) auto
}

.exec-budget-programs a:last-child,
.exec-budget-program-table a:last-child {
  border-bottom: 0
}

.exec-budget-programs a span {
  color: #26364d;
  font-size: 12px;
  min-width: 0
}

.exec-budget-programs a span b {
  display: inline-flex;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #2f7657;
  color: #fff;
  font-size: 10px
}

.exec-budget-programs a strong,
.exec-budget-program-table em {
  color: #194a37;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap
}

.exec-budget-category-bars i {
  height: 20px;
  border-radius: 3px
}

.exec-budget-category-bars i b {
  border-radius: 3px
}

.exec-budget-category-bars i em {
  overflow: hidden;
  color: #fff;
  font-style: normal;
  text-overflow: ellipsis
}

.exec-budget-program-table {
  padding: 8px 16px 14px
}

.exec-budget-program-table a {
  grid-template-columns: 24px minmax(0, 1fr) auto
}

.exec-budget-program-table a>b {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #eff4f1;
  color: #2f7657;
  font-size: 11px
}

.exec-budget-program-table strong,
.exec-budget-program-table small {
  display: block
}

.exec-budget-program-table strong {
  color: #24364d;
  font-size: 12px
}

.exec-budget-program-table small {
  margin-top: 3px;
  color: #738198;
  font-size: 10px
}

.exec-budget-proposal-bars i {
  height: 24px;
  border-radius: 4px
}

.exec-budget-proposal-bars i b {
  border-right: 1px solid rgba(255, 255, 255, .45)
}

.exec-budget-category-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px
}

.exec-budget-category-cards div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dfe8e2;
  border-radius: 8px;
  background: #f4faf6
}

.exec-budget-category-cards span,
.exec-budget-category-cards strong,
.exec-budget-category-cards small {
  display: block
}

.exec-budget-category-cards span {
  color: #1f2937;
  font-size: 12px
}

.exec-budget-category-cards strong {
  margin-top: 8px;
  color: #2f7657;
  font-size: 17px
}

.exec-budget-category-cards small {
  margin-top: 4px;
  color: #738198;
  font-size: 10px
}

.exec-budget-empty {
  padding: 26px 16px;
  color: #8a96aa;
  font-size: 12px;
  text-align: center
}

.exec-budget-empty.compact {
  padding: 14px 0 0;
  text-align: left
}

@media (max-width:1100px) {

  .exec-budget-kpis,
  .exec-budget-main-grid,
  .exec-budget-main-grid.secondary {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:760px) {
  .exec-budget-dashboard {
    margin: 0 14px 16px
  }

  .exec-budget-head {
    flex-direction: column
  }

  .exec-budget-head h2 {
    font-size: 22px
  }

  .exec-budget-kpis,
  .exec-budget-main-grid,
  .exec-budget-main-grid.secondary,
  .exec-budget-category-cards {
    grid-template-columns: 1fr
  }

  .exec-budget-kpis article {
    min-height: 0
  }

  .exec-budget-kpis strong {
    font-size: 25px
  }

  .exec-budget-panel-head {
    align-items: flex-start
  }

  .exec-budget-panel-head small {
    white-space: normal;
    text-align: right
  }

  .exec-budget-table-wrap {
    overflow: visible
  }

  .exec-budget-table {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: 11px;
    border-collapse: separate
  }

  .exec-budget-table thead {
    display: none
  }

  .exec-budget-table tbody {
    display: grid;
    gap: 10px
  }

  .exec-budget-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 12px;
    border: 1px solid #dfe5ec;
    border-radius: 8px;
    background: #fff;
    overflow: hidden
  }

  .exec-budget-table tbody tr:nth-child(even) {
    background: #fff
  }

  .exec-budget-table td {
    display: block;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #eef2f6;
    border-radius: 7px;
    background: #fafcfd;
    color: #15243a;
    text-align: left;
    white-space: normal
  }

  .exec-budget-table td:nth-child(4),
  .exec-budget-table td:nth-child(5),
  .exec-budget-table td:nth-child(8) {
    display: none
  }

  .exec-budget-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #60708a;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
  }

  .exec-budget-table td:first-child {
    grid-column: 1/-1;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid #eef2f6;
    border-radius: 0;
    background: transparent;
    text-align: left
  }

  .exec-budget-table td:first-child::before {
    display: none
  }

  .exec-budget-company {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%
  }

  .exec-budget-company .work-company-logo {
    width: 104px;
    height: 58px;
    min-width: 104px;
    flex-basis: 104px
  }

  .exec-budget-company .work-company-logo img {
    max-width: 96px;
    max-height: 48px;
    object-fit: contain
  }

  .exec-budget-company b {
    white-space: normal;
    overflow-wrap: anywhere
  }
}

/* ============================================================
   Executive monitoring — EXECUTIVE ATTENTION & COMPANY HEALTH DRILL-DOWN
   ============================================================ */
.executive-health-row-link {
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.executive-health-row-link:hover {
  background: #fafbfc;
}

.executive-health-arrow {
  color: #98a2b3;
  font-size: 14px;
  font-weight: 700;
}

.executive-company-page {
  margin: 0 18px 18px;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.executive-company-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid #edf0f5;
}

.executive-company-page-head h2 {
  margin: 5px 0 0;
  color: #233044;
  font-size: 24px;
  line-height: 1.2;
}

.executive-company-page-head p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
}

.executive-back-link {
  display: inline-block;
  margin-bottom: 9px;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.executive-back-link:hover {
  color: #344054;
}

.executive-company-health-state {
  min-width: 150px;
  padding: 13px 15px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fafbfc;
}

.executive-company-health-state span,
.executive-company-health-state strong,
.executive-company-health-state small {
  display: block;
}

.executive-company-health-state span {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.executive-company-health-state strong {
  margin-top: 4px;
  font-size: 18px;
}

.executive-company-health-state small {
  margin-top: 4px;
  color: #667085;
  font-size: 8.5px;
}

.executive-company-health-state.healthy strong {
  color: #027a48;
}

.executive-company-health-state.watch strong {
  color: #b54708;
}

.executive-company-health-state.critical strong {
  color: #b42318;
}

.executive-company-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid #edf0f5;
}

.executive-company-kpis>div {
  padding: 14px 16px;
  border-right: 1px solid #edf0f5;
}

.executive-company-kpis>div:last-child {
  border-right: 0;
}

.executive-company-kpis span,
.executive-company-kpis strong,
.executive-company-kpis small {
  display: block;
}

.executive-company-kpis span {
  color: #667085;
  font-size: 9px;
}

.executive-company-kpis strong {
  margin-top: 5px;
  color: #344054;
  font-size: 19px;
}

.executive-company-kpis small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 8.5px;
}

.executive-company-kpis .attention strong {
  color: #b54708;
}

.executive-company-kpis .critical strong {
  color: #b42318;
}

.executive-company-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border-bottom: 1px solid #edf0f5;
}

.executive-company-grid.lower {
  border-top: 1px solid #edf0f5;
  border-bottom: 0;
}

.executive-company-grid>.executive-panel {
  border: 0;
  border-radius: 0;
}

.executive-company-grid>.executive-panel:first-child {
  border-right: 1px solid #edf0f5;
}

.executive-company-primary-reason {
  margin: 16px 18px 10px;
  padding: 13px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fafbfc;
}

.executive-company-primary-reason span,
.executive-company-primary-reason strong,
.executive-company-primary-reason small {
  display: block;
}

.executive-company-primary-reason span {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.executive-company-primary-reason strong {
  margin-top: 5px;
  color: #344054;
  font-size: 12px;
}

.executive-company-primary-reason small {
  margin-top: 4px;
  color: #98a2b3;
  font-size: 8.5px;
}

.executive-company-reasons {
  padding: 0 18px 12px;
}

.executive-company-reasons>div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f2f5;
}

.executive-company-reasons>div:last-child {
  border-bottom: 0;
}

.executive-company-reasons b {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f2f4f7;
  color: #667085;
  font-size: 8px;
}

.executive-company-reasons span {
  color: #475467;
  font-size: 10px;
  line-height: 1.45;
}

.executive-company-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 18px 16px;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  overflow: hidden;
}

.executive-company-signal-grid>span {
  padding: 10px;
  border-right: 1px solid #edf0f5;
}

.executive-company-signal-grid>span:last-child {
  border-right: 0;
}

.executive-company-signal-grid small,
.executive-company-signal-grid strong {
  display: block;
}

.executive-company-signal-grid small {
  color: #98a2b3;
  font-size: 8px;
}

.executive-company-signal-grid strong {
  margin-top: 4px;
  color: #344054;
  font-size: 13px;
}

.executive-domain-health-list {
  padding: 7px 18px 14px;
}

.executive-domain-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f5;
}

.executive-domain-health-row:last-child {
  border-bottom: 0;
}

.executive-domain-health-row span b,
.executive-domain-health-row span small {
  display: block;
}

.executive-domain-health-row span b {
  color: #344054;
  font-size: 10px;
}

.executive-domain-health-row span small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 8.5px;
  line-height: 1.4;
}

.executive-domain-health-row em {
  white-space: nowrap;
  font-style: normal;
}

.executive-not-assessed {
  padding: 4px 7px;
  border: 1px dashed #d0d5dd;
  border-radius: 999px;
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
}

.executive-company-attention {
  border: 0;
  border-radius: 0;
}

.executive-company-attention .executive-panel-head>a {
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.executive-unit-breakdown,
.executive-deadline-list {
  padding: 5px 18px 15px;
}

.executive-unit-breakdown>div,
.executive-deadline-list>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
}

.executive-unit-breakdown>div:last-child,
.executive-deadline-list>a:last-child {
  border-bottom: 0;
}

.executive-unit-breakdown span b,
.executive-unit-breakdown span small,
.executive-deadline-list span b,
.executive-deadline-list span small {
  display: block;
}

.executive-unit-breakdown span b,
.executive-deadline-list span b {
  color: #344054;
  font-size: 10px;
}

.executive-unit-breakdown span small,
.executive-deadline-list span small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 8.5px;
}

.executive-unit-breakdown>div>strong {
  min-width: 26px;
  text-align: right;
  color: #344054;
  font-size: 13px;
}

.executive-deadline-list>a {
  color: inherit;
  text-decoration: none;
}

.executive-deadline-list>a:hover span b {
  text-decoration: underline;
}

.executive-deadline-list em {
  color: #667085;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.executive-company-not-found {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
}

.executive-company-not-found strong {
  color: #344054;
  font-size: 14px;
}

.executive-company-not-found span {
  max-width: 620px;
  margin-top: 7px;
  color: #667085;
  font-size: 10px;
  line-height: 1.55;
}

.executive-company-not-found a {
  margin-top: 14px;
  color: #475467;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .executive-company-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .executive-company-kpis>div:nth-child(3) {
    border-right: 0;
  }

  .executive-company-kpis>div:nth-child(-n+3) {
    border-bottom: 1px solid #edf0f5;
  }

  .executive-company-grid {
    grid-template-columns: 1fr;
  }

  .executive-company-grid>.executive-panel:first-child {
    border-right: 0;
    border-bottom: 1px solid #edf0f5;
  }
}

@media (max-width: 720px) {
  .executive-company-page {
    margin: 0 12px 16px;
    border-radius: 12px;
  }

  .executive-company-page-head {
    flex-direction: column;
    padding: 16px;
  }

  .executive-company-page-head h2 {
    font-size: 20px;
  }

  .executive-company-health-state {
    width: 100%;
  }

  .executive-company-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-company-kpis>div {
    border-bottom: 1px solid #edf0f5;
  }

  .executive-company-kpis>div:nth-child(even) {
    border-right: 0;
  }

  .executive-company-kpis>div:last-child {
    grid-column: 1/-1;
    border-bottom: 0;
  }

  .executive-company-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-company-signal-grid>span:nth-child(2) {
    border-right: 0;
  }

  .executive-company-signal-grid>span:nth-child(-n+2) {
    border-bottom: 1px solid #edf0f5;
  }
}

/* Executive monitoring — Company Health domain data quality */
.executive-health-badge.no_data,
.executive-no-data {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: #f9fafb;
  color: #667085;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.executive-health-dot.no_data {
  background: #98a2b3;
}

.executive-company-health-state.no_data {
  border-color: #d0d5dd;
  background: #f9fafb;
}

/* ===== Executive monitoring Executive Escalation & Decision Workflow ===== */
.executive-workflow-panel {
  margin-top: 18px
}

.executive-workflow-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.executive-workflow-mini>span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #fff
}

.executive-workflow-mini b {
  font-size: 22px
}

.executive-workflow-mini small {
  color: #64748b
}

.executive-workflow-mini .decision {
  border-color: #fecaca;
  background: #fff7f7
}

.executive-escalation-page {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.executive-escalation-list {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.executive-escalation-card {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #94a3b8;
  border-radius: 12px;
  padding: 14px;
  background: #fff
}

.executive-escalation-card.status-executive_review {
  border-left-color: #f59e0b
}

.executive-escalation-card.status-decision_required {
  border-left-color: #dc2626;
  background: #fffafa
}

.executive-escalation-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start
}

.executive-escalation-card-head>div {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.executive-escalation-card-head small,
.executive-escalation-card-head time,
.executive-escalation-meta {
  color: #64748b;
  font-size: 12px
}

.executive-workflow-status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  white-space: nowrap
}

.status-executive_review .executive-workflow-status {
  background: #fff7ed;
  color: #9a3412
}

.status-decision_required .executive-workflow-status {
  background: #fee2e2;
  color: #991b1b
}

.executive-escalation-card p {
  margin: 10px 0 0;
  color: #334155
}

.executive-escalation-card p strong {
  color: #0f172a
}

.executive-decision-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff
}

.executive-decision-box strong {
  color: #b91c1c
}

.executive-decision-box small {
  color: #64748b
}

.executive-escalation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px
}

.executive-escalation-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7
}

.executive-escalation-actions form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px
}

.executive-escalation-actions form.decision-form {
  grid-template-columns: minmax(220px, 1fr) 170px auto
}

.executive-escalation-actions input,
.executive-escalation-actions textarea,
.executive-escalation-candidates input,
.executive-escalation-candidates textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  font: inherit
}

.executive-escalation-actions textarea {
  min-height: 42px;
  resize: vertical
}

.executive-escalation-actions button,
.executive-escalation-candidates button {
  border: 0;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
  background: #172554;
  color: #fff;
  cursor: pointer
}

.executive-escalation-actions button.secondary {
  background: #475569
}

.executive-escalation-actions button.resolve {
  background: #166534
}

.executive-escalation-candidates {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.executive-escalation-candidates details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff
}

.executive-escalation-candidates summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer
}

.executive-escalation-candidates summary small {
  grid-column: 2;
  color: #64748b
}

.executive-escalation-candidates details form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  padding: 0 12px 12px
}

.executive-escalation-candidates label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #475569
}

.executive-escalation-candidates textarea {
  min-height: 76px;
  resize: vertical
}

.executive-resolved-list {
  display: flex;
  flex-direction: column
}

.executive-resolved-list>div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7
}

.executive-resolved-list span {
  display: flex;
  flex-direction: column
}

.executive-resolved-list small,
.executive-resolved-list em {
  font-size: 12px;
  color: #64748b;
  font-style: normal
}

@media(max-width:900px) {
  .executive-workflow-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .executive-escalation-actions form,
  .executive-escalation-actions form.decision-form,
  .executive-escalation-candidates details form {
    grid-template-columns: 1fr
  }

  .executive-escalation-card-head {
    grid-template-columns: 1fr
  }

  .executive-workflow-status {
    width: max-content
  }
}

/* ========================================================================== */
/* Executive monitoring — Executive Workflow Refinement & Audit View                         */
/* ========================================================================== */
.executive-escalation-title-link {
  color: inherit;
  text-decoration: none
}

.executive-escalation-title-link:hover {
  text-decoration: underline
}

.executive-escalation-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.executive-escalation-meta>span {
  font-size: 12px;
  color: #667085
}

.executive-decision-aging {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700 !important
}

.executive-decision-aging.overdue {
  background: #fee4e2;
  color: #b42318 !important
}

.executive-decision-aging.due_today,
.executive-decision-aging.due_soon {
  background: #fff1cc;
  color: #9a6700 !important
}

.executive-decision-aging.scheduled {
  background: #eef4ff;
  color: #3538cd !important
}

.executive-owner-form {
  display: flex;
  align-items: center;
  gap: 7px
}

.executive-owner-form select {
  min-width: 170px;
  max-width: 250px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font-size: 12px
}

.executive-company-workflow {
  margin-top: 16px
}

.executive-company-workflow-list {
  display: grid;
  gap: 8px
}

.executive-company-workflow-list>a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff
}

.executive-company-workflow-list a span {
  display: grid;
  gap: 3px
}

.executive-company-workflow-list a small {
  color: #667085
}

.executive-company-workflow-list a em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #475467
}

.executive-company-workflow-list a em.overdue {
  color: #b42318
}

.executive-company-workflow-list a em.due_today,
.executive-company-workflow-list a em.due_soon {
  color: #9a6700
}

.executive-audit-view {
  margin-top: 16px;
  border-color: #d6d9e0
}

.executive-audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px
}

.executive-audit-summary>div {
  padding: 11px 12px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #f9fafb
}

.executive-audit-summary span {
  display: block;
  font-size: 11px;
  color: #667085;
  margin-bottom: 4px
}

.executive-audit-summary strong {
  font-size: 13px;
  color: #101828
}

.executive-audit-context {
  padding: 13px 14px;
  border-radius: 10px;
  background: #f8f9fc;
  margin-bottom: 16px
}

.executive-audit-context p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #344054
}

.executive-audit-timeline {
  position: relative;
  display: grid;
  gap: 0
}

.executive-audit-event {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 0 0 18px
}

.executive-audit-event>span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #667085;
  box-shadow: 0 0 0 4px #f2f4f7;
  z-index: 1
}

.executive-audit-event:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: #d0d5dd
}

.executive-audit-event>div {
  display: grid;
  gap: 3px
}

.executive-audit-event b {
  text-transform: capitalize;
  font-size: 13px
}

.executive-audit-event small {
  color: #667085;
  font-size: 11px
}

.executive-audit-event p {
  margin: 2px 0 0;
  color: #344054;
  font-size: 12px
}

.executive-audit-event.event-created>span {
  background: #12b76a
}

.executive-audit-event.event-acknowledged>span {
  background: #2e90fa
}

.executive-audit-event.event-owner_changed>span {
  background: #7f56d9
}

.executive-audit-event.event-transition>span {
  background: #f79009
}

@media(max-width:900px) {
  .executive-audit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .executive-owner-form {
    width: 100%
  }

  .executive-owner-form select {
    flex: 1;
    max-width: none
  }
}

@media(max-width:560px) {
  .executive-audit-summary {
    grid-template-columns: 1fr
  }

  .executive-company-workflow-list>a {
    align-items: flex-start;
    flex-direction: column
  }
}

.executive-resolved-list>a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit
}

.executive-resolved-list>a:hover b {
  text-decoration: underline
}

/* ===== Monitoring refinement — Group / Company monitoring scope switcher ===== */
.prisma-company-scope-control {
  min-height: 44px;
  min-width: 260px;
  max-width: 360px;
  border: 1px solid #e4e7ec;
  border-radius: 11px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
}

.prisma-company-scope-control .prisma-context-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #667085;
}

.prisma-company-scope-control .prisma-context-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.prisma-company-scope-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prisma-company-scope-copy small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .09em;

  color: #98a2b3;
  line-height: 1.1;
}

.prisma-company-scope-copy select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  outline: 0;
  cursor: pointer;
  text-overflow: ellipsis;
}

.prisma-company-scope-control:focus-within {
  border-color: #c9d2e3;
  box-shadow: 0 0 0 3px rgba(49, 95, 155, .08);
}

@media (max-width: 1180px) {
  .prisma-company-scope-control {
    min-width: 220px;
    max-width: 280px;
  }
}

/* ===== Monitoring refinement — Company Detail & Drill-down Refinement ===== */
.company-detail-company-detail .executive-panel {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.company-detail-context-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid #edf0f5;
  background: #fafbfc;
}

.company-detail-context-copy span,
.company-detail-context-copy strong,
.company-detail-context-copy small {
  display: block;
}

.company-detail-context-copy span {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}

.company-detail-context-copy strong {
  margin-top: 3px;
  color: #344054;
  font-size: 11px;
}

.company-detail-context-copy small {
  margin-top: 2px;
  color: #667085;
  font-size: 8.5px;
}

.company-detail-context-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.company-detail-context-actions label {
  display: grid;
  gap: 3px;
}

.company-detail-context-actions label span {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 700;
}

.company-detail-context-actions select {
  min-width: 180px;
  height: 32px;
  padding: 0 28px 0 9px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 9px;
  font-weight: 650;
}

.company-detail-context-actions a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
}

.company-detail-section {
  border-top: 0;
  border-bottom: 1px solid #edf0f5 !important;
  margin: 0;
}

.company-detail-section:last-child {
  border-bottom: 0 !important;
}

.company-detail-step {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

.company-detail-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-detail-panel-actions a {
  color: #667085;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.company-detail-why-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}

.company-detail-why-grid .executive-company-reasons {
  padding-top: 11px;
}

.company-detail-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 18px 14px;
  gap: 9px;
}

.company-detail-domain-card {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.company-detail-domain-card:hover {
  border-color: #cfd5df;
  background: #fafbfc;
}

.company-detail-domain-card>span {
  min-height: 49px;
}

.company-detail-domain-card span b,
.company-detail-domain-card span small {
  display: block;
}

.company-detail-domain-card span b {
  color: #344054;
  font-size: 10px;
}

.company-detail-domain-card span small {
  margin-top: 4px;
  color: #98a2b3;
  font-size: 8px;
  line-height: 1.35;
}

.company-detail-domain-card>em {
  margin-top: 8px;
  font-style: normal;
}

.company-detail-domain-card>i {
  margin-top: auto;
  padding-top: 10px;
  color: #667085;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.company-detail-unit-table {
  padding: 0 18px 15px;
}

.company-detail-unit-head,
.company-detail-unit-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(62px, .55fr)) minmax(90px, .7fr);
  align-items: center;
  gap: 8px;
}

.company-detail-unit-head {
  padding: 8px 10px;
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}

.company-detail-unit-row {
  padding: 10px;
  border-top: 1px solid #edf0f5;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}

.company-detail-unit-row:hover,
.company-detail-unit-row.active {
  background: #fafbfc;
}

.company-detail-unit-row.active {
  box-shadow: inset 2px 0 0 #667085;
}

.company-detail-unit-row>span b,
.company-detail-unit-row>span small {
  display: block;
}

.company-detail-unit-row>span b {
  color: #344054;
  font-size: 10px;
}

.company-detail-unit-row>span small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 8px;
}

.company-detail-unit-row>strong {
  color: #475467;
  font-size: 11px;
  text-align: left;
}

.company-detail-unit-row>strong.risk {
  color: #b42318;
}

.company-detail-unit-row>em {
  justify-self: start;
  font-style: normal;
}

.company-detail-timeline-list {
  padding: 0 18px 16px;
}

.company-detail-timeline-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 14px;
  padding: 11px 8px;
  border-top: 1px solid #edf0f5;
  color: inherit;
  text-decoration: none;
}

.company-detail-timeline-row:first-child {
  border-top: 0;
}

.company-detail-timeline-row:hover {
  background: #fafbfc;
}

.company-detail-timeline-date b,
.company-detail-timeline-date small,
.company-detail-timeline-main b,
.company-detail-timeline-main small {
  display: block;
}

.company-detail-timeline-date b {
  color: #475467;
  font-size: 9px;
}

.company-detail-timeline-date small {
  margin-top: 3px;
  color: #667085;
  font-size: 8px;
  font-weight: 700;
}

.company-detail-timeline-row.overdue .company-detail-timeline-date small {
  color: #b42318;
}

.company-detail-timeline-row.today .company-detail-timeline-date small,
.company-detail-timeline-row.due_soon .company-detail-timeline-date small {
  color: #b54708;
}

.company-detail-timeline-main b {
  color: #344054;
  font-size: 10px;
}

.company-detail-timeline-main small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 8px;
}

.company-detail-timeline-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.company-detail-timeline-meta strong {
  color: #475467;
  font-size: 10px;
}

.company-detail-timeline-meta i {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
}

.company-detail-workflow-secondary {
  background: #fcfcfd;
}

@media(max-width:1100px) {
  .company-detail-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .company-detail-unit-head,
  .company-detail-unit-row {
    grid-template-columns: minmax(170px, 1.8fr) repeat(4, minmax(52px, .5fr)) minmax(80px, .7fr)
  }
}

@media(max-width:760px) {
  .company-detail-context-rail {
    align-items: flex-start;
    flex-direction: column
  }

  .company-detail-context-actions {
    width: 100%
  }

  .company-detail-context-actions label {
    flex: 1
  }

  .company-detail-context-actions select {
    width: 100%;
    min-width: 0
  }

  .company-detail-why-grid {
    grid-template-columns: 1fr
  }

  .company-detail-domain-grid {
    grid-template-columns: 1fr
  }

  .company-detail-unit-head {
    display: none
  }

  .company-detail-unit-row {
    grid-template-columns: 1fr repeat(2, minmax(60px, .5fr));
    gap: 8px
  }

  .company-detail-unit-row>span {
    grid-column: 1/-1
  }

  .company-detail-unit-row>strong:nth-of-type(3),
  .company-detail-unit-row>strong:nth-of-type(4) {
    display: none
  }

  .company-detail-unit-row>em {
    justify-self: end
  }

  .company-detail-timeline-row {
    grid-template-columns: 1fr 60px;
    gap: 8px
  }

  .company-detail-timeline-date {
    grid-column: 1/-1
  }

  .company-detail-panel-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 3px
  }
}

/* ============================================================
   Monitoring refinement — ATTENTION QUICK DETAIL & DRILL-DOWN
   ============================================================ */
.attention-detail-trigger {
  cursor: pointer;
}

.attention-detail-trigger:focus-visible {
  outline: 2px solid #84adff;
  outline-offset: -2px;
}

body.attention-detail-drawer-open {
  overflow: hidden;
}

.attention-detail-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(15, 23, 42, .28);
  opacity: 0;
  transition: opacity .18s ease;
}

.attention-detail-drawer-backdrop.open {
  opacity: 1;
}

.attention-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1090;
  width: min(520px, 96vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #e4e7ec;
  box-shadow: -18px 0 48px rgba(16, 24, 40, .14);
  transform: translateX(102%);
  transition: transform .22s ease;
}

.attention-detail-drawer.open {
  transform: translateX(0);
}

.attention-detail-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid #eaecf0;
}

.attention-detail-drawer-head h3 {
  margin: 5px 0 0;
  color: #1d2939;
  font-size: 19px;
  line-height: 1.3;
}

.attention-detail-drawer-head p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.5;
}

.attention-detail-drawer-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  color: #667085;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.attention-detail-drawer-close:hover {
  background: #f9fafb;
  color: #344054;
}

.attention-detail-drawer-scroll {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.attention-detail-drawer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 16px 22px;
  border-bottom: 1px solid #f0f2f5;
  background: #fbfcfd;
}

.attention-detail-level-badge,
.attention-detail-workflow-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}

.attention-detail-level-badge {
  background: #f2f4f7;
  color: #344054;
  border: 1px solid #e4e7ec;
}

.attention-detail-workflow-badge {
  background: #eef4ff;
  color: #3538cd;
  border: 1px solid #c7d7fe;
}

.attention-detail-drawer-section {
  padding: 19px 22px;
  border-bottom: 1px solid #f0f2f5;
}

.attention-detail-section-label {
  display: block;
  margin-bottom: 8px;
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.attention-detail-drawer-section>strong {
  display: block;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.attention-detail-drawer-section>p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.55;
}

.attention-detail-signal-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.attention-detail-signal-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.attention-detail-signal-row .executive-severity {
  justify-self: start;
}

.attention-detail-signal-row p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 10px;
  line-height: 1.45;
}

.attention-detail-no-signal {
  color: #98a2b3;
  font-size: 10px;
}

.attention-detail-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #f0f2f5;
}

.attention-detail-drawer-grid>div {
  min-width: 0;
  padding: 15px 22px;
  border-right: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
}

.attention-detail-drawer-grid>div:nth-child(2n) {
  border-right: 0;
}

.attention-detail-drawer-grid>div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.attention-detail-drawer-grid span,
.attention-detail-drawer-grid strong {
  display: block;
}

.attention-detail-drawer-grid span {
  color: #98a2b3;
  font-size: 8.5px;
}

.attention-detail-drawer-grid strong {
  margin-top: 5px;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-detail-latest {
  padding: 11px 12px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #f9fafb;
  color: #475467;
  font-size: 10px;
  line-height: 1.55;
}

.attention-detail-escalation-state {
  background: #fcfcfd;
}

.attention-detail-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 18px;
  border-top: 1px solid #eaecf0;
  background: #fff;
}

.attention-detail-drawer-actions .btn {
  text-decoration: none;
}

@media (max-width: 560px) {
  .attention-detail-drawer {
    width: 100vw;
  }

  .attention-detail-drawer-head {
    padding: 18px 16px 15px;
  }

  .attention-detail-drawer-status,
  .attention-detail-drawer-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .attention-detail-drawer-grid>div {
    padding: 13px 16px;
  }

  .attention-detail-signal-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .attention-detail-drawer-actions {
    padding: 12px;
  }

  .attention-detail-drawer-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* ============================================================
   Monitoring refinement — COMPANY HEALTH COMPARISON & GROUP DRILL-DOWN
   ============================================================ */
.company-comparison-workspace {
  border-top: 1px solid #edf0f5;
}

.company-comparison-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 20px 18px 16px;
}

.company-comparison-head h2 {
  margin: 4px 0 5px;
  color: #101828;
  font-size: 22px;
}

.company-comparison-head p {
  max-width: 760px;
  margin: 0;
  color: #667085;
  font-size: 9.5px;
  line-height: 1.55;
  font-weight: 200;
}

.company-comparison-jump-label {
  width: 250px;
  display: grid;
  gap: 4px;
  flex: 0 0 auto;
}

.company-comparison-jump-label span {
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
}

.company-comparison-jump-label select {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 9px;
  font-weight: 650;
}

.company-comparison-health-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 16px;
}

.company-comparison-health-filter {
  text-align: left;
  padding: 11px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.company-comparison-health-filter:hover,
.company-comparison-health-filter.active {
  background: #fafbfc;
  border-color: #cfd5df;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.company-comparison-health-filter span,
.company-comparison-health-filter strong,
.company-comparison-health-filter small {
  display: block;
}

.company-comparison-health-filter span {
  color: #667085;
  font-size: 8px;
  font-weight: 750;
}

.company-comparison-health-filter strong {
  margin-top: 3px;
  color: #101828;
  font-size: 18px;
}

.company-comparison-health-filter small {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 7.5px;
}

.company-comparison-health-filter.critical.active strong {
  color: #b42318;
}

.company-comparison-health-filter.watch.active strong {
  color: #b54708;
}

.company-comparison-health-filter.healthy.active strong {
  color: #027a48;
}

.company-comparison-panel {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.company-comparison-panel-head {
  align-items: flex-start;
}

.company-comparison-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 10px;
  color: #98a2b3;
  font-size: 7.5px;
}

.company-comparison-table {
  padding: 0 18px 14px;
}

.company-comparison-head,
.company-comparison-row {
  align-items: center;
  gap: 10px;
}

.company-comparison-head {
  padding: 8px 10px;
  color: #98a2b3;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .04em;
}

.company-comparison-row {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) 90px minmax(230px, 1.65fr) minmax(150px, 1.15fr) 120px 52px;
  padding: 11px 10px;
  border-top: 1px solid #edf0f5;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}

.company-comparison-row:hover {
  background: #fafbfc;
}

.company-comparison-row[hidden] {
  display: none !important;
}

.company-comparison-main b,
.company-comparison-main small,
.company-comparison-main em {
  display: block;
}

.company-comparison-main b {
  color: #344054;
  font-size: 10px;
}

.company-comparison-main small {
  margin-top: 3px;
  color: #98a2b3;
  font-size: 7.8px;
}

.company-comparison-main em {
  margin-top: 5px;
  color: #667085;
  font-size: 8px;
  font-style: normal;
  line-height: 1.35;
}

.company-comparison-domain-indicators {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 5px;
}

.company-comparison-domain-indicators i {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 6px;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #f9fafb;
  font-style: normal;
}

.company-comparison-domain-indicators i b {
  color: #667085;
  font-size: 8px;
}

.company-comparison-domain-indicators i small {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 6.8px;
  white-space: nowrap;
}

.company-comparison-domain-indicators i.critical {
  border-color: #fecdca;
  background: #fffbfa;
}

.company-comparison-domain-indicators i.critical small {
  color: #b42318;
}

.company-comparison-domain-indicators i.watch {
  border-color: #fedf89;
  background: #fffcf5;
}

.company-comparison-domain-indicators i.watch small {
  color: #b54708;
}

.company-comparison-domain-indicators i.healthy {
  border-color: #abefc6;
  background: #f6fef9;
}

.company-comparison-domain-indicators i.healthy small {
  color: #027a48;
}

.company-comparison-attention-concentration b,
.company-comparison-attention-concentration small {
  display: block;
}

.company-comparison-attention-concentration b {
  color: #475467;
  font-size: 9px;
}

.company-comparison-attention-concentration small {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 7px;
}

.company-comparison-attention-concentration>i {
  width: 100%;
  height: 4px;
  display: block;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #eaecf0;
}

.company-comparison-attention-concentration>i u {
  height: 100%;
  display: block;
  border-radius: 99px;
  background: #98a2b3;
  text-decoration: none;
}

.company-comparison-coverage-cell b,
.company-comparison-coverage-cell small {
  display: block;
}

.company-comparison-coverage-cell b {
  color: #475467;
  font-size: 10px;
}

.company-comparison-coverage-cell small {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 7px;
  line-height: 1.3;
}

.company-comparison-open-company {
  color: #667085;
  font-size: 8px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

@media(max-width:1180px) {

  .company-comparison-head,
  .company-comparison-row {
    grid-template-columns: minmax(210px, 1.8fr) 82px minmax(190px, 1.5fr) minmax(130px, 1fr) 95px 46px
  }

  .company-comparison-domain-indicators {
    grid-template-columns: repeat(2, minmax(44px, 1fr))
  }
}

@media(max-width:900px) {
  .company-comparison-health-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .company-comparison-head {
    display: none
  }

  .company-comparison-row {
    grid-template-columns: minmax(0, 1fr) 90px;
    gap: 10px
  }

  .company-comparison-main {
    grid-column: 1/2
  }

  .company-comparison-domain-indicators,
  .company-comparison-attention-concentration,
  .company-comparison-coverage-cell {
    grid-column: 1/-1
  }

  .company-comparison-open-company {
    grid-column: 2;
    grid-row: 1;
    text-align: right
  }

  .company-comparison-domain-indicators {
    grid-template-columns: repeat(4, minmax(50px, 1fr))
  }
}

@media(max-width:760px) {
  .company-comparison-head {
    align-items: flex-start;
    flex-direction: column
  }

  .company-comparison-jump-label {
    width: 100%
  }

  .company-comparison-health-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .company-comparison-legend {
    justify-content: flex-start
  }

  .company-comparison-table {
    padding-left: 12px;
    padding-right: 12px
  }

  .company-comparison-domain-indicators {
    grid-template-columns: repeat(2, minmax(50px, 1fr))
  }
}

/* ===== Monitoring refinement Management Overview & Unit/PIC Diagnostic ===== */
.management-overview {
  margin: 14px 0;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  overflow: hidden
}

.management-overview>.executive-panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f5
}

.management-overview>.executive-panel-head>a {
  font-size: 9px;
  font-weight: 700;
  color: #475467;
  text-decoration: none
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr);
  gap: 0
}

.management-card {
  padding: 18px;
  border-right: 1px solid #edf0f5;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.management-card span {
  font-size: 9px;
  color: #667085;
  font-weight: 700;
  letter-spacing: .05em
}

.management-card strong {
  margin-top: 5px;
  font-size: 26px;
  color: #101828;
  line-height: 1
}

.management-card small {
  margin-top: 7px;
  font-size: 8px;
  color: #98a2b3;
  line-height: 1.5
}

.management-list {
  padding: 6px 14px
}

.management-list>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px;
  border-top: 1px solid #f0f2f5;
  color: inherit;
  text-decoration: none
}

.management-list>a:first-child {
  border-top: 0
}

.management-list>a:hover {
  background: #fafbfc
}

.management-list span b,
.management-list span small {
  display: block
}

.management-list span b {
  font-size: 10px;
  color: #344054
}

.management-list span small {
  margin-top: 3px;
  font-size: 8px;
  color: #98a2b3
}

.management-pic-head,
.management-pic-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(62px, .55fr)) minmax(95px, .75fr);
  align-items: center;
  gap: 8px
}

.management-pic-head {
  padding: 9px 10px;
  color: #98a2b3;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em
}

.management-pic-row {
  padding: 10px;
  border-top: 1px solid #edf0f5;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease
}

.management-pic-row:hover,
.management-pic-row.active {
  background: #fafbfc
}

.management-pic-row.active {
  box-shadow: inset 2px 0 0 #667085
}

.management-pic-row>span b,
.management-pic-row>span small {
  display: block
}

.management-pic-row>span b {
  font-size: 10px;
  color: #344054
}

.management-pic-row>span small {
  margin-top: 3px;
  font-size: 8px;
  color: #98a2b3
}

.management-pic-row>strong {
  font-size: 10px;
  color: #475467
}

.management-pic-row>strong.risk {
  color: #b42318
}

.management-focus {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
  background: #f2f4f7;
  color: #475467
}

.management-focus.watch {
  background: #fffaeb;
  color: #b54708
}

.management-focus.needs_focus {
  background: #fef3f2;
  color: #b42318
}

.management-deadline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px
}

.management-deadline-grid>div {
  padding: 12px;
  border: 1px solid #e7eaf0;
  border-radius: 9px;
  background: #fff
}

.management-deadline-grid span,
.management-deadline-grid strong,
.management-deadline-grid small {
  display: block
}

.management-deadline-grid span {
  font-size: 8px;
  color: #667085;
  font-weight: 800;
}

.management-deadline-grid strong {
  margin-top: 5px;
  font-size: 19px;
  color: #344054
}

.management-deadline-grid small {
  margin-top: 3px;
  font-size: 8px;
  color: #98a2b3
}

.management-deadline-grid .overdue strong {
  color: #b42318
}

.management-deadline-grid .today strong,
.management-deadline-grid .soon strong {
  color: #b54708
}

.management-work-list {
  padding: 0 16px 14px
}

.management-work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 85px 55px 90px 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-top: 1px solid #edf0f5;
  color: inherit;
  text-decoration: none
}

.management-work-row:first-child {
  border-top: 0
}

.management-work-row:hover {
  background: #fafbfc
}

.management-work-row>span b,
.management-work-row>span small {
  display: block
}

.management-work-row>span b {
  font-size: 10px;
  color: #344054
}

.management-work-row>span small {
  margin-top: 3px;
  font-size: 8px;
  color: #98a2b3
}

.management-work-row>em {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 8px;
  font-style: normal;
  font-weight: 800
}

.management-work-row>em.overdue {
  background: #fef3f2;
  color: #b42318
}

.management-work-row>em.soon {
  background: #fffaeb;
  color: #b54708
}

.management-work-row>strong {
  font-size: 10px;
  color: #475467
}

.management-work-row>small {
  font-size: 8px;
  color: #667085
}

.management-work-row>i {
  font-style: normal;
  color: #98a2b3
}

.company-detail-context-actions label+label {
  margin-left: 6px
}

@media(max-width:1100px) {
  .management-deadline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .management-pic-head,
  .management-pic-row {
    grid-template-columns: minmax(180px, 1.8fr) repeat(4, minmax(52px, .5fr)) minmax(85px, .7fr)
  }
}

@media(max-width:760px) {
  .management-grid {
    grid-template-columns: 1fr
  }

  .management-card {
    border-right: 0;
    border-bottom: 1px solid #edf0f5
  }

  .management-pic-head {
    display: none
  }

  .management-pic-row {
    grid-template-columns: 1fr repeat(2, minmax(60px, .5fr));
    gap: 8px
  }

  .management-pic-row>span {
    grid-column: 1/-1
  }

  .management-pic-row>strong:nth-of-type(3),
  .management-pic-row>strong:nth-of-type(4) {
    display: none
  }

  .management-pic-row>em {
    justify-self: end
  }

  .management-deadline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .management-work-row {
    grid-template-columns: minmax(0, 1fr) 70px 18px
  }

  .management-work-row>em {
    grid-column: 1/2
  }

  .management-work-row>strong {
    grid-column: 2/3;
    grid-row: 1
  }

  .management-work-row>small {
    grid-column: 2/3
  }

  .management-work-row>i {
    grid-column: 3;
    grid-row: 1/3
  }

  .company-detail-context-actions {
    flex-wrap: wrap
  }

  .company-detail-context-actions label+label {
    margin-left: 0
  }
}

/* ============================================================
   Monitoring refinement — Timeline & Deadline Management Refinement
   ============================================================ */
.timeline-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px
}

.timeline-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #e7e9ef;
  border-radius: 16px;
  background: #fff
}

.timeline-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #697386;
  margin-bottom: 6px
}

.timeline-hero h2 {
  margin: 0;
  font-size: 24px;
  color: #202533
}

.timeline-hero p {
  margin: 6px 0 0;
  color: #697386;
  font-size: 13px
}

.timeline-context-chip {
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid #e7e9ef;
  border-radius: 12px;
  background: #fafbfc;
  text-align: right
}

.timeline-context-chip strong,
.timeline-context-chip span {
  display: block
}

.timeline-context-chip strong {
  font-size: 12px;
  color: #262b36
}

.timeline-context-chip span {
  font-size: 11px;
  color: #7b8494;
  margin-top: 2px
}

.timeline-filterbar {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e7e9ef;
  border-radius: 14px;
  background: #fff;
  flex-wrap: wrap
}

.timeline-filter-copy {
  margin-right: auto;
  min-width: 220px
}

.timeline-filter-copy strong,
.timeline-filter-copy small {
  display: block
}

.timeline-filter-copy strong {
  font-size: 13px;
  color: #242936
}

.timeline-filter-copy small {
  font-size: 11px;
  color: #7b8494;
  margin-top: 3px;
  max-width: 520px
}

.timeline-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 160px
}

.timeline-select span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #788191;
}

.timeline-select select {
  height: 36px;
  border: 1px solid #dfe3ea;
  border-radius: 9px;
  background: #fff;
  padding: 0 10px;
  color: #343a46;
  font-size: 12px
}

.timeline-buckets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px
}

.timeline-bucket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  background: #fff;
  color: #505866;
  text-decoration: none;
  transition: .15s ease
}

.timeline-bucket:hover {
  border-color: #bec5d0;
  transform: translateY(-1px)
}

.timeline-bucket.active {
  border-color: #596273;
  box-shadow: 0 0 0 1px #596273 inset;
  background: #f8f9fb;
  color: #222833
}

.timeline-bucket.overdue.active {
  border-color: #b64242;
  box-shadow: 0 0 0 1px #b64242 inset;
  background: #fff8f8
}

.timeline-bucket.today.active {
  border-color: #b77321;
  box-shadow: 0 0 0 1px #b77321 inset;
  background: #fffaf4
}

.timeline-bucket span {
  font-size: 11px;
  font-weight: 650
}

.timeline-bucket strong {
  font-size: 18px
}

.timeline-summaryline {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 2px;
  color: #727b89;
  font-size: 11px
}

.timeline-summaryline b {
  color: #2c323d
}

.timeline-deadline-list {
  border: 1px solid #e6e9ee;
  border-radius: 15px;
  background: #fff;
  overflow: hidden
}

.timeline-deadline-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 16px;
  padding: 15px 17px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eef0f3;
  position: relative
}

.timeline-deadline-row:last-child {
  border-bottom: 0
}

.timeline-deadline-row:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #cbd1da
}

.timeline-deadline-row.state-overdue:before {
  background: #c64949
}

.timeline-deadline-row.state-today:before {
  background: #c18434
}

.timeline-deadline-row.state-next_7:before {
  background: #587aa8
}

.timeline-deadline-row:hover {
  background: #fafbfc
}

.timeline-datebox strong,
.timeline-datebox span {
  display: block
}

.timeline-datebox strong {
  font-size: 12px;
  color: #303642
}

.timeline-datebox span {
  font-size: 11px;
  color: #757e8d;
  margin-top: 4px
}

.state-overdue .timeline-datebox span {
  color: #b54242;
  font-weight: 700
}

.state-today .timeline-datebox span {
  color: #a66819;
  font-weight: 700
}

.timeline-row-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.timeline-source,
.timeline-severity,
.timeline-attention {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f0f2f5;
  color: #5b6370
}

.timeline-source.source-direction {
  background: #f3effb;
  color: #654c91
}

.timeline-source.source-grc {
  background: #eef6f1;
  color: #467259
}

.timeline-source.source-todo {
  background: #f0f5fb;
  color: #496c93
}

.timeline-severity.severity-critical {
  background: #fdecec;
  color: #ae3f3f
}

.timeline-severity.severity-high {
  background: #fff1df;
  color: #9c621d
}

.timeline-attention {
  background: #f4f5f7;
  color: #6a7180
}

.timeline-deadline-main h3 {
  margin: 6px 0 4px;
  font-size: 13px;
  color: #262c37
}

.timeline-deadline-main p {
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7a8391
}

.timeline-deadline-main p span+span:before {
  content: "·";
  margin-right: 8px;
  color: #b3b8c0
}

.timeline-reason {
  display: block;
  margin-top: 7px;
  color: #646d7a;
  font-size: 11px
}

.timeline-deadline-meta {
  text-align: right;
  display: grid;
  justify-items: end
}

.timeline-deadline-meta strong {
  font-size: 15px;
  color: #323844
}

.timeline-deadline-meta span {
  font-size: 9px;
  letter-spacing: .06em;
  color: #8a919d
}

.timeline-deadline-meta i {
  font-style: normal;
  color: #939aa5;
  margin-top: 5px
}

.timeline-limit-note {
  padding: 11px 14px;
  border: 1px dashed #d9dde4;
  border-radius: 10px;
  color: #737c8a;
  font-size: 11px;
  background: #fafbfc
}

.timeline-empty {
  min-height: 150px
}

.prisma-nav-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor
}

@media(max-width:900px) {
  .timeline-buckets {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .timeline-deadline-row {
    grid-template-columns: 120px minmax(0, 1fr) 70px
  }

  .timeline-context-chip {
    display: none
  }
}

@media(max-width:640px) {
  .timeline-hero {
    padding: 17px
  }

  .timeline-hero h2 {
    font-size: 20px
  }

  .timeline-filterbar {
    align-items: stretch
  }

  .timeline-filter-copy {
    width: 100%
  }

  .timeline-select {
    width: 100%
  }

  .timeline-buckets {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .timeline-deadline-row {
    grid-template-columns: 1fr;
    padding: 14px
  }

  .timeline-deadline-meta {
    text-align: left;
    justify-items: start;
    grid-template-columns: auto auto 1fr;
    gap: 5px;
    align-items: center
  }

  .timeline-datebox {
    display: flex;
    gap: 8px;
    align-items: center
  }

  .timeline-datebox span {
    margin: 0
  }
}

/* Monitoring refinement — Escalation & Decision Management Refinement */
.workflow-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(180px, .7fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff
}

.workflow-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px
}

.workflow-filter-group>span {
  font-size: 11px;
  font-weight: 800;
  color: #667085;
  letter-spacing: .04em;
  margin-right: 3px
}

.workflow-filter-group a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  background: #f9fafb;
  border: 1px solid transparent
}

.workflow-filter-group a.active {
  background: #eef4ff;
  border-color: #c7d7fe;
  color: #3538cd
}

.workflow-filter-group a b {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e4e7ec
}

.workflow-owner-filter {
  display: flex;
  justify-content: flex-end
}

.workflow-owner-filter label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #667085;
  letter-spacing: .04em;
  min-width: 180px
}

.workflow-owner-filter select {
  height: 36px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #344054;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600
}

.workflow-decision-queue {
  border: 1px solid #fecdca;
  border-radius: 12px;
  padding: 14px;
  background: #fffafa
}

.workflow-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px
}

.workflow-decision-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #101828
}

.workflow-decision-item>span {
  font-size: 11px;
  font-weight: 800;
  color: #667085;
  letter-spacing: .04em
}

.workflow-decision-item b {
  font-size: 14px
}

.workflow-decision-item small {
  font-size: 11px;
  color: #667085
}

.workflow-decision-item p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475467
}

.workflow-decision-item.state-overdue {
  border-color: #fda29b;
  background: #fff6f5
}

.workflow-decision-item.state-overdue>span {
  color: #b42318
}

.workflow-decision-item.state-due_today,
.workflow-decision-item.state-due_soon {
  border-color: #fedf89;
  background: #fffcf5
}

.workflow-decision-item.state-due_today>span,
.workflow-decision-item.state-due_soon>span {
  color: #b54708
}

.workflow-next-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #eaecf0
}

.workflow-next-action>span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #667085
}

.workflow-next-action>strong {
  font-size: 12px;
  color: #101828
}

.workflow-next-action>div {
  display: flex;
  gap: 10px
}

.workflow-next-action a {
  font-size: 11px;
  font-weight: 700;
  color: #3538cd;
  text-decoration: none
}

.workflow-actions {
  margin-top: 10px;
  border-top: 1px solid #eef2f7;
  padding-top: 10px
}

.workflow-actions>summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: #344054;
  list-style: none
}

.workflow-actions>summary::-webkit-details-marker {
  display: none
}

.workflow-actions>summary:after {
  content: ' +';
  color: #667085
}

.workflow-actions[open]>summary:after {
  content: ' −'
}

.workflow-actions .executive-escalation-actions {
  border-top: 0;
  padding-top: 8px;
  margin-top: 0
}

.workflow-audit-next {
  grid-column: span 2
}

.workflow-audit-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px
}

.workflow-audit-context-head>a {
  font-size: 12px;
  font-weight: 700;
  color: #3538cd;
  text-decoration: none
}

.executive-resolved-list>a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
  text-decoration: none;
  color: inherit
}

.executive-resolved-list>a:hover b {
  text-decoration: underline
}

@media(max-width:1000px) {
  .workflow-filters {
    grid-template-columns: 1fr
  }

  .workflow-owner-filter {
    justify-content: flex-start
  }

  .workflow-decision-grid {
    grid-template-columns: 1fr
  }

  .workflow-next-action {
    grid-template-columns: 1fr
  }

  .workflow-next-action>div {
    justify-content: flex-start
  }
}

/* ===== Monitoring refinement — Executive / Management Overview Final Integration ===== */
.management-summary-final-overview,
.management-summary-management-final {
  margin: 0 22px 18px;
  border: 1px solid #e5e8ee;
  border-radius: 14px;
  background: #fff;
  overflow: hidden
}

.management-summary-final-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid #edf0f4
}

.management-summary-final-head>div>span,
.management-summary-final-head>div>strong,
.management-summary-final-head>div>small {
  display: block
}

.management-summary-final-head>div>span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #7a8493
}

.management-summary-final-head>div>strong {
  margin-top: 3px;
  font-size: 13px;
  color: #202631
}

.management-summary-final-head>div>small {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.45;
  color: #8a93a1
}

.management-summary-final-head>a {
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
  color: #475467;
  white-space: nowrap
}

.management-summary-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #edf0f4
}

.management-summary-pulse-card {
  position: relative;
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid #edf0f4;
  text-decoration: none;
  color: inherit
}

.management-summary-pulse-card:last-child {
  border-right: 0
}

.management-summary-pulse-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 2px;
  background: #aab2bf
}

.management-summary-pulse-card.critical:before {
  background: #b94a4a
}

.management-summary-pulse-card.health.critical:before {
  background: #b94a4a
}

.management-summary-pulse-card.health.watch:before,
.management-summary-pulse-card.timeline:before {
  background: #b77a2b
}

.management-summary-pulse-card.health.healthy:before {
  background: #51816a
}

.management-summary-pulse-card.decision:before {
  background: #6c5b9d
}

.management-summary-pulse-card:hover {
  background: #fafbfc
}

.management-summary-pulse-card span,
.management-summary-pulse-card strong,
.management-summary-pulse-card small,
.management-summary-pulse-card em {
  display: block
}

.management-summary-pulse-card span {
  font-size: 9px;
  letter-spacing: .055em;
  color: #7d8694;
  font-weight: 750
}

.management-summary-pulse-card strong {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.1;
  color: #252b35
}

.management-summary-pulse-card small {
  margin-top: 5px;
  min-height: 24px;
  font-size: 9px;
  line-height: 1.4;
  color: #929aa6
}

.management-summary-pulse-card em {
  margin-top: 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  color: #5c6573
}

.management-summary-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
  gap: 8px;
  background: #fafbfc
}

.management-summary-route-grid>a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit
}

.management-summary-route-grid>a:hover {
  border-color: #c7ccd5
}

.management-summary-route-grid>a>b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f1f3f6;
  color: #5c6572;
  font-size: 9px
}

.management-summary-route-grid span strong,
.management-summary-route-grid span small {
  display: block
}

.management-summary-route-grid span strong {
  font-size: 10px;
  color: #303641
}

.management-summary-route-grid span small {
  margin-top: 2px;
  font-size: 8px;
  line-height: 1.35;
  color: #8b94a1
}

.management-summary-route-grid i {
  font-style: normal;
  color: #9aa1ac
}

.management-summary-domain-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #edf0f4
}

.management-summary-domain-strip>a {
  padding: 12px 14px;
  border-right: 1px solid #edf0f4;
  text-decoration: none;
  color: inherit;
  min-width: 0
}

.management-summary-domain-strip>a:last-child {
  border-right: 0
}

.management-summary-domain-strip span,
.management-summary-domain-strip strong,
.management-summary-domain-strip small {
  display: block
}

.management-summary-domain-strip span {
  font-size: 9px;
  color: #7e8795
}

.management-summary-domain-strip strong {
  margin-top: 4px;
  font-size: 11px
}

.management-summary-domain-strip strong.critical {
  color: #b33f3f
}

.management-summary-domain-strip strong.watch {
  color: #9c6925
}

.management-summary-domain-strip strong.healthy {
  color: #46725d
}

.management-summary-domain-strip strong.no_data {
  color: #8e96a2
}

.management-summary-domain-strip small {
  margin-top: 3px;
  font-size: 8px;
  line-height: 1.35;
  color: #98a0ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.management-summary-management-final {
  margin-top: 14px
}

.management-summary-management-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #edf0f4
}

.management-summary-management-pulse>a {
  padding: 13px 15px;
  border-right: 1px solid #edf0f4;
  text-decoration: none;
  color: inherit
}

.management-summary-management-pulse>a:last-child {
  border-right: 0
}

.management-summary-management-pulse span,
.management-summary-management-pulse strong,
.management-summary-management-pulse small {
  display: block
}

.management-summary-management-pulse span {
  font-size: 9px;
  color: #7c8592;
  font-weight: 750
}

.management-summary-management-pulse strong {
  font-size: 20px;
  color: #252b35;
  margin-top: 4px
}

.management-summary-management-pulse small {
  font-size: 8px;
  color: #929aa6;
  margin-top: 4px
}

.management-summary-management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr
}

.management-summary-management-grid>section {
  padding: 14px 16px;
  min-width: 0
}

.management-summary-management-grid>section+section {
  border-left: 1px solid #edf0f4
}

.management-summary-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px
}

.management-summary-subhead strong {
  font-size: 10px;
  color: #414957
}

.management-summary-subhead a {
  font-size: 8px;
  color: #697382;
  text-decoration: none;
  font-weight: 700
}

.management-summary-compact-list>a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 16px;
  gap: 7px;
  align-items: center;
  padding: 8px 2px;
  border-top: 1px solid #f0f2f5;
  text-decoration: none;
  color: inherit
}

.management-summary-compact-list>a:first-child {
  border-top: 0
}

.management-summary-compact-list>a>b,
.management-summary-compact-list>a>small {
  grid-column: 2
}

.management-summary-compact-list>a>b {
  font-size: 9px;
  color: #343b47
}

.management-summary-compact-list>a>small {
  font-size: 8px;
  color: #939ba7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.management-summary-compact-list>a>i {
  grid-column: 3;
  grid-row: 1/3;
  font-style: normal;
  color: #9aa2ad
}

.management-summary-date {
  grid-row: 1/3;
  font-size: 8px;
  font-weight: 750;
  color: #687383;
  min-width: 68px
}

.management-summary-date.overdue {
  color: #b44343
}

.management-summary-date.today {
  color: #9c6822
}

.management-summary-owner-strip {
  border-top: 1px solid #edf0f4;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto
}

.management-summary-owner-strip>div {
  min-width: 190px;
  margin-right: 4px
}

.management-summary-owner-strip>div strong,
.management-summary-owner-strip>div small {
  display: block
}

.management-summary-owner-strip>div strong {
  font-size: 9px;
  color: #414957
}

.management-summary-owner-strip>div small {
  margin-top: 3px;
  font-size: 8px;
  color: #929aa6
}

.management-summary-owner-strip>a {
  min-width: 155px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #e8ebef;
  border-radius: 9px;
  text-decoration: none;
  color: inherit
}

.management-summary-owner-strip a b,
.management-summary-owner-strip a small {
  display: block
}

.management-summary-owner-strip a b {
  font-size: 9px;
  color: #3b424d
}

.management-summary-owner-strip a small {
  margin-top: 2px;
  font-size: 8px;
  color: #979faa
}

@media(max-width:1000px) {

  .management-summary-pulse-grid,
  .management-summary-route-grid,
  .management-summary-domain-strip,
  .management-summary-management-pulse {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .management-summary-pulse-card:nth-child(2),
  .management-summary-management-pulse>a:nth-child(2) {
    border-right: 0
  }

  .management-summary-management-grid {
    grid-template-columns: 1fr
  }

  .management-summary-management-grid>section+section {
    border-left: 0;
    border-top: 1px solid #edf0f4
  }
}

@media(max-width:640px) {

  .management-summary-final-overview,
  .management-summary-management-final {
    margin-left: 14px;
    margin-right: 14px
  }

  .management-summary-final-head {
    flex-direction: column
  }

  .management-summary-pulse-grid,
  .management-summary-route-grid,
  .management-summary-domain-strip,
  .management-summary-management-pulse {
    grid-template-columns: 1fr
  }

  .management-summary-pulse-card,
  .management-summary-management-pulse>a,
  .management-summary-domain-strip>a {
    border-right: 0;
    border-bottom: 1px solid #edf0f4
  }

  .management-summary-pulse-card:last-child,
  .management-summary-management-pulse>a:last-child,
  .management-summary-domain-strip>a:last-child {
    border-bottom: 0
  }

  .management-summary-route-grid {
    padding: 10px
  }

  .management-summary-owner-strip>div {
    min-width: 160px
  }
}

/* ==========================================================
   Visual foundation - Foundation Tokens & Visual Normalization
   Compatibility layer: legacy UX selectors remain intact.
   ========================================================== */
.prisma-panel,
.executive-intelligence,
.executive-company-page,
.executive-attention-page,
.management-overview,
.timeline-hero,
.timeline-filterbar,
.timeline-deadline-list,
.management-summary-final-overview,
.management-summary-management-final {
  background: var(--prisma-surface);
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-panel--subtle,
.executive-coverage,
.executive-total-pill,
.executive-health-note,
.executive-signal-strip,
.executive-company-health-state,
.executive-company-primary-reason,
.company-detail-context-rail,
.workflow-next-action,
.timeline-limit-note,
.management-summary-route-grid {
  background: var(--prisma-surface-subtle);
  border-color: var(--prisma-border-subtle);
}

.prisma-panel--selected,
.company-comparison-health-filter.active,
.timeline-bucket.active {
  background: var(--prisma-surface-selected);
  border-color: var(--prisma-border-strong);
}

.prisma-main,
body:has(.prisma-app) {
  background: var(--prisma-bg);
}

.prisma-app .prisma-topbar {
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--prisma-border);
}

.prisma-sidebar {
  background: var(--prisma-sidebar-bg);
}

.prisma-nav-item,
.prisma-nav-domain-title {
  color: var(--prisma-sidebar-text);
  border-radius: var(--prisma-radius-control);
}

.prisma-nav-item:hover,
.prisma-nav-child:hover {
  background: var(--prisma-sidebar-hover);
}

.prisma-nav-item.active,
.prisma-nav-child.active {
  background: var(--prisma-sidebar-active);
  color: #fff;
  box-shadow: none;
}

.prisma-badge,
.executive-severity,
.attention-detail-level-badge,
.attention-detail-workflow-badge,
.timeline-source,
.timeline-severity,
.timeline-attention,
.executive-health-badge,
.executive-no-data,
.executive-not-assessed,
.management-focus,
.management-work-row>em,
.executive-workflow-status,
.executive-decision-aging {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: 0;
  padding: 5px 8px;
  white-space: nowrap;
}

.prisma-badge--critical,
.executive-severity.critical,
.timeline-severity.severity-critical {
  background: var(--prisma-critical-bg);
  color: var(--prisma-critical);
  border: 1px solid var(--prisma-critical-border);
}

.prisma-badge--high,
.executive-severity.high,
.timeline-severity.severity-high {
  background: var(--prisma-watch-bg);
  color: var(--prisma-watch);
  border: 1px solid var(--prisma-watch-border);
}

.prisma-badge--medium,
.executive-severity.medium {
  background: var(--prisma-info-bg);
  color: var(--prisma-info);
  border: 1px solid var(--prisma-info-border);
}

.prisma-health--healthy,
.executive-health-badge.healthy {
  background: var(--prisma-healthy-bg);
  color: var(--prisma-healthy);
  border: 1px solid var(--prisma-healthy-border);
}

.prisma-health--watch,
.executive-health-badge.watch {
  background: var(--prisma-watch-bg);
  color: var(--prisma-watch);
  border: 1px solid var(--prisma-watch-border);
}

.prisma-health--critical,
.executive-health-badge.critical {
  background: var(--prisma-critical-bg);
  color: var(--prisma-critical);
  border: 1px solid var(--prisma-critical-border);
}

.prisma-health--nodata,
.executive-health-badge.no_data,
.executive-no-data,
.executive-not-assessed {
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-muted);
  border: 1px dashed var(--prisma-border-strong);
}

.prisma-workflow-badge,
.executive-workflow-status,
.attention-detail-workflow-badge {
  background: var(--prisma-surface);
  color: var(--prisma-text);
  border: 1px solid var(--prisma-border-strong);
}

.status-executive_review .executive-workflow-status,
.status-decision_required .executive-workflow-status,
.executive-decision-aging.scheduled {
  background: var(--prisma-surface);
  color: var(--prisma-text);
  border-color: var(--prisma-border-strong);
}

.executive-attention-stat.critical strong,
.executive-company-kpis .critical strong,
.executive-company-health-state.critical strong,
.company-detail-unit-row>strong.risk,
.management-pic-row>strong.risk,
.management-deadline-grid .overdue strong,
.management-work-row>em.overdue,
.timeline-bucket.overdue.active strong,
.state-overdue .timeline-datebox span,
.management-summary-domain-strip strong.critical,
.management-summary-date.overdue {
  color: var(--prisma-critical);
}

.executive-attention-stat.high strong,
.executive-company-kpis .attention strong,
.executive-company-health-state.watch strong,
.management-deadline-grid .today strong,
.management-deadline-grid .soon strong,
.management-focus.watch,
.management-work-row>em.soon,
.timeline-bucket.today.active strong,
.state-today .timeline-datebox span,
.management-summary-domain-strip strong.watch,
.management-summary-date.today {
  color: var(--prisma-watch);
}

.executive-attention-stat.medium strong {
  color: var(--prisma-info);
}

.executive-company-health-state.healthy strong,
.management-summary-domain-strip strong.healthy {
  color: var(--prisma-healthy);
}

.management-summary-domain-strip strong.no_data {
  color: var(--prisma-text-muted);
}

.executive-health-dot.healthy {
  background: var(--prisma-healthy);
}

.executive-health-dot.watch {
  background: var(--prisma-watch);
}

.executive-health-dot.critical {
  background: var(--prisma-critical);
}

.executive-health-dot.no_data {
  background: var(--prisma-text-subtle);
}

.management-summary-pulse-card.critical:before,
.management-summary-pulse-card.health.critical:before {
  background: var(--prisma-critical);
}

.management-summary-pulse-card.health.watch:before,
.management-summary-pulse-card.timeline:before {
  background: var(--prisma-watch);
}

.management-summary-pulse-card.health.healthy:before {
  background: var(--prisma-healthy);
}

.management-summary-pulse-card.decision:before,
.timeline-deadline-row.state-next_7:before {
  background: var(--prisma-info);
}

.timeline-deadline-row.state-overdue:before {
  background: var(--prisma-critical);
}

.timeline-deadline-row.state-today:before {
  background: var(--prisma-watch);
}

.workflow-decision-queue {
  background: var(--prisma-surface);
  border-color: var(--prisma-border);
}

.workflow-decision-item.state-overdue {
  background: var(--prisma-critical-bg);
  border-color: var(--prisma-critical-border);
}

.workflow-decision-item.state-due_today,
.workflow-decision-item.state-due_soon {
  background: var(--prisma-watch-bg);
  border-color: var(--prisma-watch-border);
}

.executive-escalation-card.status-decision_required {
  background: var(--prisma-surface);
  border-left-color: var(--prisma-border-strong);
}

.executive-decision-box {
  background: var(--prisma-surface);
  border-color: var(--prisma-border);
}

.executive-decision-box strong,
.executive-decision-aging.overdue {
  color: var(--prisma-critical) !important;
}

.executive-decision-aging.due_today,
.executive-decision-aging.due_soon {
  color: var(--prisma-watch) !important;
}

.management-focus {
  background: var(--prisma-neutral-bg);
  color: var(--prisma-text);
  border: 1px solid var(--prisma-border);
}

.management-focus.watch {
  background: var(--prisma-watch-bg);
  border-color: var(--prisma-watch-border);
}

.management-focus.needs_focus {
  background: var(--prisma-critical-bg);
  color: var(--prisma-critical);
  border-color: var(--prisma-critical-border);
}

.company-comparison-domain-indicators i.critical,
.company-comparison-domain-indicators i.watch,
.company-comparison-domain-indicators i.healthy {
  background: var(--prisma-surface);
}

.company-comparison-domain-indicators i.critical {
  border-color: var(--prisma-critical-border);
}

.company-comparison-domain-indicators i.critical small {
  color: var(--prisma-critical);
}

.company-comparison-domain-indicators i.watch {
  border-color: var(--prisma-watch-border);
}

.company-comparison-domain-indicators i.watch small {
  color: var(--prisma-watch);
}

.company-comparison-domain-indicators i.healthy {
  border-color: var(--prisma-healthy-border);
}

.company-comparison-domain-indicators i.healthy small {
  color: var(--prisma-healthy);
}

.executive-panel-head,
.executive-section-heading,
.executive-attention-summary,
.executive-attention-panel,
.executive-attention-row,
.executive-health-row,
.executive-health-note,
.executive-company-page-head,
.executive-company-kpis,
.executive-company-kpis>div,
.executive-company-grid,
.executive-company-grid>.executive-panel:first-child,
.executive-company-reasons>div,
.executive-company-signal-grid,
.executive-company-signal-grid>span,
.executive-domain-health-row,
.executive-unit-breakdown>div,
.executive-deadline-list>a,
.company-detail-section,
.company-detail-unit-row,
.company-detail-timeline-row,
.management-overview>.executive-panel-head,
.management-card,
.management-list>a,
.management-pic-row,
.management-work-row,
.timeline-deadline-row,
.workflow-actions,
.management-summary-final-head,
.management-summary-pulse-grid,
.management-summary-pulse-card,
.management-summary-domain-strip,
.management-summary-domain-strip>a,
.management-summary-management-pulse,
.management-summary-management-pulse>a,
.management-summary-management-grid>section+section,
.management-summary-compact-list>a,
.management-summary-owner-strip {
  border-color: var(--prisma-border-subtle) !important;
}

.company-detail-domain-card,
.management-deadline-grid>div,
.workflow-filters,
.workflow-decision-item,
.executive-escalation-card,
.executive-company-workflow-list>a,
.management-summary-route-grid>a,
.management-summary-owner-strip>a,
.company-comparison-health-filter,
.company-comparison-domain-indicators i,
.timeline-bucket {
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  box-shadow: none;
}

.executive-company-page,
.executive-attention-page,
.timeline-deadline-list,
.management-summary-final-overview,
.management-summary-management-final {
  border-radius: var(--prisma-radius-panel);
}

.attention-detail-drawer,
.modal,
.prisma-calendar-dropdown,
.profile-dropdown,
.notif-dropdown {
  border-radius: var(--prisma-radius-modal);
  box-shadow: var(--prisma-shadow-overlay);
}

.management-summary-pulse-card:hover,
.management-summary-route-grid>a:hover,
.timeline-bucket:hover,
.company-comparison-health-filter:hover,
.executive-attention-row:hover,
.executive-health-row-link:hover,
.company-detail-domain-card:hover,
.company-detail-unit-row:hover,
.management-pic-row:hover,
.management-work-row:hover {
  background: var(--prisma-surface-subtle);
  box-shadow: none;
  transform: none;
}

.executive-panel-head strong,
.management-summary-final-head>div>strong,
.management-summary-pulse-card strong,
.management-summary-management-pulse strong,
.company-comparison-head h2,
.timeline-hero h2 {
  color: var(--prisma-text-strong);
}

.executive-panel-head small,
.executive-section-heading p,
.management-summary-final-head>div>small,
.management-summary-pulse-card small,
.management-summary-management-pulse small,
.timeline-hero p {
  color: var(--prisma-text-muted);
}

.company-detail-step,
.executive-kicker,
.timeline-kicker,
.management-summary-final-head>div>span,
.management-pic-head,
.company-detail-unit-head,
.company-comparison-head {
  color: var(--prisma-text-muted);
  font-size: 10px;
  letter-spacing: .06em;

}

.executive-company-health-state span,
.executive-company-primary-reason span,
.executive-company-kpis span,
.executive-company-signal-grid small,
.company-detail-context-copy span,
.company-detail-context-actions label span,
.company-comparison-jump-label span,
.company-comparison-health-filter span,
.management-card span,
.management-deadline-grid span,
.timeline-deadline-meta span,
.management-summary-pulse-card span,
.management-summary-domain-strip span,
.management-summary-management-pulse span,
.management-summary-subhead a {
  font-size: 10px;
}

.executive-company-health-state small,
.executive-company-kpis small,
.executive-company-primary-reason small,
.executive-company-signal-grid small,
.executive-domain-health-row span small,
.executive-unit-breakdown span small,
.executive-deadline-list span small,
.company-detail-domain-card span small,
.company-detail-domain-card>i,
.company-detail-unit-row>span small,
.company-detail-timeline-date small,
.company-detail-timeline-main small,
.attention-detail-section-label,
.attention-detail-drawer-grid span,
.company-comparison-main small,
.company-comparison-main em,
.company-comparison-domain-indicators i b,
.company-comparison-domain-indicators i small,
.company-comparison-attention-concentration small,
.company-comparison-coverage-cell small,
.company-comparison-open-company,
.management-card small,
.management-list span small,
.management-pic-row>span small,
.management-deadline-grid small,
.management-work-row>span small,
.management-work-row>small,
.management-summary-route-grid span small,
.management-summary-domain-strip small,
.management-summary-compact-list>a>small,
.management-summary-date,
.management-summary-owner-strip>div small,
.management-summary-owner-strip a small {
  font-size: 10px;
}

.executive-company-reasons span,
.executive-domain-health-row span b,
.executive-unit-breakdown span b,
.executive-deadline-list span b,
.company-detail-domain-card span b,
.company-detail-unit-row>span b,
.company-detail-timeline-date b,
.company-detail-timeline-main b,
.company-comparison-main b,
.company-comparison-attention-concentration b,
.management-list span b,
.management-pic-row>span b,
.management-pic-row>strong,
.management-work-row>span b,
.management-work-row>strong,
.management-summary-route-grid span strong,
.management-summary-domain-strip strong,
.management-summary-subhead strong,
.management-summary-compact-list>a>b,
.management-summary-owner-strip>div strong,
.management-summary-owner-strip a b {
  font-size: 11px;
}

.company-comparison-head,
.company-comparison-legend {
  font-size: 10px;
}

.company-comparison-health-filter small {
  font-size: 10px;
}

.company-comparison-health-filter strong,
.management-deadline-grid strong,
.management-summary-pulse-card strong,
.management-summary-management-pulse strong {
  font-size: 20px;
}

.executive-attention-stat strong {
  font-size: 26px;
}

.executive-panel-head>a,
.executive-company-attention .executive-panel-head>a,
.company-detail-panel-actions a,
.management-overview>.executive-panel-head>a,
.workflow-next-action a,
.workflow-audit-context-head>a,
.management-summary-final-head>a,
.management-summary-subhead a,
.executive-company-workflow-list a em,
.company-comparison-open-company,
.timeline-limit-note a {
  color: var(--prisma-primary);
}

.executive-panel-head>a:hover,
.executive-company-attention .executive-panel-head>a:hover,
.company-detail-panel-actions a:hover,
.management-overview>.executive-panel-head>a:hover,
.workflow-next-action a:hover,
.workflow-audit-context-head>a:hover,
.management-summary-final-head>a:hover,
.management-summary-subhead a:hover,
.company-comparison-open-company:hover {
  color: var(--prisma-primary-hover);
}

.workflow-filter-group a.active {
  background: var(--prisma-primary-soft);
  border-color: #c8d9e8;
  color: var(--prisma-primary);
}

.timeline-source.source-direction,
.timeline-source.source-grc,
.timeline-source.source-todo {
  background: var(--prisma-neutral-bg);
  color: var(--prisma-text);
}

.management-deadline-grid .soon strong,
.timeline-deadline-row.state-next_7 .timeline-datebox span {
  color: var(--prisma-info);
}

@media(max-width:640px) {

  .management-summary-pulse-card small,
  .management-summary-domain-strip small,
  .management-summary-compact-list>a>small,
  .management-summary-owner-strip a small {
    white-space: normal;
  }
}

/* Final mobile header sizing (kept last to override legacy responsive layers). */
.prisma-mobile-brand-name {
  display: none;
}

@media (max-width: 640px) {
  .prisma-app {
    --prisma-topbar: 64px;
  }

  .prisma-app .prisma-topbar {
    height: var(--prisma-topbar);
  }

  .prisma-mobile-context {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .prisma-mobile-year {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .prisma-brand-copy {
    display: flex;
    min-width: 0;
  }

  .prisma-brand-copy>strong {
    display: none;
  }

  .prisma-mobile-brand-name {
    display: flex;
    flex-direction: column;
    color: #26363b;
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.15;
    white-space: nowrap;
  }

  .prisma-mobile-brand-name span {
    margin-top: 2px;
    color: #7b898e;
    font-size: 9px;
    font-weight: 500;
  }

  .prisma-brand-copy>small {
    display: none;
  }
}

@media (max-width: 410px) {
  .prisma-topbar-actions {
    gap: 2px;
  }
}

@media (max-width: 360px) {
  .prisma-mobile-context {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .prisma-mobile-year {
    width: 100%;
    min-width: 0;
  }
}

/* Mobile header proportion: 60% company scope, 40% year context. */
@media (max-width: 640px) {
  .prisma-app {
    --prisma-topbar: 64px;
  }

  .prisma-app .prisma-topbar {
    height: var(--prisma-topbar);
  }

  .prisma-mobile-context {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .prisma-mobile-year {
    width: 100%;
    min-width: 0;
  }

  .prisma-brand-copy {
    display: flex;
    min-width: 0;
  }

  .prisma-brand-copy strong {
    max-width: 150px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.18;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .prisma-brand-copy small {
    display: none;
  }
}

@media (max-width: 410px) {
  .prisma-brand-copy strong {
    max-width: 136px;
    font-size: 11px;
  }

  .prisma-topbar-actions {
    gap: 2px;
  }
}

@media (max-width: 360px) {
  .prisma-mobile-context {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .prisma-mobile-year {
    width: 100%;
    min-width: 0;
  }

  .prisma-brand-copy strong {
    max-width: 112px;
  }
}

/* ========================================================================== */
/* Visual foundation — Shell, Sidebar & Company Context Refinement                        */
/* ========================================================================== */
.prisma-app {
  --prisma-sidebar: 248px;
  --prisma-sidebar-collapsed: 72px;
  --prisma-topbar: 64px;
}

.prisma-app .prisma-topbar {
  height: var(--prisma-topbar);
  padding: 0 20px;
  grid-template-columns: minmax(210px, 1fr) minmax(490px, auto) minmax(210px, 1fr);
  gap: 16px;
  background: var(--prisma-surface);
  border-bottom: 1px solid var(--prisma-border);
  box-shadow: var(--prisma-shadow-xs);
  backdrop-filter: none;
}

.prisma-topbar-left {
  gap: 10px;
}

.prisma-topbar-center {
  gap: 8px;
}

.prisma-topbar-actions {
  gap: 6px;
}

.prisma-menu-toggle,
.prisma-icon-btn,
.prisma-user-pill,
.prisma-context-chip,
.prisma-year-control,
.prisma-company-scope-control {
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface);
  box-shadow: none;
}

.prisma-menu-toggle:hover,
.prisma-icon-btn:hover,
.prisma-user-pill:hover,
.prisma-company-scope-control:hover,
.prisma-year-control:hover {
  border-color: var(--prisma-border-strong);
  background: var(--prisma-surface-subtle);
}

.prisma-menu-toggle:focus-visible,
.prisma-icon-btn:focus-visible,
.prisma-user-pill:focus-visible,
.prisma-nav-item:focus-visible,
.prisma-nav-domain-title:focus-visible,
.prisma-nav-child:focus-visible,
.prisma-company-scope-control:focus-within,
.prisma-year-control:focus-within,
.prisma-mobile-context-control:focus-within {
  outline: 2px solid color-mix(in srgb, var(--prisma-primary) 45%, transparent);
  outline-offset: 2px;
}

.prisma-brand {
  gap: 9px;
}

.prisma-brand img {
  height: 32px;
  max-width: 132px;
}

.prisma-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-sidebar-bg);
}

.prisma-brand-copy strong {
  max-width: 310px;
  color: var(--prisma-text-strong);
  font-size: 12.5px;
  font-weight: 700;
}

.prisma-brand-copy small {
  color: var(--prisma-text-subtle);
  font-size: 9px;
}

.prisma-company-scope-control,
.prisma-year-control,
.prisma-topbar-center .prisma-year-control {
  height: 52px;
  min-height: 52px;
  align-items: center;
}

.prisma-company-scope-control {
  min-width: 300px;
  max-width: 330px;
  padding: 6px 12px;
}

.prisma-company-scope-copy,
.prisma-year-control>span {
  min-width: 0;
  justify-content: center;
  gap: 2px;
}

.prisma-company-scope-copy small,
.prisma-year-control small {
  color: var(--prisma-text-subtle);
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.1;
}

.prisma-company-scope-copy select,
.prisma-year-control select {
  color: var(--prisma-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.prisma-year-control {
  width: 170px;
  min-width: 170px;
  padding: 6px 10px;
}

.prisma-year-control strong {
  max-width: 122px;
  font-size: 12px;
}

.prisma-year-control select {
  width: 100%;
  padding: 5px 24px 5px 8px;
  background: var(--prisma-surface-subtle);
}

.prisma-user-pill {
  appearance: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.prisma-user-copy {
  max-width: 128px;
}

.prisma-avatar-img,
.prisma-user-pill .avatar {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;

  justify-content: center;
  border-radius: var(--prisma-radius-control);
}

.prisma-workspace {
  grid-template-columns: var(--prisma-sidebar) minmax(0, 1fr);
}

.prisma-sidebar {
  top: var(--prisma-topbar);
  height: calc(100vh - var(--prisma-topbar));
  padding: 16px 10px 14px;
  background: var(--prisma-sidebar-bg);
  border-right: 1px solid rgba(255, 255, 255, .055);
}

.prisma-nav {
  gap: 18px;
}

.prisma-nav-group {
  gap: 4px;
}

.prisma-nav-item,
.prisma-nav-domain-title {
  min-height: 36px;
  border-radius: var(--prisma-radius-control);
  color: var(--prisma-sidebar-text);
}

.prisma-nav-item {
  font-size: 11.5px;
  font-weight: 560;
}

.prisma-nav-item:hover,
.prisma-nav-domain-title:hover,
.prisma-nav-child:hover {
  background: var(--prisma-sidebar-hover);
  color: #fff;
}

.prisma-nav-item.active {
  background: var(--prisma-sidebar-active);
  color: #fff;
  box-shadow: none;
  font-weight: 650;
}

.prisma-nav-item.active::before {
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: #7da7d4;
}

.prisma-nav-child.active {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.prisma-nav-child.active::before {
  background: #7da7d4;
}

.prisma-nav-count {
  background: rgba(255, 255, 255, .09);
  color: #d0d5dd;
  font-variant-numeric: tabular-nums;
}

.prisma-nav-admin {
  border-top-color: rgba(255, 255, 255, .07);
}

.prisma-company-module-context-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--prisma-radius-control);
  background: rgba(255, 255, 255, .025);
  color: var(--prisma-sidebar-muted);
}

.prisma-company-module-context-note .prisma-nav-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.prisma-company-module-context-note strong {
  color: var(--prisma-sidebar-text);
  font-size: 10.5px;
  font-weight: 600;
}

.prisma-company-module-context-note small {
  font-size: 9px;
  line-height: 1.35;
  white-space: normal;
}

.prisma-main {
  min-width: 0;
  padding: 24px 26px 72px;
  background: var(--prisma-bg);
}

.prisma-page-context {
  margin-bottom: 20px;
}

.prisma-breadcrumb {
  margin-bottom: 7px;
  color: var(--prisma-text-subtle);
  font-size: 10px;
}

.prisma-breadcrumb strong {
  color: var(--prisma-text-muted);
}

.prisma-page-context h1,
.prisma-page-title-row h1 {
  color: var(--prisma-text-strong);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.prisma-page-context p {
  color: var(--prisma-text-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.prisma-scope-mode {
  border-color: var(--prisma-border);
  background: var(--prisma-surface);
  color: var(--prisma-text-muted);
}

.prisma-context-summary strong {
  color: var(--prisma-text);
}

.prisma-context-summary small {
  color: var(--prisma-text-subtle);
}

.profile-dropdown,
.notif-dropdown,
.prisma-calendar-dropdown {
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-modal);
  box-shadow: var(--prisma-shadow-overlay);
}

.prisma-mobile-context {
  display: none;
}

.prisma-app.sidebar-collapsed .prisma-workspace {
  grid-template-columns: var(--prisma-sidebar-collapsed) minmax(0, 1fr);
}

.prisma-app.sidebar-collapsed .prisma-sidebar {
  padding-left: 10px;
  padding-right: 10px;
}

.prisma-app.sidebar-collapsed .prisma-nav-item.active::before {
  left: -10px;
}

.prisma-app.sidebar-collapsed .prisma-company-module-context-note {
  display: none;
}

@media (max-width: 1180px) {
  .prisma-app .prisma-topbar {
    grid-template-columns: minmax(190px, .8fr) minmax(430px, auto) minmax(190px, .8fr);
    padding: 0 16px;
    gap: 10px;
  }

  .prisma-company-scope-control {
    min-width: 260px;
    max-width: 270px;
  }

  .prisma-year-control {
    width: 160px;
    min-width: 160px;
  }

  .prisma-brand-copy small {
    display: none;
  }

  .prisma-brand-copy strong {
    max-width: 210px;
  }

  .prisma-user-copy {
    max-width: 92px;
  }
}

@media (max-width: 980px) and (min-width: 821px) {
  .prisma-app .prisma-topbar {
    grid-template-columns: minmax(160px, .65fr) minmax(382px, auto) minmax(145px, .55fr);
  }

  .prisma-brand-copy {
    display: none;
  }

  .prisma-company-scope-control {
    min-width: 228px;
    max-width: 232px;
  }

  .prisma-year-control {
    width: 142px;
    min-width: 142px;
  }

  .prisma-user-copy {
    display: none;
  }

  .prisma-user-pill {
    padding-right: 6px !important;
  }

  .prisma-main {
    padding: 22px 22px 64px;
  }
}

@media (max-width: 820px) {
  .prisma-app {
    --prisma-topbar: 60px;
  }

  .prisma-app .prisma-topbar {
    height: var(--prisma-topbar);
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 12px;
  }

  .prisma-topbar-center {
    display: none;
  }

  .prisma-brand-copy {
    display: flex;
  }

  .prisma-brand-copy strong {
    max-width: 120px;
    font-size: 12px;
  }

  .prisma-brand-copy small {
    display: none;
  }

  .prisma-brand img {
    height: 28px;
    max-width: 92px;
  }

  .prisma-menu-toggle {
    width: 34px;
    height: 34px;
  }

  .prisma-topbar-actions .prisma-calendar-btn,
  .prisma-topbar-actions #calBtn {
    display: none;
  }

  .prisma-user-copy,
  .prisma-chevron {
    display: none;
  }

  .prisma-user-pill {
    padding: 2px !important;
    border: 0 !important;
    background: transparent !important;
  }

  .prisma-mobile-context {
    position: sticky;
    top: var(--prisma-topbar);
    z-index: 850;
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-height: 48px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--prisma-border);
    background: var(--prisma-surface);
  }

  .prisma-mobile-context-control,
  .prisma-mobile-context-static {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 3px 8px;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-control);
    background: var(--prisma-surface-subtle);
  }

  .prisma-mobile-year {
    flex: 0 0 150px;
  }

  .prisma-mobile-context small {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .07em;

  }

  .prisma-mobile-context select {
    width: 100%;
    min-width: 0;
    padding: 0 18px 0 0;
    border: 0;
    background: transparent;
    color: var(--prisma-text);
    font: inherit;
    font-size: 10.5px;
    font-weight: 650;
    outline: 0;
    text-overflow: ellipsis;
  }

  .prisma-mobile-context-static strong {
    overflow: hidden;
    color: var(--prisma-text);
    font-size: 10.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prisma-sidebar {
    top: calc(var(--prisma-topbar) + 49px);
    height: calc(100vh - var(--prisma-topbar) - 49px);
    width: 264px;
  }

  .prisma-sidebar-backdrop {
    inset: calc(var(--prisma-topbar) + 49px) 0 0;
  }

  .prisma-main {
    padding: 18px 16px 56px;
  }
}

@media (max-width: 520px) {
  .prisma-app .prisma-topbar {
    gap: 8px;
    padding: 0 10px;
  }

  .prisma-brand,
  .prisma-brand-copy {
    min-width: 0;
  }

  .prisma-brand-copy strong {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prisma-topbar-actions {
    gap: 3px;
  }

  .prisma-icon-btn {
    width: 32px;
    height: 32px;
  }

  .prisma-mobile-context,
  .prisma-mobile-context-control {
    min-width: 0;
  }

  .prisma-mobile-context {
    padding: 6px 10px;
    gap: 6px;
  }

  .prisma-mobile-year {
    flex-basis: 92px;
  }

  .prisma-main {
    padding: 14px 10px 44px;
  }

  .prisma-page-context h1,
  .prisma-page-title-row h1 {
    font-size: 19px;
  }

  .prisma-page-context p {
    font-size: 11px;
  }

  .prisma-page-title-row {
    gap: 6px;
  }

  .prisma-context-summary {
    row-gap: 4px;
  }

  .prisma-admin-section-head h2 {
    font-size: 16px;
  }

  .prisma-admin-tabs .admin-tab {
    min-height: 42px;
  }

  .profile-dropdown,
  .notif-dropdown,
  .prisma-calendar-dropdown {
    position: fixed;
    left: 8px;
    right: 8px;
    top: calc(var(--prisma-topbar) + 54px);
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--prisma-topbar) - 70px);
  }
}

/* Visual foundation cascade guard: retain desktop/tablet global context until drawer breakpoint. */
@media (max-width: 1180px) and (min-width: 821px) {
  .prisma-topbar-center {
    display: flex;
  }
}

/* ==========================================================================
   PRISMA Visual foundation — Dashboard Components & Executive Visual Refinement
   Visual-only normalization over Executive monitoring/Monitoring refinement monitoring components.
   Monitoring rules, data calculation, authorization and URL contracts unchanged.
   ========================================================================== */

.prisma-executive-workspace {
  --prisma-exec-panel-gap: var(--prisma-space-4);
  --prisma-exec-panel-pad: 20px;
  color: var(--prisma-text);
}

/* Executive overview intro: compact context, not a hero banner. */
.prisma-executive-overview.role-landing {
  display: grid;
  gap: var(--prisma-space-4);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.prisma-executive-overview .role-landing-head {
  min-height: 0;
  padding: 20px 22px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-executive-overview .role-landing-eyebrow,
.prisma-executive-workspace .executive-kicker {
  color: var(--prisma-text-subtle);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.prisma-executive-overview .role-landing-head h2,
.prisma-executive-workspace .executive-attention-page-head h2,
.prisma-executive-workspace .executive-company-page-head h2,
.prisma-executive-workspace .company-comparison-head h2 {
  margin: 5px 0 0;
  color: var(--prisma-text-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.prisma-executive-overview .role-landing-head p,
.prisma-executive-workspace .executive-attention-page-head p,
.prisma-executive-workspace .executive-company-page-head p,
.prisma-executive-workspace .company-comparison-head p {
  max-width: 820px;
  margin-top: 7px;
  color: var(--prisma-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.prisma-executive-overview .role-landing-scope {
  align-self: center;
  gap: 8px;
}

.prisma-executive-overview .role-landing-scope>span {
  min-width: 138px;
  padding: 9px 11px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface-subtle);
}

.prisma-executive-overview .role-landing-scope small {
  color: var(--prisma-text-subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;

}

.prisma-executive-overview .role-landing-scope strong {
  margin-top: 2px;
  color: var(--prisma-text);
  font-size: 12px;
  font-weight: 650;
}

/* Section heading and coverage blocks. */
.prisma-executive-workspace .executive-intelligence {
  display: grid;
  gap: var(--prisma-space-4);
}

.prisma-executive-workspace .executive-section-heading,
.prisma-executive-workspace .executive-attention-page-head,
.prisma-executive-workspace .executive-company-page-head,
.prisma-executive-workspace .company-comparison-head {
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-executive-workspace .executive-section-heading h3 {
  margin: 5px 0 0;
  color: var(--prisma-text-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.prisma-executive-workspace .executive-section-heading p {
  max-width: 800px;
  margin-top: 6px;
  color: var(--prisma-text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.prisma-executive-workspace .executive-coverage {
  min-width: 210px;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface-subtle);
}

.prisma-executive-workspace .executive-coverage span {
  color: var(--prisma-text-subtle);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;

}

.prisma-executive-workspace .executive-coverage strong {
  margin-top: 3px;
  color: var(--prisma-text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

/* Executive metrics: consistent card language and restrained semantic accent. */
.prisma-executive-workspace .executive-attention-summary,
.prisma-executive-workspace .executive-company-kpis,
.prisma-executive-workspace .company-comparison-health-summary {
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.prisma-executive-workspace .executive-attention-stat,
.prisma-executive-workspace .executive-company-kpis>div,
.prisma-executive-workspace .company-comparison-health-filter {
  position: relative;
  min-height: 112px;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-executive-workspace .executive-attention-stat::before,
.prisma-executive-workspace .executive-company-kpis>div::before,
.prisma-executive-workspace .company-comparison-health-filter::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: '';
  background: var(--prisma-border-strong);
}

.prisma-executive-workspace .executive-attention-stat.critical::before,
.prisma-executive-workspace .executive-company-kpis>div.critical::before,
.prisma-executive-workspace .company-comparison-health-filter.critical::before {
  background: var(--prisma-critical);
}

.prisma-executive-workspace .executive-attention-stat.high::before,
.prisma-executive-workspace .executive-company-kpis>div.attention::before,
.prisma-executive-workspace .company-comparison-health-filter.watch::before {
  background: var(--prisma-watch);
}

.prisma-executive-workspace .executive-attention-stat.medium::before {
  background: var(--prisma-info);
}

.prisma-executive-workspace .executive-attention-stat.health::before,
.prisma-executive-workspace .company-comparison-health-filter.healthy::before {
  background: var(--prisma-healthy);
}

.prisma-executive-workspace .executive-attention-stat span,
.prisma-executive-workspace .executive-company-kpis>div>span,
.prisma-executive-workspace .company-comparison-health-filter>span {
  color: var(--prisma-text-muted);
  font-size: 11px;
  font-weight: 650;
}

.prisma-executive-workspace .executive-attention-stat strong,
.prisma-executive-workspace .executive-company-kpis>div>strong,
.prisma-executive-workspace .company-comparison-health-filter>strong {
  margin-top: 10px;
  color: var(--prisma-text-strong);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.prisma-executive-workspace .executive-attention-stat small,
.prisma-executive-workspace .executive-company-kpis>div>small,
.prisma-executive-workspace .company-comparison-health-filter>small {
  margin-top: 8px;
  color: var(--prisma-text-subtle);
  font-size: 10px;
  line-height: 1.35;
}

.prisma-executive-workspace .company-comparison-health-filter {
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.prisma-executive-workspace .company-comparison-health-filter:hover {
  border-color: var(--prisma-border-strong);
}

.prisma-executive-workspace .company-comparison-health-filter.active {
  border-color: #b7c7d8;
  background: var(--prisma-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(36, 91, 145, .06);
}

.prisma-executive-workspace .company-comparison-health-filter:focus-visible {
  outline: 2px solid var(--prisma-primary);
  outline-offset: 2px;
}

/* Panels: one executive surface language. */
.prisma-executive-workspace .executive-panel,
.prisma-executive-workspace .executive-attention-bucket {
  overflow: hidden;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-executive-workspace .executive-grid,
.prisma-executive-workspace .executive-attention-columns {
  gap: var(--prisma-exec-panel-gap);
}

.prisma-executive-workspace .executive-panel-head,
.prisma-executive-workspace .executive-bucket-head {
  min-height: 62px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--prisma-border-subtle);
  background: var(--prisma-surface);
}

.prisma-executive-workspace .executive-panel-head strong,
.prisma-executive-workspace .executive-bucket-head strong {
  color: var(--prisma-text-strong);
  font-size: 13px;
  font-weight: 700;
}

.prisma-executive-workspace .executive-panel-head small,
.prisma-executive-workspace .executive-bucket-head small {
  margin-top: 3px;
  color: var(--prisma-text-muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.prisma-executive-workspace .executive-total-pill,
.prisma-executive-workspace .executive-total-link {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--prisma-border);
  border-radius: 999px;
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-muted);
  font-size: 10px;
  font-weight: 700;
}

.prisma-executive-workspace .executive-total-link:hover {
  border-color: var(--prisma-border-strong);
  color: var(--prisma-primary);
}

/* Attention rows: clearer scan path Severity → Item → Current signal. */
.prisma-executive-workspace .executive-attention-list {
  padding: 0;
}

.prisma-executive-workspace .executive-attention-row {
  min-height: 82px;
  padding: 13px 16px;
  gap: 12px;
  border-top: 1px solid var(--prisma-border-subtle);
  background: var(--prisma-surface);
  transition: background .15s ease, box-shadow .15s ease;
}

.prisma-executive-workspace .executive-attention-row:first-child {
  border-top: 0;
}

.prisma-executive-workspace .executive-attention-row:hover {
  background: var(--prisma-surface-subtle);
  box-shadow: inset 3px 0 0 var(--prisma-primary);
}

.prisma-executive-workspace .executive-attention-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--prisma-primary);
  outline-offset: -2px;
}

.prisma-executive-workspace .executive-severity {
  min-width: 62px;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;

}

.prisma-executive-workspace .executive-attention-main>b {
  color: var(--prisma-text-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.prisma-executive-workspace .executive-attention-main>small {
  margin-top: 4px;
  color: var(--prisma-text-subtle);
  font-size: 9.5px;
  line-height: 1.4;
}

.prisma-executive-workspace .executive-attention-main>em {
  margin-top: 6px;
  color: var(--prisma-text-muted);
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.4;
}

.prisma-executive-workspace .executive-attention-context,
.prisma-executive-workspace .executive-reason-tags {
  margin-top: 7px;
  gap: 5px;
}

.prisma-executive-workspace .executive-attention-context i,
.prisma-executive-workspace .executive-reason-tags i {
  padding: 3px 6px;
  border: 1px solid var(--prisma-border);
  border-radius: 999px;
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-muted);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 650;
}

.prisma-executive-workspace .executive-attention-meta b {
  color: var(--prisma-text-strong);
  font-size: 14px;
  font-weight: 700;
}

.prisma-executive-workspace .executive-attention-meta small {
  margin-top: 3px;
  color: var(--prisma-text-subtle);
  font-size: 9px;
}

.prisma-executive-workspace .executive-attention-meta i {
  color: var(--prisma-text-subtle);
}

/* Health list and semantic status. */
.prisma-executive-workspace .executive-health-row {
  min-height: 78px;
  padding: 13px 16px;
  gap: 11px;
  border-top-color: var(--prisma-border-subtle);
}

.prisma-executive-workspace .executive-health-row:hover {
  background: var(--prisma-surface-subtle);
  box-shadow: inset 3px 0 0 var(--prisma-primary);
}

.prisma-executive-workspace .executive-health-main b {
  color: var(--prisma-text-strong);
  font-size: 12px;
  font-weight: 700;
}

.prisma-executive-workspace .executive-health-main small,
.prisma-executive-workspace .executive-health-main em {
  margin-top: 4px;
  font-size: 9.5px;
  line-height: 1.4;
}

.prisma-executive-workspace .executive-health-context {
  margin-top: 7px;
  gap: 5px;
}

.prisma-executive-workspace .executive-health-context i {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--prisma-neutral-bg);
  color: var(--prisma-text-muted);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 650;
}

.prisma-executive-workspace .executive-health-badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.prisma-executive-workspace .executive-health-note,
.prisma-executive-workspace .executive-rule-note {
  padding: 11px 14px;
  border: 1px solid var(--prisma-border-subtle);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.prisma-executive-workspace .executive-health-note b,
.prisma-executive-workspace .executive-rule-note b {
  color: var(--prisma-text);
}

/* Signal strip: compact supporting metrics, clearly secondary to KPI cards. */
.prisma-executive-workspace .executive-signal-strip {
  overflow: hidden;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-executive-workspace .executive-signal-strip>span {
  min-height: 66px;
  padding: 12px 14px;
  border-color: var(--prisma-border-subtle);
}

.prisma-executive-workspace .executive-signal-strip small {
  color: var(--prisma-text-subtle);
  font-size: 9px;
  font-weight: 650;
}

.prisma-executive-workspace .executive-signal-strip strong {
  margin-top: 4px;
  color: var(--prisma-text);
  font-size: 16px;
  font-weight: 700;
}

/* Empty state: calm and explicit, not visually equivalent to error. */
.prisma-executive-workspace .executive-empty {
  min-height: 96px;
  padding: 22px 20px;
  border: 0;
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-muted);
}

.prisma-executive-workspace .executive-empty strong {
  color: var(--prisma-text);
  font-size: 11.5px;
}

.prisma-executive-workspace .executive-empty span {
  margin-top: 4px;
  color: var(--prisma-text-muted);
  font-size: 10px;
  line-height: 1.5;
}

/* Attention destination hierarchy. */
.prisma-attention-workspace {
  display: grid;
  gap: var(--prisma-space-4);
  margin: 0;
}

.prisma-attention-workspace .executive-attention-page-head {
  margin: 0;
}

.prisma-attention-workspace .executive-attention-columns {
  margin: 0;
}

.prisma-attention-workspace .executive-attention-bucket.executive .executive-bucket-head {
  box-shadow: inset 3px 0 0 var(--prisma-critical);
}

.prisma-attention-workspace .executive-attention-bucket.management .executive-bucket-head {
  box-shadow: inset 3px 0 0 var(--prisma-watch);
}

.prisma-attention-workspace .executive-bucket-head>b {
  display: inline-flex;
  min-width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--prisma-neutral-bg);
  color: var(--prisma-text);
  font-size: 12px;
}

.prisma-attention-workspace .executive-workflow-panel {
  margin: 0;
}

/* Company comparison: improve scanning without turning it into a ranking board. */
.prisma-company-comparison {
  display: grid;
  gap: var(--prisma-space-4);
}

.prisma-company-comparison .company-comparison-head {
  margin: 0;
}

.prisma-company-comparison .company-comparison-jump-label {
  width: min(290px, 32vw);
}

.prisma-company-comparison .company-comparison-jump-label span {
  color: var(--prisma-text-subtle);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;
}

.prisma-company-comparison .company-comparison-jump-label select {
  height: 38px;
  border-color: var(--prisma-border-strong);
  border-radius: var(--prisma-radius-control);
  color: var(--prisma-text);
  font-size: 11px;
}

.prisma-company-comparison .company-comparison-table {
  padding: 0 16px 14px;
  overflow-x: auto;
}

.prisma-company-comparison .company-comparison-head,
.prisma-company-comparison .company-comparison-row {
  min-width: 920px;
  gap: 12px;
}

.prisma-company-comparison .company-comparison-head {
  padding: 10px 12px;
  color: var(--prisma-text-subtle);
  font-size: 9px;
  letter-spacing: .05em;
}

.prisma-company-comparison .company-comparison-row {
  min-height: 86px;
  padding: 13px 12px;
  border-top-color: var(--prisma-border-subtle);
}

.prisma-company-comparison .company-comparison-row:hover {
  background: var(--prisma-surface-subtle);
  box-shadow: inset 3px 0 0 var(--prisma-primary);
}

.prisma-company-comparison .company-comparison-main b {
  color: var(--prisma-text-strong);
  font-size: 12px;
}

.prisma-company-comparison .company-comparison-main small {
  margin-top: 4px;
  color: var(--prisma-text-subtle);
  font-size: 9px;
}

.prisma-company-comparison .company-comparison-main em {
  margin-top: 6px;
  color: var(--prisma-text-muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.prisma-company-comparison .company-comparison-domain-indicators i {
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-sm);
}

.prisma-company-comparison .company-comparison-domain-indicators i b {
  font-size: 9px;
}

.prisma-company-comparison .company-comparison-domain-indicators i small {
  font-size: 8px;
}

.prisma-company-comparison .company-comparison-attention-concentration b,
.prisma-company-comparison .company-comparison-coverage-cell b {
  color: var(--prisma-text);
  font-size: 10.5px;
}

.prisma-company-comparison .company-comparison-attention-concentration small,
.prisma-company-comparison .company-comparison-coverage-cell small {
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
}

.prisma-company-comparison .company-comparison-open-company {
  color: var(--prisma-primary);
  font-size: 9px;
  font-weight: 750;
}

/* Company diagnostic: preserve Monitoring refinement flow, improve visual hierarchy/readability. */
.prisma-company-diagnostic.executive-company-page {
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prisma-company-diagnostic .executive-company-page-head {
  margin-bottom: var(--prisma-space-4);
}

.prisma-company-diagnostic .executive-back-link {
  color: var(--prisma-text-muted);
  font-size: 10px;
  font-weight: 650;
}

.prisma-company-diagnostic .executive-back-link:hover {
  color: var(--prisma-primary);
}

.prisma-company-diagnostic .executive-company-health-state {
  min-width: 170px;
  padding: 12px 14px;
  border-radius: var(--prisma-radius-control);
}

.prisma-company-diagnostic .executive-company-health-state>span {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .05em;

}

.prisma-company-diagnostic .executive-company-health-state>strong {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 750;
}

.prisma-company-diagnostic .executive-company-health-state>small {
  margin-top: 4px;
  font-size: 9px;
}

.prisma-company-diagnostic .company-detail-context-rail {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface-subtle);
}

.prisma-company-diagnostic .company-detail-context-copy span,
.prisma-company-diagnostic .company-detail-context-actions label span,
.prisma-company-diagnostic .company-detail-step {
  color: var(--prisma-text-subtle);
  font-size: 9px;
}

.prisma-company-diagnostic .company-detail-context-copy strong {
  color: var(--prisma-text);
  font-size: 12px;
}

.prisma-company-diagnostic .company-detail-context-copy small {
  color: var(--prisma-text-muted);
  font-size: 9.5px;
}

.prisma-company-diagnostic .company-detail-context-actions select {
  height: 36px;
  border-color: var(--prisma-border-strong);
  border-radius: var(--prisma-radius-control);
  color: var(--prisma-text);
  font-size: 10.5px;
}

.prisma-company-diagnostic .company-detail-context-actions a {
  height: 36px;
  border-color: var(--prisma-border);
  color: var(--prisma-text-muted);
  font-size: 9.5px;
}

.prisma-company-diagnostic .executive-company-kpis {
  margin-bottom: 12px;
}

.prisma-company-diagnostic .company-detail-section {
  margin: 0 0 12px;
  border: 1px solid var(--prisma-border) !important;
  border-radius: var(--prisma-radius-panel) !important;
}

.prisma-company-diagnostic .company-detail-why-grid {
  gap: 0;
}

.prisma-company-diagnostic .executive-company-primary-reason {
  padding: 18px;
}

.prisma-company-diagnostic .executive-company-primary-reason>span {
  color: var(--prisma-text-subtle);
  font-size: 9px;
}

.prisma-company-diagnostic .executive-company-primary-reason>strong {
  margin-top: 7px;
  color: var(--prisma-text-strong);
  font-size: 13px;
  line-height: 1.45;
}

.prisma-company-diagnostic .executive-company-primary-reason>small {
  margin-top: 6px;
  color: var(--prisma-text-muted);
  font-size: 9.5px;
}

.prisma-company-diagnostic .executive-company-reasons {
  padding: 14px 18px;
}

.prisma-company-diagnostic .executive-company-reasons>div {
  min-height: 38px;
}

.prisma-company-diagnostic .executive-company-reasons span {
  color: var(--prisma-text);
  font-size: 10px;
  line-height: 1.4;
}

.prisma-company-diagnostic .company-detail-domain-grid {
  gap: 10px;
  padding: 0 16px 16px;
}

.prisma-company-diagnostic .company-detail-domain-card {
  min-height: 132px;
  padding: 14px;
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
}

.prisma-company-diagnostic .company-detail-domain-card span b {
  color: var(--prisma-text-strong);
  font-size: 11.5px;
}

.prisma-company-diagnostic .company-detail-domain-card span small {
  color: var(--prisma-text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.prisma-company-diagnostic .company-detail-domain-card>i {
  color: var(--prisma-text-muted);
  font-size: 9px;
}

.prisma-company-diagnostic .company-detail-unit-head,
.prisma-company-diagnostic .management-pic-head {
  color: var(--prisma-text-subtle);
  font-size: 9px;
}

.prisma-company-diagnostic .company-detail-unit-row,
.prisma-company-diagnostic .management-pic-row {
  min-height: 54px;
  border-top-color: var(--prisma-border-subtle);
}

.prisma-company-diagnostic .company-detail-unit-row>span b,
.prisma-company-diagnostic .management-pic-row>span b {
  color: var(--prisma-text-strong);
  font-size: 11px;
}

.prisma-company-diagnostic .company-detail-unit-row>span small,
.prisma-company-diagnostic .management-pic-row>span small {
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
}

.prisma-company-diagnostic .company-detail-unit-row>strong,
.prisma-company-diagnostic .management-pic-row>strong {
  font-size: 11px;
}

.prisma-company-diagnostic .company-detail-timeline-row {
  min-height: 62px;
  padding: 12px 10px;
  border-top-color: var(--prisma-border-subtle);
}

.prisma-company-diagnostic .company-detail-timeline-date b {
  color: var(--prisma-text);
  font-size: 10px;
}

.prisma-company-diagnostic .company-detail-timeline-date small {
  font-size: 9px;
}

.prisma-company-diagnostic .company-detail-timeline-main b {
  color: var(--prisma-text-strong);
  font-size: 11px;
}

.prisma-company-diagnostic .company-detail-timeline-main small {
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
}

/* Workflow summary remains secondary to detected monitoring conditions. */
.prisma-executive-workspace .executive-workflow-mini {
  gap: 0;
  border-top: 0;
}

.prisma-executive-workspace .executive-workflow-mini>span {
  min-height: 72px;
  padding: 13px 14px;
  border-color: var(--prisma-border-subtle);
}

.prisma-executive-workspace .executive-workflow-mini b {
  color: var(--prisma-text-strong);
  font-size: 18px;
}

.prisma-executive-workspace .executive-workflow-mini small {
  color: var(--prisma-text-muted);
  font-size: 9px;
}

/* Responsive executive workspace. */
@media (max-width: 1180px) {

  .prisma-executive-workspace .executive-attention-stat,
  .prisma-executive-workspace .executive-company-kpis>div,
  .prisma-executive-workspace .company-comparison-health-filter {
    min-height: 104px;
  }

  .prisma-company-comparison .company-comparison-jump-label {
    width: 240px;
  }
}

@media (max-width: 900px) {

  .prisma-executive-overview .role-landing-head,
  .prisma-executive-workspace .executive-section-heading,
  .prisma-executive-workspace .executive-attention-page-head,
  .prisma-executive-workspace .executive-company-page-head,
  .prisma-executive-workspace .company-comparison-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .prisma-executive-overview .role-landing-scope {
    width: 100%;
    align-self: stretch;
  }

  .prisma-executive-overview .role-landing-scope>span {
    flex: 1 1 0;
  }

  .prisma-executive-workspace .executive-coverage {
    width: 100%;
    max-width: none;
  }

  .prisma-company-comparison .company-comparison-jump-label {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .prisma-executive-workspace {
    --prisma-exec-panel-pad: 16px;
  }

  .prisma-executive-overview .role-landing-head,
  .prisma-executive-workspace .executive-section-heading,
  .prisma-executive-workspace .executive-attention-page-head,
  .prisma-executive-workspace .executive-company-page-head,
  .prisma-executive-workspace .company-comparison-head {
    padding: 16px;
  }

  .prisma-executive-overview .role-landing-head h2,
  .prisma-executive-workspace .executive-attention-page-head h2,
  .prisma-executive-workspace .executive-company-page-head h2,
  .prisma-executive-workspace .company-comparison-head h2 {
    font-size: 21px;
  }

  .prisma-executive-overview .role-landing-scope {
    flex-direction: column;
  }

  .prisma-executive-overview .role-landing-scope>span {
    width: 100%;
  }

  .prisma-executive-workspace .executive-attention-stat,
  .prisma-executive-workspace .executive-company-kpis>div,
  .prisma-executive-workspace .company-comparison-health-filter {
    min-height: 96px;
    padding: 14px;
  }

  .prisma-executive-workspace .executive-attention-stat strong,
  .prisma-executive-workspace .executive-company-kpis>div>strong,
  .prisma-executive-workspace .company-comparison-health-filter>strong {
    font-size: 24px;
  }

  .prisma-executive-workspace .executive-attention-row {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 12px 14px;
  }

  .prisma-executive-workspace .executive-attention-meta {
    grid-column: 2;
    justify-self: start;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .prisma-executive-workspace .executive-attention-meta small {
    margin-top: 0;
  }

  .prisma-executive-workspace .executive-attention-meta i {
    display: none;
  }

  .prisma-company-diagnostic .executive-company-health-state {
    width: 100%;
    min-width: 0;
  }

  .prisma-company-diagnostic .company-detail-context-actions {
    flex-wrap: wrap;
  }

  .prisma-company-diagnostic .company-detail-context-actions label {
    min-width: 160px;
  }
}

@media (max-width: 520px) {

  .prisma-executive-workspace .executive-attention-summary,
  .prisma-executive-workspace .executive-company-kpis,
  .prisma-executive-workspace .company-comparison-health-summary {
    gap: 8px;
  }

  .prisma-executive-workspace .executive-attention-stat,
  .prisma-executive-workspace .executive-company-kpis>div,
  .prisma-executive-workspace .company-comparison-health-filter {
    min-height: 90px;
    padding: 12px;
  }

  .prisma-executive-workspace .executive-attention-stat span,
  .prisma-executive-workspace .executive-company-kpis>div>span,
  .prisma-executive-workspace .company-comparison-health-filter>span {
    font-size: 10px;
  }

  .prisma-executive-workspace .executive-attention-stat strong,
  .prisma-executive-workspace .executive-company-kpis>div>strong,
  .prisma-executive-workspace .company-comparison-health-filter>strong {
    margin-top: 7px;
    font-size: 22px;
  }

  .prisma-executive-workspace .executive-attention-stat small,
  .prisma-executive-workspace .executive-company-kpis>div>small,
  .prisma-executive-workspace .company-comparison-health-filter>small {
    margin-top: 6px;
    font-size: 8.5px;
  }

  .prisma-executive-workspace .executive-severity {
    min-width: 54px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .prisma-executive-workspace .executive-attention-main>b {
    font-size: 11px;
  }

  .prisma-executive-workspace .executive-attention-main>em {
    font-size: 9.5px;
  }

  .prisma-company-diagnostic .company-detail-context-actions label {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  .prisma-company-diagnostic .company-detail-context-actions a {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   PRISMA Visual foundation — Tables & Monitoring Components\n   Dense monitoring views use the Visual foundation token foundation and preserve Monitoring refinement\n   information architecture/business behavior.\n   ========================================================================== */

.prisma-monitoring-workspace {
  margin: 0 0 var(--prisma-space-5);
  color: var(--prisma-text);
}

/* Timeline & deadline workspace ------------------------------------------------ */
.prisma-timeline-workspace.timeline-shell {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prisma-timeline-workspace .timeline-hero {
  margin-bottom: var(--prisma-space-4);
  padding: 18px 20px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-timeline-workspace .timeline-kicker {
  color: var(--prisma-text-subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.prisma-timeline-workspace .timeline-hero h2 {
  margin-top: 5px;
  color: var(--prisma-text-strong);
  font-size: 22px;
  line-height: 1.2;
}

.prisma-timeline-workspace .timeline-hero p {
  max-width: 760px;
  margin-top: 6px;
  color: var(--prisma-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.prisma-timeline-workspace .timeline-context-chip {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface-subtle);
}

.prisma-timeline-workspace .timeline-context-chip strong {
  color: var(--prisma-text-strong);
  font-size: 11px;
}

.prisma-timeline-workspace .timeline-context-chip span {
  margin-top: 3px;
  color: var(--prisma-text-subtle);
  font-size: 9px;
}

.prisma-timeline-workspace .timeline-filterbar {
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
}

.prisma-timeline-workspace .timeline-filter-copy strong {
  color: var(--prisma-text);
  font-size: 11px;
}

.prisma-timeline-workspace .timeline-filter-copy small {
  margin-top: 3px;
  color: var(--prisma-text-subtle);
  font-size: 9px;
  line-height: 1.45;
}

.prisma-timeline-workspace .timeline-select span {
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .04em;

}

.prisma-timeline-workspace .timeline-select select {
  min-width: 148px;
  height: 36px;
  border-color: var(--prisma-border-strong);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface);
  color: var(--prisma-text);
  font-size: 10.5px;
}

.prisma-timeline-workspace .timeline-buckets {
  gap: 0;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
}

.prisma-timeline-workspace .timeline-bucket {
  min-height: 62px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--prisma-border-subtle);
  border-radius: 0;
  background: transparent;
}

.prisma-timeline-workspace .timeline-bucket:last-child {
  border-right: 0;
}

.prisma-timeline-workspace .timeline-bucket:hover {
  background: var(--prisma-surface-subtle);
}

.prisma-timeline-workspace .timeline-bucket.active {
  background: var(--prisma-primary-soft);
  box-shadow: inset 0 -2px 0 var(--prisma-primary);
}

.prisma-timeline-workspace .timeline-bucket span {
  color: var(--prisma-text-muted);
  font-size: 9.5px;
}

.prisma-timeline-workspace .timeline-bucket strong {
  margin-top: 4px;
  color: var(--prisma-text-strong);
  font-size: 18px;
}

.prisma-timeline-workspace .timeline-summaryline {
  min-height: 36px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-muted);
  font-size: 9.5px;
}

.prisma-timeline-workspace .timeline-summaryline b {
  color: var(--prisma-text);
}

.prisma-timeline-workspace .timeline-deadline-list {
  overflow: hidden;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-timeline-workspace .timeline-deadline-row {
  min-height: 86px;
  margin: 0;
  padding: 12px 14px 12px 16px;
  border: 0;
  border-top: 1px solid var(--prisma-border-subtle);
  border-radius: 0;
  background: var(--prisma-surface);
}

.prisma-timeline-workspace .timeline-deadline-row:first-child {
  border-top: 0;
}

.prisma-timeline-workspace .timeline-deadline-row:hover {
  background: var(--prisma-surface-subtle);
}

.prisma-timeline-workspace .timeline-datebox {
  min-width: 110px;
  padding-right: 12px;
  border-right: 1px solid var(--prisma-border-subtle);
}

.prisma-timeline-workspace .timeline-datebox strong {
  color: var(--prisma-text-strong);
  font-size: 10.5px;
}

.prisma-timeline-workspace .timeline-datebox span {
  margin-top: 4px;
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
}

.prisma-timeline-workspace .timeline-row-top {
  gap: 5px;
}

.prisma-timeline-workspace .timeline-source,
.prisma-timeline-workspace .timeline-severity,
.prisma-timeline-workspace .timeline-attention {
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
}

.prisma-timeline-workspace .timeline-deadline-main h3 {
  margin: 7px 0 4px;
  color: var(--prisma-text-strong);
  font-size: 12px;
  line-height: 1.35;
}

.prisma-timeline-workspace .timeline-deadline-main p,
.prisma-timeline-workspace .timeline-reason {
  color: var(--prisma-text-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.prisma-timeline-workspace .timeline-deadline-meta strong {
  color: var(--prisma-text-strong);
  font-size: 15px;
}

.prisma-timeline-workspace .timeline-deadline-meta span {
  color: var(--prisma-text-subtle);
  font-size: 8px;
}

.prisma-timeline-workspace .timeline-limit-note {
  margin-top: 10px;
  border-color: var(--prisma-border-strong);
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-muted);
}

/* Escalation / decision workflow ------------------------------------------------ */
.prisma-escalation-workspace.executive-escalation-page {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.prisma-escalation-workspace .executive-attention-page-head {
  margin-bottom: var(--prisma-space-4);
  padding: 18px 20px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-escalation-workspace .executive-attention-page-head h2 {
  color: var(--prisma-text-strong);
  font-size: 22px;
}

.prisma-escalation-workspace .executive-attention-page-head p {
  max-width: 800px;
  color: var(--prisma-text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.prisma-escalation-workspace .workflow-filters {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
}

.prisma-escalation-workspace .workflow-filter-group>span,
.prisma-escalation-workspace .workflow-owner-filter label {
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .04em;

}

.prisma-escalation-workspace .workflow-filter-group a {
  min-height: 30px;
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  color: var(--prisma-text-muted);
  font-size: 9px;
}

.prisma-escalation-workspace .workflow-filter-group a.active {
  border-color: var(--prisma-primary);
  background: var(--prisma-primary-soft);
  color: var(--prisma-primary);
}

.prisma-escalation-workspace .workflow-owner-filter select {
  height: 34px;
  border-color: var(--prisma-border-strong);
  border-radius: var(--prisma-radius-control);
  color: var(--prisma-text);
  font-size: 10px;
}

.prisma-escalation-workspace .workflow-decision-queue,
.prisma-escalation-workspace .executive-panel {
  margin: 0 0 12px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-escalation-workspace .workflow-decision-grid {
  gap: 8px;
  padding: 0 14px 14px;
}

.prisma-escalation-workspace .workflow-decision-item {
  min-height: 132px;
  padding: 13px 14px;
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface);
}

.prisma-escalation-workspace .workflow-decision-item:hover {
  background: var(--prisma-surface-subtle);
}

.prisma-escalation-workspace .workflow-decision-item>span {
  color: var(--prisma-text-subtle);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .04em;

}

.prisma-escalation-workspace .workflow-decision-item>b {
  margin-top: 6px;
  color: var(--prisma-text-strong);
  font-size: 11px;
  line-height: 1.4;
}

.prisma-escalation-workspace .workflow-decision-item>small,
.prisma-escalation-workspace .workflow-decision-item>p {
  color: var(--prisma-text-muted);
  font-size: 9px;
  line-height: 1.45;
}

.prisma-workflow-queue-panel .executive-escalation-list {
  overflow: hidden;
  border-top: 1px solid var(--prisma-border-subtle);
}

.prisma-workflow-queue-panel .executive-escalation-card {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--prisma-border-subtle);
  border-radius: 0;
  background: var(--prisma-surface);
  box-shadow: none;
}

.prisma-workflow-queue-panel .executive-escalation-card:first-child {
  border-top: 0;
}

.prisma-workflow-queue-panel .executive-escalation-card:hover {
  background: var(--prisma-surface-subtle);
}

.prisma-workflow-queue-panel .executive-escalation-card-head {
  gap: 10px;
}

.prisma-workflow-queue-panel .executive-escalation-card-head b {
  color: var(--prisma-text-strong);
  font-size: 11px;
}

.prisma-workflow-queue-panel .executive-escalation-card-head small,
.prisma-workflow-queue-panel .executive-escalation-card-head time {
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
}

.prisma-workflow-queue-panel .executive-escalation-card>p {
  color: var(--prisma-text-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.prisma-workflow-queue-panel .executive-escalation-meta {
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 9px;
  border-top-color: var(--prisma-border-subtle);
}

.prisma-workflow-queue-panel .executive-escalation-meta span {
  color: var(--prisma-text-muted);
  font-size: 8.5px;
}

.prisma-workflow-queue-panel .executive-escalation-meta b {
  color: var(--prisma-text);
}

.prisma-workflow-queue-panel .workflow-next-action {
  background: var(--prisma-surface-subtle);
  border-color: var(--prisma-border-subtle);
}

.prisma-escalation-workspace .executive-audit-summary {
  overflow: hidden;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-control);
}

.prisma-escalation-workspace .executive-audit-summary>div {
  min-height: 68px;
  border-color: var(--prisma-border-subtle);
  background: var(--prisma-surface);
}

.prisma-escalation-workspace .executive-audit-summary span {
  color: var(--prisma-text-subtle);
  font-size: 8px;
}

.prisma-escalation-workspace .executive-audit-summary strong {
  color: var(--prisma-text-strong);
  font-size: 10px;
}

/* Unit/PIC diagnostic tables ---------------------------------------------------- */
.prisma-company-diagnostic .company-detail-unit-table,
.prisma-company-diagnostic .management-pic-table,
.prisma-company-diagnostic .company-detail-timeline-list,
.prisma-company-diagnostic .management-work-list {
  overflow: hidden;
  margin: 0 14px 14px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface);
}

.prisma-company-diagnostic .company-detail-unit-head,
.prisma-company-diagnostic .management-pic-head {
  min-height: 34px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--prisma-border-subtle);
  border-radius: 0;
  background: var(--prisma-surface-subtle);
  color: var(--prisma-text-subtle);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .04em;

}

.prisma-company-diagnostic .company-detail-unit-row,
.prisma-company-diagnostic .management-pic-row,
.prisma-company-diagnostic .company-detail-timeline-row,
.prisma-company-diagnostic .management-work-row {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--prisma-border-subtle);
  border-radius: 0;
  background: var(--prisma-surface);
}

.prisma-company-diagnostic .company-detail-unit-row:first-child,
.prisma-company-diagnostic .management-pic-row:first-child,
.prisma-company-diagnostic .company-detail-timeline-row:first-child,
.prisma-company-diagnostic .management-work-row:first-child {
  border-top: 0;
}

.prisma-company-diagnostic .company-detail-unit-row:hover,
.prisma-company-diagnostic .management-pic-row:hover,
.prisma-company-diagnostic .company-detail-timeline-row:hover,
.prisma-company-diagnostic .management-work-row:hover {
  background: var(--prisma-surface-subtle);
}

.prisma-company-diagnostic .management-deadline-grid>div {
  min-height: 82px;
  border-color: var(--prisma-border);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-surface);
}

.prisma-company-diagnostic .management-deadline-grid span {
  color: var(--prisma-text-muted);
  font-size: 9px;
}

.prisma-company-diagnostic .management-deadline-grid strong {
  color: var(--prisma-text-strong);
  font-size: 20px;
}

.prisma-company-diagnostic .management-deadline-grid small {
  color: var(--prisma-text-subtle);
  font-size: 8px;
}

/* Legacy operational records: normalize cards into dense enterprise rows without
   changing routes/actions or source-specific permission checks. ---------------- */
.prisma-monitoring-record.card {
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-panel);
  background: var(--prisma-surface);
  box-shadow: none;
}

.prisma-monitoring-record.card:hover {
  border-color: var(--prisma-border-strong);
  box-shadow: var(--prisma-shadow-xs);
}

.prisma-monitoring-record .top {
  gap: 14px;
}

.prisma-monitoring-record .title {
  color: var(--prisma-text-strong);
  font-size: 12px;
  line-height: 1.4;
}

.prisma-monitoring-record .meta {
  color: var(--prisma-text-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.prisma-monitoring-record .badge {
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 750;
}

.prisma-monitoring-record .progress-row {
  margin-top: 11px;
}

.prisma-monitoring-record .progress-bar-bg {
  height: 6px;
  background: var(--prisma-neutral-bg);
}

.prisma-monitoring-record .progress-label {
  min-width: 40px;
  color: var(--prisma-text);
  font-size: 10px;
  font-weight: 750;
}

.prisma-monitoring-record .card-actions {
  gap: 6px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--prisma-border-subtle);
}

.prisma-monitoring-record .card-actions .btn {
  min-height: 30px;
  padding: 6px 9px;
  border-radius: var(--prisma-radius-control);
  font-size: 9px;
}

.prisma-budget-record.card {
  border-left: 3px solid var(--prisma-primary);
}

/* Shared table behavior: stable focus and horizontal containment. */
.prisma-monitoring-workspace a:focus-visible,
.prisma-monitoring-workspace button:focus-visible,
.prisma-monitoring-workspace select:focus-visible,
.prisma-company-diagnostic .company-detail-unit-row:focus-visible,
.prisma-company-diagnostic .management-pic-row:focus-visible,
.prisma-monitoring-record a:focus-visible,
.prisma-monitoring-record button:focus-visible {
  outline: 2px solid var(--prisma-primary);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .prisma-timeline-workspace .timeline-filterbar {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .prisma-timeline-workspace .timeline-filter-copy {
    flex: 1 1 100%;
  }

  .prisma-timeline-workspace .timeline-buckets {
    overflow-x: auto;
  }

  .prisma-timeline-workspace .timeline-bucket {
    min-width: 118px;
    flex: 1 0 118px;
  }

  .prisma-escalation-workspace .workflow-filters {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {

  .prisma-timeline-workspace .timeline-hero,
  .prisma-escalation-workspace .executive-attention-page-head {
    padding: 16px;
  }

  .prisma-timeline-workspace .timeline-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .prisma-timeline-workspace .timeline-context-chip {
    width: 100%;
    min-width: 0;
  }

  .prisma-timeline-workspace .timeline-select {
    flex: 1 1 160px;
  }

  .prisma-timeline-workspace .timeline-select select {
    width: 100%;
    min-width: 0;
  }

  .prisma-timeline-workspace .timeline-deadline-row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px 11px 14px;
  }

  .prisma-timeline-workspace .timeline-datebox {
    min-width: 0;
  }

  .prisma-timeline-workspace .timeline-deadline-meta {
    grid-column: 2;
    justify-self: start;
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .prisma-timeline-workspace .timeline-deadline-meta span {
    margin: 0;
  }

  .prisma-timeline-workspace .timeline-deadline-meta i {
    display: none;
  }

  .prisma-escalation-workspace .workflow-decision-grid {
    grid-template-columns: 1fr;
  }

  .prisma-company-diagnostic .company-detail-unit-table,
  .prisma-company-diagnostic .management-pic-table,
  .prisma-company-diagnostic .company-detail-timeline-list,
  .prisma-company-diagnostic .management-work-list,
  .prisma-company-diagnostic .company-detail-unit-head,
  .prisma-company-diagnostic .management-pic-head {
    margin-left: 10px;
    margin-right: 10px;
  }

  .prisma-monitoring-record.card {
    padding: 12px;
  }
}

@media (max-width: 520px) {

  .prisma-timeline-workspace .timeline-hero h2,
  .prisma-escalation-workspace .executive-attention-page-head h2 {
    font-size: 20px;
  }

  .prisma-timeline-workspace .timeline-filterbar {
    padding: 10px;
  }

  .prisma-timeline-workspace .timeline-select {
    flex-basis: 100%;
  }

  .prisma-timeline-workspace .timeline-deadline-row {
    grid-template-columns: 1fr;
  }

  .prisma-timeline-workspace .timeline-datebox {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 0 7px;
    border-right: 0;
    border-bottom: 1px solid var(--prisma-border-subtle);
  }

  .prisma-timeline-workspace .timeline-datebox span {
    margin-top: 0;
  }

  .prisma-timeline-workspace .timeline-deadline-meta {
    grid-column: 1;
  }

  .prisma-workflow-queue-panel .executive-escalation-card {
    padding: 12px;
  }

  .prisma-monitoring-record .top {
    align-items: flex-start;
  }

  .prisma-monitoring-record .card-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .prisma-monitoring-record .card-actions .btn {
    flex: 0 0 auto;
  }
}

/* ==========================================================
   PRISMA Visual foundation — FORMS, FILTERS & INTERACTION NORMALIZATION
   Incremental interaction layer. Existing routes, form actions,
   permissions, query contracts and business logic remain intact.
   ========================================================== */

/* Shared form rhythm */
.field {
  margin-bottom: var(--prisma-space-4);
}

.field label,
.prisma-field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--prisma-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.field label small,
.prisma-field-help {
  display: block;
  margin-top: 4px;
  color: var(--prisma-text-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

/* Global controls — intentionally scoped to form controls rather than
   replacing route/page-specific structures. */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select,
.field textarea,
.prisma-filterbar input:not([type="checkbox"]):not([type="radio"]),
.prisma-filterbar select,
.prisma-filterbar textarea,
.timeline-filterbar input,
.timeline-filterbar select,
.workflow-filters input,
.workflow-filters select,
.workflow-filters textarea,
.company-detail-context-actions select,
.executive-owner-form select,
.executive-escalation-actions input,
.executive-escalation-actions select,
.executive-escalation-actions textarea,
.executive-escalation-candidates input,
.executive-escalation-candidates select,
.executive-escalation-candidates textarea {
  min-height: var(--prisma-control-height);
  border: 1px solid var(--prisma-border-strong);
  border-radius: var(--prisma-radius-control);
  background: var(--prisma-control-bg);
  color: var(--prisma-text-strong);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--prisma-shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.field select,
.field textarea {
  width: 100%;
  padding: 8px 11px;
}

.field textarea,
.executive-escalation-actions textarea,
.executive-escalation-candidates textarea {
  min-height: 84px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--prisma-control-placeholder);
  opacity: 1;
}

.field input:hover:not(:disabled):not([readonly]),
.field select:hover:not(:disabled),
.field textarea:hover:not(:disabled):not([readonly]),
.prisma-filterbar input:hover:not(:disabled),
.prisma-filterbar select:hover:not(:disabled),
.timeline-filterbar select:hover:not(:disabled),
.workflow-filters select:hover:not(:disabled),
.company-detail-context-actions select:hover:not(:disabled),
.executive-owner-form select:hover:not(:disabled) {
  border-color: #b7c0cc;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.prisma-filterbar input:focus,
.prisma-filterbar select:focus,
.prisma-filterbar textarea:focus,
.timeline-filterbar input:focus,
.timeline-filterbar select:focus,
.workflow-filters input:focus,
.workflow-filters select:focus,
.workflow-filters textarea:focus,
.company-detail-context-actions select:focus,
.executive-owner-form select:focus,
.executive-escalation-actions input:focus,
.executive-escalation-actions select:focus,
.executive-escalation-actions textarea:focus,
.executive-escalation-candidates input:focus,
.executive-escalation-candidates select:focus,
.executive-escalation-candidates textarea:focus {
  outline: none;
  border-color: var(--prisma-primary);
  box-shadow: var(--prisma-focus-ring);
}

input:disabled,
select:disabled,
textarea:disabled,
input[readonly],
textarea[readonly] {
  cursor: not-allowed;
  background: var(--prisma-control-disabled-bg) !important;
  color: var(--prisma-text-muted) !important;
  border-color: var(--prisma-border) !important;
  box-shadow: none !important;
  opacity: 1;
}

/* Selects keep a predictable compact enterprise treatment. */
.field select,
.prisma-filterbar select,
.timeline-filterbar select,
.workflow-filters select,
.company-detail-context-actions select,
.executive-owner-form select {
  cursor: pointer;
}

/* Checkbox/radio interaction */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--prisma-primary);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
input[type="range"]:focus-visible {
  outline: 2px solid var(--prisma-primary);
  outline-offset: 3px;
}

/* Filter surfaces */
.prisma-filterbar,
.timeline-filterbar,
.workflow-filters,
.company-detail-context-actions {
  border-color: var(--prisma-border);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-xs);
}

.timeline-select span,
.workflow-filter-group>span,
.workflow-owner-filter label,
.company-detail-context-actions label {
  color: var(--prisma-text-muted);
  font-weight: 700;
  letter-spacing: .035em;
}

/* Buttons */
button,
.btn {
  min-height: var(--prisma-control-height);
  border-radius: var(--prisma-radius-control);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease,
    box-shadow .15s ease, transform .15s ease;
}

.btn-primary {
  background: var(--prisma-primary);
  color: #fff;
  border: 1px solid var(--prisma-primary);
  box-shadow: var(--prisma-shadow-xs);
}

.btn-primary:hover:not(:disabled) {
  background: var(--prisma-primary-hover);
  border-color: var(--prisma-primary-hover);
  transform: none;
  box-shadow: 0 2px 6px rgba(36, 91, 145, .16);
}

.btn-ghost {
  background: var(--prisma-surface);
  color: var(--prisma-text);
  border: 1px solid var(--prisma-border-strong);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--prisma-surface-subtle);
  border-color: #b7c0cc;
  color: var(--prisma-text-strong);
}

.btn-danger {
  color: var(--prisma-critical) !important;
  border-color: var(--prisma-critical-border) !important;
  background: var(--prisma-surface) !important;
}

.btn-danger:hover:not(:disabled) {
  background: var(--prisma-critical-bg) !important;
  border-color: #f5aaa5 !important;
  color: #912018 !important;
}

button:disabled,
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  transform: none !important;
  box-shadow: none !important;
}

button:focus-visible,
.btn:focus-visible,
a.btn:focus-visible,
.tab-btn:focus-visible,
.tab-manage-btn:focus-visible {
  outline: none;
  box-shadow: var(--prisma-focus-ring);
}

.btn-danger:focus-visible {
  box-shadow: var(--prisma-danger-focus-ring);
}

/* Small actions remain dense without becoming hard to target. */
.btn-sm,
.card-actions .btn,
.update-actions .btn,
.act-btn {
  min-height: var(--prisma-control-height-sm);
}

/* Modal/dialog consistency */
.modal-overlay {
  background: rgba(16, 24, 40, .48);
  backdrop-filter: blur(2px);
  padding: var(--prisma-space-4);
}

.modal {
  border: 1px solid var(--prisma-border);
  border-radius: var(--prisma-radius-modal);
  background: var(--prisma-surface);
  box-shadow: var(--prisma-shadow-overlay);
  padding: 24px;
}

.modal h2 {
  margin: 0 0 18px;
  color: var(--prisma-text-strong);
  font-size: 18px;
  line-height: 1.3;
}

.modal-actions {
  gap: var(--prisma-space-2);
  margin-top: var(--prisma-space-5);
  padding-top: var(--prisma-space-4);
  border-top-color: var(--prisma-border-subtle);
}

/* Validation states leverage native HTML validation without changing forms. */
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--prisma-critical);
  box-shadow: var(--prisma-danger-focus-ring);
}

.field .error-msg,
.field-error {
  margin-top: 6px;
  color: var(--prisma-critical);
  font-size: 11px;
  line-height: 1.4;
}

.error-msg {
  border: 1px solid var(--prisma-critical-border);
  background: var(--prisma-critical-bg);
  color: var(--prisma-critical);
}

/* Interactive rows should expose keyboard state as clearly as hover state. */
.timeline-bucket:focus-visible,
.workflow-filter-group a:focus-visible,
.company-comparison-health-filter:focus-visible,
.company-detail-unit-row:focus-visible,
.management-pic-row:focus-visible,
.executive-attention-row:focus-visible,
.card a:focus-visible,
.update-item a:focus-visible,
.profile-item:focus-visible,
.notif-item:focus-visible {
  outline: 2px solid var(--prisma-primary);
  outline-offset: -2px;
}

/* Search/date/number inputs keep enough room for native affordances. */
input[type="search"] {
  appearance: auto;
}

input[type="date"],
input[type="number"] {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 10px;
  }

  .modal {
    max-width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px 16px;
  }

  .modal-actions {
    position: sticky;
    bottom: -20px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 12px 16px 16px;
    background: var(--prisma-surface);
  }

  .modal-actions .btn,
  .modal-actions button {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal-actions .btn,
  .modal-actions button,
  .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .field select,
  .field textarea {
    width: 100%;
  }
}

/* Visual foundation — Domain Pages: executive domain workspace refinement */
.prisma-domain-workspace .prisma-page-context {
  margin-bottom: 4px
}

.domain-landing {
  gap: 20px;
  margin-top: 10px
}

.domain-hero.prisma-domain-overview {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border-color: var(--prisma-border, #e2e8f0);
  border-radius: var(--prisma-radius-lg, 14px);
  background: var(--prisma-surface, #fff);
  box-shadow: var(--prisma-shadow-sm, 0 1px 2px rgba(15, 23, 42, .04))
}

.domain-hero.prisma-domain-overview:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--prisma-primary, #17365d)
}

.domain-eyebrow {
  font-size: 11px;
  color: var(--prisma-text-muted, #64748b);
  margin-bottom: 8px
}

.domain-hero h2 {
  font-size: 22px;
  color: var(--prisma-text, #0f172a);
  margin-bottom: 8px
}

.domain-hero p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--prisma-text-secondary, #64748b)
}

.prisma-domain-kpis {
  min-width: 330px;
  gap: 8px
}

.prisma-domain-kpis span {
  min-width: 102px;
  padding: 11px 12px;
  border-color: var(--prisma-border-soft, #e8edf4);
  border-radius: 10px;
  background: var(--prisma-bg, #f8fafc);
  font-size: 10px;
  color: var(--prisma-text-muted, #64748b)
}

.prisma-domain-kpis strong {
  font-size: 18px;
  line-height: 1.15;
  color: var(--prisma-text, #0f172a);
  font-variant-numeric: tabular-nums
}

.prisma-domain-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 2px 1px -6px
}

.prisma-domain-section-head>div {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.prisma-domain-section-head span {
  font-size: 10px;
  font-weight: 800;
  color: var(--prisma-text-muted, #64748b)
}

.prisma-domain-section-head strong {
  font-size: 14px;
  color: var(--prisma-text, #0f172a)
}

.prisma-domain-section-head small {
  max-width: 520px;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
  color: var(--prisma-text-muted, #64748b)
}

.prisma-domain-modules {
  gap: 12px
}

.prisma-domain-module-card {
  min-height: 174px;
  padding: 18px 19px;
  border-color: var(--prisma-border, #dfe5ee);
  border-radius: var(--prisma-radius-lg, 14px);
  box-shadow: none
}

.prisma-domain-module-card:hover {
  transform: none;
  border-color: var(--prisma-border-strong, #b8c5d8);
  box-shadow: var(--prisma-shadow-md, 0 8px 24px rgba(15, 23, 42, .07))
}

.prisma-domain-module-card:focus-visible {
  outline: 3px solid var(--prisma-focus-ring, rgba(37, 99, 235, .18));
  outline-offset: 2px;
  border-color: var(--prisma-primary, #17365d)
}

.prisma-domain-module-card .domain-card-kicker {
  font-size: 10px;
  letter-spacing: .09em;
  color: var(--prisma-text-muted, #64748b)
}

.prisma-domain-module-card .domain-card-body h3 {
  font-size: 15px;
  color: var(--prisma-text, #111827)
}

.prisma-domain-module-card .domain-card-body p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--prisma-text-secondary, #64748b);
  min-height: 38px
}

.prisma-domain-module-card .domain-card-stats {
  gap: 6px
}

.prisma-domain-module-card .domain-card-stats span {
  font-size: 11px;
  padding: 5px 8px;
  background: var(--prisma-bg, #f8fafc);
  border-color: var(--prisma-border-soft, #edf1f5)
}

.domain-note {
  font-size: 11px;
  color: var(--prisma-text-muted, #64748b);
  padding: 1px 3px
}

.domain-attention-strip {
  border-color: var(--prisma-border, #e2e8f0);
  border-radius: var(--prisma-radius-md, 12px);
  background: var(--prisma-surface, #fff);
  padding: 17px 18px
}

.domain-attention-label {
  font-size: 10px;
  color: var(--prisma-text-muted, #64748b)
}

.domain-attention-strip strong {
  font-size: 13px;
  color: var(--prisma-text, #334155)
}

.domain-progress-track {
  height: 8px;
  background: var(--prisma-bg-subtle, #edf1f5)
}

.domain-progress-track span {
  background: var(--prisma-success, #65a30d)
}

@media(max-width:1024px) {
  .domain-hero.prisma-domain-overview {
    flex-direction: column
  }

  .prisma-domain-kpis {
    min-width: 0;
    width: 100%;
    justify-content: flex-start
  }

  .prisma-domain-section-head {
    align-items: flex-start
  }

  .prisma-domain-section-head small {
    text-align: left
  }

  .domain-module-grid,
  .domain-module-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:768px) {
  .domain-landing {
    gap: 16px
  }

  .domain-hero.prisma-domain-overview {
    padding: 20px
  }

  .prisma-domain-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .prisma-domain-kpis span {
    min-width: 0
  }

  .prisma-domain-section-head {
    display: block
  }

  .prisma-domain-section-head small {
    display: block;
    margin-top: 5px
  }

  .domain-module-grid,
  .domain-module-grid.two,
  .domain-module-grid.single {
    grid-template-columns: 1fr
  }

  .domain-attention-strip {
    grid-template-columns: 1fr;
    gap: 10px
  }
}

@media(max-width:480px) {
  .prisma-domain-kpis {
    grid-template-columns: 1fr
  }

  .prisma-domain-module-card {
    min-height: 0;
    padding: 16px
  }

  .domain-hero h2 {
    font-size: 20px
  }
}

/* ========================================================================== */
/* PRISMA Visual foundation — Administration Workspace                                   */
/* ========================================================================== */
.prisma-admin-header {
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--prisma-border, #e2e8f0);
}

.prisma-admin-heading {
  min-width: 0;
}

.prisma-admin-heading .back-link {
  margin-bottom: 12px;
}

.prisma-admin-eyebrow {
  margin-bottom: 5px;
  color: var(--prisma-text-muted, #64748b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;

}

.prisma-admin-heading h1 {
  margin: 0;
  color: var(--prisma-text, #0f172a);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.prisma-admin-heading>p {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--prisma-text-muted, #64748b);
  font-size: 13px;
  line-height: 1.6;
}

.prisma-admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--prisma-text-muted, #64748b);
  font-size: 12px;
}

.prisma-admin-summary strong {
  color: var(--prisma-text, #0f172a);
  font-weight: 700;
}

.prisma-admin-tabs.admin-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 22px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--prisma-border, #e2e8f0);
  border-radius: 12px;
  background: var(--prisma-surface, #fff);
  scrollbar-width: thin;
}

.prisma-admin-tabs .admin-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--prisma-text-muted, #64748b);
  font-size: 12px;
  font-weight: 650;
  box-shadow: none;
}

.prisma-admin-tabs .admin-tab:hover {
  background: var(--prisma-bg, #f8fafc);
  color: var(--prisma-text, #0f172a);
}

.prisma-admin-tabs .admin-tab.active {
  background: color-mix(in srgb, var(--prisma-primary, #1e3a5f) 8%, white);
  color: var(--prisma-primary, #1e3a5f);
  box-shadow: none;
}

.prisma-admin-tabs .admin-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--prisma-primary, #1e3a5f);
}

.admin-tab-count,
.prisma-admin-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--prisma-bg, #f1f5f9);
  color: var(--prisma-text-muted, #64748b);
  font-size: 10px;
  font-weight: 700;
}

.prisma-admin-tabs .admin-tab.active .admin-tab-count,
.prisma-admin-subtab.active .prisma-admin-subtab-count {
  background: rgba(30, 58, 95, .10);
  color: inherit;
}

.prisma-admin-section {
  min-width: 0;
}

.prisma-admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.prisma-admin-section-head h2 {
  margin: 0;
  color: var(--prisma-text, #0f172a);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.prisma-admin-section-head p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--prisma-text-muted, #64748b);
  font-size: 12px;
  line-height: 1.55;
}

.prisma-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.prisma-admin-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.prisma-admin-subtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--prisma-border, #e2e8f0);
  border-radius: 8px;
  background: var(--prisma-surface, #fff);
  color: var(--prisma-text-muted, #64748b);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.prisma-admin-subtab:hover {
  border-color: #cbd5e1;
  color: var(--prisma-text, #0f172a);
}

.prisma-admin-subtab.active {
  border-color: color-mix(in srgb, var(--prisma-primary, #1e3a5f) 22%, #e2e8f0);
  background: color-mix(in srgb, var(--prisma-primary, #1e3a5f) 6%, white);
  color: var(--prisma-primary, #1e3a5f);
}

/* Users behave as compact administration records, not dashboard cards. */
.prisma-admin-users .user-card {
  padding: 15px 16px;
  margin-bottom: 9px;
  border: 1px solid var(--prisma-border, #e2e8f0);
  border-radius: 10px;
  box-shadow: none;
}

.prisma-admin-users .user-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.prisma-admin-users .user-card-top {
  margin-bottom: 10px;
}

.prisma-admin-users .user-avatar,
.prisma-admin-users .user-avatar img {
  width: 38px;
  height: 38px;
}

.prisma-admin-users .user-name-row {
  font-size: 14px;
}

.prisma-admin-users .user-meta {
  font-size: 12px;
  line-height: 1.6;
}

.prisma-admin-users .user-actions {
  gap: 12px;
  padding-top: 11px;
  border-top-color: var(--prisma-border, #e2e8f0);
  flex-direction: column;
  align-items: stretch;
}

.prisma-admin-users .user-actions-block {
  gap: 7px;
}

.prisma-admin-users .user-actions-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--prisma-text-muted, #64748b);
}

.prisma-admin-users .unit-input {
  min-height: 34px;
  background: var(--prisma-surface, #fff);
}

/* Shared dense administration tables */
.prisma-admin-section .coa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--prisma-border, #e2e8f0);
  border-radius: 10px;
  background: var(--prisma-surface, #fff);
}

.prisma-admin-section .coa-table th {
  padding: 9px 12px;
  background: var(--prisma-bg, #f8fafc);
  color: var(--prisma-text-muted, #64748b);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .05em;

  border-bottom: 1px solid var(--prisma-border, #e2e8f0);
}

.prisma-admin-section .coa-table td {
  padding: 10px 12px;
  font-size: 12px;
  vertical-align: middle;
  border-bottom: 1px solid #edf1f5;
}

.prisma-admin-section .coa-table tbody tr:last-child td {
  border-bottom: 0;
}

.prisma-admin-section .coa-table tbody tr:hover td {
  background: #fbfcfe;
}

.prisma-admin-section .coa-section-title {
  margin: 18px 0 8px;
  color: var(--prisma-text, #0f172a);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}

.prisma-admin-section .act-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

/* Legacy admin settings cards normalized without changing their form behavior. */
.prisma-admin-appearance>div[style*="background:#f9fafb"],
.prisma-admin-integrations>div>div[style*="background:#fff"] {
  border-color: var(--prisma-border, #e2e8f0) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.prisma-integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  align-items: start;
}

.prisma-integration-grid>div {
  min-width: 0;
  margin-bottom: 0 !important;
}

.prisma-integration-info {
  grid-column: 1 / -1;
  order: -1;
  overflow-wrap: anywhere;
}

.prisma-integration-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}

.prisma-integration-heading svg {
  flex-shrink: 0;
}

.prisma-integration-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
}

.prisma-integration-status.is-active {
  background: #d1fae5;
  color: #065f46;
}

.prisma-integration-description {
  font-size: 12px;
  color: #8b8fa8;
  margin: 0 0 18px;
}

.prisma-integration-grid label[for] {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.prisma-integration-grid input:is([type="text"], [type="password"], [type="url"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px !important;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: 13px;
  font-family: monospace;
  background: #fff;
}

.prisma-integration-grid small {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.prisma-integration-secret-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 800px) {
  .prisma-integration-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Focus must remain visible for administration actions. */
.prisma-admin-tabs a:focus-visible,
.prisma-admin-subtab:focus-visible,
.prisma-admin-section .act-btn:focus-visible,
.prisma-admin-section .btn:focus-visible {
  outline: 3px solid rgba(59, 130, 246, .22);
  outline-offset: 2px;
}

.sb-progress-wrap {
  width: 100%;
  min-width: 0;
}

.sb-progress-track {
  height: 6px;
  width: 100%;
  background: #e8eaf0;
  border-radius: 999px;
  overflow: hidden;
}

.sb-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}

@media (max-width: 900px) {
  .prisma-admin-header {
    align-items: stretch;
  }

  .prisma-admin-header .header-right {
    align-self: flex-start;
  }

  .prisma-admin-section .coa-table {
    min-width: 680px;
  }

  .prisma-admin-section:has(.coa-table) {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {

  .main,
  .page-content,
  .page-shell,
  .prisma-main,
  .prisma-content {
    min-width: 0;
  }

  body,
  .prisma-app {
    overflow-x: hidden;
  }

  .prisma-admin-header {
    display: block;
  }

  .prisma-admin-header .header-right {
    margin-top: 14px;
  }

  .prisma-admin-summary {
    gap: 6px 12px;
  }

  .prisma-admin-tabs.admin-tabs {
    border-radius: 10px;
  }

  .prisma-admin-section-head {
    flex-direction: column;
  }

  .prisma-admin-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .prisma-admin-users .user-card {
    padding: 13px;
  }

  .prisma-admin-users .user-actions {
    align-items: stretch;
  }

  .prisma-admin-users .unit-form,
  .prisma-admin-users .user-actions form {
    max-width: 100%;
  }

  .statsbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .sb-item {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas:
      "icon body"
      "meta meta"
      "extra extra";
    align-items: start;
    gap: 10px;
    padding: 14px;
  }

  .sb-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .sb-body {
    grid-area: body;
    min-width: 0;
    gap: 4px;
  }

  .sb-label {
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .sb-value {
    font-size: 18px;
    line-height: 1.1;
  }

  .sb-pills {
    grid-area: meta;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .sb-pill {
    font-size: 10px;
    padding: 3px 8px;
    max-width: 100%;
    white-space: nowrap;
  }

  .sb-kpi-note {
    white-space: normal;
    line-height: 1.35;
  }

  .sb-progress-wrap {
    grid-area: extra;
    width: 100%;
  }

  .sb-progress-track {
    width: 100%;
  }
}

/* ========================================================================== */
/* PRISMA Visual foundation — Responsive, Accessibility & Final QA                       */
/* ========================================================================== */
.prisma-skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  z-index: 10050;
  padding: 9px 12px;
  border: 1px solid var(--prisma-border-strong, #b8c5d8);
  border-radius: 8px;
  background: var(--prisma-surface, #fff);
  color: var(--prisma-primary, #17365d);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--prisma-shadow-overlay, 0 12px 30px rgba(15, 23, 42, .14));
  transform: translateY(-160%);
  transition: transform .15s ease
}

.prisma-skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--prisma-focus-ring, rgba(37, 99, 235, .22));
  outline-offset: 2px
}

#main-content:focus {
  outline: none
}

.prisma-app a:focus-visible,
.prisma-admin-main a:focus-visible,
.prisma-app button:focus-visible,
.prisma-admin-main button:focus-visible,
.prisma-app input:focus-visible,
.prisma-admin-main input:focus-visible,
.prisma-app select:focus-visible,
.prisma-admin-main select:focus-visible,
.prisma-app textarea:focus-visible,
.prisma-admin-main textarea:focus-visible {
  outline: 3px solid var(--prisma-focus-ring, rgba(37, 99, 235, .24));
  outline-offset: 2px
}

.prisma-sidebar a:focus-visible,
.prisma-sidebar button:focus-visible {
  outline-color: rgba(160, 197, 235, .75)
}

.prisma-icon-btn,
.prisma-menu-toggle {
  min-width: 36px;
  min-height: 36px
}

.prisma-nav-item,
.prisma-nav-domain-title,
.prisma-nav-child {
  position: relative
}

.prisma-nav-item[aria-current="page"],
.prisma-nav-child[aria-current="page"] {
  font-weight: 700
}

.notif-dropdown,
.profile-dropdown,
.prisma-calendar-dropdown {
  max-height: min(72vh, 620px);
  overscroll-behavior: contain
}

.notif-list,
.prisma-calendar-dropdown-body {
  max-height: min(58vh, 480px);
  overflow-y: auto
}

.prisma-main,
.prisma-admin-main,
.prisma-admin-section,
.prisma-domain-workspace {
  overflow-wrap: anywhere
}

.prisma-main table,
.prisma-admin-main table {
  max-width: 100%
}

.prisma-admin-main {
  min-width: 0
}

.prisma-executive-workspace .management-summary-route-grid span small,
.prisma-executive-workspace .management-summary-domain-strip small,
.prisma-executive-workspace .management-summary-compact-list>a>small,
.prisma-executive-workspace .management-summary-date,
.prisma-executive-workspace .management-summary-owner-strip a small,
.prisma-monitoring-workspace small,
.prisma-domain-workspace small {
  line-height: 1.45
}

.badge,
.executive-severity,
.prisma-status-chip,
.management-focus,
.timeline-source {
  border-width: 1px;
  border-style: solid
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto !important
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important
  }
}

@media(max-width:1024px) {
  .prisma-main {
    padding-left: 18px;
    padding-right: 18px
  }

  .prisma-page-context,
  .prisma-page-title-row {
    min-width: 0
  }

  .prisma-page-context h1,
  .prisma-page-title-row h1 {
    overflow-wrap: anywhere
  }

  .prisma-executive-workspace .executive-section-heading,
  .prisma-executive-workspace .executive-attention-page-head,
  .prisma-executive-workspace .executive-company-page-head,
  .prisma-executive-workspace .company-comparison-head {
    align-items: flex-start
  }

  .prisma-admin-tabs.admin-tabs {
    scroll-snap-type: x proximity
  }

  .prisma-admin-tabs .admin-tab {
    scroll-snap-align: start
  }
}

@media(max-width:820px) {
  body:has(.prisma-app.mobile-nav-open) {
    overflow: hidden
  }

  .prisma-menu-toggle,
  .prisma-icon-btn {
    min-width: 40px;
    min-height: 40px
  }

  .prisma-sidebar {
    overscroll-behavior: contain
  }

  .prisma-nav-item,
  .prisma-nav-domain-title {
    min-height: 42px
  }

  .prisma-nav-child {
    min-height: 38px
  }

  .prisma-mobile-context-control,
  .prisma-mobile-context-static {
    min-height: 40px
  }
}

@media(max-width:768px) {
  .prisma-main {
    padding-left: 14px;
    padding-right: 14px
  }

  .prisma-page-context {
    margin-bottom: 16px
  }

  .prisma-breadcrumb {
    font-size: 11px;
    line-height: 1.45
  }

  .prisma-page-context p {
    font-size: 12px
  }

  .prisma-mobile-context small {
    font-size: 8px
  }

  .prisma-mobile-context select,
  .prisma-mobile-context-static strong {
    font-size: 11px
  }

  .prisma-company-comparison .company-comparison-table,
  .prisma-timeline-workspace .timeline-buckets,
  .prisma-monitoring-record .card-actions,
  .prisma-admin-tabs.admin-tabs,
  .prisma-admin-section:has(.coa-table) {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain
  }

  .prisma-executive-workspace .executive-attention-stat strong,
  .prisma-executive-workspace .executive-company-kpis>div>strong,
  .prisma-executive-workspace .company-comparison-health-filter>strong {
    font-size: 24px
  }
}

@media(max-width:390px) {
  .prisma-app .prisma-topbar {
    padding-left: 8px;
    padding-right: 8px
  }

  .prisma-brand-copy strong {
    max-width: 72px
  }

  .prisma-topbar-actions {
    gap: 1px
  }

  .prisma-mobile-context {
    padding-left: 8px;
    padding-right: 8px
  }

  .prisma-mobile-context-static,
  .prisma-mobile-context-control {
    padding-left: 7px;
    padding-right: 7px
  }

  .prisma-main {
    padding-left: 8px;
    padding-right: 8px
  }
}

@media(forced-colors:active) {

  .prisma-nav-item.active::before,
  .prisma-nav-child.active::before,
  .executive-attention-stat::before,
  .company-comparison-health-filter::before {
    background: Highlight
  }

  .prisma-skip-link,
  .prisma-icon-btn,
  .prisma-menu-toggle,
  .prisma-nav-item,
  .prisma-nav-child,
  .btn,
  .badge {
    forced-color-adjust: auto
  }
}


/* Visual foundation revision — Direksi executive read-only dashboard */
.direksi-executive-board {
  display: grid;
  gap: 14px;
  margin-bottom: 18px
}

.direksi-executive-hero {
  background: #152c3c;
  color: #fff;
  border: 1px solid #152c3c;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px
}

.direksi-executive-hero>div:first-child {
  min-width: 0
}

.direksi-executive-hero span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  color: #aebdca
}

.direksi-executive-hero h2 {
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.2;
  color: #fff
}

.direksi-executive-hero p {
  margin: 0;
  max-width: 760px;
  color: #d4dde4;
  font-size: 13px;
  line-height: 1.55
}

.direksi-executive-scope {
  display: flex;
  gap: 12px;
  flex: 0 0 auto
}

.direksi-executive-scope>span {
  min-width: 132px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-left: 14px
}

.direksi-executive-scope small {
  display: block;
  color: #9fb0bd;
  font-size: 9px;
  letter-spacing: .1em
}

.direksi-executive-scope strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 14px
}

.direksi-executive-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.direksi-executive-kpis>a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 10px;
  padding: 16px 17px;
  min-height: 94px
}

.direksi-executive-kpis small {
  display: block;
  color: #778997;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em
}

.direksi-executive-kpis strong {
  display: block;
  margin: 8px 0 3px;
  color: #172b3b;
  font-size: 26px;
  line-height: 1
}

.direksi-executive-kpis span {
  color: #6c7c88;
  font-size: 11px
}

.direksi-executive-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px
}

.direksi-executive-sections>a {
  display: flex;
  flex-direction: column;
  min-height: 138px;
  padding: 17px 18px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #dce3e8;
  border-radius: 10px
}

.direksi-executive-sections b {
  font-size: 9px;
  color: #84939e;
  letter-spacing: .12em
}

.direksi-executive-sections strong {
  margin: 9px 0 5px;
  font-size: 16px;
  color: #172b3b
}

.direksi-executive-sections span {
  font-size: 12px;
  line-height: 1.5;
  color: #657682
}

.direksi-executive-sections em {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  color: #274f6d
}

.direksi-readonly-note {
  font-size: 11px;
  color: #647783
}

.direksi-readonly-note span {
  display: inline-block;
  margin-right: 7px;
  border: 1px solid #b7c5cf;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #354e60;
  background: #f5f8fa
}

@media(max-width:1100px) {
  .direksi-executive-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .direksi-executive-hero {
    align-items: flex-start;
    flex-direction: column
  }

  .direksi-executive-scope {
    width: 100%
  }

  .direksi-executive-scope>span {
    flex: 1
  }
}

@media(max-width:760px) {
  .direksi-executive-hero {
    padding: 19px 18px
  }

  .direksi-executive-hero h2 {
    font-size: 20px
  }

  .direksi-executive-scope {
    display: grid;
    grid-template-columns: 1fr 1fr
  }

  .direksi-executive-scope>span {
    min-width: 0
  }

  .direksi-executive-kpis {
    grid-template-columns: 1fr 1fr
  }

  .direksi-executive-sections {
    grid-template-columns: 1fr
  }

  .direksi-executive-kpis>a {
    min-height: 84px;
    padding: 14px
  }

  .direksi-executive-kpis strong {
    font-size: 22px
  }
}

@media(max-width:460px) {
  .direksi-executive-kpis {
    grid-template-columns: 1fr
  }

  .direksi-executive-scope {
    grid-template-columns: 1fr
  }
}

/* ========================================================================== */
/* Mobile experience — Mobile Navigation & Executive Shell                               */
/* Hybrid pattern: compact context + bottom primary nav + full drawer.        */
/* Business authorization and monitoring formulas intentionally unchanged.    */
/* ========================================================================== */
.prisma-mobile-bottom-nav,
.prisma-mobile-scope-trigger,
.prisma-mobile-scope-sheet,
.prisma-mobile-sheet-backdrop {
  display: none;
}

@media (max-width: 640px) {
  :root {
    --prisma-mobile-bottom-nav: 66px;
  }

  .prisma-app {
    --prisma-topbar: 56px;
    min-height: 100dvh;
  }

  .prisma-app .prisma-topbar {
    height: var(--prisma-topbar);
    padding: 0 10px;
    border-bottom-color: var(--prisma-border);
  }

  .prisma-menu-toggle {
    display: none;
  }

  .prisma-topbar-left {
    min-width: 0;
  }

  .prisma-brand {
    min-width: 0;
    gap: 7px;
  }

  .prisma-brand img {
    height: 26px;
    max-width: 84px;
  }

  .prisma-brand-copy strong {
    max-width: 118px;
    font-size: 11.5px;
    line-height: 1.15;
  }

  .prisma-icon-btn,
  .prisma-user-pill {
    min-width: 40px;
    min-height: 40px;
  }

  .prisma-mobile-context {
    top: var(--prisma-topbar);
    min-height: 50px;
    padding: 6px 10px;
    gap: 6px;
    box-shadow: 0 1px 0 var(--prisma-border);
  }

  .prisma-mobile-company-select {
    display: none;
  }

  .prisma-mobile-scope-trigger {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 5px 9px;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-control);
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text);
    font: inherit;
    text-align: left;
  }

  .prisma-mobile-scope-trigger span:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .prisma-mobile-scope-trigger small {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .07em;

  }

  .prisma-mobile-scope-trigger strong {
    overflow: hidden;
    color: var(--prisma-text);
    font-size: 10.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prisma-mobile-scope-trigger>span:last-child {
    flex: 0 0 auto;
    color: var(--prisma-text-subtle);
    font-size: 13px;
  }

  .prisma-mobile-year {
    flex: 0 0 96px;
  }

  .prisma-sidebar {
    top: calc(var(--prisma-topbar) + 50px);
    height: calc(100dvh - var(--prisma-topbar) - 50px - var(--prisma-mobile-bottom-nav));
    width: min(86vw, 316px);
    padding-bottom: 20px;
    z-index: 980;
  }

  .prisma-sidebar-backdrop {
    inset: calc(var(--prisma-topbar) + 50px) 0 var(--prisma-mobile-bottom-nav);
    z-index: 970;
  }

  .prisma-app.mobile-nav-open .prisma-sidebar-backdrop {
    display: block;
  }

  .prisma-main {
    padding: 14px 10px calc(var(--prisma-mobile-bottom-nav) + 22px + env(safe-area-inset-bottom));
  }

  .prisma-page-context {
    margin-bottom: 14px;
  }

  .prisma-breadcrumb {
    display: none;
  }

  .prisma-page-title-row {
    align-items: center;
    gap: 7px;
  }

  .prisma-page-context h1,
  .prisma-page-title-row h1 {
    font-size: 18px;
    line-height: 1.25;
  }

  .prisma-scope-mode {
    padding: 3px 6px;
    font-size: 7.5px;
    letter-spacing: .04em;
  }

  .prisma-page-context p {
    margin-top: 4px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .prisma-context-summary {
    margin-top: 7px;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .prisma-context-summary::-webkit-scrollbar {
    display: none;
  }

  .prisma-context-summary>span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    background: var(--prisma-surface);
  }

  .prisma-context-summary>i {
    display: none;
  }

  .prisma-context-summary strong {
    font-size: 9.5px;
  }

  .prisma-context-summary small {
    display: none;
  }

  .prisma-mobile-bottom-nav {
    position: fixed;
    z-index: 1100;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(var(--prisma-mobile-bottom-nav) + env(safe-area-inset-bottom));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--prisma-border);
    background: color-mix(in srgb, var(--prisma-surface) 96%, transparent);
    box-shadow: 0 -8px 24px rgba(16, 24, 40, .08);
    backdrop-filter: blur(14px);
  }

  .prisma-mobile-bottom-item {
    appearance: none;
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--prisma-text-subtle);
    font: inherit;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .prisma-mobile-bottom-item:hover,
  .prisma-mobile-bottom-item:active {
    background: var(--prisma-surface-subtle);
  }

  .prisma-mobile-bottom-item.active {
    color: var(--prisma-primary);
    background: color-mix(in srgb, var(--prisma-primary) 7%, var(--prisma-surface));
  }

  .prisma-mobile-bottom-item:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--prisma-primary) 45%, transparent);
    outline-offset: -2px;
  }

  .prisma-mobile-bottom-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .prisma-mobile-bottom-icon svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }

  .prisma-mobile-more-icon {
    gap: 2.5px;
  }

  .prisma-mobile-more-icon i {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: currentColor;
  }

  .prisma-mobile-sheet-backdrop {
    position: fixed;
    z-index: 1190;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, .42);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .prisma-mobile-sheet-backdrop[hidden] {
    display: none;
  }

  .prisma-mobile-sheet-backdrop.open {
    opacity: 1;
  }

  .prisma-mobile-scope-sheet {
    position: fixed;
    z-index: 1200;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: min(78dvh, 620px);
    padding-bottom: env(safe-area-inset-bottom);
    border: 1px solid var(--prisma-border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--prisma-surface);
    box-shadow: 0 -18px 48px rgba(16, 24, 40, .18);
    transform: translateY(102%);
    transition: transform .2s ease;
  }

  .prisma-mobile-scope-sheet[hidden] {
    display: none;
  }

  .prisma-mobile-scope-sheet.open {
    transform: translateY(0);
  }

  .prisma-mobile-sheet-handle {
    width: 40px;
    height: 4px;
    margin: 8px auto 2px;
    border-radius: 999px;
    background: var(--prisma-border-strong);
  }

  .prisma-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 11px;
    border-bottom: 1px solid var(--prisma-border);
  }

  .prisma-mobile-sheet-head small {
    color: var(--prisma-text-subtle);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;

  }

  .prisma-mobile-sheet-head h2 {
    margin: 2px 0 0;
    color: var(--prisma-text-strong);
    font-size: 17px;
    line-height: 1.25;
  }

  .prisma-mobile-sheet-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--prisma-border);
    border-radius: 50%;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-muted);
    font-size: 22px;
    line-height: 1;
  }

  .prisma-mobile-scope-list {
    min-height: 0;
    overflow-y: auto;
    padding: 6px 10px 10px;
    overscroll-behavior: contain;
  }

  .prisma-mobile-scope-option {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border: 0;
    border-bottom: 1px solid var(--prisma-border);
    background: transparent;
    color: var(--prisma-text);
    font: inherit;
    text-align: left;
  }

  .prisma-mobile-scope-option.active {
    border-radius: 10px;
    border-bottom-color: transparent;
    background: color-mix(in srgb, var(--prisma-primary) 7%, var(--prisma-surface));
  }

  .prisma-mobile-scope-option-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--prisma-border);
    border-radius: 9px;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-primary);
  }

  .prisma-mobile-scope-option-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
  }

  .prisma-mobile-scope-option>span:nth-child(2) {
    min-width: 0;
  }

  .prisma-mobile-scope-option strong,
  .prisma-mobile-scope-option small {
    display: block;
  }

  .prisma-mobile-scope-option strong {
    overflow: hidden;
    color: var(--prisma-text);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prisma-mobile-scope-option small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 9.5px;
  }

  .prisma-mobile-scope-option b {
    color: var(--prisma-primary);
    font-size: 13px;
  }

  .prisma-mobile-sheet-foot {
    padding: 10px 16px 12px;
    border-top: 1px solid var(--prisma-border);
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-subtle);
    font-size: 9px;
    line-height: 1.45;
  }

  body.prisma-mobile-sheet-open {
    overflow: hidden;
  }

  .profile-dropdown,
  .notif-dropdown,
  .prisma-calendar-dropdown {
    top: calc(var(--prisma-topbar) + 6px);
    bottom: calc(var(--prisma-mobile-bottom-nav) + 8px + env(safe-area-inset-bottom));
    max-height: none;
  }
}

@media (max-width: 390px) {
  .prisma-brand-copy strong {
    max-width: 84px;
  }

  .prisma-mobile-context {
    padding-left: 8px;
    padding-right: 8px;
  }

  .prisma-mobile-year {
    flex-basis: 150px;
  }

  .prisma-mobile-bottom-nav {
    padding-left: 4px;
    padding-right: 4px;
  }

  .prisma-mobile-bottom-item {
    font-size: 8.5px;
  }
}

/* ========================================================================== */
/* Mobile experience — Mobile Group Overview / Executive Attention                      */
/* Presentation-only layer; desktop executive workspaces remain unchanged.   */
/* ========================================================================== */
.mobile-executive-overview,
.mobile-executive-attention-mobile-toolbar {
  display: none;
}

@media (max-width: 640px) {

  /* Replace desktop-first overview composition with an executive scan path. */
  .prisma-executive-overview>.direksi-executive-board,
  .prisma-executive-overview>.role-landing-head,
  .prisma-executive-overview>.executive-intelligence,
  .prisma-executive-overview>.management-summary-final-overview {
    display: none;
  }

  .mobile-executive-overview {
    display: grid;
    gap: 12px;
    margin: -2px 0 4px;
  }

  .mobile-executive-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 16px;
    border: 1px solid #17354a;
    border-radius: 12px;
    background: #17354a;
    color: #fff;
  }

  .mobile-executive-hero-copy {
    min-width: 0;
  }

  .mobile-executive-hero-copy>span {
    display: block;
    color: #aebdca;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
  }

  .mobile-executive-hero h2 {
    margin: 5px 0 4px;
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
  }

  .mobile-executive-hero p {
    margin: 0;
    color: #d4dde4;
    font-size: 10.5px;
    line-height: 1.45;
  }

  .mobile-executive-readonly-pill {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #e8eef2;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .07em;
  }

  .mobile-executive-primary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-executive-primary-metrics>a {
    position: relative;
    min-height: 94px;
    overflow: hidden;
    padding: 12px 12px 11px 14px;
    border: 1px solid var(--prisma-border);
    border-radius: 11px;
    background: var(--prisma-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--prisma-shadow-xs);
  }

  .mobile-executive-primary-metrics>a::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    content: '';
    background: var(--prisma-border-strong);
  }

  .mobile-executive-primary-metrics>a.critical::before {
    background: var(--prisma-critical);
  }

  .mobile-executive-primary-metrics>a.health::before {
    background: var(--prisma-watch);
  }

  .mobile-executive-primary-metrics>a.deadline::before {
    background: var(--prisma-info);
  }

  .mobile-executive-primary-metrics>a.decision::before {
    background: #7c5b9c;
  }

  .mobile-executive-primary-metrics span,
  .mobile-executive-primary-metrics small {
    display: block;
  }

  .mobile-executive-primary-metrics span {
    color: var(--prisma-text-muted);
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-executive-primary-metrics strong {
    display: block;
    margin: 9px 0 5px;
    color: var(--prisma-text-strong);
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.04em;
  }

  .mobile-executive-primary-metrics small {
    color: var(--prisma-text-subtle);
    font-size: 8.5px;
    line-height: 1.35;
  }

  .mobile-executive-section {
    overflow: hidden;
    border: 1px solid var(--prisma-border);
    border-radius: 12px;
    background: var(--prisma-surface);
    box-shadow: var(--prisma-shadow-xs);
  }

  .mobile-executive-section-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--prisma-border-subtle);
  }

  .mobile-executive-section-head>div {
    min-width: 0;
  }

  .mobile-executive-section-head span,
  .mobile-executive-section-head strong {
    display: block;
  }

  .mobile-executive-section-head span {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .1em;
  }

  .mobile-executive-section-head strong {
    margin-top: 2px;
    color: var(--prisma-text-strong);
    font-size: 13px;
  }

  .mobile-executive-section-head>a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
    color: var(--prisma-primary);
    font-size: 9.5px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-executive-list {
    display: grid;
  }

  .mobile-executive-attention-card {
    display: block;
    min-height: 132px;
    padding: 12px;
    border-bottom: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-executive-attention-card:last-child {
    border-bottom: 0;
  }

  .mobile-executive-attention-card:active {
    background: var(--prisma-surface-subtle);
  }

  .mobile-executive-attention-card-top {
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
  }

  .mobile-executive-attention-card>strong {
    display: block;
    color: var(--prisma-text-strong);
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-executive-attention-card>small {
    display: block;
    margin-top: 4px;
    color: var(--prisma-text-subtle);
    font-size: 9px;
    line-height: 1.35;
  }

  .mobile-executive-attention-card>p {
    margin: 7px 0 0;
    color: var(--prisma-text-muted);
    font-size: 10px;
    line-height: 1.42;
  }

  .mobile-executive-workflow-pill {
    overflow: hidden;
    max-width: 48%;
    padding: 4px 7px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-muted);
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-executive-card-meta {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--prisma-border-subtle);
  }

  .mobile-executive-card-meta>span {
    min-width: 0;
  }

  .mobile-executive-card-meta b,
  .mobile-executive-card-meta small {
    display: block;
  }

  .mobile-executive-card-meta b {
    max-width: 100px;
    overflow: hidden;
    color: var(--prisma-text);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-executive-card-meta small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
  }

  .mobile-executive-card-meta>i {
    margin-left: auto;
    color: var(--prisma-text-subtle);
    font-size: 14px;
    font-style: normal;
  }

  .mobile-executive-company-list>a,
  .mobile-executive-deadline-list>a {
    min-height: 60px;
    display: grid;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-executive-company-list>a:last-child,
  .mobile-executive-deadline-list>a:last-child {
    border-bottom: 0;
  }

  .mobile-executive-company-list>a {
    grid-template-columns: 8px 60px minmax(0, 1fr) auto 14px;
  }

  .mobile-executive-company-list>a>span:nth-child(3),
  .mobile-executive-deadline-list>a>span {
    min-width: 0;
  }

  .mobile-executive-company-list strong,
  .mobile-executive-company-list small,
  .mobile-executive-deadline-list strong,
  .mobile-executive-deadline-list small {
    display: block;
  }

  .mobile-executive-company-list strong,
  .mobile-executive-deadline-list strong {
    color: var(--prisma-text-strong);
    font-size: 10.5px;
    line-height: 1.3;
  }

  .mobile-executive-company-list small,
  .mobile-executive-deadline-list small {
    margin-top: 3px;
    color: var(--prisma-text-subtle);
    font-size: 8.5px;
    line-height: 1.3;
  }

  .mobile-executive-company-list>a>i,
  .mobile-executive-deadline-list>a>i {
    color: var(--prisma-text-subtle);
    font-size: 13px;
    font-style: normal;
  }

  .mobile-executive-company-list .executive-health-badge {
    white-space: nowrap;
  }

  .mobile-executive-deadline-list>a {
    grid-template-columns: 68px minmax(0, 1fr) 14px;
    border-left: 3px solid var(--prisma-border-strong);
  }

  .mobile-executive-deadline-list>a.state-overdue {
    border-left-color: var(--prisma-critical);
  }

  .mobile-executive-deadline-list>a.state-today {
    border-left-color: var(--prisma-watch);
  }

  .mobile-executive-deadline-list>a.state-next_7 {
    border-left-color: var(--prisma-info);
  }

  .mobile-executive-deadline-list>a>span:first-child b {
    color: var(--prisma-text-muted);
    font-size: 8px;

  }

  .mobile-executive-decision-list {
    display: grid;
    gap: 0;
  }

  .mobile-executive-decision-list>a {
    display: block;
    min-height: 112px;
    padding: 12px;
    border-bottom: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-executive-decision-list>a:last-child {
    border-bottom: 0;
  }

  .mobile-executive-decision-aging {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 6px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    color: var(--prisma-text-muted);
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-executive-decision-aging.overdue {
    border-color: color-mix(in srgb, var(--prisma-critical) 40%, var(--prisma-border));
    color: var(--prisma-critical);
  }

  .mobile-executive-decision-list strong,
  .mobile-executive-decision-list small {
    display: block;
  }

  .mobile-executive-decision-list strong {
    color: var(--prisma-text-strong);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-executive-decision-list small {
    margin-top: 4px;
    color: var(--prisma-text-subtle);
    font-size: 8.5px;
  }

  .mobile-executive-decision-list p {
    margin: 7px 0 0;
    color: var(--prisma-text-muted);
    font-size: 9.5px;
    line-height: 1.4;
  }

  .mobile-executive-empty {
    padding: 18px 12px;
    color: var(--prisma-text-muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .mobile-executive-empty strong,
  .mobile-executive-empty span {
    display: block;
  }

  .mobile-executive-empty strong {
    color: var(--prisma-text);
    margin-bottom: 3px;
  }

  .mobile-executive-quick-drill {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-executive-quick-drill>a {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    padding: 10px 11px;
    border: 1px solid var(--prisma-border);
    border-radius: 10px;
    background: var(--prisma-surface);
    color: inherit;
    text-decoration: none;
  }

  .mobile-executive-quick-drill span,
  .mobile-executive-quick-drill b {
    display: block;
  }

  .mobile-executive-quick-drill span {
    color: var(--prisma-text-subtle);
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-executive-quick-drill b {
    margin-top: 3px;
    color: var(--prisma-text);
    font-size: 10px;
  }

  .mobile-executive-quick-drill i {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--prisma-text-subtle);
    font-style: normal;
  }

  /* Executive Attention becomes a priority-first mobile list instead of two desktop columns. */
  .mobile-executive-attention-mobile-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 10px;
    padding: 4px;
    border: 1px solid var(--prisma-border);
    border-radius: 11px;
    background: var(--prisma-surface-subtle);
  }

  .mobile-executive-attention-mobile-toolbar button {
    min-height: 42px;
    padding: 6px 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--prisma-text-muted);
    font: inherit;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-executive-attention-mobile-toolbar button.active {
    background: var(--prisma-surface);
    color: var(--prisma-primary);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
  }

  .mobile-executive-attention-mobile-toolbar b {
    margin-left: 2px;
  }

  .prisma-attention-workspace .executive-attention-page-head {
    display: block;
    margin-bottom: 10px;
    padding: 14px 13px;
  }

  .prisma-attention-workspace .executive-attention-page-head h2 {
    font-size: 18px;
  }

  .prisma-attention-workspace .executive-attention-page-head p {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.45;
  }

  .prisma-attention-workspace .executive-attention-page-head .executive-coverage {
    display: none;
  }

  .prisma-attention-workspace .executive-attention-page-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }

  .prisma-attention-workspace .executive-attention-page-summary> :nth-child(n+3) {
    display: none;
  }

  .prisma-attention-workspace .executive-attention-stat {
    min-height: 80px;
    padding: 11px 12px 10px 14px;
  }

  .prisma-attention-workspace .executive-attention-stat strong {
    margin-top: 7px;
    font-size: 22px;
  }

  .prisma-attention-workspace .executive-attention-columns {
    display: block;
  }

  .prisma-attention-workspace .executive-attention-bucket {
    margin-bottom: 10px;
    border-radius: 11px;
  }

  .prisma-attention-workspace .executive-attention-bucket.mobile-executive-filtered-out {
    display: none;
  }

  .prisma-attention-workspace .executive-bucket-head {
    min-height: 54px;
    padding: 10px 12px;
  }

  .prisma-attention-workspace .executive-bucket-head small {
    display: none;
  }

  .prisma-attention-workspace .executive-bucket-head>b {
    font-size: 16px;
  }

  .prisma-attention-workspace .executive-attention-list {
    display: grid;
    gap: 8px;
    padding: 8px;
    background: var(--prisma-surface-subtle);
  }

  .prisma-attention-workspace .executive-attention-row {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 142px;
    gap: 8px 10px;
    padding: 11px;
    border: 1px solid var(--prisma-border);
    border-radius: 10px;
    background: var(--prisma-surface);
    box-shadow: none;
  }

  .prisma-attention-workspace .executive-attention-row .executive-severity {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 0;
  }

  .prisma-attention-workspace .executive-attention-main {
    grid-column: 1 / -1;
  }

  .prisma-attention-workspace .executive-attention-main>b {
    font-size: 11.5px;
  }

  .prisma-attention-workspace .executive-attention-main>small {
    font-size: 8.5px;
  }

  .prisma-attention-workspace .executive-attention-main>em {
    margin-top: 6px;
    font-size: 9.5px;
  }

  .prisma-attention-workspace .executive-attention-context,
  .prisma-attention-workspace .executive-reason-tags {
    margin-top: 6px;
  }

  .prisma-attention-workspace .executive-attention-context i,
  .prisma-attention-workspace .executive-reason-tags i {
    font-size: 7.5px;
  }

  .prisma-attention-workspace .executive-attention-meta {
    grid-column: 1 / -1;
    min-height: 34px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: end;
    padding-top: 7px;
    border-top: 1px solid var(--prisma-border-subtle);
    text-align: left;
  }

  .prisma-attention-workspace .executive-attention-meta b {
    font-size: 11px;
  }

  .prisma-attention-workspace .executive-attention-meta small {
    margin: 0 10px 0 0;
    font-size: 8px;
  }

  .prisma-attention-workspace .executive-workflow-panel {
    margin-top: 10px;
  }

  .prisma-attention-workspace .executive-workflow-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prisma-attention-workspace .executive-rule-note {
    display: none;
  }

  /* Existing attention diagnostic becomes a mobile bottom sheet. */
  .attention-detail-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: min(82dvh, 720px);
    border-left: 0;
    border-top: 1px solid var(--prisma-border);
    border-radius: 18px 18px 0 0;
    transform: translateY(102%);
  }

  .attention-detail-drawer.open {
    transform: translateY(0);
  }

  .attention-detail-drawer-head {
    padding: 13px 14px 11px;
  }

  .attention-detail-drawer-scroll {
    padding: 12px 14px;
  }

  .attention-detail-drawer-actions {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .attention-detail-drawer-actions .btn {
    min-height: 44px;
  }

  .attention-detail-drawer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .mobile-executive-primary-metrics {
    gap: 6px;
  }

  .mobile-executive-primary-metrics>a {
    min-height: 88px;
    padding-left: 12px;
  }

  .mobile-executive-primary-metrics strong {
    font-size: 23px;
  }

  .mobile-executive-card-meta {
    gap: 8px;
  }

  .mobile-executive-quick-drill {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .attention-detail-drawer-backdrop {
    z-index: 1220;
  }

  .attention-detail-drawer {
    z-index: 1230;
  }
}

/* =====================================================================
   Mobile experience — MOBILE COMPANY HEALTH & COMPANY DETAIL
   Mobile-only progressive disclosure. Desktop/tablet Monitoring refinement diagnostic is preserved.
   ===================================================================== */
.mobile-company-detail,
.mobile-company-comparison {
  display: none;
}

@media (max-width: 640px) {

  .prisma-company-diagnostic>.executive-company-page-head,
  .prisma-company-diagnostic>.mobile-company-desktop-company-detail,
  .prisma-company-diagnostic>.company-comparison-workspace {
    display: none !important;
  }

  .mobile-company-detail,
  .mobile-company-comparison {
    display: block;
  }

  .prisma-company-diagnostic {
    padding: 0;
    background: transparent;
  }

  .mobile-company-detail,
  .mobile-company-comparison {
    margin: 0;
    padding: 0 0 12px;
  }

  .mobile-company-hero {
    position: relative;
    margin-bottom: 9px;
    padding: 15px 14px 14px;
    overflow: hidden;
    border: 1px solid var(--prisma-border);
    border-radius: 12px;
    background: var(--prisma-surface);
  }

  .mobile-company-hero::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--prisma-border-strong);
  }

  .mobile-company-hero.critical::before {
    background: var(--prisma-critical);
  }

  .mobile-company-hero.watch::before {
    background: var(--prisma-watch);
  }

  .mobile-company-hero.healthy::before {
    background: var(--prisma-success);
  }

  .mobile-company-hero.no_data::before {
    background: var(--prisma-text-subtle);
  }

  .mobile-company-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mobile-company-hero-top a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: var(--prisma-primary);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-company-hero-top>span {
    padding: 4px 7px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    color: var(--prisma-text-muted);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .04em;
  }

  .mobile-company-hero>small {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .09em;
  }

  .mobile-company-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
  }

  .mobile-company-title-row h2 {
    min-width: 0;
    margin: 0;
    color: var(--prisma-text-strong);
    font-size: 19px;
    line-height: 1.22;
  }

  .mobile-company-title-row .executive-health-badge {
    flex: 0 0 auto;
  }

  .mobile-company-hero>p {
    margin: 8px 0 0;
    color: var(--prisma-text-muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .mobile-company-coverage {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
  }

  .mobile-company-coverage>span {
    padding: 5px 7px;
    border: 1px solid var(--prisma-border-subtle);
    border-radius: 7px;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-subtle);
    font-size: 8px;
  }

  .mobile-company-coverage b {
    color: var(--prisma-text);
  }

  .mobile-company-scope {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 9px;
    padding: 10px;
    border: 1px solid var(--prisma-border);
    border-radius: 11px;
    background: var(--prisma-surface);
  }

  .mobile-company-scope>div {
    grid-column: 1 / -1;
  }

  .mobile-company-scope>div span,
  .mobile-company-scope>div strong,
  .mobile-company-scope label>span {
    display: block;
  }

  .mobile-company-scope>div span,
  .mobile-company-scope label>span {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 700;

    letter-spacing: .05em;
  }

  .mobile-company-scope>div strong {
    margin-top: 3px;
    color: var(--prisma-text);
    font-size: 10.5px;
  }

  .mobile-company-scope select {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 0 28px 0 9px;
    border: 1px solid var(--prisma-border);
    border-radius: 8px;
    background: var(--prisma-surface);
    color: var(--prisma-text);
    font: inherit;
    font-size: 9px;
  }

  .mobile-company-scope>a {
    grid-column: 1 / -1;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--prisma-border-subtle);
    color: var(--prisma-primary);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-company-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
  }

  .mobile-company-kpis>a {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 11px;
    border: 1px solid var(--prisma-border);
    border-radius: 10px;
    background: var(--prisma-surface);
    color: inherit;
    text-decoration: none;
  }

  .mobile-company-kpis>a.risk {
    border-left: 3px solid var(--prisma-critical);
  }

  .mobile-company-kpis span,
  .mobile-company-kpis strong,
  .mobile-company-kpis small {
    display: block;
  }

  .mobile-company-kpis span {
    color: var(--prisma-text-subtle);
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-company-kpis strong {
    margin-top: 4px;
    color: var(--prisma-text-strong);
    font-size: 22px;
    line-height: 1;
  }

  .mobile-company-kpis small {
    margin-top: 5px;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
  }

  .mobile-company-panel,
  .mobile-company-disclosure {
    margin: 0 0 9px;
    border: 1px solid var(--prisma-border);
    border-radius: 11px;
    background: var(--prisma-surface);
    overflow: hidden;
  }

  .mobile-company-panel {
    padding: 12px;
  }

  .mobile-company-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
  }

  .mobile-company-section-head small,
  .mobile-company-section-head strong {
    display: block;
  }

  .mobile-company-section-head small {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .mobile-company-section-head strong {
    margin-top: 2px;
    color: var(--prisma-text-strong);
    font-size: 12px;
  }

  .mobile-company-section-head>a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: var(--prisma-primary);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-company-primary-reason {
    margin: 0;
    padding: 10px;
    border-left: 3px solid var(--prisma-primary);
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
  }

  .mobile-company-reason-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
  }

  .mobile-company-reason-list>div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    color: var(--prisma-text-muted);
    font-size: 9px;
    line-height: 1.4;
  }

  .mobile-company-reason-list b {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--prisma-border);
    border-radius: 50%;
    color: var(--prisma-text-subtle);
    font-size: 8px;
  }

  .mobile-company-signal-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
  }

  .mobile-company-signal-strip span {
    min-width: 0;
    padding: 7px 4px;
    border: 1px solid var(--prisma-border-subtle);
    border-radius: 7px;
    text-align: center;
  }

  .mobile-company-signal-strip b,
  .mobile-company-signal-strip small {
    display: block;
  }

  .mobile-company-signal-strip b {
    color: var(--prisma-text);
    font-size: 13px;
  }

  .mobile-company-signal-strip small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
  }

  .mobile-company-attention-list>a,
  .mobile-company-domain-list>a,
  .mobile-company-unit-list>a,
  .mobile-company-owner-list>a,
  .mobile-company-escalation-list>a {
    min-height: 58px;
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-company-attention-list>a:last-child,
  .mobile-company-domain-list>a:last-child,
  .mobile-company-unit-list>a:last-child,
  .mobile-company-owner-list>a:last-child,
  .mobile-company-escalation-list>a:last-child {
    border-bottom: 0;
  }

  .mobile-company-attention-list>a {
    grid-template-columns: auto minmax(0, 1fr) 12px;
    align-items: start;
  }

  .mobile-company-attention-list strong,
  .mobile-company-attention-list small,
  .mobile-company-attention-list p {
    display: block;
  }

  .mobile-company-attention-list strong {
    color: var(--prisma-text);
    font-size: 10px;
    line-height: 1.35;
  }

  .mobile-company-attention-list small {
    margin-top: 3px;
    color: var(--prisma-text-subtle);
    font-size: 8px;
  }

  .mobile-company-attention-list p {
    margin: 5px 0 0;
    color: var(--prisma-text-muted);
    font-size: 8.5px;
    line-height: 1.35;
  }

  .mobile-company-attention-list i,
  .mobile-company-domain-list>a>i,
  .mobile-company-unit-list>a>i,
  .mobile-company-owner-list>a>i,
  .mobile-company-escalation-list>a>i {
    color: var(--prisma-text-subtle);
    font-size: 12px;
    font-style: normal;
  }

  .mobile-company-disclosure>summary {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-company-disclosure>summary::-webkit-details-marker {
    display: none;
  }

  .mobile-company-disclosure>summary span small,
  .mobile-company-disclosure>summary span strong {
    display: block;
  }

  .mobile-company-disclosure>summary span small {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .mobile-company-disclosure>summary span strong {
    margin-top: 2px;
    color: var(--prisma-text);
    font-size: 11px;
  }

  .mobile-company-disclosure>summary>b {
    color: var(--prisma-text-muted);
    font-size: 11px;
  }

  .mobile-company-disclosure>summary>b.risk {
    color: var(--prisma-critical);
  }

  .mobile-company-disclosure>summary>i {
    color: var(--prisma-text-subtle);
    font-style: normal;
    transition: transform .18s ease;
  }

  .mobile-company-disclosure[open]>summary {
    border-bottom: 1px solid var(--prisma-border-subtle);
  }

  .mobile-company-disclosure[open]>summary>i {
    transform: rotate(180deg);
  }

  .mobile-company-domain-list,
  .mobile-company-unit-list,
  .mobile-company-owner-list,
  .mobile-company-timeline-list,
  .mobile-company-work-list {
    padding: 0 12px;
  }

  .mobile-company-domain-list>a,
  .mobile-company-unit-list>a,
  .mobile-company-owner-list>a,
  .mobile-company-escalation-list>a {
    grid-template-columns: minmax(0, 1fr) auto 12px;
  }

  .mobile-company-domain-list strong,
  .mobile-company-domain-list small,
  .mobile-company-unit-list strong,
  .mobile-company-unit-list small,
  .mobile-company-owner-list strong,
  .mobile-company-owner-list small,
  .mobile-company-escalation-list strong,
  .mobile-company-escalation-list small {
    display: block;
  }

  .mobile-company-domain-list strong,
  .mobile-company-unit-list strong,
  .mobile-company-owner-list strong,
  .mobile-company-escalation-list strong {
    color: var(--prisma-text);
    font-size: 9.5px;
  }

  .mobile-company-domain-list small,
  .mobile-company-unit-list small,
  .mobile-company-owner-list small,
  .mobile-company-escalation-list small {
    margin-top: 3px;
    color: var(--prisma-text-subtle);
    font-size: 7.8px;
    line-height: 1.35;
  }

  .mobile-company-deadline-buckets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 10px 12px 5px;
  }

  .mobile-company-deadline-buckets span {
    padding: 7px 3px;
    border: 1px solid var(--prisma-border-subtle);
    border-radius: 7px;
    text-align: center;
  }

  .mobile-company-deadline-buckets span.overdue {
    border-color: color-mix(in srgb, var(--prisma-critical) 32%, var(--prisma-border));
  }

  .mobile-company-deadline-buckets b,
  .mobile-company-deadline-buckets small {
    display: block;
  }

  .mobile-company-deadline-buckets b {
    color: var(--prisma-text);
    font-size: 13px;
  }

  .mobile-company-deadline-buckets small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
  }

  .mobile-company-deadline-buckets .overdue b {
    color: var(--prisma-critical);
  }

  .mobile-company-timeline-list>a,
  .mobile-company-work-list>a {
    min-height: 62px;
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-company-timeline-list>a:last-child,
  .mobile-company-work-list>a:last-child {
    border-bottom: 0;
  }

  .mobile-company-timeline-list>a {
    grid-template-columns: 62px minmax(0, 1fr) 12px;
  }

  .mobile-company-timeline-list>a>span b,
  .mobile-company-timeline-list>a>span small,
  .mobile-company-timeline-list>a>div strong,
  .mobile-company-timeline-list>a>div small {
    display: block;
  }

  .mobile-company-timeline-list>a>span b {
    color: var(--prisma-text-muted);
    font-size: 7.5px;
  }

  .mobile-company-timeline-list>a>span small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 7px;
  }

  .mobile-company-timeline-list>a>div strong {
    color: var(--prisma-text);
    font-size: 9.5px;
    line-height: 1.3;
  }

  .mobile-company-timeline-list>a>div small {
    margin-top: 3px;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
  }

  .mobile-company-timeline-list>a.overdue {
    border-left: 3px solid var(--prisma-critical);
    padding-left: 7px;
  }

  .mobile-company-timeline-list>a.today {
    border-left: 3px solid var(--prisma-watch);
    padding-left: 7px;
  }

  .mobile-company-timeline-list>a>i {
    color: var(--prisma-text-subtle);
    font-style: normal;
  }

  .mobile-company-work-list>a {
    grid-template-columns: minmax(0, 1fr) auto 12px;
  }

  .mobile-company-work-list strong,
  .mobile-company-work-list small {
    display: block;
  }

  .mobile-company-work-list>a>div strong {
    color: var(--prisma-text);
    font-size: 9.5px;
    line-height: 1.35;
  }

  .mobile-company-work-list>a>div small {
    margin-top: 3px;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
  }

  .mobile-company-work-list>a>span {
    text-align: right;
  }

  .mobile-company-work-list>a>span em,
  .mobile-company-work-list>a>span b {
    display: block;
  }

  .mobile-company-work-list>a>span em {
    color: var(--prisma-text-subtle);
    font-size: 7px;
    font-style: normal;
  }

  .mobile-company-work-list>a>span em.overdue {
    color: var(--prisma-critical);
  }

  .mobile-company-work-list>a>span em.soon {
    color: var(--prisma-watch);
  }

  .mobile-company-work-list>a>span b {
    margin-top: 3px;
    color: var(--prisma-text);
    font-size: 10px;
  }

  .mobile-company-work-list>a>i {
    color: var(--prisma-text-subtle);
    font-style: normal;
  }

  .mobile-company-escalation-list {
    margin: -2px 0 0;
  }

  .mobile-company-escalation-list>a>em {
    padding: 4px 6px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    color: var(--prisma-text-muted);
    font-size: 7.5px;
    font-style: normal;
    white-space: nowrap;
  }

  .mobile-company-escalation-list>a>em.overdue {
    border-color: color-mix(in srgb, var(--prisma-critical) 35%, var(--prisma-border));
    color: var(--prisma-critical);
  }

  .mobile-company-empty {
    padding: 14px 12px;
    color: var(--prisma-text-muted);
    font-size: 9px;
    line-height: 1.45;
  }

  .mobile-company-empty strong,
  .mobile-company-empty span {
    display: block;
  }

  .mobile-company-empty strong {
    margin-bottom: 3px;
    color: var(--prisma-text);
  }

  /* Group Company Health is a scan-friendly card list instead of a desktop table. */
  .mobile-company-group-health-head {
    margin-bottom: 9px;
    padding: 14px;
    border: 1px solid var(--prisma-border);
    border-radius: 12px;
    background: var(--prisma-surface);
  }

  .mobile-company-group-health-head>small {
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .mobile-company-group-health-head h2 {
    margin: 4px 0 0;
    color: var(--prisma-text-strong);
    font-size: 18px;
  }

  .mobile-company-group-health-head p {
    margin: 6px 0 0;
    color: var(--prisma-text-muted);
    font-size: 9.5px;
    line-height: 1.45;
  }

  .mobile-company-health-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 11px;
  }

  .mobile-company-health-summary-strip>span {
    padding: 7px 3px;
    border: 1px solid var(--prisma-border-subtle);
    border-radius: 7px;
    text-align: center;
  }

  .mobile-company-health-summary-strip b,
  .mobile-company-health-summary-strip small {
    display: block;
  }

  .mobile-company-health-summary-strip b {
    color: var(--prisma-text);
    font-size: 14px;
  }

  .mobile-company-health-summary-strip small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
  }

  .mobile-company-health-summary-strip .critical b {
    color: var(--prisma-critical);
  }

  .mobile-company-health-summary-strip .watch b {
    color: var(--prisma-watch);
  }

  .mobile-company-health-summary-strip .healthy b {
    color: var(--prisma-success);
  }

  .mobile-company-compare-list {
    overflow: hidden;
    border: 1px solid var(--prisma-border);
    border-radius: 11px;
    background: var(--prisma-surface);
  }

  .mobile-company-compare-list>a {
    min-height: 104px;
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr) auto 12px;
    align-items: start;
    gap: 9px;
    padding: 12px;
    border-bottom: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-company-compare-list>a:last-child {
    border-bottom: 0;
  }

  .mobile-company-health-dot {
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--prisma-text-subtle);
  }

  .mobile-company-compare-list>a.critical .mobile-company-health-dot {
    background: var(--prisma-critical);
  }

  .mobile-company-compare-list>a.watch .mobile-company-health-dot {
    background: var(--prisma-watch);
  }

  .mobile-company-compare-list>a.healthy .mobile-company-health-dot {
    background: var(--prisma-success);
  }

  .mobile-company-compare-list strong,
  .mobile-company-compare-list small,
  .mobile-company-compare-list p,
  .mobile-company-compare-list em {
    display: block;
  }

  .mobile-company-compare-list strong {
    color: var(--prisma-text-strong);
    font-size: 10.5px;
  }

  .mobile-company-compare-list small {
    margin-top: 3px;
    color: var(--prisma-text-subtle);
    font-size: 8px;
  }

  .mobile-company-compare-list p {
    margin: 6px 0 0;
    color: var(--prisma-text-muted);
    font-size: 8.7px;
    line-height: 1.4;
  }

  .mobile-company-compare-list em {
    margin-top: 6px;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-style: normal;
  }

  .mobile-company-compare-list>a>.executive-health-badge {
    margin-top: 0;
    white-space: nowrap;
  }

  .mobile-company-compare-list>a>i {
    align-self: center;
    color: var(--prisma-text-subtle);
    font-style: normal;
  }
}

@media (max-width: 390px) {
  .mobile-company-scope {
    grid-template-columns: 1fr;
  }

  .mobile-company-scope>div,
  .mobile-company-scope>a {
    grid-column: 1;
  }

  .mobile-company-title-row {
    align-items: flex-start;
  }

  .mobile-company-signal-strip,
  .mobile-company-deadline-buckets,
  .mobile-company-health-summary-strip {
    gap: 4px;
  }

  .mobile-company-compare-list>a {
    grid-template-columns: 7px minmax(0, 1fr) 12px;
  }

  .mobile-company-compare-list>a>.executive-health-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 5px;
  }

  .mobile-company-compare-list>a>i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* ==========================================================
   PRISMA Mobile timeline — MOBILE TIMELINE / DEADLINES
   Presentation-only mobile timeline. Desktop Timeline refinement remains intact.
   ========================================================== */
.mobile-timeline-timeline {
  display: none;
}

@media (max-width: 640px) {
  .mobile-timeline-desktop-timeline {
    display: none !important;
  }

  .mobile-timeline-timeline {
    display: block;
    margin: 0;
    padding: 0 0 8px;
  }

  .mobile-timeline-hero {
    padding: 15px 14px;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-panel);
    background: var(--prisma-surface);
    box-shadow: var(--prisma-shadow-xs);
  }

  .mobile-timeline-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-timeline-kicker>span,
  .mobile-timeline-kicker>b {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .mobile-timeline-kicker>span {
    color: var(--prisma-text-subtle);
  }

  .mobile-timeline-kicker>b {
    padding: 3px 6px;
    border: 1px solid var(--prisma-border-strong);
    border-radius: 999px;
    color: var(--prisma-text-muted);
    background: var(--prisma-surface-subtle);
  }

  .mobile-timeline-hero h2 {
    margin: 5px 0 0;
    color: var(--prisma-text-strong);
    font-size: 19px;
    line-height: 1.22;
  }

  .mobile-timeline-hero p {
    margin: 5px 0 0;
    color: var(--prisma-text-muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .mobile-timeline-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px solid var(--prisma-border-subtle);
  }

  .mobile-timeline-context strong,
  .mobile-timeline-context span {
    min-width: 0;
    font-size: 9px;
  }

  .mobile-timeline-context strong {
    overflow: hidden;
    color: var(--prisma-text);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-timeline-context span {
    flex: 0 0 auto;
    color: var(--prisma-text-subtle);
  }

  .mobile-timeline-urgency-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .mobile-timeline-urgency-grid>a {
    position: relative;
    min-height: 92px;
    padding: 11px 11px 10px;
    overflow: hidden;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-panel);
    background: var(--prisma-surface);
    box-shadow: var(--prisma-shadow-xs);
    text-decoration: none;
  }

  .mobile-timeline-urgency-grid>a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--prisma-border-strong);
  }

  .mobile-timeline-urgency-grid>a.overdue::before {
    background: var(--prisma-critical);
  }

  .mobile-timeline-urgency-grid>a.today::before {
    background: var(--prisma-watch);
  }

  .mobile-timeline-urgency-grid>a.next7::before {
    background: var(--prisma-info);
  }

  .mobile-timeline-urgency-grid>a.next30::before {
    background: var(--prisma-primary);
  }

  .mobile-timeline-urgency-grid>a.active {
    border-color: var(--prisma-primary);
    box-shadow: 0 0 0 1px var(--prisma-primary-soft), var(--prisma-shadow-xs);
  }

  .mobile-timeline-urgency-grid small,
  .mobile-timeline-urgency-grid strong,
  .mobile-timeline-urgency-grid span {
    display: block;
  }

  .mobile-timeline-urgency-grid small {
    color: var(--prisma-text-subtle);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .06em;
  }

  .mobile-timeline-urgency-grid strong {
    margin-top: 6px;
    color: var(--prisma-text-strong);
    font-size: 23px;
    line-height: 1;
  }

  .mobile-timeline-urgency-grid .overdue strong {
    color: var(--prisma-critical);
  }

  .mobile-timeline-urgency-grid .today strong {
    color: var(--prisma-watch-strong, var(--prisma-watch));
  }

  .mobile-timeline-urgency-grid span {
    margin-top: 6px;
    color: var(--prisma-text-muted);
    font-size: 8.5px;
    line-height: 1.3;
  }

  .mobile-timeline-filters {
    margin-top: 10px;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-panel);
    background: var(--prisma-surface);
    box-shadow: var(--prisma-shadow-xs);
  }

  .mobile-timeline-filters>summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-timeline-filters>summary::-webkit-details-marker {
    display: none;
  }

  .mobile-timeline-filters>summary span small,
  .mobile-timeline-filters>summary span strong {
    display: block;
  }

  .mobile-timeline-filters>summary span small {
    color: var(--prisma-text-subtle);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .06em;
  }

  .mobile-timeline-filters>summary span strong {
    margin-top: 2px;
    color: var(--prisma-text);
    font-size: 11px;
  }

  .mobile-timeline-filters>summary>b {
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-muted);
    font-size: 8px;
  }

  .mobile-timeline-filters>summary>i {
    color: var(--prisma-text-subtle);
    font-size: 12px;
    font-style: normal;
    transition: transform .18s ease;
  }

  .mobile-timeline-filters[open]>summary>i {
    transform: rotate(180deg);
  }

  .mobile-timeline-filter-body {
    display: grid;
    gap: 9px;
    padding: 10px 11px 11px;
    border-top: 1px solid var(--prisma-border-subtle);
  }

  .mobile-timeline-filter-body label>span {
    display: block;
    margin-bottom: 4px;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .04em;

  }

  .mobile-timeline-filter-body select {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--prisma-border-strong);
    border-radius: var(--prisma-radius-control);
    background: var(--prisma-surface);
    color: var(--prisma-text);
    font-size: 11px;
  }

  .mobile-timeline-clear-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-control);
    color: var(--prisma-text-muted);
    background: var(--prisma-surface-subtle);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-timeline-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-panel);
    background: var(--prisma-surface);
  }

  .mobile-timeline-summary>span {
    min-width: 0;
    padding: 9px 8px;
    border-left: 1px solid var(--prisma-border-subtle);
    text-align: center;
  }

  .mobile-timeline-summary>span:first-child {
    border-left: 0;
  }

  .mobile-timeline-summary b,
  .mobile-timeline-summary small {
    display: block;
  }

  .mobile-timeline-summary b {
    overflow: hidden;
    color: var(--prisma-text-strong);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-timeline-summary small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 7px;
  }

  .mobile-timeline-deadline-group {
    margin-top: 14px;
  }

  .mobile-timeline-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px 7px;
  }

  .mobile-timeline-group-head small,
  .mobile-timeline-group-head strong {
    display: block;
  }

  .mobile-timeline-group-head small {
    color: var(--prisma-text-subtle);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .07em;
  }

  .mobile-timeline-group-head strong {
    margin-top: 2px;
    color: var(--prisma-text-strong);
    font-size: 13px;
  }

  .mobile-timeline-group-head>b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 7px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    background: var(--prisma-surface);
    color: var(--prisma-text-muted);
    font-size: 10px;
  }

  .mobile-timeline-deadline-group.state-overdue .mobile-timeline-group-head>b {
    border-color: color-mix(in srgb, var(--prisma-critical) 30%, var(--prisma-border));
    color: var(--prisma-critical);
  }

  .mobile-timeline-list {
    overflow: hidden;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-panel);
    background: var(--prisma-surface);
    box-shadow: var(--prisma-shadow-xs);
  }

  .mobile-timeline-deadline-card {
    display: block;
    min-height: 118px;
    padding: 11px 12px;
    border-top: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-timeline-deadline-card:first-child {
    border-top: 0;
  }

  .mobile-timeline-deadline-group.state-overdue .mobile-timeline-deadline-card {
    border-left: 2px solid var(--prisma-critical);
  }

  .mobile-timeline-deadline-group.state-today .mobile-timeline-deadline-card {
    border-left: 2px solid var(--prisma-watch);
  }

  .mobile-timeline-deadline-group.state-next_7 .mobile-timeline-deadline-card {
    border-left: 2px solid var(--prisma-info);
  }

  .mobile-timeline-deadline-group.state-next_30 .mobile-timeline-deadline-card {
    border-left: 2px solid var(--prisma-primary);
  }

  .mobile-timeline-card-top {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
  }

  .mobile-timeline-source,
  .mobile-timeline-severity,
  .mobile-timeline-attention {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 6px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    font-size: 7px;
    font-weight: 750;
    white-space: nowrap;
  }

  .mobile-timeline-source {
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-muted);
  }

  .mobile-timeline-source.source-direction {
    background: #f3effb;
    color: #654c91;
  }

  .mobile-timeline-source.source-grc {
    background: #eef6f1;
    color: #467259;
  }

  .mobile-timeline-source.source-todo {
    background: #f0f5fb;
    color: #496c93;
  }

  .mobile-timeline-severity.severity-critical {
    border-color: color-mix(in srgb, var(--prisma-critical) 24%, var(--prisma-border));
    background: #fdecec;
    color: var(--prisma-critical);
  }

  .mobile-timeline-severity.severity-high {
    background: #fff1df;
    color: #9c621d;
  }

  .mobile-timeline-attention {
    color: var(--prisma-text-muted);
    background: var(--prisma-surface-subtle);
  }

  .mobile-timeline-card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 8px;
  }

  .mobile-timeline-card-copy {
    min-width: 0;
  }

  .mobile-timeline-card-copy strong,
  .mobile-timeline-card-copy small {
    display: block;
  }

  .mobile-timeline-card-copy strong {
    color: var(--prisma-text-strong);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-timeline-card-copy small {
    margin-top: 4px;
    color: var(--prisma-text-subtle);
    font-size: 8px;
    line-height: 1.35;
  }

  .mobile-timeline-card-due {
    min-width: 76px;
    text-align: right;
  }

  .mobile-timeline-card-due b,
  .mobile-timeline-card-due span {
    display: block;
  }

  .mobile-timeline-card-due b {
    color: var(--prisma-text);
    font-size: 9px;
  }

  .mobile-timeline-card-due span {
    margin-top: 3px;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
  }

  .state-overdue .mobile-timeline-card-due span {
    color: var(--prisma-critical);
  }

  .state-today .mobile-timeline-card-due span {
    color: var(--prisma-watch-strong, var(--prisma-watch));
  }

  .mobile-timeline-deadline-card>p {
    margin: 8px 0 0;
    color: var(--prisma-text-muted);
    font-size: 8.5px;
    line-height: 1.4;
  }

  .mobile-timeline-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid var(--prisma-border-subtle);
    color: var(--prisma-text-subtle);
    font-size: 8px;
  }

  .mobile-timeline-card-foot b {
    color: var(--prisma-text);
  }

  .mobile-timeline-card-foot em {
    color: var(--prisma-primary);
    font-size: 8.5px;
    font-style: normal;
    font-weight: 700;
  }

  .mobile-timeline-view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 7px;
    border: 1px solid var(--prisma-border);
    border-radius: var(--prisma-radius-control);
    background: var(--prisma-surface);
    color: var(--prisma-primary);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-timeline-empty {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    padding: 18px 14px;
    border: 1px dashed var(--prisma-border-strong);
    border-radius: var(--prisma-radius-panel);
    background: var(--prisma-surface);
  }

  .mobile-timeline-empty strong {
    color: var(--prisma-text);
    font-size: 11px;
  }

  .mobile-timeline-empty span {
    color: var(--prisma-text-muted);
    font-size: 9px;
    line-height: 1.4;
  }

  .mobile-timeline-empty a {
    margin-top: 5px;
    color: var(--prisma-primary);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-timeline-timeline a:focus-visible,
  .mobile-timeline-timeline summary:focus-visible,
  .mobile-timeline-timeline select:focus-visible {
    outline: 2px solid var(--prisma-primary);
    outline-offset: 2px;
  }
}

/* ============================================================
   Mobile experience — Mobile Escalation / Decision
   Executive-first workflow review. Desktop/tablet remains Workflow refinement.
   ============================================================ */
.mobile-escalation-escalation {
  display: none;
}

@media (max-width: 640px) {

  .prisma-escalation-workspace>.executive-attention-page-head,
  .escalation-desktop-workspace {
    display: none !important;
  }

  .prisma-escalation-workspace.executive-escalation-page {
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }

  .mobile-escalation-escalation {
    display: grid;
    gap: 10px;
    margin: -2px -2px 8px;
  }

  .mobile-escalation-hero {
    padding: 14px;
    border: 1px solid var(--prisma-border);
    border-radius: 14px;
    background: var(--prisma-surface);
  }

  .mobile-escalation-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
  }

  .mobile-escalation-kicker span,
  .mobile-escalation-kicker b {
    font-size: 7.5px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .mobile-escalation-kicker span {
    color: var(--prisma-text-subtle);
  }

  .mobile-escalation-kicker b {
    padding: 4px 6px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    color: var(--prisma-primary);
    background: var(--prisma-surface-subtle);
  }

  .mobile-escalation-hero h2 {
    margin: 0;
    color: var(--prisma-text-strong);
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -.02em;
  }

  .mobile-escalation-hero p {
    margin: 6px 0 0;
    color: var(--prisma-text-muted);
    font-size: 9px;
    line-height: 1.5;
  }

  .mobile-escalation-priority-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .mobile-escalation-priority-strip>a {
    min-height: 78px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--prisma-border);
    border-radius: 12px;
    background: var(--prisma-surface);
    color: inherit;
    text-decoration: none;
  }

  .mobile-escalation-priority-strip>a small {
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .04em;
  }

  .mobile-escalation-priority-strip>a strong {
    color: var(--prisma-text-strong);
    font-size: 20px;
    line-height: 1;
  }

  .mobile-escalation-priority-strip>a span {
    color: var(--prisma-text-muted);
    font-size: 7px;
    line-height: 1.25;
  }

  .mobile-escalation-priority-strip>a.decision {
    border-top: 3px solid var(--prisma-critical);
  }

  .mobile-escalation-priority-strip>a.executive {
    border-top: 3px solid var(--prisma-watch);
  }

  .mobile-escalation-priority-strip>a.management {
    border-top: 3px solid var(--prisma-info);
  }

  .mobile-escalation-priority-strip>a.active {
    background: color-mix(in srgb, var(--prisma-primary) 5%, var(--prisma-surface));
    border-color: color-mix(in srgb, var(--prisma-primary) 28%, var(--prisma-border));
  }

  .mobile-escalation-filters,
  .mobile-escalation-detail,
  .mobile-escalation-queue,
  .mobile-escalation-actions-note {
    border: 1px solid var(--prisma-border);
    border-radius: 14px;
    background: var(--prisma-surface);
  }

  .mobile-escalation-filters>summary {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-escalation-filters>summary::-webkit-details-marker {
    display: none;
  }

  .mobile-escalation-filters>summary span small,
  .mobile-escalation-filters>summary span strong {
    display: block;
  }

  .mobile-escalation-filters>summary span small {
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
    font-weight: 800;
    letter-spacing: .06em;
  }

  .mobile-escalation-filters>summary span strong {
    margin-top: 2px;
    color: var(--prisma-text);
    font-size: 9.5px;
  }

  .mobile-escalation-filters>summary>b {
    min-width: 24px;
    padding: 4px 6px;
    border-radius: 999px;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-muted);
    text-align: center;
    font-size: 8px;
  }

  .mobile-escalation-filters>summary>i {
    color: var(--prisma-text-subtle);
    font-size: 11px;
    font-style: normal;
    transition: transform .15s ease;
  }

  .mobile-escalation-filters[open]>summary>i {
    transform: rotate(180deg);
  }

  .mobile-escalation-filter-body {
    display: grid;
    gap: 9px;
    padding: 0 12px 12px;
    border-top: 1px solid var(--prisma-border-subtle);
  }

  .mobile-escalation-filter-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 9px 0 1px;
    scrollbar-width: none;
  }

  .mobile-escalation-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .mobile-escalation-filter-chips a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid var(--prisma-border);
    border-radius: 999px;
    color: var(--prisma-text-muted);
    background: var(--prisma-surface);
    text-decoration: none;
    font-size: 7.5px;
    font-weight: 700;
  }

  .mobile-escalation-filter-chips a.active {
    color: var(--prisma-primary);
    border-color: color-mix(in srgb, var(--prisma-primary) 28%, var(--prisma-border));
    background: color-mix(in srgb, var(--prisma-primary) 5%, var(--prisma-surface));
  }

  .mobile-escalation-filter-body form label {
    display: grid;
    gap: 4px;
    color: var(--prisma-text-subtle);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .04em;

  }

  .mobile-escalation-filter-body select {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--prisma-border);
    border-radius: 10px;
    background: var(--prisma-surface);
    color: var(--prisma-text);
    font: inherit;
    font-size: 9px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
  }

  .mobile-escalation-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 9px;
  }

  .mobile-escalation-section-head small,
  .mobile-escalation-section-head strong {
    display: block;
  }

  .mobile-escalation-section-head small {
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
    font-weight: 800;
    letter-spacing: .06em;
  }

  .mobile-escalation-section-head strong {
    margin-top: 2px;
    color: var(--prisma-text-strong);
    font-size: 10px;
  }

  .mobile-escalation-section-head>span {
    color: var(--prisma-text-muted);
    font-size: 7.5px;
  }

  .mobile-escalation-queue-list {
    border-top: 1px solid var(--prisma-border-subtle);
  }

  .mobile-escalation-queue-card {
    display: block;
    padding: 12px;
    border-bottom: 1px solid var(--prisma-border-subtle);
    color: inherit;
    text-decoration: none;
  }

  .mobile-escalation-queue-card:last-child {
    border-bottom: 0;
  }

  .mobile-escalation-queue-card.status-decision_required {
    border-left: 3px solid var(--prisma-critical);
  }

  .mobile-escalation-queue-card.status-executive_review {
    border-left: 3px solid var(--prisma-watch);
  }

  .mobile-escalation-queue-card.status-management_review {
    border-left: 3px solid var(--prisma-info);
  }

  .mobile-escalation-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-escalation-card-top>span {
    color: var(--prisma-text-muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .035em;

  }

  .mobile-escalation-card-top>em {
    color: var(--prisma-text-subtle);
    font-size: 7px;
    font-style: normal;
    font-weight: 700;
  }

  .mobile-escalation-card-top>em.overdue {
    color: var(--prisma-critical);
  }

  .mobile-escalation-card-top>em.due_today,
  .mobile-escalation-card-top>em.due_soon {
    color: var(--prisma-info);
  }

  .mobile-escalation-queue-card h3 {
    margin: 7px 0 0;
    color: var(--prisma-text-strong);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-escalation-card-scope {
    margin: 3px 0 0;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
    line-height: 1.35;
  }

  .mobile-escalation-card-reason {
    margin: 9px 0 0;
    padding: 8px 9px;
    border-radius: 9px;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-muted);
    font-size: 8px;
    line-height: 1.45;
  }

  .mobile-escalation-card-reason b {
    display: block;
    margin-bottom: 2px;
    color: var(--prisma-text);
    font-size: 7px;
  }

  .mobile-escalation-card-reason.decision {
    background: color-mix(in srgb, var(--prisma-critical) 5%, var(--prisma-surface));
  }

  .mobile-escalation-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .mobile-escalation-card-meta span {
    color: var(--prisma-text-subtle);
    font-size: 7px;
  }

  .mobile-escalation-card-meta b {
    color: var(--prisma-text);
  }

  .mobile-escalation-card-next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid var(--prisma-border-subtle);
  }

  .mobile-escalation-card-next small,
  .mobile-escalation-card-next strong {
    display: block;
  }

  .mobile-escalation-card-next small {
    color: var(--prisma-text-subtle);
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: .04em;
  }

  .mobile-escalation-card-next strong {
    margin-top: 2px;
    color: var(--prisma-text);
    font-size: 8px;
  }

  .mobile-escalation-card-next i {
    color: var(--prisma-text-subtle);
    font-size: 12px;
    font-style: normal;
  }

  .mobile-escalation-detail {
    overflow: hidden;
  }

  .mobile-escalation-detail-head {
    min-height: 52px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--prisma-border-subtle);
  }

  .mobile-escalation-detail-head>a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--prisma-border);
    border-radius: 10px;
    color: var(--prisma-text);
    text-decoration: none;
    font-size: 13px;
  }

  .mobile-escalation-detail-head small,
  .mobile-escalation-detail-head strong {
    display: block;
  }

  .mobile-escalation-detail-head small {
    color: var(--prisma-text-subtle);
    font-size: 6.5px;
    font-weight: 800;
    letter-spacing: .05em;
  }

  .mobile-escalation-detail-head strong {
    margin-top: 2px;
    color: var(--prisma-text);
    font-size: 9px;
  }

  .mobile-escalation-detail-head>em {
    max-width: 110px;
    color: var(--prisma-text-muted);
    font-size: 6.8px;
    line-height: 1.25;
    text-align: right;
    font-style: normal;
    font-weight: 700;
  }

  .mobile-escalation-detail-head>em.overdue {
    color: var(--prisma-critical);
  }

  .mobile-escalation-detail-head>em.due_today,
  .mobile-escalation-detail-head>em.due_soon {
    color: var(--prisma-info);
  }

  .mobile-escalation-detail-title {
    padding: 12px;
  }

  .mobile-escalation-detail-title h3 {
    margin: 0;
    color: var(--prisma-text-strong);
    font-size: 13px;
    line-height: 1.35;
  }

  .mobile-escalation-detail-title p {
    margin: 4px 0 0;
    color: var(--prisma-text-subtle);
    font-size: 7.5px;
  }

  .mobile-escalation-decision-focus {
    display: grid;
    gap: 5px;
    margin: 0 12px 10px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--prisma-critical) 26%, var(--prisma-border));
    border-radius: 10px;
    background: color-mix(in srgb, var(--prisma-critical) 5%, var(--prisma-surface));
  }

  .mobile-escalation-decision-focus small {
    color: var(--prisma-critical);
    font-size: 6.8px;
    font-weight: 800;
    letter-spacing: .05em;
  }

  .mobile-escalation-decision-focus strong {
    color: var(--prisma-text-strong);
    font-size: 9px;
    line-height: 1.4;
  }

  .mobile-escalation-decision-focus span {
    color: var(--prisma-text-muted);
    font-size: 7.5px;
  }

  .mobile-escalation-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 12px 10px;
    overflow: hidden;
    border: 1px solid var(--prisma-border-subtle);
    border-radius: 10px;
    background: var(--prisma-border-subtle);
  }

  .mobile-escalation-detail-grid>div {
    min-height: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 9px;
    background: var(--prisma-surface);
  }

  .mobile-escalation-detail-grid span {
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
  }

  .mobile-escalation-detail-grid strong {
    color: var(--prisma-text);
    font-size: 8.5px;
  }

  .mobile-escalation-context {
    margin: 0 12px 8px;
    border: 1px solid var(--prisma-border-subtle);
    border-radius: 10px;
    overflow: hidden;
  }

  .mobile-escalation-context>summary {
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
    color: var(--prisma-text);
    font-size: 8.5px;
    font-weight: 800;
  }

  .mobile-escalation-context>summary::-webkit-details-marker {
    display: none;
  }

  .mobile-escalation-context>summary>b {
    min-width: 22px;
    padding: 3px 5px;
    border-radius: 999px;
    background: var(--prisma-surface-subtle);
    color: var(--prisma-text-muted);
    font-size: 7px;
    text-align: center;
  }

  .mobile-escalation-context>summary>i {
    color: var(--prisma-text-subtle);
    font-style: normal;
    transition: transform .15s ease;
  }

  .mobile-escalation-context[open]>summary>i {
    transform: rotate(180deg);
  }

  .mobile-escalation-context>div {
    padding: 9px 10px 10px;
    border-top: 1px solid var(--prisma-border-subtle);
  }

  .mobile-escalation-context>div>p {
    margin: 0 0 8px;
    color: var(--prisma-text-muted);
    font-size: 8px;
    line-height: 1.5;
  }

  .mobile-escalation-context>div>p:last-child {
    margin-bottom: 0;
  }

  .mobile-escalation-context>div>p b {
    display: block;
    margin-bottom: 2px;
    color: var(--prisma-text);
    font-size: 7px;
  }

  .mobile-escalation-audit-list {
    display: grid;
    gap: 0;
  }

  .mobile-escalation-audit-list>div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 6px;
    padding: 0 0 10px;
  }

  .mobile-escalation-audit-list>div:last-child {
    padding-bottom: 0;
  }

  .mobile-escalation-audit-list>div>span {
    width: 6px;
    height: 6px;
    margin-top: 4px;
    border-radius: 999px;
    background: var(--prisma-primary);
  }

  .mobile-escalation-audit-list p {
    margin: 0;
  }

  .mobile-escalation-audit-list p b,
  .mobile-escalation-audit-list p small,
  .mobile-escalation-audit-list p em {
    display: block;
  }

  .mobile-escalation-audit-list p b {
    color: var(--prisma-text);
    font-size: 7.5px;
    text-transform: capitalize;
  }

  .mobile-escalation-audit-list p small {
    margin-top: 2px;
    color: var(--prisma-text-subtle);
    font-size: 6.8px;
    line-height: 1.35;
  }

  .mobile-escalation-audit-list p em {
    margin-top: 3px;
    color: var(--prisma-text-muted);
    font-size: 7.2px;
    line-height: 1.4;
    font-style: normal;
  }

  .mobile-escalation-detail-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px 12px 12px;
  }

  .mobile-escalation-detail-links a {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border: 1px solid var(--prisma-border);
    border-radius: 9px;
    color: var(--prisma-primary);
    text-decoration: none;
    text-align: center;
    font-size: 7.5px;
    font-weight: 800;
  }

  .mobile-escalation-readonly-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    margin: 0 12px 12px;
    padding: 9px;
    border-radius: 9px;
    background: var(--prisma-surface-subtle);
  }

  .mobile-escalation-readonly-note b {
    color: var(--prisma-primary);
    font-size: 6.8px;
    letter-spacing: .05em;
  }

  .mobile-escalation-readonly-note span {
    color: var(--prisma-text-muted);
    font-size: 7.2px;
    line-height: 1.4;
  }

  .mobile-escalation-actions-note {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
  }

  .mobile-escalation-actions-note strong {
    color: var(--prisma-text);
    font-size: 8.5px;
  }

  .mobile-escalation-actions-note span {
    color: var(--prisma-text-muted);
    font-size: 7.5px;
    line-height: 1.4;
  }

  .mobile-escalation-empty {
    display: grid;
    gap: 5px;
    padding: 16px 12px;
    border-top: 1px solid var(--prisma-border-subtle);
    text-align: center;
  }

  .mobile-escalation-empty strong {
    color: var(--prisma-text);
    font-size: 9px;
  }

  .mobile-escalation-empty span {
    color: var(--prisma-text-muted);
    font-size: 7.5px;
    line-height: 1.4;
  }

  .mobile-escalation-empty a {
    color: var(--prisma-primary);
    font-size: 7.5px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-escalation-escalation a:focus-visible,
  .mobile-escalation-escalation summary:focus-visible,
  .mobile-escalation-escalation select:focus-visible {
    outline: 2px solid var(--prisma-primary);
    outline-offset: 2px;
  }
}

/* ========================================================================== */
/* Mobile experience — Operational Mobile / Forms / Quick Actions                         */
/* ========================================================================== */
@media (max-width: 640px) {
  .operational-mobile-page {
    --operational-mobile-action-clearance: 70px;
    padding-bottom: calc(var(--operational-mobile-action-clearance) + env(safe-area-inset-bottom, 0px));
  }

  /* Operational pages favor readable, compact content over desktop density. */
  .operational-mobile-page>header,
  .operational-mobile-page header:not(.prisma-topbar) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    margin-bottom: 14px !important;
  }

  .operational-mobile-page>header>div,
  .operational-mobile-page header:not(.prisma-topbar)>div {
    min-width: 0;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .operational-mobile-page header:not(.prisma-topbar) h1 {
    margin-top: 5px !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  .operational-mobile-page header:not(.prisma-topbar) p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .operational-mobile-page .card {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .operational-mobile-page .card+.card {
    margin-top: 10px;
  }

  /* Form controls use a 16px font to avoid iOS input zoom and 44px touch areas. */
  .operational-mobile-page .field {
    margin-bottom: 14px;
  }

  .operational-mobile-page .field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px !important;
    line-height: 1.35;
  }

  .operational-mobile-page input:not([type="hidden"]):not([type="range"]):not([type="checkbox"]):not([type="radio"]),
  .operational-mobile-page select,
  .operational-mobile-page textarea {
    width: 100% !important;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px !important;
    line-height: 1.4;
    border-radius: 10px !important;
  }

  .operational-mobile-page textarea {
    min-height: 104px;
    resize: vertical;
  }

  .operational-mobile-page input[type="file"] {
    min-height: 48px;
    padding: 10px !important;
    font-size: 13px !important;
  }

  .operational-mobile-page input[type="range"] {
    width: 100%;
    min-height: 44px;
    margin: 4px 0;
  }

  .operational-mobile-page input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }

  .operational-mobile-page .form-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  /* Action clusters become thumb-friendly grids instead of long inline rows. */
  .operational-mobile-page .card-actions,
  .operational-mobile-page .modal-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
  }

  .operational-mobile-page .card-actions>*,
  .operational-mobile-page .modal-actions>* {
    width: 100% !important;
    min-height: 44px;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .operational-mobile-page .card-actions form {
    display: contents !important;
  }

  .operational-mobile-page .card-actions form>button,
  .operational-mobile-page .card-actions form>.btn {
    width: 100% !important;
    min-height: 44px;
  }

  .operational-mobile-page .btn,
  .operational-mobile-page button,
  .operational-mobile-page .btn-back-inline,
  .operational-mobile-page a.btn {
    min-height: 44px;
  }

  /* Timeline/history stays readable and exposes actions without tiny tap targets. */
  .operational-mobile-page .timeline {
    padding-left: 18px !important;
  }

  .operational-mobile-page .timeline-item {
    padding-bottom: 18px !important;
  }

  .operational-mobile-page .timeline-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px !important;
    margin-top: 6px;
  }

  .operational-mobile-page .timeline-actions a,
  .operational-mobile-page .attachment-view-btn {
    min-height: 36px;
    display: inline-flex !important;
    align-items: center;
    padding: 6px 8px !important;
    border-radius: 8px;
    text-decoration: none !important;
  }

  /* Existing desktop modals become conservative mobile bottom sheets. */
  .operational-mobile-page .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .operational-mobile-page .modal-overlay>.modal {
    width: 100% !important;
    max-width: none !important;
    max-height: min(88dvh, 760px) !important;
    margin: 0 !important;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -14px 36px rgba(15, 23, 42, .18) !important;
  }

  .operational-mobile-page .modal-overlay>.modal::before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    margin: -6px auto 12px;
    border-radius: 999px;
    background: #d7dce6;
  }

  .operational-mobile-page .modal-actions {
    position: sticky;
    bottom: calc(-16px - env(safe-area-inset-bottom, 0px));
    z-index: 2;
    margin: 16px -16px calc(-16px - env(safe-area-inset-bottom, 0px));
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--prisma-border-subtle, #e5e7eb);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
  }

  /* Legacy iframe progress viewers fill the viewport as a sheet on phone. */
  .operational-mobile-page #poin-popup,
  .operational-mobile-page #ap-popup {
    align-items: flex-end !important;
  }

  .operational-mobile-page #poin-popup>div,
  .operational-mobile-page #ap-popup>div {
    width: 100% !important;
    max-width: none !important;
    max-height: 90dvh !important;
    border-radius: 18px 18px 0 0 !important;
  }

  .operational-mobile-page #poin-popup iframe,
  .operational-mobile-page #ap-popup iframe {
    min-height: 65dvh !important;
  }

  /* Drag reorder remains desktop/tablet behavior; phones prioritize safe updates. */
  .operational-mobile-page .drag-handle {
    display: none !important;
  }

  /* Primary mobile quick action sits above the Mobile experience bottom navigation. */
  .operational-mobile-quick-action {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    z-index: 7800;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    backdrop-filter: blur(14px);
  }

  .operational-mobile-quick-action button,
  .operational-mobile-quick-action a {
    flex: 1;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--prisma-primary, #152744);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
  }

  .operational-mobile-quick-action .operational-mobile-quick-back {
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid var(--prisma-border, #d9dee8);
    background: #fff;
    color: var(--prisma-text, #182033);
    font-size: 18px;
  }

  .operational-mobile-primary-form-target {
    scroll-margin-top: 92px;
    outline: 2px solid transparent;
    outline-offset: 4px;
    transition: outline-color .18s ease;
  }

  .operational-mobile-primary-form-target.operational-mobile-highlight {
    outline-color: rgba(36, 78, 128, .28);
  }

  /* Prevent double-tap submissions from looking unresponsive. */
  .operational-mobile-page form.is-submitting [type="submit"] {
    opacity: .68;
    cursor: wait;
  }

  .operational-mobile-page :focus-visible {
    outline: 2px solid var(--prisma-primary, #244e80);
    outline-offset: 2px;
  }
}

@media (min-width: 641px) {
  .operational-mobile-quick-action {
    display: none !important;
  }
}

/* ========================================================================== */
/* Mobile experience — PWA Foundation + Accessibility + Final QA                         */
/* ========================================================================== */
.prisma-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.prisma-connectivity-banner,
.prisma-pwa-update {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 10050;
  width: min(calc(100% - 32px), 620px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .18);
  color: var(--prisma-text, #182033);
}

.prisma-connectivity-banner strong {
  color: #9a3412;
}

.prisma-connectivity-banner span,
.prisma-pwa-update span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--prisma-text-muted, #667085);
}

.prisma-pwa-update>div {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.prisma-pwa-update strong {
  color: var(--prisma-primary, #152744);
  font-size: 13px;
}

.prisma-pwa-update button {
  min-height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: var(--prisma-primary, #152744);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.prisma-pwa-update button:focus-visible {
  outline: 3px solid #7aa2d8;
  outline-offset: 2px;
}

/* Global focus treatment; complements component-specific rules. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--prisma-primary, #244e80);
  outline-offset: 2px;
}

/* Avoid animation-heavy transitions for users requesting reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Increased contrast preference without changing semantic status colors. */
@media (prefers-contrast: more) {

  .card,
  .prisma-panel,
  .prisma-mobile-scope-sheet,
  .prisma-sidebar {
    border-color: #9aa4b2 !important;
  }

  .prisma-nav-item,
  .prisma-nav-child,
  .prisma-mobile-bottom-item {
    text-decoration-thickness: 2px;
  }
}

@media (max-width:640px) {

  .prisma-connectivity-banner,
  .prisma-pwa-update {
    left: 10px;
    right: 10px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    width: auto;
    transform: none;
    align-items: flex-start;
  }

  .prisma-connectivity-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .prisma-pwa-update {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  /* Mobile experience final accessible touch targets. */
  .prisma-mobile-bottom-item,
  .prisma-mobile-scope-trigger,
  .prisma-mobile-scope-option,
  .prisma-mobile-sheet-close,
  .prisma-menu-toggle,
  .prisma-icon-btn,
  .prisma-user-pill {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ===== Executive analytics Executive Analytics & Chart Coverage ===== */
.monitoring-chart-analytics {
  margin: 18px 22px 24px;
}

.monitoring-chart-analytics-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.monitoring-chart-analytics-head>div {
  display: grid;
  gap: 3px;
}

.monitoring-chart-analytics-head span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #8190a5;
}

.monitoring-chart-analytics-head strong {
  font-size: 18px;
  color: #0f172a;
}

.monitoring-chart-analytics-head small {
  font-size: 12px;
  color: #64748b;
}

.monitoring-chart-analytics-head>b {
  font-size: 10px;
  letter-spacing: .08em;
  color: #475569;
  border: 1px solid #d8e0ea;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
}

.monitoring-chart-grid {
  display: grid;
  gap: 12px;
}

.monitoring-chart-grid.monitoring-chart-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.monitoring-chart-grid.monitoring-chart-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.monitoring-chart-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.monitoring-chart-card.monitoring-chart-wide {
  grid-column: span 1;
}

.monitoring-chart-title {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.monitoring-chart-title span {
  font-size: 13px;
  font-weight: 750;
  color: #172033;
}

.monitoring-chart-title small {
  font-size: 10px;
  color: #7b8798;
  line-height: 1.35;
}

.monitoring-chart-box {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 210px;
}

.monitoring-chart-box.monitoring-chart-tall {
  height: 250px;
}

.monitoring-chart-card>a {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
  font-size: 11px;
  font-weight: 700;
  color: #315f96;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .monitoring-chart-grid.monitoring-chart-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {

  /* Inline desktop column declarations must never squeeze charts on phones. */
  .charts-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .charts-grid>.chart-card {
    grid-column: span 1 !important;
    min-width: 0 !important;
  }

  .chart-card {
    padding: 14px;
    border-radius: 14px;
  }

  .chart-box {
    height: 240px !important;
    min-width: 0;
    width: 100%;
  }

  .chart-title {
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .04em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .monitoring-chart-analytics {
    margin: 14px 0 18px;
  }

  .monitoring-chart-analytics-head {
    align-items: flex-start;
  }

  .monitoring-chart-analytics-head strong {
    font-size: 16px;
  }

  .monitoring-chart-analytics-head small {
    font-size: 11px;
  }

  .monitoring-chart-grid.monitoring-chart-four,
  .monitoring-chart-grid.monitoring-chart-two {
    grid-template-columns: 1fr;
  }

  .monitoring-chart-card,
  .monitoring-chart-card.monitoring-chart-wide {
    grid-column: span 1 !important;
    padding: 14px;
  }

  .monitoring-chart-box,
  .monitoring-chart-box.monitoring-chart-tall {
    height: 260px;
  }

  .monitoring-chart-title span {
    font-size: 14px;
  }

  .monitoring-chart-title small {
    font-size: 11px;
  }
}

/* ===== Budget and financial analytics — Budget/RKA & Financial Executive Analytics ===== */
.finance {
  margin: 20px 0 26px;
  display: grid;
  gap: 14px
}

.finance-hero {
  background: #172f42;
  color: #fff;
  border: 1px solid #173247;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06)
}

.finance-title {
  min-width: 0;
  max-width: 720px
}

.finance-title>span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #a9bac8;
  margin-bottom: 6px
}

.finance-title h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2
}

.finance-title p {
  margin: 7px 0 0;
  color: #d6e0e7;
  font-size: 12px;
  line-height: 1.55
}

.finance-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  gap: 10px;
  min-width: min(520px, 48%)
}

.finance-hero-kpis>div {
  border-left: 1px solid rgba(255, 255, 255, .16);
  padding: 4px 0 4px 14px;
  display: grid;
  gap: 3px
}

.finance-hero-kpis small {
  font-size: 9px;
  letter-spacing: .08em;
  color: #9fb1bf
}

.finance-hero-kpis strong {
  font-size: 18px;
  color: #fff;
  white-space: nowrap
}

.finance-hero-kpis .positive strong {
  color: #d8f3df
}

.finance-hero-kpis .danger strong {
  color: #ffd5d5
}

.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.finance-kpi-grid article {
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  padding: 14px 15px;
  display: grid;
  gap: 4px;
  min-width: 0
}

.finance-kpi-grid span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #7d8ba0
}

.finance-kpi-grid strong {
  font-size: 20px;
  color: #102033
}

.finance-kpi-grid small {
  font-size: 10px;
  color: #7a8798;
  white-space: normal
}

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

.finance-card {
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  padding: 14px;
  min-width: 0
}

.finance-card.finance-wide {
  grid-column: span 2
}

.finance-card.finance-full {
  grid-column: 1/-1
}

.finance-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px
}

.finance-card-head>div {
  display: grid;
  gap: 2px;
  min-width: 0
}

.finance-card-head span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  color: #8291a4
}

.finance-card-head strong {
  font-size: 13px;
  color: #13263a
}

.finance-card-head small,
.finance-card-head a {
  font-size: 10px;
  color: #718096;
  text-decoration: none;
  white-space: nowrap
}

.finance-card-head a {
  color: #245b8a;
  font-weight: 700
}

.finance-chart-box {
  position: relative;
  height: 220px;
  width: 100%;
  min-width: 0
}

.finance-chart-box.finance-chart-wide {
  height: 220px
}

.finance-chart-box.finance-chart-tall {
  height: 270px
}

.finance-chart-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf1f5;
  padding-top: 9px;
  font-size: 10px;
  color: #718096
}

.finance-chart-caption span {
  display: grid;
  gap: 2px
}

.finance-chart-caption b {
  color: #172f42;
  font-size: 11px
}

.finance-note {
  font-size: 10px;
  line-height: 1.55;
  color: #66758a;
  background: #f8fafc;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  padding: 10px 12px
}

.finance-note code {
  font-size: 10px;
  color: #334155;
  background: #eef2f6;
  border-radius: 4px;
  padding: 1px 4px
}

@media(max-width:980px) {
  .finance-hero {
    align-items: flex-start;
    flex-direction: column
  }

  .finance-hero-kpis {
    width: 100%;
    min-width: 0
  }

  .finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .finance-card.finance-wide {
    grid-column: span 1
  }

  .finance-card.finance-full {
    grid-column: 1/-1
  }

  .finance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:640px) {
  .finance {
    margin: 14px 0 20px;
    gap: 10px
  }

  .finance-hero {
    border-radius: 12px;
    padding: 16px 14px;
    gap: 14px
  }

  .finance-title h2 {
    font-size: 18px
  }

  .finance-title p {
    font-size: 11px
  }

  .finance-hero-kpis {
    grid-template-columns: 1fr;
    gap: 0
  }

  .finance-hero-kpis>div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 9px 0
  }

  .finance-hero-kpis strong {
    font-size: 17px
  }

  .finance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .finance-kpi-grid article {
    padding: 12px
  }

  .finance-kpi-grid strong {
    font-size: 18px
  }

  .finance-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .finance-card,
  .finance-card.finance-wide,
  .finance-card.finance-full {
    grid-column: 1;
    padding: 12px
  }

  .finance-card-head {
    align-items: flex-start
  }

  .finance-card-head a,
  .finance-card-head>small {
    white-space: normal;
    text-align: right
  }

  .finance-chart-box,
  .finance-chart-box.finance-chart-wide {
    height: 260px
  }

  .finance-chart-box.finance-chart-tall {
    height: 300px
  }

  .finance-chart-caption {
    flex-direction: column
  }

  .finance-note {
    font-size: 9px
  }
}

/* ========================================================================== */
/* Financial planning projection — Executive Portfolio Projection & Financial Planning               */
/* ========================================================================== */
.planning-projection {
  margin: 20px 0 28px;
  display: grid;
  gap: 12px
}

.planning-projection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 14px
}

.planning-projection-head>div:first-child {
  max-width: 760px
}

.planning-projection-head>div:first-child>span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  color: #738499;
  margin-bottom: 5px
}

.planning-projection-head h2 {
  font-size: 19px;
  line-height: 1.25;
  color: #14283a;
  margin: 0
}

.planning-projection-head p {
  font-size: 11px;
  line-height: 1.55;
  color: #66758a;
  margin: 6px 0 0
}

.planning-focus-year {
  min-width: 150px;
  padding-left: 16px;
  border-left: 1px solid #e1e7ed;
  display: grid;
  gap: 2px
}

.planning-focus-year small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #8795a6
}

.planning-focus-year strong {
  font-size: 24px;
  color: #173247
}

.planning-focus-year span {
  font-size: 9px;
  color: #7b8797
}

.planning-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.planning-kpis article {
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  min-width: 0
}

.planning-kpis span {
  font-size: 9px;
  font-weight: 700;
  color: #6f7f91
}

.planning-kpis strong {
  font-size: 18px;
  color: #13263a;
  white-space: nowrap
}

.planning-kpis small {
  font-size: 9px;
  color: #8a96a5
}

.planning-kpis .positive strong,
.planning-summary-list .positive dd {
  color: #2f6f4e
}

.planning-kpis .danger strong,
.planning-summary-list .danger dd,
.planning-year-row .danger {
  color: #b42318
}

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

.planning-card {
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  padding: 14px;
  min-width: 0
}

.planning-card.planning-wide {
  grid-column: span 2
}

.planning-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px
}

.planning-card-head>div {
  display: grid;
  gap: 2px
}

.planning-card-head span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  color: #8492a3
}

.planning-card-head strong {
  font-size: 13px;
  color: #162b3f
}

.planning-card-head small {
  font-size: 9px;
  color: #8492a3;
  text-align: right
}

.planning-chart {
  height: 230px;
  position: relative;
  min-width: 0
}

.planning-chart.planning-chart-tall {
  height: 270px
}

.planning-coverage-value {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 8px
}

.planning-coverage-value strong {
  font-size: 28px;
  color: #173247
}

.planning-coverage-value span {
  font-size: 9px;
  color: #8290a0
}

.planning-progress {
  height: 7px;
  border-radius: 999px;
  background: #edf1f5;
  overflow: hidden
}

.planning-progress i {
  height: 100%;
  display: block;
  border-radius: 999px;
  background: #274c77
}

.planning-mini-list,
.planning-summary-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0
}

.planning-mini-list>div,
.planning-summary-list>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #edf1f5
}

.planning-mini-list dt,
.planning-summary-list dt {
  font-size: 9px;
  color: #738196
}

.planning-mini-list dd,
.planning-summary-list dd {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  color: #26394b
}

.planning-summary-list dd {
  font-size: 12px
}

.planning-detail-link {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf1f5;
  color: #245b8a;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none
}

.planning-year-table {
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 12px;
  overflow: hidden
}

.planning-year-table-head,
.planning-year-row {
  display: grid;
  grid-template-columns: .75fr .75fr 1.25fr 1.25fr .8fr 1.1fr;
  gap: 10px;
  align-items: center
}

.planning-year-table-head {
  padding: 9px 12px;
  background: #f5f7f9;
  border-bottom: 1px solid #dce3ea;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #78889b;
}

.planning-year-row {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  text-decoration: none;
  color: #34475a;
  font-size: 10px
}

.planning-year-row:last-child {
  border-bottom: 0
}

.planning-year-row:hover {
  background: #fafcfd
}

.planning-year-row strong {
  font-size: 11px;
  color: #173247
}

.planning-year-row .positive {
  color: #2f6f4e
}

.planning-note {
  font-size: 9px;
  line-height: 1.55;
  color: #66758a;
  background: #f8fafc;
  border: 1px solid #e4e9ef;
  border-radius: 10px;
  padding: 10px 12px
}

.planning-note code {
  font-size: 9px;
  color: #334155;
  background: #eef2f6;
  border-radius: 4px;
  padding: 1px 4px
}

@media(max-width:980px) {
  .planning-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .planning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .planning-card.planning-wide {
    grid-column: span 2
  }

  .planning-year-table {
    overflow-x: auto
  }

  .planning-year-table-head,
  .planning-year-row {
    min-width: 760px
  }
}

@media(max-width:640px) {
  .planning-projection {
    margin: 14px 0 22px;
    gap: 10px
  }

  .planning-projection-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
    border-radius: 12px
  }

  .planning-projection-head h2 {
    font-size: 17px
  }

  .planning-projection-head p {
    font-size: 10px
  }

  .planning-focus-year {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid #e5eaf0;
    grid-template-columns: auto 1fr;
    align-items: end
  }

  .planning-focus-year small {
    grid-column: 1/-1
  }

  .planning-focus-year strong {
    font-size: 21px
  }

  .planning-focus-year span {
    text-align: right
  }

  .planning-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .planning-kpis article {
    padding: 11px
  }

  .planning-kpis strong {
    font-size: 15px;
    white-space: normal
  }

  .planning-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .planning-card,
  .planning-card.planning-wide {
    grid-column: 1;
    padding: 12px
  }

  .planning-card-head small {
    white-space: normal
  }

  .planning-chart,
  .planning-chart.planning-chart-tall {
    height: 280px
  }

  .planning-year-table {
    border-radius: 10px
  }

  .planning-year-table-head {
    display: none
  }

  .planning-year-row {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
    padding: 11px 12px;
    gap: 6px 12px
  }

  .planning-year-row>* {
    display: grid;
    gap: 2px
  }

  .planning-year-row strong {
    grid-column: 1/-1;
    font-size: 13px
  }

  .planning-year-row span:nth-child(2)::before {
    content: 'Work items';
    font-size: 8px;
    color: #8a96a5;
    font-weight: 500
  }

  .planning-year-row span:nth-child(3)::before {
    content: 'Budget';
    font-size: 8px;
    color: #8a96a5;
    font-weight: 500
  }

  .planning-year-row span:nth-child(4)::before {
    content: 'Commitment';
    font-size: 8px;
    color: #8a96a5;
    font-weight: 500
  }

  .planning-year-row span:nth-child(5)::before {
    content: 'Coverage';
    font-size: 8px;
    color: #8a96a5;
    font-weight: 500
  }

  .planning-year-row span:nth-child(6)::before {
    content: 'Planning gap';
    font-size: 8px;
    color: #8a96a5;
    font-weight: 500
  }

  .planning-note {
    font-size: 9px
  }
}

/* ===== Capex/Opex chart refinement Capex/Opex chart refinement ===== */
.budget-task-analytics-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 4px 0 10px;
  padding: 0 2px
}

.budget-task-analytics-head>div {
  display: grid;
  gap: 2px
}

.budget-task-analytics-head span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7c8b9d
}

.budget-task-analytics-head strong {
  font-size: 15px;
  color: #152b3e
}

.budget-task-analytics-head small {
  font-size: 10px;
  color: #7b8797;
  line-height: 1.45
}

.task-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 14px
}

.task-chart-grid .chart-card {
  min-width: 0;
  height: 100%
}

.task-chart-grid .task-chart-status,
.task-chart-grid .task-chart-pic {
  grid-column: span 1
}

.task-chart-grid .task-summary-chart-box {
  height: 238px
}

.task-chart-grid .task-chart-progress {
  grid-column: 1/-1
}

.task-chart-grid .task-progress-box {
  height: 300px
}

.chart-title-note {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
  color: #8a96a5;
  text-transform: none;
  letter-spacing: 0
}

@media(max-width:980px) {
  .task-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }

  .task-chart-grid .task-chart-status,
  .task-chart-grid .task-chart-pic {
    grid-column: span 1
  }

  .task-chart-grid .task-chart-progress {
    grid-column: 1/-1
  }
}

@media(max-width:640px) {
  .budget-task-analytics-head {
    margin-top: 2px
  }

  .budget-task-analytics-head strong {
    font-size: 14px
  }

  .budget-task-analytics-head small {
    font-size: 9px
  }

  .task-chart-grid {
    grid-template-columns: 1fr !important;
    gap: 10px
  }

  .task-chart-grid .task-chart-status,
  .task-chart-grid .task-chart-pic,
  .task-chart-grid .task-chart-progress {
    grid-column: 1
  }

  .task-chart-grid .task-summary-chart-box {
    height: 250px !important
  }

  .task-chart-grid .task-progress-box {
    height: 300px !important
  }
}

/* ===== Non Budget chart refinement Non Budget chart refinement ===== */
.nonbudget-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 14px
}

.nonbudget-chart-grid .chart-card {
  min-width: 0;
  height: 100%
}

.nonbudget-chart-grid .nb-chart-status,
.nonbudget-chart-grid .nb-chart-pic,
.nonbudget-chart-grid .nb-chart-pct,
.nonbudget-chart-grid .nb-chart-dist {
  grid-column: span 1
}

.nonbudget-chart-grid .nb-chart-progress {
  grid-column: 1/-1
}

.nonbudget-chart-grid .nb-chart-box {
  height: 220px
}

.nonbudget-chart-grid .nb-chart-progress-box {
  height: 280px
}

.nonbudget-chart-grid .chart-title {
  display: flex;
  flex-direction: column;
  gap: 2px
}

@media(max-width:980px) {
  .nonbudget-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }

  .nonbudget-chart-grid .nb-chart-progress {
    grid-column: 1/-1
  }
}

@media(max-width:640px) {
  .nonbudget-chart-grid {
    grid-template-columns: 1fr !important;
    gap: 10px
  }

  .nonbudget-chart-grid .nb-chart-status,
  .nonbudget-chart-grid .nb-chart-pic,
  .nonbudget-chart-grid .nb-chart-pct,
  .nonbudget-chart-grid .nb-chart-dist,
  .nonbudget-chart-grid .nb-chart-progress {
    grid-column: 1
  }

  .nonbudget-chart-grid .nb-chart-box,
  .nonbudget-chart-grid .nb-chart-progress-box {
    height: 250px !important
  }
}

/* ===== Mon RKA progress-only view Mon RKA progress-only view for Team user ===== */
.rka-team-progress-card {
  min-width: 0
}

.rka-team-progress-wide {
  grid-column: span 2
}

.rka-team-chart-box {
  height: 260px
}

.rka-team-progress-box {
  height: 320px
}

@media(max-width:980px) {
  .rka-team-progress-wide {
    grid-column: 1 / -1
  }
}

@media(max-width:640px) {
  .rka-team-progress-wide {
    grid-column: span 1
  }

  .rka-team-chart-box {
    height: 240px
  }

  .rka-team-progress-box {
    height: 280px
  }
}

/* ===== Mon RKA analytics refinement Mon RKA page-specific analytics refinement ===== */
.rka-monitoring-analytics {
  display: grid;
  gap: 14px;
  margin: 0 0 22px
}

.rka-monitoring-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2px
}

.rka-monitoring-head>div {
  display: grid;
  gap: 2px
}

.rka-monitoring-head span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7c8b9d
}

.rka-monitoring-head strong {
  font-size: 16px;
  color: #152b3e
}

.rka-monitoring-head small {
  font-size: 10px;
  line-height: 1.45;
  color: #7b8797
}

.rka-monitoring-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.rka-monitoring-kpis article {
  background: #fff;
  border: 1px solid #dfe5ed;
  border-radius: 13px;
  padding: 14px;
  display: grid;
  gap: 5px;
  min-width: 0
}

.rka-monitoring-kpis span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #8190a4
}

.rka-monitoring-kpis strong {
  font-size: 18px;
  color: #152b3e
}

.rka-monitoring-kpis small {
  font-size: 9px;
  color: #8390a0
}

.rka-monitoring-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: stretch
}

.rka-monitoring-grid .rka-main-chart {
  grid-column: 1/-1
}

.rka-main-chart-box {
  height: 330px
}

.rka-secondary-chart-box {
  height: 260px
}

.rka-monitoring-grid .chart-card {
  min-width: 0;
  height: 100%
}

@media(max-width:980px) {
  .rka-monitoring-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .rka-monitoring-grid {
    grid-template-columns: 1fr 1fr
  }

  .rka-monitoring-grid .rka-main-chart {
    grid-column: 1/-1
  }
}

@media(max-width:640px) {
  .rka-monitoring-analytics {
    gap: 10px;
    margin-bottom: 16px
  }

  .rka-monitoring-head strong {
    font-size: 14px
  }

  .rka-monitoring-head small {
    font-size: 9px
  }

  .rka-monitoring-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
  }

  .rka-monitoring-kpis article {
    padding: 11px
  }

  .rka-monitoring-kpis strong {
    font-size: 15px
  }

  .rka-monitoring-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .rka-monitoring-grid .rka-main-chart,
  .rka-monitoring-grid .rka-progress-dist,
  .rka-monitoring-grid .rka-progress-items {
    grid-column: 1
  }

  .rka-main-chart-box,
  .rka-secondary-chart-box {
    height: 280px !important
  }
}

/* ===== Operational chart simplification Operational user chart simplification ===== */
.task-chart-grid-simple {
  grid-template-columns: 1fr !important
}

.task-chart-grid-simple .task-chart-progress {
  grid-column: 1/-1
}

.task-chart-grid-simple .task-progress-box {
  height: 320px
}

.nonbudget-chart-grid-simple {
  grid-template-columns: 1fr !important
}

.nonbudget-chart-grid-simple .nb-chart-only {
  grid-column: 1/-1;
  max-width: none
}

.nonbudget-chart-grid-simple .nb-chart-only-box {
  height: 300px
}

@media(max-width:640px) {

  .task-chart-grid-simple .task-progress-box,
  .nonbudget-chart-grid-simple .nb-chart-only-box {
    height: 280px !important
  }
}

/* ===== Direction and action chart refinement Direction & Action chart refinement ===== */
.direction-chart-grid,
.todo-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 14px
}

.direction-chart-grid .chart-card,
.todo-chart-grid .chart-card {
  min-width: 0;
  height: 100%
}

.direction-summary-card,
.todo-status-card,
.todo-priority-card {
  grid-column: span 1
}

.direction-summary-box {
  height: 238px
}

.direction-progress-card,
.todo-assignee-card {
  grid-column: 3/-1
}

.direction-progress-box {
  height: 300px
}

.direction-chart-grid-simple .direction-progress-card,
.todo-chart-grid-simple .todo-status-card {
  grid-column: 1/-1
}

.todo-chart-grid-simple {
  grid-template-columns: 1fr !important
}

.todo-chart-grid-simple .direction-summary-box {
  height: 260px
}

@media(max-width:980px) {

  .direction-chart-grid,
  .todo-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }

  .direction-progress-card,
  .todo-assignee-card {
    grid-column: 1/-1
  }
}

@media(max-width:640px) {

  .direction-chart-grid,
  .todo-chart-grid {
    grid-template-columns: 1fr !important;
    gap: 10px
  }

  .direction-summary-card,
  .direction-progress-card,
  .todo-status-card,
  .todo-priority-card,
  .todo-assignee-card {
    grid-column: 1
  }

  .direction-summary-box {
    height: 245px !important
  }

  .direction-progress-box {
    height: 290px !important
  }
}

/* ===== Risk and governance chart refinement Risk & Governance / GRC chart refinement ===== */
.grc-progress-wide {
  grid-column: 1 / -1
}

.grc-progress-box {
  height: 300px
}

.grc-summary-card {
  grid-column: span 1;
  min-width: 0
}

.grc-summary-box {
  height: 230px
}

@media(max-width:980px) {
  .grc-progress-wide {
    grid-column: 1 / -1
  }

  .grc-summary-card {
    grid-column: span 1
  }
}

@media(max-width:640px) {

  .grc-progress-wide,
  .grc-summary-card {
    grid-column: 1
  }

  .grc-progress-box {
    height: 300px
  }

  .grc-summary-box {
    height: 240px
  }
}

/* ===== Group overview and Direksi navigation Group Overview / Direksi + operational navigation refinement ===== */
@media(max-width:640px) {
  .prisma-mobile-bottom-nav.operational-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.direksi-overview-analytics .monitoring-chart-analytics-head {
  margin-bottom: 12px
}

.direksi-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px
}

.direksi-overview-grid .monitoring-chart-card {
  min-height: 300px
}

.direksi-overview-grid .monitoring-chart-box {
  height: 220px
}

@media(max-width:980px) {
  .direksi-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }
}

@media(max-width:640px) {
  .direksi-overview-grid {
    grid-template-columns: 1fr !important
  }

  .direksi-overview-grid .monitoring-chart-card {
    min-height: 0
  }

  .direksi-overview-grid .monitoring-chart-box {
    height: 260px
  }
}

/* ===== Group overview refinement Group Overview refinement ===== */
.prisma-group-overview {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip
}

.prisma-group-overview>* {
  min-width: 0;
  max-width: 100%
}

.prisma-group-overview .role-landing-group>.exec-budget-dashboard {
  order: 1
}

.prisma-group-overview .role-landing-group>.executive-intelligence,
.prisma-group-overview .role-landing-group>.mobile-executive-overview {
  order: 2
}

.prisma-group-overview .role-landing-group>.monitoring-chart-analytics {
  order: 3
}

.prisma-group-overview .role-landing-group>.statsbar {
  order: 4
}

.prisma-group-overview .role-landing-group>.group-overview-modules {
  order: 5
}

.prisma-group-overview .monitoring-chart-grid.monitoring-chart-four {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.prisma-group-overview .monitoring-chart-card {
  min-width: 0;
  overflow: hidden
}

.prisma-group-overview .monitoring-chart-box {
  min-width: 0;
  width: 100%;
  height: 230px
}

.group-overview-modules {
  margin: 18px 0 24px;
  min-width: 0;
  max-width: 100%
}

.group-overview-modules-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 2px
}

.group-overview-modules-head span,
.group-overview-modules-head strong,
.group-overview-modules-head small {
  display: block
}

.group-overview-modules-head span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7c8b9d
}

.group-overview-modules-head strong {
  margin-top: 2px;
  font-size: 15px;
  color: #152b3e
}

.group-overview-modules-head small {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.45;
  color: #7b8797
}

.group-overview-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  width: 100%
}

.group-overview-module-grid>.card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden
}

.group-overview-module-grid>.card .top {
  min-width: 0
}

.group-overview-module-grid>.card .top>div {
  min-width: 0
}

.group-overview-module-grid>.card .title,
.group-overview-module-grid>.card .meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis
}

.group-overview-module-grid>.card a {
  max-width: 100%
}

@media(max-width:980px) {
  .group-overview-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .prisma-group-overview .monitoring-chart-grid.monitoring-chart-four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important
  }
}

@media(max-width:640px) {
  .prisma-group-overview {
    overflow-x: hidden
  }

  .prisma-group-overview .monitoring-chart-grid.monitoring-chart-four {
    grid-template-columns: 1fr !important
  }

  .prisma-group-overview .monitoring-chart-box {
    height: 250px
  }

  .group-overview-modules {
    margin: 14px 0 88px
  }

  .group-overview-modules-head {
    align-items: flex-start
  }

  .group-overview-modules-head strong {
    font-size: 14px
  }

  .group-overview-modules-head small {
    font-size: 9px
  }

  .group-overview-module-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%
  }

  .group-overview-module-grid>.card {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 14px !important
  }

  .group-overview-module-grid>.card .top {
    gap: 8px;
    align-items: flex-start
  }

  .group-overview-module-grid>.card .top a {
    font-size: 10px !important;
    white-space: normal !important;
    text-align: right;
    flex: 0 0 auto
  }

  .group-overview-module-grid>.card [style*="white-space:nowrap"] {
    white-space: normal !important;
    overflow-wrap: anywhere
  }
}


/* ===== Executive attention cleanup Executive Attention cleanup + mobile bottom nav ===== */
@media(max-width:640px) {
  .prisma-mobile-bottom-nav.five-items {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-left: 4px;
    padding-right: 4px
  }

  .prisma-mobile-bottom-nav.four-items {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .prisma-mobile-bottom-nav.five-items .prisma-mobile-bottom-item {
    font-size: 8px;
    padding-left: 1px;
    padding-right: 1px;
    white-space: nowrap
  }

  .prisma-mobile-bottom-nav.five-items .prisma-mobile-bottom-icon {
    width: 20px;
    height: 20px
  }

  .prisma-mobile-bottom-nav.five-items .prisma-mobile-bottom-icon svg {
    width: 18px;
    height: 18px
  }
}

/* ===== Budget overview refinement Budget & RKA overview refinement ===== */
.budget-overview-note {
  font-size: 10px;
  line-height: 1.5;
  color: #617186;
  background: #f8fafc;
  border: 1px solid #e3e9ef;
  border-radius: 10px;
  padding: 10px 12px
}

.budget-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch
}

.budget-overview-grid .finance-card {
  height: 100%
}

@media(max-width:980px) {
  .budget-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .budget-overview-grid .finance-card.finance-wide {
    grid-column: span 1
  }
}

@media(max-width:640px) {
  .budget-overview-note {
    font-size: 9px
  }

  .budget-overview-grid {
    grid-template-columns: 1fr
  }

  .budget-overview-grid .finance-card,
  .budget-overview-grid .finance-card.finance-wide,
  .budget-overview-grid .finance-card.finance-full {
    grid-column: 1
  }
}

/* Cross-domain RKA realization KPI — Cross-domain KPI: Realisasi RKA */
.statsbar .sb-item.sb-progress {
  color: inherit;
  text-decoration: none;
  cursor: pointer
}

.statsbar .sb-item.sb-progress:hover {
  border-color: #cbd5e1;
  background: #fafcff
}

.statsbar .sb-item.sb-progress:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px
}

.statsbar .sb-kpi-note {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap
}


/* ===== Sidebar and favicon stability Sidebar revamp + favicon stability ===== */
.prisma-sidebar {
  background:
    radial-gradient(circle at top right, rgba(245, 179, 53, .10), transparent 24%),
    linear-gradient(180deg, var(--prisma-injourney-navy) 0%, #0a152b 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, .08) !important;
}

.prisma-sidebar-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 6px 16px;
  margin-bottom: 6px;
}

.prisma-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 10px;
  text-decoration: none;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.prisma-sidebar-brand img,
.prisma-sidebar-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, .95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--prisma-injourney-navy);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.prisma-sidebar-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prisma-sidebar-brand-copy strong {
  font-size: 13px;
  letter-spacing: .02em;
  color: #fff;
}

.prisma-sidebar-brand-copy small {
  font-size: 10px;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .04em;
}

.prisma-sidebar-context-card {
  padding: 12px 13px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .84);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prisma-sidebar-context-pill {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--prisma-injourney-gold-soft);
  color: #ffd57b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.prisma-sidebar-context-card strong {
  font-size: 12px;
  color: #fff;
}

.prisma-sidebar-context-card small {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .62);
  line-height: 1.45;
}

.prisma-nav-group {
  gap: 6px;
}

.prisma-nav-label {
  color: rgba(255, 255, 255, .46) !important;
  font-size: 10.5px !important;
  opacity: .72;
  padding: 0 10px 5px;
  margin: 8px 12px 6px;
  white-space: nowrap;
}

.prisma-nav-item,
.prisma-nav-domain-title,
.prisma-nav-child {
  border-radius: 14px !important;
}

.prisma-nav-item,
.prisma-nav-domain-title {
  min-height: 44px;
}

.prisma-nav-item:hover,
.prisma-nav-domain-title:hover,
.prisma-nav-child:hover {
  background: rgba(255, 255, 255, .065) !important;
}

.prisma-nav-item.active,
.prisma-nav-domain.active>.prisma-nav-domain-title,
.prisma-nav-child.active {
  background: linear-gradient(90deg, rgba(245, 179, 53, .22), rgba(245, 179, 53, .08)) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(245, 179, 53, .16);
}

.prisma-nav-item.active::before,
.prisma-nav-child.active::before {
  background: var(--prisma-injourney-gold) !important;
  width: 3px;
  border-radius: 99px;
}

.prisma-nav-icon {
  color: rgba(255, 255, 255, .82);
}

.prisma-nav-item.active .prisma-nav-icon,
.prisma-nav-domain.active>.prisma-nav-domain-title .prisma-nav-icon,
.prisma-nav-child.active {
  color: #fff;
}

.prisma-nav-chevron {
  color: rgba(255, 255, 255, .5);
}

.prisma-nav-children {
  margin-top: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .08);
  margin-left: 14px;
}

.prisma-nav-child {
  padding-left: 14px !important;
  color: rgba(255, 255, 255, .78) !important;
}

.prisma-sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  margin-top: 16px;
}

.prisma-sidebar-company {
  color: rgba(255, 255, 255, .88) !important;
}

.prisma-sidebar-footer small {
  color: rgba(255, 255, 255, .48) !important;
}

.prisma-app.sidebar-collapsed .prisma-sidebar-head,
.prisma-app.sidebar-collapsed .prisma-sidebar-footer {
  display: none !important;
}

.prisma-app.sidebar-collapsed .prisma-sidebar {
  padding-top: 14px;
}

@media (max-width: 820px) {
  .prisma-sidebar-head {
    padding-right: 4px;
  }

  .prisma-sidebar-brand,
  .prisma-sidebar-context-card {
    border-radius: 14px;
  }
}

/* ===== Global Search + Monitoring List Pagination ===== */
.prisma-global-search-trigger {
  width: auto !important;
  min-width: 44px;
  gap: 7px;
  padding: 0 11px !important
}

.prisma-search-icon {
  font-size: 20px;
  line-height: 1
}

.prisma-search-trigger-label {
  font-size: 11px;
  font-weight: 700;
  color: #344054
}

.prisma-global-search-trigger kbd {
  border: 1px solid #dfe3ea;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f8fafc;
  color: #98a2b3;
  font: 600 9px/1 system-ui;
  padding: 4px 5px
}

.prisma-global-search[hidden] {
  display: none !important
}

.prisma-global-search {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 18px 24px
}

.prisma-global-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 17, 34, .48);
  backdrop-filter: blur(5px)
}

.prisma-global-search-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dde3eb;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
  overflow: hidden
}

.prisma-global-search-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #edf0f4
}

.prisma-global-search-input-wrap {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px
}

.prisma-global-search-leading {
  font-size: 23px;
  color: #667085;
  text-align: center
}

.prisma-global-search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  color: #172033;
  padding: 10px 0
}

.prisma-global-search-input-wrap input::placeholder {
  color: #98a2b3;
  font-weight: 500
}

.prisma-global-search-close {
  border: 1px solid #e1e5eb;
  background: #f8fafc;
  border-radius: 7px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 8px;
  cursor: pointer
}

.prisma-global-search-head p {
  margin: 3px 0 0 36px;
  font-size: 10px;
  color: #667085
}

.prisma-global-search-head p span {
  color: #98a2b3
}

.prisma-global-search-results {
  overflow: auto;
  padding: 10px;
  overscroll-behavior: contain
}

.prisma-global-search-empty,
.prisma-global-search-loading {
  padding: 44px 18px;
  text-align: center;
  color: #87909d;
  font-size: 12px
}

.prisma-global-search-group+.prisma-global-search-group {
  margin-top: 12px
}

.prisma-global-search-group h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 8px;
  font-size: 10px;
  letter-spacing: .08em;
  color: #667085
}

.prisma-global-search-group h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px
}

.prisma-global-search-list {
  border: 1px solid #edf0f4;
  border-radius: 12px;
  overflow: hidden
}

.prisma-global-search-result {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-bottom: 1px solid #f0f2f5
}

.prisma-global-search-result:last-child {
  border-bottom: 0
}

.prisma-global-search-result:hover,
.prisma-global-search-result:focus-visible {
  background: #f8fafc;
  outline: 0
}

.prisma-global-search-result-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #344054;
  font-size: 13px
}

.prisma-global-search-result-copy {
  min-width: 0
}

.prisma-global-search-result-copy strong,
.prisma-global-search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.prisma-global-search-result-copy strong {
  font-size: 12px;
  color: #1d2939
}

.prisma-global-search-result-copy small {
  margin-top: 3px;
  font-size: 10px;
  color: #98a2b3
}

.prisma-global-search-result-arrow {
  color: #98a2b3;
  font-size: 15px
}

.prisma-search-open {
  overflow: hidden
}

.prisma-list-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 24px;
  padding: 12px 14px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #fff
}

.prisma-list-pagination-info {
  font-size: 11px;
  color: #667085
}

.prisma-list-pagination-info strong {
  color: #344054
}

.prisma-list-pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px
}

.prisma-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700
}

.prisma-page-btn:hover {
  border-color: #b9c4d2;
  background: #f8fafc
}

.prisma-page-btn.active {
  background: #17365d;
  border-color: #17365d;
  color: #fff
}

.prisma-page-btn.disabled {
  pointer-events: none;
  opacity: .38
}

.prisma-page-ellipsis {
  width: 24px;
  text-align: center;
  color: #98a2b3;
  font-size: 11px
}

.prisma-pic-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #fff
}

.prisma-pic-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px
}

.prisma-pic-filter-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #667085
}

.prisma-pic-filter-field select {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  color: #1a1a2e;
  font-size: 13px
}

.prisma-pic-filter-active {
  font-size: 12px;
  color: #667085
}

.prisma-pic-filter-active strong {
  color: #17365d
}

.prisma-pic-filter-clear {
  margin-left: auto
}

@media(max-width:980px) {

  .prisma-search-trigger-label,
  .prisma-global-search-trigger kbd {
    display: none
  }

  .prisma-global-search-trigger {
    width: 40px !important;
    padding: 0 !important
  }
}

@media(max-width:640px) {
  .prisma-global-search {
    padding: 0;
    align-items: stretch
  }

  .prisma-global-search-dialog {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0
  }

  .prisma-global-search-head {
    padding: calc(12px + env(safe-area-inset-top)) 13px 10px
  }

  .prisma-global-search-input-wrap input {
    font-size: 15px
  }

  .prisma-global-search-results {
    padding: 8px 10px calc(18px + env(safe-area-inset-bottom))
  }

  .prisma-global-search-result {
    padding: 12px 10px
  }

  .prisma-global-search-result-copy strong {
    font-size: 12px
  }

  .prisma-list-pagination {
    flex-direction: column;
    align-items: stretch;
    padding: 11px;
    margin-top: 14px
  }

  .prisma-list-pagination-info {
    text-align: center
  }

  .prisma-list-pagination-pages {
    justify-content: center;
    flex-wrap: wrap
  }

  .prisma-page-btn {
    min-width: 36px;
    height: 36px
  }

  .prisma-pic-filter {
    padding: 11px;
    gap: 8px
  }

  .prisma-pic-filter-field {
    min-width: 100%;
    width: 100%
  }

  .prisma-pic-filter-clear {
    margin-left: 0
  }
}

/* ===== Permission Matrix + Readability ===== */
.prisma-main,
.prisma-admin-main,
.prisma-app input,
.prisma-app select,
.prisma-app textarea,
.prisma-app button,
.prisma-app .btn {
  font-size: var(--prisma-readable-body);
}

.prisma-page-context p,
.prisma-context-summary small,
.prisma-monitoring-record .meta,
.prisma-domain-workspace .meta,
.prisma-admin-main .meta,
.prisma-list-pagination-info {
  font-size: var(--prisma-readable-meta) !important;
  line-height: 1.5;
}

.prisma-nav-item,
.prisma-nav-domain-title {
  font-size: var(--prisma-readable-nav) !important;
  line-height: 1.35;
}

.prisma-nav-child {
  font-size: 12.5px !important;
  line-height: 1.4;
}

.prisma-sidebar-brand-copy strong {
  font-size: 14px;
}

.prisma-sidebar-brand-copy small,
.prisma-sidebar-context-card small,
.prisma-sidebar-footer small {
  font-size: 11px !important;
}

.sb-label {
  font-size: 11.5px;
}

.sb-kpi-note {
  font-size: 11px !important;
  line-height: 1.4;
}

.sb-pill {
  font-size: 10.5px;
}

.card .title,
.chart-title,
.prisma-panel-title {
  font-size: 14px;
}

.card .meta {
  font-size: 12px;
}

.badge,
.prisma-status-chip {
  font-size: 11px;
}

.prisma-global-search-head p,
.prisma-global-search-result-copy small {
  font-size: 11px;
}

.prisma-global-search-result-copy strong {
  font-size: 13px;
}

.prisma-list-pagination-info,
.prisma-page-btn {
  font-size: 12px;
}

@media (max-width: 768px) {

  .prisma-main,
  .prisma-app input,
  .prisma-app select,
  .prisma-app textarea,
  .prisma-app button,
  .prisma-app .btn {
    font-size: 13px;
  }

  .prisma-page-context p,
  .prisma-monitoring-record .meta,
  .card .meta {
    font-size: 12px !important;
  }

  .prisma-nav-item,
  .prisma-nav-domain-title {
    font-size: 13px !important;
  }

  .prisma-nav-child {
    font-size: 12px !important;
  }

  .sb-label {
    font-size: 11px;
  }

  .sb-value {
    font-size: 20px;
  }

  .sb-kpi-note {
    font-size: 10.5px !important;
  }

  .sb-pill {
    font-size: 10px;
  }
}

/* Readability floor for previously micro-sized navigation/meta labels. */
.prisma-mobile-bottom-nav .prisma-mobile-bottom-item,
.prisma-mobile-bottom-nav.five-items .prisma-mobile-bottom-item {
  font-size: 10.5px !important;
  line-height: 1.25;
}

.prisma-mobile-context small,
.prisma-company-scope-copy small,
.prisma-year-control small,
.prisma-context-chip small {
  font-size: 10.5px !important;
}

.prisma-group-overview small,
.prisma-executive-workspace small,
.prisma-domain-workspace small {
  font-size: max(11px, .72rem);
}

/* Keep desktop topbar scope/year controls visually equal across role modes. */
.prisma-topbar-center .prisma-context-chip,
.prisma-topbar-center .prisma-company-scope-control,
.prisma-topbar-center .prisma-year-control {
  height: 48px;
  min-height: 48px;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
}

.prisma-topbar-center .prisma-context-chip,
.prisma-topbar-center .prisma-company-scope-control {
  min-width: 300px;
}

.prisma-topbar-center .prisma-year-control {
  width: 170px;
  min-width: 170px;
}

.prisma-topbar-center .prisma-context-chip small,
.prisma-topbar-center .prisma-company-scope-copy small,
.prisma-topbar-center .prisma-year-control small {
  font-size: 9px !important;
  line-height: 1.05;
}

.prisma-topbar-center .prisma-context-chip strong,
.prisma-topbar-center .prisma-company-scope-copy select,
.prisma-topbar-center .prisma-year-control select {
  height: 22px;
  min-height: 22px;
  font-size: 12px;
  line-height: 22px;
}

.prisma-topbar-center .prisma-company-scope-copy select,
.prisma-topbar-center .prisma-year-control select {
  padding-top: 0;
  padding-bottom: 0;
}

/* ===== Scoped shared master data ===== */
.master-scope-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid #dbe3ee;
  white-space: nowrap
}

.master-scope-badge.group {
  background: #eef4fb;
  color: #164e83;
  border-color: #cfe0f2
}

.master-scope-badge.company {
  background: #f7f8fa;
  color: #475467
}

.master-readonly-note {
  font-size: 11px;
  color: #98a2b3;
  white-space: nowrap
}

.master-scope-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  background: #f8fafc
}

.master-scope-summary span,
.master-scope-summary strong,
.master-scope-summary small {
  display: block
}

.master-scope-summary span {
  font-size: 11px;
  color: #667085;
  letter-spacing: .04em
}

.master-scope-summary strong {
  margin-top: 3px;
  font-size: 14px;
  color: #1d2939
}

.master-scope-summary small {
  margin-top: 4px;
  font-size: 12px;
  color: #667085
}

.master-company-scope-field small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #667085
}

@media(max-width:640px) {
  .master-scope-badge {
    font-size: 10px
  }

  .master-readonly-note {
    font-size: 10px
  }
}


/* ===== Pekerjaan cross-module navigation ===== */
.prisma-nav-work {
  margin-bottom: 4px
}

.prisma-nav-work .prisma-nav-icon {
  color: #dbeafe
}

.prisma-nav-work.active .prisma-nav-icon {
  color: #fff
}

.work-domain-modules .domain-module-card {
  min-height: 190px
}

.work-domain-note {
  margin-top: 14px
}

@media(max-width:640px) {
  .work-domain-modules {
    grid-template-columns: 1fr
  }

  .work-domain-modules .domain-module-card {
    min-height: 0
  }
}

/* ===== Pekerjaan unified list ===== */
.pekerjaan-list-head {
  margin-bottom: 12px
}

.pekerjaan-unified-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.pekerjaan-unified-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-width: 0
}

.pekerjaan-unified-main {
  flex: 1;
  min-width: 0
}

.pekerjaan-unified-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px
}

.pekerjaan-unified-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap
}

.pekerjaan-unified-title h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #172033;
  font-weight: 700
}

.pekerjaan-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap
}

.pekerjaan-source-badge.task {
  background: #eef2ff;
  color: #4338ca
}

.pekerjaan-source-badge.nonbudget {
  background: #fff7ed;
  color: #c2410c
}

.pekerjaan-unified-meta {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 8px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.5
}

.pekerjaan-unified-meta span+span:before {
  content: "·";
  margin: 0 7px;
  color: #cbd5e1
}

.pekerjaan-unified-meta strong {
  color: #475569;
  font-weight: 600
}

.pekerjaan-unified-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin-top: 12px
}

.pekerjaan-unified-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto
}

.pekerjaan-module-link {
  font-size: 11px;
  font-weight: 700;
  color: #32689c;
  text-decoration: none;
  white-space: nowrap
}

.pekerjaan-module-link:hover {
  text-decoration: underline
}

@media(max-width:700px) {
  .pekerjaan-unified-card {
    flex-direction: column;
    padding: 14px;
    gap: 12px
  }

  .pekerjaan-unified-top {
    gap: 10px
  }

  .pekerjaan-unified-title {
    align-items: flex-start
  }

  .pekerjaan-unified-title h3 {
    font-size: 13.5px;
    width: 100%
  }

  .pekerjaan-unified-meta {
    font-size: 11px
  }

  .pekerjaan-unified-meta span {
    width: auto
  }

  .pekerjaan-unified-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%
  }
}


/* ===== Annual Theme Alignment ===== */
.theme-alignment-field {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafbfd
}

.theme-alignment-field small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #667085
}

.theme-alignment-field small strong {
  color: #344054
}

.pekerjaan-theme-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 9px 0 2px
}

.pekerjaan-theme-row small {
  font-size: 12px;
  color: #667085
}

.pekerjaan-theme-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #e4e7ec;
  background: #f8fafc;
  color: #475467
}

.pekerjaan-theme-badge.approved {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647
}

.pekerjaan-theme-badge.pending {
  background: #fffaeb;
  border-color: #fedf89;
  color: #b54708
}

.pekerjaan-theme-badge.rejected {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318
}

.pekerjaan-theme-badge.not-theme,
.pekerjaan-theme-badge.not-submitted {
  background: #f9fafb;
  color: #667085
}

.pekerjaan-theme-review {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap
}

.btn.btn-compact {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px
}

.statsbar .sb-item.sb-theme {
  min-width: 220px
}

.statsbar .sb-item.sb-theme .sb-kpi-note {
  max-width: 210px;
  white-space: normal;
  line-height: 1.35
}

.prisma-group-overview .statsbar {
  align-items: stretch
}

.prisma-group-overview .statsbar .sb-item {
  min-width: 210px
}

@media(max-width:900px) {
  .prisma-group-overview .statsbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
  }

  .prisma-group-overview .statsbar .sb-item {
    min-width: 0;
    width: 100%
  }
}

@media(max-width:640px) {

  .theme-alignment-field small,
  .pekerjaan-theme-row small {
    font-size: 11px
  }

  .pekerjaan-theme-review {
    width: 100%
  }

  .pekerjaan-theme-review .btn {
    flex: 1
  }

  .prisma-group-overview .statsbar {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .statsbar .sb-item.sb-theme {
    min-width: 0
  }

  .statsbar .sb-item.sb-theme .sb-kpi-note {
    max-width: none
  }
}

/* Security hardening — POST logout keeps profile menu styling. */
.profile-logout-form {
  margin: 0;
  padding: 0
}

.profile-logout-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer
}

/* Typography normalization — keep text natural and consistent across modules. */
body,
body * {
  letter-spacing: normal !important;
  text-transform: none !important;
}

label,
small,
.badge,
[class*="badge"],
[class*="label"],
[class*="kicker"],
[class*="eyebrow"],
[class*="meta"],
[class*="chip"],
[class*="status"] {
  font-weight: 500 !important;
}

h1,
h2,
h3,
h4,
strong,
b,
.stat-text .value,
.sb-value,
.exec-budget-kpis strong,
.finance-kpi-grid strong,
.planning-kpis strong {
  font-weight: 700 !important;
}

/* ========================================================================== */
/* InJourney brand refresh — typography, turquoise accent, and airy surfaces */
/* ========================================================================== */
:root {
  --prisma-bg: #f5f8f9;
  --prisma-surface-subtle: #f7fafb;
  --prisma-surface-selected: #eaf8f7;
  --prisma-text-strong: #242a2e;
  --prisma-text: #3e484d;
  --prisma-text-muted: #68757b;
  --prisma-text-subtle: #94a0a5;
  --prisma-border: #e1e9ea;
  --prisma-border-subtle: #edf2f3;
  --prisma-border-strong: #cdd9db;
  --prisma-primary: #20a8a5;
  --prisma-primary-hover: #168e8c;
  --prisma-primary-soft: #e7f8f7;
  --prisma-sidebar-bg: #ffffff;
  --prisma-sidebar-hover: #f0f8f8;
  --prisma-sidebar-active: #e3f5f4;
  --prisma-sidebar-text: #4d5b60;
  --prisma-sidebar-muted: #879499;
  --prisma-injourney-navy: #213a43;
  --prisma-injourney-navy-2: #294852;
  --prisma-injourney-surface: #f4fbfb;
  --prisma-injourney-gold: #43bfc1;
  --prisma-injourney-gold-soft: rgba(67, 191, 193, .14);
  --prisma-focus-ring: 0 0 0 3px rgba(32, 168, 165, .18);
  --prisma-shadow-xs: 0 1px 2px rgba(31, 67, 73, .045);
  --prisma-shadow-overlay: 0 18px 48px rgba(31, 67, 73, .14);
}

html {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body:has(.prisma-app) {
  background:
    radial-gradient(circle at 88% 4%, rgba(67, 191, 193, .08), transparent 24rem),
    var(--prisma-bg);
}

.prisma-app .prisma-topbar {
  border-bottom-color: rgba(32, 168, 165, .13);
  box-shadow: 0 2px 14px rgba(35, 70, 76, .045);
}

.prisma-brand img {
  height: 35px;
}

.prisma-brand-copy strong {
  color: #30383c;
  font-size: 14px;
}

.prisma-brand-copy small {
  color: #7d8a8f;
}

.prisma-menu-toggle,
.prisma-icon-btn,
.prisma-user-pill,
.prisma-context-chip,
.prisma-company-scope-control,
.prisma-year-control {
  border-color: #dfe9ea !important;
  box-shadow: 0 1px 2px rgba(35, 70, 76, .025);
}

.prisma-icon-btn:hover,
.prisma-menu-toggle:hover {
  color: var(--prisma-primary);
  border-color: rgba(32, 168, 165, .38) !important;
  background: var(--prisma-primary-soft);
}

.prisma-sidebar {
  background: #fff !important;
  border-right: 1px solid #dfe9ea !important;
  box-shadow: 5px 0 22px rgba(35, 70, 76, .035);
}

.prisma-nav-label {
  color: #98a5aa !important;
}

.prisma-nav-item,
.prisma-nav-domain-title,
.prisma-nav-child {
  color: #56646a !important;
}

.prisma-nav-icon {
  color: #74848a;
}

.prisma-nav-item:hover,
.prisma-nav-domain-title:hover,
.prisma-nav-child:hover {
  background: #f0f8f8 !important;
  color: #187f7d !important;
}

.prisma-nav-item.active,
.prisma-nav-domain.active>.prisma-nav-domain-title,
.prisma-nav-child.active {
  color: #147d7b !important;
  background: linear-gradient(90deg, #e1f6f5, #f2fbfb) !important;
  box-shadow: inset 0 0 0 1px rgba(32, 168, 165, .12);
}

.prisma-nav-item.active::before,
.prisma-nav-child.active::before {
  background: #32b9b8 !important;
}

.prisma-nav-item.active .prisma-nav-icon,
.prisma-nav-domain.active>.prisma-nav-domain-title .prisma-nav-icon,
.prisma-nav-child.active {
  color: #15918f !important;
}

.prisma-nav-chevron {
  color: #96a5aa;
}

.prisma-nav-children {
  border-left-color: #dce8e9;
}

.prisma-sidebar-footer {
  border-top-color: #e5eded !important;
}

.prisma-sidebar-company {
  color: #526167 !important;
}

.prisma-sidebar-footer small {
  color: #98a5aa !important;
}

.prisma-main {
  background:
    radial-gradient(circle at 100% 0, rgba(67, 191, 193, .055), transparent 28rem),
    #f5f8f9;
}

.prisma-page-context h1,
.prisma-page-title-row h1 {
  color: #293236;
}

.prisma-breadcrumb strong,
.prisma-page-context p {
  color: #6d7b80;
}

.card,
.chart-card,
.prisma-panel,
.prisma-context-meta>span,
.prisma-list-pagination,
.pekerjaan-unified-card {
  border-color: #e1e9ea;
  box-shadow: 0 4px 16px rgba(35, 70, 76, .035);
}

.btn-primary,
.tab-btn.active,
.prisma-page-btn.active {
  background: #24aaa7;
  border-color: #24aaa7;
  color: #fff;
}

.btn-primary:hover {
  background: #198f8d;
  box-shadow: 0 6px 16px rgba(32, 168, 165, .22);
}

a:not(.btn):not(.prisma-nav-item):not(.prisma-nav-child):focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: #20a8a5;
}

@media (max-width: 820px) {
  .prisma-sidebar {
    box-shadow: 18px 0 40px rgba(26, 66, 72, .16);
  }
}

/* Page shell owns the title; inner workspaces start with unique controls/data. */
.company-comparison-intro {
  max-width: 780px;
  margin: 0;
  color: var(--prisma-text-muted);
  line-height: 1.55;
}

.domain-hero.prisma-domain-summary {
  min-height: 0;
  justify-content: flex-end;
  padding: 14px 18px;
}

.domain-hero.prisma-domain-summary .prisma-domain-kpis {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

/* Persistent primary action for creating work items. */
.prisma-quick-create {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.prisma-work-fab {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 9px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: linear-gradient(135deg, #42c2c2 0%, #1b9d9a 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(23, 129, 127, .28), 0 3px 8px rgba(23, 129, 127, .16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.prisma-work-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(135deg, #35b7b6 0%, #168b89 100%);
  box-shadow: 0 16px 34px rgba(23, 129, 127, .32), 0 4px 10px rgba(23, 129, 127, .18);
}

.prisma-work-fab:active {
  transform: translateY(0);
}

.prisma-work-fab:focus-visible {
  outline: 3px solid rgba(32, 168, 165, .25);
  outline-offset: 3px;
}

.prisma-work-fab-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.prisma-work-fab-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.prisma-work-fab-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.prisma-quick-create.open .prisma-work-fab-icon {
  transform: rotate(45deg);
}

.prisma-work-fab-icon {
  transition: transform .18s ease;
}

.prisma-quick-create-menu[hidden] {
  display: none !important;
}

.prisma-quick-create-menu {
  width: min(330px, calc(100vw - 32px));
  max-height: min(68vh, 540px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e5e6;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 20px 54px rgba(31, 67, 73, .2), 0 4px 14px rgba(31, 67, 73, .09);
  backdrop-filter: blur(14px);
  transform-origin: bottom right;
  animation: prismaQuickCreateIn .16s ease-out;
}

@keyframes prismaQuickCreateIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.prisma-quick-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 11px;
  border-bottom: 1px solid #e7eeee;
}

.prisma-quick-create-head span {
  color: #26363b;
  font-size: 13px;
  font-weight: 700;
}

.prisma-quick-create-head small {
  max-width: 145px;
  overflow: hidden;
  color: #829095;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prisma-quick-create-list {
  min-height: 0;
  overflow-y: auto;
  padding: 7px;
}

.prisma-quick-create-item {
  min-height: 57px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.prisma-quick-create-item:hover,
.prisma-quick-create-item:focus-visible {
  outline: 0;
  background: #eaf8f7;
}

.prisma-quick-create-item-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e7f5f4;
  color: #198d8a;
}

.prisma-quick-create-item-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.prisma-quick-create-item>span:nth-child(2) {
  min-width: 0;
}

.prisma-quick-create-item strong,
.prisma-quick-create-item small {
  display: block;
}

.prisma-quick-create-item strong {
  overflow: hidden;
  color: #33454a;
  font-size: 12.5px;
  font-weight: 700 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prisma-quick-create-item small {
  margin-top: 2px;
  color: #859398;
  font-size: 10.5px;
}

.prisma-quick-create-item i {
  color: #91a1a6;
  font-size: 20px;
  font-style: normal;
}

@media (max-width: 820px) {
  .prisma-quick-create {
    right: 16px;
    bottom: calc(var(--prisma-mobile-bottom-nav, 66px) + 14px + env(safe-area-inset-bottom));
    z-index: 1080;
  }

  .prisma-work-fab {
    width: 54px;
    min-width: 54px;
    padding: 8px;
    justify-content: center;
  }

  .prisma-work-fab-label {
    display: none;
  }

  .prisma-quick-create-menu {
    width: min(330px, calc(100vw - 24px));
    max-height: min(60vh, 480px);
  }
}

/* Balanced mobile scope controls: company leads, year remains fully readable. */
@media (max-width: 640px) {
  .prisma-mobile-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: stretch;
    min-height: 58px;
    padding: 7px 10px;
    gap: 8px;
  }

  .prisma-mobile-scope-trigger,
  .prisma-mobile-context-static,
  .prisma-mobile-context-control {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
  }

  .prisma-mobile-scope-trigger {
    padding: 6px 11px;
  }

  .prisma-mobile-scope-trigger small,
  .prisma-mobile-context-control small,
  .prisma-mobile-context-static small {
    margin-bottom: 1px;
    font-size: 9px !important;
    line-height: 1.1;
  }

  .prisma-mobile-scope-trigger strong,
  .prisma-mobile-context-static strong,
  .prisma-mobile-context select {
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.25;
  }

  .prisma-mobile-year {
    width: 112px;
    min-width: 112px;
    flex: none;
    padding: 6px 10px;
  }

  .prisma-mobile-year select {
    padding-right: 18px;
  }

  .prisma-sidebar {
    top: calc(var(--prisma-topbar) + 58px);
    height: calc(100dvh - var(--prisma-topbar) - 58px - var(--prisma-mobile-bottom-nav));
  }

  .prisma-sidebar-backdrop {
    inset: calc(var(--prisma-topbar) + 58px) 0 var(--prisma-mobile-bottom-nav);
  }
}

@media (max-width: 360px) {
  .prisma-mobile-context {
    grid-template-columns: minmax(0, 1fr) 104px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .prisma-mobile-year {
    width: 104px;
    min-width: 104px;
  }
}

/* Sidebar refinement — stronger hierarchy without making the rail visually heavy. */
.prisma-brand-symbol {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce8e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(31, 67, 73, .08);
}

.prisma-brand-symbol img {
  width: 34px !important;
  height: 34px !important;
  max-width: none !important;
  object-fit: contain;
}

.prisma-brand-copy strong {
  max-width: min(310px, 28vw);
  font-size: 14px;
  font-weight: 700 !important;
}

.prisma-sidebar {
  padding: 18px 10px 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfd 100%) !important;
  border-right-color: #d6e3e5 !important;
}

.prisma-nav {
  gap: 20px;
}

.prisma-nav-group {
  gap: 5px;
}

.prisma-nav-label {
  margin: 6px 10px 7px;
  padding: 0 2px 7px;
  border-bottom: 1px solid #edf2f3;
  color: #809096 !important;
  opacity: 1;
  font-size: 10.5px !important;
  font-weight: 700 !important;
}

.prisma-nav-item,
.prisma-nav-domain-title {
  min-height: 44px;
  padding: 9px 11px;
  color: #405158 !important;
  font-weight: 650 !important;
}

.prisma-nav-icon {
  width: 25px;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #edf4f5;
  color: #63777d;
}

.prisma-nav-icon svg {
  width: 15px;
  height: 15px;
}

.prisma-nav-item:hover,
.prisma-nav-domain-title:hover,
.prisma-nav-child:hover {
  background: #edf8f7 !important;
  color: #0f7d7b !important;
}

.prisma-nav-item:hover .prisma-nav-icon,
.prisma-nav-domain-title:hover .prisma-nav-icon {
  background: #d9f1f0;
  color: #118c89;
}

.prisma-nav-item.active,
.prisma-nav-domain.active>.prisma-nav-domain-title,
.prisma-nav-child.active {
  background: linear-gradient(90deg, #d9f3f2 0%, #edf9f8 100%) !important;
  color: #087d7a !important;
  box-shadow: inset 0 0 0 1px #b9e5e3;
}

.prisma-nav-item.active .prisma-nav-icon,
.prisma-nav-domain.active>.prisma-nav-domain-title .prisma-nav-icon {
  background: #24aaa7;
  color: #fff !important;
}

.prisma-nav-item.active::before,
.prisma-nav-child.active::before {
  width: 4px;
  background: #20aaa7 !important;
}

.prisma-nav-chevron {
  margin-left: auto;
  color: #72868c;
  font-weight: 700;
}

.prisma-nav-children {
  margin: 5px 4px 2px 16px;
  padding: 3px 0 3px 15px;
  border-left: 1.5px solid #cfdfe1;
}

.prisma-nav-child {
  min-height: 36px;
  padding: 8px 11px !important;
  color: #52636a !important;
  font-weight: 500 !important;
}

.prisma-nav-child.active {
  font-weight: 700 !important;
}

.prisma-nav-work .prisma-nav-icon {
  background: #e9f1f7;
  color: #50728a;
}

.prisma-sidebar-footer {
  border-top-color: #dce7e8 !important;
}

@media (max-width: 820px) {
  .prisma-brand-symbol {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }

  .prisma-brand-symbol img {
    width: 30px !important;
    height: 30px !important;
  }

  .prisma-brand-copy strong {
    max-width: 130px;
    font-size: 12.5px;
  }

  .prisma-sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Executive budget bars: values stay readable independently of bar width. */
.exec-budget-bars>div>span,
.exec-budget-category-bars>div>span,
.exec-budget-proposal-bars>div>span {
  align-items: flex-end;
}

.exec-budget-bars>div>span>b,
.exec-budget-category-bars>div>span>b,
.exec-budget-proposal-bars>div>span>b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exec-budget-bars>div>span>em,
.exec-budget-category-bars>div>span>em,
.exec-budget-proposal-bars>div>span>em {
  flex: 0 0 auto;
  color: #60708a;
  font-size: 11px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.exec-budget-bars>div>span>em strong {
  color: #263f48;
  font-size: inherit;
  font-weight: 700 !important;
}

.exec-budget-category-bars>div>span>em {
  color: #246b55;
  font-weight: 700 !important;
}

.exec-budget-category-bars i b {
  min-width: 2px;
  padding-right: 0;
}

.exec-budget-proposal-bars>div>span>em {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.exec-budget-proposal-bars>div>span>em i {
  display: inline;
  width: auto;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: none;
  color: #60708a;
  font-size: 10.5px;
  font-style: normal;
}

.exec-budget-proposal-bars>div>span>em strong {
  color: #263f48;
  font-size: 11px;
  font-weight: 700 !important;
}

.exec-budget-proposal-bars>div>i>b {
  min-width: 0;
  padding-right: 0;
}

@media (max-width: 560px) {

  .exec-budget-bars>div>span,
  .exec-budget-category-bars>div>span,
  .exec-budget-proposal-bars>div>span {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .exec-budget-bars>div>span>em,
  .exec-budget-category-bars>div>span>em,
  .exec-budget-proposal-bars>div>span>em {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
  }

  .exec-budget-proposal-bars>div>span>em {
    flex-wrap: wrap;
    gap: 3px 10px;
  }
}

/* Mobile shell final override — 60:40 context and compact untruncated brand. */
@media (max-width: 640px) {
  .prisma-app {
    --prisma-topbar: 64px;
  }

  .prisma-app .prisma-topbar {
    height: var(--prisma-topbar);
  }

  .prisma-mobile-context {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .prisma-mobile-year {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .prisma-brand-copy {
    display: flex;
    min-width: 0;
  }

  .prisma-brand-copy>strong,
  .prisma-brand-copy>small {
    display: none;
  }

  .prisma-mobile-brand-name {
    display: flex;
    flex-direction: column;
    color: #26363b;
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.15;
    white-space: nowrap;
  }

  .prisma-mobile-brand-name span {
    margin-top: 2px;
    color: #7b898e;
    font-size: 9px;
    font-weight: 500;
  }
}

@media (max-width: 410px) {
  .prisma-topbar-actions {
    gap: 2px;
  }
}

@media (max-width: 360px) {
  .prisma-mobile-context {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .prisma-mobile-year {
    width: 100%;
    min-width: 0;
  }
}

/* Notification center — dropdown is a preview, this page is the full inbox. */
.prisma-nav-count {
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e34f4d;
  color: #fff;
  font-size: 10px;
  font-weight: 700 !important;
}

.prisma-nav {
  flex: 1;
}

.prisma-nav-notifications {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--prisma-border-subtle);
}

.notif-header a,
.notif-footer a {
  color: var(--prisma-primary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.notif-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--prisma-border-subtle);
  background: var(--prisma-surface-subtle);
  text-align: center;
}

.notification-center {
  max-width: 980px;
  margin: 0 auto;
}

.notification-center-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.notification-filter {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--prisma-border);
  border-radius: 11px;
  background: #fff;
}

.notification-filter a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--prisma-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.notification-filter a.active {
  background: var(--prisma-primary-soft);
  color: #147d7b;
}

.notification-filter a span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(32, 168, 165, .1);
  font-size: 10px;
  text-align: center;
}

.notification-feed {
  overflow: hidden;
  border: 1px solid var(--prisma-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(35, 70, 76, .035);
}

.notification-card {
  min-height: 84px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 10px 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--prisma-border-subtle);
  color: inherit;
  text-decoration: none;
  transition: background .15s ease;
}

.notification-card:last-child {
  border-bottom: 0;
}

.notification-card:hover {
  background: #f7fbfb;
}

.notification-card.unread {
  background: #f0f9f9;
}

.notification-card.unread:hover {
  background: #e8f7f6;
}

.notification-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e4f5f4;
  color: #168b88;
  font-size: 16px;
  font-weight: 800;
}

.notification-card-copy,
.notification-card-title,
.notification-card-body,
.notification-card time {
  display: block;
}

.notification-card-copy {
  min-width: 0;
}

.notification-card-title {
  color: var(--prisma-text-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.notification-card-body {
  margin-top: 3px;
  color: var(--prisma-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.notification-card time {
  margin-top: 5px;
  color: var(--prisma-text-subtle);
  font-size: 10.5px;
}

.notification-card>i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--prisma-primary);
}

.notification-card>b {
  color: #91a0a5;
  font-size: 22px;
  font-weight: 500 !important;
}

.notification-empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 30px;
  border: 1px solid var(--prisma-border);
  border-radius: 14px;
  background: #fff;
  color: var(--prisma-text-muted);
  text-align: center;
}

.notification-empty strong {
  color: var(--prisma-text-strong);
  font-size: 15px;
}

.notification-empty-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--prisma-primary-soft);
  color: var(--prisma-primary);
  font-size: 20px;
}

@media (max-width: 640px) {
  .task-helper-picker {
    grid-template-columns: 1fr !important;
  }

  .notification-center-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .notification-filter a {
    justify-content: center;
  }

  .notification-read-all {
    justify-content: center;
  }

  .notification-card {
    grid-template-columns: 36px minmax(0, 1fr) 8px;
    gap: 9px;
    padding: 12px 11px;
  }

  .notification-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .notification-card>b {
    display: none;
  }

  .notification-card-title {
    font-size: 12.5px;
  }

  .notification-card-body {
    font-size: 11.5px;
  }
}

/* ===== Task detail sticky (desktop only) + DD/MM/YYYY date inputs ===== */
.task-detail-header {
  margin-bottom: 12px;
}

.task-deadline-form {
  margin-bottom: 12px;
}

/* Keep the document scrollable so short laptop screens never clip task rows. */
.task-detail-sticky-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  color: #293236;
}

@media (min-width: 769px) {

  .prisma-task-detail-main,
  .prisma-work-detail-main {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 28px !important;
  }

  .task-detail-page {
    display: block;
    min-height: 0;
  }

  .task-detail-sticky {
    position: sticky;
    top: calc(var(--prisma-topbar, 0px) + 8px);
    background: #f5f8f9;
    padding: 8px 0 1px;
    z-index: 20;
  }

  .task-detail-page.is-embed .task-detail-sticky {
    top: 0;
  }

  .task-detail-sticky>.card {
    padding: 12px 16px;
    margin-bottom: 8px !important;
  }

  .task-detail-timeline>div:first-child {
    margin-bottom: 10px !important;
  }

  .task-detail-scroll {
    overflow: visible;
    min-height: 0;
    padding-bottom: 28px;
  }
}

@media (max-width: 768px) {

  /* Mobile: normal page scroll — no sticky header pane */
  .prisma-task-detail-main,
  .prisma-work-detail-main {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-bottom: 56px !important;
  }

  .task-detail-page,
  .task-detail-page.is-embed {
    display: block;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .task-detail-sticky,
  .task-detail-scroll {
    display: block;
    flex: none;
    overflow: visible;
    min-height: 0;
    padding-bottom: 0;
    background: transparent;
  }
}

.prisma-date-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.prisma-date-input-sm {
  min-width: 128px;
}

.prisma-date-text {
  width: 100%;
  min-height: 36px;
  padding: 7px 36px 7px 10px;
  border: 1.5px solid #e2e5ef;
  border-radius: 8px;
  background: #fff;
  color: #1a1a2e;
  font-size: 13px;
  outline: none;
  position: relative;
  z-index: 1;
}

.prisma-date-input-sm .prisma-date-text {
  min-height: 32px;
  padding: 4px 32px 4px 8px;
  font-size: 12px;
  background: #fafafa;
}

.prisma-date-text:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.prisma-date-native {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 100%;
  opacity: 0.011;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.prisma-date-input::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  z-index: 3;
}

/* Asset foundation reuses PRISMA shell, typography, cards and buttons. */
.asset-foundation {
  padding: 24px;
}

.asset-form {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 16px 0;
}

.asset-form label {
  display: grid;
  gap: 6px;
}

.asset-form fieldset label {
  display: block;
}

.asset-form input:not([type=checkbox]),
.asset-form select,
.asset-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  font: inherit;
}

.asset-a4 {
  box-sizing: border-box;
  width: min(210mm, 100%);
  min-height: 297mm;
  padding: 20mm;
  background: white;
  margin: 16px auto;
}

.asset-a4 pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  .prisma-topbar,
  .prisma-sidebar,
  .prisma-mobile-bottom-nav,
  .prisma-page-context {
    display: none;
  }

  .asset-a4 {
    margin: 0;
    width: 210mm;
  }
}

.asset-company-logo {
  display: block;
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 16px;
}

#asset-employee-picker {
  width: 100%;
  padding: 10px;
  font: inherit;
  margin: 12px 0;
}

@media (max-width: 640px) {
  .prisma-mobile-bottom-nav.operational-only {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0
}

.asset-detail-tabs {
  margin: 20px 0
}

.asset-foundation pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 560px
}

.asset-label img {
  display: block
}

.asset-label {
  padding: 16px;
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
  margin: 16px 0
}

@media print {
  body.asset-print-label * {
    visibility: hidden
  }

  body.asset-print-label .asset-label,
  body.asset-print-label .asset-label * {
    visibility: visible
  }

  body.asset-print-label .asset-label {
    position: absolute;
    left: 0;
    top: 0;
    border: 0;
    width: 300px
  }
}

@media print {
  body.asset-print-label .asset-foundation> :not(.asset-label) {
    display: none
  }
}

.asset-filter-form {
  max-width: none
}

.asset-filter-form button {
  align-self: end
}

@media (min-width:900px) {
  .asset-filter-form {
    grid-template-columns: repeat(6, minmax(180px, 1fr))
  }

  .asset-editor-form {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    max-width: 980px
  }

  .asset-editor-form label:has(textarea) {
    grid-column: 1/-1
  }

  .asset-template-toolbar,
  .asset-placeholder-help {
    grid-column: 1/-1
  }
}

.asset-template-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 0 0 8px;
}

.asset-template-insert-label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  min-width: min(100%, 280px);
}

.asset-placeholder-help {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--prisma-border, #e2e5ef);
  border-radius: 10px;
  background: #fafbfe;
}

.asset-placeholder-table {
  margin: 10px 0;
  font-size: 12px;
}

.asset-template-body-label,
.asset-editor-modal .tox-tinymce {
  grid-column: 1 / -1;
}

.asset-editor-modal .tox-tinymce {
  border-radius: 8px;
  border-color: var(--prisma-border-strong, #cfd5e4) !important;
}

.asset-editor-modal {
  width: min(100%, 1100px);
  max-width: 1100px;
}

.asset-nav-subgroup {
  margin-left: 12px;
}

.asset-nav-subgroup summary {
  padding: 8px 12px;
  cursor: pointer;
}

/* Asset controls reuse PRISMA typography, borders and navigation states. */
.asset-foundation {
  color: var(--prisma-text);
  font-size: 13px;
}
.asset-form input:not([type=checkbox]),
.asset-form select,
.asset-form textarea,
.prisma-admin-users .user-role-form select {
  border-color: var(--prisma-border-strong);
  color: var(--prisma-text);
  background: #fff;
  font: inherit;
  min-height: 38px;
  box-sizing: border-box;
}
.asset-form input:focus-visible,
.asset-form select:focus-visible,
.asset-form textarea:focus-visible,
.prisma-admin-users .user-role-form select:focus-visible {
  outline: 2px solid #b9e5e3;
  outline-offset: 1px;
}
.prisma-admin-users .user-role-form {
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}
.prisma-admin-users .user-role-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--prisma-text-muted);
}
.prisma-admin-users .user-role-form select {
  min-width: 180px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.prisma-admin-users .user-role-form .btn { min-height: 38px; }
.asset-permissions {
  border: 1px solid var(--prisma-border);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}
.asset-permissions legend { font-weight: 600; padding: 0 6px; }
.asset-permission-group {
  min-width: 0;
  border: 1px solid var(--prisma-border);
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
}
.asset-permission-group:last-child { margin-bottom: 0; }
.asset-modal-open { overflow: hidden; }
.asset-modal-overlay { z-index: 12000; }
.asset-modal-overlay .asset-editor-modal { width: min(100%, 1000px); max-width: 1000px; max-height: 90dvh; overflow-y: auto; }
.asset-editor-modal .asset-modal-footer { grid-column: 1 / -1; position: sticky; bottom: 0; background: var(--prisma-surface, #fff); padding: 12px 0; justify-content: flex-end; }
.asset-modal-error { color: var(--danger, #b42318); }
.asset-document-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; border: 1px solid var(--prisma-border); border-radius: 8px; font: inherit; line-height: 1.6; }
.asset-health-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; }
.asset-signature-page { max-width: 900px; margin: 24px auto; padding: 24px; }
[data-signature-canvas] { display: block; width: 100%; max-width: 600px; height: 220px; border: 1px solid var(--prisma-border); background: white; border-radius: 8px; }

.asset-signature-checks {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  max-width: 640px;
}

.asset-form label.asset-signature-check,
.asset-signature-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  max-width: 100%;
  cursor: pointer;
  line-height: 1.45;
  color: var(--prisma-text, #1c2833);
}

.asset-signature-check input[type='checkbox'] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--prisma-primary, #0f766e);
}

.asset-signature-check span {
  flex: 1 1 auto;
  min-width: 0;
}

.asset-onsite-message {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--prisma-text-muted, #5b6475);
  max-width: 640px;
}

.asset-officer-sign-form {
  max-width: 720px;
}
.asset-foundation fieldset { min-width: 0; border: 1px solid var(--prisma-border); border-radius: 8px; margin: 12px 0; padding: 12px; }
.asset-editor-modal [hidden] { display: none !important; }
.asset-editor-modal .field-error { grid-column: 1 / -1; }
.asset-form label > small {
  color: var(--prisma-text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.asset-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}
.asset-filter-form > label {
  flex: 1 1 200px;
  min-width: 0;
}
.asset-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.asset-filter-actions .btn {
  min-height: 38px;
  padding: 9px 16px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.asset-foundation .coa-table th a {
  color: inherit;
  text-decoration: none;
}
.asset-nav-root > summary,
.asset-nav-subgroup > summary {
  list-style: none;
  display: flex;
  align-items: center;
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
}
.asset-nav-root > summary::-webkit-details-marker,
.asset-nav-subgroup > summary::-webkit-details-marker { display: none; }
.asset-nav-root:not([open]) > summary .prisma-nav-chevron,
.asset-nav-subgroup:not([open]) > summary .prisma-nav-chevron { transform: rotate(-90deg); }
.asset-nav-subgroup { margin-left: 0; }
.asset-nav-subgroup > summary { font-size: 12px; }
.asset-nav-root .prisma-nav-children { margin-bottom: 6px; }
@media (max-width: 600px) {
  .asset-filter-form > label { flex-basis: 100%; }
  .asset-filter-actions { width: 100%; }
  .asset-filter-actions .btn { flex: 1; }
}

.asset-form-section {
  grid-column: 1 / -1;
  font-size: 16px;
  margin-top: 16px;
}
.asset-select-backing { position:absolute; width:1px !important; height:1px !important; opacity:0; pointer-events:none; }
.asset-search-select { position:relative; min-width:0; }
.asset-search-trigger { width:100%; text-align:left; font:inherit; color:inherit; border:1px solid var(--prisma-border,#cbd9e2); border-radius:8px; padding:10px 12px; background:var(--prisma-surface,#fff); cursor:pointer; }
.asset-search-trigger[aria-invalid="true"] { border-color:var(--danger,#b42318); }
.asset-search-panel { position:absolute; top:100%; left:0; right:0; z-index:100; margin-top:4px; padding:8px; background:var(--prisma-surface,#fff); border:1px solid var(--prisma-border,#cbd9e2); border-radius:8px; box-shadow:0 8px 24px #15274420; }
.asset-search-panel[hidden] { display:none; }
.asset-search-panel [role="listbox"] { max-height:240px; overflow-y:auto; margin-top:6px; }
.asset-search-panel [role="option"] { padding:9px 10px; cursor:pointer; white-space:normal; overflow-wrap:anywhere; border-radius:6px; }
.asset-search-panel [role="option"]:hover,.asset-search-panel [role="option"].is-active,.asset-search-panel [aria-selected="true"] { background:var(--prisma-primary-soft,#e9f7f7); color:var(--prisma-primary,#008b8b); }
.asset-support-nav .asset-support-domain { margin-top:8px; }
.asset-support-nav .asset-support-domain > summary { font-size:13px; }
.asset-pdf-viewer { width:100%; height:72vh; min-height:420px; border:1px solid var(--prisma-border,#cbd9e2); border-radius:8px; background:#eef1f4; margin:12px 0; }
.asset-foundation .asset-kpi-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:20px 0;}
.asset-foundation .asset-kpi {padding:16px;border:1px solid var(--prisma-border,#dbe5ea);border-radius:12px;background:var(--prisma-surface,#fff);display:flex;flex-direction:column;gap:8px;}
.asset-foundation .asset-kpi span {font-size:12px;color:var(--prisma-muted,#64748b);}
.asset-foundation .asset-kpi strong {font-size:25px;color:var(--prisma-primary,#008b8b);}
.asset-foundation .asset-dashboard-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;margin-top:24px;}
.asset-foundation .asset-dashboard-grid section {border:1px solid var(--prisma-border,#dbe5ea);border-radius:12px;padding:18px;}
.asset-foundation [data-health-panel][hidden] {display:none;}
.asset-foundation [data-health-item] {grid-column:1/-1;margin-bottom:12px;border-radius:12px;padding:18px;}
.asset-foundation [data-health-progress-bar] {width:100%;height:10px;accent-color:var(--prisma-primary,#008b8b);margin-bottom:20px;}
.asset-health-dialog {width:min(92vw,800px);max-width:800px;max-height:85dvh;overflow:auto;border:1px solid var(--prisma-border,#dbe5ea);border-radius:14px;}
.asset-health-dialog::backdrop {background:rgba(15,23,42,.45);backdrop-filter:blur(2px);}
.asset-foundation .asset-actions {align-items:center;}
.asset-foundation .coa-table td {overflow-wrap:anywhere;}

.asset-permission-unavailable { opacity: .55; cursor: not-allowed; }

/* Keep long permission histories from squeezing identity and action columns. */
.asset-access-history { overflow-x: auto; }
.asset-access-history .coa-table { table-layout: fixed; width: 100%; min-width: 1010px; }
.asset-access-history .grant-user-col { width: 160px; }
.asset-access-history .grant-scope-col { width: 130px; }
.asset-access-history .grant-period-col { width: 180px; }
.asset-access-history .grant-status-col { width: 110px; }
.asset-access-history .grant-action-col { width: 130px; }
.asset-access-history .coa-table th,
.asset-access-history .coa-table td { padding: 14px 16px; text-align: left; vertical-align: top; word-break: normal; overflow-wrap: break-word; }
.asset-access-history .coa-table th { white-space: nowrap; }
.asset-access-history .grant-user-name { display: block; line-height: 1.5; }
.asset-access-history .grant-scope { line-height: 1.5; }
.asset-access-history .grant-period { display: grid; gap: 3px; line-height: 1.4; }
.asset-access-history .grant-period-label { font-size: 11px; color: var(--muted, #64748b); }
.asset-access-history .grant-period-label:not(:first-child) { margin-top: 6px; }
.asset-access-history .grant-period time,
.asset-access-history .btn { white-space: nowrap; }
.asset-access-history .grant-permission-details summary { cursor: pointer; line-height: 1.6; color: var(--primary, #0f8588); }
.asset-access-history .grant-permission-details summary:focus-visible { outline: 2px solid var(--primary, #0f8588); outline-offset: 3px; border-radius: 4px; }
.asset-access-history .grant-permission-details summary span { font-size: 12px; }
.asset-access-history .grant-permission-list { display: grid; gap: 12px; margin-top: 12px; }
.asset-access-history .grant-permission-list ul { margin: 5px 0 0; padding-left: 18px; line-height: 1.6; }
.asset-access-history .grant-status { display: inline-flex; padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-size: 12px; font-weight: 600; }
.asset-access-history .grant-status--active { background: #dcfce7; color: #166534; }
.asset-access-history .grant-status--scheduled { background: #e0f2fe; color: #075985; }
.asset-access-history .grant-status--expired { background: #fff7ed; color: #9a3412; }
.asset-access-history .grant-status--revoked { background: #f1f5f9; color: #475569; }
.asset-access-history .grant-no-action { color: var(--muted, #64748b); }

.asset-access-history .grant-history-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
