/* ─────────────────────────────────────────────────────────────────────
   shell-calm.css — quieter restyle of the app shell + dashboard.
   Loaded after style.css and platform.css; overrides only, no layout
   ownership. New rules go here, not in the mega-stylesheets (do-not-grow).
   ───────────────────────────────────────────────────────────────────── */

/* ── Program tabs: filled pill → quiet underline tabs ── */
.platform-top-nav-link {
  font-weight: 600;
}
.platform-top-nav-link.active,
.platform-top-nav-link.active:hover {
  color: #1d4ed8;
  font-weight: 700;
  background: transparent;
  box-shadow: inset 0 -2px 0 #2563eb;
  border-radius: 0;
}
.platform-nav-soon {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 999px;
  padding: 1px 8px 2px;
  font-size: 0.72em;
  font-weight: 700;
  margin-left: 0.35em;
  vertical-align: 1px;
}
.platform-top-nav-link:hover .platform-nav-soon,
.platform-top-nav-link.active .platform-nav-soon {
  color: #64748b;
  background: #f1f5f9;
}

/* ── Sign out: red alarm → quiet outline ── */
.layout-main .top-bar-auth-btn.top-bar-auth-btn--out,
.platform-top-nav-actions .top-bar-auth-btn.top-bar-auth-btn--out {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  font-weight: 600;
}
.layout-main .top-bar-auth-btn.top-bar-auth-btn--out:hover,
.platform-top-nav-actions .top-bar-auth-btn.top-bar-auth-btn--out:hover {
  background: #f8fafc;
  color: #b91c1c;
  border-color: #fecaca;
}

/* ── Page header: centered glass bar → plain left-aligned title ── */
.top-bar.minimal {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  text-align: left;
  padding: 20px 24px 4px;
}
.top-bar.minimal h1 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.top-bar.minimal .top-bar-headline {
  justify-content: flex-start;
}

/* ── Sidebar polish (stays dark) ── */
.sidebar-nav button {
  font-weight: 600;
  border-radius: 10px;
}
.sidebar-brand-tag {
  opacity: 0.55;
}

/* Band widget: honest empty state instead of "Good work! Band —" */
.sidebar-band-widget .sbw-empty-note {
  display: none;
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.75);
  line-height: 1.35;
}
.sidebar-band-widget.sbw--empty .sbw-sub {
  display: none;
}
.sidebar-band-widget.sbw--empty .sbw-empty-note {
  display: block;
}

/* ── Diagnostic banner: gradient hero → calm white card ── */
.diag-banner {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.diag-banner-label {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #0f172a;
  margin-bottom: 2px;
}
.diag-banner-title {
  color: #64748b;
  font-weight: 500;
  font-size: 0.92rem;
}
.diag-modules {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) {
  .diag-modules {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .diag-modules {
    grid-template-columns: 1fr;
  }
}
.diag-module {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 14px 14px;
  gap: 6px;
}
.diag-module-step {
  display: none;
}
.diag-module-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: #f1f5f9;
  margin-bottom: 2px;
}
.diag-module[data-section="listening"] .diag-module-icon { background: #dbeafe; }
.diag-module[data-section="reading"] .diag-module-icon { background: #d1fae5; }
.diag-module[data-section="writing"] .diag-module-icon { background: #fef3c7; }
.diag-module[data-section="speaking"] .diag-module-icon { background: #ede9fe; }
.diag-module-name {
  color: #0f172a;
  font-size: 0.98rem;
}
.diag-free-badge {
  background: #d1fae5;
  border: none;
  color: #047857;
  font-size: 0.68rem;
}
.diag-module-desc {
  color: #64748b;
  font-size: 0.8rem;
}
.diag-module-status {
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  background: #f8fafc;
}
/* state: clickable */
.diag-module.diag-state-current {
  background: #fff;
  border-color: #e2e8f0;
}
.diag-module.diag-state-current:hover {
  background: #fff;
  border-color: #bfdbfe;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}
.diag-module.diag-state-current .diag-module-status {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #fff;
}
/* state: done */
.diag-module.diag-state-done {
  background: #f0fdf4;
  border-color: #bbf7d0;
  opacity: 1;
}
.diag-module.diag-state-done .diag-module-status {
  color: #047857;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
/* state: locked / soon */
.diag-module.diag-state-locked,
.diag-module.diag-state-soon {
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 1;
}
.diag-module.diag-state-locked .diag-module-name,
.diag-module.diag-state-soon .diag-module-name {
  color: #64748b;
}
.diag-module.diag-state-locked .diag-module-status,
.diag-module.diag-state-soon .diag-module-status {
  color: #94a3b8;
  border-color: transparent;
  background: transparent;
  text-align: left;
  padding-left: 0;
}
/* CTA: shouting caps on white → soft blue, sentence case */
.diag-start-btn {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  border-radius: 12px;
}
.diag-start-btn:hover {
  background: #bfdbfe;
}
