/* Performance dashboard: scoped to avoid changing the other app pages. */
.dashboard-welcome { display:grid; grid-template-columns:1.25fr 1fr; gap:44px; padding:32px; margin-bottom:20px; border:1px solid rgba(56,189,248,.35); border-radius:22px; background:radial-gradient(ellipse at 100% 0%,rgba(14,165,233,.15),transparent 65%),linear-gradient(120deg,#0b1c30,#102943); }
.dashboard-welcome[hidden] { display:none; }
.welcome-badge { display:inline-flex; align-items:center; gap:8px; color:#7dd3fc; font-size:.82rem; }
.welcome-badge svg { width:19px; height:19px; }
.welcome-copy h2 { margin:14px 0; font-size:clamp(1.4rem,2.4vw,2rem); line-height:1.65; }
.welcome-copy > p { margin:0; color:#b9cbe0; font-size:.94rem; line-height:2; max-width:560px; }
.welcome-actions { display:flex; gap:14px; flex-wrap:wrap; margin:22px 0 14px; }
.welcome-actions button { padding:12px 18px; font:inherit; font-size:.9rem; border-radius:11px; cursor:pointer; }
.welcome-actions .btn-primary { display:flex; align-items:center; gap:24px; }
.welcome-actions button:not(.btn-primary) { background:rgba(8,22,40,.4); border:1px solid var(--dashboard-border); color:#c2def3; }
.welcome-reassurance { display:flex; align-items:center; gap:7px; font-size:.77rem; color:var(--muted); }
.welcome-reassurance svg { width:17px; height:17px; }
.welcome-roadmap { align-self:center; padding:24px; background:rgba(4,17,32,.45); border:1px solid rgba(125,211,252,.16); border-radius:17px; }
.welcome-roadmap-heading { display:flex; align-items:center; gap:10px; color:#b8e6ff; margin-bottom:20px; font-size:1rem; }
.welcome-roadmap ol { display:grid; gap:23px; padding:0; margin:0; list-style:none; }
.welcome-roadmap li { position:relative; display:flex; gap:14px; align-items:flex-start; }
.welcome-roadmap li:not(:last-child)::after { content:""; position:absolute; width:1px; height:calc(100% - 4px); top:38px; right:17px; background:rgba(56,189,248,.25); }
.welcome-roadmap li > span { display:grid; place-items:center; flex-shrink:0; width:35px; height:35px; color:#7dd3fc; border:1px solid rgba(56,189,248,.3); background:#122b46; border-radius:11px; font-weight:700; }
.welcome-roadmap strong { font-size:.88rem; }
.welcome-roadmap p { margin:5px 0 0; color:#a7bdd3; line-height:1.8; font-size:.78rem; }
#profilePage.is-new .dashboard-overview { display:none; }
#profilePage.is-new .dashboard-review-action { display:none; }
.dashboard-skill.new { grid-template-columns:24px minmax(0,1fr) auto; min-height:74px; }
.dashboard-skill.new .dashboard-track, .dashboard-skill.new .skill-score { display:none; }
.dashboard-skill.new .skill-name small { font-size:.76rem; line-height:1.9; margin-top:3px; color:#b1c5da; }
.dashboard-skill.new .skill-status { grid-column:auto; justify-self:stretch; color:#7dd3fc; border-color:rgba(56,189,248,.35); background:rgba(56,189,248,.07); font-size:.75rem; padding:6px 12px; }
.dashboard-review .review-empty { min-height:260px; border-style:solid; background:radial-gradient(ellipse at 50% 15%,rgba(56,189,248,.07),transparent 70%); gap:13px; }
.review-empty > strong { font-size:1.16rem; line-height:1.7; }
.review-empty > p { max-width:340px; font-size:.85rem; line-height:1.95; }
.review-empty-badge { font-size:.72rem; color:#7dd3fc; padding:3px 10px; background:rgba(56,189,248,.07); border-radius:20px; }
.review-empty-illustration { display:flex; direction:ltr; align-items:center; gap:11px; margin-bottom:4px; }
.review-empty-illustration > span { display:grid; place-items:center; width:53px; height:62px; font-size:1.35rem; font-weight:750; color:#83b6dd; background:linear-gradient(150deg,#18334e,#0a1c30); border:1px solid rgba(56,189,248,.22); border-radius:12px; }
.review-empty-illustration > span:first-child { transform:rotate(-9deg); }
.review-empty-illustration > span:last-child { transform:rotate(9deg); }
.review-empty-illustration > span:nth-child(2) { width:72px; height:76px; color:#7dd3fc; box-shadow:0 8px 28px rgba(0,0,0,.18); }
.filter-empty { display:flex; flex-direction:column; align-items:center; gap:12px; border:1px dashed var(--dashboard-border); border-radius:12px; }
.filter-empty > strong { color:var(--text); font-size:1rem; }
.filter-empty > p { margin:0; font-size:.85rem; }
.filter-empty > svg { color:var(--blue); width:34px; height:34px; }
.filter-empty button { font:inherit; color:var(--blue); border:1px solid var(--dashboard-border); border-radius:9px; background:rgba(56,189,248,.05); padding:8px 14px; cursor:pointer; }
@media (max-width:900px) {
  .dashboard-welcome { gap:22px; padding:24px; grid-template-columns:1.1fr 1fr; }
  .welcome-roadmap { padding:18px; }
}
@media (max-width:760px) {
  .dashboard-welcome { grid-template-columns:1fr; padding:20px; gap:24px; }
  .welcome-copy > p { font-size:.9rem; }
  .welcome-actions { gap:10px; }
  .welcome-actions button { font-size:.84rem; }
  .welcome-roadmap ol { gap:20px; }
  .dashboard-skill.new { grid-template-columns:22px minmax(0,1fr) auto; gap:9px; }
  .dashboard-skill.new .skill-name strong { font-size:.85rem; }
  .dashboard-skill.new .skill-name small { font-size:.75rem; }
  .dashboard-skill.new .skill-status { grid-column:auto; padding:5px 8px; font-size:.72rem; }
  .dashboard-review .review-empty { min-height:245px; }
}
@media (max-width:380px) {
  .welcome-actions { flex-direction:column; }
  .welcome-actions button { justify-content:center; }
  .dashboard-skill.new { grid-template-columns:22px minmax(0,1fr); }
  .dashboard-skill.new .skill-status { grid-column:2; justify-self:start; }
}
#profilePage { --dashboard-border: rgba(56,189,248,.24); padding-top: 32px; }
.dashboard-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:26px; }
.dashboard-heading h2 { margin:0 0 6px; font-size:clamp(1.8rem,3vw,2.7rem); letter-spacing:-.04em; }
.dashboard-heading p { margin:0; color:var(--muted); font-size:.94rem; }
.dashboard-tools { display:flex; align-items:center; gap:24px; flex-shrink:0; }
.dashboard-filter select { width:185px; padding:12px 14px; border:1px solid var(--dashboard-border); border-radius:12px; color:var(--text); background:var(--surface); font:inherit; font-size:.8rem; cursor:pointer; }
.dashboard-filter select:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.dashboard-sync { display:inline-flex; align-items:center; gap:9px; max-width:240px; font-size:.76rem; color:var(--muted); }
.dashboard-sync::before { content:""; width:8px; height:8px; flex-shrink:0; border-radius:50%; background:currentColor; }
.dashboard-sync.synced { color:var(--green); }
.dashboard-sync.syncing { color:var(--blue); }
.dashboard-sync.error { color:var(--yellow); }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.performance-dashboard svg { display:block; width:24px; height:24px; flex-shrink:0; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.dashboard-metric { display:flex; gap:15px; min-height:132px; padding:18px; border:1px solid var(--dashboard-border); border-radius:15px; background:linear-gradient(130deg,rgba(17,38,60,.85),rgba(10,24,40,.9)); }
.dashboard-metric > div { flex:1; min-width:0; }
.dashboard-metric > div > span { font-size:.85rem; }
.dashboard-metric small { display:block; font-size:.73rem; color:var(--muted); }
.dashboard-icon { display:grid; place-items:center; width:42px; height:44px; border:1px solid currentColor; border-radius:10px; flex-shrink:0; background:rgba(56,189,248,.08); }
.dashboard-metric.blue .dashboard-icon { color:#38bdf8; }
.dashboard-metric.green .dashboard-icon { color:#34d399; background:rgba(52,211,153,.08); }
.dashboard-metric.amber .dashboard-icon { color:#fbbf24; background:rgba(251,191,36,.08); }
.dashboard-metric.cyan .dashboard-icon { color:#22d3ee; }
.metric-value { display:flex; align-items:baseline; gap:10px; margin:4px 0; }
.metric-value strong { font-size:2.05rem; font-weight:850; line-height:1.35; }
.metric-value bdi { font-size:.85rem; color:var(--muted); }
.metric-value.daily-value { gap:9px; }
.daily-value strong { font-size:1.55rem; }
.daily-value > span { color:var(--muted); font-size:.8rem; }
.daily-metric-progress { display:flex; align-items:center; gap:10px; margin-top:10px; }
.dashboard-track { display:block; height:8px; background:#213753; border-radius:30px; overflow:hidden; }
.dashboard-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2dd4bf,#65f3af); }
.daily-metric-progress .dashboard-track { flex:1; }
.daily-metric-progress small { min-width:32px; }
.dashboard-overview { position:relative; display:grid; grid-template-columns:170px minmax(0,1fr) 300px; align-items:center; gap:26px; padding:20px; margin-bottom:16px; border:1px solid var(--dashboard-border); border-radius:18px; background:radial-gradient(ellipse at 70% 10%,rgba(14,165,233,.07),transparent 60%),#0a1a2b; }
.dashboard-accuracy { display:grid; place-items:center; }
#profilePage .accuracy-ring { width:148px; height:148px; margin:0; padding:16px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; background:conic-gradient(from 0deg,#34d399 var(--accuracy,0deg),#1b3348 0); box-shadow:0 0 0 6px rgba(56,189,248,.05),0 0 35px rgba(34,211,238,.08); direction:ltr; }
#profilePage .accuracy-ring::before { inset:10px; background:#091a2c; }
#profilePage .accuracy-ring strong { font-size:2.3rem; color:#66e1ef; }
#profilePage .accuracy-ring span { font-size:.8rem; }
.dashboard-summary { text-align:center; min-width:0; }
.dashboard-summary h2 { font-size:clamp(1.1rem,1.9vw,1.75rem); line-height:1.6; margin:0 0 8px; }
.dashboard-summary > p { color:var(--muted); margin:0 0 20px; font-size:.88rem; line-height:1.8; }
.dashboard-insights { display:flex; gap:10px; justify-content:center; }
.dashboard-insight { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid; border-radius:11px; font-size:.73rem; text-align:right; flex:1; }
.dashboard-insight.green { color:#5be8b0; background:rgba(52,211,153,.05); border-color:rgba(52,211,153,.35); }
.dashboard-insight.amber { color:#f8ce70; background:rgba(251,191,36,.05); border-color:rgba(251,191,36,.35); }
.dashboard-insight svg { width:22px; height:22px; }
.dashboard-insight strong { font-weight:700; }
.dashboard-insight small { display:block; color:var(--muted); font-size:.62rem; line-height:1.8; margin-top:3px; }
.dashboard-next { position:relative; padding:18px 20px; border-radius:13px; background:radial-gradient(at 0% 100%,rgba(14,165,233,.18),transparent 70%),linear-gradient(135deg,#0d3970,#123f88); border:1px solid rgba(56,189,248,.5); overflow:hidden; }
.dashboard-next > span { position:absolute; top:19px; left:18px; color:#38bdf8; }
.dashboard-next h3 { margin:0 0 12px; font-size:.9rem; }
.dashboard-next > strong { display:block; font-size:1.03rem; line-height:1.8; font-weight:750; }
.dashboard-next p { display:flex; gap:7px; align-items:center; color:#b6cee9; font-size:.76rem; margin:12px 0; }
.dashboard-next p svg { width:19px; height:19px; }
#profilePage .dashboard-next button { display:flex; gap:24px; justify-content:center; width:100%; padding:11px 15px; border-radius:9px; font-size:.9rem; background:linear-gradient(100deg,#089cf2,#1765ee); box-shadow:0 5px 20px rgba(0,128,255,.18); }
.dashboard-panels { display:grid; grid-template-columns:1.08fr 1fr; gap:14px; }
.dashboard-panel { min-width:0; padding:20px; border:1px solid var(--dashboard-border); border-radius:17px; background:linear-gradient(130deg,rgba(13,33,54,.85),rgba(10,24,40,.9)); }
.dashboard-panel > header { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.dashboard-panel > header > span { color:var(--blue); }
.dashboard-panel h3 { font-size:1.17rem; margin:0 0 2px; }
.dashboard-panel header p { margin:0; font-size:.78rem; color:var(--muted); }
.dashboard-skill-list { display:grid; gap:5px; }
.dashboard-skill { display:grid; grid-template-columns:24px minmax(110px,1.2fr) minmax(60px,1fr) 44px 102px; align-items:center; gap:10px; width:100%; text-align:right; font:inherit; color:var(--text); background:rgba(8,22,37,.65); border:1px solid rgba(56,189,248,.14); padding:9px 10px; border-radius:9px; cursor:pointer; transition:background .16s,border-color .16s; }
.dashboard-skill:hover { background:rgba(56,189,248,.09); border-color:rgba(56,189,248,.5); }
.skill-icon { color:#bed4ed; font-size:1.25rem; text-align:center; }
.skill-icon svg { width:22px; height:22px; }
.skill-name strong { display:block; font-size:.82rem; font-weight:650; line-height:1.6; }
.skill-name small { display:block; font-size:.62rem; color:var(--muted); line-height:1.7; }
.skill-score { font-size:.85rem; text-align:center; }
.skill-status { text-align:center; border-radius:20px; font-size:.63rem; padding:4px 5px; border:1px solid; white-space:nowrap; }
.strong .skill-status { color:#6ee7b7; border-color:rgba(52,211,153,.35); background:rgba(52,211,153,.07); }
.learning .skill-status { color:#93dcff; border-color:rgba(56,189,248,.3); background:rgba(56,189,248,.07); }
.focus .skill-status { color:#fbd17a; border-color:rgba(251,191,36,.35); background:rgba(251,191,36,.07); }
.new .skill-status { color:var(--muted); border-color:var(--border); }
.learning .dashboard-track i { background:linear-gradient(90deg,#168fce,#5fe3f7); }
.focus .dashboard-track i { background:linear-gradient(90deg,#e5a833,#ffe192); }
.dashboard-expand { width:100%; margin:10px 0 0; padding:8px; background:transparent; border:0; border-radius:8px; color:var(--blue); font:inherit; font-size:.74rem; cursor:pointer; }
.dashboard-expand:hover { background:rgba(56,189,248,.06); }
.dashboard-caption { font-size:.69rem; color:var(--muted); margin:14px 0 0; line-height:1.8; }
.dashboard-review-tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.dashboard-element { position:relative; display:flex; flex-direction:column; align-items:center; min-width:0; padding:13px 12px 0; border-radius:12px; overflow:hidden; border:1px solid rgba(125,182,233,.48); color:var(--text); background:linear-gradient(145deg,rgba(12,40,68,.8),rgba(5,20,35,.8)); font:inherit; cursor:pointer; transition:background .16s; }
.dashboard-element:hover { background:#16354d; }
.element-number { align-self:flex-end; direction:ltr; font-size:.86rem; color:#bdd2ea; }
.element-symbol { font-size:2.5rem; font-weight:800; line-height:1.5; }
.dashboard-element > strong { font-size:.88rem; }
.dashboard-element > small { font-size:.64rem; color:var(--muted); margin:6px 0 12px; }
.dashboard-element > span { display:flex; align-items:center; justify-content:center; gap:6px; width:calc(100% + 24px); padding:5px; background:rgba(251,191,36,.1); border-top:1px solid rgba(251,191,36,.28); color:#f4cd70; font-size:.67rem; }
.dashboard-element > span svg { width:14px; height:14px; }
.dashboard-review-action { display:flex; align-items:center; gap:12px; margin-top:17px; border:1px solid var(--dashboard-border); border-radius:12px; padding:15px; background:rgba(3,23,40,.6); }
.dashboard-review-action > span { color:var(--blue); }
.dashboard-review-action > span svg { width:30px; height:30px; }
.dashboard-review-action > div { flex:1; }
.dashboard-review-action h4 { margin:0 0 5px; font-size:.84rem; }
.dashboard-review-action p { color:var(--muted); font-size:.73rem; margin:0; line-height:1.7; }
.dashboard-review-action button { display:flex; gap:16px; align-items:center; justify-content:center; background:rgba(34,211,238,.025); color:#67e8f9; border:1px solid #22d3ee; padding:10px 16px; border-radius:8px; font:inherit; font-size:.81rem; cursor:pointer; white-space:nowrap; }
.dashboard-review-action button:hover { background:rgba(34,211,238,.1); }
.dashboard-empty { margin:0; padding:26px 14px; line-height:1.9; font-size:.84rem; color:var(--muted); text-align:center; }
.review-empty { grid-column:1/-1; min-height:192px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; border:1px dashed var(--dashboard-border); border-radius:12px; }
.review-empty svg { width:36px; height:36px; color:var(--blue); }
.review-empty strong { color:var(--text); }
.review-empty p { margin:0; font-size:.76rem; }
.dashboard-footer { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:13px 4px; margin-top:14px; border-block:1px solid var(--dashboard-border); }
.dashboard-footer > span { display:flex; align-items:center; gap:8px; color:#6ee7b7; font-size:.76rem; }
.dashboard-footer svg { width:20px; height:20px; }
.dashboard-footer button { font:inherit; font-size:.69rem; color:var(--muted); border:0; background:transparent; padding:6px; cursor:pointer; }
.dashboard-footer button:hover { color:var(--red); }
@media (max-width:1100px) {
  .dashboard-overview { grid-template-columns:145px minmax(0,1fr) 245px; gap:15px; }
  #profilePage .accuracy-ring { width:130px; height:130px; }
  .dashboard-insights { flex-direction:column; gap:6px; }
  .dashboard-insight small { display:none; }
  .dashboard-skill { grid-template-columns:22px minmax(90px,1fr) minmax(40px,.6fr) 38px; gap:8px; }
  .skill-status { grid-column:2/-1; justify-self:start; }
  .dashboard-tools { gap:14px; }
  .dashboard-review-action { flex-wrap:wrap; }
  .dashboard-review-action button { width:100%; }
}
@media (max-width:760px) {
  #profilePage { padding:24px 16px 40px; }
  .dashboard-heading { align-items:flex-start; flex-direction:column; gap:16px; }
  .dashboard-tools { width:100%; justify-content:space-between; gap:10px; }
  .dashboard-filter select { width:170px; font-size:.74rem; }
  .dashboard-sync { font-size:.68rem; max-width:160px; }
  .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .dashboard-metric { padding:14px; gap:10px; min-height:120px; }
  .dashboard-metric > div > span { font-size:.75rem; }
  .dashboard-icon { width:34px; height:36px; }
  .dashboard-icon svg { width:21px; height:21px; }
  .metric-value strong { font-size:1.75rem; }
  .daily-value strong { font-size:1.25rem; }
  .dashboard-overview { grid-template-columns:115px minmax(0,1fr); padding:16px; }
  #profilePage .accuracy-ring { width:108px; height:108px; }
  #profilePage .accuracy-ring strong { font-size:1.65rem; }
  .dashboard-summary { text-align:right; }
  .dashboard-summary h2 { font-size:1rem; }
  .dashboard-summary > p { font-size:.74rem; margin-bottom:12px; }
  .dashboard-insight { padding:7px; font-size:.62rem; }
  .dashboard-insight svg { width:18px; height:18px; }
  .dashboard-next { grid-column:1/-1; display:grid; grid-template-columns:1fr auto; gap:4px 15px; }
  .dashboard-next h3 { grid-column:1/-1; margin:0 0 3px; }
  .dashboard-next > strong { font-size:.9rem; }
  .dashboard-next > p { grid-row:3; margin:6px 0 0; }
  #profilePage .dashboard-next button { grid-column:2; grid-row:2/4; width:auto; align-self:center; font-size:.8rem; gap:10px; }
  .dashboard-next > span { top:12px; left:16px; }
  .dashboard-panels { grid-template-columns:1fr; }
  .dashboard-panel { padding:16px; }
  .dashboard-skill { grid-template-columns:22px minmax(90px,1fr) minmax(55px,.6fr) 40px 102px; }
  .skill-status { grid-column:auto; justify-self:stretch; }
  .dashboard-review-action { flex-wrap:nowrap; }
  .dashboard-review-action button { width:auto; }
  .dashboard-footer { flex-wrap:wrap; }
}
@media (max-width:440px) {
  .dashboard-heading p { font-size:.82rem; }
  .dashboard-metric { padding:12px 9px; gap:8px; }
  .dashboard-metric small { font-size:.63rem; }
  .dashboard-icon { width:29px; height:32px; }
  .dashboard-icon svg { width:18px; height:18px; }
  .daily-value { flex-wrap:wrap; gap:5px; }
  .dashboard-skill { grid-template-columns:20px minmax(94px,1fr) minmax(35px,.7fr) 36px; }
  .skill-status { grid-column:2/-1; justify-self:start; }
  .dashboard-review-tiles { gap:8px; }
  .dashboard-element { padding:10px 8px 0; }
  .element-symbol { font-size:2rem; }
  .dashboard-element > span { width:calc(100% + 16px); font-size:.61rem; }
  .dashboard-review-action { flex-wrap:wrap; }
  .dashboard-review-action button { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  .dashboard-skill, .dashboard-element { transition:none; }
}
