/* Achievements page layout (Egyptian UI text unchanged). Scoped to #progress only. */
main .joy218-progress{display:flex;flex-direction:column;gap:14px;max-width:780px;margin-inline:auto;padding-bottom:24px}
main .joy218-progress>*{margin-block:0!important}
main .joy218-progress>.eyebrow{order:1;font-size:13px;color:var(--muted);font-weight:600}
main .joy218-progress>h1{order:2;font-size:clamp(26px,6vw,36px);line-height:1.25;margin:0!important}
main .joy218-progress>.coach-links233{order:3}
main .joy218-progress>.coach-links233 a{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-size:14px;text-decoration:none}
main .joy218-progress>.grid2:has(.metric){order:4}
main .joy218-progress>section.card:not(.recall-metrics249):nth-of-type(2){order:5}
main .joy218-progress>section.card:not(.recall-metrics249):nth-of-type(3){order:6}
main .joy218-progress>section.card:not(.recall-metrics249):nth-of-type(4){order:7}
main .joy218-progress>h2{order:8;font-size:20px;margin:10px 0 0!important}
main .joy218-progress>.grid2:has(.badge){order:9}
main .joy218-progress>.recall-metrics249{order:10}
main .joy218-progress>.notice{order:11}
/* cards */
main .joy218-progress section.card{margin:0!important;padding:18px 18px 18px 18px;border-radius:22px;border:1px solid var(--line);background:var(--surface);box-shadow:0 2px 10px #0000000d;border-inline-start:6px solid var(--accent)}
main .joy218-progress>section.card:nth-of-type(3){border-inline-start-color:var(--blue)}
main .joy218-progress>section.card:nth-of-type(4){border-inline-start-color:var(--gold)}
main .joy218-progress .recall-metrics249{border-inline-start-color:var(--blue)}
main .joy218-progress section.card h2,main .joy218-progress section.card h3{font-size:18px;margin:0}
main .joy218-progress .between{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
main .joy218-progress .bar{height:12px;border-radius:999px;background:var(--track);overflow:hidden}
main .joy218-progress .bar i{display:block;height:100%;border-radius:999px;background:var(--accent)}
main .joy218-progress .chip{font-weight:700}
/* top metrics: two big tiles */
main .joy218-progress>.grid2:has(.metric){display:grid;grid-template-columns:1fr 1fr;gap:12px}
main .joy218-progress>.grid2:has(.metric) .metric{display:flex;flex-direction:column;justify-content:center;gap:2px;padding:18px;border-radius:22px;min-height:112px}
main .joy218-progress>.grid2:has(.metric) .metric b{font-size:21px;margin:0;line-height:1.4}
main .joy218-progress>.grid2:has(.metric) .metric span:not(.joy218-streakflame){font-size:13px;color:var(--muted);line-height:1.6}
main .joy218-progress .joy218-streakflame svg{width:30px;height:36px}
/* week row */
main .joy218-progress .week{gap:6px;margin-top:14px}
main .joy218-progress .day b{min-height:40px;border-radius:12px}
/* recall: three tiles in a row */
main .joy218-progress .recall-stats249{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
main .joy218-progress .recall-stats249 p{margin:0;padding:12px 10px;border-radius:16px;background:var(--panel);text-align:center;align-items:center}
main .joy218-progress .recall-stats249 b{font-size:28px}
main .joy218-progress .recall-stats249 span{font-size:12px;line-height:1.6}
/* badges */
main .joy218-progress>.grid2:has(.badge){display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
main .joy218-progress .badge{min-height:128px;padding:16px 10px;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
main .joy218-progress .badge small{font-size:12px;color:var(--muted)}
main .joy218-progress .badge:not(.missing){border-color:var(--gold);box-shadow:0 3px 12px #b4773926}
main .joy218-progress .notice{border-radius:16px;font-size:13px}
main .joy218-progress .btn{align-self:flex-start;margin-top:8px}
@media(min-width:720px){
 main .joy218-progress>.grid2:has(.badge){grid-template-columns:repeat(4,1fr)}
 main .joy218-progress>.grid2:has(.metric) .metric b{font-size:32px}
}
@media(max-width:400px){main .joy218-progress .recall-stats249{grid-template-columns:1fr}}
/* ---- v6: cohesive teal + orange palette ---- */
main .joy218-progress{--t:#0E7683;--o:#E8742A}
main .joy218-progress>.eyebrow{align-self:flex-start;padding:6px 14px;border-radius:999px;background:#FFF1E3;color:#9A4A12;font-weight:700;font-size:13px}
main .joy218-progress>.eyebrow::before{content:"✦ ";color:var(--o)}
main .joy218-progress>h1{color:var(--t)}
main .joy218-progress>.coach-links233 a{background:#EAF6F5;border-color:#A8D8D3;color:#0B5F69;font-weight:700}
main .joy218-progress>.grid2:has(.metric) .metric:nth-child(1){background:#E6F4F3!important;border:1.5px solid #A8D8D3!important}
main .joy218-progress>.grid2:has(.metric) .metric:nth-child(1) b{color:#0B6B76}
main .joy218-progress>.grid2:has(.metric) .metric:nth-child(2){background:#FFF1E3!important;border:1.5px solid #F4C79B!important}
main .joy218-progress>.grid2:has(.metric) .metric:nth-child(2) b{color:#C95F14}
main .joy218-progress .metric span:not(.joy218-streakflame){color:#4B5560!important}
main .joy218-progress>section.card,main .joy218-progress>.recall-metrics249{background:#F6FBFA!important;border:1.5px solid #CFE6E3!important;border-inline-start:5px solid var(--t)!important}
main .joy218-progress>section.card:nth-of-type(2){background:#FFF8F0!important;border-color:#F4D9BE!important;border-inline-start-color:var(--o)!important}
main .joy218-progress section.card h2,main .joy218-progress section.card h3{color:#27333A!important}
main .joy218-progress .recall-stats249 p{background:#fff;box-shadow:none;border:1px solid #DCEBE9}
main .joy218-progress .recall-stats249 b{color:var(--t)}
main .joy218-progress section.card .bar{background:#E3EEEC!important}
main .joy218-progress section.card .bar i{background:linear-gradient(90deg,var(--t),#2FA6A0)!important}
main .joy218-progress>section.card:nth-of-type(2) .bar i{background:linear-gradient(90deg,var(--o),#F2A04E)!important}
main .joy218-progress .day b{background:#fff!important;border-color:#F4D9BE!important}
main .joy218-progress .day.on b{background:var(--o)!important;color:#fff!important;border-color:var(--o)!important}
main .joy218-progress .chip{background:#fff!important;color:#B05A14!important}
main .joy218-progress .btn{background:var(--t)!important;color:#fff!important;border-color:var(--t)!important;font-weight:700}
main .joy218-progress .badge{border:1.5px dashed #CFE0DE!important;background:#F6FBFA!important}
main .joy218-progress .badge.missing{opacity:1}
main .joy218-progress .badge.missing>span{opacity:.5;filter:grayscale(.7)}
main .joy218-progress .badge:not(.missing){border:1.5px solid #F4C79B!important;background:#FFF1E3!important;box-shadow:0 4px 12px #e8742a26}
main .joy218-progress .badge strong{color:#27333A!important;font-size:14px}
main .joy218-progress .badge small{color:#66727C!important}
main .joy218-progress>h2{background:none;color:#27333A}
main .joy218-progress>h2::after{content:" ★";color:var(--o)}
main .joy218-progress .notice{background:#EAF6F5!important;border:1px solid #A8D8D3!important;color:#35545A!important}
/* badge colours: beat body #app rule */
body #app .joy218-progress .badge.missing,body #app .joy218-progress .badge.missing:nth-child(n){background:#F6FBFA!important;border-color:#CFE0DE!important}
/* dark */
[data-theme=dark] main .joy218-progress>.eyebrow{background:#4A3524;color:#FFD9B8}
[data-theme=dark] main .joy218-progress>h1{color:#6FD6D0}
[data-theme=dark] main .joy218-progress>.coach-links233 a{background:#1D4A4D;border-color:#3E8F93;color:#BFF0EE}
[data-theme=dark] main .joy218-progress>.grid2:has(.metric) .metric:nth-child(1){background:#173F42!important;border-color:#3E8F93!important}
[data-theme=dark] main .joy218-progress>.grid2:has(.metric) .metric:nth-child(1) b{color:#7FE0DA}
[data-theme=dark] main .joy218-progress>.grid2:has(.metric) .metric:nth-child(2){background:#4A3220!important;border-color:#B8793A!important}
[data-theme=dark] main .joy218-progress>.grid2:has(.metric) .metric:nth-child(2) b{color:#FFB569}
[data-theme=dark] main .joy218-progress .metric span:not(.joy218-streakflame){color:#E4E8EA!important}
[data-theme=dark] main .joy218-progress>section.card,[data-theme=dark] main .joy218-progress>.recall-metrics249{background:#18343A!important;border-color:#2E5C62!important;border-inline-start-color:#4FC1BA!important}
[data-theme=dark] main .joy218-progress>section.card:nth-of-type(2){background:#3A2D20!important;border-color:#6E5238!important;border-inline-start-color:#F08A3E!important}
[data-theme=dark] main .joy218-progress section.card h2,[data-theme=dark] main .joy218-progress section.card h3,[data-theme=dark] main .joy218-progress>h2{color:#F3F5F6!important}
[data-theme=dark] main .joy218-progress .recall-stats249 p{background:#12282D;border-color:#2E5C62}
[data-theme=dark] main .joy218-progress .recall-stats249 b{color:#7FE0DA}
[data-theme=dark] main .joy218-progress section.card .bar{background:#0004!important}
[data-theme=dark] main .joy218-progress .day b{background:#2A2218!important;border-color:#6E5238!important;color:#F0D5B0!important}
[data-theme=dark] main .joy218-progress .chip{background:#2A2218!important;color:#FFC98A!important}
[data-theme=dark] main .joy218-progress .badge{border-color:#2E5C62!important;background:#18343A!important}
[data-theme=dark] main .joy218-progress .badge:not(.missing){background:#4A3220!important;border-color:#B8793A!important;box-shadow:none}
[data-theme=dark] main .joy218-progress .badge strong{color:#F3F5F6!important}
[data-theme=dark] main .joy218-progress .badge small{color:#C4CED3!important}
[data-theme=dark] main .joy218-progress .notice{background:#183A3D!important;border-color:#3E8F93!important;color:#CFE6E8!important}
[data-theme=dark] body #app .joy218-progress .badge.missing,[data-theme=dark] body #app .joy218-progress .badge.missing:nth-child(n){background:#18343A!important;border-color:#2E5C62!important}
