:root {
  --brand-950: #24113f;
  --brand-900: #35185f;
  --brand-800: #4b2382;
  --brand-700: #6633a3;
  --brand-600: #7b4bc2;
  --brand-soft: #f2ecfa;
  --brand-soft-2: #f8f4fd;
  --accent-green: #00a65a;
  --accent-orange: #f58220;
  --text-main: #1e1530;
  --text-muted: #6b5f7a;
  --surface-soft: #fbf9fe;
  --navy-950: var(--brand-950);
  --navy-900: var(--text-main);
  --navy-800: #332545;
  --navy-700: #4d3c61;
  --navy-600: var(--text-muted);
  --navy-400: #8a7d9a;
  --navy-300: #a99eb7;
  --blue: var(--brand-700);
  --blue-soft: var(--brand-soft);
  --canvas: #f6f3fa;
  --surface: #ffffff;
  --line: #e7def1;
  --shadow: 0 10px 32px rgba(36, 17, 63, 0.075);
  --low: #1f9d74;
  --medium: #c88918;
  --high: #df6a3e;
  --critical: #c53b51;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--navy-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai",
    "Leelawadee UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f9fbfd;
  box-shadow: 0 0 50px rgba(18, 43, 72, 0.08);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 76px;
  padding: max(12px, env(safe-area-inset-top)) 18px 10px;
  border-bottom: 1px solid rgba(231, 222, 241, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  text-align: center;
}

.brand-title,
.brand-subtitle,
.section-kicker {
  margin: 0;
}

.brand-title {
  color: var(--navy-950);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.25px;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--navy-400);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy-900);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--brand-soft-2);
}

.icon-button svg,
.bottom-nav svg,
.watchpoint-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main {
  padding-bottom: 110px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 29px 22px 25px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 98% 0%, rgba(38, 105, 211, 0.11), transparent 38%),
    linear-gradient(145deg, #ffffff 20%, #f5f9ff 100%);
}

.hero::after {
  position: absolute;
  top: -50px;
  right: -64px;
  width: 165px;
  height: 165px;
  border: 1px solid rgba(30, 98, 208, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-meta,
.hero-footer,
.section-heading,
.risk-main,
.risk-signal,
.headline-meta,
.headline-risk {
  display: flex;
  align-items: center;
}

.hero-meta {
  gap: 10px;
}

.eyebrow {
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--navy-900);
  color: white;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.4px;
}

#report-date {
  color: var(--navy-600);
  font-size: 12px;
  font-weight: 600;
}

.hero h1 {
  max-width: 330px;
  margin: 16px 0 9px;
  color: var(--navy-950);
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.executive-summary {
  max-width: 405px;
  margin: 0;
  color: #405b75;
  font-size: 14px;
  line-height: 1.75;
}

.hero-footer {
  justify-content: space-between;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid rgba(218, 227, 237, 0.9);
  color: var(--navy-400);
  font-size: 10px;
  font-weight: 650;
}

.status-indicator i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #26a876;
  box-shadow: 0 0 0 4px rgba(38, 168, 118, 0.1);
}

.content-section {
  padding: 28px 18px 0;
}

.section-heading {
  justify-content: space-between;
  margin: 0 4px 15px;
}

.section-kicker {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1.7px;
}

.section-heading h2,
.watchpoint-card h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 20px;
  letter-spacing: -0.4px;
}

.section-note {
  color: var(--navy-400);
  font-size: 11px;
  font-weight: 600;
}

.risk-list,
.headline-list {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.risk-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 78px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.risk-row:hover,
.risk-row:focus-visible {
  background: #f8fbff;
}

.risk-row:focus-visible {
  z-index: 1;
  outline: 2px solid rgba(30, 98, 208, 0.35);
  outline-offset: -2px;
}

.risk-row:last-child,
.headline-item:last-child {
  border-bottom: 0;
}

.risk-main {
  min-width: 0;
  gap: 12px;
}

.category-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--icon-bg, #edf3fb);
  color: var(--icon-color, var(--blue));
  font-size: 19px;
  font-weight: 750;
}

.category-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.category-copy {
  min-width: 0;
}

.category-name {
  overflow: hidden;
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.category-subtitle {
  overflow: hidden;
  margin: 0;
  color: var(--navy-400);
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-signal {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.row-chevron {
  color: #b4c0cd;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.direction {
  color: var(--navy-400);
  font-size: 9px;
  font-weight: 700;
}

.direction::before {
  display: inline-block;
  margin-right: 4px;
  color: currentColor;
}

.direction-rising {
  color: #c55342;
}

.direction-rising::before {
  content: "↗";
}

.direction-stable {
  color: #4F7EAE;
}

.direction-stable::before {
  content: "→";
}

.direction-easing {
  color: var(--low);
}

.direction-easing::before {
  content: "↘";
}

.direction-unknown {
  color: #8a9aad;
}

.direction-unknown::before {
  content: "•";
}

.risk-badge {
  display: inline-flex;
  min-width: 62px;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.risk-low {
  border-color: #caebdf;
  background: #edf9f4;
  color: var(--low);
}

.risk-medium {
  border-color: #f0dfb8;
  background: #fff8e9;
  color: #a96f09;
}

.risk-high {
  border-color: #f5d4c6;
  background: #fff2ed;
  color: var(--high);
}

.risk-critical {
  border-color: #f0c6cd;
  background: #fff0f3;
  color: var(--critical);
}

.count-pill {
  display: grid;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.headline-list {
  list-style: none;
}

.headline-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 11px;
  padding: 17px 15px 16px;
  border-bottom: 1px solid var(--line);
}

.headline-rank {
  color: #bdc8d5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.headline-title {
  margin: 0;
  color: var(--navy-900);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.52;
}

.headline-meta {
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.category-tag {
  overflow: hidden;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.category-chip-row-compact {
  gap: 4px;
}

.category-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--category-chip-border);
  border-radius: 999px;
  background: var(--category-chip-bg);
  color: var(--category-chip-color);
  font-size: 9.5px;
  font-weight: 740;
  line-height: 1.25;
  text-align: left;
}

.category-chip-primary {
  font-weight: 780;
  box-shadow: inset 0 0 0 0.5px var(--category-chip-border);
}

.category-chip-related {
  opacity: 0.78;
}

.headline-meta .category-chip-row {
  flex: 1 1 auto;
  min-width: 0;
}

.headline-meta .category-chip {
  padding: 3px 8px;
  font-size: 9px;
}

.today-headline-copy > .category-chip-row {
  margin-bottom: 8px;
}

.category-news-card > .category-chip-row {
  margin-top: 12px;
  margin-bottom: 9px;
}

.related-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px;
}

.related-label {
  color: var(--navy-400);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.related-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #dce8f5;
  border-radius: 999px;
  background: #f7fbff;
  color: var(--navy-600);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.headline-risk {
  flex: 0 0 auto;
  gap: 5px;
  color: var(--navy-400);
  font-size: 9px;
  font-weight: 700;
}

.risk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.text-low {
  color: var(--low);
}

.text-medium {
  color: #b77b11;
}

.text-high {
  color: var(--high);
}

.text-critical {
  color: var(--critical);
}

.watchpoint-section {
  padding-bottom: 8px;
}

.watchpoint-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid #d9e5f5;
  border-radius: 19px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 255, 0.96));
  box-shadow: 0 12px 30px rgba(30, 80, 145, 0.09);
}

.watchpoint-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--navy-900);
  color: white;
}

.watchpoint-icon svg {
  width: 21px;
  height: 21px;
}

.watchpoint-card h2 {
  font-size: 18px;
}

#watchpoint-text {
  margin: 8px 0 0;
  color: #49647d;
  font-size: 12.5px;
  line-height: 1.65;
}

.loading-card,
.error-message {
  padding: 20px;
  color: var(--navy-400);
  font-size: 12px;
  text-align: center;
}

.error-message {
  margin: 18px;
  border: 1px solid #f0c6cd;
  border-radius: 14px;
  background: #fff5f6;
  color: var(--critical);
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 480px;
  min-height: 72px;
  margin: 0 auto;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 30px rgba(22, 49, 78, 0.05);
  backdrop-filter: blur(18px);
}

.detail-open .bottom-nav {
  display: grid;
}

.detail-open main {
  padding-bottom: 110px;
}

.category-view {
  min-height: calc(100vh - 76px);
  background: #f8fafc;
}

.detail-toolbar {
  padding: 16px 18px 0;
  background: white;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px 0 4px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy-600);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.back-button:hover,
.back-button:focus-visible {
  background: #f1f5f9;
  color: var(--navy-900);
}

.back-button svg,
.source-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.category-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px 26px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 98, 208, 0.1), transparent 42%),
    white;
}

.category-hero .category-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.category-hero .category-icon svg {
  width: 25px;
  height: 25px;
}

.category-hero-copy {
  min-width: 0;
}

.category-hero h1 {
  margin: 2px 0 6px;
  color: var(--navy-950);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.category-hero-copy > p:last-child {
  margin: 0;
  color: var(--navy-600);
  font-size: 12px;
  line-height: 1.55;
}

.category-detail-risk {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  padding-left: 66px;
}

.category-detail-risk .direction {
  font-size: 10px;
}

.detail-news-section {
  padding: 28px 18px 0;
}

.detail-news-section .section-heading {
  align-items: flex-end;
}

.detail-news-section .section-heading h2 {
  font-size: 19px;
}

.category-news-list {
  display: grid;
  gap: 14px;
}

.category-news-card,
.empty-news-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.category-news-card {
  padding: 17px 16px;
}

.news-card-topline,
.news-card-risk,
.news-card-footer,
.source-link {
  display: flex;
  align-items: center;
}

.news-card-topline {
  justify-content: space-between;
  gap: 10px;
}

.news-card-topline time {
  color: var(--navy-400);
  font-size: 10px;
  font-weight: 700;
}

.news-card-risk {
  gap: 7px;
}

.news-card-risk .risk-badge {
  min-width: 56px;
}

.category-news-card h3 {
  margin: 15px 0 8px;
  color: var(--navy-950);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.15px;
}

.news-detail {
  margin: 0;
  color: var(--navy-600);
  font-size: 12px;
  line-height: 1.7;
}

.news-watchpoint {
  margin-top: 15px;
  padding: 12px 13px;
  border-left: 3px solid var(--blue);
  border-radius: 4px 11px 11px 4px;
  background: #f2f7ff;
}

.news-watchpoint span,
.news-source span {
  display: block;
  color: var(--blue);
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: 1.3px;
}

.news-watchpoint p {
  margin: 5px 0 0;
  color: #3e5973;
  font-size: 11px;
  line-height: 1.6;
}

.news-card-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.news-source {
  min-width: 0;
}

.news-source span {
  color: var(--navy-400);
}

.news-source strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--navy-900);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link {
  flex: 0 0 auto;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--navy-900);
  color: white;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.source-link svg {
  width: 14px;
  height: 14px;
}

.empty-news-card {
  padding: 34px 20px;
  color: var(--navy-400);
  font-size: 12px;
  text-align: center;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  color: #8b9bac;
  font-size: 8.5px;
  font-weight: 650;
  text-decoration: none;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.nav-item.active {
  color: var(--blue);
}

.nav-item.active svg {
  fill: rgba(30, 98, 208, 0.08);
  stroke-width: 2;
}

@media (min-width: 481px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid #e1e7ee;
    border-radius: 28px;
  }

  .topbar {
    top: 24px;
  }

  .bottom-nav {
    bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 0 0 28px 28px;
  }
}

@media (max-width: 355px) {
  .risk-row {
    padding-right: 10px;
    padding-left: 10px;
  }

  .category-icon {
    width: 38px;
    height: 38px;
  }

  .risk-badge {
    min-width: 55px;
    padding-right: 7px;
    padding-left: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Demo-aligned homepage presentation */
body {
  background:
    radial-gradient(circle at 50% -160px, rgba(123, 75, 194, 0.16), transparent 360px),
    var(--canvas);
}

.app-shell {
  background: var(--surface);
}

.topbar {
  min-height: 88px;
  padding: max(18px, env(safe-area-inset-top)) 22px 14px;
}

.brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.brand-subtitle {
  font-size: 9px;
}

main {
  padding-bottom: 104px;
}

.hero {
  padding: 34px 24px 18px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 75, 194, 0.11), transparent 42%),
    linear-gradient(180deg, #fff 0%, var(--brand-soft-2) 100%);
}

.hero::after {
  display: none;
}

#report-date {
  display: block;
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 400px;
  margin: 12px 0;
  font-size: clamp(29px, 8vw, 36px);
}

.executive-summary {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}

.content-section {
  padding: 25px 20px 0;
}

.section-heading {
  margin: 0 3px 12px;
}

.section-heading h2,
.watchpoint-card h2 {
  font-size: 15px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.section-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.section-note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-link {
  color: var(--navy-600);
  font-size: 11px;
  font-weight: 600;
}

.risk-list,
.headline-list {
  border-radius: 16px;
  box-shadow: 0 7px 24px rgba(21, 45, 75, 0.055);
}

.risk-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(94px, 0.82fr) auto;
  min-height: 88px;
  padding: 13px;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.category-name {
  overflow: visible;
  font-size: 13.5px;
  text-overflow: clip;
}

.category-subtitle {
  display: -webkit-box;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.risk-signal {
  align-items: flex-start;
  gap: 2px;
}

.direction {
  font-size: 9.5px;
  white-space: nowrap;
}

.direction::before {
  margin-right: 5px;
  font-size: 19px;
  font-weight: 400;
  vertical-align: -2px;
}

.direction-unknown::before {
  content: "−";
}

.direction-stable::before {
  content: "−";
}

.direction-easing::before {
  content: "↓";
}

.direction-note {
  padding-left: 24px;
  color: var(--navy-400);
  font-size: 8.5px;
  font-weight: 550;
}

.risk-level-cell {
  display: flex;
  justify-content: flex-end;
}

.risk-badge {
  min-width: 57px;
}

.headline-item {
  grid-template-columns: 27px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 11px;
  padding: 15px 14px;
}

.headline-rank {
  display: grid;
  width: 25px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-800);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
}

.headline-item:first-child .headline-rank,
.headline-item:nth-child(2) .headline-rank {
  background: #f3e7ff;
}

.headline-title {
  font-size: 13px;
}

.headline-meta {
  justify-content: flex-start;
  margin-top: 7px;
}

.headline-risk {
  gap: 0;
  padding-left: 8px;
  border-left: 1px solid #dacfe8;
}

.headline-chevron,
.card-chevron {
  color: #aab6c3;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.watchpoint-section {
  padding-top: 18px;
  padding-bottom: 8px;
}

.watchpoint-card {
  grid-template-columns: 48px minmax(0, 1fr) 12px;
  align-items: center;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
  box-shadow: 0 7px 24px rgba(36, 17, 63, 0.065);
}

.watchpoint-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-900);
  color: #fff;
}

.watchpoint-card .section-kicker {
  margin-bottom: 0;
  color: var(--brand-700);
  font-size: 9px;
  letter-spacing: 0.3px;
}

.watchpoint-card h2 {
  display: none;
}

#watchpoint-text {
  margin: 4px 0 0;
  color: var(--navy-900);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.55;
}

.watchpoint-text {
  margin: 4px 0 0;
  color: var(--navy-900);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.55;
}

.watchpoint-list {
  display: grid;
  gap: 12px;
}

.bottom-nav {
  grid-template-columns: repeat(4, 1fr);
  min-height: 78px;
}

.nav-item {
  color: var(--navy-400);
  font-size: 9px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 370px) {
  .risk-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(86px, 0.75fr) auto;
  }

  .category-icon {
    width: 43px;
    height: 43px;
  }

  .direction {
    font-size: 8.5px;
  }
}

/* News navigation and briefing article views */
.section-link {
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--blue);
}

.headline-item {
  cursor: pointer;
}

.headline-item:hover,
.headline-item:focus-visible {
  background: #f8fbff;
}

.headline-item:focus-visible,
.category-news-card:focus-visible,
.today-headline-card:focus-visible {
  outline: 2px solid rgba(30, 98, 208, 0.32);
  outline-offset: -2px;
}

.category-news-card {
  display: block;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.category-news-card:hover {
  border-color: #d4dfec;
  box-shadow: 0 13px 34px rgba(21, 45, 75, 0.1);
  transform: translateY(-1px);
}

.news-card-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
}

.subpage-view {
  min-height: calc(100vh - 88px);
  background: #f8fafc;
}

.subpage-header {
  padding: 24px 22px 27px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(30, 98, 208, 0.08), transparent 42%),
    #fff;
}

.subpage-header h1 {
  margin: 5px 0 7px;
  color: var(--navy-950);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.subpage-header > p:last-child {
  margin: 0;
  color: var(--navy-600);
  font-size: 12px;
  font-weight: 650;
}

.today-headlines-list {
  display: grid;
  gap: 13px;
  padding: 20px 18px 36px;
}

.today-headline-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 17px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.today-headline-card:hover {
  border-color: #d4dfec;
}

.today-headline-number {
  align-self: start;
  color: #c1ccd7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.today-headline-copy {
  min-width: 0;
}

.today-headline-copy h2 {
  margin: 7px 0 6px;
  color: var(--navy-950);
  font-size: 14px;
  line-height: 1.48;
}

.today-headline-copy > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--navy-600);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.today-headline-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
}

.today-headline-meta .direction {
  font-size: 9px;
}

.news-article-view {
  background: #fff;
  font-family: "Noto Sans Thai", "Sarabun", system-ui, sans-serif;
}

#news-detail-content {
  padding: 0 22px 48px;
}

.news-article-header {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.news-article-category {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.news-article-header > .category-chip-row {
  margin-bottom: 13px;
}

.news-article-header .category-chip {
  font-size: 10px;
  padding: 4px 10px;
}

.news-article-header time {
  display: block;
  margin-top: 13px;
  color: var(--navy-400);
  font-size: 10px;
  font-weight: 700;
}

.news-article-risk {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
}

.news-article-header h1 {
  margin: 22px 0 15px;
  color: var(--navy-950);
  font-size: clamp(24px, 6.6vw, 30px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0;
}

.news-article-lead {
  margin: 0;
  color: #405b75;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.9;
}

.article-briefing-section,
.article-watchpoint,
.article-source {
  margin: 0;
  padding: 28px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.article-summary {
  background: #fff;
}

.article-watchpoint {
  margin: 26px 0;
  padding: 20px 20px 20px 22px;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #f5f8fd;
}

.article-briefing-section h2,
.article-watchpoint h2,
.article-source h2 {
  margin: 4px 0 12px;
  color: var(--navy-950);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.article-briefing-section > p:last-child,
.article-watchpoint > p:last-child {
  margin: 0;
  color: var(--navy-600);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.9;
}

.article-signal-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding-left: 20px;
  color: var(--navy-600);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.85;
}

.article-signal-list li {
  padding-left: 3px;
}

.article-source {
  padding-top: 30px;
  border-bottom: 0;
}

.article-source-count {
  margin: 0 0 15px;
  color: var(--navy-400);
  font-size: 11px;
}

.article-source-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px 0 0 20px;
  border-top: 1px solid var(--line);
  color: var(--navy-400);
}

.article-source-list li {
  padding-left: 3px;
}

.article-source-list a,
.article-source-list span {
  overflow-wrap: anywhere;
  color: var(--navy-700);
  font-size: 13px;
  line-height: 1.65;
}

.article-source-list a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-source-empty {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--navy-400);
  font-size: 13px;
}

.article-source-row {
  display: grid;
  gap: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.article-source-row strong,
.article-source-row span {
  display: block;
}

.article-source-row strong {
  color: var(--navy-900);
  font-size: 13px;
}

.article-source-row span {
  margin-top: 4px;
  color: var(--navy-400);
  font-size: 10px;
}

.article-source-row a {
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 11px;
  line-height: 1.55;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* App menu and primary navigation update */
.header-spacer {
  width: 40px;
  height: 40px;
}

.menu-open {
  overflow: hidden;
}

.menu-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgba(7, 26, 51, 0.32);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.app-menu {
  position: fixed;
  z-index: 60;
  top: 0;
  bottom: 0;
  left: max(0px, calc((100vw - 480px) / 2));
  width: min(84vw, 350px);
  padding: max(22px, env(safe-area-inset-top)) 20px 28px;
  border-radius: 0 24px 24px 0;
  background: #fff;
  box-shadow: 20px 0 50px rgba(7, 26, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-105%);
  visibility: hidden;
  transition:
    transform 220ms ease,
    opacity 160ms ease,
    visibility 0s linear 220ms;
}

.app-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 220ms ease,
    opacity 160ms ease;
}

.menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.menu-header p,
.menu-header span,
.drawer-label {
  margin: 0;
}

.menu-header p {
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 750;
}

.menu-header span {
  display: block;
  margin-top: 4px;
  color: var(--navy-400);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.menu-close {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0 0 3px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #f2f5f9;
  color: var(--navy-600);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  gap: 7px;
  padding-top: 17px;
}

.drawer-nav button {
  width: 100%;
  padding: 12px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--navy-900);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.drawer-nav button:hover,
.drawer-nav button:focus-visible {
  background: var(--brand-soft-2);
  color: var(--blue);
}

.drawer-label {
  padding: 12px 11px 2px;
  color: var(--navy-400);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.drawer-categories {
  display: grid;
  gap: 2px;
  margin: 0 0 9px 10px;
  padding-left: 10px;
  border-left: 1px solid #dbe3ed;
}

.drawer-categories button {
  padding-top: 9px;
  padding-bottom: 9px;
  color: var(--navy-600);
  font-size: 11.5px;
  font-weight: 650;
}

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

.nav-item {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.watchlist-items {
  padding: 8px 22px 112px;
}

.watchlist-category {
  padding: 26px 0 8px;
  border-top: 1px solid var(--line);
}

.watchlist-category:first-child {
  border-top: 0;
}

.watchlist-category > h2 {
  margin: 0 0 22px;
  color: var(--navy-950);
  font-size: 20px;
  line-height: 1.35;
}

.watchlist-date-group {
  margin-bottom: 24px;
}

.watchlist-date-group h3 {
  margin: 0 0 9px;
  color: var(--navy-400);
  font-size: 11px;
  font-weight: 750;
}

.watchlist-date-group ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watchlist-date-group li {
  position: relative;
  border-bottom: 1px solid #edf1f5;
}

.watchlist-date-group li:last-child {
  border-bottom: 0;
}

.watchlist-date-group li::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

/* IEAT purple brand theme polish */
.topbar {
  border-bottom-color: rgba(231, 222, 241, 0.95);
}

.section-link {
  color: var(--brand-700);
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--brand-800);
}

.risk-list,
.headline-list,
.category-news-card,
.empty-news-card,
.today-headline-card,
.watchpoint-card {
  border-color: var(--line);
}

.headline-item:hover,
.headline-item:focus-visible,
.risk-row:hover,
.risk-row:focus-visible {
  background: var(--brand-soft-2);
}

.nav-item {
  color: var(--navy-400);
}

.nav-item.active {
  color: var(--brand-700);
}

.nav-item.active svg {
  fill: rgba(102, 51, 163, 0.09);
}

.watchpoint-section .section-heading h2 {
  color: var(--brand-900);
}

.watchpoint-card {
  border-color: #decfeb;
}

.watchlist-date-group button,
.watchlist-date-group li > p {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 0 14px 15px;
  border: 0;
  background: transparent;
  color: var(--navy-800);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
}

.watchlist-date-group button {
  cursor: pointer;
}

.watchlist-date-group button > span:first-child,
.watchlist-date-group li > p > span {
  flex: 1;
}

.watchlist-date-group button:active {
  background: #f8faff;
}

.watchlist-link-mark {
  flex: 0 0 auto;
  color: var(--navy-300);
  font-size: 20px;
  line-height: 1.1;
}

@media (prefers-reduced-motion: reduce) {
  .app-menu,
  .menu-backdrop {
    transition: none;
  }
}

/* Responsive tablet and desktop enhancements */
@media (min-width: 768px) {
  body {
    padding: 28px 18px;
  }

  .app-shell {
    max-width: 960px;
    min-height: calc(100vh - 56px);
    border: 1px solid #e1e7ee;
    border-radius: 30px;
    overflow: hidden;
  }

  .topbar {
    top: 28px;
    min-height: 84px;
    padding-right: 32px;
    padding-left: 32px;
  }

  main {
    padding-bottom: 106px;
  }

  .hero {
    padding: 42px 44px 24px;
  }

  .hero h1 {
    max-width: 620px;
    font-size: clamp(36px, 5vw, 48px);
  }

  .executive-summary {
    max-width: 720px;
    font-size: 14.5px;
  }

  .content-section {
    padding-right: 34px;
    padding-left: 34px;
  }

  .home-dashboard-grid {
    display: grid;
    gap: 0;
  }

  .category-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-news-card {
    display: flex;
    flex-direction: column;
  }

  .news-card-open {
    margin-top: auto;
  }

  #news-detail-content {
    max-width: 820px;
    margin: 0 auto;
    padding-right: 34px;
    padding-left: 34px;
  }

  .bottom-nav {
    right: 18px;
    bottom: 28px;
    left: 18px;
    max-width: 960px;
    border: 1px solid var(--line);
    border-radius: 0 0 30px 30px;
  }

  .app-menu {
    left: max(18px, calc((100vw - 960px) / 2));
  }
}

@media (min-width: 1024px) {
  body {
    padding: 32px 24px;
  }

  .app-shell {
    max-width: 1240px;
    min-height: calc(100vh - 64px);
  }

  .topbar {
    top: 32px;
    min-height: 82px;
    padding-right: 40px;
    padding-left: 40px;
  }

  .hero {
    padding: 48px 52px 28px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .executive-summary {
    max-width: 820px;
  }

  .home-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.95fr);
    gap: 24px;
    padding: 28px 40px 0;
    align-items: start;
  }

  .home-dashboard-grid > .content-section {
    min-width: 0;
    padding: 0;
  }

  .home-dashboard-grid .risk-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 14px;
  }

  .home-dashboard-grid .risk-main {
    min-width: 0;
  }

  .home-dashboard-grid .risk-signal,
  .home-dashboard-grid .risk-level-cell {
    padding-left: 60px;
  }

  .home-dashboard-grid .risk-level-cell {
    justify-content: flex-start;
  }

  .watchpoint-section {
    padding-right: 40px;
    padding-left: 40px;
  }

  .category-view,
  .today-headlines-view,
  .watchlist-view {
    max-width: 1040px;
    margin: 0 auto;
  }

  .category-news-list {
    gap: 18px;
  }

  #news-detail-content {
    max-width: 860px;
    padding-right: 0;
    padding-left: 0;
  }

  .bottom-nav {
    right: 24px;
    bottom: 32px;
    left: 24px;
    max-width: 1240px;
  }

  .app-menu {
    left: max(24px, calc((100vw - 1240px) / 2));
  }
}

/* Homepage dashboard refinement: full-width headlines, gridded risks */
@media (min-width: 768px) {
  .category-chip {
    padding: 4px 10px;
    font-size: 10.5px;
  }

  .headline-meta .category-chip {
    padding: 4px 9px;
    font-size: 10px;
  }

  .hero {
    text-align: center;
  }

  .hero h1,
  .executive-summary {
    margin-right: auto;
    margin-left: auto;
  }

  .home-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-dashboard-grid #risk-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-dashboard-grid #risk-overview .risk-row {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 24px rgba(21, 45, 75, 0.055);
  }

  .home-dashboard-grid #risk-overview .risk-row:last-child {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 1024px) {
  .home-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 40px 0;
  }

  .home-dashboard-grid > .content-section {
    padding: 0;
  }

  .home-dashboard-grid .risk-row {
    grid-template-columns: minmax(0, 1.25fr) minmax(112px, 0.72fr) auto;
    gap: 12px;
    min-height: 88px;
    padding: 13px;
  }

  .home-dashboard-grid .risk-signal,
  .home-dashboard-grid .risk-level-cell {
    padding-left: 0;
  }

  .home-dashboard-grid .risk-level-cell {
    justify-content: flex-end;
  }

  .watchpoint-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Premium IEAT executive portal polish */
body {
  background:
    radial-gradient(circle at 15% -120px, rgba(123, 75, 194, 0.18), transparent 360px),
    radial-gradient(circle at 92% 8%, rgba(245, 130, 32, 0.08), transparent 300px),
    linear-gradient(180deg, #fbf9fe 0%, #f4f0fa 54%, #f7f3fb 100%);
}

.app-shell {
  background: linear-gradient(180deg, #fff 0%, #fff 58%, #fbf9fe 100%);
}

.topbar {
  border-bottom-color: rgba(229, 216, 242, 0.95);
  box-shadow: 0 10px 30px rgba(36, 17, 63, 0.045);
}

.brand-title {
  color: var(--brand-950);
  letter-spacing: -0.15px;
}

.brand-subtitle {
  color: #8a76a3;
}

.icon-button {
  color: var(--brand-800);
}

.hero {
  isolation: isolate;
  min-height: 230px;
  text-align: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(123, 75, 194, 0.18), transparent 34%),
    radial-gradient(circle at 18% 0%, rgba(102, 51, 163, 0.08), transparent 36%),
    linear-gradient(135deg, #fff 0%, #fdfcff 52%, #f4ecfb 100%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  right: -80px;
  bottom: -90px;
  width: 360px;
  height: 210px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(102, 51, 163, 0.08), rgba(123, 75, 194, 0.02)),
    repeating-linear-gradient(115deg, rgba(75, 35, 130, 0.08) 0 1px, transparent 1px 17px);
  transform: rotate(-9deg);
  content: "";
}

.hero::after {
  display: block;
  z-index: -1;
  top: 24px;
  right: 28px;
  width: 128px;
  height: 128px;
  border: 0;
  border-radius: 28px;
  background-image: radial-gradient(rgba(102, 51, 163, 0.2) 1px, transparent 1.3px);
  background-size: 14px 14px;
  opacity: 0.35;
}

#report-date {
  color: var(--brand-700);
}

.hero h1 {
  margin-right: auto;
  margin-left: auto;
  color: var(--brand-950);
  font-weight: 780;
  letter-spacing: -1px;
}

.executive-summary {
  margin-right: auto;
  margin-left: auto;
  color: var(--text-muted);
}

.section-heading h2,
.watchpoint-card h2 {
  color: var(--brand-950);
}

.section-link {
  color: var(--brand-700);
}

.risk-list,
.headline-list {
  border-color: #e4d7f0;
  box-shadow:
    0 18px 42px rgba(36, 17, 63, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.headline-item {
  border-bottom-color: #eee6f5;
}

.headline-rank {
  background: var(--brand-soft);
  color: var(--brand-800);
  box-shadow: inset 0 0 0 1px rgba(102, 51, 163, 0.08);
}

.headline-item:first-child .headline-rank,
.headline-item:nth-child(2) .headline-rank {
  background: linear-gradient(180deg, #f6edff 0%, #eee0fb 100%);
  color: var(--brand-800);
}

.headline-title {
  color: var(--text-main);
}

.home-dashboard-grid #risk-overview .risk-row,
.risk-row {
  border-color: #e4d7f0;
  box-shadow: 0 12px 30px rgba(36, 17, 63, 0.055);
}

.watchpoint-card {
  border-color: #decfeb;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 249, 254, 0.98) 100%),
    radial-gradient(circle at 100% 0%, rgba(123, 75, 194, 0.08), transparent 42%);
  box-shadow:
    0 16px 38px rgba(36, 17, 63, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.watchpoint-icon {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, var(--brand-900), var(--brand-700));
  box-shadow: 0 10px 20px rgba(75, 35, 130, 0.2);
}

.watchpoint-card .section-kicker {
  color: var(--brand-700);
}

.bottom-nav {
  border-top-color: rgba(229, 216, 242, 0.95);
  box-shadow: 0 -12px 32px rgba(36, 17, 63, 0.055);
}

.nav-item {
  color: #8f83a0;
}

.nav-item.active {
  position: relative;
  color: var(--brand-700);
}

.nav-item.active::before {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-600));
  box-shadow: 0 4px 12px rgba(102, 51, 163, 0.22);
  transform: translateX(-50%);
  content: "";
}

@media (min-width: 768px) {
  .app-shell {
    box-shadow:
      0 24px 80px rgba(36, 17, 63, 0.13),
      0 1px 0 rgba(255, 255, 255, 0.92) inset;
  }

  .hero {
    min-height: 280px;
  }

  .headline-list,
  .home-dashboard-grid #risk-overview .risk-row,
  .watchpoint-card {
    border-radius: 20px;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 300px;
  }

  .watchpoint-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 0;
  }

  .hero::before {
    right: -160px;
    bottom: -120px;
    opacity: 0.7;
  }

  .hero::after {
    width: 90px;
    height: 90px;
    opacity: 0.25;
  }
}

/* Reference-matching compact hero/header polish */
body {
  background:
    radial-gradient(circle at 16% -130px, rgba(123, 75, 194, 0.14), transparent 340px),
    radial-gradient(circle at 92% 6%, rgba(102, 51, 163, 0.09), transparent 320px),
    linear-gradient(180deg, #fbf9fe 0%, #f4f0fa 58%, #f8f5fb 100%);
}

.app-shell {
  border-color: #e4d7f0;
}

.topbar {
  min-height: 70px;
  padding: max(14px, env(safe-area-inset-top)) 22px 11px;
  box-shadow:
    0 6px 20px rgba(36, 17, 63, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.brand-title {
  font-size: 17px;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 1.9px;
}

.hero {
  min-height: 170px;
  padding: 24px 24px 20px;
  background:
    radial-gradient(circle at 82% 14%, rgba(123, 75, 194, 0.16), transparent 32%),
    radial-gradient(circle at 18% 0%, rgba(102, 51, 163, 0.07), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fdfcff 50%, #f3eafb 100%);
}

.hero::before {
  right: -54px;
  bottom: -46px;
  width: 300px;
  height: 168px;
  opacity: 0.9;
}

.hero::after {
  top: 18px;
  right: 22px;
  width: 112px;
  height: 112px;
  opacity: 0.28;
}

#report-date {
  font-size: 9px;
  letter-spacing: 0.65px;
}

.hero h1 {
  margin: 8px auto 8px;
  font-size: clamp(30px, 6.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.8px;
}

.executive-summary {
  max-width: 860px;
  font-size: 12px;
  line-height: 1.55;
}

.home-dashboard-grid {
  padding-top: 16px;
}

.content-section {
  padding-top: 20px;
}

.home-dashboard-grid > .content-section:first-child {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 10px;
}

.headline-item {
  padding-top: 13px;
  padding-bottom: 13px;
}

@media (min-width: 768px) {
  .topbar {
    top: 0;
    min-height: 62px;
    padding: 11px 34px 9px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 7px;
  }

  .hero {
    min-height: 166px;
    padding: 20px 44px 20px;
  }

  .hero h1 {
    font-size: clamp(32px, 4.4vw, 40px);
  }

  .executive-summary {
    font-size: 11.5px;
  }

  .home-dashboard-grid {
    padding-top: 16px;
  }
}

@media (min-width: 1024px) {
  .topbar {
    top: 0;
    min-height: 58px;
    padding: 10px 46px 8px;
  }

  .brand-title {
    font-size: 15px;
  }

  .hero {
    min-height: 174px;
    padding: 20px 52px 22px;
  }

  .hero h1 {
    font-size: clamp(34px, 3vw, 42px);
  }

  .home-dashboard-grid {
    padding-top: 18px;
  }

  .headline-item {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(28px, 7.2vw, 34px);
  }

  .executive-summary {
    font-size: 12.5px;
  }
}

/* Stronger reference-match visual pass */
body {
  background:
    radial-gradient(circle at 10% -160px, rgba(123, 75, 194, 0.24), transparent 360px),
    radial-gradient(circle at 88% 0%, rgba(102, 51, 163, 0.18), transparent 330px),
    linear-gradient(180deg, #f7f3fb 0%, #f3eef9 46%, #faf8fd 100%);
}

.app-shell {
  border: 1px solid rgba(227, 212, 243, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #fff 42%, #fbf9fe 100%);
  box-shadow:
    0 28px 90px rgba(36, 17, 63, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.topbar {
  min-height: 74px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 50% 0%, rgba(123, 75, 194, 0.08), transparent 52%);
  border-bottom-color: rgba(213, 190, 232, 0.95);
  box-shadow:
    0 10px 28px rgba(36, 17, 63, 0.075),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.brand-title {
  color: var(--brand-900);
  font-size: 20px;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--brand-700);
  font-size: 9px;
  letter-spacing: 2.1px;
}

.icon-button {
  color: var(--brand-800);
}

.hero {
  min-height: 205px;
  padding: 30px 26px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 14%, rgba(123, 75, 194, 0.25), transparent 28%),
    radial-gradient(circle at 100% 38%, rgba(102, 51, 163, 0.2), transparent 31%),
    linear-gradient(155deg, #fff 0%, #fdfbff 38%, #f2e8fb 76%, #fbf9fe 100%);
}

.hero::before {
  right: -32px;
  bottom: -62px;
  width: min(560px, 46vw);
  height: 250px;
  border-radius: 55% 0 0 0 / 100% 0 0 0;
  background:
    radial-gradient(circle at 58% 34%, rgba(255, 255, 255, 0.34), transparent 19%),
    linear-gradient(135deg, rgba(123, 75, 194, 0.24), rgba(102, 51, 163, 0.07) 56%, rgba(255, 255, 255, 0));
  filter: blur(0.2px);
  opacity: 1;
  transform: rotate(-6deg);
}

.hero::after {
  top: 18px;
  right: 34px;
  width: min(360px, 34vw);
  height: 170px;
  border-radius: 34px;
  background-image:
    radial-gradient(circle, rgba(102, 51, 163, 0.3) 1px, transparent 1.45px),
    linear-gradient(32deg, transparent 48%, rgba(102, 51, 163, 0.12) 49%, transparent 51%),
    linear-gradient(142deg, transparent 48%, rgba(102, 51, 163, 0.08) 49%, transparent 51%);
  background-size: 18px 18px, 62px 62px, 74px 74px;
  opacity: 0.42;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

#report-date {
  color: var(--brand-800);
  font-size: 10px;
  font-weight: 850;
}

.hero h1 {
  color: var(--brand-900);
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 820;
  letter-spacing: -1.15px;
  text-shadow: 0 10px 30px rgba(102, 51, 163, 0.08);
}

.executive-summary {
  max-width: 880px;
  color: #4f415f;
  font-size: 12.5px;
  font-weight: 560;
}

.home-dashboard-grid {
  padding-top: 18px;
}

.section-heading h2,
.watchpoint-section .section-heading h2 {
  color: var(--brand-900);
  font-weight: 850;
  letter-spacing: 0.25px;
}

.section-link {
  color: var(--brand-800);
  font-weight: 800;
}

.headline-list {
  border: 1px solid #ddcaef;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(253, 251, 255, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(123, 75, 194, 0.08), transparent 42%);
  box-shadow:
    0 22px 50px rgba(36, 17, 63, 0.12),
    0 2px 8px rgba(36, 17, 63, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.headline-item {
  border-bottom-color: #eadff3;
  padding-top: 14px;
  padding-bottom: 14px;
}

.headline-rank {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f4ecfb 0%, #eadcf8 100%);
  color: var(--brand-800);
  box-shadow:
    inset 0 0 0 1px rgba(102, 51, 163, 0.1),
    0 8px 18px rgba(102, 51, 163, 0.1);
  font-size: 15px;
}

.headline-title {
  color: #16102a;
  font-weight: 800;
}

.headline-risk {
  border-left-color: #ddcaef;
}

.home-dashboard-grid #risk-overview .risk-row {
  border-color: #dfcdef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(253, 251, 255, 0.97));
  box-shadow:
    0 16px 36px rgba(36, 17, 63, 0.085),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.home-dashboard-grid #risk-overview .risk-row:hover,
.headline-item:hover,
.headline-item:focus-visible {
  background:
    linear-gradient(180deg, #fff 0%, #fbf7ff 100%);
}

.watchpoint-card {
  border-color: #d9c4eb;
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 75, 194, 0.1), transparent 36%),
    linear-gradient(180deg, #fff 0%, #fdfaff 100%);
  box-shadow:
    0 20px 44px rgba(36, 17, 63, 0.12),
    0 2px 8px rgba(36, 17, 63, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.watchpoint-icon {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(145deg, var(--brand-950), var(--brand-700));
  box-shadow:
    0 10px 20px rgba(75, 35, 130, 0.28),
    0 0 0 7px rgba(102, 51, 163, 0.08);
}

.watchpoint-card .section-kicker {
  color: var(--brand-700);
  font-weight: 850;
}

.bottom-nav {
  border-top-color: #dfcdef;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -16px 40px rgba(36, 17, 63, 0.08);
}

.nav-item.active::before {
  width: 42px;
  top: 4px;
}

@media (min-width: 768px) {
  .topbar {
    min-height: 70px;
    padding-top: 13px;
    padding-bottom: 10px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .hero {
    min-height: 220px;
    padding: 28px 56px 30px;
  }

  .hero h1 {
    font-size: clamp(44px, 4.2vw, 56px);
  }

  .executive-summary {
    font-size: 14px;
    line-height: 1.6;
  }

  .home-dashboard-grid {
    padding-top: 20px;
  }

  .headline-rank {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .headline-item {
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    gap: 18px;
    padding: 16px 22px;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 238px;
    padding: 30px 64px 32px;
  }

  .hero h1 {
    font-size: clamp(48px, 3.5vw, 60px);
  }

  .home-dashboard-grid {
    padding-top: 22px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 0;
    padding: 30px 22px 24px;
  }

  .hero::before {
    right: -170px;
    bottom: -88px;
    width: 310px;
    height: 180px;
    opacity: 0.72;
  }

  .hero::after {
    right: -18px;
    width: 150px;
    height: 116px;
    opacity: 0.24;
  }

  .hero h1 {
    font-size: clamp(30px, 8vw, 36px);
  }

  .executive-summary {
    font-size: 12.5px;
    font-weight: 500;
  }

  .headline-rank {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 12px;
  }
}

/* Header and hero reference-match refinements */
.brand-subtitle {
  background: linear-gradient(90deg, var(--brand-800), #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: 850;
}

.hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 62%, #fff 100%),
    radial-gradient(circle at 82% 10%, rgba(123, 75, 194, 0.28), transparent 27%),
    radial-gradient(circle at 100% 34%, rgba(102, 51, 163, 0.22), transparent 33%),
    linear-gradient(150deg, #fff 0%, #fdfbff 35%, #f0e5fa 72%, #fff 100%);
}

.hero::before {
  right: -52px;
  bottom: -28px;
  width: min(620px, 50vw);
  height: 236px;
  border-radius: 54% 0 0 0 / 100% 0 0 0;
  background:
    radial-gradient(circle at 46% 26%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(130deg, rgba(123, 75, 194, 0.3), rgba(102, 51, 163, 0.11) 58%, rgba(255, 255, 255, 0));
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  transform: rotate(-7deg);
}

.hero::after {
  top: 10px;
  right: 28px;
  width: min(390px, 36vw);
  height: 174px;
  background-image:
    radial-gradient(circle, rgba(102, 51, 163, 0.34) 1px, transparent 1.4px),
    linear-gradient(34deg, transparent 48%, rgba(102, 51, 163, 0.14) 49%, transparent 51%),
    linear-gradient(146deg, transparent 48%, rgba(102, 51, 163, 0.1) 49%, transparent 51%);
  background-size: 18px 18px, 58px 58px, 72px 72px;
  opacity: 0.38;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 34%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
  mask-composite: intersect;
}

@media (min-width: 768px) {
  .topbar {
    min-height: 66px;
  }

  .brand-subtitle {
    font-size: 10.5px;
    letter-spacing: 2.45px;
  }

  #report-date {
    position: absolute;
    z-index: 24;
    top: -48px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--brand-800);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.55px;
    line-height: 1;
  }

  #report-date::before {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.8px solid currentColor;
    border-top-width: 3px;
    border-radius: 3px;
    box-shadow: inset 0 3px 0 rgba(102, 51, 163, 0.12);
    content: "";
  }

  .hero {
    min-height: 216px;
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero h1 {
    margin-top: 0;
  }

  .home-dashboard-grid {
    padding-top: 12px;
  }
}

@media (min-width: 1024px) {
  #report-date {
    top: -46px;
    right: 48px;
  }

  .hero {
    min-height: 224px;
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .home-dashboard-grid {
    padding-top: 14px;
  }
}

@media (max-width: 600px) {
  .brand-subtitle {
    font-size: 8.5px;
    letter-spacing: 2px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%),
      radial-gradient(circle at 88% 14%, rgba(123, 75, 194, 0.2), transparent 32%),
      linear-gradient(150deg, #fff 0%, #fbf7ff 68%, #fff 100%);
  }

  #report-date {
    position: static;
  }
}

/* Header date and typography refinement */
body {
  font-family: "Noto Sans Thai", "Sarabun", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  column-gap: 12px;
}

.brand-title {
  font-weight: 760;
  letter-spacing: -0.025em;
}

.brand-subtitle {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2.25px;
}

#report-date {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  margin: 0;
  color: var(--brand-800);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
}

#report-date::before {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1.7px solid currentColor;
  border-top-width: 3px;
  border-radius: 3px;
  box-shadow: inset 0 3px 0 rgba(102, 51, 163, 0.1);
  content: "";
}

.hero h1 {
  color: var(--brand-900);
  font-family: "Noto Sans Thai", "Sarabun", "Inter", system-ui, sans-serif;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.headline-title,
.today-headline-copy h2,
.category-news-card h3,
.watchpoint-card p:not(.section-kicker) {
  font-family: "Noto Sans Thai", "Sarabun", "Inter", system-ui, sans-serif;
  font-weight: 680;
  line-height: 1.55;
}

.headline-title {
  font-weight: 680;
}

.section-heading h2,
.watchpoint-section .section-heading h2 {
  font-weight: 760;
  letter-spacing: 0.01em;
}

.executive-summary,
.category-subtitle,
.headline-risk {
  font-family: "Noto Sans Thai", "Sarabun", "Inter", system-ui, sans-serif;
}

@media (min-width: 768px) {
  #report-date {
    font-size: 10.5px;
  }

  .brand-subtitle {
    font-size: 10.5px;
    letter-spacing: 2.45px;
  }

  .hero h1 {
    font-size: clamp(38px, 3.8vw, 52px);
    font-weight: 730;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: clamp(42px, 3vw, 54px);
  }
}

@media (max-width: 600px) {
  .topbar {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    column-gap: 8px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 7.5px;
    letter-spacing: 1.8px;
  }

  #report-date {
    gap: 4px;
    font-size: 7.5px;
    letter-spacing: 0.25px;
  }

  #report-date::before {
    width: 9px;
    height: 9px;
    border-width: 1.4px;
    border-top-width: 2.4px;
    border-radius: 2.5px;
  }

  .hero h1 {
    font-size: clamp(28px, 7.4vw, 34px);
    font-weight: 720;
    letter-spacing: -0.03em;
  }
}

/* Topbar brand refinement */
.topbar {
  min-height: 82px;
  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: 14px;
}

.brand-title {
  color: var(--brand-900);
  font-size: 21px;
  font-weight: 760;
}

.brand-subtitle {
  margin-top: 3px;
  background: linear-gradient(90deg, #243cff 0%, #7c3aed 48%, #ec4899 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: #6633a3;
  -webkit-text-fill-color: transparent;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.35px;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .brand-subtitle {
    color: #6633a3;
    -webkit-text-fill-color: currentColor;
  }
}

@media (min-width: 768px) {
  .topbar {
    min-height: 78px;
    padding-top: 16px;
    padding-bottom: 13px;
  }

  .brand-title {
    font-size: 23px;
  }

  .brand-subtitle {
    font-size: 11px;
    letter-spacing: 2.55px;
  }
}

@media (min-width: 1024px) {
  .topbar {
    min-height: 80px;
    padding-top: 17px;
    padding-bottom: 14px;
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: 78px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: 13px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 1.9px;
  }
}

/* Shared digital background integration */
main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 600px);
}

main::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 560px;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.48) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.28) 62%, #fff 100%),
    url("./assets/ieat-digital-purple-bg.png");
  background-position: center top, center top, right top;
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 68%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 68%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
}

main > * {
  position: relative;
  z-index: 1;
}

main > #home-view,
main > .category-view,
main > .subpage-view {
  background: transparent;
}

#home-view .hero {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

#home-view .hero::before,
#home-view .hero::after {
  display: none;
}

#home-view .home-dashboard-grid {
  background: transparent;
}

#home-view .home-dashboard-grid > .content-section:first-child {
  padding-top: 4px;
}

#home-view .home-dashboard-grid > .content-section:nth-child(2) {
  padding-top: 28px;
}

@media (min-width: 768px) {
  main::before {
    height: 620px;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.74) 44%, rgba(255, 255, 255, 0.34) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.22) 58%, #fff 100%),
      url("./assets/ieat-digital-purple-bg.png");
    background-position: center top, center top, right top;
  }
}

@media (min-width: 1024px) {
  main::before {
    height: 650px;
    background-position: center top, center top, right top;
  }
}

@media (max-width: 767px) {
  main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 820px);
  }

  main::before {
    height: 840px;
    background-image:
      linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.52) 54%, rgba(255, 255, 255, 0.22) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.2) 58%, #fff 100%),
      url("./assets/ieat-digital-purple-bg-mobile.png");
    background-position: center top, center top, top center;
    background-size: cover, cover, 100% auto;
    opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.45) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.45) 88%, transparent 100%);
  }

  #home-view .home-dashboard-grid > .content-section:first-child {
    padding-top: 0;
  }
}

/* Watchpoint Radar Eye icon */
.watchpoint-icon {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 35% 28%, #7b4bc2 0%, #4b2382 48%, #24113f 100%);
  color: #fff;
  box-shadow:
    0 12px 26px rgba(75, 35, 130, 0.3),
    0 0 0 6px rgba(123, 75, 194, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.watchpoint-icon .radar-eye-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.22));
}

.watchpoint-icon .radar-orbit {
  stroke: #d9ccff;
  stroke-width: 1.55;
  opacity: 0.92;
}

.watchpoint-icon .radar-dot {
  fill: #efe8ff;
  stroke: none;
}

/* Watchpoint readability grid */
@media (min-width: 768px) {
  .watchpoint-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .watchpoint-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 768px) {
  .watchpoint-list > .watchpoint-card:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .watchpoint-list {
    grid-template-columns: 1fr;
  }
}

/* Risk Overview readability */
.home-dashboard-grid #risk-overview .risk-row {
  min-height: 96px;
  padding: 16px 15px;
}

.home-dashboard-grid #risk-overview .category-name {
  margin-bottom: 5px;
}

.home-dashboard-grid #risk-overview .category-subtitle {
  display: -webkit-box;
  overflow: hidden;
  color: #90869f;
  font-size: 11.2px;
  line-height: 1.48;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 768px) {
  .home-dashboard-grid #risk-overview {
    gap: 14px;
  }

  .home-dashboard-grid #risk-overview .risk-row {
    min-height: 112px;
    padding: 18px 16px;
  }

  .home-dashboard-grid #risk-overview .risk-main {
    align-items: flex-start;
    gap: 14px;
  }

  .home-dashboard-grid #risk-overview .category-name {
    font-size: 14px;
    line-height: 1.28;
  }

  .home-dashboard-grid #risk-overview .category-subtitle {
    font-size: 12.4px;
    line-height: 1.52;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1024px) {
  .home-dashboard-grid .risk-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(118px, 0.64fr) auto;
    gap: 14px;
  }

  .home-dashboard-grid #risk-overview .risk-row {
    min-height: 118px;
    padding: 18px 18px;
  }

  .home-dashboard-grid #risk-overview .category-subtitle {
    font-size: 12.8px;
    line-height: 1.5;
  }
}

@media (max-width: 600px) {
  .home-dashboard-grid #risk-overview .risk-row {
    min-height: 92px;
    padding: 14px;
  }

  .home-dashboard-grid #risk-overview .category-subtitle {
    font-size: 11px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }
}

/* Reports embedded view */
.reports-view {
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 75, 194, 0.1), transparent 36%),
    linear-gradient(180deg, #fff 0%, #fbf9fe 100%);
}

.reports-header {
  border-bottom: 0;
}

.reports-frame-shell {
  height: clamp(500px, calc(100vh - 300px), 820px);
  margin: 0 18px;
  overflow: hidden;
  border: 1px solid #decfeb;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 18px 44px rgba(36, 17, 63, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.reports-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.reports-fallback {
  margin: 14px 22px 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.reports-fallback a {
  color: var(--brand-700);
  font-weight: 800;
  text-decoration: none;
}

.reports-fallback a:hover,
.reports-fallback a:focus-visible {
  text-decoration: underline;
}

/* GRC Snapshot */
.grc-snapshot-section {
  position: relative;
  margin-top: 24px;
}

.grc-snapshot-shell {
  overflow: hidden;
  padding: 16px;
  border: 1px dashed rgba(102, 51, 163, 0.48);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 8%, rgba(123, 75, 194, 0.11), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(248, 244, 253, 0.92));
  box-shadow:
    0 18px 44px rgba(36, 17, 63, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.grc-snapshot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1px 2px 14px;
}

.grc-snapshot-header-icon,
.grc-status-icon,
.grc-update-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
}

.grc-snapshot-header-icon {
  width: 42px;
  height: 42px;
  background: rgba(102, 51, 163, 0.1);
  color: var(--brand-700);
}

.grc-snapshot-header-icon svg,
.grc-status-icon svg,
.grc-update-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.grc-snapshot-header-icon svg {
  width: 21px;
  height: 21px;
}

.grc-snapshot-heading-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.grc-snapshot-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.grc-snapshot-link:hover,
.grc-snapshot-link:focus-visible {
  background: rgba(102, 51, 163, 0.08);
  outline: none;
}

.grc-snapshot-heading-copy h2 {
  margin: 0;
  color: var(--brand-950);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.grc-snapshot-heading-copy p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.grc-snapshot-body {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(430px, 2.35fr) minmax(180px, 0.86fr);
  gap: 12px;
  min-width: 0;
}

.grc-snapshot-panel {
  min-width: 0;
  border: 1px solid rgba(102, 51, 163, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 9px 24px rgba(36, 17, 63, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.grc-snapshot-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 8px;
}

.grc-count-metric {
  display: flex;
  min-width: 0;
  min-height: 106px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  text-align: center;
}

.grc-count-metric + .grc-count-metric {
  border-left: 1px solid rgba(231, 222, 241, 0.9);
}

.grc-count-metric strong {
  color: var(--brand-800);
  font-size: 29px;
  font-weight: 820;
  line-height: 1;
}

.grc-count-metric span {
  margin-top: 3px;
  color: var(--brand-950);
  font-size: 12.5px;
  font-weight: 780;
  line-height: 1.25;
}

.grc-count-metric small {
  color: #756a82;
  font-size: 10.5px;
  line-height: 1.25;
}

.grc-snapshot-status-summary {
  padding: 12px 14px 13px;
}

.grc-snapshot-panel-label {
  margin: 0 0 10px;
  color: var(--brand-900);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.grc-snapshot-statuses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  gap: 8px;
}

.grc-status-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.grc-status-icon {
  width: 34px;
  height: 34px;
}

.grc-status-icon svg {
  width: 17px;
  height: 17px;
}

.grc-status-copy {
  display: grid;
  min-width: 0;
}

.grc-status-copy strong {
  color: currentColor;
  font-size: 20px;
  font-weight: 840;
  line-height: 1;
}

.grc-status-copy b {
  margin-top: 3px;
  color: var(--brand-950);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.2;
}

.grc-status-copy small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 8.5px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.grc-status-achieved {
  color: #159a62;
}

.grc-status-achieved .grc-status-icon {
  background: rgba(21, 154, 98, 0.11);
}

.grc-status-on-track {
  color: #1677c8;
}

.grc-status-on-track .grc-status-icon {
  background: rgba(22, 119, 200, 0.11);
}

.grc-status-mixed {
  color: #c47a08;
}

.grc-status-mixed .grc-status-icon {
  background: rgba(196, 122, 8, 0.12);
}

.grc-status-not-meet {
  color: #d73d4c;
}

.grc-status-not-meet .grc-status-icon {
  background: rgba(215, 61, 76, 0.1);
}

.grc-status-other {
  color: #756a82;
}

.grc-status-other .grc-status-icon {
  background: rgba(117, 106, 130, 0.11);
}

.grc-snapshot-update {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px;
}

.grc-update-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(102, 51, 163, 0.1);
  color: var(--brand-700);
}

.grc-update-icon svg {
  width: 19px;
  height: 19px;
}

.grc-update-copy {
  display: grid;
  min-width: 0;
}

.grc-update-copy small {
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 720;
}

.grc-update-copy strong {
  margin-top: 4px;
  color: var(--brand-950);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.25;
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grc-snapshot-body {
    grid-template-columns: minmax(180px, 0.78fr) minmax(0, 2fr);
  }

  .grc-snapshot-statuses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grc-snapshot-update {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .grc-snapshot-section {
    margin-top: 20px;
  }

  .grc-snapshot-shell {
    padding: 13px;
    border-style: solid;
    border-color: rgba(102, 51, 163, 0.22);
    border-radius: 17px;
  }

  .grc-snapshot-header {
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
  }

  .grc-snapshot-header-icon {
    width: 38px;
    height: 38px;
  }

  .grc-snapshot-heading-copy h2 {
    font-size: 14px;
  }

  .grc-snapshot-heading-copy p {
    font-size: 10.5px;
  }

  .grc-snapshot-link {
    align-self: center;
    min-height: 34px;
    padding-right: 3px;
    padding-left: 5px;
    font-size: 9.5px;
  }

  .grc-snapshot-body {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .grc-snapshot-counts {
    padding: 9px 10px;
  }

  .grc-count-metric {
    min-height: 76px;
    padding: 7px 5px;
  }

  .grc-count-metric + .grc-count-metric {
    border-left: 1px solid rgba(231, 222, 241, 0.86);
  }

  .grc-count-metric strong {
    font-size: 25px;
  }

  .grc-count-metric span {
    font-size: 12.5px;
  }

  .grc-count-metric small {
    font-size: 10.5px;
  }

  .grc-snapshot-status-summary {
    padding: 11px;
  }

  .grc-snapshot-statuses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 8px;
  }

  .grc-status-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
  }

  .grc-status-icon {
    width: 32px;
    height: 32px;
  }

  .grc-status-copy strong {
    font-size: 18px;
  }

  .grc-status-copy b {
    font-size: 9.5px;
  }

  .grc-status-copy small {
    font-size: 8px;
  }

  .grc-snapshot-update {
    justify-content: flex-start;
    min-height: 58px;
    padding: 10px 12px;
  }

  .grc-update-copy strong {
    white-space: normal;
  }
}

/* GRC main page */
.grc-page-view {
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(123, 75, 194, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 253, 0.96));
}

.grc-page-view .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grc-page-toolbar {
  background: transparent;
}

.grc-page-content {
  min-width: 0;
  margin: 0 18px;
  padding: 12px 0 10px;
}

.grc-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 152px;
  overflow: hidden;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 76% 15%, rgba(255, 255, 255, 0.17), transparent 34%),
    linear-gradient(125deg, #3c1676 0%, #5f34aa 55%, #8a65cc 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(53, 24, 95, 0.23);
}

.grc-page-hero-icon {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  margin-right: 18px;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-700);
  box-shadow: 0 11px 28px rgba(36, 17, 63, 0.16);
}

.grc-page-hero-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.grc-page-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
  min-width: 0;
}

.grc-page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 820;
  letter-spacing: 0.02em;
  line-height: 1;
}

.grc-page-hero-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.grc-page-hero-copy .grc-page-hero-subtitle {
  margin-top: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 720;
}

.grc-page-hero-pattern {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 24px;
  width: min(36%, 420px);
  height: 112px;
  transform: translateY(-50%);
  fill: none;
  color: rgba(255, 255, 255, 0.2);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.grc-hero-artwork-shield {
  stroke-width: 2;
}

.grc-hero-artwork-baseline {
  opacity: 0.62;
}

.grc-page-summary {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(430px, 1.9fr) minmax(200px, 0.85fr);
  gap: 12px;
  margin-top: 16px;
}

.grc-summary-card,
.grc-page-main-card,
.grc-support-card,
.grc-page-empty {
  min-width: 0;
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 32px rgba(36, 17, 63, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

.grc-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.grc-summary-metric {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 15px 14px;
}

.grc-summary-metric-label {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.grc-summary-metric-label small {
  color: var(--brand-950);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.grc-summary-metric-label b {
  color: #746985;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

.grc-summary-metric-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.grc-summary-metric-main > strong {
  color: var(--brand-800);
  font-size: 31px;
  font-weight: 830;
  line-height: 1;
}

.grc-summary-total-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(102, 51, 163, 0.08);
  border-radius: 13px;
  background: rgba(102, 51, 163, 0.09);
  color: var(--brand-700);
}

.grc-summary-metric-indicators .grc-summary-total-icon {
  border-color: rgba(39, 121, 199, 0.12);
  background: rgba(39, 121, 199, 0.09);
  color: #2979c7;
}

.grc-summary-total-icon svg,
.grc-page-note svg,
.grc-search-field svg,
.grc-category-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.grc-summary-total-icon svg {
  width: 20px;
  height: 20px;
}

.grc-summary-statuses {
  min-height: 112px;
  padding: 14px 16px;
}

.grc-summary-label {
  margin: 0 0 10px;
  color: var(--brand-950);
  font-size: 12px;
  font-weight: 800;
}

.grc-summary-label span {
  color: var(--text-muted);
  font-weight: 650;
}

.grc-summary-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.grc-summary-status {
  display: grid;
  grid-template-columns: 31px auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.grc-summary-status .grc-status-icon {
  width: 31px;
  height: 31px;
}

.grc-summary-status .grc-status-icon svg {
  width: 15px;
  height: 15px;
}

.grc-summary-status > strong {
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.grc-summary-status > span:last-child {
  display: grid;
  min-width: 0;
}

.grc-summary-status b {
  color: var(--brand-950);
  font-size: 10.5px;
  line-height: 1.25;
}

.grc-summary-status small {
  margin-top: 2px;
  color: #746985;
  font-size: 9.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.grc-summary-latest {
  display: grid;
  min-height: 112px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 15px 18px;
  text-align: center;
}

.grc-summary-latest-label {
  color: #746985;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.grc-summary-latest-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.grc-summary-latest-main strong {
  color: var(--brand-950);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.3;
  white-space: nowrap;
}

.grc-page-empty {
  margin-top: 18px;
  padding: 42px 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.grc-page-main-card {
  margin-top: 18px;
  overflow: hidden;
}

.grc-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbf9fe, #f7f3fb);
}

.grc-view-tab {
  position: relative;
  display: grid;
  min-height: 68px;
  padding: 13px 16px 11px;
  border: 0;
  border-right: 1px solid rgba(231, 222, 241, 0.82);
  background: transparent;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
}

.grc-view-tab:last-child {
  border-right: 0;
}

.grc-view-tab strong {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

.grc-view-tab small {
  margin-top: 3px;
  font-size: 11.5px;
}

.grc-view-tab.active {
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-800);
}

.grc-view-tab.active::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--brand-700);
  content: "";
}

.grc-view-tab:focus-visible,
.grc-category-toggle:focus-visible,
.grc-search-field:focus-within,
.grc-filter-field:focus-within,
.grc-value-selector button:focus-visible,
.grc-compact-value-footer button:focus-visible {
  z-index: 2;
  outline: 3px solid rgba(102, 51, 163, 0.22);
  outline-offset: -3px;
}

.grc-tab-panel {
  min-width: 0;
  padding: 20px;
}

.grc-panel-heading,
.grc-indicator-results-heading,
.grc-support-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.grc-panel-heading {
  margin-bottom: 13px;
}

.grc-panel-heading h2,
.grc-indicator-results-heading h2,
.grc-support-heading h2 {
  margin: 0;
  color: var(--brand-950);
  font-size: 14px;
  font-weight: 820;
}

.grc-panel-heading p,
.grc-support-heading p {
  margin: 4px 0 0;
  color: #746985;
  font-size: 12.5px;
  line-height: 1.5;
}

.grc-category-list {
  display: grid;
  gap: 9px;
}

.grc-category-columns,
.grc-category-toggle {
  grid-template-columns: 42px minmax(220px, 2fr) 70px minmax(230px, 1.35fr) 120px 20px;
}

.grc-category-columns {
  display: grid;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(102, 51, 163, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 244, 253, 0.82), rgba(252, 250, 254, 0.92));
}

.grc-category-column {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.grc-category-column-main {
  grid-column: 1 / 3;
}

.grc-category-column:nth-child(2) {
  grid-column: 3;
  justify-items: center;
}

.grc-category-column:nth-child(3) {
  grid-column: 4;
}

.grc-category-column:nth-child(4) {
  grid-column: 5;
}

.grc-category-column-spacer {
  grid-column: 6;
}

.grc-category-column strong {
  color: var(--brand-950);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
}

.grc-category-column small {
  color: #746985;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
}

.grc-category-card {
  --grc-category-accent: #756a82;
  --grc-category-soft: #f3eff7;
  --grc-category-outline: #ded5e6;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(102, 51, 163, 0.12);
  border-radius: 15px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.grc-category-card.expanded {
  border-color: rgba(102, 51, 163, 0.28);
  box-shadow: 0 11px 28px rgba(36, 17, 63, 0.07);
}

.grc-category-theme-governance {
  --grc-category-accent: #7c3aed;
  --grc-category-soft: #f1eafe;
  --grc-category-outline: #dfcff8;
}

.grc-category-theme-fairness {
  --grc-category-accent: #0f8f8a;
  --grc-category-soft: #e6f7f5;
  --grc-category-outline: #bee9e4;
}

.grc-category-theme-reporting {
  --grc-category-accent: #2979c7;
  --grc-category-soft: #eaf4ff;
  --grc-category-outline: #c9e1f7;
}

.grc-category-theme-control {
  --grc-category-accent: #d97706;
  --grc-category-soft: #fff3df;
  --grc-category-outline: #f2d5a5;
}

.grc-category-theme-compliance {
  --grc-category-accent: #d94667;
  --grc-category-soft: #ffedf2;
  --grc-category-outline: #f6c9d5;
}

.grc-category-toggle {
  display: grid;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.grc-category-toggle:hover {
  background: rgba(248, 244, 253, 0.66);
}

.grc-category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--grc-category-outline);
  background: var(--grc-category-soft);
  color: var(--grc-category-accent);
}

.grc-category-icon svg {
  width: 21px;
  height: 21px;
}

.grc-category-copy {
  display: grid;
  min-width: 0;
}

.grc-category-code {
  color: var(--grc-category-accent);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.grc-category-copy strong {
  margin-top: 3px;
  color: var(--brand-950);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.grc-category-copy small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: #746985;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.grc-category-count,
.grc-category-update {
  display: grid;
  min-width: 0;
}

.grc-category-count {
  justify-items: center;
}

.grc-category-count strong {
  color: var(--brand-800);
  font-size: 18px;
}

.grc-category-count small,
.grc-category-update small {
  color: #746985;
  font-size: 11.5px;
  line-height: 1.35;
}

.grc-category-status-mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.grc-category-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #f5f2f8;
  color: #756a82;
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.grc-category-status.grc-status-achieved {
  border-color: rgba(21, 154, 98, 0.27);
  background: rgba(21, 154, 98, 0.09);
  color: #159a62;
}

.grc-category-status.grc-status-on-track {
  border-color: rgba(22, 119, 200, 0.26);
  background: rgba(22, 119, 200, 0.09);
  color: #1677c8;
}

.grc-category-status.grc-status-mixed {
  border-color: rgba(196, 122, 8, 0.28);
  background: rgba(196, 122, 8, 0.1);
  color: #c47a08;
}

.grc-category-status.grc-status-not-meet {
  border-color: rgba(215, 61, 76, 0.26);
  background: rgba(215, 61, 76, 0.085);
  color: #d73d4c;
}

.grc-category-status.grc-status-other {
  border-color: rgba(117, 106, 130, 0.25);
  background: rgba(117, 106, 130, 0.09);
  color: #756a82;
}

.grc-category-status b {
  color: currentColor;
  font-size: 11.5px;
  font-weight: 850;
}

.grc-category-status-empty {
  color: #85798f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.grc-category-mobile-label {
  display: none;
}

.grc-category-update strong {
  margin-top: 3px;
  color: var(--brand-950);
  font-size: 11.5px;
  line-height: 1.35;
}

.grc-category-chevron {
  color: var(--brand-700);
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.grc-category-card.expanded .grc-category-chevron {
  transform: rotate(180deg);
}

.grc-category-details {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(248, 244, 253, 0.66), rgba(255, 255, 255, 0.92));
}

.grc-category-indicators,
.grc-indicator-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grc-indicator-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(102, 51, 163, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(36, 17, 63, 0.045);
}

.grc-indicator-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.grc-indicator-identity {
  display: flex;
  flex: 1 1 180px;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.grc-indicator-id,
.grc-indicator-category {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 820;
}

.grc-indicator-id {
  background: var(--brand-soft);
  color: var(--brand-800);
}

.grc-indicator-category {
  background: #f5f2f8;
  color: var(--text-muted);
}

.grc-indicator-category-badge {
  max-width: 100%;
  border: 1px solid var(--grc-category-outline);
  background: var(--grc-category-soft);
  color: var(--grc-category-accent);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.grc-indicator-status {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  max-width: 58%;
  padding: 5px 8px 5px 5px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 9%, white);
}

.grc-indicator-status .grc-status-icon {
  width: 27px;
  height: 27px;
}

.grc-indicator-status .grc-status-icon svg {
  width: 14px;
  height: 14px;
}

.grc-indicator-status > span:last-child {
  display: grid;
  min-width: 0;
}

.grc-indicator-status strong {
  color: currentColor;
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.grc-indicator-status small {
  margin-top: 1px;
  color: #746985;
  font-size: 10px;
}

.grc-indicator-card h3 {
  margin: 13px 0 0;
  color: var(--brand-950);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.grc-indicator-category-name {
  margin: 4px 0 0;
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 700;
}

.grc-indicator-fields {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.grc-indicator-field span {
  color: #746985;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.025em;
}

.grc-indicator-field p {
  margin: 4px 0 0;
  color: #4e415d;
  font-size: 12.5px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.grc-indicator-date p {
  color: var(--brand-800);
  font-weight: 750;
}

/* GRC Value Creation and Value Enhancement */
.grc-value-panel {
  background:
    radial-gradient(circle at 94% 5%, rgba(123, 75, 194, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(252, 250, 254, 0.72), #fff 220px);
}

.grc-value-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.grc-value-heading h2 {
  margin: 0;
  color: var(--brand-950);
  font-size: 18px;
  font-weight: 830;
  line-height: 1.3;
}

.grc-value-heading p {
  margin: 5px 0 0;
  color: #746985;
  font-size: 12.5px;
  line-height: 1.5;
}

.grc-value-selector {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(102, 51, 163, 0.13);
  border-radius: 13px;
  background: rgba(244, 239, 250, 0.88);
}

.grc-value-selector button {
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #746985;
  font: inherit;
  font-size: 11.5px;
  font-weight: 780;
  cursor: pointer;
}

.grc-value-selector button.active {
  background: #fff;
  color: var(--brand-800);
  box-shadow: 0 5px 14px rgba(61, 28, 104, 0.11);
}

.grc-value-performance-content {
  min-width: 0;
}

.grc-value-group + .grc-value-group {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(102, 51, 163, 0.1);
}

.grc-value-group > header {
  margin-bottom: 11px;
}

.grc-value-group > header h3 {
  margin: 0;
  color: var(--brand-950);
  font-size: 15px;
  font-weight: 820;
}

.grc-value-group > header p {
  margin: 2px 0 0;
  color: #746985;
  font-size: 11.5px;
}

.grc-value-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 12px;
}

.grc-value-card-grid-vc {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grc-value-card {
  --grc-value-accent: #c47a08;
  --grc-value-soft: rgba(196, 122, 8, 0.09);
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(102, 51, 163, 0.13);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 26px rgba(36, 17, 63, 0.055);
}

.grc-value-card.grc-value-state-met {
  --grc-value-accent: #159a62;
  --grc-value-soft: rgba(21, 154, 98, 0.09);
}

.grc-value-card.grc-value-state-pending,
.grc-value-card.grc-value-state-neutral {
  --grc-value-accent: #756a82;
  --grc-value-soft: rgba(117, 106, 130, 0.09);
}

.grc-value-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.grc-value-metric-id,
.grc-value-state-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
}

.grc-value-metric-id {
  padding: 4px 8px;
  background: var(--brand-soft);
  color: var(--brand-800);
}

.grc-value-state-label {
  justify-content: center;
  padding: 4px 9px;
  background: var(--grc-value-soft);
  color: var(--grc-value-accent);
  text-align: center;
}

.grc-value-card h3 {
  min-height: 44px;
  margin: 13px 0 0;
  color: var(--brand-950);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.grc-value-actual {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  margin-top: 11px;
  color: var(--brand-950);
}

.grc-value-actual strong {
  font-size: clamp(25px, 2.5vw, 31px);
  font-weight: 830;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.grc-value-actual span {
  color: #746985;
  font-size: 11px;
  font-weight: 700;
}

.grc-value-actual.is-pending strong {
  color: #756a82;
  font-size: 17px;
}

.grc-value-delta,
.grc-value-pending-note {
  margin: 6px 0 0;
  color: var(--grc-value-accent);
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.45;
}

.grc-value-pending-note {
  color: #685d77;
  font-weight: 650;
}

.grc-value-bar {
  --grc-value-accent: #c47a08;
  position: relative;
  margin-top: 16px;
}

.grc-value-bar.grc-value-state-met {
  --grc-value-accent: #159a62;
}

.grc-value-bar.grc-value-state-pending,
.grc-value-bar.grc-value-state-neutral {
  --grc-value-accent: #887d95;
}

.grc-value-bar-track {
  position: relative;
  display: block;
  height: 9px;
  overflow: visible;
  border-radius: 999px;
  background: #eee9f3;
}

.grc-value-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--grc-value-accent);
  box-shadow: 0 3px 8px color-mix(in srgb, var(--grc-value-accent) 22%, transparent);
}

.grc-value-target-marker {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 19px;
  border-radius: 999px;
  background: var(--brand-800);
  transform: translateX(-1px);
}

.grc-value-target-marker.is-start {
  transform: none;
}

.grc-value-target-marker.is-end {
  transform: translateX(-100%);
}

.grc-value-target-marker::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-800);
  box-shadow: 0 1px 4px rgba(36, 17, 63, 0.2);
  content: "";
  transform: translateX(-50%);
}

.grc-value-bar-labels {
  position: relative;
  display: block;
  height: 16px;
  margin-top: 5px;
  color: #8a7e98;
  font-size: 9px;
  line-height: 1;
}

.grc-value-target-label {
  position: absolute;
  color: var(--brand-700);
  font-weight: 750;
  transform: translateX(-50%);
}

.grc-value-target-label.is-start {
  transform: none;
}

.grc-value-target-label.is-end {
  transform: translateX(-100%);
}

.grc-value-card-meta {
  display: grid;
  gap: 7px;
  margin: 13px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(231, 222, 241, 0.78);
}

.grc-value-card-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.grc-value-card-meta dt,
.grc-value-card-meta dd {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.4;
}

.grc-value-card-meta dt {
  flex: 0 0 auto;
  color: #81758e;
}

.grc-value-card-meta dd {
  color: #4e415d;
  font-weight: 730;
  text-align: right;
  overflow-wrap: anywhere;
}

.grc-value-update {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: #81758e;
  font-size: 10px;
  font-weight: 680;
}

.grc-value-empty {
  margin: 0;
  padding: 40px 16px;
  border: 1px dashed rgba(102, 51, 163, 0.2);
  border-radius: 14px;
  color: #756a82;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.grc-compact-value-preview {
  min-width: 0;
}

.grc-compact-value-heading {
  color: #746985;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.025em;
}

.grc-compact-value-list {
  display: grid;
  gap: 8px;
  margin-top: 7px;
}

.grc-compact-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(102, 51, 163, 0.1);
  border-radius: 10px;
  background: rgba(248, 244, 253, 0.55);
}

.grc-compact-value-row > strong {
  min-width: 0;
  color: #4e415d;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.grc-compact-value-row > span {
  display: grid;
  justify-items: end;
  min-width: 0;
}

.grc-compact-value-row b {
  color: var(--brand-950);
  font-size: 10.5px;
  line-height: 1.35;
  text-align: right;
}

.grc-compact-value-row small {
  color: #81758e;
  font-size: 9px;
  line-height: 1.35;
  text-align: right;
}

.grc-compact-value-composite {
  --grc-value-accent: #c47a08;
  --grc-value-soft: rgba(196, 122, 8, 0.09);
  background: linear-gradient(135deg, var(--grc-value-soft), rgba(255, 255, 255, 0.9) 72%);
}

.grc-compact-value-composite.grc-value-state-met {
  --grc-value-accent: #159a62;
  --grc-value-soft: rgba(21, 154, 98, 0.08);
}

.grc-compact-value-composite.grc-value-state-pending {
  --grc-value-accent: #756a82;
  --grc-value-soft: rgba(117, 106, 130, 0.08);
}

.grc-compact-value-aggregate b,
.grc-compact-value-aggregate small {
  color: var(--grc-value-accent);
}

.grc-compact-value-status-cue {
  display: block;
  width: 100%;
  height: 4px;
  grid-column: 1 / -1;
  border-radius: 999px;
  background: var(--grc-value-accent);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--grc-value-accent) 20%, transparent);
}

.grc-value-bar-compact {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.grc-value-bar-compact .grc-value-bar-track {
  height: 5px;
}

.grc-value-bar-compact .grc-value-target-marker {
  top: -3px;
  height: 11px;
}

.grc-value-bar-compact .grc-value-target-marker::before {
  display: none;
}

.grc-compact-value-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.grc-compact-value-footer > span {
  color: #756a82;
  font-size: 9.5px;
  font-weight: 680;
}

.grc-compact-value-footer button {
  min-height: 30px;
  padding: 4px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-700);
  font: inherit;
  font-size: 10px;
  font-weight: 820;
  cursor: pointer;
}

.grc-compact-value-footer button:hover {
  background: var(--brand-soft);
}

.grc-full-value-preview {
  min-width: 0;
}

.grc-full-value-heading {
  display: block;
  margin-bottom: 9px;
  color: #746985;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.025em;
}

.grc-full-value-group + .grc-full-value-group {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(102, 51, 163, 0.1);
}

.grc-full-value-group h4 {
  margin: 0 0 7px;
  color: var(--brand-900);
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.4;
}

.grc-full-value-group h4 small {
  margin-left: 4px;
  color: #81758e;
  font-size: 10px;
  font-weight: 650;
}

.grc-full-value-list {
  display: grid;
  gap: 8px;
}

.grc-full-value-row {
  --grc-value-accent: #c47a08;
  --grc-value-soft: rgba(196, 122, 8, 0.09);
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--grc-value-accent) 18%, rgba(102, 51, 163, 0.1));
  border-radius: 11px;
  background: linear-gradient(135deg, var(--grc-value-soft), rgba(255, 255, 255, 0.92) 46%);
}

.grc-full-value-row.grc-value-state-met {
  --grc-value-accent: #159a62;
  --grc-value-soft: rgba(21, 154, 98, 0.08);
}

.grc-full-value-row.grc-value-state-pending,
.grc-full-value-row.grc-value-state-neutral {
  --grc-value-accent: #756a82;
  --grc-value-soft: rgba(117, 106, 130, 0.08);
}

.grc-full-value-row-header,
.grc-full-value-comparison {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.grc-full-value-row-header strong {
  min-width: 0;
  color: #4e415d;
  font-size: 11.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.grc-full-value-row-header > span {
  flex: 0 0 auto;
  color: var(--grc-value-accent);
  font-size: 9px;
  font-weight: 780;
}

.grc-full-value-comparison {
  margin-top: 5px;
}

.grc-full-value-comparison b {
  min-width: 0;
  color: var(--brand-950);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.grc-full-value-comparison b.is-pending {
  color: #685d77;
  font-size: 11px;
  font-weight: 680;
}

.grc-full-value-comparison small {
  flex: 0 1 auto;
  color: #81758e;
  font-size: 9.5px;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.grc-full-value-row .grc-value-bar-compact {
  margin-top: 8px;
}

.grc-full-value-note {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin: 7px 0 0;
  color: #685d77;
  font-size: 9.5px;
  line-height: 1.4;
  text-align: right;
}

.grc-full-value-note span {
  flex: 0 0 auto;
  color: #81758e;
}

.grc-full-value-composite {
  --grc-value-accent: #c47a08;
  --grc-value-soft: rgba(196, 122, 8, 0.08);
  min-width: 0;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--grc-value-accent) 22%, rgba(102, 51, 163, 0.11));
  border-radius: 13px;
  background: linear-gradient(135deg, var(--grc-value-soft), rgba(255, 255, 255, 0.96) 42%);
}

.grc-full-value-composite.grc-value-state-met {
  --grc-value-accent: #159a62;
  --grc-value-soft: rgba(21, 154, 98, 0.08);
}

.grc-full-value-composite.grc-value-state-pending {
  --grc-value-accent: #756a82;
  --grc-value-soft: rgba(117, 106, 130, 0.08);
}

.grc-full-value-composite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.grc-full-value-composite h5 {
  margin: 9px 0 0;
  color: var(--brand-950);
  font-size: 12.5px;
  font-weight: 820;
  line-height: 1.45;
}

.grc-full-value-composite-count {
  display: block;
  margin-top: 2px;
  color: #81758e;
  font-size: 9.5px;
  font-weight: 680;
}

.grc-full-value-composite-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.grc-full-value-composite .grc-full-value-submetric {
  background: rgba(255, 255, 255, 0.78);
}

.grc-full-value-composite > footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--grc-value-accent) 18%, rgba(102, 51, 163, 0.1));
  color: var(--grc-value-accent);
  font-size: 9.5px;
  line-height: 1.4;
}

.grc-full-value-composite > footer span {
  text-align: right;
}

.grc-value-composite-card {
  grid-column: span 2;
  min-height: 0;
}

.grc-value-composite-card > h3 {
  min-height: 0;
  font-size: 16px;
}

.grc-value-composite-count {
  margin: 3px 0 0;
  color: #81758e;
  font-size: 11px;
  font-weight: 700;
}

.grc-value-composite-submetrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.grc-value-composite-submetric {
  --grc-value-accent: #c47a08;
  --grc-value-soft: rgba(196, 122, 8, 0.08);
  min-width: 0;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--grc-value-accent) 19%, rgba(102, 51, 163, 0.1));
  border-radius: 13px;
  background: linear-gradient(145deg, var(--grc-value-soft), rgba(255, 255, 255, 0.96) 48%);
}

.grc-value-composite-submetric.grc-value-state-met {
  --grc-value-accent: #159a62;
  --grc-value-soft: rgba(21, 154, 98, 0.08);
}

.grc-value-composite-submetric.grc-value-state-pending,
.grc-value-composite-submetric.grc-value-state-neutral {
  --grc-value-accent: #756a82;
  --grc-value-soft: rgba(117, 106, 130, 0.08);
}

.grc-value-composite-submetric > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
}

.grc-value-composite-submetric > header > span {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.grc-value-composite-submetric > header > strong {
  min-width: 0;
  color: var(--brand-950);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.grc-value-composite-submetric > header > em {
  color: var(--grc-value-accent);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 780;
  text-align: right;
}

.grc-value-composite-submetric .grc-value-actual {
  margin-top: 12px;
}

.grc-value-composite-submetric .grc-value-actual strong {
  font-size: 24px;
}

.grc-value-composite-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--grc-value-accent) 18%, rgba(102, 51, 163, 0.1));
  color: var(--grc-value-accent);
  font-size: 11px;
  line-height: 1.45;
}

.grc-value-composite-summary span {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
}

.grc-value-composite-summary time {
  flex: 0 0 auto;
  color: #81758e;
  font-size: 9.5px;
}

.grc-indicator-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr);
  gap: 10px;
  margin-bottom: 18px;
}

.grc-search-field,
.grc-filter-field {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(102, 51, 163, 0.15);
  border-radius: 12px;
  background: #fff;
}

.grc-search-field {
  gap: 8px;
  padding: 0 12px;
}

.grc-search-field svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #9184a1;
}

.grc-search-field input,
.grc-filter-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 12px;
}

.grc-search-field input {
  padding: 10px 0;
}

.grc-filter-field select {
  min-height: 40px;
  padding: 0 11px;
}

.grc-indicator-results-heading {
  margin-bottom: 12px;
}

.grc-indicator-results-heading span {
  color: #746985;
  font-size: 11.5px;
  font-weight: 700;
}

.grc-page-inline-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 16px;
  border: 1px dashed rgba(102, 51, 163, 0.2);
  border-radius: 13px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
}

.grc-page-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.grc-support-card {
  padding: 18px;
}

.grc-support-heading {
  display: block;
  margin-bottom: 15px;
}

.grc-status-distribution,
.grc-latest-updates {
  display: grid;
  gap: 10px;
}

.grc-distribution-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.grc-distribution-row .grc-status-icon {
  width: 31px;
  height: 31px;
}

.grc-distribution-copy,
.grc-distribution-value {
  display: grid;
  min-width: 0;
}

.grc-distribution-copy strong {
  color: var(--brand-950);
  font-size: 12px;
}

.grc-distribution-copy small,
.grc-distribution-value small {
  margin-top: 2px;
  color: #746985;
  font-size: 10.5px;
}

.grc-distribution-value {
  grid-auto-flow: column;
  align-items: baseline;
  gap: 5px;
}

.grc-distribution-value b {
  color: currentColor;
  font-size: 13px;
}

.grc-distribution-track {
  grid-column: 2 / -1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0edf3;
}

.grc-distribution-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.grc-latest-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(231, 222, 241, 0.76);
}

.grc-latest-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.grc-latest-item .grc-status-icon {
  width: 31px;
  height: 31px;
}

.grc-latest-copy {
  display: grid;
  min-width: 0;
}

.grc-latest-copy strong {
  color: var(--brand-950);
  font-size: 11.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.grc-latest-copy small {
  margin-top: 2px;
  color: #746985;
  font-size: 10.5px;
}

.grc-latest-item time {
  color: var(--brand-700);
  font-size: 10.5px;
  font-weight: 750;
  text-align: right;
}

.grc-page-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(102, 51, 163, 0.11);
  border-radius: 12px;
  background: rgba(248, 244, 253, 0.82);
  color: var(--text-muted);
}

.grc-page-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--brand-600);
}

.grc-page-note p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grc-page-content {
    margin-right: 30px;
    margin-left: 30px;
  }

  .grc-page-hero-pattern {
    right: 16px;
    width: 30%;
    height: 90px;
  }

  .grc-page-summary {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
  }

  .grc-summary-latest {
    grid-column: 1 / -1;
  }

  .grc-category-columns,
  .grc-category-toggle {
    grid-template-columns: 42px minmax(190px, 1.7fr) 58px minmax(175px, 1fr) 100px 18px;
    gap: 9px;
  }

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

  .grc-value-card-grid-vc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grc-page-view {
    max-width: 1180px;
    margin: 0 auto;
  }

  .grc-page-content {
    margin-right: 40px;
    margin-left: 40px;
  }
}

@media (max-width: 767px) {
  .grc-page-view {
    max-width: 100%;
  }

  .grc-page-content {
    margin-right: 14px;
    margin-left: 14px;
    padding-top: 8px;
  }

  .grc-page-hero {
    min-height: 130px;
    padding: 20px 17px;
    border-radius: 18px;
  }

  .grc-page-hero-icon {
    width: 49px;
    height: 49px;
    margin-right: 12px;
    border-radius: 14px;
  }

  .grc-page-hero-icon svg {
    width: 27px;
    height: 27px;
  }

  .grc-page-hero h1 {
    font-size: 27px;
  }

  .grc-page-hero-copy .grc-page-hero-subtitle {
    font-size: 13px;
  }

  .grc-page-hero-copy p {
    font-size: 12.5px;
  }

  .grc-page-hero-pattern {
    display: none;
  }

  .grc-page-summary {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
  }

  .grc-summary-metrics {
    gap: 9px;
  }

  .grc-summary-metric {
    min-height: 104px;
    padding: 13px;
  }

  .grc-summary-metric-label small {
    font-size: 11.5px;
  }

  .grc-summary-metric-label b {
    font-size: 10.5px;
  }

  .grc-summary-metric-main > strong {
    font-size: 28px;
  }

  .grc-summary-total-icon {
    width: 36px;
    height: 36px;
  }

  .grc-summary-statuses {
    padding: 12px;
  }

  .grc-summary-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .grc-summary-latest {
    min-height: 78px;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: center;
    gap: 5px 11px;
    padding: 12px 14px;
  }

  .grc-summary-latest-label {
    grid-column: 1 / -1;
  }

  .grc-summary-latest-main {
    grid-column: 1 / -1;
  }

  .grc-page-main-card {
    margin-top: 12px;
    border-radius: 16px;
  }

  .grc-view-tab {
    min-height: 64px;
    padding: 10px 5px 8px;
  }

  .grc-view-tab strong {
    font-size: 11px;
    line-height: 1.35;
  }

  .grc-view-tab small {
    font-size: 9.5px;
    line-height: 1.3;
  }

  .grc-tab-panel {
    padding: 13px;
  }

  .grc-panel-heading {
    margin-bottom: 11px;
  }

  .grc-panel-heading h2,
  .grc-indicator-results-heading h2,
  .grc-support-heading h2 {
    font-size: 14px;
  }

  .grc-category-columns {
    display: none;
  }

  .grc-category-toggle {
    grid-template-columns: 39px minmax(0, 1fr) 18px;
    grid-template-areas:
      "icon copy chevron"
      "count statuses statuses"
      "update update update";
    gap: 9px 10px;
    padding: 12px;
  }

  .grc-category-icon {
    grid-area: icon;
    width: 39px;
    height: 39px;
  }

  .grc-category-copy {
    grid-area: copy;
  }

  .grc-category-copy strong {
    font-size: 13.5px;
  }

  .grc-category-copy small {
    font-size: 12.5px;
    -webkit-line-clamp: 2;
  }

  .grc-category-count {
    grid-area: count;
    grid-template-columns: auto auto;
    justify-self: start;
    align-items: baseline;
    gap: 5px;
    padding-left: 3px;
  }

  .grc-category-count strong {
    font-size: 15px;
  }

  .grc-category-count small {
    white-space: nowrap;
  }

  .grc-category-status-mix {
    grid-area: statuses;
    justify-content: flex-end;
    gap: 5px;
  }

  .grc-category-mobile-label {
    display: block;
    flex: 0 0 100%;
    color: #746985;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
  }

  .grc-category-update {
    grid-area: update;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(231, 222, 241, 0.7);
  }

  .grc-category-update strong {
    margin-top: 0;
  }

  .grc-category-chevron {
    grid-area: chevron;
  }

  .grc-category-details {
    padding: 11px;
  }

  .grc-category-indicators,
  .grc-indicator-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .grc-indicator-card {
    padding: 13px;
  }

  .grc-indicator-card-header {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .grc-indicator-category-badge {
    font-size: 11px;
  }

  .grc-indicator-status {
    margin-left: auto;
    max-width: 62%;
  }

  .grc-indicator-card h3 {
    font-size: 13.5px;
  }

  .grc-value-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .grc-value-heading h2 {
    font-size: 16px;
  }

  .grc-value-heading p {
    font-size: 12px;
  }

  .grc-value-selector {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-sizing: border-box;
  }

  .grc-value-selector button {
    min-width: 0;
    min-height: 40px;
    padding: 7px 6px;
    font-size: 11px;
  }

  .grc-value-card-grid,
  .grc-value-card-grid-vc {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .grc-value-card {
    min-height: 0;
    padding: 14px;
  }

  .grc-value-card h3 {
    min-height: 0;
  }

  .grc-value-composite-card {
    grid-column: 1 / -1;
  }

  .grc-value-composite-submetrics {
    grid-template-columns: 1fr;
  }

  .grc-value-composite-submetric > header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .grc-value-composite-submetric > header > em {
    grid-column: 1 / -1;
    text-align: left;
  }

  .grc-value-composite-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .grc-full-value-composite > footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .grc-full-value-composite > footer span {
    text-align: left;
  }

  .grc-value-actual strong {
    font-size: 27px;
  }

  .grc-compact-value-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .grc-compact-value-row > span {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    gap: 7px;
  }

  .grc-compact-value-row b,
  .grc-compact-value-row small {
    text-align: left;
  }

  .grc-full-value-row-header,
  .grc-full-value-comparison {
    align-items: flex-start;
  }

  .grc-full-value-comparison {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .grc-full-value-comparison small {
    text-align: left;
  }

  .grc-indicator-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
  }

  .grc-search-field {
    grid-column: 1 / -1;
  }

  .grc-filter-field select {
    font-size: 12px;
  }

  .grc-indicator-results-heading {
    align-items: center;
  }

  .grc-indicator-results-heading span {
    font-size: 11.5px;
  }

  .grc-page-support-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 11px;
  }

  .grc-support-card {
    padding: 14px;
    border-radius: 16px;
  }

  .grc-latest-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .grc-latest-item time {
    grid-column: 2;
    text-align: left;
  }

  .grc-page-note {
    margin-top: 10px;
  }
}

@media (max-width: 380px) {
  .grc-snapshot-header {
    flex-wrap: wrap;
  }

  .grc-snapshot-link {
    width: 100%;
    justify-content: flex-end;
    min-height: 28px;
  }

  .grc-page-hero-pattern {
    display: none;
  }

  .grc-summary-status {
    grid-template-columns: 29px auto minmax(0, 1fr);
    gap: 5px;
  }

  .grc-indicator-status {
    max-width: 58%;
  }
}

/* KRI Snapshot */
.kri-snapshot-section {
  position: relative;
  margin-top: 24px;
}

.kri-snapshot-section .section-heading {
  margin-bottom: 12px;
}

.kri-snapshot-shell {
  overflow: hidden;
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 253, 0.88)),
    radial-gradient(circle at 92% 12%, rgba(123, 75, 194, 0.13), transparent 36%);
  box-shadow:
    0 18px 42px rgba(36, 17, 63, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
  padding: 12px 14px 14px;
}

.kri-snapshot-section + .watchpoint-section {
  padding-top: 18px;
}

.kri-snapshot-list {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(5, minmax(148px, 1fr));
  grid-auto-flow: row;
  gap: 12px;
  overflow-x: auto;
  margin: 0;
  padding: 4px 6px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 51, 163, 0.28) transparent;
}

.kri-snapshot-list .loading-card {
  min-width: 100%;
}

.kri-tile {
  position: relative;
  display: flex;
  min-height: 128px;
  padding: 19px 12px 14px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid var(--kri-risk-border, #e4d7f0);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, var(--kri-risk-bg, rgba(102, 51, 163, 0.08)), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 12px 26px rgba(36, 17, 63, 0.065),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  scroll-snap-align: start;
}

.kri-tile::before {
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--kri-risk-accent, var(--brand-700));
  content: "";
  opacity: 0.78;
}

.kri-tile-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

.kri-code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 999px;
  background: rgba(242, 236, 250, 0.82);
  color: var(--brand-800);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.4px;
}

.kri-risk-indicator {
  position: absolute;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--kri-risk-color, var(--brand-700));
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.01em;
}

.kri-risk-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--kri-risk-bg, rgba(102, 51, 163, 0.1));
}

.kri-risk-label {
  color: currentColor;
}

.kri-name {
  display: -webkit-box;
  min-height: 34px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--text-main);
  font-size: 10.7px;
  font-weight: 780;
  line-height: 1.42;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kri-performance {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  max-width: 100%;
  color: #5f536e;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.kri-tile .kri-performance > span:last-child {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.kri-tile .kri-performance-icon {
  width: 30px;
  height: 30px;
}

.kri-tile .kri-performance-icon svg {
  width: 17px;
  height: 17px;
}

.kri-performance-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(102, 51, 163, 0.09);
  color: var(--brand-700);
}

.kri-performance-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.kri-performance-appetite .kri-performance-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.kri-performance-tolerance .kri-performance-icon {
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
}

.kri-performance-not_meet .kri-performance-icon {
  background: rgba(220, 38, 38, 0.11);
  color: #dc2626;
}

.kri-performance-in_progress .kri-performance-icon {
  background: rgba(14, 165, 233, 0.13);
  color: #0284c7;
}

.kri-performance-pending_confirmation .kri-performance-icon {
  background: rgba(123, 75, 194, 0.12);
  color: #7040a8;
}

.kri-performance-not_meet_ra .kri-performance-icon {
  background: rgba(234, 88, 12, 0.11);
  color: #dd650d;
}

.kri-performance-appetite {
  color: #16a34a;
}

.kri-performance-tolerance {
  color: #ca8a04;
}

.kri-performance-not_meet {
  color: #dc2626;
}

.kri-performance-in_progress {
  color: #0284c7;
}

.kri-performance-pending_confirmation {
  color: #7040a8;
}

.kri-performance-not_meet_ra {
  color: #dd650d;
}

/* KRI Dashboard */
.kri-dashboard-view {
  background:
    radial-gradient(circle at 92% 2%, rgba(123, 75, 194, 0.14), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fbf9fe 48%, #f7f3fb 100%);
  padding-bottom: 112px;
}

.kri-dashboard-header,
.kri-matrix-section,
.kri-overview-section,
.kri-insights-section,
.kri-dashboard-empty {
  margin: 0 18px 18px;
}

.kri-dashboard-header {
  display: grid;
  gap: 18px;
  align-items: stretch;
  padding: 22px 0 6px;
}

.kri-dashboard-header-copy h1 {
  margin: 10px 0 10px;
  color: var(--brand-950);
  font-size: clamp(28px, 7.2vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.kri-dashboard-header-copy p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 560;
  line-height: 1.75;
}

.kri-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 18px;
  background: rgba(231, 222, 241, 0.88);
  box-shadow: var(--shadow);
}

.kri-summary-card {
  display: grid;
  min-height: 92px;
  place-items: center;
  padding: 14px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 249, 254, 0.9));
  text-align: center;
}

.kri-summary-value {
  color: currentColor;
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}

.kri-summary-label {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 850;
}

.kri-summary-card p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.kri-dashboard-empty {
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 720;
  padding: 22px;
  text-align: center;
}

.kri-matrix-section,
.kri-overview-section,
.kri-insights-section {
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(253, 251, 255, 0.92));
  box-shadow:
    0 18px 48px rgba(36, 17, 63, 0.075),
    0 1px 0 rgba(255, 255, 255, 0.94) inset;
  padding: 16px;
}

.kri-matrix-section .section-heading,
.kri-overview-section .section-heading,
.kri-insights-section .section-heading {
  margin-bottom: 14px;
}

.section-subtitle {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  text-transform: none;
}

.kri-risk-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px 13px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 760;
}

.kri-risk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.risk-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.risk-dot-low {
  background: #16a34a;
}

.risk-dot-medium {
  background: #eab308;
}

.risk-dot-high {
  background: #f97316;
}

.risk-dot-extreme {
  background: #dc2626;
}

.kri-matrix-layout {
  display: grid;
  gap: 16px;
}

.kri-matrix-shell {
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 51, 163, 0.28) transparent;
}

.kri-risk-matrix {
  min-width: 560px;
}

.kri-matrix-grid {
  position: relative;
  display: grid;
  grid-template-columns: 58px repeat(5, minmax(76px, 1fr));
  grid-template-rows: 24px repeat(5, 70px) 44px;
  gap: 3px;
  align-items: stretch;
}

.kri-matrix-corner,
.kri-matrix-top-label,
.kri-matrix-row-label,
.kri-matrix-bottom-label,
.kri-matrix-axis-spacer {
  display: grid;
  place-items: center;
  color: var(--brand-900);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.kri-matrix-row-label,
.kri-matrix-bottom-label {
  gap: 2px;
}

.kri-matrix-row-label strong,
.kri-matrix-bottom-label strong {
  color: var(--brand-800);
  font-size: 13px;
  line-height: 1;
}

.kri-matrix-row-label span,
.kri-matrix-bottom-label span {
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.25;
}

.kri-matrix-axis-spacer span {
  position: absolute;
  left: -16px;
  top: calc(24px + 3px + ((70px * 5) + (3px * 4)) / 2);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  color: var(--brand-800);
  font-size: 10px;
  letter-spacing: 0.08em;
  z-index: 2;
}

.kri-matrix-cell {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent),
    var(--cell-bg, rgba(102, 51, 163, 0.12));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 18px rgba(36, 17, 63, 0.045);
}

.kri-matrix-cell::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--cell-border, rgba(102, 51, 163, 0.16));
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.kri-matrix-markers {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 5px;
}

.kri-matrix-marker {
  display: inline-flex;
  min-width: 31px;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102, 51, 163, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 18px rgba(36, 17, 63, 0.13);
  color: var(--brand-900);
  font-size: 10px;
  font-weight: 850;
}

.kri-matrix-impact-label {
  margin-top: 9px;
  color: var(--brand-800);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.kri-performance-legend {
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 249, 254, 0.92));
  padding: 16px;
}

.kri-performance-legend h3 {
  margin: 0 0 14px;
  color: var(--brand-900);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kri-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(231, 222, 241, 0.76);
}

.kri-legend-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.kri-legend-item strong {
  display: block;
  margin-bottom: 3px;
  color: currentColor;
  font-size: 12px;
  font-weight: 850;
}

.kri-legend-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.4;
}

.kri-overview-table-shell {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 51, 163, 0.28) transparent;
}

.kri-overview-table {
  min-width: 930px;
}

.kri-overview-row {
  display: grid;
  grid-template-columns: 86px minmax(180px, 1.4fr) 130px 118px 210px 118px 116px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  border-top: 1px solid rgba(231, 222, 241, 0.76);
  color: var(--brand-900);
  font-size: 11px;
  font-weight: 650;
}

.kri-overview-head {
  min-height: 38px;
  border-top: 0;
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kri-overview-name {
  color: var(--brand-950);
  font-weight: 800;
  line-height: 1.45;
}

.kri-risk-pill,
.kri-performance-pill,
.kri-trend {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}

.kri-risk-pill {
  border: 1px solid var(--kri-risk-border, rgba(102, 51, 163, 0.2));
  background: var(--kri-risk-bg, rgba(102, 51, 163, 0.08));
  color: var(--kri-risk-color, var(--brand-700));
  padding: 5px 9px;
}

.kri-performance-pill {
  color: currentColor;
  white-space: normal;
}

.kri-performance-pill-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.kri-performance-pill-copy strong {
  color: currentColor;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.kri-performance-pill-copy small {
  color: #64586f;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kri-performance-pill.kri-performance-pending_confirmation {
  color: #7040a8;
}

.kri-performance-pill.kri-performance-not_meet_ra {
  color: #dd650d;
}

.kri-performance-pill .kri-performance-icon {
  width: 25px;
  height: 25px;
}

.kri-performance-pill .kri-performance-icon svg {
  width: 14px;
  height: 14px;
}

.kri-trend {
  padding: 5px 8px;
}

.kri-trend span {
  font-size: 17px;
  line-height: 0.8;
}

.kri-trend-improving {
  color: #16a34a;
}

.kri-trend-stable {
  color: #64748b;
}

.kri-trend-worsening {
  color: #dc2626;
}

.kri-trend-unknown {
  color: #8a7d9a;
}

.kri-insights-summary {
  display: grid;
  gap: 12px;
}

.kri-insight-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 112px;
  border: 1px solid rgba(102, 51, 163, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 15px;
}

.kri-insight-card strong {
  display: block;
  margin-bottom: 4px;
  color: currentColor;
  font-size: 19px;
  font-weight: 850;
}

.kri-insight-card h3 {
  margin: 0 0 6px;
  color: var(--brand-950);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.kri-insight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.55;
}

/* KRI Dashboard visual refinement */
.kri-dashboard-view {
  background:
    radial-gradient(circle at 90% 4%, rgba(123, 75, 194, 0.105), transparent 34%),
    radial-gradient(circle at 0% 84%, rgba(242, 236, 250, 0.9), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbf9fe 52%, #f6f3fa 100%);
  color: #24113f;
}

.kri-dashboard-view .detail-toolbar {
  background: transparent;
}

.kri-dashboard-view .back-button {
  color: #2b145c;
  font-weight: 740;
}

.kri-dashboard-view .section-kicker {
  color: #6633a3;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.kri-dashboard-view .section-heading h2 {
  color: #24113f;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.kri-dashboard-header-copy h1 {
  color: #24113f;
  font-size: clamp(27px, 5.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.kri-dashboard-header-copy p:last-child {
  color: #5f5370;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.72;
}

.kri-dashboard-summary {
  border-color: #dfd1ef;
  background: #ffffff;
  box-shadow:
    0 16px 36px rgba(36, 17, 63, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.kri-summary-card {
  background: rgba(255, 255, 255, 0.94);
}

.kri-summary-card + .kri-summary-card {
  box-shadow: -1px 0 0 rgba(102, 51, 163, 0.12);
}

.kri-summary-value {
  font-size: 29px;
  font-weight: 850;
}

.kri-summary-label {
  font-size: 11px;
  font-weight: 850;
}

.kri-matrix-section,
.kri-overview-section,
.kri-insights-section {
  border-color: #e3d4f3;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 42px rgba(36, 17, 63, 0.065),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

.kri-matrix-cell {
  border: 2px solid #ffffff;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    var(--cell-bg, linear-gradient(135deg, #fff0b8, #ffd66b));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62) inset,
    0 10px 22px rgba(36, 17, 63, 0.04);
}

.kri-matrix-cell::after {
  border-color: var(--cell-border, rgba(102, 51, 163, 0.12));
  opacity: 0.74;
}

.kri-dashboard-view .kri-matrix-cell {
  --matrix-cell-bg: #ffe07a;
  --matrix-cell-border: #e8b923;
  border-color: #ffffff;
  background: var(--matrix-cell-bg) !important;
}

.kri-dashboard-view .kri-matrix-cell[style*="#16A34A"],
.kri-dashboard-view .kri-matrix-cell[style*="#00B050"] {
  --matrix-cell-bg: #9be7c2;
  --matrix-cell-border: #5dcc96;
}

.kri-dashboard-view .kri-matrix-cell[style*="#D97706"],
.kri-dashboard-view .kri-matrix-cell[style*="#EAB308"],
.kri-dashboard-view .kri-matrix-cell[style*="#CA8A04"] {
  --matrix-cell-bg: #ffe07a;
  --matrix-cell-border: #e8b923;
}

.kri-dashboard-view .kri-matrix-cell[style*="#F97316"],
.kri-dashboard-view .kri-matrix-cell[style*="#ED7D31"] {
  --matrix-cell-bg: #ffb066;
  --matrix-cell-border: #ef7d2d;
}

.kri-dashboard-view .kri-matrix-cell[style*="#DC2626"],
.kri-dashboard-view .kri-matrix-cell[style*="#C00000"] {
  --matrix-cell-bg: #ff7f8a;
  --matrix-cell-border: #e65361;
}

.kri-dashboard-view .kri-matrix-cell::after {
  border-color: var(--matrix-cell-border);
  opacity: 0.8;
}

.kri-matrix-marker {
  min-width: 33px;
  min-height: 33px;
  border-color: rgba(102, 51, 163, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 11px 22px rgba(36, 17, 63, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  color: #2b145c;
  font-size: 10.5px;
  font-weight: 900;
}

.kri-risk-legend {
  color: #514466;
  font-weight: 760;
}

.risk-dot-low {
  background: #159a62;
}

.risk-dot-medium {
  background: #b77900;
}

.risk-dot-high {
  background: #d95f0e;
}

.risk-dot-extreme {
  background: #c92d3e;
}

.kri-performance-legend {
  border-color: #e3d4f3;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(36, 17, 63, 0.055);
}

.kri-performance-legend h3 {
  color: #24113f;
  font-weight: 850;
}

.kri-overview-table {
  color: #24113f;
}

.kri-overview-row {
  border-top-color: rgba(102, 51, 163, 0.13);
  color: #2e2141;
  font-size: 11.5px;
  font-weight: 600;
}

.kri-overview-row:not(.kri-overview-head):hover {
  background: rgba(248, 244, 253, 0.52);
}

.kri-overview-head {
  color: #706680;
  font-size: 9.5px;
  font-weight: 850;
}

.kri-overview-name {
  color: #24113f;
  font-weight: 760;
}

.kri-overview-table .kri-code {
  border-color: rgba(102, 51, 163, 0.18);
  background: #f2ecfa;
  color: #4b2382;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.kri-risk-pill {
  padding: 5px 10px;
  border-color: var(--kri-risk-border, rgba(102, 51, 163, 0.18));
  background: var(--kri-risk-bg, rgba(102, 51, 163, 0.08));
  color: var(--kri-risk-color, #6633a3);
  font-weight: 850;
}

.kri-performance-pill {
  font-weight: 820;
}

.kri-trend {
  font-weight: 850;
}

.kri-trend-stable {
  color: #64748b;
}

.kri-insight-card {
  border-color: rgba(102, 51, 163, 0.12);
  background: #ffffff;
  box-shadow:
    0 12px 28px rgba(36, 17, 63, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.kri-insight-card.kri-performance-appetite {
  border-color: rgba(22, 163, 74, 0.2);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.88));
}

.kri-insight-card.kri-performance-tolerance {
  border-color: rgba(217, 119, 6, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.88));
}

.kri-insight-card.kri-performance-in_progress {
  border-color: rgba(14, 165, 233, 0.2);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.88));
}

.kri-insight-card.kri-performance-pending_confirmation {
  border-color: rgba(123, 75, 194, 0.2);
  background:
    linear-gradient(135deg, rgba(247, 243, 255, 0.98), rgba(255, 255, 255, 0.88));
}

.kri-insight-card.kri-performance-not_meet_ra {
  border-color: rgba(234, 88, 12, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.88));
}

.kri-insight-card.kri-performance-not_meet {
  border-color: rgba(220, 38, 38, 0.2);
  background:
    linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.88));
}

.kri-insight-card strong {
  font-size: 22px;
  font-weight: 850;
}

.kri-insight-card h3 {
  color: currentColor;
  font-weight: 850;
}

.kri-insight-card p {
  color: #5f5370;
  font-weight: 620;
}

.kri-tile[role="button"],
.kri-overview-row[role="button"] {
  cursor: pointer;
}

.kri-tile[role="button"]:hover,
.kri-tile[role="button"]:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(36, 17, 63, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.kri-tile[role="button"]:focus-visible,
.kri-overview-row[role="button"]:focus-visible {
  outline: 3px solid rgba(123, 75, 194, 0.28);
  outline-offset: 3px;
}

.kri-overview-row[role="button"]:hover,
.kri-overview-row[role="button"]:focus-visible {
  background: rgba(248, 244, 253, 0.72);
}

.kri-detail-view {
  background:
    radial-gradient(circle at 92% 4%, rgba(123, 75, 194, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbf9fe 52%, #f6f3fa 100%);
  padding-bottom: 112px;
}

.kri-detail-content {
  display: grid;
  gap: 16px;
  margin: 0 18px 18px;
}

.kri-detail-header {
  display: grid;
  gap: 16px;
  align-items: stretch;
  padding: 18px 0 2px;
}

.kri-detail-kicker {
  margin: 0 0 9px;
  color: var(--brand-700);
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.kri-detail-title {
  margin: 0;
  color: #24113f;
  font-size: clamp(27px, 7vw, 44px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.kri-detail-subtitle {
  margin: 12px 0 0;
  color: #6b5f7a;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.55;
}

.kri-detail-status-card,
.kri-detail-mini-matrix-card,
.kri-detail-card,
.kri-criteria-card,
.kri-action-card,
.kri-executive-note,
.kri-detail-metric {
  border: 1px solid rgba(102, 51, 163, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 16px 38px rgba(36, 17, 63, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.kri-detail-status-card {
  display: grid;
  gap: 9px;
  justify-items: center;
  min-height: 170px;
  padding: 22px 18px;
  text-align: center;
}

.kri-detail-top-grid,
.kri-detail-side-panel {
  display: grid;
  gap: 14px;
}

.kri-detail-mini-matrix-card {
  overflow: visible;
  padding: 16px;
}

.kri-detail-mini-matrix-card .section-heading {
  margin-bottom: 12px;
}

.kri-detail-mini-matrix-card .section-heading h2 {
  color: #24113f;
  font-size: 17px;
  font-weight: 850;
}

.kri-detail-mini-matrix {
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.kri-detail-mini-matrix .kri-risk-matrix {
  min-width: 410px;
  max-height: none;
  overflow: visible;
}

.kri-detail-mini-matrix::-webkit-scrollbar {
  display: none;
}

.kri-detail-mini-matrix .kri-matrix-grid {
  grid-template-columns: 48px repeat(5, minmax(56px, 1fr));
  grid-template-rows: 22px repeat(5, 54px) 38px;
  gap: 3px;
}

.kri-detail-mini-matrix .kri-matrix-axis-spacer span {
  left: -8px;
  top: calc(22px + 3px + ((54px * 5) + (3px * 4)) / 2);
  font-size: 9px;
}

.kri-detail-mini-matrix .kri-matrix-cell {
  border-radius: 8px;
}

.kri-detail-mini-matrix .kri-matrix-marker {
  min-width: 32px;
  height: 32px;
  font-size: 10px;
}

.kri-detail-mini-matrix .kri-matrix-row-label strong,
.kri-detail-mini-matrix .kri-matrix-bottom-label strong {
  font-size: 12px;
}

.kri-detail-mini-matrix .kri-matrix-row-label span,
.kri-detail-mini-matrix .kri-matrix-bottom-label span {
  font-size: 7.5px;
}

.kri-detail-mini-matrix .kri-matrix-impact-label {
  margin-top: 3px;
  font-size: 10px;
}

.kri-detail-mini-matrix-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(102, 51, 163, 0.28);
  border-radius: 14px;
  background: rgba(248, 244, 253, 0.72);
  color: #6b5f7a;
  font-size: 13px;
  font-weight: 720;
  text-align: center;
  padding: 18px;
}

.kri-detail-view .kri-matrix-cell {
  --matrix-cell-bg: #ffe07a;
  --matrix-cell-border: #e8b923;
  border-color: #ffffff;
  background: var(--matrix-cell-bg) !important;
}

.kri-detail-view .kri-matrix-cell[style*="#16A34A"],
.kri-detail-view .kri-matrix-cell[style*="#00B050"] {
  --matrix-cell-bg: #9be7c2;
  --matrix-cell-border: #5dcc96;
}

.kri-detail-view .kri-matrix-cell[style*="#D97706"],
.kri-detail-view .kri-matrix-cell[style*="#EAB308"],
.kri-detail-view .kri-matrix-cell[style*="#CA8A04"] {
  --matrix-cell-bg: #ffe07a;
  --matrix-cell-border: #e8b923;
}

.kri-detail-view .kri-matrix-cell[style*="#F97316"],
.kri-detail-view .kri-matrix-cell[style*="#ED7D31"] {
  --matrix-cell-bg: #ffb066;
  --matrix-cell-border: #ef7d2d;
}

.kri-detail-view .kri-matrix-cell[style*="#DC2626"],
.kri-detail-view .kri-matrix-cell[style*="#C00000"] {
  --matrix-cell-bg: #ff7f8a;
  --matrix-cell-border: #e65361;
}

.kri-detail-view .kri-matrix-cell::after {
  border-color: var(--matrix-cell-border);
  opacity: 0.8;
}

.kri-detail-status-card > span:not(.kri-performance-icon) {
  color: #706680;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kri-detail-status-card strong {
  color: currentColor;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
}

.kri-detail-status-card p {
  margin: 0;
  color: #5f5370;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.kri-detail-status-card .kri-performance-icon {
  width: 50px;
  height: 50px;
}

.kri-detail-status-card .kri-performance-icon svg {
  width: 27px;
  height: 27px;
}

.kri-detail-status-card.kri-performance-appetite {
  border-color: rgba(22, 163, 74, 0.2);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(255, 255, 255, 0.92));
}

.kri-detail-status-card.kri-performance-tolerance {
  border-color: rgba(217, 119, 6, 0.22);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.92));
}

.kri-detail-status-card.kri-performance-in_progress {
  border-color: rgba(14, 165, 233, 0.22);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.kri-detail-status-card.kri-performance-pending_confirmation {
  border-color: rgba(123, 75, 194, 0.22);
  background: linear-gradient(135deg, rgba(247, 243, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.kri-detail-status-card.kri-performance-not_meet_ra {
  border-color: rgba(234, 88, 12, 0.22);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(255, 255, 255, 0.92));
}

.kri-detail-status-card.kri-performance-not_meet {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.92));
}

.kri-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kri-detail-metric {
  display: grid;
  gap: 7px;
  min-height: 78px;
  padding: 13px;
}

.kri-detail-metric > span {
  color: #7a6f8f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kri-detail-metric > strong {
  display: inline-flex;
  align-items: center;
  color: #24113f;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.kri-detail-metric .kri-trend {
  padding-left: 0;
}

.kri-detail-card {
  padding: 18px;
}

.kri-detail-update {
  background: linear-gradient(180deg, #fff 0%, #fbf9fe 100%);
}

.kri-detail-update .section-kicker {
  color: var(--brand-700);
}

.kri-update-text {
  overflow-wrap: anywhere;
}

.kri-detail-update-financial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 14px;
  align-items: stretch;
}

.kri-detail-update-financial-grid > .financial-threshold-card:only-child {
  grid-column: 1 / -1;
}

.financial-threshold-card {
  overflow: hidden;
  border-color: rgba(102, 51, 163, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(123, 75, 194, 0.055), transparent 34%),
    rgba(255, 255, 255, 0.96);
}

.financial-threshold-header h2 {
  margin: 0;
  color: var(--brand-800);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.018em;
}

.financial-threshold-header p {
  margin: 5px 0 0;
  color: #6b5f7a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.financial-metric-list {
  display: grid;
  margin-top: 14px;
}

.financial-metric-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.84fr) minmax(124px, 0.5fr) minmax(240px, 1.82fr) minmax(116px, 0.62fr);
  column-gap: 18px;
  row-gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(102, 51, 163, 0.105);
}

.financial-metric-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.financial-metric-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.financial-metric-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 51, 163, 0.12), rgba(242, 236, 250, 0.88));
  color: var(--brand-700);
}

.financial-metric-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.financial-metric-heading h3 {
  margin: 0;
  color: #16112a;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.35;
}

.financial-metric-heading p {
  margin: 4px 0 0;
  color: #706680;
  font-size: 11px;
  font-weight: 600;
}

.financial-metric-value {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-self: start;
  gap: 4px;
  min-width: 116px;
  color: #16112a;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.1;
  white-space: normal;
}

.financial-metric-value-number {
  white-space: nowrap;
}

.financial-metric-value-unit {
  color: #5f536e;
  font-size: 0.66em;
  font-weight: 700;
  white-space: nowrap;
}

.financial-threshold-chart {
  position: relative;
  min-width: 0;
  padding-top: 2px;
}

.financial-threshold-labels {
  position: relative;
  height: 25px;
}

.financial-threshold-label {
  position: absolute;
  bottom: 7px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.financial-threshold-label-rt,
.financial-threshold-guide-rt {
  color: #d97706;
}

.financial-threshold-label-ra,
.financial-threshold-guide-ra {
  color: #12985a;
}

.financial-threshold-chart-close .financial-threshold-labels {
  height: 39px;
}

.financial-threshold-chart-close .financial-threshold-label-rt {
  top: 1px;
  bottom: auto;
  padding-right: 5px;
  transform: translateX(-100%);
}

.financial-threshold-chart-close .financial-threshold-label-ra {
  top: 19px;
  bottom: auto;
  padding-left: 5px;
  transform: translateX(0);
}

.financial-threshold-rail {
  position: relative;
  height: 8px;
}

.financial-threshold-bar {
  display: flex;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.financial-threshold-bar span {
  min-width: 0;
}

.zone-appetite {
  background: #16a34a;
}

.zone-tolerance {
  background: #f4b91e;
}

.zone-not-meet {
  background: #f24b5b;
}

.financial-threshold-guide {
  position: absolute;
  z-index: 2;
  top: -6px;
  width: 1px;
  height: 20px;
  border-left: 1px dashed currentColor;
  transform: translateX(-0.5px);
  opacity: 0.72;
}

.financial-actual-marker {
  display: block;
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #5b2bcb;
  box-shadow:
    0 0 0 1px rgba(91, 43, 203, 0.22),
    0 3px 8px rgba(91, 43, 203, 0.28);
  transform: translate(-50%, -50%);
}

.financial-actual-labels {
  position: relative;
  height: 17px;
  margin-top: 7px;
}

.financial-actual-label {
  position: absolute;
  top: 0;
  color: #5b2bcb;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.financial-chart-empty {
  color: #7a6f8f;
  font-size: 12px;
  font-weight: 700;
}

.financial-status {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.financial-status strong {
  display: inline-flex;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1;
}

.financial-status span {
  color: #5f536e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.financial-status-appetite {
  color: #14924f;
}

.financial-status-appetite strong {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.12);
}

.financial-status-tolerance {
  color: #ca8a04;
}

.financial-status-tolerance strong {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.14);
}

.financial-status-not_meet {
  color: #dc2626;
}

.financial-status-not_meet strong {
  background: rgba(220, 38, 38, 0.11);
  border-color: rgba(220, 38, 38, 0.11);
}

.financial-status-in_progress {
  color: #0284c7;
}

.financial-status-in_progress strong {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.12);
}

.financial-status-unknown {
  color: #7a6f8f;
}

.financial-status-unknown strong {
  background: rgba(122, 111, 143, 0.11);
  border-color: rgba(122, 111, 143, 0.11);
}

.financial-threshold-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(102, 51, 163, 0.1);
  border-radius: 14px;
  background: rgba(248, 244, 253, 0.46);
}

.financial-threshold-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f536e;
  font-size: 10.5px;
  font-weight: 650;
}

.financial-threshold-legend i {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.legend-appetite {
  background: #16a34a;
}

.legend-tolerance {
  background: #f5b51b;
}

.legend-not-meet {
  background: #ff4d5a;
}

.legend-current {
  border-radius: 999px !important;
  background: #5b2bcb;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .financial-metric-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }

  .financial-metric-heading {
    min-width: 0;
  }

  .financial-metric-value {
    justify-self: end;
    min-width: 0;
    max-width: 150px;
    justify-content: flex-end;
    text-align: right;
  }

  .financial-threshold-chart,
  .financial-status {
    grid-column: 1 / -1;
  }

  .financial-status {
    justify-items: start;
    text-align: left;
  }
}

.kri-detail-card h2,
.kri-criteria-card h2,
.kri-action-card h3 {
  margin: 0;
  color: #24113f;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.3;
}

.kri-detail-description p:last-child,
.kri-detail-update p:last-child,
.kri-criteria-card p:last-child,
.kri-action-item p,
.kri-executive-note p {
  margin: 10px 0 0;
  color: #403451;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.8;
}

.kri-formatted-text {
  line-height: 1.85;
}

.kri-criteria-grid,
.kri-actions-grid {
  display: grid;
  gap: 12px;
}

.kri-criteria-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  isolation: isolate;
  overflow: hidden;
  padding: 20px;
}

.kri-criteria-card > .kri-performance-icon,
.kri-criteria-card > div {
  position: relative;
  z-index: 1;
}

.kri-criteria-card > .kri-performance-icon {
  margin-top: 2px;
}

.kri-criteria-appetite > .kri-performance-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.kri-criteria-tolerance > .kri-performance-icon {
  background: rgba(234, 179, 8, 0.12);
  color: #ca8a04;
}

.kri-criteria-card span:not(.kri-performance-icon) {
  display: block;
  margin-top: 4px;
  color: #7a6f8f;
  font-size: 11px;
  font-weight: 750;
}

.kri-criteria-appetite {
  border-color: rgba(22, 163, 74, 0.22);
  background:
    radial-gradient(circle at 92% 66%, rgba(22, 163, 74, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(240, 253, 250, 0.84), rgba(255, 255, 255, 0.94));
  box-shadow:
    0 18px 40px rgba(22, 163, 74, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.kri-criteria-tolerance {
  border-color: rgba(217, 119, 6, 0.22);
  background:
    radial-gradient(circle at 92% 66%, rgba(217, 119, 6, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.84), rgba(255, 255, 255, 0.94));
  box-shadow:
    0 18px 40px rgba(217, 119, 6, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.kri-threshold-watermark {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 0;
  width: 156px;
  height: 156px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  transform: translateY(-50%);
  pointer-events: none;
}

.kri-criteria-appetite .kri-threshold-watermark {
  color: rgba(22, 163, 74, 0.075);
}

.kri-criteria-tolerance .kri-threshold-watermark {
  color: rgba(217, 119, 6, 0.075);
}

.kri-actions-section .section-heading {
  margin-bottom: 12px;
}

.kri-action-card {
  padding: 16px;
}

.kri-action-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.kri-action-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.kri-action-item p {
  margin: 0;
}

.kri-action-dot {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--brand-700);
  box-shadow: 0 0 0 4px rgba(102, 51, 163, 0.1);
}

.kri-action-empty {
  color: #6b5f7a;
  font-size: 13px;
  font-weight: 720;
  text-align: center;
}

.kri-executive-note {
  border-color: rgba(102, 51, 163, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(123, 75, 194, 0.12), transparent 32%),
    rgba(248, 244, 253, 0.86);
  padding: 16px 18px;
}

.kri-executive-note p {
  margin: 0;
  color: #2b145c;
  font-weight: 700;
}

@media (max-width: 767px) {
  .kri-dashboard-view,
  .kri-detail-view {
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: 96px;
  }

  .kri-dashboard-header,
  .kri-matrix-section,
  .kri-overview-section,
  .kri-insights-section,
  .kri-dashboard-empty,
  .kri-detail-content {
    min-width: 0;
    margin-right: 14px;
    margin-left: 14px;
  }

  .kri-dashboard-header {
    gap: 14px;
    padding: 18px 0 2px;
  }

  .kri-dashboard-header-copy h1 {
    margin: 8px 0;
    font-size: clamp(25px, 9vw, 34px);
    letter-spacing: -0.035em;
    line-height: 1.13;
  }

  .kri-dashboard-header-copy p:last-child {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .kri-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 16px;
  }

  .kri-summary-card {
    min-height: 78px;
    padding: 12px 8px;
  }

  .kri-summary-value {
    font-size: 23px;
  }

  .kri-summary-label {
    font-size: 9.5px;
  }

  .kri-matrix-section,
  .kri-overview-section,
  .kri-insights-section,
  .kri-detail-mini-matrix-card,
  .kri-detail-card,
  .kri-detail-status-card,
  .kri-criteria-card,
  .kri-action-card,
  .kri-executive-note,
  .kri-detail-metric {
    border-radius: 16px;
    box-shadow:
      0 10px 24px rgba(36, 17, 63, 0.055),
      0 1px 0 rgba(255, 255, 255, 0.95) inset;
  }

  .kri-matrix-section,
  .kri-overview-section,
  .kri-insights-section {
    padding: 14px;
  }

  .kri-matrix-section .section-heading,
  .kri-overview-section .section-heading,
  .kri-insights-section .section-heading {
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .kri-matrix-section .section-heading h2,
  .kri-overview-section .section-heading h2,
  .kri-insights-section .section-heading h2 {
    font-size: 15px;
    line-height: 1.25;
  }

  .kri-risk-legend {
    justify-content: flex-start;
    gap: 7px 10px;
    font-size: 9px;
  }

  .kri-matrix-layout {
    gap: 12px;
  }

  .kri-matrix-shell,
  .kri-overview-table-shell {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .kri-risk-matrix {
    min-width: 398px;
  }

  .kri-matrix-grid {
    grid-template-columns: 56px repeat(5, 66px);
    grid-template-rows: 20px repeat(5, 52px) 34px;
    gap: 2px;
  }

  .kri-matrix-axis-spacer span {
    left: -30px;
    top: calc(20px + 2px + ((52px * 5) + (2px * 4)) / 2);
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }

  .kri-matrix-top-label,
  .kri-matrix-row-label,
  .kri-matrix-bottom-label,
  .kri-matrix-axis-spacer {
    font-size: 8.5px;
  }

  .kri-matrix-row-label strong,
  .kri-matrix-bottom-label strong {
    font-size: 11px;
  }

  .kri-matrix-row-label span,
  .kri-matrix-bottom-label span {
    font-size: 7px;
    line-height: 1.15;
  }

  .kri-matrix-cell {
    border-radius: 7px;
    overflow: visible;
  }

  .kri-matrix-markers {
    gap: 3px;
    padding: 3px;
  }

  .kri-matrix-marker {
    min-width: 24px;
    min-height: 24px;
    font-size: 8.5px;
    box-shadow: 0 6px 13px rgba(36, 17, 63, 0.13);
  }

  .kri-matrix-impact-label {
    margin-top: 6px;
    font-size: 10px;
  }

  .kri-performance-legend {
    padding: 14px;
  }

  .kri-legend-item {
    gap: 10px;
    padding: 10px 0;
  }

  .kri-overview-table {
    min-width: 820px;
  }

  .kri-overview-row {
    grid-template-columns: 70px minmax(150px, 1.25fr) 104px 96px 190px 102px 110px;
    gap: 9px;
    min-height: 48px;
    padding: 7px 9px;
    font-size: 10.5px;
  }

  .kri-overview-head {
    min-height: 34px;
    font-size: 8.8px;
  }

  .kri-risk-pill,
  .kri-performance-pill,
  .kri-trend {
    font-size: 9.5px;
  }

  .kri-insights-summary {
    grid-template-columns: 1fr;
  }

  .kri-insight-card {
    min-height: 0;
    padding: 13px;
  }

  .kri-detail-content {
    gap: 14px;
  }

  .kri-detail-header {
    gap: 10px;
    padding: 16px 0 0;
  }

  .kri-detail-title {
    font-size: clamp(25px, 8.7vw, 34px);
    letter-spacing: -0.03em;
    line-height: 1.16;
  }

  .kri-detail-subtitle {
    margin-top: 9px;
    font-size: 12.5px;
  }

  .kri-detail-top-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kri-detail-side-panel {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .kri-detail-mini-matrix-card,
  .kri-detail-card,
  .kri-criteria-card,
  .kri-action-card,
  .kri-executive-note {
    min-width: 0;
    padding: 14px;
  }

  .kri-detail-update-financial-grid {
    grid-template-columns: 1fr;
  }

  .financial-threshold-card {
    padding: 13px;
  }

  .financial-threshold-header h2 {
    font-size: 15.5px;
  }

  .financial-threshold-header p {
    font-size: 11.5px;
  }

  .financial-metric-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 11px;
    padding: 13px 0;
  }

  .financial-metric-heading {
    min-width: 0;
  }

  .financial-metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .financial-metric-icon svg {
    width: 19px;
    height: 19px;
  }

  .financial-metric-heading h3 {
    font-size: 12.5px;
  }

  .financial-metric-value {
    justify-self: end;
    min-width: 0;
    max-width: 128px;
    justify-content: flex-end;
    font-size: 17px;
    text-align: right;
  }

  .financial-threshold-chart {
    grid-column: 1 / -1;
    padding-top: 2px;
  }

  .financial-status {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .financial-threshold-label {
    font-size: 9.2px;
  }

  .financial-actual-label {
    font-size: 9px;
  }

  .financial-threshold-legend {
    gap: 8px 12px;
    padding: 10px;
  }

  .financial-threshold-legend span {
    font-size: 10.2px;
  }

  .kri-threshold-watermark {
    right: 6px;
    top: 50%;
    width: 112px;
    height: 112px;
    stroke-width: 5.5;
    transform: translateY(-50%);
  }

  .kri-detail-mini-matrix-card .section-heading h2,
  .kri-detail-card h2,
  .kri-criteria-card h2,
  .kri-action-card h3 {
    font-size: 15.5px;
  }

  .kri-detail-mini-matrix {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .kri-detail-mini-matrix .kri-risk-matrix {
    min-width: 376px;
  }

  .kri-detail-mini-matrix .kri-matrix-grid {
    grid-template-columns: 54px repeat(5, 58px);
    grid-template-rows: 20px repeat(5, 46px) 32px;
    gap: 2px;
  }

  .kri-detail-mini-matrix .kri-matrix-axis-spacer span {
    left: -28px;
    top: calc(20px + 2px + ((46px * 5) + (2px * 4)) / 2);
    font-size: 8px;
  }

  .kri-detail-mini-matrix .kri-matrix-row-label strong,
  .kri-detail-mini-matrix .kri-matrix-bottom-label strong {
    font-size: 10px;
  }

  .kri-detail-mini-matrix .kri-matrix-row-label span,
  .kri-detail-mini-matrix .kri-matrix-bottom-label span {
    font-size: 6.6px;
  }

  .kri-detail-mini-matrix .kri-matrix-marker {
    min-width: 23px;
    min-height: 23px;
    height: 23px;
    font-size: 8px;
  }

  .kri-detail-status-card {
    min-height: 142px;
    padding: 18px 14px;
  }

  .kri-detail-status-card .kri-performance-icon {
    width: 42px;
    height: 42px;
  }

  .kri-detail-status-card .kri-performance-icon svg {
    width: 23px;
    height: 23px;
  }

  .kri-detail-status-card strong {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .kri-detail-status-card p {
    font-size: 12px;
  }

  .kri-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .kri-detail-metric {
    min-width: 0;
    min-height: 72px;
    padding: 11px;
  }

  .kri-detail-metric > span {
    font-size: 8.8px;
    letter-spacing: 0.045em;
  }

  .kri-detail-metric > strong {
    min-width: 0;
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .kri-criteria-grid,
  .kri-actions-grid {
    grid-template-columns: 1fr;
  }

  .kri-criteria-card {
    gap: 11px;
  }

  .kri-detail-description p:last-child,
  .kri-detail-update p:last-child,
  .kri-criteria-card p:last-child,
  .kri-action-item p,
  .kri-executive-note p {
    font-size: 12.8px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .kri-dashboard-header,
  .kri-matrix-section,
  .kri-overview-section,
  .kri-insights-section,
  .kri-dashboard-empty,
  .kri-detail-content {
    margin-right: 12px;
    margin-left: 12px;
  }

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

  .kri-risk-matrix {
    min-width: 394px;
  }

  .kri-matrix-grid {
    grid-template-columns: 54px repeat(5, 61px);
    grid-template-rows: 18px repeat(5, 48px) 31px;
  }

  .kri-matrix-axis-spacer span {
    left: -30px;
    top: calc(18px + 2px + ((48px * 5) + (2px * 4)) / 2);
  }

  .kri-detail-mini-matrix .kri-risk-matrix {
    min-width: 354px;
  }

  .kri-detail-mini-matrix .kri-matrix-grid {
    grid-template-columns: 54px repeat(5, 54px);
    grid-template-rows: 18px repeat(5, 42px) 30px;
  }

  .kri-detail-mini-matrix .kri-matrix-axis-spacer span {
    left: -28px;
    top: calc(18px + 2px + ((42px * 5) + (2px * 4)) / 2);
  }

  .kri-detail-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .kri-matrix-axis-spacer span,
  .kri-detail-mini-matrix .kri-matrix-axis-spacer span {
    display: none;
  }
}

@media (max-width: 767px) {
  .kri-snapshot-shell {
    overflow: visible;
  }

  .kri-snapshot-list {
    grid-template-columns: 1fr;
    gap: 9px;
    overflow-x: visible;
    padding: 4px 2px 6px;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  .kri-snapshot-list::-webkit-scrollbar {
    display: none;
  }

  .kri-tile {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    padding: 10px 11px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    row-gap: 5px;
    border-radius: 14px;
  }

  .kri-tile::before {
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    height: auto;
    border-radius: 0 999px 999px 0;
    opacity: 0.62;
  }

  .kri-tile-top {
    display: contents;
    margin-bottom: 0;
  }

  .kri-tile .kri-code {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 34px;
    min-height: 24px;
    align-self: center;
    padding: 3px 8px;
    font-size: 10px;
  }

  .kri-name {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
    -webkit-line-clamp: 1;
  }

  .kri-risk-indicator {
    position: static;
    grid-column: 3;
    grid-row: 1;
    gap: 3px;
    align-self: center;
    justify-self: end;
    font-size: 9px;
  }

  .kri-risk-dot {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 3px var(--kri-risk-bg, rgba(102, 51, 163, 0.1));
  }

  .kri-performance {
    grid-column: 2 / 4;
    grid-row: 2;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 0;
    font-size: 9.5px;
    text-align: left;
  }

  .kri-tile .kri-performance > span:last-child {
    -webkit-line-clamp: 1;
  }

  .kri-tile .kri-performance-icon {
    width: 22px;
    height: 22px;
  }

  .kri-tile .kri-performance-icon svg {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 340px) {
  .kri-tile {
    min-height: 82px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .kri-risk-indicator {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    font-size: 8.5px;
  }

  .kri-performance {
    grid-column: 2;
    padding-right: 58px;
  }
}

@media (min-width: 768px) {
  .reports-view {
    max-width: 1040px;
    margin: 0 auto;
  }

  .reports-frame-shell {
    height: clamp(560px, calc(100vh - 300px), 860px);
    margin-right: 32px;
    margin-left: 32px;
  }

  .kri-snapshot-list {
    grid-template-columns: repeat(5, minmax(158px, 1fr));
    grid-auto-flow: row;
    gap: 13px;
    overflow-x: auto;
    padding: 4px 6px 9px;
  }

  .kri-tile {
    min-height: 132px;
    padding: 19px 12px 14px;
  }

  .kri-name {
    font-size: 11px;
  }

  .kri-dashboard-view {
    max-width: 1040px;
    margin: 0 auto;
  }

  .kri-detail-view {
    max-width: 1040px;
    margin: 0 auto;
  }

  .kri-dashboard-header,
  .kri-matrix-section,
  .kri-overview-section,
  .kri-insights-section,
  .kri-dashboard-empty {
    margin-right: 32px;
    margin-left: 32px;
  }

  .kri-detail-content {
    margin-right: 32px;
    margin-left: 32px;
  }

  .kri-dashboard-header {
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    align-items: center;
    padding-top: 26px;
  }

  .kri-detail-header {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }

  .kri-detail-top-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    align-items: start;
  }

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

  .kri-criteria-grid,
  .kri-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kri-dashboard-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kri-summary-card {
    min-height: 104px;
  }

  .kri-matrix-section,
  .kri-overview-section,
  .kri-insights-section {
    padding: 22px;
  }

  .kri-risk-legend {
    justify-content: flex-end;
  }

  .kri-matrix-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
  }

  .kri-risk-matrix {
    min-width: 0;
  }

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

@media (min-width: 1024px) {
  .reports-view {
    max-width: 1180px;
  }

  .reports-frame-shell {
    height: clamp(600px, calc(100vh - 300px), 900px);
    margin-right: 40px;
    margin-left: 40px;
  }

  .kri-snapshot-list {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 14px;
  }

  .kri-tile {
    min-height: 136px;
  }

  .kri-dashboard-view {
    max-width: 1180px;
  }

  .kri-detail-view {
    max-width: 1180px;
  }

  .kri-dashboard-header,
  .kri-matrix-section,
  .kri-overview-section,
  .kri-insights-section,
  .kri-dashboard-empty {
    margin-right: 40px;
    margin-left: 40px;
  }

  .kri-detail-content {
    margin-right: 40px;
    margin-left: 40px;
  }

  .kri-detail-top-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .kri-detail-mini-matrix .kri-risk-matrix {
    min-width: 0;
  }

  .kri-detail-mini-matrix .kri-matrix-grid {
    grid-template-columns: 52px repeat(5, minmax(64px, 1fr));
    grid-template-rows: 24px repeat(5, 60px) 42px;
  }

  .kri-detail-mini-matrix .kri-matrix-axis-spacer span {
    left: 6px;
    top: calc(24px + 3px + ((60px * 5) + (3px * 4)) / 2);
  }

  .kri-dashboard-header {
    grid-template-columns: minmax(0, 1.22fr) 440px;
    padding-top: 32px;
  }

  .kri-matrix-grid {
    grid-template-columns: 68px repeat(5, minmax(94px, 1fr));
    grid-template-rows: 28px repeat(5, 78px) 50px;
  }

  .kri-matrix-axis-spacer span {
    left: -30px;
    top: calc(28px + 3px + ((78px * 5) + (3px * 4)) / 2);
  }

  .kri-matrix-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .kri-insights-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .kri-risk-matrix {
    min-width: 364px;
  }

  .kri-matrix-grid {
    grid-template-columns: 52px repeat(5, 60px);
    grid-template-rows: 18px repeat(5, 48px) 31px;
  }

  .kri-risk-matrix::before {
    display: block;
    margin: 0 0 5px 2px;
    color: var(--brand-800);
    content: "LIKELIHOOD";
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .kri-detail-mini-matrix {
    display: flex;
    justify-content: center;
  }

  .kri-detail-mini-matrix .kri-risk-matrix {
    min-width: 340px;
    margin-inline: auto;
    transform: translateX(4px);
  }

  .kri-detail-mini-matrix .kri-matrix-grid {
    grid-template-columns: 48px repeat(5, 52px);
    grid-template-rows: 18px repeat(5, 42px) 30px;
  }

  .kri-matrix-axis-spacer span,
  .kri-detail-mini-matrix .kri-matrix-axis-spacer span {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .kri-matrix-markers,
  .kri-detail-mini-matrix .kri-matrix-markers {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px;
  }

  .kri-matrix-markers[data-count="1"] {
    flex-wrap: nowrap;
  }

  .kri-matrix-markers[data-count="2"] {
    flex-wrap: nowrap;
  }

  .kri-matrix-markers[data-count="2"] .kri-matrix-marker {
    min-width: 21px;
    min-height: 21px;
    width: 21px;
    height: 21px;
    font-size: 8px;
  }

  .kri-matrix-markers[data-count="3"],
  .kri-matrix-markers[data-count="4"] {
    display: grid;
    grid-template-columns: repeat(2, 18px);
    grid-auto-rows: 18px;
    align-content: center;
    justify-content: center;
    gap: 2px;
  }

  .kri-matrix-markers[data-count="3"] .kri-matrix-marker,
  .kri-matrix-markers[data-count="4"] .kri-matrix-marker {
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
    font-size: 7px;
  }

  .kri-matrix-markers[data-count="3"] .kri-matrix-marker:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .kri-matrix-cell,
  .kri-detail-mini-matrix .kri-matrix-cell {
    overflow: hidden;
  }

  .kri-matrix-marker,
  .kri-detail-mini-matrix .kri-matrix-marker {
    min-width: 24px;
    min-height: 24px;
    height: 24px;
    font-size: 8.5px;
  }
}

@media (min-width: 768px) {
  .kri-matrix-shell {
    display: flex;
    justify-content: center;
    overflow-x: visible;
  }

  .kri-risk-matrix {
    width: min(100%, 690px);
    min-width: 0;
    margin-inline: auto;
  }

  .kri-matrix-grid {
    grid-template-columns: 92px repeat(5, minmax(82px, 104px));
    grid-template-rows: 24px repeat(5, 76px) 44px;
    justify-content: center;
  }

  .kri-matrix-axis-spacer span {
    left: -34px;
    top: calc(24px + 3px + ((76px * 5) + (3px * 4)) / 2);
  }

  .kri-detail-mini-matrix {
    display: flex;
    justify-content: center;
    overflow-x: visible;
  }

  .kri-detail-mini-matrix .kri-risk-matrix {
    width: min(100%, 640px);
    min-width: 0;
    margin-inline: auto;
  }

  .kri-detail-mini-matrix .kri-matrix-grid {
    grid-template-columns: 88px repeat(5, minmax(78px, 98px));
    grid-template-rows: 22px repeat(5, 70px) 40px;
    justify-content: center;
  }

  .kri-detail-mini-matrix .kri-matrix-axis-spacer span {
    left: -32px;
    top: calc(22px + 3px + ((70px * 5) + (3px * 4)) / 2);
  }
}

@media (min-width: 1024px) {
  .kri-risk-matrix {
    width: min(100%, 720px);
  }

  .kri-matrix-grid {
    grid-template-columns: 96px repeat(5, 108px);
    grid-template-rows: 26px repeat(5, 80px) 46px;
  }

  .kri-matrix-axis-spacer span {
    left: -38px;
    top: calc(26px + 3px + ((80px * 5) + (3px * 4)) / 2);
  }

  .kri-detail-mini-matrix .kri-risk-matrix {
    width: min(100%, 660px);
  }

  .kri-detail-mini-matrix .kri-matrix-grid {
    grid-template-columns: 92px repeat(5, 100px);
    grid-template-rows: 24px repeat(5, 72px) 42px;
  }

  .kri-detail-mini-matrix .kri-matrix-axis-spacer span {
    left: -36px;
    top: calc(24px + 3px + ((72px * 5) + (3px * 4)) / 2);
  }
}

.detail-open .bottom-nav {
  display: grid;
}

.detail-open main {
  padding-bottom: 110px;
}

.subpage-view,
.category-view,
.today-headlines-view,
.watchlist-view,
.reports-view,
.kri-dashboard-view,
.kri-detail-view {
  padding-bottom: max(112px, calc(96px + env(safe-area-inset-bottom)));
}
