
/* ============================================================
   LTC ENJOY LEARNING — ENTERPRISE DESIGN SYSTEM V2
   ============================================================ */

:root {
  /* Brand */
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  --teal-50: #ecfeff;
  --teal-100: #cffafe;
  --teal-500: #06b6d4;
  --teal-600: #0891b2;
  --teal-700: #0e7490;

  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --emerald-500: #10b981;
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --red-600: #dc2626;

  /* Neutral */
  --ink-950: #071426;
  --ink-900: #0b1f3a;
  --ink-800: #132b4d;
  --ink-700: #274260;
  --ink-600: #46627e;
  --ink-500: #6b8198;
  --ink-400: #9aabbb;
  --ink-300: #c7d1dc;
  --ink-200: #dfe6ee;
  --ink-100: #edf2f7;
  --ink-50: #f7f9fc;
  --white: #ffffff;

  /* Semantic */
  --surface: #ffffff;
  --surface-soft: #f7faff;
  --surface-muted: #eef4fb;
  --surface-elevated: rgba(255,255,255,.86);
  --text: var(--ink-900);
  --text-soft: var(--ink-600);
  --text-faint: var(--ink-500);
  --border: #dbe5f0;
  --border-strong: #c8d6e5;
  --focus: rgba(37,99,235,.24);
  --overlay: rgba(7,20,38,.68);
  --page: #f4f8fd;

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16,38,68,.05);
  --shadow-sm: 0 8px 22px rgba(20,53,92,.08);
  --shadow-md: 0 18px 48px rgba(20,53,92,.12);
  --shadow-lg: 0 30px 80px rgba(20,53,92,.18);

  /* Typography */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Aptos Display", Inter, ui-sans-serif, system-ui, sans-serif;

  /* Motion */
  --ease-standard: cubic-bezier(.2,.8,.2,1);
  --duration-fast: 140ms;
  --duration-normal: 220ms;
  --duration-slow: 420ms;

  /* Layout */
  --sidebar-width: 292px;
  --topbar-height: 82px;
  --content-max: 1480px;
}

html[data-theme="dark"] {
  --surface: #0d1b2e;
  --surface-soft: #101f34;
  --surface-muted: #14263e;
  --surface-elevated: rgba(13,27,46,.9);
  --text: #f7fbff;
  --text-soft: #b7c6d7;
  --text-faint: #8fa2b7;
  --border: #273a53;
  --border-strong: #3b506a;
  --focus: rgba(96,165,250,.28);
  --overlay: rgba(2,9,18,.78);
  --page: #081321;
  --ink-950: #f7fbff;
  --ink-900: #eff6ff;
  --ink-800: #d7e3ef;
  --ink-700: #c4d2e2;
  --ink-600: #a9bbce;
  --ink-500: #8ea2b7;
  --ink-100: #15263d;
  --ink-50: #0b1728;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow-sm: 0 8px 22px rgba(0,0,0,.26);
  --shadow-md: 0 18px 48px rgba(0,0,0,.32);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 12% -5%, rgba(59,130,246,.08), transparent 30%),
    radial-gradient(circle at 95% 2%, rgba(6,182,212,.08), transparent 26%),
    var(--page);
  color: var(--text);
  transition: background var(--duration-normal) var(--ease-standard), color var(--duration-normal) var(--ease-standard);
}

::selection { background: var(--brand-200); color: var(--ink-950); }
img { max-width: 100%; }
a, button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-weight: 850; }
h2 { font-weight: 790; }
h3 { font-weight: 740; }
p { color: var(--text-soft); }

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--brand-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* App shell */
.app-shell {
  min-height: 100vh;
  background: transparent;
}
.app-sidebar {
  width: var(--sidebar-width);
  border-right: 1px solid rgba(255,255,255,.07);
  box-shadow: 10px 0 32px rgba(6,20,38,.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,.16), transparent 27%),
    linear-gradient(180deg, #0a2346 0%, #0b1d38 60%, #07172d 100%);
}
.app-main {
  margin-left: var(--sidebar-width);
  padding: 30px;
}
.app-topbar {
  min-height: var(--topbar-height);
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}
.app-topbar h1 {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  margin: 0;
}
.app-topbar .muted {
  color: var(--text-faint);
}

/* Sidebar */
.app-brand {
  gap: 12px;
  color: #fff;
}
.app-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.side-nav {
  display: grid;
  gap: 5px;
}
.side-nav button {
  position: relative;
  min-height: 46px;
  border-radius: 13px;
  color: #c7d7e9;
  transition: transform var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}
.side-nav button:hover {
  transform: translateX(3px);
  color: #fff;
  background: rgba(255,255,255,.075);
}
.side-nav button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59,130,246,.36), rgba(6,182,212,.18));
  box-shadow: inset 0 0 0 1px rgba(147,197,253,.15), 0 8px 22px rgba(0,0,0,.12);
}
.side-nav button.active::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(180deg, #60a5fa, #22d3ee);
}
.nav-label {
  padding: 18px 12px 7px;
  color: rgba(200,220,240,.55);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Surfaces */
.surface,
.card,
.feature-card,
.course-card,
.metric,
.price-card,
.loginbox,
.dialog-card,
.certificate-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-standard),
              box-shadow var(--duration-normal) var(--ease-standard),
              border-color var(--duration-normal) var(--ease-standard),
              background var(--duration-normal) var(--ease-standard);
}
.surface,
.card,
.feature-card,
.metric,
.price-card,
.certificate-card {
  border-radius: var(--radius-lg);
}
.surface:hover,
.feature-card:hover,
.course-card:hover {
  border-color: color-mix(in srgb, var(--brand-500) 28%, var(--border));
}
.feature-card:hover,
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.metric-grid {
  gap: 16px;
}
.metric {
  position: relative;
  overflow: hidden;
  padding: 22px;
}
.metric::after {
  content: "";
  position: absolute;
  width: 95px;
  height: 95px;
  right: -28px;
  top: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%);
}
.metric-label {
  color: var(--text-faint);
  font-weight: 700;
}
.metric-value {
  color: var(--text);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 850;
  letter-spacing: -.04em;
}
.metric-trend {
  color: var(--emerald-500);
  font-weight: 700;
}

/* Buttons */
.btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 760;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  box-shadow: 0 10px 22px rgba(37,99,235,.24);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
  box-shadow: 0 14px 30px rgba(37,99,235,.3);
}
.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--brand-300);
  background: var(--surface-soft);
}
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), #ef4444);
}
.btn-icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.btn-ghost {
  color: var(--text-soft);
  background: transparent;
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-muted);
}

/* Forms */
.field label {
  color: var(--text);
  font-size: .84rem;
  font-weight: 760;
}
.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--focus);
  background: var(--surface);
  outline: none;
}

/* Tables */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: auto;
  background: var(--surface);
}
.data-table {
  border-collapse: separate;
  border-spacing: 0;
}
.data-table th {
  color: var(--text-faint);
  background: var(--surface-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
}
.data-table tbody tr {
  transition: background var(--duration-fast);
}
.data-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand-50) 58%, var(--surface));
}
html[data-theme="dark"] .data-table tbody tr:hover {
  background: rgba(59,130,246,.08);
}

/* Badges */
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--brand-500) 22%, var(--border));
  background: color-mix(in srgb, var(--brand-50) 78%, var(--surface));
  color: var(--brand-700);
  font-size: .72rem;
  font-weight: 800;
}
html[data-theme="dark"] .badge,
html[data-theme="dark"] .pill {
  background: rgba(59,130,246,.12);
  color: #bfdbfe;
}
.badge.success { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.badge.warning { color: #b54708; background: #fffaeb; border-color: #fedf89; }
.badge.danger { color: #b42318; background: #fef3f2; border-color: #fecdca; }

/* Alerts / status */
.status-message {
  border-radius: 12px;
}
.status-message.show {
  animation: slideDown var(--duration-normal) var(--ease-standard);
}
.status-message.success {
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}
.status-message.error {
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
}
.status-message.warning {
  color: #b54708;
  background: #fffaeb;
  border: 1px solid #fedf89;
}

/* Dialog */
.dialog {
  backdrop-filter: blur(10px);
}
.dialog-backdrop {
  background: var(--overlay);
}
.dialog-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: dialogEnter var(--duration-normal) var(--ease-standard);
}

/* Theme controls */
.design-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle,
.notification-button {
  position: relative;
}
.notification-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  top: 8px;
  right: 8px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 3px var(--surface);
}
.notification-panel {
  position: fixed;
  right: 28px;
  top: 98px;
  z-index: 250;
  width: min(390px, calc(100vw - 32px));
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  animation: popIn var(--duration-normal) var(--ease-standard);
}
.notification-panel[hidden] { display: none; }
.notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 12px;
}
.notification-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
}
.notification-item:hover { background: var(--surface-soft); }
.notification-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-50);
}

/* Skeleton loaders */
.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 18px;
  border-radius: 8px;
  background: var(--surface-muted);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 1.45s infinite;
}

/* Course cards */
.course-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.course-media {
  min-height: 152px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.25), transparent 35%),
    linear-gradient(135deg, var(--brand-600), var(--teal-600));
}
.course-body {
  background: var(--surface);
}

/* Progress */
.progress {
  overflow: hidden;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--surface-muted);
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-600), var(--teal-500));
  transition: width var(--duration-slow) var(--ease-standard);
}

/* Public header */
.site-header {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.site-nav {
  min-height: 88px;
}
.site-nav .brand img {
  filter: drop-shadow(0 10px 18px rgba(28,65,110,.12));
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 700;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-600);
}

/* Motion */
@keyframes dialogEnter {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}

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

/* Responsive */
@media (max-width: 1100px) {
  :root { --sidebar-width: 248px; }
  .app-main { padding: 22px; }
}
@media (max-width: 820px) {
  :root { --sidebar-width: 0px; }
  .app-sidebar {
    width: min(320px, 88vw);
    transform: translateX(-105%);
    transition: transform var(--duration-normal) var(--ease-standard);
    z-index: 300;
  }
  body.nav-open .app-sidebar { transform: translateX(0); }
  .app-main {
    margin-left: 0;
    padding: 16px;
  }
  .app-topbar {
    border-radius: var(--radius-md);
    min-height: 70px;
  }
  .mobile-app-menu { display: inline-grid !important; }
}
@media (max-width: 560px) {
  .app-main { padding: 10px; }
  .surface, .feature-card, .metric { border-radius: var(--radius-md); }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .design-toolbar .toolbar-label { display: none; }
  .notification-panel { right: 12px; top: 82px; }
}

/* ============================================================
   EXECUTIVE DASHBOARD LAYOUT — STEP 2.1
   ============================================================ */
.executive-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 22px;
  min-height:96px;
}
.topbar-identity { display:flex;align-items:center;gap:14px;min-width:0; }
.page-eyebrow,.section-overline {
  color:var(--text-faint);
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.topbar-identity h1 { margin:2px 0 1px;font-size:clamp(1.75rem,2.3vw,2.5rem); }
.topbar-identity p { margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px; }
.executive-actions { display:flex;align-items:center;gap:9px;flex-shrink:0; }
.executive-avatar {
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  color:#fff;font-weight:850;background:linear-gradient(135deg,var(--brand-500),var(--teal-500));
  box-shadow:0 9px 22px rgba(37,99,235,.2);
}
.executive-mobile-menu { display:none; }
.executive-dashboard { max-width:var(--content-max);margin:0 auto; }
.dashboard-welcome {
  display:flex;align-items:flex-end;justify-content:space-between;gap:22px;
  margin:4px 0 22px;padding:4px 2px;
}
.dashboard-welcome h2 { font-size:clamp(2rem,3.5vw,3.25rem);margin:11px 0 6px; }
.dashboard-welcome p { margin:0;font-size:1rem; }
.dashboard-date {
  display:flex;flex-direction:column;align-items:flex-end;gap:3px;
  color:var(--text-faint);font-size:.8rem;
}
.dashboard-date strong { color:var(--text);font-size:1rem; }

.executive-metrics {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
.executive-metric {
  position:relative;min-height:160px;overflow:hidden;
  display:grid;grid-template-columns:auto 1fr;align-items:start;gap:14px;
  padding:22px;border:1px solid var(--border);border-radius:var(--radius-lg);
  background:var(--surface);box-shadow:var(--shadow-sm);
}
.executive-metric::before {
  content:"";position:absolute;right:-35px;top:-38px;width:130px;height:130px;border-radius:50%;
  background:radial-gradient(circle,rgba(59,130,246,.13),transparent 70%);
}
.metric-icon {
  width:44px;height:44px;display:grid;place-items:center;border-radius:14px;
  background:var(--brand-50);color:var(--brand-700);font-weight:900;font-size:1.05rem;
}
html[data-theme="dark"] .metric-icon { background:rgba(59,130,246,.15);color:#bfdbfe; }
.metric-copy { min-width:0; }
.metric-copy>span { display:block;color:var(--text-faint);font-size:.78rem;font-weight:760;margin-bottom:7px; }
.metric-copy>strong { display:block;color:var(--text);font-size:2.45rem;line-height:1;letter-spacing:-.05em; }
.metric-copy>small { display:block;color:var(--text-soft);margin-top:9px;line-height:1.35; }
.metric-spark { position:absolute;right:18px;bottom:19px;display:flex;align-items:end;gap:4px;height:36px; }
.metric-spark i { width:5px;border-radius:6px;background:linear-gradient(var(--brand-400),var(--teal-500)); }
.metric-spark i:nth-child(1){height:35%}.metric-spark i:nth-child(2){height:55%}.metric-spark i:nth-child(3){height:45%}.metric-spark i:nth-child(4){height:76%}.metric-spark i:nth-child(5){height:100%}
.metric-ring {
  position:absolute;right:18px;bottom:18px;width:58px;height:58px;border-radius:50%;
  display:grid;place-items:center;background:conic-gradient(var(--emerald-500) var(--active-rate,0%),var(--surface-muted) 0);
}
.metric-ring::before { content:"";position:absolute;inset:6px;border-radius:50%;background:var(--surface); }
.metric-ring span { position:relative;z-index:1;font-size:.72rem;font-weight:850; }
.mini-progress { position:absolute;left:22px;right:22px;bottom:18px;height:7px;border-radius:999px;background:var(--surface-muted);overflow:hidden; }
.mini-progress span { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-500),var(--teal-500)); }
.database-status { font-size:1.25rem!important;display:flex!important;align-items:center;gap:8px;margin-top:8px;letter-spacing:-.02em!important; }
.database-status b { width:10px;height:10px;border-radius:50%;background:var(--emerald-500);box-shadow:0 0 0 5px rgba(16,185,129,.12); }
.live-pulse {
  position:absolute;right:18px;bottom:18px;padding:5px 9px;border-radius:999px;
  color:#067647;background:#ecfdf3;font-size:.7rem;font-weight:850;text-transform:uppercase;
}

.executive-grid {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(320px,.85fr);
  gap:18px;
  align-items:stretch;
}
.executive-grid>.surface { padding:24px; }
.department-card { min-height:390px; }
.department-bars { display:grid;gap:17px;margin-top:24px; }
.department-bar-row {
  display:grid;grid-template-columns:minmax(100px,145px) 1fr 46px;align-items:center;gap:13px;
}
.department-bar-label { min-width:0; }
.department-bar-label strong { display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.86rem; }
.department-bar-label span { color:var(--text-faint);font-size:.7rem; }
.department-track { height:11px;border-radius:999px;background:var(--surface-muted);overflow:hidden; }
.department-track i { display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-500),var(--teal-500));transition:width .5s var(--ease-standard); }
.department-percent { text-align:right;font-size:.82rem;font-weight:850;color:var(--text); }

.angelo-insight-card {
  background:
    radial-gradient(circle at 100% 0%,rgba(139,92,246,.16),transparent 34%),
    linear-gradient(150deg,var(--surface),color-mix(in srgb,var(--surface) 88%,var(--violet-500)));
}
.angelo-card-head { display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:13px; }
.angelo-card-head img { width:54px;height:54px;border-radius:17px;object-fit:cover;border:2px solid var(--surface);box-shadow:var(--shadow-sm); }
.angelo-card-head h2 { margin:3px 0 0; }
.ai-status { color:#067647;background:#ecfdf3;border:1px solid #abefc6;padding:5px 9px;border-radius:999px;font-size:.68rem;font-weight:850; }
.angelo-greeting { margin:20px 0;line-height:1.65; }
.insight-list { display:grid;gap:10px;margin-bottom:19px; }
.insight-row { display:grid;grid-template-columns:36px 1fr;align-items:center;gap:10px;padding:11px;border:1px solid var(--border);border-radius:13px;background:color-mix(in srgb,var(--surface) 78%,transparent); }
.insight-row>span { width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--brand-50);color:var(--brand-700);font-weight:900; }
.insight-row.warning>span { background:#fffaeb;color:#b54708; }
.insight-row.success>span { background:#ecfdf3;color:#067647; }
.insight-row strong,.insight-row small { display:block; }
.insight-row small { color:var(--text-faint);margin-top:3px;line-height:1.3; }

.activity-timeline-card { min-height:360px; }
.executive-timeline { position:relative;display:grid;gap:0;margin-top:8px; }
.timeline-entry { display:grid;grid-template-columns:58px 30px 1fr;gap:9px;min-height:70px; }
.timeline-time { color:var(--text-faint);font-size:.7rem;padding-top:5px;text-align:right; }
.timeline-marker { position:relative;display:flex;justify-content:center; }
.timeline-marker::after { content:"";position:absolute;top:25px;bottom:-4px;width:1px;background:var(--border); }
.timeline-entry:last-child .timeline-marker::after { display:none; }
.timeline-dot { position:relative;z-index:1;width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:var(--brand-50);color:var(--brand-700);font-size:.75rem; }
.timeline-content strong { display:block;font-size:.86rem; }
.timeline-content p { margin:4px 0 0;font-size:.78rem;line-height:1.4; }

.readiness-card { min-height:360px; }
.readiness-score { display:grid;grid-template-columns:145px 1fr;align-items:center;gap:22px;margin:28px 0; }
.readiness-ring {
  --score:0deg;width:142px;height:142px;border-radius:50%;display:grid;place-items:center;position:relative;
  background:conic-gradient(var(--emerald-500) var(--score),var(--surface-muted) 0);
}
.readiness-ring::before { content:"";position:absolute;inset:12px;border-radius:50%;background:var(--surface); }
.readiness-ring strong,.readiness-ring span { position:absolute;z-index:1; }
.readiness-ring strong { font-size:2rem;transform:translateY(-8px); }
.readiness-ring span { color:var(--text-faint);font-size:.7rem;transform:translateY(22px);text-transform:uppercase;font-weight:800;letter-spacing:.08em; }
.readiness-copy h3 { margin:0 0 8px;font-size:1.25rem; }
.readiness-copy p { margin:0;line-height:1.55; }
.readiness-stats { display:grid;grid-template-columns:repeat(3,1fr);gap:8px; }
.readiness-stats>div { padding:12px;border-radius:12px;background:var(--surface-soft); }
.readiness-stats span,.readiness-stats strong { display:block; }
.readiness-stats span { color:var(--text-faint);font-size:.68rem; }
.readiness-stats strong { margin-top:4px;font-size:1.15rem; }

.dashboard-empty {
  padding:40px 18px;text-align:center;color:var(--text-faint);border:1px dashed var(--border);border-radius:14px;
}

@media(max-width:1200px){
  .executive-metrics{grid-template-columns:repeat(2,1fr)}
  .executive-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
  .executive-topbar{min-height:auto;padding:14px}
  .executive-mobile-menu{display:inline-grid}
  .executive-secondary-action span,.executive-primary-action span{display:none}
  .executive-secondary-action,.executive-primary-action{width:44px;padding:0;display:grid;place-items:center}
  .dashboard-welcome{align-items:flex-start}
}
@media(max-width:620px){
  .executive-actions{gap:4px}
  .executive-notification{display:none}
  .executive-metrics{grid-template-columns:1fr}
  .dashboard-welcome{display:block}
  .dashboard-date{align-items:flex-start;margin-top:12px}
  .readiness-score{grid-template-columns:1fr;justify-items:center;text-align:center}
  .department-bar-row{grid-template-columns:100px 1fr 40px}
}
