:root {
  --bg: #dcdcdc;
  --bg-soft: #ededed;
  --panel: #f5f5f5;
  --panel-strong: #ffffff;
  --line: #444444;
  --line-soft: #8a8a8a;
  --text: #111111;
  --text-soft: #575757;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bahnschrift", "Aptos", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(145deg, #cfcfcf, #e7e7e7 42%, #d3d3d3);
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(235, 235, 235, 0.85)),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 27px,
      rgba(0, 0, 0, 0.03) 28px
    );
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand h1,
.brand p {
  margin: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.5);
}

.eyebrow,
.field-label,
.section-kicker,
.meta-label,
.panel-label,
.chip-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nav-block,
.nav-submenu {
  display: grid;
  gap: var(--space-2);
}

.nav-group {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.nav-group summary {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-group summary:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: -2px;
}

.nav-submenu {
  padding: 0 10px 10px;
}

.nav-submenu .nav-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.nav-group-title {
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-item {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  transform: translateX(3px);
  border-color: rgba(0, 0, 0, 0.35);
  outline: none;
}

.nav-item.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(223, 223, 223, 0.9));
  border-color: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.sidebar-meta {
  margin-top: auto;
  padding: var(--space-4);
  border: 1px dashed rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.meta-value,
.meta-note {
  margin: var(--space-1) 0 0;
}

.meta-note {
  color: var(--text-soft);
  line-height: 1.55;
}

.frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
}

.topbar-title {
  display: grid;
  gap: 4px;
}

.topbar-title strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.topbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.topbar-group-compact {
  justify-content: flex-end;
}

.top-select,
.utility-chip {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
}

.top-select strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.utility-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.utility-count {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  font-size: 0.9rem;
}

.app {
  padding: 28px;
}

.page {
  display: grid;
  gap: var(--space-4);
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(236, 236, 236, 0.88)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 14px,
      rgba(0, 0, 0, 0.03) 15px
    );
  box-shadow: var(--shadow);
}

.page-header h2,
.page-header p {
  margin: 0;
}

.page-title {
  display: grid;
  gap: 10px;
}

.page-subtitle {
  max-width: 820px;
  line-height: 1.6;
  color: var(--text-soft);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.breadcrumb span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

.filter-bar,
.tab-bar,
.meeting-strip,
.selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip,
.tab-chip,
.badge,
.status-chip,
.toggle-chip {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

button.tab-chip {
  cursor: pointer;
}

.toggle-chip.is-active,
.tab-chip.is-active {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.42);
}

.people-primary-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.people-primary-tabs .tab-chip {
  min-width: 0;
  min-height: 48px;
  padding: 12px 16px 14px;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 800;
}

.people-primary-tabs .tab-chip:hover,
.people-primary-tabs .tab-chip:focus-visible {
  background: rgba(0, 0, 0, 0.04);
  outline: none;
}

.people-primary-tabs .tab-chip.is-active {
  border-color: #111111;
  background: rgba(0, 0, 0, 0.03);
}

.grid {
  display: grid;
  gap: var(--space-4);
  align-items: start;
  align-content: start;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-layout,
.detail-layout,
.ritual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
  gap: var(--space-4);
  align-items: start;
  align-content: start;
}

.lower-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
  align-content: start;
}

.wide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  align-content: start;
}

.panel {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.92));
  box-shadow: var(--shadow);
  min-width: 0;
  align-items: start;
  align-content: start;
  height: fit-content;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}

.panel-header h3,
.panel-header p {
  margin: 0;
}

.panel-title {
  display: grid;
  gap: 8px;
}

.panel-title p {
  color: var(--text-soft);
  line-height: 1.5;
}

.panel-body {
  display: grid;
  gap: var(--space-3);
  align-items: start;
  align-content: start;
}

.panel-body > * {
  align-self: start;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: start;
  align-content: start;
}

.kpi-card,
.area-card,
.mini-card,
.level-card {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.kpi-card strong,
.area-card strong,
.level-card strong,
.metric-value {
  display: block;
  font-size: 1.45rem;
  margin-top: 8px;
}

.metric-sub,
.small-copy,
.helper-copy {
  color: var(--text-soft);
  line-height: 1.45;
  font-size: 0.92rem;
}

.chart-box {
  min-height: 250px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(252, 252, 252, 0.92), rgba(234, 234, 234, 0.92)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 24px,
      rgba(0, 0, 0, 0.035) 25px
    );
}

.chart-box.compact {
  min-height: 200px;
}

.chart-box.tall {
  min-height: 360px;
}

.chart-box.wide {
  min-height: 300px;
}

.chart-box.pie-compact {
  width: min(100%, 800px);
  min-height: 320px;
  max-height: 360px;
  justify-self: center;
}

.chart-box canvas {
  width: 100%;
  height: 100%;
}

.governance-executive {
  gap: var(--space-4);
}

.hero-loss-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: var(--space-4);
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 236, 236, 0.94));
  box-shadow: var(--shadow);
}

.hero-loss-copy,
.hero-loss-metric,
.executive-card-header,
.executive-card-body,
.stat-block {
  min-width: 0;
}

.hero-loss-copy h2,
.hero-loss-copy p,
.hero-loss-metric strong,
.hero-loss-metric span,
.executive-card h3,
.executive-card p {
  margin: 0;
}

.hero-loss-copy {
  display: grid;
  gap: 10px;
}

.hero-loss-copy h2 {
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  line-height: 1.12;
}

.hero-loss-copy p {
  max-width: 720px;
  color: var(--text-soft);
  line-height: 1.5;
}

.hero-loss-metric {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.hero-loss-metric strong {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
}

.hero-loss-metric span {
  color: var(--text-soft);
  font-size: 1.1rem;
  font-weight: 700;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: var(--space-4);
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 236, 236, 0.94));
  box-shadow: var(--shadow);
}

.people-hero {
  grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
  align-items: stretch;
}

.module-title-block {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.back-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
}

.back-button:hover,
.back-button:focus-visible,
.module-breadcrumb button:hover,
.module-breadcrumb button:focus-visible {
  border-color: rgba(0, 0, 0, 0.55);
  outline: none;
}

.module-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.module-breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.module-hero h2,
.module-hero p {
  margin: 0;
}

.module-hero h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.6rem);
  line-height: 1.12;
}

.module-hero p {
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.5;
}

.module-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-summary > div {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.module-summary strong {
  display: block;
  margin-top: 8px;
  line-height: 1.2;
}

.module-summary strong {
  font-size: 1.35rem;
}

.people-summary {
  align-items: stretch;
}

.people-summary-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.people-summary-card.is-active {
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.86);
}

.people-summary-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.people-summary-card .asset-detail-button {
  margin-top: auto;
  width: 100%;
}

.people-summary-chart {
  height: 188px;
  min-height: 188px;
  max-height: 188px;
  flex: 0 0 188px;
  position: relative;
  overflow: hidden;
}

.people-summary-chart canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.people-mode-tabs {
  align-self: stretch;
  justify-self: end;
  width: min(420px, 100%);
  min-width: 360px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 100%;
}

.people-mode-tab {
  min-height: 100%;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.people-mode-tab.is-active {
  border-color: rgba(0, 0, 0, 0.48);
  background: rgba(0, 0, 0, 0.07);
}

.people-mode-tab:hover,
.people-mode-tab:focus-visible {
  border-color: rgba(0, 0, 0, 0.54);
  outline: none;
}

.people-mode-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.25rem;
}

.people-individual-modal {
  width: min(1240px, calc(100vw - 32px));
}

.people-individual-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 14px;
  align-items: start;
}

.people-individual-summary {
  display: grid;
  gap: 14px;
  align-content: start;
}

.people-stage-progress {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.people-stage-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.people-stage-progress-head span {
  color: var(--stage-color);
  font-weight: 800;
}

.people-stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding-top: 2px;
  margin-bottom: 28px;
}

.people-stage-track::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}

.people-stage-fill {
  position: absolute;
  top: 12px;
  left: 0;
  width: var(--stage-progress);
  height: 8px;
  border-radius: 999px;
  background: var(--stage-color);
}

.people-stage-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.people-stage-step i {
  width: 20px;
  height: 20px;
  display: block;
  margin-top: 4px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  background: #ffffff;
}

.people-stage-step.is-active i {
  border-color: var(--stage-color);
  background: color-mix(in srgb, var(--stage-color) 16%, #ffffff);
}

.people-stage-step small {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 700;
}

.people-stage-step.is-active small {
  color: var(--text);
}

.people-individual-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.people-individual-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.people-individual-summary .stat-block:last-child .priority-badge {
  font-size: 1rem;
}

.inline-donut {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--donut-color) calc(var(--value) * 1%), rgba(0, 0, 0, 0.11) 0);
  position: relative;
}

.inline-donut::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #ffffff;
}

.inline-donut span {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 800;
  color: #111111;
}

.people-roles-section .data-table th,
.people-roles-section .data-table td {
  vertical-align: middle;
}

.people-roles-section .data-table th:first-child,
.people-roles-section .data-table td:first-child {
  width: 92px;
  padding: 6px 10px;
}

.people-roles-section .inline-donut {
  margin: 0 auto;
}

.governance-participation-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.governance-participation-summary .summary-feature {
  grid-column: 1 / -1;
}

.governance-participation-summary .summary-feature strong {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
}

.period-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.period-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: end;
}

.period-selector button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.period-selector button.is-active {
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: end;
}

.date-range label {
  display: grid;
  gap: 5px;
}

.date-range input {
  min-height: 36px;
  width: 150px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
}

.target-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 40px;
}

.target-legend-line {
  width: 70px;
  height: 0;
  border-top: 4px dashed #111111;
}

.target-legend span {
  color: var(--text-soft);
  font-weight: 700;
}

.target-legend strong {
  font-size: 1.8rem;
  line-height: 1;
}

.target-legend-multi {
  flex-wrap: wrap;
}

.target-legend-line.secondary-line {
  border-top-color: #777777;
  border-top-width: 3px;
  border-top-style: dashed;
}

.commitment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.commitment-form label {
  display: grid;
  gap: 8px;
}

.commitment-form input,
.commitment-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.span-form-2 {
  grid-column: 1 / -1;
}

.form-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.form-actions button,
.card-actions button,
.table-pagination button {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.form-actions button:hover,
.form-actions button:focus-visible,
.card-actions button:hover,
.card-actions button:focus-visible,
.table-pagination button:hover,
.table-pagination button:focus-visible {
  border-color: rgba(0, 0, 0, 0.55);
  outline: none;
}

.table-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.table-pagination span {
  color: var(--text-soft);
  font-weight: 700;
}

.module-hero-actions {
  margin-top: 14px;
}

.asset-detail-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 700;
}

.asset-detail-button.is-active {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.55);
}

.quality-line-pills {
  display: grid;
  gap: 8px;
}

.quality-line-pill {
  min-height: 34px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
}

.quality-line-pill.is-active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.production-asset-ranking li.is-selected {
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.9);
}

.production-asset-button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.production-asset-button strong {
  min-width: 0;
}

.production-asset-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.production-asset-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.micro-critical-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 20px;
  padding: 0 4px;
  border: 1px solid var(--micro-badge-color);
  border-radius: 999px;
  background: color-mix(in srgb, var(--micro-badge-color) 10%, transparent);
  color: var(--micro-badge-color);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

.maintenance-critical-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.maintenance-step {
  position: relative;
  display: grid;
  gap: 0;
  align-content: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.maintenance-step-rail {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.maintenance-step-rail span {
  position: absolute;
  left: 52px;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
}

.maintenance-step:last-child .maintenance-step-rail span {
  display: none;
}

.maintenance-step-circle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--step-color);
  border-radius: 999px;
  background: color-mix(in srgb, var(--step-color) 14%, #ffffff);
  color: var(--step-color);
  font-size: 1rem;
}

.maintenance-step.is-selected .maintenance-step-circle {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-color) 15%, transparent);
  background: var(--step-color);
  color: #ffffff;
}

.maintenance-step-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding-top: 12px;
}

.maintenance-step-copy small {
  color: var(--step-color);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.maintenance-step-copy strong {
  line-height: 1.2;
}

.maintenance-component-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px) minmax(110px, 130px);
  column-gap: 18px;
}

.maintenance-component-info {
  display: grid;
  gap: 4px;
  justify-items: center;
  align-self: center;
  text-align: center;
}

.maintenance-component-score {
  display: grid;
  justify-items: end;
  align-self: center;
  text-align: right;
}

.maintenance-component-info strong,
.maintenance-component-score strong {
  line-height: 1;
  font-size: 0.96rem;
}

.maintenance-component-info small {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
}

.maintenance-standard-actions {
  margin-top: 14px;
}

.maintenance-standard-modal {
  width: min(1280px, calc(100vw - 36px));
}

.maintenance-standard-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.maintenance-standard-meta > div {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.maintenance-standard-meta strong {
  display: block;
  margin-top: 4px;
}

.maintenance-standard-table .data-table {
  min-width: 1960px;
}

.maintenance-standard-table th,
.maintenance-standard-table td {
  vertical-align: top;
}

.maintenance-standard-table thead th {
  text-align: center;
  white-space: normal;
  padding-top: 10px;
  padding-bottom: 10px;
}

.maintenance-standard-table thead th > span {
  display: block;
  font-weight: 800;
}

.maintenance-standard-table thead th > small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.maintenance-standard-table .data-table td {
  white-space: normal;
}

.standard-col-photo {
  width: 150px;
}

.standard-col-code {
  width: 76px;
}

.standard-col-element {
  width: 220px;
}

.standard-col-standard {
  width: 340px;
}

.standard-col-state {
  width: 124px;
}

.standard-col-safety {
  width: 260px;
}

.standard-col-tools {
  width: 290px;
}

.standard-col-how {
  width: 320px;
}

.standard-col-time {
  width: 100px;
}

.standard-col-owner {
  width: 150px;
}

.standard-col-frequency {
  width: 260px;
}

.standard-col-anomalies {
  width: auto;
}

.table-image-placeholder {
  width: 100%;
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.55),
      rgba(255, 255, 255, 0.55) 10px,
      rgba(0, 0, 0, 0.02) 10px,
      rgba(0, 0, 0, 0.02) 20px
    );
  color: rgba(0, 0, 0, 0.42);
}

.table-image-placeholder i {
  font-size: 1.4rem;
}

.standard-state-icon {
  min-height: 86px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.standard-state-icon.is-stopped {
  color: #16833e;
}

.standard-state-icon.is-running {
  color: #c62828;
}

.standard-anomaly-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  width: max-content;
  min-width: 100%;
}

.standard-anomaly-list li {
  line-height: 1.35;
  white-space: nowrap;
}

.production-inspection-modal {
  width: min(1360px, calc(100vw - 36px));
}

.production-inspection-tabs {
  margin-bottom: 16px;
}

.production-inspection-table .data-table {
  min-width: 980px;
  width: max-content;
}

.production-inspection-table thead th {
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.production-inspection-table thead th > span {
  display: block;
  font-weight: 800;
}

.production-inspection-table thead th > small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.production-inspection-week-header {
  background: rgba(0, 0, 0, 0.03);
}

.production-inspection-table .data-table td,
.production-inspection-table .data-table th {
  padding: 10px 8px;
}

.production-inspection-table .data-table td {
  text-align: left;
}

.production-inspection-day,
.inspection-schedule-cell {
  text-align: center;
}

.inspection-schedule-cell {
  font-weight: 800;
  color: var(--text);
}

.inspection-schedule-cell.is-weekly {
  background: rgba(0, 0, 0, 0.04);
}

.prod-inspection-col-code {
  width: 64px;
}

.prod-inspection-col-owner {
  width: 128px;
}

.prod-inspection-col-compliance {
  width: 98px;
}

.prod-inspection-col-frequency {
  width: 126px;
}

.prod-inspection-col-day {
  width: 44px;
}

.production-inspection-meta-highlight {
  display: grid;
  align-content: center;
  justify-items: start;
}

.production-inspection-meta-highlight strong {
  margin-top: 2px;
  font-size: 1.9rem;
  line-height: 1;
}

.production-management-view-tabs {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

.production-management-view-tabs .people-mode-tab {
  min-width: 0;
  min-height: 112px;
}

.production-management-pie-box {
  width: min(100%, 360px);
  min-height: 260px;
  max-height: 260px;
  margin-inline: auto;
}

.production-inspection-row {
  cursor: pointer;
}

.production-inspection-row:hover td {
  background: rgba(0, 0, 0, 0.035);
}

.production-inspection-table td strong {
  display: block;
}

.production-inspection-table td small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
}

.production-inspection-detail-modal {
  width: min(1240px, calc(100vw - 36px));
}

.production-inspection-detail-table .data-table td:first-child,
.production-inspection-detail-table .data-table th:first-child {
  white-space: nowrap;
}

.production-analysis-modal {
  width: min(1180px, calc(100vw - 36px));
}

.production-analysis-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}

.production-analysis-summary-card,
.production-analysis-questions-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.production-analysis-question-list {
  display: grid;
  gap: 10px;
  margin: 0 16px 16px;
}

.production-analysis-question-list .asset-detail-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.production-analysis-answer {
  margin: 0 16px 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.production-analysis-answer p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.production-component-select-field {
  margin-top: 12px;
}

.production-correlation-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.production-correlation-card .subsection {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.production-correlation-card .chart-box {
  margin-top: auto;
}

.production-condition-detail {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.production-condition-detail p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.bird-layout {
  display: grid;
  grid-template-columns: minmax(80px, 0.22fr) minmax(280px, 0.9fr) minmax(260px, 0.7fr);
  gap: 22px;
  align-items: center;
}

.bird-comparison-layout {
  display: grid;
  grid-template-columns: 5fr 2fr 5fr;
  gap: 18px;
  align-items: start;
}

.safety-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  justify-self: stretch;
  width: 100%;
}

.safety-controls .combo-field:first-child {
  justify-self: start;
}

.safety-controls .combo-field:last-child {
  justify-self: end;
}

.combo-field {
  display: grid;
  gap: 5px;
  width: min(100%, 220px);
}

.combo-field span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.combo-field input {
  min-height: 38px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
}

.bird-pyramid-block {
  display: grid;
  gap: 10px;
}

.bird-period {
  display: grid;
  gap: 6px;
  align-self: start;
}

.bird-period strong {
  font-size: 1.2rem;
}

.bird-period span {
  color: var(--text-soft);
}

.bird-pyramid {
  display: grid;
  gap: 5px;
  justify-items: center;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.bird-tier,
.bird-base-cell,
.bird-label {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.bird-tier {
  display: grid;
  place-items: center;
  min-height: 68px;
  width: 100%;
  color: #ffffff;
  background: #009c4d;
  transition: transform 140ms ease, filter 140ms ease;
}

.bird-tier:hover,
.bird-base-cell:hover,
.bird-label:hover {
  filter: brightness(0.94);
}

.bird-tier.is-active,
.bird-base-cell.is-active,
.bird-label.is-active {
  outline: none;
}

.bird-tier.is-active,
.bird-base-cell.is-active {
  filter: brightness(0.76);
}

.bird-label.is-active {
  background: #111111;
  color: #ffffff;
}

.bird-label.is-active span,
.bird-label-red.is-active strong,
.bird-label-red.is-active span {
  color: #ffffff;
}

.bird-tier-1 {
  min-height: 74px;
  padding-top: 20px;
}

.bird-number {
  font-size: clamp(1.35rem, 2.55vw, 2.2rem);
  font-weight: 300;
  line-height: 1;
}

.bird-base {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  background: #f21d0d;
}

.bird-base-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 86px;
  padding: 12px 6px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: transparent;
  text-align: center;
  text-transform: uppercase;
}

.bird-base-cell:first-child {
  padding-left: 28px;
}

.bird-base-cell:last-child {
  border-right: 0;
  padding-right: 28px;
}

.bird-base-cell span {
  font-size: 0.58rem;
  line-height: 1.05;
}

.bird-base-cell strong {
  font-size: clamp(1.35rem, 2.55vw, 2.2rem);
  line-height: 1;
  font-weight: 500;
}

.bird-labels {
  display: grid;
  gap: 10px;
}

.bird-label {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  text-align: left;
}

.bird-label strong {
  font-size: 1rem;
  line-height: 1.2;
}

.bird-label span {
  color: var(--text-soft);
  line-height: 1.25;
}

.bird-label-red strong,
.bird-label-red span {
  color: #d92616;
}

.safety-detail {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.safety-detail strong {
  font-size: 3rem;
  line-height: 1;
}

.safety-detail p {
  color: var(--text-soft);
}

.safety-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.safety-kpi-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.safety-kpi-grid span {
  color: var(--text-soft);
  line-height: 1.2;
}

.safety-kpi-grid strong {
  font-size: 1.4rem;
}

.ai-analysis-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.ai-analysis-box p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.ai-action-ranking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-action-ranking li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.ai-action-ranking strong,
.ai-action-ranking span,
.ai-action-ranking em {
  display: block;
  line-height: 1.25;
}

.ai-action-ranking span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.ai-action-ranking em {
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.span-4 {
  grid-column: span 4;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-9 {
  grid-column: span 9;
}

.span-10 {
  grid-column: span 10;
}

.span-12 {
  grid-column: 1 / -1;
}

.executive-card {
  display: grid;
  gap: var(--space-3);
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 240, 240, 0.92));
  box-shadow: var(--shadow);
}

.executive-card-header {
  display: grid;
  gap: 8px;
}

.executive-card-header.with-control {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: start;
}

.administrative-budget-header {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  align-items: start;
}

.administrative-budget-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.administrative-budget-stats > div {
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.administrative-budget-stats strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1;
}

.administrative-budget-filter {
  display: flex;
  justify-content: flex-start;
}

.administrative-budget-filter .combo-field {
  width: min(100%, 280px);
}

.budget-comparison-ranking li {
  align-items: start;
}

.budget-comparison-ranking span {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}

.budget-comparison-ranking small {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.skill-level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.skill-level-grid > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.skill-level-grid strong {
  font-size: 2rem;
  line-height: 1;
}

.skill-level-grid span {
  font-weight: 800;
}

.skill-level-grid p {
  color: var(--text-soft);
  line-height: 1.3;
}

.table-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-action-group .asset-detail-button {
  min-height: 30px;
  padding: 6px 9px;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-soft);
  text-align: center;
}

.competency-table-stack,
.competency-accordion {
  display: grid;
  gap: 12px;
}

.competency-table-section {
  display: grid;
  gap: 8px;
}

.team-average-tables .data-table th:first-child,
.team-average-tables .data-table td:first-child {
  width: 220px;
  max-width: 220px;
  white-space: normal;
}

.team-average-tables .data-table th:not(:first-child),
.team-average-tables .data-table td:not(:first-child) {
  text-align: center;
  vertical-align: middle;
}

.person-evaluation-tables .data-table th:first-child,
.person-evaluation-tables .data-table td:first-child {
  width: 240px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.person-evaluation-tables .data-table th:not(:first-child),
.person-evaluation-tables .data-table td:not(:first-child) {
  vertical-align: middle;
}

.people-role-indicator-table .data-table th:nth-child(3),
.people-role-indicator-table .data-table td:nth-child(3) {
  width: 240px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.learning-plan-table th:first-child,
.learning-plan-table td:first-child {
  width: 180px;
  min-width: 180px;
  font-weight: 800;
}

.learning-plan-table thead th:not(:first-child) {
  text-align: center;
}

.learning-plan-table thead th strong,
.learning-plan-table thead th span {
  display: block;
}

.learning-plan-table thead th strong {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.competency-kpi-modal.learning-plan-modal {
  width: min(1024px, calc(100vw - 32px));
}

.gantt-participants-modal {
  width: min(1180px, 100%);
}

.learning-checklist {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-checklist li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.learning-checklist i {
  color: #16833e;
  font-size: 1rem;
  line-height: 1.25;
}

.participant-checklist {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participant-checklist li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}

.participant-checklist i {
  color: #2f75b5;
  font-size: 1rem;
  line-height: 1.25;
}

.competency-gantt-scroll {
  width: 100%;
  overflow-x: auto;
}

.competency-gantt {
  min-width: 920px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 8px;
}

.gantt-header,
.gantt-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(640px, 3fr);
}

.gantt-header {
  background: rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.gantt-header > strong,
.gantt-label {
  padding: 11px 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.gantt-periods,
.gantt-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.gantt-periods span {
  padding: 11px 6px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.gantt-row {
  min-height: 54px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gantt-row:last-child {
  border-bottom: 0;
}

.gantt-label {
  display: grid;
  gap: 3px;
}

.gantt-label span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.gantt-track {
  align-items: center;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(12.5% - 1px),
    rgba(0, 0, 0, 0.1) calc(12.5% - 1px),
    rgba(0, 0, 0, 0.1) 12.5%
  );
}

.gantt-bar {
  grid-column: var(--gantt-start) / span var(--gantt-span);
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 5px;
  padding: 5px 8px;
  border: 1px solid var(--training-color);
  border-radius: 4px;
  background: color-mix(in srgb, var(--training-color) 18%, white);
  color: var(--training-color);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}

.gantt-bar:hover,
.gantt-bar:focus-visible {
  background: color-mix(in srgb, var(--training-color) 30%, white);
  outline: none;
}

.gantt-bar span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-bar strong {
  flex: 0 0 auto;
}

.training-modal-tabs {
  margin: 16px 0;
}

.training-summary {
  display: grid;
  gap: 18px;
}

.training-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.training-summary-grid > div {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.training-summary-grid span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.training-summary-grid strong {
  font-size: 1.25rem;
}

.training-status {
  color: var(--training-color);
}

.training-progress {
  display: grid;
  gap: 8px;
}

.training-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.training-progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}

.training-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--training-color);
}

.training-reason {
  padding: 14px;
  border-left: 4px solid var(--training-color, #b08b00);
  background: rgba(176, 139, 0, 0.08);
}

.training-reason p {
  margin-top: 5px;
  color: var(--text-soft);
}

@media (max-width: 720px) {
  .training-summary-grid {
    grid-template-columns: 1fr;
  }

  .person-evaluation-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .person-summary-stat {
    justify-items: start;
  }
}

.competency-accordion .details-content {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.accordion-section-title {
  padding-top: 2px;
}

.accordion-section-title.with-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.accordion-section-title h4 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.accordion-section-separator {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.person-evaluation-summary {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
}

.person-summary-name {
  font-weight: 800;
}

.person-progress-ring {
  --ring-size: 48px;
  width: var(--ring-size);
  height: var(--ring-size);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 0 57%, transparent 58%),
    conic-gradient(var(--progress-color) calc(var(--progress) * 1%), rgba(0, 0, 0, 0.12) 0);
}

.person-progress-ring strong {
  font-size: 0.74rem;
  line-height: 1;
}

.person-summary-stat {
  min-width: 82px;
  display: grid;
  gap: 3px;
  justify-items: end;
}

.person-summary-stat small {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.person-summary-stat strong {
  font-size: 1rem;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 54px;
  padding: 4px 9px;
  border: 1px solid var(--priority-color);
  border-radius: 999px;
  background: color-mix(in srgb, var(--priority-color) 10%, transparent);
  color: var(--priority-color);
  font-weight: 800;
}

.maintenance-criticality-matrix .maintenance-criticality-item {
  vertical-align: middle;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.025);
}

.text-soft {
  color: var(--text-soft);
}

.business-priority-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.business-priority-header h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.indicator-status-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.business-priority-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.68);
}

.business-priority-levels > div {
  display: grid;
  gap: 8px;
  min-height: 84px;
  padding: 10px 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  text-align: center;
  align-content: center;
}

.business-priority-levels > div:last-child {
  border-right: 0;
}

.business-priority-levels strong {
  font-size: 1.25rem;
}

.business-priority-levels span {
  line-height: 1.15;
}

.table-search {
  display: grid;
  gap: 6px;
  justify-self: end;
  width: 100%;
}

.table-search input {
  min-height: 40px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.table-search input:focus {
  border-color: rgba(0, 0, 0, 0.55);
  outline: none;
}

.module-summary-action-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.module-summary-action-card .asset-detail-button {
  width: 100%;
}

.production-plan-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(180px, 220px));
  gap: 14px;
  align-items: end;
}

.production-plan-date-field {
  display: grid;
  gap: 6px;
}

.production-plan-date-field input {
  min-height: 40px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
}

.production-plan-date-field input:focus {
  border-color: rgba(0, 0, 0, 0.55);
  outline: none;
}

.production-plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.production-plan-day-card .executive-card-header {
  margin-bottom: 10px;
  align-items: start;
}

.production-plan-header-copy {
  min-width: 0;
}

.production-plan-legend {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-content: start;
  margin-left: auto;
  min-width: 240px;
}

.production-plan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.production-plan-legend i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.95rem;
  color: #111111;
}

.production-plan-week-filter,
.production-plan-day-filter {
  display: grid;
  gap: 6px;
}

.production-plan-select-wrap {
  position: relative;
}

.production-overview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.production-overview-filter {
  display: grid;
  align-content: start;
}

.production-overview-chart {
  min-width: 0;
}

.chart-box.production-overview-chart-box {
  width: min(100%, 340px);
  min-height: 170px;
  max-height: 170px;
  justify-self: end;
}

.production-plan-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
  font: inherit;
}

.production-plan-day-filter .filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.filter-chip.is-active {
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.1);
}

.production-plan-inline-filters {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px 22px;
  margin-bottom: 14px;
  align-items: start;
}

.production-plan-day-boards {
  display: grid;
  gap: 14px;
}

.production-plan-board {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.production-plan-board-side {
  min-height: 248px;
  display: grid;
  place-items: center;
  padding: 12px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.production-plan-board-side strong {
  font-size: 1rem;
}

.production-plan-board-main {
  min-width: 0;
}

.production-plan-calendar {
  overflow-x: auto;
}

.production-plan-days {
  display: grid;
  grid-template-columns: repeat(var(--day-count), minmax(0, 1fr));
  min-width: calc(var(--hour-count) * 56px);
  margin: 0 0 8px 184px;
}

.production-plan-days span {
  padding: 0 0 6px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.84rem;
  font-weight: 700;
}

.production-plan-hours {
  display: grid;
  grid-template-columns: repeat(var(--hour-count), minmax(56px, 1fr));
  min-width: calc(var(--hour-count) * 56px);
  margin: 0 0 6px 184px;
}

.production-plan-hours span {
  position: relative;
  padding: 0 0 8px;
  color: var(--text-soft);
  font-size: 0.72rem;
  text-align: left;
  white-space: nowrap;
}

.production-plan-hours span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
}

.production-plan-hours span.is-last::after {
  display: none;
}

.production-plan-grid-shell {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 0;
}

.production-plan-row-labels {
  display: grid;
  grid-template-rows: 34px repeat(5, 60px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.production-plan-row-header,
.production-plan-row-label {
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.production-plan-row-header {
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
}

.production-plan-row-label {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 0 12px;
}

.production-plan-row-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 800;
}

.production-plan-row-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.production-plan-timeline-grid {
  position: relative;
  min-width: calc(var(--hour-count) * 56px);
  min-height: var(--board-height);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.66);
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent calc((100% / 48) - 1px),
      rgba(0, 0, 0, 0.06) calc((100% / 48) - 1px),
      rgba(0, 0, 0, 0.06) calc(100% / 48)
    );
}

.production-plan-major-lines span,
.production-plan-shift-lines span,
.production-plan-day-lines span,
.production-plan-row-lines span {
  position: absolute;
  pointer-events: none;
}

.production-plan-major-lines span,
.production-plan-shift-lines span {
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-0.5px);
}

.production-plan-major-lines span {
  background: rgba(0, 0, 0, 0.11);
}

.production-plan-day-lines span {
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.22);
  transform: translateX(-1px);
  z-index: 1;
}

.production-plan-shift-lines span {
  width: 2px;
  background: rgba(0, 0, 0, 0.24);
  z-index: 1;
}

.production-plan-row-lines span {
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.production-plan-timeline {
  position: relative;
  width: 100%;
  min-height: var(--board-height);
}

.production-plan-block {
  position: absolute;
  min-width: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  overflow: hidden;
  z-index: 2;
  cursor: default;
}

.production-plan-block i {
  font-size: 1rem;
}

.production-plan-block.is-production {
  background: #16a34a;
  color: #ffffff;
}

.production-plan-block.is-break {
  background: #facc15;
  color: #111111;
}

.production-plan-block.is-change {
  background: #facc15;
  color: #111111;
}

.production-plan-block.is-changeover {
  background: #22c55e;
  color: #ffffff;
}

.production-plan-block.is-failure {
  background: #ff2b06;
  color: #ffffff;
}

.decomposition-header {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.adhesion-decomposition-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-4);
  align-items: start;
}

.executive-card-header h3 {
  line-height: 1.2;
  margin: 5px 0;
}

.executive-card-header p {
  color: var(--text-soft);
  line-height: 1.5;
  margin: 5px 0;
}

.executive-card-body {
  display: grid;
  gap: var(--space-3);
}

.action-analysis-card {
  grid-row: span 2;
  align-self: stretch;
  align-content: start;
}

.split-card-content {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  align-items: stretch;
}

.stat-block {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-left: 4px solid rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.55);
}

.stat-block strong {
  display: block;
  font-size: 1.35rem;
}

.governance-map {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 8px 0 0;
}

.map-row {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.map-row-center {
  grid-template-columns: minmax(260px, 360px);
  justify-content: center;
}

.map-row-modules {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.map-connector {
  position: relative;
  height: 34px;
}

.map-connector::before,
.map-connector::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.25);
}

.map-connector::before {
  top: 0;
  width: 2px;
  height: 100%;
}

.map-connector::after {
  bottom: 0;
  width: calc(100% - 16.6%);
  height: 2px;
}

.map-connector.secondary::after {
  width: calc(100% - 16.6%);
}

.governance-node {
  min-height: 104px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.map-nav-node {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.map-nav-node:hover,
.map-nav-node:focus-visible,
.map-nav-node.is-current {
  border-color: rgba(0, 0, 0, 0.52);
  background: rgba(255, 255, 255, 0.94);
  outline: none;
}

.governance-node.is-locked {
  position: relative;
  cursor: not-allowed;
  color: rgba(17, 17, 17, 0.6);
}

.governance-node.is-locked .lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(245, 245, 245, 0.72);
}

.lock-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(0, 0, 0, 0.78);
  font-size: 2rem;
}

.governance-node.executive,
.governance-node.tronco {
  min-height: 96px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.42);
}

.governance-node strong,
.governance-node p {
  margin: 0;
}

.governance-node strong {
  display: block;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.governance-node p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.governance-node small {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.3;
}

.production-cascade-card {
  display: grid;
  gap: 16px;
}

.production-indicator-selector {
  justify-content: flex-end;
}

.production-cascade-map {
  padding-top: 4px;
}

.production-area-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.production-line-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.production-top-connector::after {
  width: calc(100% - 50%);
}

.production-line-connector::after {
  width: calc(100% - 25%);
}

.production-cascade-node {
  min-height: 118px;
}

.production-cascade-node p {
  margin-top: 10px;
  color: #111111;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.production-cascade-node.is-current {
  border-color: rgba(0, 0, 0, 0.58);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
}

.node-status {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #8a8a8a;
}

.node-status.danger {
  background: #111111;
}

.node-status.warning {
  background: #666666;
}

.node-status.ok {
  background: #b0b0b0;
}

.cause-ranking {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cause-counter;
}

.cause-ranking li {
  counter-increment: cause-counter;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.cause-ranking li::before {
  content: counter(cause-counter);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.cause-ranking strong {
  min-width: 0;
  line-height: 1.2;
}

.cause-ranking span {
  color: var(--text-soft);
  font-weight: 700;
  white-space: nowrap;
}

.indicator-stack {
  display: grid;
  gap: 12px;
}

.indicator-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.indicator-row span {
  min-width: 0;
  line-height: 1.25;
}

.indicator-row strong {
  font-size: 1.8rem;
  line-height: 1;
}

.matrix {
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.matrix table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.matrix-compact table,
.matrix-compact .data-table {
  min-width: 0;
}

.matrix-compact th,
.matrix-compact td {
  padding: 10px;
}

.matrix-compact td:last-child,
.matrix-compact th:last-child {
  width: 1%;
  white-space: nowrap;
}

.production-plan-weekly-table {
  overflow: visible;
}

.production-plan-weekly-table table,
.production-plan-weekly-table .data-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.production-plan-weekly-table th,
.production-plan-weekly-table td {
  white-space: nowrap;
}

.production-plan-weekly-table th {
  white-space: normal;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.production-plan-weekly-table th:nth-child(1),
.production-plan-weekly-table td:nth-child(1) {
  width: 11%;
}

.production-plan-weekly-table th:nth-child(2),
.production-plan-weekly-table td:nth-child(2) {
  width: 10%;
}

.production-plan-weekly-table th:nth-child(3),
.production-plan-weekly-table td:nth-child(3),
.production-plan-weekly-table th:nth-child(4),
.production-plan-weekly-table td:nth-child(4) {
  width: 12%;
}

.production-plan-weekly-table th:nth-child(5),
.production-plan-weekly-table td:nth-child(5),
.production-plan-weekly-table th:nth-child(6),
.production-plan-weekly-table td:nth-child(6),
.production-plan-weekly-table th:nth-child(7),
.production-plan-weekly-table td:nth-child(7) {
  width: 10%;
}

.production-plan-weekly-table th:nth-child(8),
.production-plan-weekly-table td:nth-child(8),
.production-plan-weekly-table th:nth-child(9),
.production-plan-weekly-table td:nth-child(9) {
  width: 12.5%;
}

.matrix th,
.matrix td,
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: left;
  vertical-align: top;
}

.matrix th,
.data-table th {
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.indicator-cascade-table table {
  min-width: 920px;
}

.indicator-cascade-table th,
.indicator-cascade-table td {
  text-align: center;
  vertical-align: middle;
  background: transparent;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.indicator-cascade-table th {
  text-transform: none;
  letter-spacing: 0;
}

.indicator-cascade-table tr > *:last-child {
  border-right: 0;
}

.indicator-cascade-table tr > th:first-child {
  text-align: left;
  width: 220px;
}

.indicator-cascade-table .cascade-expanded-row > td {
  padding: 0;
  background: rgba(0, 0, 0, 0.025);
  border-right: 0;
}

.indicator-cascade-table .cascade-area-close {
  cursor: pointer;
  font-weight: 900;
}

.indicator-cascade-table .cascade-area-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.indicator-cascade-table .impact-cell.is-clickable {
  cursor: pointer;
  position: relative;
}

.indicator-cascade-table .impact-cell.is-clickable:hover,
.indicator-cascade-table .impact-cell.is-active {
  background: rgba(0, 0, 0, 0.06);
}

.indicator-cascade-table .impact-cell.is-active {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.52);
}

.cascade-role-panel {
  padding: 12px 14px 16px;
}

.cascade-detail-title {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.cascade-role-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.cascade-role-table th,
.cascade-role-table td {
  padding: 10px 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cascade-role-table thead th {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 800;
}

.cascade-role-table tr > *:last-child {
  border-right: 0;
}

.cascade-role-table tbody tr:last-child > * {
  border-bottom: 0;
}

.competency-matrix-clickable tbody tr {
  cursor: pointer;
}

.competency-matrix-clickable tbody tr:hover {
  background: rgba(0, 0, 0, 0.045);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.32);
}

.competency-kpi-modal {
  width: min(1024px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  background: #f7f7f7;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.competency-kpi-modal-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
}

.modal-close-button {
  width: 36px;
  height: 36px;
  justify-self: end;
  align-self: start;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.cascade-modal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.cascade-modal-legend strong {
  margin-right: auto;
}

.cascade-modal-legend span,
.cascade-criticality {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.indicator-target {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.indicator-target i {
  color: #009c4d;
  font-size: 1.15rem;
  font-weight: 800;
}

.indicator-cascade-table .kpi-corner-cell {
  background: transparent;
  font-size: 1.08rem;
  font-weight: 800;
}

.indicator-cascade-table .cascade-title {
  padding: 18px 14px;
  background: transparent;
  font-size: 1.08rem;
  font-weight: 800;
}

.indicator-cascade-table .objective-group {
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
}

.indicator-cascade-table .objective-group i {
  margin-right: 6px;
  font-size: 1.15rem;
  vertical-align: -2px;
}

.cascade-legend {
  background: transparent;
}

.cascade-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cascade-legend span + span {
  margin-top: 8px;
}

.cascade-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

.cascade-dot.rojo {
  color: #d92616;
}

.cascade-dot.amarillo {
  color: #c7a100;
}

.cascade-dot.verde {
  color: #009c4d;
}

.cascade-dot.gris {
  color: #9a9a9a;
}

.indicator-cascade-table .impact-cell {
  height: 58px;
}

.indicator-cascade-table > table > tbody > tr:nth-child(3) > th {
  background: rgba(0, 0, 0, 0.06);
}

.indicator-cascade-table .impact-cell .cascade-dot {
  font-size: 1.35rem;
}

.table-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
  color: var(--text);
  outline: 2px solid rgba(0, 0, 0, 0.3);
  outline-offset: 3px;
}

.stack-list,
.annotation-list,
.agenda-list,
.decision-list,
.insight-list,
.timeline-list,
.commitment-list,
.method-list {
  display: grid;
  gap: 12px;
}

.list-item,
.timeline-item,
.commitment-item,
.insight-item {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.list-item strong,
.timeline-item strong,
.commitment-item strong,
.insight-item strong {
  display: block;
  margin-bottom: 6px;
}

.split-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.progress-list {
  display: grid;
  gap: 10px;
}

.progress-item {
  display: grid;
  gap: 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.6));
}

.tree-diagram {
  display: grid;
  gap: var(--space-4);
  align-items: start;
  align-content: start;
}

.tree-row,
.tree-leaves {
  display: grid;
  gap: var(--space-3);
  align-items: start;
  align-content: start;
}

.tree-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tree-leaves {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tree-node {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
}

.tree-node.is-selected {
  border-color: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.tree-node strong,
.tree-node span {
  display: block;
}

.tree-link {
  height: 18px;
  border-left: 2px solid rgba(0, 0, 0, 0.16);
  margin: 0 auto;
}

.inspection-grid,
.comparison-grid,
.board-grid,
.approval-grid {
  display: grid;
  gap: var(--space-3);
  align-items: start;
  align-content: start;
}

.board-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.approval-grid,
.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kanban-column {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 12px;
}

.kanban-column h4,
.subsection h4,
.subsection p,
.subsection strong {
  margin: 0;
}

.subsection {
  display: grid;
  gap: 10px;
}

.dependency-map,
.cascade-map,
.link-map {
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(236, 236, 236, 0.84)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.03), transparent 65%);
}

.dependency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  align-content: start;
}

.dependency-node {
  padding: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.sequence-step {
  min-height: 0;
  padding: 18px 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  gap: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.sequence-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sequence-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  flex: none;
}

.sequence-step strong,
.formula-block strong {
  display: block;
}

.sequence-step strong {
  margin: 0;
  line-height: 1.25;
}

.sequence-step .helper-copy {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.metric-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  align-content: start;
}

.formula-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.formula-line {
  font-size: 1.2rem;
  font-weight: 700;
}

.details-block details {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  padding: 12px 14px;
}

.details-block summary {
  cursor: pointer;
  font-weight: 600;
}

.details-content {
  margin-top: 10px;
  color: var(--text-soft);
}

.case-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-3);
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  align-content: start;
}

.note-box,
.discussion-box,
.wireframe-box {
  min-height: 120px;
  padding: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-soft);
}

.timeline-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  align-content: start;
}

.timeline-point {
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.meeting-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: start;
  align-content: start;
}

.note-area {
  min-height: 200px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
  align-content: start;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  text-align: center;
  color: var(--text-soft);
}

@media (max-width: 1440px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-row-modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lower-layout,
  .meeting-grid,
  .settings-grid,
  .timeline-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-layout,
  .detail-layout,
  .ritual-layout,
  .wide-layout,
  .hero-loss-card,
  .module-hero,
  .case-header,
  .board-grid,
  .approval-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .people-hero {
    grid-template-columns: 1fr;
  }

  .people-mode-tabs {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .people-mode-tab {
    min-width: 0;
  }

  .hero-loss-metric {
    justify-items: start;
    text-align: left;
  }

  .span-3,
  .span-2,
  .span-4,
  .span-6,
  .span-8,
  .span-9,
  .span-10 {
    grid-column: 1 / -1;
  }

  .split-card-content {
    grid-template-columns: 1fr;
  }

  .executive-card-header.with-control {
    grid-template-columns: 1fr;
  }

  .administrative-budget-header,
  .administrative-budget-stats,
  .skill-level-grid {
    grid-template-columns: 1fr;
  }

  .people-individual-modal-grid {
    grid-template-columns: 1fr;
  }

  .people-stage-progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-priority-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .indicator-status-legend {
    justify-content: flex-start;
  }

  .table-search {
    justify-self: stretch;
  }

  .adhesion-decomposition-grid {
    grid-template-columns: 1fr;
  }

  .action-analysis-card {
    grid-row: auto;
  }

  .ai-action-ranking {
    grid-template-columns: 1fr;
  }

  .bird-layout {
    grid-template-columns: 1fr;
  }

  .bird-comparison-layout {
    grid-template-columns: 1fr;
  }

  .safety-controls {
    justify-self: stretch;
    width: 100%;
  }

  .bird-period {
    padding-top: 0;
  }

  .map-connector::after,
  .map-connector.secondary::after {
    width: 70%;
  }

  .tree-row,
  .tree-leaves,
  .dependency-grid,
  .sequence-grid,
  .grid.cols-4,
  .grid.cols-5,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .app,
  .topbar,
  .sidebar {
    padding: 18px;
  }

  .sidebar-nav,
  .kpi-grid,
  .governance-grid,
  .map-row-modules,
  .module-summary,
  .module-title-block,
  .commitment-form,
  .period-controls,
  .date-range,
  .meeting-grid,
  .timeline-strip,
  .grid.cols-4,
  .grid.cols-5,
  .grid.cols-3,
  .grid.cols-2,
  .sequence-grid,
  .metric-grid-compact,
  .summary-metrics,
  .split-stats,
  .tree-row,
  .tree-leaves,
  .dependency-grid,
  .lower-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .hero-loss-card,
  .executive-card {
    padding: 16px;
  }

  .hero-loss-metric strong {
    font-size: 3.2rem;
  }

  .map-connector {
    height: 18px;
  }

  .map-connector::after {
    display: none;
  }

  .topbar {
    flex-direction: column;
  }
}
