/* ============================================================
   CoursePlanner.ai — application UI (uses tokens from styles.css)
   ============================================================ */
.app-body { background: var(--paper-2); min-height: 100svh; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- app bar ---------- */
.app-bar { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.app-bar-inner { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 clamp(14px, 3vw, 26px); }
.app-bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.app-who { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.trial-pill { font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: rgba(217,138,61,.18); color: #8a541e; }
.nav-toggle { display: none; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); transition: background .18s var(--ease); }
.icon-btn:hover { background: rgba(27,26,22,.06); }

/* data menu */
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; min-width: 220px; z-index: 70; }
.menu-pop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; font-size: .92rem; color: var(--ink); }
.menu-pop button:hover { background: rgba(27,26,22,.06); }
.menu-pop button.danger { color: #b4451f; }
.menu-pop button.danger:hover { background: #f7e0d4; }

/* ---------- shell ---------- */
.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100svh - 64px); }
.app-nav { position: sticky; top: 64px; align-self: start; height: calc(100svh - 64px); overflow-y: auto; background: var(--paper); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; color: var(--ink-soft); font-weight: 500; font-size: .96rem; transition: background .16s var(--ease), color .16s var(--ease); }
.nav-link svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.nav-link:hover { background: rgba(27,26,22,.05); color: var(--ink); }
.nav-link.is-active { background: var(--ivy); color: var(--paper); }
.nav-link.is-active svg { opacity: 1; }
.nav-phase { margin-left: auto; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: rgba(27,26,22,.1); color: var(--ink-mute); }
.nav-link.is-active .nav-phase { background: rgba(246,241,231,.2); color: var(--paper); }
.nav-foot { margin-top: auto; padding: 14px 12px 4px; font-size: .8rem; color: var(--ink-mute); line-height: 1.5; }
.nav-foot strong { color: var(--ivy); }
.nav-scrim { display: none; }

/* ---------- main ---------- */
.app-main { padding: clamp(20px, 3.5vw, 40px); max-width: 1120px; }
.view-head { margin-bottom: 26px; }
.view-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ivy); margin-bottom: 10px; }
.view-eyebrow .nav-phase { background: rgba(217,138,61,.18); color: #8a541e; }
.view-title { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.02em; }
.view-title em { color: var(--ivy); }
.view-lede { margin-top: 10px; color: var(--ink-soft); max-width: 70ch; font-size: 1.02rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-sm); }
.card + .card, .stack > * + * { margin-top: 18px; }
/* grids space via gap — cancel the adjacent-sibling margin that would offset 2nd-column cards */
.grid-2 .card + .card, .coach-grid .card + .card, .grid-2 .card, .coach-grid .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 1.25rem; }
.card-sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.muted { color: var(--ink-mute); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.pill.ok { background: rgba(22,67,58,.12); color: var(--ivy); }
.pill.warn { background: rgba(217,138,61,.18); color: #8a541e; }
.pill.bad { background: #f7e0d4; color: #b4451f; }
.pill.info { background: rgba(27,26,22,.08); color: var(--ink-soft); }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.banner.info { background: #eef4ef; border: 1px solid rgba(22,67,58,.2); color: var(--ivy-ink); }
.banner.warn { background: #fbf0df; border: 1px solid rgba(217,138,61,.4); color: #7a4d18; }
.banner.bad { background: #fbeee6; border: 1px solid rgba(196,82,31,.3); color: #6f3c19; }
.banner svg { flex: none; }

/* ---------- forms ---------- */
.f-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.f-field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.f-opt { color: var(--ink-mute); font-weight: 400; }
.f-input, .f-select, .f-textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); font: inherit;
  transition: border-color .18s var(--ease); }
.f-textarea { min-height: 130px; resize: vertical; line-height: 1.5; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86rem; }
.f-input:focus, .f-select:focus, .f-textarea:focus { outline: none; border-color: var(--ivy); }
.f-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b1a16' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); line-height: 1.45; cursor: pointer; }
.f-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ivy); flex: none; }
.f-hint { font-size: .8rem; color: var(--ink-mute); }

/* ---------- progress ---------- */
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.prog-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.prog-stat dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); font-weight: 600; }
.prog-stat dd { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--ivy); margin-top: 4px; }
.bar { height: 10px; border-radius: 999px; background: rgba(27,26,22,.1); overflow: hidden; margin-top: 14px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ivy), var(--ivy-2)); border-radius: 999px; transition: width .5s var(--ease); }
.bar > span.done-part { background: var(--amber-2); }

/* ---------- board (reuses demo classes; tweaks for app) ---------- */
.board-scroll { overflow-x: auto; padding-bottom: 8px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; min-width: min-content; }
.board.cols-le-4 { grid-auto-flow: initial; grid-template-columns: repeat(var(--cols, 4), minmax(0,1fr)); }
.term-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; min-height: 200px; display: flex; flex-direction: column; gap: 9px; transition: border-color .18s, background .18s, box-shadow .18s; }
.term-col.is-target { border-color: var(--ivy); background: #f0f5f1; box-shadow: inset 0 0 0 2px rgba(22,67,58,.18); }
.term-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.term-col-name { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ivy); }
.term-col-credits { font-size: .74rem; font-weight: 600; color: var(--ink-mute); }
.term-col-credits.is-over { color: #b4451f; }
.term-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.col-add { border: 1px dashed var(--line-2); background: transparent; color: var(--ink-mute); border-radius: 9px; padding: 8px; font-size: .82rem; font-weight: 600; transition: .16s; }
.col-add:hover { border-color: var(--ivy); color: var(--ivy); }

.course-chip { position: relative; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); transition: transform .16s, border-color .16s, box-shadow .16s; touch-action: manipulation; }
.course-chip:hover { transform: translateY(-1px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.course-chip.is-selected { border-color: var(--ivy); box-shadow: 0 0 0 2px var(--ivy), var(--shadow-md); }
.course-chip.is-dragging { opacity: .45; }
.course-chip.has-error { border-color: #d9743f; background: #fbeee6; }
.course-chip.is-done { opacity: .62; }
.course-chip.is-done .cc-code { text-decoration: line-through; }
.course-chip.has-error::before { content: "!"; position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; background: #c4521f; color: #fff; border-radius: 50%; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.cc-top { display: flex; align-items: center; gap: 6px; }
.cc-code { font-weight: 700; font-size: .8rem; }
.cc-done-dot { width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ivy); display: grid; place-items: center; margin-left: auto; }
.course-chip.is-done .cc-done-dot { background: var(--ivy); }
.cc-title { font-size: .8rem; color: var(--ink-soft); line-height: 1.3; }
.cc-meta { display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.cc-credits { font-size: .7rem; font-weight: 600; color: var(--ink-mute); }
.cc-tag { font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; }
.cc-tag.req { background: rgba(22,67,58,.12); color: var(--ivy); }
.cc-tag.elec { background: rgba(217,138,61,.16); color: #8a541e; }
.cc-tag.gen { background: rgba(27,26,22,.08); color: var(--ink-soft); }

.conflicts { margin-top: 16px; }
.conflicts-empty, .conflict { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; font-size: .9rem; }
.conflicts-empty { background: #eef4ef; color: var(--ivy-ink); border: 1px solid rgba(22,67,58,.18); align-items: center; }
.conflict { background: #fbeee6; color: #6f3c19; border: 1px solid rgba(196,82,31,.28); margin-bottom: 8px; }
.conflict-icon { flex: none; width: 21px; height: 21px; background: #c4521f; color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; }

/* ---------- tasks / checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: 9px; }
.task { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.task-check { flex: none; margin-top: 1px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; }
.task-check svg { width: 13px; height: 13px; opacity: 0; transition: .15s; }
.task[aria-checked="true"] .task-check { background: var(--ivy); border-color: var(--ivy); }
.task[aria-checked="true"] .task-check svg { opacity: 1; }
.task[aria-checked="true"] .task-name { text-decoration: line-through; color: var(--ink-mute); }
.task-body { flex: 1; min-width: 0; }
.task-name { font-weight: 600; font-size: .94rem; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 3px; font-size: .79rem; color: var(--ink-mute); }
.task-course { font-weight: 700; color: var(--ivy); }
.task-date { font-weight: 600; }
.task-weight { padding: 1px 7px; border-radius: 999px; background: rgba(27,26,22,.07); }
.task-status { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.task.is-overdue { border-color: rgba(196,82,31,.35); }
.task.is-overdue .task-status { background: #f7e0d4; color: #b4451f; }
.task.is-next { border-color: rgba(22,67,58,.4); }
.task.is-next .task-status { background: rgba(22,67,58,.14); color: var(--ivy); }
.task.is-upcoming .task-status { background: rgba(217,138,61,.18); color: #8a541e; }
.task-flag { color: #b4451f; font-size: .72rem; font-weight: 700; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-mute); }
.empty svg { width: 44px; height: 44px; opacity: .4; margin: 0 auto 14px; }
.empty h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 6px; }

/* ---------- consent matrix ---------- */
.consent-result { border-radius: 14px; padding: 18px; margin-top: 16px; border: 1px solid var(--line); }
.consent-result.allow { background: #eef4ef; border-color: rgba(22,67,58,.3); }
.consent-result.attest { background: #fbf0df; border-color: rgba(217,138,61,.4); }
.consent-result.block { background: #fbeee6; border-color: rgba(196,82,31,.3); }
.consent-result h4 { font-size: 1.1rem; margin-bottom: 6px; }
.consent-result ul { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.consent-result li { padding-left: 18px; position: relative; font-size: .9rem; }
.consent-result li::before { content: "•"; position: absolute; left: 4px; color: currentColor; }

/* recorder */
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #c4521f; display: inline-block; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.rec-list audio { width: 100%; margin-top: 6px; }

/* tag chips (multi-select prereqs) */
.tag-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pick button { border: 1.5px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 5px 11px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.tag-pick button.on { background: var(--ivy); color: var(--paper); border-color: var(--ivy); }

/* coach feedback */
.coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.coach-score { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--ivy); }
.fb-item { padding: 11px 13px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 9px; font-size: .9rem; }
.fb-item.q { border-left: 3px solid var(--amber); }
.fb-item.g { border-left: 3px solid var(--ivy); }
.trail { font-size: .82rem; color: var(--ink-mute); }
.trail li { padding: 4px 0; border-bottom: 1px dashed var(--line); }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(14,46,39,.42); z-index: 80; animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 94vw); background: var(--paper); z-index: 90; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn .26s var(--ease); }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.3rem; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(10px); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; z-index: 120; opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { background: #8a3a12; }

/* ---------- onboarding ---------- */
.onb-wrap { max-width: 560px; margin: 6vh auto; }
.onb-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }

/* ---------- polish: group labels, reminders, new components ---------- */
.group-label { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; margin: 26px 0 14px; display: flex; align-items: center; gap: 14px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.reminder-row { align-items: flex-end; gap: 14px; }
.chip-row { gap: 10px; margin-bottom: 20px; }

/* refine cards a touch */
.card { transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card-head h3 { letter-spacing: -.01em; }
.prog-stat { background: linear-gradient(180deg, var(--card), var(--paper)); }

/* retained uploads (UC-CP-02) */
.upload-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.upload-item { position: relative; width: 110px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.upload-item img { width: 100%; height: 80px; object-fit: cover; display: block; }
.upload-file { height: 80px; display: grid; place-items: center; font-weight: 800; color: var(--ivy); background: #eef4ef; }
.upload-name { display: block; font-size: .72rem; padding: 6px 8px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(27,26,22,.7); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }

/* editable syllabus tasks (UC-SY-01) */
.task-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--card); }
.task-edit.low { border-color: rgba(217,138,61,.5); }
.te-name { margin-bottom: 8px; }
.te-line { display: flex; gap: 8px; align-items: center; }
.te-date { flex: 1; min-width: 0; }
.te-wt { width: 78px; flex: none; }
.te-del { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 18px; color: var(--ink-mute); }
.te-del:hover { border-color: #c4521f; color: #c4521f; }

/* coach resources (UC-ED-01) */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.res { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.res-tag { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(22,67,58,.12); color: var(--ivy); margin-bottom: 8px; }
.res strong { display: block; font-size: .98rem; }
.res p { font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- info popovers (in-product guidance) ---------- */
.card-title { display: flex; align-items: center; gap: 8px; }
.info-wrap { position: relative; display: inline-flex; }
.info-btn { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink-mute); font-size: 12px; font-weight: 800; font-family: var(--font-display); line-height: 1; display: grid; place-items: center; cursor: pointer; transition: .15s var(--ease); }
.info-btn:hover, .info-btn[aria-expanded="true"] { border-color: var(--ivy); color: var(--ivy); background: #eef4ef; }
.info-pop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(300px, 78vw); z-index: 40; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: .86rem; line-height: 1.55; }
.info-pop::before { content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--ink); border-radius: 2px; }
.info-pop strong { color: var(--amber-2); }
.info-pop ol { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.info-pop ol li { list-style: decimal; color: rgba(246,241,231,.86); }
.info-pop[hidden] { display: none; }
@media (max-width: 520px) { .info-pop { left: auto; right: 0; transform: none; } .info-pop::before { left: auto; right: 14px; transform: rotate(45deg); } }

.helper { font-size: .82rem; color: var(--ink-mute); margin-top: 6px; line-height: 1.5; }
.helper-inline { font-size: .8rem; color: var(--ink-mute); }

/* ---------- Athena identity ---------- */
.ai-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 0 4px rgba(217,138,61,.2); margin-right: 2px; vertical-align: middle; }
.athena-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.athena-avatar svg { border-radius: 50%; box-shadow: var(--shadow-sm); }
.athena-avatar:hover { transform: scale(1.06); }
.athena-avatar:hover svg { box-shadow: 0 0 0 3px rgba(217,138,61,.3), var(--shadow-md); }
.athena-avatar.listening svg { box-shadow: 0 0 0 3px var(--amber-2); animation: athenaPulse 1.6s ease-in-out infinite; }
@keyframes athenaPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(224,160,80,.9); } 50% { box-shadow: 0 0 0 7px rgba(224,160,80,0); } }
.hf-btn.on { background: var(--ivy); color: var(--paper); border-color: var(--ivy); }
.hf-btn.on .rec-dot { background: var(--amber-2); }
.athena-nudge { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(120deg, var(--ivy), var(--ivy-2)); color: var(--paper); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow-md); position: relative; }
.athena-nudge .av { flex: none; }
.athena-nudge-body { flex: 1; }
.athena-nudge-name { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-2); margin-bottom: 3px; }
.athena-nudge-msg { font-size: 1.02rem; line-height: 1.5; }
.athena-nudge-msg strong { color: var(--amber-2); }
.athena-nudge-x { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(246,241,231,.14); color: var(--paper); font-size: 15px; cursor: pointer; line-height: 1; }
.athena-nudge-x:hover { background: rgba(246,241,231,.26); }

/* ---------- Today / Daily Advisor ---------- */
.focus-list { display: flex; flex-direction: column; gap: 10px; counter-reset: f; }
.focus-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.focus-item.od { border-color: rgba(196,82,31,.35); background: #fbeee6; }
.focus-rank { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ivy); color: var(--paper); font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; }
.focus-item.od .focus-rank { background: #c4521f; }
.focus-body { flex: 1; min-width: 0; }
.focus-name { font-weight: 600; display: block; }
.focus-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--ink-mute); margin-top: 2px; }
.recap { display: flex; flex-direction: column; gap: 8px; }
.recap li { padding-left: 18px; position: relative; font-size: .95rem; color: var(--ink-soft); }
.recap li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.recap strong { color: var(--ivy); font-family: var(--font-display); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-grid; }
  .app-nav { position: fixed; top: 64px; left: 0; bottom: 0; width: 280px; z-index: 95; transform: translateX(-100%); transition: transform .26s var(--ease); }
  .app-nav.open { transform: none; }
  .nav-scrim { display: block; position: fixed; inset: 64px 0 0 0; background: rgba(14,46,39,.4); z-index: 90; }
  .grid-2, .f-row, .coach-grid, .res-grid { grid-template-columns: 1fr; }
  .progress { grid-template-columns: 1fr; }
  .app-who { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-backdrop, .toast, .bar > span { animation: none !important; transition: none !important; }
}
