/* My Profile (profile.js) and Sapphire Points (points.js) — 2026-11-28 */
.c-me{background:#2f54eb}
.sap-badge{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px 0 8px;border-radius:16px;background:linear-gradient(135deg,rgba(47,107,255,.2),rgba(102,163,255,.1));border:1px solid rgba(102,163,255,.45);color:light-dark(#1d3fa8,#cfe0ff);font-weight:700;font-size:14px;white-space:nowrap}
.sap-badge .gemi,.sap-pop .gemi{width:18px;height:18px;flex:none}
.sap-pop{position:fixed;left:50%;bottom:28px;z-index:190;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:16px;background:light-dark(#fff,#262a33);color:var(--ink);box-shadow:0 14px 36px rgba(0,0,0,.35);font-weight:650;animation:sapIn .45s cubic-bezier(.2,1.5,.4,1)}
.sap-pop b{color:#2f6bff;font-size:17px}
.sap-pop.out{transition:opacity .45s,transform .45s;opacity:0;transform:translate(-50%,12px)}
@keyframes sapIn{from{opacity:0;transform:translate(-50%,24px) scale(.85)}}
.av.avp{overflow:hidden;padding:0;background:none!important}.av.avp svg{width:100%;height:100%;display:block}
.pf{display:flex;flex-direction:column;gap:16px}
.pf-top{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.pf-av{width:88px;height:88px;flex:none;padding:0;border:0;border-radius:50%;overflow:hidden;background:var(--hover);box-shadow:0 0 0 4px var(--bg),0 0 0 6px var(--acc);display:grid;place-items:center}
.pf-av svg{width:100%;height:100%;display:block}.pf-noav .i{width:38px;height:38px;color:var(--mut)}
.pf-who{flex:1;min-width:200px;display:flex;flex-direction:column;gap:3px}
.pf-who b{font-size:22px;letter-spacing:-.01em}.pf-who small{color:var(--mut);font-size:13.5px}
.pf-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.pf-flame{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:16px;background:rgba(255,140,60,.14);color:light-dark(#b45309,#ffb070);font-weight:700;font-size:13.5px}
.pf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:700px){.pf-grid{grid-template-columns:1fr}}
.pf-f{display:flex;flex-direction:column;gap:5px}.pf-f span{font-size:12.5px;font-weight:600;color:var(--mut)}
.pf-in{height:44px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);padding:0 12px;font-size:15px;width:100%}
.pf-in:focus{outline:2px solid var(--accSoft);border-color:var(--acc)}
.pf-in.ro{color:var(--mut)}
.pf-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:900px){.pf-cards{grid-template-columns:1fr}}
.pf-card{border-radius:16px;background:var(--card);border:1px solid var(--line);padding:14px}
.pf-card h5{margin:0 0 8px;font-size:13px;color:var(--mut);font-weight:650}
.pf-card small{color:var(--mut);font-size:12.5px}
.pf-goal{display:flex;align-items:center;gap:12px}.pf-goal>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.pf-big{font-size:24px;font-weight:800}
.pf-gs{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.pf-gs button{height:28px;padding:0 9px;border-radius:14px;border:1px solid var(--line);background:none;color:var(--ink);font-size:12px}
.pf-gs button.on{background:#ff9a4a;border-color:#ff9a4a;color:#2a1400;font-weight:700}
.pf-week{display:flex;gap:6px;height:76px;align-items:flex-end;margin-bottom:6px}
.pf-week i{flex:1;height:100%;border-radius:7px;background:var(--line);position:relative;font-style:normal}
.pf-week i b{position:absolute;left:0;right:0;bottom:0;border-radius:7px;background:#ff9a4a;min-height:3px}
.pf-week i em{position:absolute;left:0;right:0;bottom:-18px;text-align:center;font-style:normal;font-size:11px;color:var(--mut)}
.pf-week+small{display:block;margin-top:22px}
.pf-lr{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:5px 0;border-bottom:1px solid var(--line)}
.pf-lr span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pf-lr b{color:#2f6bff;flex:none}.pf-lr b.neg{color:var(--mut)}
.pf-empty{margin:4px 0;font-size:13px}
.pf-how{margin-top:8px;border:0;background:none;color:var(--acc);font-weight:650;font-size:13px;padding:4px 0}
.pf-avs{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
@media (max-width:560px){.pf-avs{grid-template-columns:repeat(4,1fr)}}
.pf-avc{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:none;color:var(--mut);font-size:12px;padding:0}
.pf-avc svg{width:100%;aspect-ratio:1;border-radius:50%;display:block;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.pf-avc.on svg{box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--acc)}
.pf-how-l{margin-bottom:8px}
/* Syllabus tracker: Today's revision + Study planner (syllabus.js) */
.sy-today{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:14px 16px;border-radius:18px;background:light-dark(linear-gradient(135deg,#eef2ff,#f6f8ff),linear-gradient(135deg,#1f2a4d,#22263a));border:1px solid light-dark(#d6defc,#33406b)}
.sy-tdt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.sy-tdt b{font-size:16px}.sy-tdt small{color:var(--mut);font-size:12.5px}
.sy-its{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sy-it{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:14px;background:light-dark(#fff,rgba(255,255,255,.07));border:1px solid var(--line);font-size:12.5px;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sy-tl{display:flex;flex-direction:column;gap:4px}.sy-th{margin:12px 2px 4px;font-size:12.5px;color:var(--mut);text-transform:uppercase;letter-spacing:.4px}
.sy-tr{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);text-align:left}
.sy-tr:hover{border-color:var(--acc)}.sy-tri{font-size:20px;flex:none}.sy-tr span:last-child{display:flex;flex-direction:column;min-width:0}.sy-tr small{color:var(--mut);font-size:12px}
.sy-planb{display:inline-flex;align-items:center;gap:6px}.sy-planb .i{width:17px;height:17px}
.sy-plan{display:flex;flex-direction:column;gap:12px}
.sy-ph{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sy-ph b{font-size:18px;margin-right:4px}
.sy-ph .chip{min-height:30px}.sy-ok{color:#0f9d6e!important;background:rgba(15,157,110,.12)!important}.sy-busy{color:#c2410c!important;background:rgba(234,88,12,.12)!important}
.sy-dw{display:flex}.sy-dw button{font-size:12.5px;padding:0 10px}
.sy-wk{display:flex;align-items:center;justify-content:center;gap:10px;font-weight:650}
.sy-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
@media (max-width:760px){.sy-days{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sy-day{min-height:130px;border-radius:12px;background:var(--card);border:1px solid var(--line);padding:8px;display:flex;flex-direction:column;gap:5px}
.sy-day.today{border-color:var(--acc);box-shadow:0 0 0 2px var(--accSoft)}.sy-day.past{opacity:.5}
.sy-dd2{display:flex;justify-content:space-between;font-weight:700;font-size:12.5px}.sy-dd2 em{font-style:normal;color:var(--acc)}
.sy-kind{font-size:12px;color:var(--mut)}
.sy-pt{border:0;border-radius:8px;padding:5px 7px;text-align:left;font-size:12px;line-height:1.3;color:var(--ink);background:hsl(var(--h) 70% 55% / .16)}
.sy-pt.done{text-decoration:line-through;opacity:.55}
/* My Profile — Save button and saved summary */
.pf-acts{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.pf-acts .pf-save{padding:0 22px;font-weight:600;background:var(--acc);color:#fff;border-color:var(--acc);box-shadow:0 3px 10px color-mix(in srgb,var(--acc) 30%,transparent)}
.pf-acts .pf-save .i{width:18px;height:18px}
.pf-saved{border:1px solid var(--line);border-radius:16px;background:var(--card);padding:14px 16px}
.pf-sv-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.pf-ok{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:#1f9d55;font-size:14px}
.pf-ok .i{width:18px;height:18px}
.pf-dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin:0}
@media (max-width:700px){.pf-dl{grid-template-columns:1fr}}
.pf-dl div{min-width:0}.pf-dl dt{font-size:12px;font-weight:600;color:var(--mut)}
.pf-dl dd{margin:2px 0 0;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Study Playlists: the Continue / Start button keeps its icon and word on one line, inside the button (2026-11-28) */
.sy-head .pb.yp-go{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;white-space:nowrap;flex:none;width:auto;min-width:max-content;height:44px;min-height:44px;padding:0 18px;line-height:1}
.sy-head .pb.yp-go .i{width:18px;height:18px;flex:none;margin:0}

/* Today: exam countdown as an hourglass beside the days (design 6.1, 2026-11-28) */
.cdh{display:flex;align-items:center;gap:14px;flex:none;border:0;background:none;color:var(--ink);padding:10px 14px;margin:6px 8px 6px auto;border-radius:20px;cursor:pointer;text-align:left;font:inherit;transition:background .15s}
.cdh:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}.cdh:active{transform:scale(.98)}
.cdh-g{width:66px;height:104px;flex:none;overflow:visible}
.cdh-g .fr{fill:#c48a5a}.cdh-g .gl{fill:light-dark(rgba(91,111,214,.08),rgba(160,190,255,.16));stroke:light-dark(#5b6fd6,#9fb4ff);stroke-width:2}
.cdh-g .sd{fill:light-dark(#f5b301,#ffd166)}.cdh-g .st{stroke:light-dark(#f5b301,#ffd166);stroke-width:2;stroke-dasharray:2 3;animation:cdhSand 1.1s linear infinite}
@keyframes cdhSand{to{stroke-dashoffset:-10}}
html.lite .cdh-g .st,html.noanim .cdh-g .st{animation:none}
.cdh-t{display:flex;flex-direction:column;min-width:0;width:178px}
.cdh-u span{white-space:nowrap}
.cdh-n{font-size:58px;font-weight:900;line-height:1;letter-spacing:-1.5px}.cdh-n.sm{font-size:44px}.cdh-n.wd{font-size:40px}
.cdh-u{font-size:14px;color:var(--mut);margin-top:4px;line-height:1.3}
.cdh-w{font-size:18px;font-weight:800;line-height:1.2}
.cdh.cdh-none .cdh-g{width:52px;height:82px}
@media (max-width:640px){.cdh{margin:10px auto 0 0;padding:6px 4px}.cdh-t{width:auto}.cdh-g{width:54px;height:85px}.cdh-n{font-size:50px}}

/* design 6.10 (2026-11-28): hourglass on the front sticky note, text centred; the note keeps its tape and the stack behind */
.cdc.cdn6{width:min(100%,290px);min-height:156px}
.cdc .cdn6-f{flex-direction:row;align-items:center;justify-content:center;gap:16px;padding:18px 16px 14px}
.cdn6-f .cdh-g{width:52px;height:82px}
.cdn6-f .cdh-g .fr{fill:#8a5a2a}.cdn6-f .cdh-g .gl{fill:rgba(255,255,255,.38);stroke:#6b5a20}.cdn6-f .cdh-g .sd{fill:#c2410c}.cdn6-f .cdh-g .st{stroke:#c2410c}
.cdn6-f .cdh-t{width:auto;min-width:0;align-items:center;text-align:center}
.cdn6-f .cdh-t small{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cdn6-f .cdh-n{font-size:56px;margin-top:2px;color:inherit}.cdn6-f .cdh-n.sm{font-size:42px}.cdn6-f .cdh-n.wd{font-size:36px;margin:4px 0}
.cdn6-f .cdh-u{color:inherit;opacity:.8;font-size:13.5px;font-weight:600;margin-top:2px}
.cdn6-f .cdh-w{font-size:18px;line-height:1.15;margin:4px 0 2px}
.cdc.cdn6.cdh-none .cdh-g{width:44px;height:70px}
.cdc.cdn6.cdh-none .cdh-w{font-size:16px;white-space:nowrap}.cdc.cdn6.cdh-none .cdh-u{font-size:12.5px;white-space:nowrap}
@media (max-width:640px){.cdc.cdn6{margin:14px 4px 4px}}
