/* «تقدمي»: the home-page card, the full report (/progress), the welcome-back line, the plan's
   «آخر ٧ أيام» strip and the milestone dialog. Same tokens as the rest of the site (site.css):
   Amiri for headings and figures, IBM Plex Sans Arabic for text, navy / mint / green, white
   cards with a thin line. */

/* Seven small dots: the last 7 days, oldest first, today last. */
.pr-dots{display:flex;gap:7px;margin:0;padding:0;list-style:none;direction:ltr;flex-direction:row-reverse}
.pr-dots li{display:grid;justify-items:center;gap:4px}
.pr-dots i{display:block;width:11px;height:11px;border-radius:50%;background:#e4e9f3;box-shadow:inset 0 0 0 1px #d3dbea}
.pr-dots li.on i{background:var(--green);box-shadow:none}
.pr-dots li.today i{outline:2px solid #9aa6c0;outline-offset:2px}
.pr-dots li.today.on i{outline-color:var(--green)}
.pr-dots.labelled{gap:10px}
.pr-dots.labelled i{width:14px;height:14px}
.pr-dots.labelled span[aria-hidden]{font-size:11.5px;color:var(--muted);line-height:1.2;direction:rtl}

/* Lifetime figures */
.pr-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.pr-totals>div{min-width:0;padding:16px 18px;border-radius:16px;background:#fff;border:1px solid var(--line)}
.pr-totals dt{display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--muted);font-weight:500}
.pr-totals dt .ui-icon{width:17px;height:17px;flex:none;color:var(--green-ink)}
.pr-totals dd{margin:4px 0 0;font:700 clamp(26px,3.2vw,36px)/1.3 var(--serif);color:var(--navy);white-space:nowrap}
.pr-totals.compact>div{padding:12px 14px;border-radius:14px;background:#f8fafd}
.pr-totals.compact dd{font-size:clamp(22px,2.6vw,28px)}
.pr-totals.small dd{font-size:clamp(20px,2.4vw,26px)}
.pr-totals small{display:block;font-size:12px;color:var(--muted)}

/* The home-page card */
.pr-card{display:grid;gap:16px;padding:22px 24px;background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.pr-card-week{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;padding-top:14px;border-top:1px solid var(--line)}
.pr-card-week-text{display:grid;gap:2px;min-width:0}
.pr-card-week-text strong{color:var(--navy);font-weight:600;font-size:15px}
.pr-card-week-text span{color:var(--muted);font-size:14px}
.pr-card-link{justify-self:start;display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--navy);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:#9aa6c0;text-underline-offset:7px}
.pr-card-link:hover{text-decoration-color:var(--navy)}

/* The full report */
.pr-report{display:grid;gap:18px}
.pr-block{padding:24px 26px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-card,20px);box-shadow:var(--shadow)}
.pr-block h2{margin:0;font-size:clamp(24px,3vw,30px);line-height:1.35}
.pr-lede{margin:2px 0 16px;color:var(--muted);font-size:14.5px}
.pr-life{background:linear-gradient(180deg,#f3faf7,#fff 70%);border-color:#cfe9df}
.pr-life .pr-totals>div{border-color:#d7ebe3}
.pr-life .pr-totals dd{font-size:clamp(28px,3.6vw,40px)}
.pr-week-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 20px}
.pr-week-head .pr-dots{margin-top:6px}
.pr-active{margin:14px 0 0;color:var(--text);font-size:14.5px}
.pr-next{display:grid;gap:12px}
.pr-next-line{margin:0;color:var(--navy);font-size:16px;font-weight:500}
.pr-foot{display:flex;gap:8px;align-items:flex-start;margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.pr-foot .ui-icon{flex:none;width:16px;height:16px;margin-top:3px}

/* A suggested library source */
.pr-srcs{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.pr-srcs.one{grid-template-columns:minmax(0,1fr)}
.pr-src{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--navy);text-decoration:none;transition:border-color .2s}
.pr-src:hover{border-color:#aeb9d0}
.pr-src-ico{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:11px;background:#eef7f3;color:var(--green-ink)}
.pr-src-ico .ui-icon{width:18px;height:18px}
.pr-src-txt{display:grid;gap:1px;min-width:0;flex:1}
.pr-src-txt bdi{font-weight:600;overflow-wrap:anywhere;line-height:1.5}
.pr-src-txt small{color:var(--muted);font-size:12.5px}
.pr-src-go{flex:none;color:var(--muted)}
.pr-src-go .ui-icon{width:16px;height:16px}

/* Welcome back (top of the signed-in home page) */
.pr-back-slot{padding-top:22px}
.pr-back{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,360px);align-items:center;gap:12px 22px;padding:18px 22px;padding-inline-end:56px;background:#f3faf7;border:1px solid #cfe9df;border-radius:18px}
.pr-back-text{display:grid;gap:2px}
.pr-back-text strong{font:700 clamp(19px,2.2vw,22px)/1.5 var(--serif);color:var(--navy)}
.pr-back-text span{color:var(--muted);font-size:14px}
.pr-back-close{position:absolute;top:10px;inset-inline-end:10px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}
.pr-back-close:hover{background:#ffffffb3;color:var(--navy)}
.pr-back-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

/* «خطتك»: the sessions of the last 7 days, inside the dark plan header */
.wp-week{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:10px 0 12px}
.wp-week-count{font:700 20px/1.3 var(--serif);color:#fff}
.wp-week-sub{font-size:13px;color:var(--on-deep)}
.wp-week-dots{display:flex;gap:6px;margin:0;padding:0;list-style:none;direction:ltr;flex-direction:row-reverse}
.wp-week-dots li{width:10px;height:10px;border-radius:50%;background:#ffffff26}
.wp-week-dots li.on{background:var(--mint)}
.wp-week-dots li.today{outline:2px solid #ffffff66;outline-offset:2px}
.wp-week-line{flex-basis:100%;font-size:13px;color:var(--on-deep)}

/* Milestone congratulations (inside the site's dialog) */
.pr-mile{display:grid;justify-items:center;gap:6px;text-align:center;padding:4px 4px 0}
.pr-mile-rule{display:block;width:72px;height:2px;margin-bottom:8px;background:linear-gradient(90deg,transparent,var(--green),transparent)}
.pr-mile-num{margin:0;font:700 64px/1.1 var(--serif);color:var(--green-ink)}
.pr-mile-title{margin:0;font:700 clamp(24px,3vw,28px)/1.4 var(--serif);color:var(--navy)}
.pr-mile-text{margin:2px 0 8px;max-width:38ch;color:var(--text);font-size:15px}
.pr-mile-actions{justify-content:center;width:100%}
.pr-mile-actions a.acct-btn{text-decoration:none;display:inline-flex;align-items:center}

@media(max-width:820px){.pr-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.pr-back{grid-template-columns:1fr}}
@media(max-width:560px){.pr-card{padding:18px 16px}.pr-block{padding:18px 16px}.pr-totals{gap:8px}.pr-totals>div{padding:12px}.pr-back-slot{padding-top:14px}}
