/* Phase 3 — learning and discovery pages in the shared café system. */

/* Learn keeps its connected constellation, softened for the café default. */
:root[data-theme='light'] .astral-progress,
:root[data-theme='light'] .learn-progress-tools {
  border-color: #ead9e8;
  border-radius: 16px;
  background: linear-gradient(105deg, #fffafd, #f7eff9);
}
:root[data-theme='light'] .astral-progress-total { border-color: #e8d8eb; border-radius: 12px; background: #fffafd; }
:root[data-theme='light'] .astral-progress-total b { color: #9465c8; }
:root[data-theme='light'] .astral-map {
  --map-ink: #493c50;
  border-color: #e5d5e8;
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 50% 48%, #fff4cf 0, transparent 22%),
    radial-gradient(ellipse at 15% 80%, #efe6fa 0, transparent 38%),
    linear-gradient(145deg, #fffafd, #f7f0fa 68%, #fff7fb);
  box-shadow: inset 0 0 65px rgb(173 131 184 / 5%);
}
:root[data-theme='light'] .astral-overview { min-height: 660px; }
:root[data-theme='light'] .astral-starfield { opacity: .17; }
:root[data-theme='light'] .astral-center { color: #44344d; }
:root[data-theme='light'] .astral-center-halo { border-color: #e0c58e; background: radial-gradient(circle, #fff5d9 0 28%, #fff8e9aa 53%, transparent 70%); box-shadow: 0 0 28px #e8c88b40, inset 0 0 22px #e8c88b30; }
:root[data-theme='light'] .astral-center-core { border-color: #d6b870; background: radial-gradient(circle, #fff1c6, #fffaf0); color: #9a7325; box-shadow: 0 0 18px #e8c88b4d; }
:root[data-theme='light'] .astral-center > small,
:root[data-theme='light'] .astral-center > strong { color: #694d77; }
:root[data-theme='light'] .astral-center > em,
:root[data-theme='light'] .astral-map-hint { color: #76667e; }
:root[data-theme='light'] .astral-path-node {
  border-color: color-mix(in srgb, var(--branch-color) 35%, #ead9e8);
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--branch-color) 8%, #fff), #fffdfd 70%);
  box-shadow: 0 8px 20px rgb(88 57 97 / 9%);
}
:root[data-theme='light'] .astral-path-node:hover,
:root[data-theme='light'] .astral-path-node:focus-visible { background: color-mix(in srgb, var(--branch-color) 12%, #fff); box-shadow: 0 11px 23px rgb(88 57 97 / 12%); }
:root[data-theme='light'] .astral-node-copy > strong,
:root[data-theme='light'] .astral-node-copy > b { color: #493c50; }
:root[data-theme='light'] .astral-node-copy > em,
:root[data-theme='light'] .astral-node-copy > b small { color: #77687e; }
:root[data-theme='light'] .astral-node-ring { background: color-mix(in srgb, var(--branch-color) 12%, #fff); box-shadow: none; }
:root[data-theme='light'] .astral-branch-card {
  border-color: color-mix(in srgb, var(--branch-color) 33%, #ead9e8);
  border-radius: 16px;
  background: color-mix(in srgb, var(--branch-color) 4%, #fffdfd);
  box-shadow: 0 9px 22px rgb(88 57 97 / 8%);
}
:root[data-theme='light'] .astral-branch-card .skill-rune-node { border-color: #ead9e8; border-radius: 12px; background: #fff; }
:root[data-theme='light'] .astral-branch-card .skill-rune-node:hover { background: color-mix(in srgb, var(--branch-color) 7%, #fff); box-shadow: 0 5px 12px rgb(88 57 97 / 7%); }
:root[data-theme='light'] .learn-tree-method,
:root[data-theme='light'] .learn-research-note { border-color: #ead9e8; border-radius: 16px; background: #fffafd; }
.astral-path-node, .astral-branch-card { backdrop-filter: none; }
.astral-path-node, .astral-branch-card, .astral-star-node { animation: none !important; opacity: 1; }
.astral-branch-line { animation: none !important; stroke-dasharray: none; stroke-dashoffset: 0; filter: none; }
.astral-star-node { opacity: .75; filter: none; }
.astral-center-halo { animation: none !important; }
::view-transition-old(ferxl-skill-world) { animation: ferxl-skill-out 90ms ease both; }
::view-transition-new(ferxl-skill-world) { animation: ferxl-skill-in 160ms ease-out both; }
@keyframes ferxl-skill-out { to { opacity: 0; transform: translateY(-2px); } }
@keyframes ferxl-skill-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Benchmarks: score provenance and stage grouping stay easy to scan. */
:root[data-theme='light'] :is(.benchmark-library-panel, .benchmark-summary, .benchmark-group, .benchmark-overall, .benchmark-rule, .benchmark-task-card, .benchmark-explorer-tools, .community-explorer-tools, .benchmark-toolbar, .benchmark-sticky-wrap) {
  border-color: #ead9e8;
  box-shadow: none;
}
:root[data-theme='light'] .benchmark-library-panel { border-radius: 20px; background: linear-gradient(145deg, #fffdfd, #fff7fb 76%, #f8f2fc); }
:root[data-theme='light'] .benchmark-summary,
:root[data-theme='light'] .benchmark-overall { border-radius: 15px; background: #fffafd; }
:root[data-theme='light'] .benchmark-group { border-radius: 17px; background: linear-gradient(145deg, #fffafd, #fff 72%); }
:root[data-theme='light'] .benchmark-group-head { border-bottom-color: #ead9e8; }
:root[data-theme='light'] .benchmark-group-head h2,
:root[data-theme='light'] .community-library-head h2 { color: #493c50; }
:root[data-theme='light'] .benchmark-task-card,
:root[data-theme='light'] .benchmark-card,
:root[data-theme='light'] .community-benchmark-card {
  border-color: color-mix(in srgb, var(--benchmark-accent, #d264a5) 23%, #ead9e8);
  border-radius: 14px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--benchmark-accent, #d264a5) 5%, #fff), #fff 72%);
}
:root[data-theme='light'] .benchmark-card:hover,
:root[data-theme='light'] .community-benchmark-card:hover { border-color: color-mix(in srgb, var(--benchmark-accent, #d264a5) 52%, #ead9e8); box-shadow: 0 9px 20px rgb(90 55 100 / 8%); }
:root[data-theme='light'] .benchmark-overall,
:root[data-theme='light'] .category-rank,
:root[data-theme='light'] .benchmark-rule { background: #fff8fc; }
:root[data-theme='light'] .focus-cue { border-color: #e9d5e7; background: #fbf2fa; }
:root[data-theme='light'] .focus-cue > strong { color: #925b9b; }
:root[data-theme='light'] .task-evidence { background: #fcf7fb; }
:root[data-theme='light'] .community-benchmark-table-wrap,
:root[data-theme='light'] .score-table-wrap { border-color: #ead9e8; border-radius: 14px; background: #fff; }
.benchmark-card, .benchmark-task-card, .community-benchmark-card, .player-benchmark-card { transition: border-color 140ms ease-out, box-shadow 140ms ease-out, transform 140ms ease-out; }
.benchmark-card:hover, .community-benchmark-card:hover, .player-benchmark-card:hover { transform: translateY(-1px); }

/* Playlists: soft catalog surfaces with the routine status left prominent. */
:root[data-theme='light'] :is(.playlist-intro, .playlist-library-tools, .playlist-research) { border-color: #ead9e8; background: linear-gradient(135deg, #fffafd, #f8f1fa); box-shadow: none; }
:root[data-theme='light'] .playlist-intro { border-radius: 17px; }
:root[data-theme='light'] .playlist-library-tools { border-radius: 15px; }
:root[data-theme='light'] .playlist-library-card,
:root[data-theme='light'] .playlist-card {
  border-color: #ead9e8;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #fff8fc 72%, #f8f2fc);
  box-shadow: 0 8px 20px rgb(96 57 105 / 6%);
}
:root[data-theme='light'] .playlist-library-card:before { border-color: #e8cce3; box-shadow: 0 0 0 14px #e8cce311, 0 0 0 32px #e8cce30a; }
:root[data-theme='light'] .playlist-library-card:hover,
:root[data-theme='light'] .playlist-library-card:focus-visible { transform: translateY(-1px); border-color: #d4add3; box-shadow: 0 12px 24px rgb(96 57 105 / 9%); }
:root[data-theme='light'] .playlist-card-top,
:root[data-theme='light'] .playlist-card-footer { border-color: #ecdeeb; }
:root[data-theme='light'] .playlist-badge { border-color: #e7d5ec; background: #f6eef9; color: #7956a0; }
:root[data-theme='light'] .playlist-library-progress { border-color: #ebdeeb; background: #f7eff7; }
:root[data-theme='light'] .playlist-library-meter { background: #eadfea; }
.playlist-library-card { transition: transform 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out; }

/* Lookup: make identity, filters, and score tables feel like one flow. */
:root[data-theme='light'] .player-lookup-card {
  border-color: #e7d7e9;
  border-radius: 19px;
  background: linear-gradient(120deg, #fffdfd, #f8f0fb 82%);
  box-shadow: 0 10px 24px rgb(92 53 102 / 6%);
}
:root[data-theme='light'] .player-lookup-card h2 { color: #493452; }
:root[data-theme='light'] :is(.player-benchmark-filters, .lookup-controls, .benchmark-explorer-tools, .community-explorer-tools) { border-color: #ead9e8; border-radius: 15px; background: #fffafd; }
:root[data-theme='light'] .player-benchmark-card { border-color: #ead9e8; border-radius: 14px; background: linear-gradient(140deg, #fff, #fbf5fb); }
:root[data-theme='light'] .player-benchmark-card:hover { border-color: #d8b6dd; box-shadow: 0 8px 18px rgb(92 53 102 / 8%); }
:root[data-theme='light'] :is(.score-table-wrap, .community-benchmark-table-wrap) { overflow-x: auto; border: 1px solid #ead9e8; border-radius: 14px; background: #fffdfd; }
:root[data-theme='light'] :is(.score-table, .community-benchmark-table) th { background: #f7eff8; color: #604a68; }
:root[data-theme='light'] :is(.score-table, .community-benchmark-table) td,
:root[data-theme='light'] :is(.score-table, .community-benchmark-table) th { border-color: #ecdeeb; }

/* Account and settings: calm panels, clear security and appearance controls. */
:root[data-theme='light'] .login-card {
  border-color: #e7d7e9;
  border-radius: 21px;
  background: radial-gradient(ellipse at 95% 0, #f6d9ed88, transparent 42%), linear-gradient(145deg, #fffafd, #fff 66%);
  box-shadow: 0 13px 30px rgb(96 57 105 / 8%);
}
:root[data-theme='light'] .login-card h2,
:root[data-theme='light'] .login-side h3 { color: #493452; }
:root[data-theme='light'] .login-side { border-color: #ead9e8; border-radius: 17px; background: linear-gradient(145deg, #f9f1fa, #fffdfd 80%); }
:root[data-theme='light'] :is(.api-note, .verified-box, .account-lookup-error, .file-protocol-note) { border-color: #ead9e8; border-radius: 13px; background: #fbf5fb; }
:root[data-theme='light'] .dashboard-grid > .section-card {
  border-color: #ead9e8;
  border-radius: 17px;
  background: linear-gradient(145deg, #fffafd, #fff 76%);
  box-shadow: 0 8px 19px rgb(96 57 105 / 5%);
}
:root[data-theme='light'] .dashboard-grid > .section-card:before { box-shadow: none; }
:root[data-theme='light'] .dashboard-grid .section-head { border-bottom-color: #ecdeeb; }
:root[data-theme='light'] .dashboard-grid .section-head h3 { color: #493c50; }

:root[data-theme='dark'] .astral-map { border-color: #51435d; }
:root[data-theme='dark'] .benchmark-library-panel,
:root[data-theme='dark'] .benchmark-group,
:root[data-theme='dark'] .playlist-library-card,
:root[data-theme='dark'] .player-lookup-card,
:root[data-theme='dark'] .login-card,
:root[data-theme='dark'] .dashboard-grid > .section-card { border-color: #51435d; }
