/* PWLBtoday Academy hub */

:root {
  --ac-navy: #0a2540;
  --ac-orange: #fd7e14;
  --ac-orange-soft: #fff5e9;
  --ac-text: #243240;
  --ac-muted: #6c757d;
  --ac-line: #e9ecef;
  --ac-line-soft: #f1f3f5;
  --ac-bg: #f7f8fa;
  --ac-card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ac-text);
  background: var(--ac-bg);
  font-size: 16px;
  line-height: 1.55;
}

/* Header */
.ac-header {
  height: 56px;
  background: var(--ac-card);
  border-bottom: 1px solid var(--ac-line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  position: sticky; top: 0; z-index: 50;
}

.ac-brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none;
}
.ac-brand-mark { font-weight: 700; color: var(--ac-orange); font-size: 1rem; }
.ac-brand-sep { color: #ced4da; }
.ac-brand-name {
  font-weight: 600; color: var(--ac-navy); font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.ac-header-progress {
  flex: 1; display: flex; align-items: center; gap: 12px;
  max-width: 460px;
}
.ac-progress-text {
  font-size: 0.78rem; color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ac-progress-track {
  flex: 1; height: 6px; background: var(--ac-line); border-radius: 3px; overflow: hidden;
}
.ac-progress-fill {
  height: 100%; background: var(--ac-orange); width: 0%;
  transition: width 0.4s ease;
}

.ac-header-right { margin-left: auto; }
.ac-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 5px;
  background: var(--ac-navy); color: #ffffff;
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
}
.ac-back i { color: var(--ac-orange); font-size: 1rem; }
.ac-back:hover { background: #0d2e4f; }

/* Main */
.ac-main {
  max-width: 1320px; margin: 0 auto; padding: 24px 28px 80px 28px;
}

/* Hero */
.ac-hero {
  background: linear-gradient(135deg, #0a2540 0%, #143659 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.ac-hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ac-hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ac-orange); font-weight: 700; margin-bottom: 10px;
}
.ac-hero h1 {
  font-size: 2.2rem; line-height: 1.15; margin: 0 0 12px 0;
  font-weight: 700; letter-spacing: -0.015em;
  max-width: 720px;
}
.ac-hero-sub {
  font-size: 1.02rem; max-width: 720px;
  color: rgba(255,255,255,0.82); margin: 0 0 26px 0;
  line-height: 1.55;
}
.ac-hero-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
}
.ac-stat { display: flex; flex-direction: column; gap: 2px; }
.ac-stat-num {
  font-size: 1.85rem; font-weight: 700; color: var(--ac-orange);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.ac-stat-k {
  font-size: 0.78rem; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Continue banner */
.ac-continue {
  background: var(--ac-orange-soft);
  border: 1px solid #ffd9b3;
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 16px;
}
.ac-continue-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ac-orange); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ac-continue-text { flex: 1; }
.ac-continue-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #8a3a00; font-weight: 700;
}
.ac-continue-title {
  font-size: 1rem; font-weight: 600; color: var(--ac-navy);
}
.ac-continue-meta {
  font-size: 0.82rem; color: #8a3a00;
}
.ac-continue a {
  background: var(--ac-navy); color: #ffffff;
  padding: 9px 18px; border-radius: 5px;
  text-decoration: none; font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.ac-continue a:hover { background: #0d2e4f; }

/* Live PWLB rate-notice banner */
.ac-todays-rates {
  background: #f1f8ee;
  border: 1px solid #c4dfb6;
  border-radius: 10px;
  padding: 14px 22px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 16px;
}
.ac-tr-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: #1e7d3e; color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.ac-tr-body { flex: 1; min-width: 0; }
.ac-tr-title {
  font-size: 0.95rem; font-weight: 600; color: var(--ac-navy);
  line-height: 1.3;
}
.ac-tr-title b { color: #1e7d3e; }
.ac-tr-sub {
  font-size: 0.78rem; color: #2d5a1c;
  margin-top: 2px;
}
.ac-tr-cta {
  background: #1e7d3e; color: #ffffff;
  padding: 8px 14px; border-radius: 5px;
  text-decoration: none; font-weight: 500;
  font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ac-tr-cta:hover { background: #145c2c; color: #ffffff; }
@media (max-width: 720px) {
  .ac-todays-rates { flex-wrap: wrap; }
  .ac-tr-cta { width: 100%; justify-content: center; }
}

/* Search */
.ac-search-row {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.ac-search {
  flex: 1; min-width: 240px; max-width: 480px;
  position: relative;
}
.ac-search i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ac-muted);
}
.ac-search input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1px solid var(--ac-line); border-radius: 6px;
  font-size: 0.92rem; font-family: inherit;
  background: var(--ac-card);
}
.ac-search input:focus {
  outline: none; border-color: var(--ac-orange);
  box-shadow: 0 0 0 3px rgba(253,126,20,0.15);
}

.ac-filter-pills { display: inline-flex; gap: 4px; }
.ac-pill {
  background: var(--ac-card); border: 1px solid var(--ac-line);
  padding: 7px 14px; border-radius: 14px;
  font-size: 0.82rem; color: var(--ac-text);
  cursor: pointer; font-family: inherit;
  font-weight: 500;
}
.ac-pill:hover { background: var(--ac-line-soft); }
.ac-pill.active {
  background: var(--ac-navy); color: #ffffff;
  border-color: var(--ac-navy);
}

/* Schools */
.ac-schools { display: flex; flex-direction: column; gap: 36px; }

.ac-school-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 2px solid var(--ac-line);
  padding-bottom: 8px; margin-bottom: 18px;
}
.ac-school-icon {
  font-size: 1.2rem; color: var(--ac-orange);
}
.ac-school-title {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ac-navy);
}
.ac-school-count {
  font-size: 0.78rem; color: var(--ac-muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* Course grid */
.ac-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.ac-card {
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 20px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ac-card.is-available:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 8px 22px rgba(10, 37, 64, 0.06);
  transform: translateY(-1px);
}

.ac-card.is-coming {
  background: #fafbfc;
}

.ac-card-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 8px;
}

.ac-card-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 6px; font-size: 1rem;
}
.ac-card.is-coming .ac-card-icon { background: var(--ac-line-soft); color: var(--ac-muted); }

.ac-card-title {
  font-size: 1rem; font-weight: 600; color: var(--ac-navy);
  line-height: 1.3; flex: 1;
}

.ac-card-status {
  font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 10px;
  white-space: nowrap;
}
.ac-card-status.complete { background: #d4edda; color: #155724; }
.ac-card-status.in-progress { background: var(--ac-orange-soft); color: #8a3a00; }
.ac-card-status.not-started { background: var(--ac-line-soft); color: var(--ac-muted); }
.ac-card-status.coming { background: #ede7f6; color: #5e35b1; }

.ac-card-desc {
  font-size: 0.86rem; color: var(--ac-text);
  line-height: 1.55; margin: 0 0 14px 0;
  flex: 1;
}

.ac-card-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--ac-muted);
  margin-bottom: 14px;
}
.ac-card-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}
.ac-card-meta i { color: var(--ac-orange); font-size: 0.85rem; }
.ac-card-meta .live-badge {
  background: #d4edda; color: #155724;
  padding: 2px 6px; border-radius: 3px;
  font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.65rem;
}

.ac-card-progress {
  height: 4px; background: var(--ac-line);
  border-radius: 2px; overflow: hidden;
  margin: 0 0 12px 0;
}
.ac-card-progress-fill {
  height: 100%; background: var(--ac-orange);
  width: 0%;
}

.ac-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--ac-navy); color: #ffffff;
  border-radius: 5px;
  text-decoration: none; font-size: 0.85rem;
  font-weight: 500;
  align-self: flex-start;
}
.ac-card-cta:hover { background: #0d2e4f; }
.ac-card.is-coming .ac-card-cta {
  background: var(--ac-line-soft); color: var(--ac-muted);
  pointer-events: none;
}

/* Hidden / filtered */
.ac-card.is-hidden { display: none; }
.ac-school-section.is-empty { display: none; }

/* Footer */
.ac-foot {
  text-align: center;
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--ac-line);
  color: var(--ac-muted); font-size: 0.82rem;
}
.ac-foot-meta {
  margin-top: 4px; font-size: 0.76rem;
  color: #adb5bd;
}

@media (max-width: 720px) {
  .ac-main { padding: 22px 16px 60px 16px; }
  .ac-hero { padding: 24px 22px; }
  .ac-hero h1 { font-size: 1.6rem; }
  .ac-hero-stats { gap: 24px; }
  .ac-grid { grid-template-columns: 1fr; }
}

/* ----- Audience gate (shown until user picks officer / member) ----- */
.ac-audience-gate {
  text-align: center;
  padding: 40px 20px 60px 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.ac-gate-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ac-orange); font-weight: 700; margin-bottom: 14px;
}
.ac-audience-gate h1 {
  font-size: 2.4rem; line-height: 1.15; font-weight: 700;
  color: var(--ac-navy); margin: 0 0 14px 0;
  letter-spacing: -0.015em;
}
.ac-gate-sub {
  max-width: 640px; margin: 0 auto 36px auto;
  font-size: 1.02rem; line-height: 1.55; color: var(--ac-text);
}
.ac-gate-cards {
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
  max-width: 920px; margin: 0 auto;
}
@media (max-width: 720px) { .ac-gate-cards { grid-template-columns: 1fr; } }

.ac-gate-card {
  background: var(--ac-card);
  border: 2px solid var(--ac-line);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.ac-gate-card:hover {
  border-color: var(--ac-orange);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(10, 37, 64, 0.10);
}
.ac-gate-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--ac-orange) 0%, #e56e0c 100%);
  color: #ffffff; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px;
}
.ac-gate-title {
  font-size: 1.3rem; font-weight: 600; color: var(--ac-navy);
  margin-bottom: 8px;
}
.ac-gate-desc {
  font-size: 0.92rem; line-height: 1.6;
  color: var(--ac-text); flex: 1;
  margin-bottom: 16px;
}
.ac-gate-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--ac-muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-gate-meta i { color: var(--ac-orange); margin-right: 4px; }
.ac-gate-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ac-navy); font-weight: 600; font-size: 0.92rem;
}
.ac-gate-card:hover .ac-gate-cta { color: var(--ac-orange); }
.ac-gate-foot {
  margin-top: 28px; font-size: 0.85rem; color: var(--ac-muted);
}

/* ----- Audience badge + switch in header ----- */
.ac-active-audience {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ac-muted); font-weight: 600;
  border-left: 1px solid var(--ac-line);
  padding-left: 14px; margin-left: 6px;
}
.ac-audience-switch {
  background: transparent; border: 1px solid var(--ac-line);
  color: var(--ac-muted); font-size: 0.78rem; font-weight: 500;
  padding: 6px 12px; border-radius: 5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; margin-right: 10px;
}
.ac-audience-switch:hover {
  background: var(--ac-line-soft); color: var(--ac-navy);
}

/* ----- Document Review tile (hero placement) ----- */
.ac-review-tile {
  display: flex; gap: 22px; align-items: flex-start;
  background: linear-gradient(135deg, #fff5e9 0%, #ffe8d3 100%);
  border: 1px solid #ffd9b3;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.ac-review-tile::after {
  content: "";
  position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ac-review-tile-mark {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--ac-navy); color: var(--ac-orange);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.ac-review-tile-body { flex: 1; }
.ac-review-tile-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ac-orange); font-weight: 700; margin-bottom: 6px;
}
.ac-review-tile h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--ac-navy);
  margin: 0 0 8px 0; letter-spacing: -0.005em;
}
.ac-review-tile p {
  font-size: 0.92rem; line-height: 1.55; color: #5b3811;
  margin: 0 0 14px 0; max-width: 700px;
}
.ac-review-tile-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-review-cta-primary, .ac-review-cta-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 5px;
  text-decoration: none; font-weight: 500; font-size: 0.88rem;
}
.ac-review-cta-primary {
  background: var(--ac-navy); color: #ffffff;
}
.ac-review-cta-primary:hover { background: #0d2e4f; }
.ac-review-cta-secondary {
  background: #ffffff; color: var(--ac-navy);
  border: 1px solid #ffd9b3;
}
.ac-review-cta-secondary:hover { background: #fff5e9; }

/* ----- Reference grid (TMS Mirror sub-surfaces) ----- */
.ac-ref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.ac-ref-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ac-ref-card:hover {
  border-color: var(--ac-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.06);
}
.ac-ref-card-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--ac-orange-soft);
  color: var(--ac-orange);
  border: 1px solid #ffd9b3;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.ac-ref-card-body { flex: 1; min-width: 0; }
.ac-ref-card-title {
  font-size: 0.98rem; font-weight: 600; color: var(--ac-navy);
  margin-bottom: 4px;
}
.ac-ref-card-sub {
  font-size: 0.84rem; color: var(--ac-muted); line-height: 1.5;
}
.ac-ref-card-arrow {
  color: var(--ac-muted); font-size: 0.95rem; flex-shrink: 0;
  margin-top: 4px;
  transition: color 0.15s, transform 0.15s;
}
.ac-ref-card:hover .ac-ref-card-arrow {
  color: var(--ac-orange);
  transform: translateX(2px);
}
@media (max-width: 720px) {
  .ac-ref-grid { grid-template-columns: 1fr; }
}

/* ----- Track section subtitle (under each School) ----- */
.ac-school-text { display: flex; flex-direction: column; }
.ac-school-sub {
  font-size: 0.78rem; color: var(--ac-muted);
  font-weight: 400; letter-spacing: 0;
  text-transform: none; margin-top: 1px;
}

/* ===========================================================================
   REDESIGNED CATALOGUE SURFACE
   - Slim hero, view toggle, pathways grid, dense tile catalogue, detail drawer
   =========================================================================== */

/* Slim hero */
.ac-hero-slim {
  display: flex; align-items: center; gap: 32px;
  padding: 22px 32px;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #0a2540 0%, #143659 60%, #1a4775 100%);
}
.ac-hero-slim::after {
  width: 320px; height: 320px;
  right: -120px; top: -140px;
}
.ac-hero-text { flex: 1; min-width: 0; }
.ac-hero-slim h1 {
  font-size: 1.55rem; margin: 4px 0 4px 0;
  letter-spacing: -0.01em;
}
.ac-hero-slim .ac-hero-sub {
  font-size: 0.9rem; margin: 0; max-width: 580px;
}
.ac-hero-slim .ac-hero-eyebrow {
  font-size: 0.68rem; margin-bottom: 4px;
}
.ac-hero-slim .ac-hero-stats {
  border: none; padding: 0; gap: 22px;
  flex-shrink: 0; flex-wrap: nowrap;
}
.ac-hero-slim .ac-stat-num { font-size: 1.5rem; }
.ac-hero-slim .ac-stat-k { font-size: 0.66rem; }

/* Toolbar (view toggle + search) */
.ac-toolbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.ac-view-toggle {
  display: inline-flex; gap: 2px;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 8px; padding: 3px;
  box-shadow: 0 1px 2px rgba(10,37,64,0.04);
}
.ac-view-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 6px;
  font-family: inherit; font-size: 0.86rem; font-weight: 500;
  color: var(--ac-muted);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.ac-view-btn:hover { color: var(--ac-navy); }
.ac-view-btn.active {
  background: var(--ac-navy); color: #ffffff;
}
.ac-view-btn.active i { color: var(--ac-orange); }
.ac-view-badge {
  background: var(--ac-orange); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 6px; border-radius: 8px;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-left: 4px;
}
.ac-toolbar .ac-search { flex: 1; max-width: 380px; min-width: 200px; }

/* ===== Pathways rows ===== */
.ac-pathways-rows {
  display: flex; flex-direction: column;
  gap: 8px;
}

.ac-pw-row {
  position: relative;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 10px;
  padding: 12px 16px 12px 14px;
  text-align: left; cursor: pointer;
  font-family: inherit;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 200px 18px;
  gap: 16px; align-items: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
}
.ac-pw-row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ac-orange) 0%, #ffb877 100%);
  opacity: 0.9;
}
.ac-pw-row:hover {
  border-color: var(--ac-orange);
  box-shadow: 0 6px 18px rgba(10,37,64,0.08);
  transform: translateX(2px);
}
.ac-pw-row.is-done::before { background: linear-gradient(180deg, #2e8540 0%, #6dd382 100%); }

.ac-pw-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #fff5e9 0%, #ffe2c4 100%);
  color: var(--ac-orange);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ac-pw-row.is-done .ac-pw-icon {
  background: linear-gradient(135deg, #d4edda 0%, #a8e0b6 100%);
  color: #2e8540;
}

.ac-pw-body { min-width: 0; }
.ac-pw-line1 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 2px;
}
.ac-pw-title {
  font-size: 0.98rem; font-weight: 700;
  color: var(--ac-navy); line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-pw-level {
  font-size: 0.6rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
  color: var(--ac-muted);
  background: var(--ac-line-soft);
  padding: 2px 7px; border-radius: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ac-pw-row.level-foundation .ac-pw-level { background: #e8f4fd; color: #1864ab; }
.ac-pw-row.level-practitioner .ac-pw-level { background: #fff5e9; color: #b8541d; }
.ac-pw-row.level-introductory .ac-pw-level { background: #ede7f6; color: #5e35b1; }
.ac-pw-row.level-active-scrutineer .ac-pw-level { background: #e6f7ed; color: #2e8540; }

.ac-pw-tag {
  font-size: 0.82rem; color: var(--ac-muted);
  line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-pw-meta {
  display: flex; gap: 14px;
  font-size: 0.74rem; color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
}
.ac-pw-meta span { display: inline-flex; align-items: center; gap: 4px; }
.ac-pw-meta i { color: var(--ac-orange); font-size: 0.85rem; }

.ac-pw-progress { display: flex; flex-direction: column; gap: 4px; }
.ac-pw-bar {
  height: 5px; background: var(--ac-line-soft);
  border-radius: 3px; overflow: hidden;
}
.ac-pw-bar-fill {
  height: 100%; background: var(--ac-orange);
  transition: width 0.4s;
}
.ac-pw-row.is-done .ac-pw-bar-fill { background: #2e8540; }
.ac-pw-status {
  font-size: 0.72rem; font-weight: 600;
  color: var(--ac-navy);
  display: inline-flex; align-items: center; gap: 4px;
}
.ac-pw-row.is-done .ac-pw-status { color: #2e8540; }
.ac-pw-chev {
  color: var(--ac-orange);
  font-size: 0.95rem;
  transition: transform 0.18s;
}
.ac-pw-row:hover .ac-pw-chev { transform: translateX(3px); }

@media (max-width: 820px) {
  .ac-pw-row {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      "icon body chev"
      "icon meta chev"
      "icon progress chev";
    gap: 4px 12px;
  }
  .ac-pw-icon { grid-area: icon; }
  .ac-pw-body { grid-area: body; }
  .ac-pw-meta { grid-area: meta; }
  .ac-pw-progress { grid-area: progress; width: 100%; }
  .ac-pw-chev { grid-area: chev; align-self: center; }
  .ac-pw-tag { white-space: normal; }
}

/* ===== Compact catalogue (tracks of micro-tiles) ===== */
.ac-tracks-compact {
  display: flex; flex-direction: column; gap: 24px;
  margin-top: 16px;
}
.ac-track-block { display: flex; flex-direction: column; gap: 10px; }
.ac-track-block.is-empty { display: none; }

.ac-track-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-track-icon {
  width: 28px; height: 28px;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.ac-track-title {
  font-size: 0.85rem; font-weight: 700; color: var(--ac-navy);
  letter-spacing: 0.02em;
}
.ac-track-sub { font-size: 0.74rem; color: var(--ac-muted); margin-top: 1px; }
.ac-track-text { flex: 1; min-width: 0; }
.ac-track-count {
  font-size: 0.72rem; font-weight: 600;
  color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
  background: var(--ac-line-soft);
  padding: 3px 9px; border-radius: 10px;
}

.ac-tile-grid {
  display: grid; gap: 6px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ac-tile-grid { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
}
@media (min-width: 1400px) {
  .ac-tile-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.ac-tile {
  position: relative;
  background: var(--ac-card);
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: left; cursor: pointer;
  font-family: inherit;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  overflow: hidden;
  min-height: 52px;
}
.ac-tile:hover {
  border-color: var(--ac-orange);
  background: #fffaf3;
  transform: translateX(2px);
}
.ac-tile.is-coming {
  background: #fafbfc;
  opacity: 0.78;
}
.ac-tile.is-coming:hover { opacity: 1; background: #fafbfc; }
.ac-tile.is-hidden { display: none; }

.ac-row-icon {
  width: 32px; height: 32px;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.ac-tile.is-coming .ac-row-icon {
  background: var(--ac-line-soft); color: var(--ac-muted);
}
.ac-row-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ac-row-title {
  font-size: 0.86rem; font-weight: 600;
  color: var(--ac-navy);
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-row-sub {
  font-size: 0.7rem; color: var(--ac-muted);
  display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-row-live {
  background: #d4edda; color: #155724;
  font-size: 0.6rem; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.ac-row-status {
  font-size: 0.72rem; font-weight: 700;
  color: var(--ac-navy);
  background: var(--ac-line-soft);
  padding: 4px 10px; border-radius: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ac-tile[data-status="complete"] .ac-row-status {
  background: #d4edda; color: #155724;
}
.ac-tile[data-status="in-progress"] .ac-row-status {
  background: var(--ac-orange-soft); color: #8a3a00;
}
.ac-tile[data-status="coming"] .ac-row-status {
  background: #ede7f6; color: #5e35b1;
}

.ac-tile-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ac-tile-dot.dot-done { background: #2e8540; }
.ac-tile-dot.dot-prog { background: var(--ac-orange); }
.ac-tile-dot.dot-new { background: #ced4da; }
.ac-tile-dot.dot-coming { background: #b39ddb; }

.ac-tile-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: transparent;
  display: block;
}
.ac-tile-bar > span {
  display: block; height: 100%;
  background: var(--ac-orange);
}

/* Filter pills row inside catalogue */
.ac-view-catalogue .ac-filter-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 4px;
}
.ac-view-catalogue .ac-pill {
  padding: 5px 11px; border-radius: 12px;
  font-size: 0.76rem;
}
.ac-view-catalogue .ac-pill i { margin-right: 4px; font-size: 0.78rem; }

/* ===== Detail drawer ===== */
.ac-drawer {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end;
}
.ac-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 37, 64, 0); cursor: pointer;
  transition: background 0.22s;
}
.ac-drawer.is-open .ac-drawer-backdrop { background: rgba(10, 37, 64, 0.42); }
.ac-drawer-panel {
  position: relative;
  background: var(--ac-card);
  width: min(560px, 96vw);
  height: 100%;
  overflow-y: auto;
  padding: 28px 32px 36px 32px;
  box-shadow: -16px 0 48px rgba(10,37,64,0.18);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ac-drawer.is-open .ac-drawer-panel { transform: translateX(0); }

.ac-dr-close {
  position: absolute; top: 16px; right: 18px;
  background: var(--ac-line-soft); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; color: var(--ac-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.ac-dr-close:hover { background: var(--ac-line); }

.ac-dr-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ac-orange);
  font-weight: 700; margin-bottom: 10px;
}
.ac-dr-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
}
.ac-dr-head h2 {
  margin: 0; font-size: 1.4rem; font-weight: 700;
  color: var(--ac-navy); letter-spacing: -0.01em;
  line-height: 1.2;
}
.ac-dr-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--ac-orange-soft); color: var(--ac-orange);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.ac-dr-icon-pw {
  background: linear-gradient(135deg, var(--ac-navy) 0%, #1a4775 100%);
  color: var(--ac-orange);
}

.ac-dr-tag {
  font-size: 0.95rem; color: var(--ac-text);
  font-style: italic;
  margin: 0 0 14px 0;
}

.ac-dr-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 12px 0 16px 0;
}
.ac-dr-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ac-line-soft);
  color: var(--ac-text);
  padding: 4px 10px; border-radius: 11px;
  font-size: 0.74rem; font-weight: 500;
}
.ac-dr-pill i { color: var(--ac-orange); font-size: 0.82rem; }
.ac-dr-pill.live { background: #d4edda; color: #155724; }
.ac-dr-pill.live i { color: #155724; }
.ac-dr-pill.status-complete { background: #d4edda; color: #155724; }
.ac-dr-pill.status-in-progress { background: var(--ac-orange-soft); color: #8a3a00; }
.ac-dr-pill.status-coming { background: #ede7f6; color: #5e35b1; }
.ac-dr-pill.status-not-started { background: var(--ac-line-soft); color: var(--ac-muted); }

.ac-dr-desc {
  font-size: 0.94rem; line-height: 1.6;
  color: var(--ac-text);
  margin: 0 0 18px 0;
}

.ac-dr-progress-wrap { margin-bottom: 18px; }
.ac-dr-progress {
  height: 6px; background: var(--ac-line);
  border-radius: 3px; overflow: hidden;
  margin-bottom: 6px;
}
.ac-dr-progress > div {
  height: 100%; background: var(--ac-orange);
  transition: width 0.4s;
}
.ac-dr-progress-text {
  font-size: 0.78rem; color: var(--ac-muted);
}

.ac-dr-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ac-navy); color: #ffffff;
  padding: 12px 22px; border-radius: 7px;
  text-decoration: none; font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.ac-dr-cta:hover { background: #0d2e4f; }
.ac-dr-cta i { color: var(--ac-orange); }
.ac-dr-cta.is-disabled {
  background: var(--ac-line-soft); color: var(--ac-muted);
  pointer-events: none;
}

.ac-dr-section {
  border-top: 1px solid var(--ac-line);
  margin-top: 24px; padding-top: 18px;
}
.ac-dr-section-head {
  font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 700;
  color: var(--ac-muted);
  margin-bottom: 10px;
}
.ac-dr-link {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: var(--ac-line-soft); border: none;
  padding: 10px 14px; border-radius: 7px;
  font-family: inherit; font-size: 0.88rem;
  color: var(--ac-navy); font-weight: 500;
  cursor: pointer;
  margin-bottom: 6px;
  transition: background 0.15s;
}
.ac-dr-link:hover { background: var(--ac-orange-soft); color: #8a3a00; }
.ac-dr-link i:first-child { color: var(--ac-orange); }
.ac-dr-link i:last-child { margin-left: auto; }

.ac-dr-courselist {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.ac-dr-courseitem {
  width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent;
  border-radius: 7px; padding: 8px 10px;
  font-family: inherit; cursor: pointer;
  display: grid;
  grid-template-columns: 22px 22px 1fr auto;
  gap: 10px; align-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.ac-dr-courseitem:hover {
  background: var(--ac-line-soft);
  border-color: var(--ac-line);
}
.ac-dr-courseitem-num {
  width: 22px; height: 22px;
  background: var(--ac-line-soft); color: var(--ac-muted);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ac-dr-courseitem-status { font-size: 1rem; color: var(--ac-muted); }
.status-complete .ac-dr-courseitem-status { color: #2e8540; }
.status-in-progress .ac-dr-courseitem-status { color: var(--ac-orange); }
.status-coming .ac-dr-courseitem-status { color: #b39ddb; }
.ac-dr-courseitem-title {
  font-size: 0.88rem; font-weight: 500;
  color: var(--ac-navy);
}
.ac-dr-courseitem-meta {
  font-size: 0.72rem; color: var(--ac-muted);
  font-variant-numeric: tabular-nums;
}

.ac-dr-cert {
  margin-top: 18px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #fff5e9 0%, #ffe8d3 100%);
  border: 1px solid #ffd9b3;
  border-radius: 10px;
  padding: 14px 18px;
}
.ac-dr-cert > i {
  font-size: 2rem; color: var(--ac-orange);
}
.ac-dr-cert-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--ac-navy);
}
.ac-dr-cert-sub {
  font-size: 0.78rem; color: #8a3a00;
}

.ac-empty {
  text-align: center; padding: 40px 20px;
  color: var(--ac-muted);
}

@media (max-width: 720px) {
  .ac-hero-slim { flex-direction: column; align-items: flex-start; padding: 18px 22px; }
  .ac-hero-slim .ac-hero-stats { gap: 18px; }
  .ac-toolbar { gap: 10px; }
  .ac-view-btn { padding: 7px 11px; font-size: 0.8rem; }
  .ac-tile-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ac-drawer-panel { width: 100%; padding: 22px; }
}

/* ===========================================================================
   SIGN-UP GATE — nudge banner, modal, user chip, signup button
   =========================================================================== */

/* Nudge banner */
.ac-nudge {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, #0a2540 0%, #1a4775 100%);
  color: #ffffff;
  border-radius: 10px;
  padding: 12px 14px 12px 16px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.ac-nudge::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.ac-nudge-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--ac-orange); color: #fff;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.ac-nudge-body { flex: 1; min-width: 0; }
.ac-nudge-title {
  font-size: 0.9rem; font-weight: 600;
  color: #fff; line-height: 1.3;
}
.ac-nudge-sub {
  font-size: 0.78rem; color: rgba(255,255,255,0.72);
  margin-top: 1px;
}
.ac-nudge-cta {
  background: var(--ac-orange); color: #fff;
  border: none; cursor: pointer;
  padding: 9px 18px; border-radius: 6px;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  position: relative; z-index: 1;
}
.ac-nudge-cta:hover { background: #e56e0c; }
.ac-nudge-dismiss {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); font-size: 1.1rem;
  padding: 4px 6px; border-radius: 4px;
  position: relative; z-index: 1;
}
.ac-nudge-dismiss:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Sign-up button (header, when not signed in) */
.ac-signup-btn {
  background: var(--ac-orange); color: #fff;
  border: none; cursor: pointer;
  padding: 7px 14px; border-radius: 5px;
  font-family: inherit; font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 10px;
  transition: background 0.15s;
}
.ac-signup-btn:hover { background: #e56e0c; }
.ac-signup-btn i { font-size: 0.95rem; }

/* User chip (header, when signed in) */
.ac-user-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ac-line-soft);
  border: 1px solid var(--ac-line);
  border-radius: 999px;
  padding: 4px 6px 4px 4px;
  margin-right: 10px;
  position: relative;
}
.ac-user-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--ac-orange) 0%, #e56e0c 100%);
  color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.ac-user-text { display: flex; flex-direction: column; line-height: 1.1; }
.ac-user-name {
  font-size: 0.8rem; font-weight: 600;
  color: var(--ac-navy);
  max-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-user-org {
  font-size: 0.68rem; color: var(--ac-muted);
  max-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-user-menu-btn {
  background: transparent; border: none; cursor: pointer;
  color: var(--ac-muted); font-size: 0.8rem;
  padding: 4px 6px; border-radius: 4px;
}
.ac-user-menu-btn:hover { color: var(--ac-navy); background: var(--ac-line); }
.ac-user-menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(10,37,64,0.14);
  min-width: 200px;
  padding: 4px;
  z-index: 60;
}
.ac-user-menu button {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.85rem;
  color: var(--ac-text);
  padding: 8px 12px; border-radius: 5px;
}
.ac-user-menu button:hover { background: var(--ac-line-soft); color: var(--ac-navy); }
.ac-user-menu button i { color: var(--ac-orange); font-size: 0.95rem; }

/* Sign-up modal */
.ac-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ac-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 37, 64, 0); cursor: pointer;
  transition: background 0.22s;
}
.ac-modal.is-open .ac-modal-backdrop { background: rgba(10, 37, 64, 0.55); }
.ac-modal-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px 28px 36px;
  width: min(480px, 96vw);
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(10,37,64,0.28);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.22s;
}
.ac-modal.is-open .ac-modal-panel { transform: translateY(0) scale(1); opacity: 1; }
.ac-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--ac-line-soft); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; color: var(--ac-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.ac-modal-close:hover { background: var(--ac-line); }
.ac-modal-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ac-orange);
  font-weight: 700; margin-bottom: 8px;
}
.ac-modal-panel h2 {
  margin: 0 0 8px 0; font-size: 1.4rem; font-weight: 700;
  color: var(--ac-navy); letter-spacing: -0.01em;
  line-height: 1.2;
}
.ac-modal-sub {
  margin: 0 0 20px 0; font-size: 0.88rem; line-height: 1.5;
  color: var(--ac-muted);
}

.ac-signup-form { display: flex; flex-direction: column; gap: 12px; }
.ac-field { display: flex; flex-direction: column; gap: 4px; }
.ac-field-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ac-navy);
}
.ac-req { color: var(--ac-orange); }
.ac-field input,
.ac-field select {
  padding: 10px 12px;
  border: 1px solid var(--ac-line);
  border-radius: 6px;
  font-family: inherit; font-size: 0.92rem;
  background: #fff; color: var(--ac-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ac-field input:focus,
.ac-field select:focus {
  outline: none; border-color: var(--ac-orange);
  box-shadow: 0 0 0 3px rgba(253,126,20,0.15);
}
.ac-field-check {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.82rem; color: var(--ac-text);
  line-height: 1.45;
  background: var(--ac-orange-soft);
  border: 1px solid #ffd9b3;
  border-radius: 7px; padding: 10px 12px;
  cursor: pointer;
}
.ac-field-check input { margin-top: 2px; flex-shrink: 0; accent-color: var(--ac-orange); }

.ac-signup-error {
  background: #fdecea; color: #b71c1c;
  border: 1px solid #f5c6c0;
  font-size: 0.84rem;
  padding: 9px 12px; border-radius: 6px;
}
.ac-signup-submit {
  background: var(--ac-navy); color: #fff;
  border: none; cursor: pointer;
  padding: 12px 18px; border-radius: 7px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
  transition: background 0.15s;
}
.ac-signup-submit:hover:not(:disabled) { background: #0d2e4f; }
.ac-signup-submit:disabled { opacity: 0.7; cursor: wait; }
.ac-signup-submit i { color: var(--ac-orange); }
.ac-signup-foot {
  font-size: 0.74rem; color: var(--ac-muted);
  line-height: 1.5; text-align: center;
  margin-top: 4px;
}
.ac-signup-foot a { color: var(--ac-navy); }

@media (max-width: 720px) {
  .ac-modal-panel { padding: 24px 22px 20px 22px; }
  .ac-user-name, .ac-user-org { max-width: 100px; }
  .ac-nudge { flex-wrap: wrap; }
}

/* ===== Today's PWLB rates modal ===== */
.ac-modal-rates .ac-rates-panel {
  width: min(1100px, 96vw);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Navy gradient header bar — matches the dashboard tile-header look */
.ac-rates-head {
  flex-shrink: 0;
  padding: 18px 28px 16px;
  background: linear-gradient(120deg, #0a2540 0%, #143659 60%, #1a4775 100%);
  color: #ffffff;
  border-bottom: none;
  margin-bottom: 0;
}
.ac-rates-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-orange);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.ac-rates-eyebrow i { font-size: 0.85rem; }
.ac-rates-head h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.ac-rates-head .ac-rates-no,
.ac-rates-head .ac-rates-meta,
.ac-rates-head small,
.ac-rates-head p { color: rgba(255, 255, 255, 0.85) !important; }
.ac-modal-rates .ac-rates-body { padding: 14px 28px 18px; overflow-y: auto; }
.ac-modal-rates .ac-modal-close {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}
.ac-modal-rates .ac-modal-close:hover {
  background: rgba(255, 255, 255, 0.20);
}
.ac-rates-no {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--ac-orange);
  color: #fff;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 1.2rem;
}
.ac-rates-when {
  font-size: 0.88rem;
  color: var(--ac-muted);
  margin-bottom: 8px;
}
.ac-rates-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.74rem;
  color: var(--ac-muted);
}
.ac-rates-key span { display: inline-flex; align-items: center; gap: 4px; }
.ac-rates-body {
  flex: 1;
  overflow: auto;
  margin: 0 -8px;
}
.ac-rates-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--ac-muted);
  font-size: 0.92rem;
}
.ac-rates-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ac-muted);
  font-size: 0.92rem;
}
.ac-spin { display: inline-block; animation: ac-spin 0.9s linear infinite; margin-right: 6px; }
@keyframes ac-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.ac-rates-table-wrap {
  padding: 0 8px;
}
.ac-rates-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.86rem;
  table-layout: fixed;
}
.ac-rates-table thead th {
  position: sticky;
  background: #fff;
  z-index: 2;
  text-align: center;
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 1px solid var(--ac-line);
}
.ac-rates-table thead .ac-rt-section th { top: 0; }
.ac-rates-table thead .ac-rt-profile th { top: 32px; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ac-muted); }
.ac-rt-period-h { top: 0 !important; left: 0; z-index: 3 !important; background: #fff !important; width: 76px; }
.ac-rt-sec-new {
  background: #f0f7ff !important;
  color: #1e3a8a;
  border-bottom: 2px solid #3b82f6 !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-rt-sec-rep {
  background: #fff7ed !important;
  color: #9a3412;
  border-bottom: 2px solid var(--ac-orange) !important;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-rt-sec-new i, .ac-rt-sec-rep i { margin-right: 4px; }
.ac-rates-table thead .ac-rt-new { color: #1e3a8a; background: #f0f7ff !important; }
.ac-rates-table thead .ac-rt-rep { color: #9a3412; background: #fff7ed !important; }
.ac-rates-table tbody tr:nth-child(odd) td { background: #fafbfc; }
.ac-rates-table tbody tr:hover td { background: #f3f4f6; }
.ac-rates-table tbody tr:hover .ac-rt-period { background: #f3f4f6; }
.ac-rt-period {
  position: sticky;
  left: 0;
  background: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ac-navy);
  text-align: left;
  padding: 6px 8px;
  border-right: 1px solid var(--ac-line-soft, #e5e7eb);
  white-space: nowrap;
  z-index: 1;
}
.ac-rt-cell {
  padding: 5px 6px;
  text-align: center;
  border-bottom: 1px solid var(--ac-line-soft, #f1f3f5);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  line-height: 1.2;
}
.ac-rt-cell.ac-rt-new { border-left: 1px solid var(--ac-line-soft, #f1f3f5); }
.ac-rt-cell.ac-rt-rep { border-left: 1px solid var(--ac-line-soft, #f1f3f5); }
.ac-rt-cell.ac-rt-new:first-of-type, .ac-rt-cell.ac-rt-rep:first-of-type { border-left: 2px solid var(--ac-line, #d1d5db); }
.ac-rt-r { display: block; }
.ac-rt-c { display: block; font-size: 0.66rem; margin-top: 1px; opacity: 0.85; }
.ac-rt-rate { font-weight: 700; color: var(--ac-navy); font-size: 0.92rem; }
.ac-rt-rate-pct { color: var(--ac-muted); font-size: 0.72rem; margin-left: 1px; }
.ac-rt-rate-na { color: #c1c7cd; font-size: 0.92rem; font-weight: 500; }
.ac-rt-chg-up { color: #b91c1c; font-weight: 600; font-size: 0.7rem; }
.ac-rt-chg-dn { color: #15803d; font-weight: 600; font-size: 0.7rem; }
.ac-rt-chg-flat { color: var(--ac-muted); font-weight: 500; font-size: 0.7rem; }
.ac-rt-chg-none { color: #c1c7cd; font-size: 0.7rem; }
/* Attractiveness shading is set inline (continuous green→white→red gradient).
   Override row-stripe so the inline style wins on odd rows. */
.ac-rates-table tbody tr:nth-child(odd) td[style*="rgba"] { background-color: inherit; }
.ac-rates-table tbody tr:hover td { filter: brightness(0.97); }

/* Legend gradient bar */
.ac-rt-attr-grad {
  position: relative;
  display: inline-block;
  width: 220px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(22,163,74,0.55) 0%, rgba(255,255,255,0) 50%, rgba(220,38,38,0.55) 100%);
  border: 1px solid rgba(0,0,0,0.06);
  vertical-align: middle;
  margin: 0 8px;
}
.ac-rt-attr-grad-l, .ac-rt-attr-grad-r {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.ac-rt-attr-grad-l { left: 6px; color: #14532d; }
.ac-rt-attr-grad-r { right: 6px; color: #7f1d1d; }

/* Multi-row legend */
.ac-rates-keys { display: flex; flex-direction: column; gap: 4px; }
.ac-rates-key-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.74rem; color: var(--ac-muted);
  align-items: center;
}
.ac-rates-key-row span { display: inline-flex; align-items: center; gap: 4px; }
.ac-rates-key-lbl {
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ac-navy); min-width: 96px;
}
.ac-rates-key-note { font-style: italic; color: #9ca3af; }

/* Toolbar above table */
.ac-rates-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 8px 12px;
  border-bottom: 1px solid var(--ac-line-soft, #f1f3f5);
  margin-bottom: 6px;
}
.ac-rates-mode {
  font-size: 0.82rem; color: var(--ac-muted);
}
.ac-rates-mode b { color: var(--ac-navy); }
.ac-rates-toggle {
  font: inherit; font-size: 0.82rem; font-weight: 600;
  background: var(--ac-orange-soft, #fff7ed);
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.ac-rates-toggle:hover { background: #ffe4c8; }
.ac-rates-toggle i { font-size: 0.95rem; }

.ac-rates-foot {
  flex-shrink: 0;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--ac-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ac-muted);
}
.ac-rates-foot i { color: var(--ac-orange); margin-right: 4px; }
.ac-rates-foot a { color: var(--ac-orange); text-decoration: none; }
.ac-rates-foot a:hover { text-decoration: underline; }

/* Make the trigger CTA look like a button (it was an <a> before) */
button.ac-tr-cta {
  font: inherit;
  border: none;
  cursor: pointer;
}

@media (max-width: 720px) {
  .ac-modal-rates .ac-rates-panel { padding: 18px 14px 14px; }
  .ac-rates-table { font-size: 0.78rem; }
  .ac-rt-period-h { width: 60px; }
  .ac-rt-period { font-size: 0.7rem; padding: 5px 6px; }
  .ac-rt-rate { font-size: 0.84rem; }
  .ac-rates-key { font-size: 0.68rem; gap: 10px; }
}

/* ===========================================================
   Coming-soon banner (top of academy main, every view).
   Soft orange-tinted bar with a small icon + heading + subtext.
   =========================================================== */
.ac-coming-soon-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 18px 0 28px;
  background: linear-gradient(120deg, #fff5e9 0%, #fff9f1 100%);
  border: 1px solid rgba(253, 126, 20, 0.30);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.08);
}

.ac-coming-soon-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--ac-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ac-coming-soon-body { flex: 1 1 auto; min-width: 0; }

.ac-coming-soon-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ac-navy);
  letter-spacing: -0.005em;
}

.ac-coming-soon-sub {
  margin-top: 2px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ac-text);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .ac-coming-soon-banner { padding: 12px 14px; gap: 10px; }
  .ac-coming-soon-icon  { width: 32px; height: 32px; font-size: 0.95rem; }
  .ac-coming-soon-title { font-size: 0.88rem; }
  .ac-coming-soon-sub   { font-size: 0.78rem; }
}

/* Pre-launch redesign:
   - sign-up disabled (Academy gated by expert-reviewer code)
   - audience selection removed (default = officer track) */
#acSignupBtn,
#acAudienceSwitch,
#acAudienceGate,
#acSignupNudge,
.ac-user-menu [data-user-action="switch-audience"] { display: none !important; }
