/* my.accentflow.com: the student and client portal (phone-first), on top of app.css and practice.css. Af Design System 2026 tokens only. */
.portal h1 { font-size: clamp(30px, 8vw, 40px); }
.portal .card + .card, .portal section + section { margin-top: 18px; }
.portal .viewas { position: sticky; top: 58px; z-index: 20; margin: -8px 0 18px; padding: 10px 14px; border-radius: var(--r-md); background: var(--af-gold-50); border: 1px solid var(--af-gold-200); color: var(--text-strong); font-size: 14px; }
.portal .pcard.off { pointer-events: none; }
.portal .rlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); background: var(--surface-card); text-decoration: none; color: var(--text-body); box-shadow: var(--shadow-xs); }
.portal .rlink + .rlink { margin-top: 10px; }
.portal .rlink b { font: 700 17px/1.2 var(--font-display); color: var(--text-strong); display: block; }
.portal .signout { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }
.portal form { margin: 0; }
.portal .btn.lg { min-height: 52px; }
.portal .notice { margin: 0 0 14px; }
.practice-home { font-size: 14px; margin: 0 0 4px; }

/* ---------- LMS v0: the weeks (axis colours are the 3D tokens: X Timing blue, Y Intonation green, Z Pronunciation orange) */
.ax-X { --ax: var(--tda-blue); --ax-tint: var(--tda-blue-100); --ax-ink: var(--tda-blue); }
.ax-Y { --ax: var(--tda-green); --ax-tint: var(--tda-green-100); --ax-ink: #08804A; }
.ax-Z { --ax: var(--tda-orange); --ax-tint: var(--tda-orange-100); --ax-ink: #C75500; }
.ax-none { --ax: var(--af-gray-300); --ax-tint: var(--af-gray-100); --ax-ink: var(--text-muted); }
body.has-weeks main.portal { max-width: 1080px; }
.playout { display: block; }
.pside { display: none; }
.pmain { min-width: 0; }
@media (min-width: 860px) {
  .playout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
  .pside { display: block; position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; }
  .wstrip, .weeks-phone { display: none !important; }
}
.wlist { display: flex; flex-direction: column; gap: 6px; }
.wrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-left: 5px solid var(--ax); border-radius: var(--r-md);
  background: var(--surface-card); color: var(--text-body); text-decoration: none; box-shadow: var(--shadow-xs); }
a.wrow:hover { color: var(--text-body); box-shadow: var(--shadow-sm); }
.wrow .wn { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ax-tint); color: var(--ax-ink); font: 700 14px/1 var(--font-ui); }
.wrow .wt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wrow .wtopic { font: 600 15px/1.25 var(--font-ui); color: var(--text-strong); }
.wrow .wdate { font-size: 12px; color: var(--text-muted); }
.wrow.shut { background: transparent; box-shadow: none; border-left-color: var(--af-gray-100); }
.wrow.shut .wtopic { color: var(--text-muted); font-weight: 500; }
.wrow.shut .wn { background: transparent; border: 1px dashed var(--af-gray-300); color: var(--text-muted); }
.wrow.now .wtopic::after { content: "This week"; display: block; margin-top: 3px; font: 700 10px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ax-ink); }
.wrow.cur { outline: 2px solid var(--af-blue); outline-offset: 1px; }
.wstrip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 0 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wstrip::-webkit-scrollbar { display: none; }
.wchip { flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--font-ui); text-decoration: none;
  background: var(--ax-tint); color: var(--ax-ink); border: 2px solid transparent; }
.wchip.now { border-color: var(--ax); }
.wchip.shut { background: transparent; border: 1px dashed var(--af-gray-300); color: var(--text-muted); }
.thisweek { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--border-subtle); border-left: 6px solid var(--ax); border-radius: var(--r-lg);
  background: var(--surface-card); color: var(--text-body); text-decoration: none; box-shadow: var(--shadow-sm); }
.thisweek:hover { color: var(--text-body); box-shadow: var(--shadow-md); }
.thisweek b { font: 700 22px/1.2 var(--font-display); color: var(--text-strong); }
.thisweek .btn { justify-self: start; margin-top: 6px; }
.axtag { justify-self: start; display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); background: var(--ax-tint); color: var(--ax-ink); font: 700 12px/1 var(--font-ui); }
.portal .rlink.off { pointer-events: none; }
.wtitle { border-left: 6px solid var(--ax); padding-left: 12px; }
.wsec { margin-top: 26px; }
.wsec h2 { font-size: 22px; }
.pnotice .prose { margin-bottom: .8em; }
.pnotice .btn { margin-top: 8px; }
@media (max-width: 859px) { .weeks-phone .wlist { gap: 8px; } }
