:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e7ebf2;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --canvas: #f3f6fb;
  --navy: #10203d;
  --navy-2: #172d50;
  --primary: #2667ff;
  --primary-strong: #1851d4;
  --primary-soft: #eaf0ff;
  --teal: #0f9f8f;
  --teal-soft: #e4f7f4;
  --green: #16885b;
  --green-soft: #e8f6ef;
  --amber: #b86406;
  --amber-soft: #fff4df;
  --red: #c93a4b;
  --red-soft: #fff0f1;
  --violet: #7357d9;
  --violet-soft: #f0edff;
  --shadow-sm: 0 1px 2px rgba(16, 32, 61, .04), 0 8px 24px rgba(28, 51, 84, .06);
  --shadow-lg: 0 22px 62px rgba(16, 32, 61, .18);
  --radius: 18px;
  --radius-sm: 9px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 4%, rgba(38, 103, 255, .10), transparent 25%),
    radial-gradient(circle at 38% 34%, rgba(15, 159, 143, .055), transparent 28%),
    linear-gradient(180deg, #f7f9fd 0, var(--canvas) 38%, #f5f7fb 100%);
  background-attachment: fixed;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(38, 103, 255, .2);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 244px;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  color: #dce6f7;
  background:
    radial-gradient(circle at 15% 0%, rgba(51, 112, 225, .24), transparent 34%),
    linear-gradient(180deg, var(--navy), #0c192f 70%);
  box-shadow: 10px 0 30px rgba(14, 28, 52, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  color: white;
  background: linear-gradient(145deg, #367bff, #5f7cff);
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(54, 123, 255, .28);
  font-size: 18px;
  font-weight: 800;
}

.brand strong,
.brand small,
.sidebar-foot strong,
.sidebar-foot small {
  display: block;
}

.brand strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: .02em;
}

.brand small {
  margin-top: 3px;
  color: #8fa2bf;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#mainNav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  color: #aebbd0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-item span {
  display: grid;
  place-items: center;
  width: 20px;
  color: #8395b1;
  font-size: 15px;
}

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

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(55, 116, 255, .94), rgba(55, 116, 255, .64));
  box-shadow: 0 7px 18px rgba(30, 82, 184, .24);
}

.nav-item.active span {
  color: #fff;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-foot strong {
  color: #e8eef8;
  font-size: 12px;
}

.sidebar-foot small {
  margin-top: 3px;
  color: #8496b2;
  font-size: 10px;
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: #cfe0ff;
  background: rgba(62, 118, 224, .18);
  border: 1px solid rgba(122, 160, 229, .2);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.main-area {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(36, 56, 88, .04);
  backdrop-filter: blur(18px) saturate(145%);
}

#breadcrumb {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.top-actions,
.toolbar,
.toolbar-group,
.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.period-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.period-picker input {
  width: 128px;
  height: 36px;
  padding: 0 9px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mobile-menu {
  display: none;
  margin-right: 10px;
  padding: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

button.primary,
button.secondary,
button.ghost,
button.danger,
.button-like {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

button.primary {
  color: white;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 10px rgba(38, 103, 255, .17);
}

button.primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

button.secondary,
.button-like {
  color: #315cae;
  background: var(--primary-soft);
  border: 1px solid #d7e2ff;
}

button.secondary:hover,
.button-like:hover {
  background: #dfe8ff;
}

button.ghost {
  color: #475467;
  background: #fff;
  border: 1px solid #dfe4ec;
}

button.ghost:hover {
  background: var(--surface-soft);
}

button.danger {
  color: var(--red);
  background: #fff;
  border: 1px solid #f2cbd0;
}

button.danger:hover {
  background: var(--red-soft);
}

button.small,
.button-like.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none !important;
}

.content {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 30px 30px 58px;
}

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

.page-head h1 {
  margin: 0;
  color: #14213a;
  font-size: 27px;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.page-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.split-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
  align-items: start;
}

.data-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.card,
.kpi-card,
.requirement-card,
.notice,
.upload-card {
  background: var(--surface);
  border: 1px solid rgba(221, 228, 239, .88);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card {
  min-width: 0;
  overflow: hidden;
}

.card-pad {
  padding: 19px 20px;
}

.card-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.card-head h2,
.card-head h3 {
  margin: 0;
  color: #25324a;
  font-size: 15px;
}

.card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.kpi-card {
  min-height: 176px;
  padding: 20px 21px 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(249, 251, 255, .94));
  box-shadow: 0 14px 38px rgba(30, 50, 82, .075), inset 0 1px rgba(255, 255, 255, .92);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.kpi-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--kpi-color, var(--primary)), transparent 78%);
  opacity: .78;
}

.kpi-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  right: -65px;
  top: -74px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--kpi-accent, var(--primary-soft)), transparent 68%);
  opacity: .9;
}

.kpi-card:hover {
  border-color: color-mix(in srgb, var(--kpi-color, var(--primary)) 24%, #dfe5ef);
  box-shadow: 0 20px 48px rgba(30, 50, 82, .115), inset 0 1px rgba(255, 255, 255, .96);
  transform: translateY(-3px);
}

.kpi-glow {
  position: absolute;
  z-index: -1;
  width: 120px;
  height: 120px;
  left: -56px;
  bottom: -72px;
  border-radius: 50%;
  background: var(--kpi-accent, var(--primary-soft));
  filter: blur(18px);
  opacity: .34;
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #56647a;
  font-size: 13px;
  font-weight: 680;
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--kpi-color, var(--primary));
  background: var(--kpi-accent, var(--primary-soft));
  border: 1px solid color-mix(in srgb, var(--kpi-color, var(--primary)) 12%, transparent);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
}

.kpi-value {
  margin-top: 0;
  color: #17233b;
  font-size: 32px;
  font-weight: 790;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.kpi-foot {
  margin-top: 10px;
  color: #738097;
  font-size: 11px;
  line-height: 1.5;
}

.kpi-card.good {
  --kpi-color: var(--green);
  --kpi-accent: var(--green-soft);
}

.kpi-card.warn {
  --kpi-color: var(--amber);
  --kpi-accent: var(--amber-soft);
}

.kpi-card.risk {
  --kpi-color: var(--red);
  --kpi-accent: var(--red-soft);
}

.kpi-card.teal {
  --kpi-color: var(--teal);
  --kpi-accent: var(--teal-soft);
}

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  padding: 16px 18px 19px;
}

.requirement-card {
  padding: 13px;
  box-shadow: none;
}

.requirement-card .req-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.requirement-card .req-value {
  margin-top: 11px;
  font-size: 20px;
  font-weight: 750;
}

.requirement-card .req-target {
  min-height: 30px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  margin-top: 10px;
  background: #edf0f5;
  border-radius: 99px;
}

.progress > i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--progress-color, var(--primary));
  border-radius: inherit;
}

.progress.good > i {
  --progress-color: var(--green);
}

.progress.warn > i {
  --progress-color: var(--amber);
}

.progress.risk > i {
  --progress-color: var(--red);
}

.toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.toolbar-group {
  flex-wrap: wrap;
}

.field,
.modal-field {
  display: grid;
  gap: 6px;
}

.field label,
.modal-field label {
  color: #475467;
  font-size: 11px;
  font-weight: 650;
}

.control,
.field input,
.field select,
.modal-field input,
.modal-field select,
.modal-field textarea {
  min-height: 36px;
  padding: 7px 10px;
  color: #25324a;
  background: #fff;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  transition: border .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
  border-color: #8aabff;
  box-shadow: 0 0 0 3px rgba(38, 103, 255, .09);
  outline: none;
}

.search-input {
  width: 230px;
}

.filter-select {
  min-width: 135px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 10px 12px;
  color: #667085;
  background: #f8f9fb;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 12px;
  color: #344054;
  border-bottom: 1px solid #edf0f4;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fafbfe;
}

.cell-main {
  display: block;
  color: #25324a;
  font-weight: 700;
}

.cell-sub {
  display: block;
  max-width: 260px;
  margin-top: 3px;
  overflow: hidden;
  color: #8b95a5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metric-pair {
  white-space: nowrap;
}

.metric-pair strong {
  color: #25324a;
  font-size: 13px;
}

.metric-pair span {
  color: #98a2b3;
}

.mini-progress {
  width: 84px;
}

.mini-progress .progress {
  height: 4px;
  margin-top: 5px;
}

.badge,
.status-chip,
.grade-chip,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.status-achieved,
.status-dismissed,
.severity-low {
  color: var(--green);
  background: var(--green-soft);
}

.status-on_track,
.status-pending,
.severity-medium {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-lagging,
.status-not_started,
.status-confirmed,
.severity-high {
  color: var(--red);
  background: var(--red-soft);
}

.status-missing,
.status-na {
  color: #667085;
  background: #eef1f5;
}

.grade-chip {
  color: #5541b7;
  background: var(--violet-soft);
}

.count-pill {
  min-width: 24px;
  color: #315cae;
  background: var(--primary-soft);
}

.trend-note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.availability-note,
.notice {
  padding: 14px 16px;
  line-height: 1.65;
}

.availability-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: #6f5408;
  background: #fffaf0;
  border: 1px solid #f3e3b9;
  border-radius: 11px;
  font-size: 11px;
}

.notice {
  color: #385075;
  background: #f1f6ff;
  border-color: #d9e6ff;
}

.notice.portable {
  position: relative;
  overflow: hidden;
  color: #27436d;
  background: linear-gradient(130deg, #edf4ff, #f4fbfa);
  border-color: #d6e6f8;
}

.notice.portable::after {
  content: "LOCAL";
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(38, 103, 255, .08);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .08em;
}

.notice h3 {
  margin: 0 0 5px;
  color: #263b5c;
  font-size: 14px;
}

.notice p {
  max-width: 780px;
  margin: 0;
  font-size: 11px;
}

.notice strong {
  color: #17345e;
}

.risk-list {
  display: grid;
}

.risk-item {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 13px 17px;
  border-bottom: 1px solid #edf0f4;
}

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

.risk-bar {
  width: 4px;
  height: 36px;
  background: var(--amber);
  border-radius: 99px;
}

.risk-item.high .risk-bar {
  background: var(--red);
}

.risk-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #25324a;
  font-size: 12px;
  font-weight: 750;
}

.risk-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 11px;
  color: #7c91b2;
  background: #eef3fa;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
}

.empty strong {
  display: block;
  margin-bottom: 6px;
  color: #344054;
}

.loading {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  border: 3px solid #e4eafa;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.upload-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 300px;
  padding: 20px;
  box-shadow: none;
}

.upload-card h3 {
  margin: 0;
  color: #25324a;
  font-size: 16px;
}

.upload-card .upload-kicker {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.drop-zone {
  min-height: 144px;
  display: grid;
  place-items: center;
  margin: 18px 0;
  padding: 20px;
  color: #667085;
  background: #fafbfe;
  border: 1.5px dashed #cbd5e3;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border .15s ease, background .15s ease, transform .15s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
  background: #f2f6ff;
  border-color: #7ca2ff;
  transform: translateY(-1px);
}

.drop-zone.uploading {
  pointer-events: none;
  opacity: .7;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
  font-size: 20px;
}

.drop-zone strong {
  display: block;
  margin-bottom: 5px;
  color: #344054;
  font-size: 12px;
}

.drop-zone small {
  font-size: 10px;
}

.upload-help {
  color: #7b8494;
  font-size: 10px;
  line-height: 1.6;
}

.upload-result {
  margin-top: 9px;
  padding: 9px 11px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 8px;
  font-size: 11px;
}

.formula-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: #4d5f78;
  background: #f6f8fc;
  border: 1px solid #e4e9f1;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.65;
}

.formula {
  padding: 5px 9px;
  color: #304d7e;
  background: #e9f0fb;
  border-radius: 7px;
  font-family: Consolas, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 23, 43, .53);
  backdrop-filter: blur(3px);
  animation: fade-in .16s ease;
}

.modal {
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: white;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: modal-in .18s ease;
}

.modal.wide {
  width: min(690px, 100%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  color: #25324a;
  font-size: 17px;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.modal-close {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  color: #667085;
  background: #f2f4f7;
  border-radius: 8px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 14px;
  padding: 20px 21px;
}

.modal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.modal-field textarea {
  min-height: 88px;
  resize: vertical;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 21px;
  background: #fafbfc;
  border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475467;
  font-size: 11px;
}

.switch-line input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.toast {
  position: fixed;
  z-index: 150;
  right: 24px;
  top: 78px;
  max-width: 380px;
  padding: 11px 15px;
  color: #fff;
  background: #22304a;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(22, 32, 51, .22);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #ad2f3d;
}

.toast.success {
  background: #137651;
}

.muted {
  color: var(--muted);
}

.subtle {
  color: var(--subtle);
}

.text-risk {
  color: var(--red);
}

.text-good {
  color: var(--green);
}

.nowrap {
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

/* Executive dashboard: concise automatic interpretation and richer KPI hierarchy. */
.executive-insight {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(360px, 1.15fr) minmax(190px, .48fr);
  gap: 22px;
  align-items: center;
  min-height: 220px;
  margin: 0 0 18px;
  padding: 25px 27px;
  overflow: hidden;
  color: #dce8fb;
  background:
    linear-gradient(118deg, rgba(8, 24, 49, .98), rgba(18, 48, 91, .97) 54%, rgba(25, 64, 99, .96));
  border: 1px solid rgba(118, 164, 230, .22);
  border-radius: 22px;
  box-shadow: 0 24px 58px rgba(15, 35, 70, .19), inset 0 1px rgba(255, 255, 255, .08);
  animation: dashboard-rise .5s cubic-bezier(.2, .78, .26, 1) both;
}

.executive-insight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.insight-aurora {
  position: absolute;
  z-index: -1;
  width: 480px;
  height: 330px;
  right: -110px;
  top: -170px;
  background: radial-gradient(ellipse, rgba(36, 207, 187, .27), rgba(48, 105, 255, .12) 42%, transparent 72%);
  filter: blur(8px);
  transform: rotate(-12deg);
  animation: aurora-drift 8s ease-in-out infinite alternate;
}

.insight-lead {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  min-width: 0;
}

.insight-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #bafaf0;
  background: linear-gradient(145deg, rgba(37, 205, 184, .26), rgba(44, 117, 255, .26));
  border: 1px solid rgba(155, 225, 241, .24);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(5, 17, 39, .24), inset 0 1px rgba(255, 255, 255, .11);
  font-size: 18px;
  font-weight: 850;
}

.insight-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9fb8dc;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .07em;
}

.insight-kicker i {
  width: 7px;
  height: 7px;
  background: #41dfbf;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(65, 223, 191, .11), 0 0 17px rgba(65, 223, 191, .55);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.insight-lead h2 {
  max-width: 520px;
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(20px, 1.6vw, 27px);
  line-height: 1.38;
  letter-spacing: -.025em;
}

.insight-lead p {
  max-width: 490px;
  margin: 0;
  color: #9fb2cf;
  font-size: 11px;
  line-height: 1.65;
}

.insight-context {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.insight-context span {
  padding: 5px 8px;
  color: #c8d8ef;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 99px;
  font-size: 9px;
  white-space: nowrap;
}

.insight-points {
  display: grid;
  gap: 7px;
}

.insight-center {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.insight-point {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.insight-point > span {
  color: #68dbc7;
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.insight-point p {
  margin: 0;
  color: #d4e0f1;
  font-size: 10px;
  line-height: 1.52;
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.insight-actions > span {
  margin-right: 2px;
  color: #74dbc8;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.insight-actions p {
  margin: 0;
  padding: 5px 8px;
  color: #c8d9ef;
  background: rgba(35, 118, 177, .18);
  border: 1px solid rgba(112, 183, 221, .13);
  border-radius: 7px;
  font-size: 9px;
  line-height: 1.4;
}

.insight-data-note {
  grid-column: 1 / -1;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding-top: 11px;
  color: #8ea8ca;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 9px;
  line-height: 1.5;
}

.insight-data-note strong {
  flex: 0 0 auto;
  color: #b9cbe2;
}

.insight-health {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, .10);
  text-align: center;
}

.health-ring,
.kpi-ring {
  --ring-color: #42d8bf;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--ring, 0%), rgba(255, 255, 255, .11) 0);
}

.health-ring {
  width: 94px;
  height: 94px;
  box-shadow: 0 0 35px rgba(66, 216, 191, .14);
}

.health-ring::after,
.kpi-ring::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: inherit;
}

.health-ring::after {
  inset: 7px;
  background: #17365d;
  box-shadow: inset 0 0 16px rgba(3, 15, 35, .25);
}

.health-ring strong,
.health-ring small {
  position: relative;
  z-index: 1;
}

.health-ring strong {
  margin-top: 8px;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.health-ring small {
  margin-top: -13px;
  color: #8daacb;
  font-size: 8px;
}

.insight-health > div:last-child > span,
.insight-health > div:last-child > strong,
.insight-health > div:last-child > small {
  display: block;
}

.insight-health > div:last-child > span {
  color: #86a2c5;
  font-size: 9px;
}

.insight-health > div:last-child > strong {
  margin: 4px 0 3px;
  color: #f4f8ff;
  font-size: 14px;
}

.insight-health > div:last-child > small {
  max-width: 150px;
  color: #7893b6;
  font-size: 8px;
  line-height: 1.4;
}

.kpi-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 53px;
  margin-top: 12px;
}

.kpi-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 6px;
  padding: 2px 7px;
  color: var(--kpi-color, var(--primary));
  background: color-mix(in srgb, var(--kpi-accent, var(--primary-soft)) 78%, white);
  border: 1px solid color-mix(in srgb, var(--kpi-color, var(--primary)) 11%, transparent);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 720;
}

.kpi-ring {
  --ring-color: var(--kpi-color, var(--primary));
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  background: conic-gradient(var(--ring-color) var(--ring, 0%), #edf1f6 0);
}

.kpi-ring::after {
  inset: 5px;
  background: #fff;
}

.kpi-ring span {
  position: relative;
  z-index: 1;
  color: #4a5a70;
  font-size: 9px;
  font-weight: 780;
}

.kpi-meter {
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  background: #edf1f6;
  border-radius: 99px;
}

.kpi-meter i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--kpi-color, var(--primary)), color-mix(in srgb, var(--kpi-color, var(--primary)) 55%, white));
  border-radius: inherit;
  box-shadow: 0 0 12px color-mix(in srgb, var(--kpi-color, var(--primary)) 32%, transparent);
  animation: meter-grow .65s cubic-bezier(.2, .78, .26, 1) both;
}

.kpi-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.kpi-segments > span {
  display: grid;
  gap: 1px;
  padding: 5px 7px;
  background: #f6f8fb;
  border-radius: 8px;
}

.kpi-segments small {
  color: #8a95a6;
  font-size: 8px;
}

.kpi-segments strong {
  color: #3d4a5f;
  font-size: 11px;
}

.kpi-segments .pending strong { color: var(--amber); }
.kpi-segments .confirmed strong { color: var(--red); }
.kpi-segments .dismissed strong { color: var(--green); }

.req-unavailable {
  min-height: 24px;
  display: flex;
  align-items: center;
  margin-top: 9px;
  padding: 4px 8px;
  color: #778296;
  background: repeating-linear-gradient(-45deg, #f5f7fa, #f5f7fa 5px, #fafbfc 5px, #fafbfc 10px);
  border: 1px dashed #d9dfe9;
  border-radius: 7px;
  font-size: 9px;
}

.requirement-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.requirement-card:hover {
  border-color: #d3deef;
  box-shadow: 0 11px 25px rgba(34, 56, 90, .075);
  transform: translateY(-2px);
}

.kpi-grid .kpi-card:nth-child(2) { animation-delay: .04s; }
.kpi-grid .kpi-card:nth-child(3) { animation-delay: .08s; }
.kpi-grid .kpi-card:nth-child(4) { animation-delay: .12s; }
.kpi-grid .kpi-card:nth-child(5) { animation-delay: .16s; }
.kpi-grid .kpi-card:nth-child(6) { animation-delay: .2s; }
.kpi-grid .kpi-card {
  animation: dashboard-rise .48s cubic-bezier(.2, .78, .26, 1) both;
}

@keyframes dashboard-rise {
  from { opacity: 0; transform: translateY(11px); }
}

@keyframes meter-grow {
  from { width: 0; }
}

@keyframes pulse-dot {
  50% { opacity: .55; transform: scale(.82); }
}

@keyframes aurora-drift {
  to { transform: translate(-34px, 22px) rotate(-5deg) scale(1.08); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
}

@media (max-width: 1320px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .requirement-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .executive-insight {
    grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.15fr);
  }

  .insight-health {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    justify-content: start;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
    text-align: left;
  }

  .health-ring {
    width: 70px;
    height: 70px;
  }

  .health-ring strong { font-size: 20px; }
  .insight-health > div:last-child > small { max-width: 420px; }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    width: 76px;
    padding-inline: 9px;
  }

  .brand {
    justify-content: center;
    padding-inline: 0;
  }

  .brand > div,
  .nav-item:not(.active)::after,
  .nav-item {
    font-size: 0;
  }

  .brand-mark {
    width: 39px;
  }

  .nav-item {
    justify-content: center;
    padding: 11px 6px;
  }

  .nav-item span {
    font-size: 16px;
  }

  .sidebar-foot > div:not(.user-avatar) {
    display: none;
  }

  .sidebar-foot {
    justify-content: center;
  }

  .main-area {
    grid-column: 2;
  }

  .split-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

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

  .insight-health {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    width: 244px;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar .brand > div,
  .sidebar .nav-item {
    font-size: 14px;
  }

  .sidebar .nav-item {
    justify-content: flex-start;
    padding: 11px 12px;
  }

  .sidebar-foot > div:not(.user-avatar) {
    display: block;
  }

  .main-area {
    min-height: 100vh;
  }

  .mobile-menu {
    display: inline-block;
  }

  .topbar {
    height: auto;
    min-height: 64px;
    padding: 10px 15px;
  }

  .period-picker span,
  .top-actions button {
    display: none;
  }

  .content {
    padding: 20px 14px 42px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-head h1 {
    font-size: 21px;
  }

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

  .executive-insight {
    gap: 17px;
    padding: 20px 17px;
    border-radius: 18px;
  }

  .insight-lead {
    gap: 11px;
  }

  .insight-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
  }

  .insight-lead h2 {
    margin-top: 8px;
    font-size: 19px;
  }

  .insight-points { order: 0; }
  .insight-actions { order: 1; }

  .insight-health {
    order: 3;
  }

  .kpi-card {
    min-height: 170px;
    padding: 16px;
  }

  .kpi-value {
    font-size: 27px;
  }

  .toolbar,
  .toolbar-group {
    align-items: stretch;
    flex-direction: column;
  }

  .search-input,
  .filter-select {
    width: 100%;
  }

  .modal-row {
    grid-template-columns: 1fr;
  }

  .notice.portable::after {
    display: none;
  }
}

@media (max-width: 440px) {
  .summary-grid,
  .requirement-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .kpi-card {
    min-height: 164px;
    padding: 14px 13px;
    border-radius: 14px;
  }

  .kpi-top {
    font-size: 11px;
  }

  .kpi-icon {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }

  .kpi-value {
    font-size: 24px;
  }

  .kpi-foot {
    font-size: 9px;
  }

  .kpi-ring {
    width: 46px;
    height: 46px;
  }

  .kpi-segments {
    gap: 3px;
  }

  .kpi-segments > span {
    padding: 4px;
  }

  .kpi-segments small {
    font-size: 7px;
  }

  .insight-context span {
    white-space: normal;
  }

  .topbar {
    gap: 8px;
  }

  .period-picker input {
    width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .toolbar,
  button {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .main-area {
    display: block;
  }

  .content {
    max-width: none;
    padding: 0;
  }

  .card,
  .kpi-card {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Professional management-system theme: restrained, readable and action-led. */
body {
  background: #f4f6f9;
}

.topbar {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 #e6eaf0;
}

.card,
.kpi-card {
  border-color: #e2e7ee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(24, 39, 64, .055);
}

.executive-insight {
  grid-template-columns: minmax(280px, .95fr) minmax(360px, 1.25fr) minmax(160px, .42fr);
  min-height: 0;
  gap: 18px;
  padding: 20px 22px;
  color: #27364a;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-top: 3px solid #3d6fd4;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(24, 39, 64, .07);
  animation: none;
}

.executive-insight.tone-warn { border-top-color: #d79827; }
.executive-insight.tone-risk { border-top-color: #cf4c57; }
.executive-insight.tone-good { border-top-color: #2c9176; }

.executive-insight::before,
.insight-aurora {
  display: none;
}

.insight-mark {
  width: 40px;
  height: 40px;
  color: #2d5eb9;
  background: #edf3ff;
  border: 1px solid #d5e1f6;
  border-radius: 9px;
  box-shadow: none;
  font-size: 15px;
}

.insight-kicker {
  color: #587193;
  font-size: 10px;
  letter-spacing: .04em;
}

.insight-kicker i {
  background: #3d6fd4;
  box-shadow: none;
  animation: none;
}

.insight-lead h2 {
  margin: 8px 0 6px;
  color: #17243a;
  font-size: clamp(19px, 1.4vw, 23px);
}

.insight-lead p {
  color: #65748a;
  font-size: 11px;
  line-height: 1.6;
}

.insight-context {
  margin-top: 11px;
}

.insight-context span {
  color: #5f6d81;
  background: #f5f7fa;
  border-color: #e4e8ef;
}

.insight-point {
  padding: 8px 10px;
  background: #f7f9fc;
  border-color: #e6eaf0;
  border-radius: 8px;
  backdrop-filter: none;
}

.insight-point > span {
  color: #3565c1;
}

.insight-point p {
  color: #35445a;
  font-size: 10px;
}

.insight-actions > span {
  color: #3d6fd4;
}

.insight-actions p {
  color: #44536a;
  background: #eef3fb;
  border-color: #dce6f5;
  border-radius: 6px;
}

.insight-health {
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: 10px;
  padding: 0 0 0 18px;
  border-left: 1px solid #e5e9ef;
  text-align: left;
}

.management-status,
.management-metric {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  background: #f7f9fc;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
}

.management-status span,
.management-metric span,
.management-metric small {
  color: #748196;
  font-size: 9px;
}

.management-status strong {
  color: #b27018;
  font-size: 14px;
}

.tone-risk .management-status strong { color: #bd3f4b; }
.tone-good .management-status strong { color: #267c68; }

.executive-insight .insight-health > .management-metric > strong {
  color: #1e2c43;
  font-size: 21px;
  line-height: 1.2;
}

.insight-data-note {
  padding-top: 10px;
  color: #6f7c8e;
  border-top-color: #e5e9ef;
}

.insight-data-note strong {
  color: #4e5d72;
}

.kpi-card {
  background: #fff;
  animation: none !important;
}

.kpi-card::after {
  display: none;
}

.kpi-card::before {
  height: 3px;
  background: var(--kpi-color, var(--primary));
  opacity: .82;
}

.kpi-card:hover,
.requirement-card:hover {
  border-color: #d8dee7;
  box-shadow: 0 4px 12px rgba(24, 39, 64, .07);
  transform: none;
}

.kpi-icon {
  border-radius: 8px;
  box-shadow: none;
}

.requirement-card {
  border-radius: 10px;
}

@media (max-width: 1320px) {
  .executive-insight {
    grid-template-columns: minmax(260px, .9fr) minmax(360px, 1.2fr);
  }

  .insight-health {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 0 0;
    border-top: 1px solid #e5e9ef;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .executive-insight {
    gap: 14px;
    padding: 17px;
    border-radius: 11px;
  }

  .insight-health {
    grid-template-columns: 1fr 1fr;
  }

  .insight-data-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .executive-insight,
  .kpi-card {
    animation: none !important;
  }
}

/* Executive note v2: one conclusion, three metrics, two actions. */
.executive-insight {
  --insight-accent: #b87514;
  display: block;
  min-height: 0;
  padding: 24px 28px 18px;
  color: #223047;
  background: #fff;
  border: 1px solid #dfe5ed;
  border-left: 4px solid var(--insight-accent);
  border-top-width: 1px;
  border-radius: 14px;
  box-shadow: 0 7px 24px rgba(24, 39, 64, .055);
}

.executive-insight.tone-good { --insight-accent: #27816d; }
.executive-insight.tone-risk { --insight-accent: #bd4651; }
.executive-insight.tone-info { --insight-accent: #4773c7; }

.insight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 34px;
}

.executive-insight .insight-lead {
  flex: 1 1 auto;
  max-width: 900px;
  gap: 13px;
}

.executive-insight .insight-mark {
  width: 38px;
  height: 38px;
  color: var(--insight-accent);
  background: color-mix(in srgb, var(--insight-accent) 8%, white);
  border-color: color-mix(in srgb, var(--insight-accent) 20%, white);
}

.executive-insight .insight-kicker {
  color: #6b7b91;
  font-size: 10px;
  letter-spacing: .06em;
}

.executive-insight .insight-kicker i {
  background: var(--insight-accent);
}

.executive-insight .insight-lead h2 {
  margin: 7px 0 5px;
  color: #17243a;
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.3;
}

.executive-insight .insight-lead p {
  color: #68778b;
  font-size: 11px;
  line-height: 1.55;
}

.executive-insight .insight-context {
  gap: 0;
  margin-top: 9px;
}

.executive-insight .insight-context span {
  position: relative;
  padding: 0 12px 0 0;
  color: #7b889a;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 9px;
}

.executive-insight .insight-context span + span {
  padding-left: 12px;
}

.executive-insight .insight-context span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  background: #b6c0ce;
  border-radius: 50%;
  transform: translateY(-50%);
}

.insight-verdict {
  flex: 0 0 220px;
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid #e5e9ef;
  border-radius: 10px;
}

.insight-verdict span,
.insight-verdict strong,
.insight-verdict small {
  display: block;
}

.insight-verdict span {
  color: #7a8799;
  font-size: 9px;
}

.insight-verdict strong {
  margin: 4px 0 3px;
  color: var(--insight-accent);
  font-size: 18px;
  line-height: 1.25;
}

.insight-verdict small {
  color: #6c798c;
  font-size: 9px;
  line-height: 1.45;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid #e7ebf0;
  border-bottom: 1px solid #e7ebf0;
}

.insight-metrics article {
  min-width: 0;
  padding: 0 22px;
}

.insight-metrics article:first-child { padding-left: 0; }
.insight-metrics article + article { border-left: 1px solid #e7ebf0; }

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

.insight-metrics span {
  color: #718096;
  font-size: 10px;
}

.insight-metrics strong {
  margin: 4px 0 2px;
  color: #1c2c45;
  font-size: 23px;
  line-height: 1.1;
}

.insight-metrics small {
  color: #7a8798;
  font-size: 9px;
}

.insight-actions-compact {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 15px;
}

.insight-actions-compact > span {
  padding-top: 5px;
  color: var(--insight-accent);
  font-size: 10px;
  font-weight: 800;
}

.insight-actions-compact ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: action;
}

.insight-actions-compact li {
  position: relative;
  min-width: 0;
  padding-left: 25px;
  color: #46566d;
  font-size: 10px;
  line-height: 1.55;
  counter-increment: action;
}

.insight-actions-compact li::before {
  content: counter(action);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--insight-accent);
  background: color-mix(in srgb, var(--insight-accent) 8%, white);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.executive-insight .insight-data-note {
  display: block;
  margin-top: 12px;
  padding: 0;
  color: #778496;
  border: 0;
  font-size: 9px;
}

.executive-insight .insight-data-note summary {
  width: max-content;
  cursor: pointer;
  color: #738196;
  font-weight: 700;
}

.executive-insight .insight-data-note p {
  margin: 8px 0 0;
  padding: 9px 11px;
  background: #f7f8fa;
  border-radius: 7px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .insight-top { gap: 20px; }
  .insight-verdict { flex-basis: 190px; }
}

@media (max-width: 760px) {
  .executive-insight {
    padding: 18px 17px 15px;
  }

  .insight-top {
    display: grid;
    gap: 14px;
  }

  .insight-verdict {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
  }

  .insight-verdict strong { margin: 0; }
  .insight-verdict small { grid-column: 1 / -1; }

  .insight-metrics {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 0;
  }

  .insight-metrics article,
  .insight-metrics article:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 0;
  }

  .insight-metrics article + article {
    border-top: 1px solid #edf0f4;
    border-left: 0;
  }

  .insight-metrics strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 20px;
  }

  .insight-actions-compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .insight-actions-compact ol { grid-template-columns: 1fr; }

  .executive-insight .insight-data-note { display: block; }
}
