@import url("https://api.fontshare.com/v2/css?f[]=satoshi@700,900&display=swap");
@import url("https://rsms.me/inter/inter.css");

:root {
  --ev-shell-topbar-height: 64px;
  --ev-shell-sidebar-width: 248px;
  --ev-shell-sidebar-collapsed-width: 72px;
  --ev-shell-content-max-width: 1600px;
  --ev-shell-bg: #f8fafc;
  --ev-shell-surface: #ffffff;
  --ev-shell-border: #d9e0e7;
  --ev-shell-text: #0f172a;
  --ev-shell-muted: #64748b;
  --ev-shell-sidebar: #0f172a;
  --ev-shell-sidebar-hover: #1e293b;
  --ev-shell-sidebar-text: #dce7ef;
  --ev-shell-accent: #0ea5e9;
  --ev-shell-accent-soft: #e0f2fe;
  --ev-shell-focus: #0ea5e9;
  --ev-brand-cta: #f97316;
  --ev-shell-font-display: "Satoshi", "Segoe UI", Arial, sans-serif;
  --ev-shell-font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --ev-shell-radius: 8px;
  --ev-shell-shadow: 0 8px 24px rgb(20 34 53 / 10%);
  --ev-ui-card-shadow: 0 2px 8px rgb(15 23 42 / 6%);
  --ev-ui-card-shadow-hover: 0 10px 24px rgb(15 23 42 / 9%);
  --ev-ui-soft-surface: #f3f8fc;
  --ev-ui-muted-surface: #eef4f8;
  --ev-ui-success: #16a34a;
  --ev-ui-warning: #f59e0b;
  --ev-ui-danger: #ef4444;
}

body.ev-shell-active {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-width: 320px;
  overflow: hidden;
  background: var(--ev-shell-bg);
  color: var(--ev-shell-text);
  font-family: var(--ev-shell-font-body);
}

body.ev-shell-active > .topbar {
  display: none !important;
}

body.ev-shell-active #case-library-module > .hero,
body.ev-shell-active #case-management-module > .hero {
  display: none;
}

.ev-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--ev-shell-sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--ev-shell-topbar-height) minmax(0, 1fr);
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  background: var(--ev-shell-bg);
  color: var(--ev-shell-text);
  font-family: var(--ev-shell-font-body);
  font-size: 14px;
  line-height: 1.4;
}

.ev-shell,
.ev-shell * {
  box-sizing: border-box;
}

.ev-shell button,
.ev-shell a {
  font-family: var(--ev-shell-font-body);
  letter-spacing: 0;
}

.ev-shell.ev-shell--collapsed {
  grid-template-columns: var(--ev-shell-sidebar-collapsed-width) minmax(0, 1fr);
}

.ev-shell__sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ev-shell-sidebar);
  color: var(--ev-shell-sidebar-text);
}

.ev-shell__brand {
  height: var(--ev-shell-topbar-height);
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ev-shell-border);
  background: #f8fafc;
  text-decoration: none;
  white-space: nowrap;
}

.ev-shell__brand-mark {
  position: relative;
  width: 190px;
  height: var(--ev-shell-topbar-height);
  display: block;
  overflow: hidden;
}

.ev-shell__brand-image {
  position: absolute;
  height: auto;
  max-width: none;
  display: block;
}

.ev-shell__brand-image--full {
  top: 1px;
  left: 10px;
  width: 176px;
}

.ev-shell__brand-image--compact {
  display: none;
  top: -13px;
  left: -9px;
  width: 90px;
}

.ev-shell__nav {
  flex: 1;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 10px 20px;
  scrollbar-width: thin;
}

.ev-shell__nav-group + .ev-shell__nav-group {
  margin-top: 24px;
}

.ev-shell .ev-shell__nav-group {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.ev-shell__nav-heading {
  width: calc(100% - 20px);
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 10px 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #92a8b8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.ev-shell__nav-heading::after {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translate(-2px, -1px);
  transition: transform 160ms ease;
}

.ev-shell__nav-heading[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.ev-shell__nav-heading:hover {
  color: #dce7ef;
}

.ev-shell__nav-group-items {
  display: grid;
  gap: 3px;
}

.ev-shell__nav-group-items[hidden] {
  display: none;
}

.ev-shell .ev-shell__nav-item {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ev-shell-sidebar-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none;
}

.ev-shell .ev-shell__nav-item:hover {
  background: var(--ev-shell-sidebar-hover);
  color: #ffffff;
}

.ev-shell .ev-shell__nav-item.is-active {
  background: #ffffff;
  color: var(--ev-shell-sidebar);
}

.ev-shell .ev-shell__nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--ev-shell-accent);
}

.ev-shell .ev-shell__nav-item:disabled,
.ev-shell .ev-shell__nav-item[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.ev-shell__nav-icon,
.ev-shell__button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ev-shell__sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.ev-shell__topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  z-index: 30;
  min-width: 0;
  height: var(--ev-shell-topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ev-shell-border);
  background: rgb(255 255 255 / 96%);
  box-sizing: border-box;
}

.ev-shell__menu-button,
.ev-shell__icon-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ev-shell-text);
  cursor: pointer;
}

.ev-shell__menu-button:hover,
.ev-shell__icon-button:hover {
  border-color: var(--ev-shell-border);
  background: #eef2f5;
}

.ev-shell__title-block {
  min-width: 0;
  flex: 1;
}

.ev-shell__title {
  margin: 0 !important;
  overflow: hidden;
  color: var(--ev-shell-text) !important;
  font-size: 18px !important;
  font-family: var(--ev-shell-font-display) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-shell__subtitle {
  margin: 2px 0 0 !important;
  overflow: hidden;
  color: var(--ev-shell-muted) !important;
  font-size: 12px !important;
  font-family: var(--ev-shell-font-body) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-shell__area {
  padding: 5px 8px;
  border: 1px solid var(--ev-shell-border);
  border-radius: 5px;
  color: var(--ev-shell-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ev-shell__profile {
  position: relative;
}

.ev-shell__profile-trigger {
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ev-shell-text);
  cursor: pointer;
}

.ev-shell__profile-trigger:hover,
.ev-shell__profile-trigger[aria-expanded="true"] {
  border-color: var(--ev-shell-border);
  background: #f3f6f8;
}

.ev-shell__avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ev-shell-accent-soft);
  color: #0e657b;
  font-size: 12px;
  font-weight: 800;
}

.ev-shell__profile-copy {
  max-width: 180px;
  min-width: 0;
  display: grid;
  text-align: left;
}

.ev-shell__profile-name,
.ev-shell__profile-role {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ev-shell__profile-name {
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}

.ev-shell__profile-role {
  color: var(--ev-shell-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.ev-shell__profile-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 60;
  width: 220px;
  padding: 6px;
  border: 1px solid var(--ev-shell-border);
  border-radius: var(--ev-shell-radius);
  background: var(--ev-shell-surface);
  box-shadow: var(--ev-shell-shadow);
}

.ev-shell__profile-menu[hidden] {
  display: none;
}

.ev-shell__context-section {
  padding: 6px 8px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ev-shell-border);
}

.ev-shell__context-section[hidden] {
  display: none;
}

.ev-shell__context-label {
  display: grid;
  gap: 6px;
  color: var(--ev-shell-muted);
  font-size: 11px;
  font-weight: 700;
}

.ev-shell__context-select {
  width: 100%;
  min-height: 38px;
  padding: 7px 30px 7px 8px;
  border: 1px solid var(--ev-shell-border);
  border-radius: 5px;
  background: var(--ev-shell-surface);
  color: var(--ev-shell-text);
  font: inherit;
  font-size: 12px;
}

.ev-shell__profile-action {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ev-shell-text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.ev-shell__profile-action:hover {
  background: #eef2f5;
}

.ev-shell__main {
  grid-area: main;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ev-shell__content {
  width: min(100%, var(--ev-shell-content-max-width));
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
}

.ev-shell__backdrop {
  display: none;
}

.ev-shell--collapsed .ev-shell__brand {
  justify-content: center;
  padding: 0;
}

.ev-shell--collapsed .ev-shell__brand-mark {
  width: var(--ev-shell-sidebar-collapsed-width);
}

.ev-shell--collapsed .ev-shell__brand-image--full {
  display: none;
}

.ev-shell--collapsed .ev-shell__brand-image--compact {
  display: block;
}

.ev-shell--collapsed .ev-shell__nav-heading,
.ev-shell--collapsed .ev-shell__nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ev-shell--collapsed .ev-shell__nav-item {
  justify-content: center;
  padding-inline: 0;
}

.ev-shell--collapsed .ev-shell__nav-item.is-active::before {
  top: 7px;
  bottom: 7px;
}

.ev-shell :focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ev-shell-focus) 72%, white);
  outline-offset: 2px;
}

body.ev-shell-embedded #evinext-shell-root {
  display: none;
}

@media (max-width: 960px) {
  .ev-shell,
  .ev-shell.ev-shell--collapsed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--ev-shell-topbar-height) minmax(0, 1fr);
    grid-template-areas:
      "topbar"
      "main";
  }

  .ev-shell__sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(84vw, var(--ev-shell-sidebar-width));
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--ev-shell-shadow);
  }

  .ev-shell.ev-shell--mobile-open .ev-shell__sidebar {
    transform: translateX(0);
  }

  .ev-shell__backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    border: 0;
    background: rgb(7 18 28 / 58%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .ev-shell.ev-shell--mobile-open .ev-shell__backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .ev-shell__topbar {
    padding: 0 12px;
  }

  .ev-shell__main {
    padding: 16px;
  }

  .ev-shell__area,
  .ev-shell__profile-copy {
    display: none;
  }

  .ev-shell--collapsed .ev-shell__brand-mark {
    width: 190px;
  }

  .ev-shell--collapsed .ev-shell__brand-image--full {
    display: block;
  }

  .ev-shell--collapsed .ev-shell__brand-image--compact {
    display: none;
  }

  .ev-shell--collapsed .ev-shell__nav-heading,
  .ev-shell--collapsed .ev-shell__nav-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
  }

  .ev-shell--collapsed .ev-shell__nav-heading {
    display: flex;
    width: calc(100% - 20px);
  }

  .ev-shell--collapsed .ev-shell__nav-item {
    justify-content: flex-start;
    padding-inline: 12px;
  }
}

.ev-shell h1,
.ev-shell h2 {
  font-family: var(--ev-shell-font-display);
  letter-spacing: 0;
}

body.ev-shell-active input,
body.ev-shell-active select,
body.ev-shell-active textarea {
  border-color: var(--ev-shell-border);
  border-radius: var(--ev-shell-radius);
  color: var(--ev-shell-text);
  font-family: var(--ev-shell-font-body);
}

body.ev-shell-active input:focus,
body.ev-shell-active select:focus,
body.ev-shell-active textarea:focus {
  border-color: var(--ev-shell-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev-shell-accent) 16%, transparent);
  outline: none;
}

body.ev-shell-active #assessment-view .detail-panel,
body.ev-shell-active #cadastro-view .detail-panel,
body.ev-shell-active #case-library-module .panel,
body.ev-shell-active #case-management-module .panel,
body.ev-shell-active #simulator-module .panel,
body.ev-shell-active #simulator-module .simulation-hero {
  border: 1px solid var(--ev-shell-border);
  border-radius: var(--ev-shell-radius);
  background: var(--ev-shell-surface);
  box-shadow: var(--ev-ui-card-shadow);
}

body.ev-shell-active #assessment-view .detail-panel header,
body.ev-shell-active #cadastro-view .detail-panel header,
body.ev-shell-active #case-management-module .panel header {
  border-bottom-color: var(--ev-shell-border);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ev-shell-accent) 8%, transparent), transparent 70%),
    var(--ev-shell-surface);
}

body.ev-shell-active #assessment-view .detail-panel h3,
body.ev-shell-active #cadastro-view .detail-panel h3,
body.ev-shell-active #case-management-module .panel h2,
body.ev-shell-active #case-library-module .panel h2 {
  color: var(--ev-shell-text);
  font-family: var(--ev-shell-font-display);
  letter-spacing: 0;
}

body.ev-shell-active #assessment-view label,
body.ev-shell-active #cadastro-view label,
body.ev-shell-active #case-library-module label,
body.ev-shell-active #case-management-module label {
  color: var(--ev-shell-text);
  font-size: 12px;
  font-weight: 750;
}

body.ev-shell-active #assessment-view .button-primary,
body.ev-shell-active #cadastro-view .button-primary,
body.ev-shell-active #case-management-module #save-case:not([disabled]),
body.ev-shell-active #case-management-module #new-case:not([disabled]) {
  background: var(--ev-shell-text);
  color: #ffffff;
}

body.ev-shell-active #assessment-view .button-primary:hover,
body.ev-shell-active #cadastro-view .button-primary:hover,
body.ev-shell-active #case-management-module #save-case:not([disabled]):hover,
body.ev-shell-active #case-management-module #new-case:not([disabled]):hover {
  background: #020617;
}

body.ev-shell-active #case-library-module button:not(.secondary):not([disabled]) {
  background: var(--ev-shell-text);
  color: #ffffff;
}

body.ev-shell-active #case-library-module button:not(.secondary):not([disabled]):hover {
  background: #020617;
}

body.ev-shell-active #assessment-view .button-secondary,
body.ev-shell-active #cadastro-view .button-secondary,
body.ev-shell-active #case-management-module button.secondary,
body.ev-shell-active #case-library-module button.secondary {
  border-color: var(--ev-shell-border);
  background: #ffffff;
  color: var(--ev-shell-text);
}

body.ev-shell-active #assessment-view .button-secondary:hover,
body.ev-shell-active #cadastro-view .button-secondary:hover,
body.ev-shell-active #case-management-module button.secondary:hover,
body.ev-shell-active #case-library-module button.secondary:hover {
  border-color: color-mix(in srgb, var(--ev-shell-accent) 45%, var(--ev-shell-border));
  background: var(--ev-shell-bg);
}

body.ev-shell-active #case-library-module .specialty-banner,
body.ev-shell-active #case-management-module .assistant-panel,
body.ev-shell-active #simulator-module .simulation-card-head,
body.ev-shell-active #simulator-module .patient-chart header {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ev-shell-accent) 9%, transparent), transparent 72%),
    var(--ev-shell-bg);
  color: var(--ev-shell-text);
}

body.ev-shell-active #case-library-module .specialty-banner {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
}

body.ev-shell-active #case-library-module .specialty-banner strong,
body.ev-shell-active #case-library-module .specialty-banner span {
  color: var(--ev-shell-text);
}

body.ev-shell-active #case-library-module .specialty-banner span {
  color: var(--ev-shell-muted);
}

body.ev-shell-active .tag,
body.ev-shell-active .badge {
  border-radius: 999px;
  letter-spacing: 0;
}

/* Shared internal UI kit for coordinator surfaces. */
body.ev-shell-active .ev-card,
body.ev-shell-active .ev-kpi,
body.ev-shell-active .ev-empty-state,
body.ev-shell-active .dashboard-shell.active,
body.ev-shell-active .competency-dashboard-shell,
body.ev-shell-active .competency-toolbar,
body.ev-shell-active .competency-domain-card,
body.ev-shell-active .competency-detail-section,
body.ev-shell-active .competency-table-shell,
body.ev-shell-active .competency-detail-summary,
body.ev-shell-active .competency-evidence-composition-panel,
body.ev-shell-active .assessment-summary-card,
body.ev-shell-active #case-library-module .case-row,
body.ev-shell-active #case-management-module .section,
body.ev-shell-active #case-management-module .editor-summary,
body.ev-shell-active #case-management-module .nested-section,
body.ev-shell-active #case-management-module .education-section-item,
body.ev-shell-active #case-management-module .intervention-row,
body.ev-shell-active #case-management-module .epa-item,
body.ev-shell-active #case-management-module .rubric-overview-card,
body.ev-shell-active #case-management-module .version-item,
body.ev-shell-active #simulator-module .simulation-card,
body.ev-shell-active #simulator-module .patient-chart {
  border: 1px solid var(--ev-shell-border);
  border-radius: var(--ev-shell-radius);
  background: var(--ev-shell-surface);
  box-shadow: var(--ev-ui-card-shadow);
}

body.ev-shell-active .ev-card:hover,
body.ev-shell-active .competency-domain-card:hover,
body.ev-shell-active .assessment-summary-card:hover,
body.ev-shell-active #case-library-module .case-row:hover,
body.ev-shell-active #case-library-module .case-row:focus-visible {
  border-color: color-mix(in srgb, var(--ev-shell-accent) 35%, var(--ev-shell-border));
  background: #ffffff;
  box-shadow: var(--ev-ui-card-shadow-hover);
}

body.ev-shell-active .dashboard-shell.active,
body.ev-shell-active .dashboard-shell.active.fit-mode {
  padding: 12px;
  background: var(--ev-shell-surface);
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .analytics-hero {
  border-bottom-color: var(--ev-shell-border);
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .analytics-hero h2,
body.ev-shell-active .dashboard-shell.active .analytics-hero p,
body.ev-shell-active .dashboard-shell.active .analytics-hero .eyebrow,
body.ev-shell-active .dashboard-shell.active .filters label,
body.ev-shell-active .dashboard-shell.active .muted {
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .analytics-hero p,
body.ev-shell-active .dashboard-shell.active .muted {
  color: var(--ev-shell-muted);
}

body.ev-shell-active .dashboard-shell.active .filters select,
body.ev-shell-active .dashboard-shell.active .filters input {
  border-color: var(--ev-shell-border);
  background: #ffffff;
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .metric,
body.ev-shell-active .dashboard-shell.active .soft-status-cards .metric,
body.ev-shell-active .compact-metrics .metric,
body.ev-shell-active #simulator-module .metric {
  border: 1px solid var(--ev-shell-border);
  border-radius: var(--ev-shell-radius);
  background: #ffffff;
  color: var(--ev-shell-text);
  box-shadow: none;
}

body.ev-shell-active .dashboard-shell.active .metric span,
body.ev-shell-active .dashboard-shell.active .soft-status-cards .metric span,
body.ev-shell-active .compact-metrics .metric span,
body.ev-shell-active #simulator-module .metric span {
  color: var(--ev-shell-muted);
}

body.ev-shell-active .dashboard-shell.active .metric strong,
body.ev-shell-active .dashboard-shell.active .soft-status-cards .metric strong,
body.ev-shell-active .compact-metrics .metric strong,
body.ev-shell-active #simulator-module .metric strong {
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .panel,
body.ev-shell-active .dashboard-shell.active .light-card-surface .analytics-card,
body.ev-shell-active .dashboard-shell.active .soft-status-cards .analytics-card,
body.ev-shell-active .light-card-surface .analytics-card,
body.ev-shell-active .soft-status-cards .analytics-card {
  border: 1px solid var(--ev-shell-border);
  border-radius: var(--ev-shell-radius);
  background: #ffffff;
  color: var(--ev-shell-text);
  box-shadow: var(--ev-ui-card-shadow);
}

body.ev-shell-active .dashboard-shell.active .panel header,
body.ev-shell-active #assessment-view .detail-panel header,
body.ev-shell-active #cadastro-view .detail-panel header,
body.ev-shell-active #case-library-module .specialty-banner,
body.ev-shell-active #case-management-module .panel header,
body.ev-shell-active #case-management-module .assistant-panel,
body.ev-shell-active #simulator-module .simulation-card-head,
body.ev-shell-active #simulator-module .patient-chart header {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ev-shell-accent) 8%, transparent), transparent 74%),
    var(--ev-shell-bg);
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .panel header,
body.ev-shell-active #case-library-module .specialty-banner {
  border-bottom: 1px solid var(--ev-shell-border);
}

body.ev-shell-active .dashboard-shell.active .analytics-card .card-copy strong,
body.ev-shell-active .dashboard-shell.active .analytics-card .card-copy span,
body.ev-shell-active .dashboard-shell.active .analytics-card .card-meta,
body.ev-shell-active .dashboard-shell.active .analytics-card .score-label,
body.ev-shell-active .dashboard-shell.active .analytics-card .mini-metric span,
body.ev-shell-active .dashboard-shell.active .analytics-card .mini-metric strong {
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .analytics-card .card-copy span,
body.ev-shell-active .dashboard-shell.active .analytics-card .mini-metric span {
  color: var(--ev-shell-muted);
}

body.ev-shell-active .dashboard-shell.active .analytics-card .score-main {
  color: var(--ev-shell-text);
}

body.ev-shell-active .dashboard-shell.active .analytics-card.selected,
body.ev-shell-active .light-card-surface .analytics-card.selected,
body.ev-shell-active .soft-status-cards .analytics-card.selected,
body.ev-shell-active .competency-domain-card.active {
  border-color: var(--ev-shell-accent);
  background: #f0f9ff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ev-shell-accent) 38%, transparent);
}

body.ev-shell-active .ev-button-primary,
body.ev-shell-active .button-primary,
body.ev-shell-active #assessment-view .button-primary,
body.ev-shell-active #cadastro-view .button-primary,
body.ev-shell-active #case-library-module button:not(.secondary):not([disabled]),
body.ev-shell-active #case-management-module #save-case:not([disabled]),
body.ev-shell-active #case-management-module #new-case:not([disabled]) {
  border: 1px solid var(--ev-shell-text);
  background: var(--ev-shell-text);
  color: #ffffff;
}

body.ev-shell-active .ev-button-primary:hover,
body.ev-shell-active .button-primary:hover,
body.ev-shell-active #assessment-view .button-primary:hover,
body.ev-shell-active #cadastro-view .button-primary:hover,
body.ev-shell-active #case-library-module button:not(.secondary):not([disabled]):hover,
body.ev-shell-active #case-management-module #save-case:not([disabled]):hover,
body.ev-shell-active #case-management-module #new-case:not([disabled]):hover {
  border-color: #020617;
  background: #020617;
  color: #ffffff;
}

body.ev-shell-active .ev-button-secondary,
body.ev-shell-active .button-secondary,
body.ev-shell-active button.secondary,
body.ev-shell-active #case-library-module button.secondary,
body.ev-shell-active #case-management-module button.secondary {
  border: 1px solid var(--ev-shell-border);
  background: #ffffff;
  color: var(--ev-shell-text);
}

body.ev-shell-active .ev-button-secondary:hover,
body.ev-shell-active .button-secondary:hover,
body.ev-shell-active button.secondary:hover,
body.ev-shell-active #case-library-module button.secondary:hover,
body.ev-shell-active #case-management-module button.secondary:hover {
  border-color: color-mix(in srgb, var(--ev-shell-accent) 45%, var(--ev-shell-border));
  background: var(--ev-shell-bg);
  color: var(--ev-shell-text);
}

body.ev-shell-active .analytics-product-tabs,
body.ev-shell-active .competency-reference-tabs,
body.ev-shell-active .competency-lens-tabs,
body.ev-shell-active .overview-tabs,
body.ev-shell-active .report-tabs,
body.ev-shell-active #case-management-module .editor-nav {
  border: 1px solid var(--ev-shell-border);
  border-radius: var(--ev-shell-radius);
  background: var(--ev-ui-muted-surface);
  padding: 3px;
  gap: 3px;
}

body.ev-shell-active .analytics-product-tabs button,
body.ev-shell-active .competency-reference-tabs button,
body.ev-shell-active .competency-lens-tabs button,
body.ev-shell-active .overview-tabs button,
body.ev-shell-active .report-tabs button,
body.ev-shell-active #case-management-module .editor-nav button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  box-shadow: none;
}

body.ev-shell-active .analytics-product-tabs button.active,
body.ev-shell-active .competency-reference-tabs button.active,
body.ev-shell-active .competency-lens-tabs button.active,
body.ev-shell-active .overview-tabs button.active,
body.ev-shell-active .report-tabs button.active,
body.ev-shell-active #case-management-module .editor-nav button.active {
  border-color: var(--ev-shell-border);
  background: #ffffff;
  color: var(--ev-shell-text);
  box-shadow: 0 1px 4px rgb(15 23 42 / 8%);
}

body.ev-shell-active #simulator-module .report-tabs {
  gap: 4px;
  border-color: var(--ev-shell-border);
  background: #eaf6fd;
}

body.ev-shell-active #simulator-module .report-tabs button {
  color: #475569;
  font-weight: 800;
}

body.ev-shell-active #simulator-module .report-tabs button.active {
  border-color: #bae6fd;
  background: #ffffff;
  color: var(--ev-shell-text);
  box-shadow: 0 1px 4px rgb(15 23 42 / 12%);
}

body.ev-shell-active .filter-panel,
body.ev-shell-active .competency-filter-grid,
body.ev-shell-active #case-library-module aside.panel,
body.ev-shell-active #case-management-module aside.panel {
  background: #ffffff;
}

body.ev-shell-active #case-library-module .case-list {
  background: #ffffff;
}

body.ev-shell-active #case-library-module .case-row {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  padding: 14px 16px;
  border: 1px solid var(--ev-shell-border);
  background: #ffffff;
}

body.ev-shell-active #case-library-module button.case-row:not(.secondary):not([disabled]) {
  border: 1px solid var(--ev-shell-border);
  background: #ffffff;
  color: var(--ev-shell-text);
}

body.ev-shell-active #case-library-module .case-row:hover,
body.ev-shell-active #case-library-module .case-row:focus-visible {
  border-color: #bae6fd;
  background: #f8fafc;
}

body.ev-shell-active #case-library-module button.case-row:not(.secondary):not([disabled]):hover,
body.ev-shell-active #case-library-module button.case-row:not(.secondary):not([disabled]):focus-visible {
  border-color: #bae6fd;
  background: #f8fafc;
  color: var(--ev-shell-text);
}

body.ev-shell-active #case-library-module .case-row h3,
body.ev-shell-active #case-library-module .case-row strong,
body.ev-shell-active #case-library-module .case-row a {
  color: var(--ev-shell-text);
}

body.ev-shell-active #case-library-module .case-row a {
  color: #0369a1;
  font-weight: 750;
}

body.ev-shell-active #case-library-module .tag.difficulty,
body.ev-shell-active .score-label.attention,
body.ev-shell-active .status-badge.warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

body.ev-shell-active #case-library-module .tag.setting,
body.ev-shell-active #case-library-module .tag.specialty,
body.ev-shell-active .status-badge.info,
body.ev-shell-active .ev-status-badge {
  border-color: #bae6fd;
  background: #e0f2fe;
  color: #075985;
}

body.ev-shell-active .status-badge.success,
body.ev-shell-active .published-badge {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

body.ev-shell-active #import-preview-content.empty-state,
body.ev-shell-active #import-history.empty-state,
body.ev-shell-active .ev-empty-state {
  border: 1px dashed color-mix(in srgb, var(--ev-shell-border) 80%, var(--ev-shell-muted));
  background: #ffffff;
  color: var(--ev-shell-muted);
}

@media (max-width: 560px) {
  .ev-shell__subtitle {
    display: none;
  }

  .ev-shell__title {
    font-size: 16px;
  }

  .ev-shell__main {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-shell__sidebar,
  .ev-shell__backdrop {
    transition: none;
  }
}
