/* AI Skills Navigator — Reporting prototype
   Standalone app-chrome styles. This recreates a Microsoft Fluent 2 (Segoe UI)
   product surface — cream app background + left rail — rather than the
   portfolio's marketing-site page chrome, which is why it is deliberately
   independent from style.css. Design values below (colors, type, radii) are
   taken 1:1 from the source Figma file's design tokens. */

:root {
  --asn-bg: #fefbf4;
  --asn-white: #ffffff;
  --asn-ink: #242424;
  /* ColorNeutralForeground1 */
  --asn-ink-soft: #424242;
  /* ColorNeutralForeground2 */
  --asn-ink-faint: #6a7282;
  /* muted caption gray used on KPI/stat captions */
  --asn-label-gray: #4a5565;
  /* KPI card label gray */
  --asn-value-ink: #0a0a0a;
  /* KPI/stat value near-black */
  --asn-row-title-ink: #180a1c;
  /* playlist row title ink (Text/Primary) */
  --asn-border: #d1d1d1;
  /* NeutralStroke1.Rest */
  --asn-border-soft: #ece6d9;
  --asn-purple: #70579c;
  --asn-purple-dark: #5e4682;
  --asn-active-row: rgba(255, 255, 255, 0.8);
  /* ColorNeutralBackgroundAlpha2 */
  --asn-wordmark-ink: #4c4642;
  /* foreground/ctrl/neutral/secondary/rest */
  --asn-green-bg: rgba(212, 236, 142, 0.2);
  --asn-tan-bg: #faf6f0;
  /* surface/default/surface-earth-light */
  --asn-radius-card: 24px;
  --asn-radius-kpi: 14px;
  --asn-radius-btn: 4px;
  /* corner-radius / Global.Corner.Radius.40 */
  --asn-radius-btn-sm: 12px;
  /* corner/ctrl-sm/rest, used by small outline buttons (Export as CSV) */
  --asn-shadow-card: 0px 2px 8px 0px rgba(0, 30, 68, 0.06);
  --asn-shadow-kpi: 0px 1px 1.5px rgba(0, 0, 0, 0.1), 0px 1px 1px rgba(0, 0, 0, 0.1);
  --asn-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--asn-font);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--asn-bg);
  color: var(--asn-ink);
  font-family: var(--asn-font);
  -webkit-font-smoothing: antialiased;
}

.asn-back-link {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--asn-white);
  border: 1px solid var(--asn-border);
  color: var(--asn-ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--asn-shadow-card);
}

.asn-back-link:hover {
  background: #f7f3ea;
}

/* ---------- App shell ---------- */
.asn-app {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.asn-sidebar {
  width: 276px;
  flex: 0 0 276px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px 26px;
}

.asn-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.asn-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.asn-wordmark {
  font-size: 18px;
  font-weight: 600;
  color: var(--asn-wordmark-ink);
  letter-spacing: 0;
}

.asn-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--asn-ink);
  cursor: pointer;
}

.asn-collapse-btn:hover {
  background: var(--asn-active-row);
}

.asn-collapse-btn svg {
  width: 20px;
  height: 20px;
}

.asn-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asn-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: var(--asn-ink-soft);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.asn-nav-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 4px;
  width: 4px;
  height: 20px;
}

.asn-nav-indicator span {
  display: block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--asn-ink);
  opacity: 0;
}

.asn-nav-content {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 16px;
  min-width: 0;
  padding: 10px;
  border-radius: 4px;
}

.asn-nav-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.asn-nav-item:hover .asn-nav-content {
  background: var(--asn-active-row);
}

.asn-nav-item.is-active {
  color: var(--asn-ink);
  font-weight: 600;
}

.asn-nav-item.is-active .asn-nav-content {
  background: var(--asn-active-row);
}

.asn-nav-item.is-active .asn-nav-indicator span {
  opacity: 1;
}

.asn-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.asn-help {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  color: var(--asn-ink-soft);
  font-size: 14px;
}

.asn-help svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.asn-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--asn-ink-soft);
}

.asn-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: 0 0 20px;
  object-fit: cover;
  display: block;
}

/* ---------- Main content ---------- */
.asn-main {
  flex: 1 1 auto;
  padding: 50px 50px 80px;
  min-width: 0;
}

.asn-screen {
  max-width: 1120px;
}

.asn-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.asn-page-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.28px;
  color: #000000;
}

/* ---------- Buttons ---------- */
.asn-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--asn-radius-btn);
  border: 1px solid var(--asn-border);
  background: var(--asn-white);
  color: var(--asn-ink);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.asn-btn-outline:hover {
  background: #f5f5f5;
}

.asn-btn-outline:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Small outline button (e.g. per-row "Export as CSV") — distinct token set
   from .asn-btn-outline: corner/ctrl-sm/rest radius + onOutline stroke. */
.asn-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--asn-radius-btn-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0);
  color: #272320;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.05s ease;
}

.asn-btn-outline-sm:hover {
  background: rgba(0, 0, 0, 0.04);
}

.asn-btn-outline-sm:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.asn-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 10px;
  border: none;
  background: var(--asn-purple);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}

.asn-btn-primary:hover {
  background: var(--asn-purple-dark);
}

.asn-btn-primary:active {
  transform: translateY(1px);
}

/* ---------- Export CSV button animation ---------- */
.asn-export-spinner,
.asn-export-check {
  width: 15px;
  height: 15px;
  display: none;
  flex: 0 0 auto;
  color: #fff;
}

.asn-btn-primary.is-exporting .asn-export-spinner {
  display: block;
  margin-right: 8px;
  animation: asn-export-spin 0.7s linear infinite;
}

.asn-btn-primary.is-exported .asn-export-check {
  display: block;
  margin-right: 8px;
  animation: asn-export-pop 0.3s ease;
}

.asn-btn-primary.is-exporting,
.asn-btn-primary.is-exported {
  cursor: default;
}

@keyframes asn-export-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes asn-export-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.asn-link-btn {
  border: none;
  background: none;
  color: #0f6cbd;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.asn-link-btn:hover {
  color: #0b5a9e;
}

/* ---------- Cards ---------- */
.asn-card {
  background: var(--asn-white);
  border-radius: var(--asn-radius-card);
  box-shadow: var(--asn-shadow-card);
}

.asn-empty-card {
  margin-top: 8px;
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.asn-empty-icon {
  width: 128px;
  height: 128px;
  margin-bottom: 0;
  object-fit: contain;
}

.asn-empty-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--asn-ink);
}

.asn-empty-card p {
  margin: 8px 0 0;
  max-width: 480px;
  color: var(--asn-ink-soft);
  font-size: 14px;
  line-height: 20px;
}

/* Certifications tab reuses .asn-empty-card with a slightly larger
   heading and body copy. */
.asn-tab-panel[data-panel="certifications"] .asn-empty-card h2 {
  font-size: 23px;
  line-height: 30px;
}

.asn-tab-panel[data-panel="certifications"] .asn-empty-card p {
  max-width: 480px;
  font-size: 16px;
  line-height: 24px;
  margin-top: -8px;
}

/* ---------- KPI cards ---------- */
.asn-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.asn-kpi-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: var(--asn-radius-kpi);
  box-shadow: var(--asn-shadow-kpi);
}

.asn-kpi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.asn-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--asn-label-gray);
}

.asn-kpi-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.asn-kpi-icon svg {
  width: 100%;
  height: 100%;
}

.asn-kpi-value {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.07px;
  color: var(--asn-value-ink);
}

.asn-kpi-caption {
  margin-top: 4px;
  font-size: 12px;
  color: var(--asn-ink-faint);
}

/* ---------- Search ---------- */
.asn-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.asn-search {
  position: relative;
  width: 237px;
  max-width: 100%;
}

.asn-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
}

.asn-search input {
  width: 100%;
  min-height: 40px;
  padding: 10px 16px 10px 38px;
  border-radius: var(--asn-radius-btn-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.05);
  color: var(--asn-ink);
  font-size: 14px;
  font-family: inherit;
}

.asn-search input::placeholder {
  color: var(--asn-ink-faint);
}

.asn-search input:focus {
  outline: 2px solid var(--asn-purple);
  outline-offset: 1px;
}

/* ---------- Playlist rows ---------- */
.asn-playlist-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.asn-playlist-row {
  background: var(--asn-white);
  border-radius: var(--asn-radius-card);
  box-shadow: var(--asn-shadow-card);
  padding: 12px 0 12px 16px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.asn-playlist-row.is-hidden {
  display: none;
}

.asn-playlist-title-wrap {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asn-playlist-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--asn-row-title-ink);
}

.asn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  height: 28px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #000;
}

.asn-badge svg {
  width: 16px;
  height: 16px;
}

.asn-badge.is-active {
  background: var(--asn-green-bg);
}

.asn-badge.is-completed {
  background: var(--asn-tan-bg);
}

.asn-playlist-stats {
  display: flex;
  gap: 25px;
  flex: 2 1 420px;
}

.asn-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 110px;
}

.asn-stat-value {
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.asn-stat-caption {
  font-size: 12px;
  color: var(--asn-ink-faint);
  line-height: 1.3;
}

.asn-playlist-row .asn-btn-outline-sm {
  margin: 16px 16px 16px auto;
  flex-shrink: 0;
}

/* ---------- Tabs ---------- */
.asn-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--asn-border-soft);
  margin-bottom: 26px;
}

.asn-tab {
  position: relative;
  padding: 12px 10px;
  border: none;
  background: none;
  color: var(--asn-ink-soft);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.asn-tab.is-active {
  color: var(--asn-ink);
  font-weight: 600;
}

.asn-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 3px;
  border-radius: 9999px;
  background: #3f3682;
}

.asn-tab-panel {
  display: none;
}

.asn-tab-panel.is-active {
  display: block;
}

/* ---------- Segmented toggle ---------- */
.asn-toggle-group {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.asn-toggle {
  height: 32px;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: none;
  color: var(--asn-ink-soft);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.asn-toggle.is-active {
  border-color: #70579c;
  color: #3f3682;
  font-weight: 600;
  background: rgba(112, 87, 156, 0.1);
}

.asn-toggle-panel {
  display: none;
}

.asn-toggle-panel.is-active {
  display: block;
}

/* ---------- Date range ---------- */
.asn-field-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--asn-ink);
  margin-bottom: 8px;
}

.asn-daterange {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 9px 14px 10px 38px;
  border-radius: var(--asn-radius-btn);
  border: 1px solid var(--asn-border);
  background: var(--asn-white);
  color: var(--asn-ink-faint);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 26px;
}

.asn-daterange::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #616161;
}

.asn-daterange svg {
  width: 18px;
  height: 18px;
}

.asn-daterange svg:first-child {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.asn-daterange .asn-chevron {
  margin-left: 6px;
}

/* ---------- Chart cards ---------- */
.asn-chart-card {
  padding: 30px 30px 10px;
  margin-bottom: 24px;
  border-radius: var(--asn-radius-kpi);
  box-shadow: var(--asn-shadow-kpi);
}

.asn-chart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--asn-label-gray);
}

.asn-chart-title svg {
  width: 20px;
  height: 20px;
}

.asn-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.asn-info-btn svg {
  width: 20px;
  height: 20px;
}

.asn-info-circle {
  fill: none;
  stroke: #70579c;
  stroke-width: 1.3;
}

.asn-info-stem,
.asn-info-dot {
  fill: #70579c;
}

.asn-info-btn.is-active .asn-info-circle {
  fill: #70579c;
  stroke: none;
}

.asn-info-btn.is-active .asn-info-stem,
.asn-info-btn.is-active .asn-info-dot {
  fill: #fff;
}

.asn-info-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: 320px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #201f1e;
  text-align: left;
  white-space: normal;
}

.asn-info-tooltip p {
  margin: 0;
}

.asn-info-tooltip p + p {
  margin-top: 12px;
}

.asn-info-tooltip strong {
  font-weight: 600;
}

.asn-info-tooltip[hidden] {
  display: none;
}

.asn-chart-scroll {
  overflow: visible;
  padding-bottom: 6px;
}

.asn-chart-svg {
  display: block;
  width: 100%;
  height: 320px;
}

.asn-chart-scroll::-webkit-scrollbar {
  height: 6px;
}

.asn-chart-scroll::-webkit-scrollbar-thumb {
  background: #d8d3c6;
  border-radius: 3px;
}

.asn-chart-legend {
  display: flex;
  gap: 22px;
  justify-content: center;
  margin: 6px 0 14px;
  flex-wrap: wrap;
}

.asn-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--asn-ink-soft);
}

.asn-chart-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 9px;
}

/* ---------- Tables ---------- */
.asn-table-card {
  padding: 20px 20px 8px;
  margin-bottom: 24px;
  border-radius: var(--asn-radius-kpi);
  box-shadow: var(--asn-shadow-kpi);
}

.asn-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.asn-table th {
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: var(--asn-ink);
  padding: 5px 8px 6px 0;
  border-bottom: 1px solid #e0e0e0;
}

.asn-table td {
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  color: var(--asn-ink);
}

.asn-table tr:last-child td {
  border-bottom: none;
}

.asn-table td:first-child,
.asn-table th:first-child {
  font-weight: 500;
}

/* ---------- Skills tab pie ---------- */
.asn-pie-card {
  padding: 22px 24px 20px;
  border-radius: var(--asn-radius-kpi);
  box-shadow: var(--asn-shadow-kpi);
}

.asn-pie-layout {
  display: flex;
  align-items: flex-start;
  gap: 156px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.asn-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
  align-self: flex-start;
  margin-top: 22px;
}

.asn-pie-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--asn-ink-soft);
}

.asn-pie-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.asn-pie-chart-wrap {
  position: relative;
  flex: 1 1 300px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 440px;
  max-height: 440px;
  overflow: hidden;
}

.asn-pie-chart-wrap svg {
  width: 100%;
  height: auto;
  max-height: 440px;
  display: block;
}

.asn-pie-chart-wrap svg text {
  font-size: 12px;
  fill: var(--asn-ink-soft);
  font-family: inherit;
}

/* ---------- Modal ---------- */
.asn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.asn-modal-overlay[hidden] {
  display: none;
}

.asn-modal {
  position: relative;
  width: min(90vw, 910px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(60px);
  border-radius: 24px;
  padding: 56px 40px 48px;
  text-align: center;
  box-shadow: 0px 16px 24px rgba(0, 0, 0, 0.08), 0px 8px 16px rgba(0, 0, 0, 0.03);
}

.asn-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  color: #272320;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.asn-modal-close svg {
  width: 24px;
  height: 24px;
}

.asn-modal-close:hover {
  background: rgba(255, 255, 255, 0.95);
}

.asn-modal-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 26px;
  object-fit: contain;
}

.asn-modal h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--asn-ink);
}

.asn-modal p {
  margin: 0 0 24px;
  max-width: 597px;
  margin-left: auto;
  margin-right: auto;
  color: #171717;
  font-size: 16px;
  line-height: 26px;
}

.asn-modal .asn-btn-outline {
  font-size: 16px;
  padding: 6px 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .asn-app {
    flex-direction: column;
  }

  .asn-sidebar {
    width: 100%;
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--asn-border-soft);
    padding: 16px 18px;
    gap: 12px;
  }

  .asn-sidebar-top,
  .asn-sidebar-bottom {
    width: 100%;
  }

  .asn-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .asn-nav-item.is-active::before {
    display: none;
  }

  .asn-main {
    padding: 32px 20px 60px;
  }

  .asn-playlist-stats {
    gap: 22px;
  }

  .asn-pie-layout {
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .asn-page-header {
    flex-direction: column;
  }

  .asn-toolbar {
    justify-content: flex-start;
  }

  .asn-search {
    width: 100%;
  }
}

/* ---------- Loading overlay (shown briefly on first load) ---------- */
.asn-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #faf6ef;
  transition: opacity 0.4s ease;
}

.asn-loading-overlay[hidden] {
  display: none;
}

.asn-loading-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.asn-loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(91, 79, 207, 0.18);
  border-top-color: #5b4fcf;
  animation: asn-spin 0.9s linear infinite;
}

.asn-loading-text {
  margin: 0;
  font-size: 14px;
  color: #605e5c;
}

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

/* ---------- Inline tab-content spinner (e.g. Learners tab first load) ---------- */
.asn-inline-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 70vh;
}

.asn-inline-spinner[hidden] {
  display: none;
}

.asn-tab-content[hidden] {
  display: none;
}
