/**
 * Standalone learner account shell (no theme). Matches Sikshya admin dashboard visual language.
 *
 * @package Sikshya
 */

:root {
  /* =====================================================================
   * Brand palette (Sikshya primary blue). Mirrors the admin React
   * `brand-*` Tailwind scale (client/src/index.css :root). brand-500 is
   * the canonical action color; brand-600 is the hover/pressed variant.
   * ===================================================================== */
  --sik-acc-brand-50:  #f0f5fb;
  --sik-acc-brand-100: #e8f0fa;
  --sik-acc-brand-200: #c8d8ee;
  --sik-acc-brand-300: #a8c0e2;
  --sik-acc-brand-400: #7299cb;
  --sik-acc-brand-500: #2c5ba8;
  --sik-acc-brand-600: #264e8d;
  --sik-acc-brand-700: #1f4585;
  --sik-acc-brand-800: #1a3a6e;
  --sik-acc-brand-900: #142e57;
  --sik-acc-brand-950: #0e203e;

  /* =====================================================================
   * Accent palette (Sikshya logo purple, secondary). Used for Pro /
   * upgrade surfaces and premium pills. accent-600 = base.
   * ===================================================================== */
  --sik-acc-accent-50:  #fbf5fb;
  --sik-acc-accent-100: #f5e8f5;
  --sik-acc-accent-200: #ebd5ed;
  --sik-acc-accent-300: #d9bedc;
  --sik-acc-accent-400: #c5a3c9;
  --sik-acc-accent-500: #a26ea7;
  --sik-acc-accent-600: #7a2e80;
  --sik-acc-accent-700: #5e2266;
  --sik-acc-accent-800: #4a1a51;
  --sik-acc-accent-900: #3a142d;
  --sik-acc-accent-950: #280f1f;

  /* =====================================================================
   * Neutral palette (Tailwind slate). Borders, surfaces, body text.
   * ===================================================================== */
  --sik-acc-slate-50:  #f8fafc;
  --sik-acc-slate-100: #f1f5f9;
  --sik-acc-slate-200: #e2e8f0;
  --sik-acc-slate-300: #cbd5e1;
  --sik-acc-slate-400: #94a3b8;
  --sik-acc-slate-500: #64748b;
  --sik-acc-slate-600: #475569;
  --sik-acc-slate-700: #334155;
  --sik-acc-slate-800: #1e293b;
  --sik-acc-slate-900: #0f172a;
  --sik-acc-slate-950: #020617;

  /* =====================================================================
   * Status tones (mirror StatusBadge variants in the admin React).
   * Each tone has a tinted background, a strong text color, and a
   * darker text variant for paragraph copy inside an alert/banner.
   * ===================================================================== */
  --sik-acc-success-50:  #ecfdf5;  /* emerald-50  */
  --sik-acc-success-600: #059669;  /* emerald-600 */
  --sik-acc-success-700: #047857;  /* emerald-700 */
  --sik-acc-success-800: #065f46;  /* emerald-800 */
  --sik-acc-warning-50:  #fffbeb;  /* amber-50    */
  --sik-acc-warning-600: #d97706;  /* amber-600   */
  --sik-acc-warning-700: #b45309;  /* amber-700   */
  --sik-acc-warning-800: #92400e;  /* amber-800   */
  --sik-acc-danger-50:   #fef2f2;  /* red-50      */
  --sik-acc-danger-600:  #dc2626;  /* red-600     */
  --sik-acc-danger-700:  #b91c1c;  /* red-700     */
  --sik-acc-danger-800:  #991b1b;  /* red-800     */
  --sik-acc-info-50:     #f0f9ff;  /* sky-50      */
  --sik-acc-info-600:    #0284c7;  /* sky-600     */
  --sik-acc-info-700:    #0369a1;  /* sky-700     */
  --sik-acc-info-800:    #075985;  /* sky-800     */

  /* =====================================================================
   * Semantic role tokens (preserve legacy aliases; map to canonical).
   * ===================================================================== */
  --sik-acc-bg: #f4f6f9;
  --sik-acc-surface: #ffffff;
  --sik-acc-surface-muted: var(--sik-acc-slate-50);
  --sik-acc-border: var(--sik-acc-slate-200);
  --sik-acc-text: var(--sik-acc-slate-900);
  --sik-acc-muted: var(--sik-acc-slate-500);
  --sik-acc-brand: var(--sik-acc-brand-500);
  --sik-acc-brand-hover: var(--sik-acc-brand-700);
  --sik-acc-sidebar: #ffffff;
  --sik-acc-success: var(--sik-acc-success-600);
  --sik-acc-success-bg: var(--sik-acc-success-50);

  /* =====================================================================
   * Radius scale — mirrors Tailwind rounded-lg / xl / 2xl.
   * Legacy aliases preserved.
   * ===================================================================== */
  --sik-acc-radius-sm: 8px;   /* rounded-lg  */
  --sik-acc-radius:    12px;  /* rounded-xl  */
  --sik-acc-radius-lg: 16px;  /* rounded-2xl */
  --sik-acc-radius-pill: 9999px;

  /* =====================================================================
   * Focus ring tokens — mirror admin React focus-visible:ring-brand-500/40.
   * ===================================================================== */
  --sik-acc-focus-ring: 0 0 0 3px rgba(44, 91, 168, 0.4);
  --sik-acc-focus-ring-soft: 0 0 0 3px rgba(44, 91, 168, 0.2);

  /* =====================================================================
   * Shadow scale.
   * ===================================================================== */
  --sik-acc-shadow:    0 1px 3px rgba(15, 23, 42, 0.06);
  --sik-acc-shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --sik-acc-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  /* =====================================================================
   * Typography scale — mirrors Tailwind text-xs / sm / base / lg / xl.
   * ===================================================================== */
  --sik-acc-text-xs:   12px;
  --sik-acc-text-sm:   14px;
  --sik-acc-text-base: 16px;
  --sik-acc-text-lg:   18px;
  --sik-acc-text-xl:   20px;
  --sik-acc-text-2xl:  24px;

  /* Layout. */
  --sik-acc-sidebar-w: 292px;
  --sik-acc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale (keeps UI rhythm consistent across partials/hooks). */
  --sik-acc-space-6: 6px;
  --sik-acc-space-8: 8px;
  --sik-acc-space-10: 10px;
  --sik-acc-space-12: 12px;
  --sik-acc-space-16: 16px;
  --sik-acc-space-20: 20px;
  --sik-acc-space-24: 24px;

  /* Main column. */
  --sik-acc-page-pad-x: clamp(16px, 3vw, 36px);
  --sik-acc-page-pad-y: clamp(16px, 2.4vw, 28px);
  --sik-acc-content-max: none;
  --sik-acc-shell-header-h: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Accessible focus ring (standalone shell, no theme styles).
 * Matches the admin React focus-visible:ring-brand-500/40 visual weight
 * so the learner-facing focus indicator reads the same as the admin's. */
:where(a, button, input, select, textarea, [tabindex]):focus {
  outline: none;
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(44, 91, 168, 0.4);
  outline-offset: 2px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.sikshya-account-shell {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sik-acc-font);
  color: var(--sik-acc-text);
  background: var(--sik-acc-bg);
  line-height: 1.5;
}

body.sikshya-account-shell:has(#sik-acc-nav-open:checked) {
  overflow: hidden;
}

.sik-acc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sik-acc-skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: var(--sik-acc-radius-sm);
  background: var(--sik-acc-text);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.sik-acc-skip-link:focus {
  left: 0.75rem;
  outline: none;
}

.sik-acc-skip-link:focus-visible {
  outline: 3px solid rgba(44, 91, 168, 0.45);
  outline-offset: 2px;
}

/* Mobile nav drawer: checkbox + scrim + toggle (see account.php) */
.sik-acc-nav-state {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0, 0, 0, 0);
}

.sik-acc-nav-scrim {
  display: none;
}

.sik-acc-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--sik-acc-radius-sm);
  border: 1px solid var(--sik-acc-border);
  background: var(--sik-acc-surface);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-text);
  cursor: pointer;
  flex-shrink: 0;
}

.sik-acc-nav-toggle:hover {
  background: var(--sik-acc-slate-50);
}

.sik-acc-nav-toggle__bars {
  width: 1.1rem;
  height: 1rem;
  display: inline-block;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  opacity: 0.85;
}

.sik-acc-nav-toggle__text {
  font-size: 0.8125rem;
}

.sik-acc-app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sik-acc-sidebar {
  width: var(--sik-acc-sidebar-w);
  flex-shrink: 0;
  background: var(--sik-acc-sidebar);
  border-right: 1px solid var(--sik-acc-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  z-index: 20;
}

.sik-acc-sidebar__brand {
  height: var(--sik-acc-shell-header-h);
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--sik-acc-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.sik-acc-sidebar__logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sik-acc-text);
  margin: 0;
}

.sik-acc-sidebar__version {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sik-acc-muted);
  margin: 0.25rem 0 0;
}

.sik-acc-nav {
  padding: 0.8rem 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.sik-acc-nav__label {
  padding: 0.55rem 1.3rem 0.35rem;
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sik-acc-muted);
}

.sik-acc-nav__hint {
  margin: -0.1rem 0 0.45rem;
  padding: 0 1.3rem 0.35rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--sik-acc-muted);
}

.sik-acc-nav a {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.63rem 1.3rem;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--sik-acc-slate-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sik-acc-nav a:hover {
  background: var(--sik-acc-slate-50);
  color: var(--sik-acc-text);
}

.sik-acc-nav a:focus-visible {
  background: var(--sik-acc-slate-50);
  color: var(--sik-acc-text);
}

.sik-acc-nav a.is-active {
  color: var(--sik-acc-brand);
  background: var(--sik-acc-brand-50);
  border-left-color: var(--sik-acc-brand);
  font-weight: 620;
}

.sik-acc-nav__icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sik-acc-slate-50);
  border: 1px solid var(--sik-acc-slate-200);
  color: var(--sik-acc-slate-600);
  flex-shrink: 0;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

/* Inline SVG inside the pill — sized so there's a 4px halo around the glyph,
   matching the React admin sidebar icon proportion. */
.sik-acc-nav__icon svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke-width: 1.75;
}

.sik-acc-nav a:hover .sik-acc-nav__icon,
.sik-acc-nav a:focus-visible .sik-acc-nav__icon,
.sik-acc-nav a.is-active .sik-acc-nav__icon {
  background: var(--sik-acc-brand-50);
  border-color: var(--sik-acc-brand-100);
  color: var(--sik-acc-brand);
}

.sik-acc-sidebar__footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--sik-acc-border);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sik-acc-sidebar__footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sik-acc-muted);
  text-decoration: none;
  white-space: nowrap;
}

.sik-acc-sidebar__footer a:hover {
  color: var(--sik-acc-brand);
}

.sik-acc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.sik-acc-icon svg {
  display: block;
}

/* Main column */
.sik-acc-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sik-acc-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--sik-acc-shell-header-h);
  padding: 1.05rem var(--sik-acc-page-pad-x);
  background: var(--sik-acc-surface);
  border-bottom: 1px solid var(--sik-acc-border);
  /* IMPORTANT: do NOT set `overflow: hidden` here — the user-menu
   * dropdown is positioned absolutely below the topbar (`top: 100% + 8px`)
   * and would be clipped by an overflow-hidden parent. Position is also
   * `relative` so it can serve as a stacking-context anchor for the
   * dropdown z-index. */
  position: relative;
  z-index: 50;
}

.sik-acc-topbar__titles {
  min-width: 0;
}

.sik-acc-topbar__titles h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sik-acc-topbar__titles p {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--sik-acc-muted);
  max-width: 36rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sik-acc-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.sik-acc-user-menu {
  position: relative;
}

.sik-acc-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  /* Tighter padding — the button is now just the avatar circle, not
   * the avatar + name + email + caret combo. */
  padding: 2px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sik-acc-user-btn:hover,
.sik-acc-user-btn[aria-expanded="true"] {
  background: transparent;
  border-color: var(--sik-acc-border);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sik-acc-text, #0f172a) 6%, transparent);
}

.sik-acc-user-btn:focus-visible {
  outline: 2px solid var(--sik-acc-primary, #2c5ba8);
  outline-offset: 2px;
}

/* Hide name + email + caret on the trigger so only the avatar shows. */
.sik-acc-user-btn .sik-acc-user__meta,
.sik-acc-user-btn .sik-acc-user-caret {
  display: none;
}

.sik-acc-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 0.4rem;
  border-radius: var(--sik-acc-radius);
  border: 1px solid var(--sik-acc-border);
  background: var(--sik-acc-surface);
  box-shadow: var(--sik-acc-shadow-md);
  display: none;
  /* High z-index so the dropdown floats above any subsequent
   * content sections (sidebar, content cards, etc.). The topbar
   * itself has z-index: 50 and is `position: relative`, so this
   * 9999 is interpreted within that stacking context — guaranteed
   * to sit above everything else on the page. */
  z-index: 9999;
  isolation: isolate;
}

.sik-acc-user-menu.is-open .sik-acc-user-dropdown {
  display: block;
}

.sik-acc-user-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--sik-acc-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.sik-acc-user-dropdown a:hover {
  background: var(--sik-acc-slate-50);
}

.sik-acc-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sik-acc-user img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid var(--sik-acc-border);
}

.sik-acc-user__meta {
  display: none;
}

@media (min-width: 640px) {
  .sik-acc-user__meta {
    display: block;
  }
}

.sik-acc-user__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}

.sik-acc-user__email {
  font-size: 0.6875rem;
  color: var(--sik-acc-muted);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sik-acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--sik-acc-radius-sm);
  border: 1px solid var(--sik-acc-border);
  background: var(--sik-acc-surface);
  color: var(--sik-acc-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sik-acc-btn:disabled,
.sik-acc-btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

.sik-acc-btn:hover {
  background: var(--sik-acc-slate-50);
}

.sik-acc-btn--primary {
  background: var(--sik-acc-brand);
  border-color: var(--sik-acc-brand);
  color: #fff;
}

.sik-acc-btn--primary:hover {
  background: var(--sik-acc-brand-hover);
  border-color: var(--sik-acc-brand-hover);
  color: #fff;
}

.sik-acc-content {
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  max-width: var(--sik-acc-content-max);
  margin: 0 auto;
  padding: var(--sik-acc-page-pad-y) var(--sik-acc-page-pad-x)
    calc(var(--sik-acc-page-pad-y) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--sik-acc-space-20);
  min-width: 0;
}

.sik-acc-hero {
  border-radius: var(--sik-acc-radius);
  padding: 1.5rem 1.75rem;
  margin: 0;
  background: linear-gradient(120deg, var(--sik-acc-brand-500) 0%, var(--sik-acc-accent-700) 45%, var(--sik-acc-accent-600) 100%);
  color: #fff;
  box-shadow: var(--sik-acc-shadow-md);
}

.sik-acc-hero__date {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sik-acc-hero__greet {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sik-acc-hero__lead {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  opacity: 0.92;
  max-width: 40rem;
  line-height: 1.55;
}

/* -------------------------------------------------------------------------
   Overview dashboard (restructured layout)
   ------------------------------------------------------------------------- */
.sik-acc-dash {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  min-width: 0;
}

.sik-acc-dash-section {
  min-width: 0;
}

.sik-acc-dash-section--tight {
  margin-top: -0.25rem;
}

.sik-acc-dash-section__head {
  margin-bottom: 0.85rem;
}

.sik-acc-dash-section__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sik-acc-text);
}

.sik-acc-dash-section__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--sik-acc-muted);
  max-width: 42rem;
}

.sik-acc-dash-badges {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.sik-acc-dash-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: var(--sik-acc-surface);
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius);
  box-shadow: var(--sik-acc-shadow);
}

.sik-acc-dash-badge__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: rgb(var(--sikshya-brand-700-rgb, 60, 90, 140));
  background: rgba(var(--sikshya-brand-500-rgb, 80, 120, 183), 0.12);
}

.sik-acc-dash-badge__glyph .sikshya-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.sik-acc-dash-badge__body {
  min-width: 0;
  flex: 1 1 auto;
}

.sik-acc-dash-badge__name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sik-acc-text);
}

.sik-acc-dash-badge__desc,
.sik-acc-dash-badge__date {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--sik-acc-muted);
  line-height: 1.45;
}

.sik-acc-dash-badge__date {
  font-weight: 600;
  color: rgb(var(--sikshya-brand-700-rgb, 60, 90, 140));
}

.sik-acc-dash-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 640px) {
  .sik-acc-dash-snapshot {
    grid-template-columns: 1fr;
  }
}

.sik-acc-dash-stat {
  position: relative;
  background: var(--sik-acc-surface);
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius);
  padding: 1rem 1rem 1rem 1.1rem;
  box-shadow: var(--sik-acc-shadow);
  overflow: hidden;
}

.sik-acc-dash-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.sik-acc-dash-stat--ongoing::before {
  background: var(--sik-acc-brand);
}

.sik-acc-dash-stat--done::before {
  background: var(--sik-acc-success);
}

.sik-acc-dash-stat--total::before {
  background: var(--sik-acc-accent-600);
}

.sik-acc-dash-stat__value {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--sik-acc-text);
  font-variant-numeric: tabular-nums;
}

.sik-acc-dash-stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-text);
}

.sik-acc-dash-stat__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--sik-acc-muted);
}

.sik-acc-dash-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.85rem;
}

.sik-acc-dash-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 8.5rem;
  padding: 1rem 1.1rem 0.95rem;
  background: var(--sik-acc-surface);
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius);
  box-shadow: var(--sik-acc-shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.sik-acc-dash-card:hover {
  border-color: var(--sik-acc-slate-300);
  box-shadow: var(--sik-acc-shadow-md);
}

.sik-acc-dash-card:focus-visible {
  outline: 2px solid var(--sik-acc-brand);
  outline-offset: 2px;
}

.sik-acc-dash-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .sik-acc-dash-card--wide {
    grid-column: span 2;
  }
}

.sik-acc-dash-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.sik-acc-dash-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--sik-acc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.sik-acc-dash-card__icon--blue {
  background: var(--sik-acc-brand-50);
  color: var(--sik-acc-brand);
}

.sik-acc-dash-card__icon--green {
  background: var(--sik-acc-success-50);
  color: var(--sik-acc-success);
}

.sik-acc-dash-card__icon--slate {
  background: var(--sik-acc-slate-100);
  color: var(--sik-acc-slate-600);
}

.sik-acc-dash-card__icon--violet {
  background: var(--sik-acc-accent-50);
  color: var(--sik-acc-accent-600);
}

.sik-acc-dash-card__icon--amber {
  background: var(--sik-acc-warning-50);
  color: var(--sik-acc-warning-700);
}

.sik-acc-dash-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: var(--sik-acc-slate-100);
  color: var(--sik-acc-slate-700);
  border: 1px solid var(--sik-acc-border);
}

.sik-acc-dash-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--sik-acc-text);
}

.sik-acc-dash-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sik-acc-muted);
  flex: 1;
}

.sik-acc-dash-card__cta {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-brand);
}

.sik-acc-dash-shop-panel .sik-acc-panel__head {
  align-items: stretch;
}

.sik-acc-dash-shop-panel__lead {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--sik-acc-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  max-width: 48rem;
}

.sik-acc-dash-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--sik-acc-border);
}

@media (max-width: 520px) {
  .sik-acc-dash-shop-grid {
    grid-template-columns: 1fr;
  }
}

.sik-acc-dash-shop-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--sik-acc-border);
  transition: background 0.12s ease;
}

.sik-acc-dash-shop-grid .sik-acc-dash-shop-tile:last-child {
  border-right: none;
}

@media (max-width: 520px) {
  .sik-acc-dash-shop-tile {
    border-right: none;
    border-bottom: 1px solid var(--sik-acc-border);
  }

  .sik-acc-dash-shop-grid .sik-acc-dash-shop-tile:last-child {
    border-bottom: none;
  }
}

.sik-acc-dash-shop-tile:hover {
  background: var(--sik-acc-slate-50);
}

.sik-acc-dash-shop-tile:focus-visible {
  outline: 2px solid var(--sik-acc-brand);
  outline-offset: -2px;
  z-index: 1;
}

.sik-acc-dash-shop-tile__icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--sik-acc-radius-sm);
  background: var(--sik-acc-brand-50);
  color: var(--sik-acc-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.sik-acc-dash-shop-tile__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sik-acc-text);
}

.sik-acc-dash-shop-tile__desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--sik-acc-muted);
}

.sik-acc-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 0;
}

.sik-acc-metric {
  background: var(--sik-acc-surface);
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--sik-acc-shadow);
}

.sik-acc-metric__value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sik-acc-metric__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sik-acc-muted);
  margin-top: 0.35rem;
}

.sik-acc-metric__hint {
  font-size: 0.75rem;
  color: var(--sik-acc-muted);
  margin-top: 0.35rem;
}

.sik-acc-grid {
  display: grid;
  gap: 1.25rem;
}

.sik-acc-grid__main {
  min-width: 0;
}

@media (min-width: 1024px) {
  .sik-acc-grid--split {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    align-items: start;
  }
}

.sik-acc-panel {
  background: var(--sik-acc-surface);
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius);
  box-shadow: var(--sik-acc-shadow);
  overflow: hidden;
}

.sik-acc-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    rgba(var(--sikshya-brand-500-rgb, 80, 120, 183), 0.08),
    rgba(var(--sikshya-accent-500-rgb, 80, 120, 183), 0.04)
  );
  border: 1px solid rgba(var(--sikshya-brand-500-rgb, 80, 120, 183), 0.18);
  border-radius: var(--sik-acc-radius);
  box-shadow: var(--sik-acc-shadow);
}

.sik-acc-resume__meta {
  flex: 1 1 18rem;
  min-width: 0;
}

.sik-acc-resume__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--sikshya-brand-700-rgb, 60, 90, 140));
}

.sik-acc-resume__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sik-acc-fg, var(--sik-acc-slate-900));
}

.sik-acc-resume__lesson {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--sik-acc-muted, var(--sik-acc-slate-600));
}

.sik-acc-resume__progress {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.sik-acc-resume__progress-bar {
  position: relative;
  height: 0.45rem;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.sik-acc-resume__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: rgb(var(--sikshya-brand-500-rgb, 80, 120, 183));
  border-radius: inherit;
  transition: width 220ms ease;
}

.sik-acc-resume__progress-text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--sik-acc-muted, var(--sik-acc-slate-600));
}

.sik-acc-resume__actions {
  flex: 0 0 auto;
}

.sik-acc-resume__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: rgb(var(--sikshya-brand-600-rgb, 60, 100, 165));
  border-radius: 0.6rem;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.sik-acc-resume__cta:hover,
.sik-acc-resume__cta:focus-visible {
  background: rgb(var(--sikshya-brand-700-rgb, 50, 90, 150));
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .sik-acc-resume {
    padding: 1rem 1.1rem;
  }
  .sik-acc-resume__actions {
    width: 100%;
  }
  .sik-acc-resume__cta {
    width: 100%;
    justify-content: center;
  }
}

.sik-acc-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--sik-acc-border);
}

.sik-acc-panel__head > div:only-child,
.sik-acc-panel__head .sik-acc-panel__title-block {
  flex: 1;
  min-width: min(100%, 14rem);
}

.sik-acc-panel__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sik-acc-muted);
}

.sik-acc-panel__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-brand);
  text-decoration: none;
}

.sik-acc-panel__link:hover {
  text-decoration: underline;
}

.sik-acc-table-wrap {
  overflow-x: auto;
}

.sik-acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.sik-acc-table th,
.sik-acc-table td {
  padding: 0.75rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--sik-acc-border);
}

.sik-acc-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sik-acc-muted);
  background: var(--sik-acc-slate-50);
}

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

.sik-acc-table a {
  color: var(--sik-acc-brand);
  font-weight: 600;
  text-decoration: none;
}

.sik-acc-table a:hover {
  text-decoration: underline;
}

.sik-acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: capitalize;
  border-radius: 9999px;
  background: var(--sik-acc-success-bg);
  color: var(--sik-acc-success);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.sik-acc-badge--muted {
  background: var(--sik-acc-slate-100);
  color: var(--sik-acc-slate-600);
  border-color: var(--sik-acc-border);
}

.sik-acc-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--sik-acc-muted);
  font-size: 0.875rem;
}

.sik-acc-shortcuts {
  padding: 0.35rem 0;
}

.sik-acc-shortcut {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--sik-acc-border);
  transition: background 0.12s ease;
}

.sik-acc-shortcut:last-child {
  border-bottom: none;
}

.sik-acc-shortcut:hover {
  background: var(--sik-acc-slate-50);
}

.sik-acc-shortcut__icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--sik-acc-radius-sm);
  background: var(--sik-acc-brand-50);
  color: var(--sik-acc-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sik-acc-shortcut__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  display: block;
}

/* Inline SVGs inside the larger dashboard / library stat pills. The pills are
   2.5rem (40px) square; SVG at 20px gives a comfortable 10px halo. */
.sik-acc-dash-card__icon svg,
.sik-acc-lib-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  display: block;
}

.sik-acc-shortcut__title {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

.sik-acc-shortcut__desc {
  font-size: 0.75rem;
  color: var(--sik-acc-muted);
  margin: 0.15rem 0 0;
}

.sik-acc-tipbox {
  margin: 1rem 1.15rem 1.15rem;
  padding: 1rem;
  border-radius: var(--sik-acc-radius-sm);
  background: var(--sik-acc-slate-50);
  border: 1px solid var(--sik-acc-border);
}

.sik-acc-tipbox h3 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.sik-acc-tipbox ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  color: var(--sik-acc-muted);
}

.sik-acc-tipbox li {
  margin-bottom: 0.35rem;
}

/* -------------------------------------------------------------------------
   Mobile / narrow: slide-out navigation (drawer + scrim)
   Checkbox `#sik-acc-nav-open` lives before `.sik-acc-app` in account.php.
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .sik-acc-app {
    position: relative;
    flex-direction: row;
    min-height: 100vh;
  }

  .sik-acc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(18rem, 88vw);
    max-width: var(--sik-acc-sidebar-w);
    min-height: 100vh;
    transform: translateX(-102%);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    z-index: 50;
    border-right: 1px solid var(--sik-acc-border);
    border-bottom: none;
    box-shadow: none;
    align-self: stretch;
    overscroll-behavior: contain;
  }

  #sik-acc-nav-open:checked ~ .sik-acc-app .sik-acc-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
  }

  .sik-acc-nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    margin: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
  }

  #sik-acc-nav-open:checked ~ .sik-acc-app .sik-acc-nav-scrim {
    display: block;
  }

  .sik-acc-nav-toggle {
    display: inline-flex;
  }

  .sik-acc-nav {
    display: block;
    padding: 0.5rem 0 1rem;
    overflow: auto;
    max-height: calc(100vh - 8rem);
  }

  .sik-acc-nav__label {
    width: auto;
    padding: 0.5rem 1.25rem 0.25rem;
  }

  .sik-acc-nav a {
    border-left: 3px solid transparent;
    border-radius: 0;
  }

  .sik-acc-nav a.is-active {
    border-left-color: var(--sik-acc-brand);
  }

  .sik-acc-sidebar__footer {
    display: block;
    margin-top: auto;
  }

  .sik-acc-main {
    width: 100%;
    min-width: 0;
  }

  .sik-acc-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    align-items: center;
  }

  .sik-acc-topbar__titles {
    flex: 1;
    min-width: 0;
  }

  .sik-acc-topbar__titles h1 {
    font-size: 1.0625rem;
  }

  .sik-acc-topbar__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .sik-acc-user__email {
    max-width: 14rem;
  }
}

/* Content library strip (dashboard-style quick tiles) */
.sik-acc-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1rem;
  margin: 0;
}

.sik-acc-lib-card {
  display: block;
  background: var(--sik-acc-surface);
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius);
  padding: 1rem 1rem 0.9rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--sik-acc-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sik-acc-lib-card:hover {
  border-color: var(--sik-acc-slate-300);
  box-shadow: var(--sik-acc-shadow-md);
}

.sik-acc-lib-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--sik-acc-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.sik-acc-lib-card__icon--blue {
  background: var(--sik-acc-brand-50);
  color: var(--sik-acc-brand);
}

.sik-acc-lib-card__icon--green {
  background: var(--sik-acc-success-50);
  color: var(--sik-acc-success);
}

.sik-acc-lib-card__icon--slate {
  background: var(--sik-acc-slate-100);
  color: var(--sik-acc-slate-600);
}

.sik-acc-lib-card__num {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sik-acc-lib-card__lbl {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sik-acc-muted);
  margin-top: 0.25rem;
}

.sik-acc-metric--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sik-acc-metric--link:hover {
  border-color: var(--sik-acc-slate-300);
}

.sik-acc-metric--link .sik-acc-metric__value {
  color: var(--sik-acc-brand);
  font-size: 1rem;
}

.sik-acc-user__fallback {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--sik-acc-brand-500), var(--sik-acc-accent-600));
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sik-acc-border);
  flex-shrink: 0;
}

.sik-acc-muted {
  font-size: 0.75rem;
  color: var(--sik-acc-muted);
  margin-top: 0.2rem;
}

.sik-acc-panel__lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--sik-acc-muted);
  max-width: 42rem;
}

.sik-acc-code {
  font-size: 0.75rem;
  background: var(--sik-acc-slate-100);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  word-break: break-all;
}

.sik-acc-table--wide {
  min-width: 720px;
}

/* Calendar add-on (Pro): learner schedule on dashboard */
.sik-acc-cal__hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--sik-acc-muted);
  font-weight: 400;
  max-width: 40rem;
}

.sik-acc-cal__empty {
  margin: 0;
  padding: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--sik-acc-muted);
}

.sik-acc-cal__list {
  list-style: none;
  margin: 0;
  padding: 0 1.15rem 1rem;
}

.sik-acc-cal__item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sik-acc-border);
  align-items: flex-start;
}

.sik-acc-cal__item:last-child {
  border-bottom: none;
}

.sik-acc-cal__date {
  flex: 0 0 7.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-text);
}

.sik-acc-cal__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sik-acc-cal__badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sik-acc-brand);
}

.sik-acc-cal__soon {
  font-weight: 600;
  color: var(--sik-acc-muted);
  text-transform: none;
  letter-spacing: 0;
}

.sik-acc-cal__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sik-acc-text);
}

a.sik-acc-cal__title {
  text-decoration: none;
  color: var(--sik-acc-brand);
}

a.sik-acc-cal__title:hover {
  text-decoration: underline;
}

.sik-acc-cal__sub {
  font-size: 0.75rem;
  color: var(--sik-acc-muted);
}

/* -------------------------------------------------------------------------
   Pro panels + marketplace: structured headings, lists, forms
   ------------------------------------------------------------------------- */
.sik-acc-panel__title-block {
  flex: 1;
  min-width: 0;
}

.sik-acc-panel__title-block .sik-acc-panel__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--sik-acc-text);
}

.sik-acc-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--sik-acc-muted);
  max-width: 44rem;
}

.sik-acc-panel__meta {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-muted);
  white-space: nowrap;
}

.sik-acc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sik-acc-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--sik-acc-border);
}

.sik-acc-list__item:last-child {
  border-bottom: none;
}

.sik-acc-list__main {
  flex: 1;
  min-width: 0;
}

.sik-acc-list__main strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.sik-acc-list__sub {
  font-weight: 400;
  color: var(--sik-acc-muted);
}

.sik-acc-list__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--sik-acc-muted);
}

.sik-acc-list__aside {
  flex-shrink: 0;
  text-align: right;
}

.sik-acc-list__score {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sik-acc-list__score--pass {
  color: var(--sik-acc-success);
}

.sik-acc-list__score--fail {
  color: var(--sik-acc-danger-700);
}

.sik-acc-list__score--muted {
  color: var(--sik-acc-muted);
}

.sik-acc-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.sik-acc-sub-card {
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid var(--sik-acc-border);
  background: var(--sik-acc-slate-50);
}

.sik-acc-sub-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sik-acc-sub-card__main {
  flex: 1;
  min-width: 0;
}

.sik-acc-sub-card__plan {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sik-acc-sub-card__detail {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--sik-acc-muted);
}

.sik-acc-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
  padding: 0.95rem 1.15rem 1rem;
}

.sik-acc-stat-tile {
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius-sm);
  background: var(--sik-acc-surface);
  padding: 0.85rem 1rem;
}

.sik-acc-stat-tile__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sik-acc-muted);
}

.sik-acc-stat-tile__value {
  margin-top: 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sik-acc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.1rem 0.95rem;
  padding: 0 1.15rem 1.15rem;
}

.sik-acc-form-grid--profile {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  padding-top: 0.35rem;
}

.sik-acc-form-grid--marketplace {
  padding-top: 0.45rem;
  gap: 1.15rem 1rem;
}

.sik-acc-form-grid--full {
  grid-template-columns: 1fr;
  gap: 0.95rem;
  padding-top: 0.35rem;
}

.sik-acc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.sik-acc-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-text);
}

.sik-acc-input,
.sik-acc-textarea,
.sik-acc-select {
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.45;
  color: var(--sik-acc-text);
  background: var(--sik-acc-surface);
  border: 1px solid var(--sik-acc-border);
  border-radius: var(--sik-acc-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sik-acc-input::placeholder,
.sik-acc-textarea::placeholder {
  color: var(--sik-acc-slate-400);
}

.sik-acc-textarea {
  resize: vertical;
  min-height: 5rem;
}

.sik-acc-field__desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--sik-acc-muted);
}

.sik-acc-input:focus,
.sik-acc-textarea:focus,
.sik-acc-select:focus {
  outline: none;
  border-color: rgba(44, 91, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(44, 91, 168, 0.12);
}

.sik-acc-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1.15rem 1.15rem;
  margin-top: 0.15rem;
}

.sik-acc-form-actions--full,
.sik-acc-field--full {
  grid-column: 1 / -1;
}

.sik-acc-form-status {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sik-acc-muted);
  padding: 0.45rem 0.6rem;
  border-radius: var(--sik-acc-radius-sm);
  border: 1px solid var(--sik-acc-border);
  background: var(--sik-acc-slate-50);
}

/* When the JS hasn't populated a status message yet (initial load, no
 * submit), keep the pill invisible — otherwise an empty bordered chip
 * sits next to the submit button and reads as a broken UI element. */
.sik-acc-form-status:empty {
  display: none;
}

.sik-acc-form-status--ok {
  color: var(--sik-acc-success-800);
  border-color: rgba(5, 150, 105, 0.3);
  background: var(--sik-acc-success-50);
}

.sik-acc-form-status--err {
  color: var(--sik-acc-danger-800);
  border-color: rgba(220, 38, 38, 0.28);
  background: var(--sik-acc-danger-50);
}

.sik-acc-lib-card--static {
  cursor: default;
}

.sik-acc-lib-card--static:hover {
  border-color: var(--sik-acc-border);
  box-shadow: var(--sik-acc-shadow);
}

.sik-acc-instructor .sik-acc-grid__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sik-acc-library--panel {
  padding: 0.95rem 1.15rem 1.15rem;
}

.sik-acc-teach-row-actions a {
  font-weight: 600;
}

.sik-acc-shortcut__desc--in-card {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.sik-acc-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  border-radius: 9999px;
  border: 1px solid var(--sik-acc-border);
  background: var(--sik-acc-slate-50);
  color: var(--sik-acc-text);
}

.sik-acc-pill--success {
  background: var(--sik-acc-success-bg);
  border-color: rgba(5, 150, 105, 0.22);
  color: var(--sik-acc-success);
}

.sik-acc-pill--danger {
  background: var(--sik-acc-danger-50);
  border-color: rgba(185, 28, 28, 0.25);
  color: var(--sik-acc-danger-700);
}

.sik-acc-pill--muted {
  background: var(--sik-acc-slate-100);
  color: var(--sik-acc-slate-600);
}

.sik-acc-panel__lead--tight {
  margin: 0 1.15rem 1rem;
}

.sik-acc-addon-card {
  margin-top: 0.85rem;
}

.sik-acc-addon-card__body {
  padding: 1rem 1.15rem 1.15rem;
}

.sik-acc-addon-card__saved {
  margin: 0 0 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--sik-acc-radius-sm);
  border: 1px solid rgba(5, 150, 105, 0.3);
  background: var(--sik-acc-success-50);
  color: var(--sik-acc-success-800);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.sik-acc-addon-card__saved-close {
  border: 0;
  background: transparent;
  color: inherit;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.sik-acc-addon-card__saved-close:hover,
.sik-acc-addon-card__saved-close:focus-visible {
  opacity: 1;
  background: rgba(6, 95, 70, 0.12);
}

.sik-acc-addon-card__form {
  margin: 0;
}

.sik-acc-addon-card__option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sik-acc-text);
}

.sik-acc-addon-card__option input[type='checkbox'] {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.sik-acc-addon-card__option strong {
  display: block;
  font-size: 0.8125rem;
  margin: 0;
}

.sik-acc-addon-card__option span > span {
  display: block;
  margin-top: 0.2rem;
  color: var(--sik-acc-muted);
}

.sik-acc-addon-card__actions {
  margin: 0.85rem 0 0;
}

.sik-acc-addon-card__providers {
  margin: 0 0 0.75rem;
  padding-left: 1rem;
  font-size: 0.8125rem;
  color: var(--sik-acc-text);
}

.sik-acc-addon-card__providers li {
  margin: 0 0 0.2rem;
}

.sik-acc-notice {
  margin: 0.95rem 1.15rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--sik-acc-radius-sm);
  border: 1px solid var(--sik-acc-border);
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.sik-acc-notice--ok {
  border-color: rgba(5, 150, 105, 0.3);
  background: var(--sik-acc-success-50);
  color: var(--sik-acc-success-800);
}

.sik-acc-notice--err {
  border-color: rgba(220, 38, 38, 0.28);
  background: var(--sik-acc-danger-50);
  color: var(--sik-acc-danger-800);
}

.sik-acc-notice--pending {
  border-color: rgba(44, 91, 168, 0.28);
  background: var(--sik-acc-brand-50);
  color: var(--sik-acc-brand-700);
}

.sik-acc-notice__close {
  border: 0;
  background: transparent;
  color: inherit;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.sik-acc-notice__close:hover,
.sik-acc-notice__close:focus-visible {
  opacity: 1;
  background: rgba(15, 23, 42, 0.08);
}

.sik-acc-status-line {
  margin: 0;
  padding: 0.85rem 1.15rem 1.15rem;
  font-size: 0.875rem;
  color: var(--sik-acc-text);
}

.sik-acc-status-line__meta {
  color: var(--sik-acc-muted);
  font-weight: 500;
}

.sik-acc-apply-body {
  padding: 1rem 1.15rem 1.25rem;
}

/* Instructor apply — form uses account field grid + primary button (not storefront sikshya-*). */
.sik-acc-instructor-form {
  min-width: 0;
}

.sik-acc-instructor-form__alerts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem 0.15rem;
}

.sik-acc-callout {
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
  border-radius: var(--sik-acc-radius-sm);
  border: 1px solid var(--sik-acc-border);
  background: var(--sik-acc-slate-50);
  color: var(--sik-acc-text);
}

.sik-acc-callout--info {
  border-color: rgba(44, 91, 168, 0.28);
  background: rgba(239, 246, 255, 0.95);
  color: var(--sik-acc-brand-900);
}

.sik-acc-callout--warning {
  border-color: rgba(217, 119, 6, 0.35);
  background: var(--sik-acc-warning-50);
  color: var(--sik-acc-warning-800);
}

.sik-acc-callout--success {
  border-color: rgba(5, 150, 105, 0.3);
  background: var(--sik-acc-success-bg);
  color: var(--sik-acc-success-800);
}

.sik-acc-form-grid--instructor-apply {
  padding-top: 0.65rem;
  padding-bottom: 0.35rem;
}

.sik-acc-form-actions--instructor-apply {
  padding-top: 0.35rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--sik-acc-border);
  margin-top: 0.15rem;
}

.sik-acc-btn--lg {
  min-height: 2.65rem;
  padding: 0.55rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--sik-acc-radius-sm);
}

.sik-acc-instructor-form--guest {
  padding: 1rem 1.15rem 1.25rem;
}

.sik-acc-instructor-form__guest-text {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--sik-acc-muted);
}

.sik-acc-instructor-form__guest-actions {
  margin: 0;
}

.sik-acc-metrics--panel {
  padding: 0.95rem 1.15rem 1.15rem;
}

/* -------------------------------------------------------------------------
   Learner CSV self-export (Advanced analytics — account + learn shell)
   ------------------------------------------------------------------------- */
.sikshya-learner-export-wrap {
  margin-top: 1.25rem;
}

.sik-acc-export-actions {
  padding: 0.85rem 1.15rem 1.1rem;
  border-top: 1px solid var(--sik-acc-border);
}

.sikshya-learner-export {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.sikshya-learner-export .sik-acc-btn {
  flex: 1 1 auto;
  min-width: min(100%, 11rem);
  justify-content: center;
}

@media (min-width: 520px) {
  .sikshya-learner-export .sik-acc-btn {
    flex: 0 1 auto;
    min-width: 12rem;
  }
}

.sikshya-learnExport {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sik-acc-border);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.sikshya-learnExport__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sik-acc-text);
}

.sikshya-learnExport__hint {
  margin: 0 0 0.75rem;
  color: var(--sik-acc-muted);
}

.sikshya-learnExport__actions {
  margin: 0;
}

.sikshya-learnExport__actions .sikshya-learner-export {
  margin: 0;
}
