/* Premium learning shell; scoped so exams, checkout and WordPress admin remain unchanged. */
.hm58-shell{--hm58-bg:#f5f7fa;--hm58-card:#fff;--hm58-ink:#183247;--hm58-muted:#56697b;--hm58-line:#dce5eb;--hm58-accent:#19775f;color:var(--hm58-ink);margin:0 0 20px;direction:rtl}.hm58-shell svg,.hm58-mobile svg,.hm58-theme svg{width:24px;height:24px;flex-shrink:0}.hm58-hero{position:relative;overflow:hidden;padding:clamp(20px,4vw,36px);border-radius:24px;background:radial-gradient(ellipse at 5% 0%,#2f6657,transparent 65%),linear-gradient(125deg,#132c3b,#183e39);color:#fff;border:1px solid #477365;box-shadow:0 12px 30px #132f3420}.hm58-hero h1{font-size:clamp(22px,4vw,34px)!important;font-weight:900;color:#fff!important;margin:16px 0 6px!important}.hm58-hero p{color:#d8e6df!important;margin:0 0 20px!important}.hm58-headline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.hm58-kicker{font-size:12px;color:#cbe1d2;letter-spacing:.02em}.hm58-theme{display:inline-flex!important;align-items:center;gap:7px;min-height:40px;padding:8px 12px!important;font:inherit!important;font-size:12px!important;background:#f1f5f2!important;color:#243b35!important;border:1px solid #c5d6cd!important;border-radius:12px!important;cursor:pointer}.hm58-theme svg{width:18px;height:18px}.hm58-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hm58-metrics>div{display:grid;gap:7px;justify-items:center;text-align:center;padding:15px 7px;background:#ffffff0d;border:1px solid #ffffff25;border-radius:16px;min-width:0}.hm58-metrics svg{color:#e9c987;width:25px;height:25px}.hm58-metrics strong{color:#fff!important;font-size:clamp(16px,3vw,26px);font-weight:900;overflow-wrap:anywhere}.hm58-metrics small{font-size:12px;color:#d9e7df!important}.hm58-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.hm58-tile,.hm58-continue{display:flex;align-items:center;gap:12px;padding:14px;text-decoration:none!important;background:var(--hm58-card);border:1px solid var(--hm58-line);border-radius:17px;color:var(--hm58-ink)!important;box-shadow:0 3px 8px #172f4310;min-width:0}.hm58-tile:hover,.hm58-continue:hover{border-color:var(--hm58-accent);transform:translateY(-1px)}.hm58-tile>span:nth-child(2),.hm58-continue>span{display:grid;gap:4px;flex:1;min-width:0}.hm58-tile b,.hm58-continue b{color:var(--hm58-ink)!important;font-size:15px;overflow-wrap:anywhere}.hm58-tile small,.hm58-continue small{color:var(--hm58-muted)!important;font-size:12px}.hm58-tile-icon{display:grid;place-items:center;width:47px;height:47px;border-radius:14px;background:#e6f4ec;color:#19775f;flex:none}.hm58-tile:nth-child(2) .hm58-tile-icon{background:#fbf0d7;color:#9b6a19}.hm58-tile:nth-child(3) .hm58-tile-icon{background:#e8effb;color:#356399}.hm58-tile:nth-child(4) .hm58-tile-icon{background:#f0eafa;color:#7753a4}.hm58-tile>svg{width:18px;height:18px;color:var(--hm58-muted)}.hm58-continue{margin:12px 0;background:var(--hm58-card);border-inline-start:4px solid var(--hm58-accent)}.hm58-continue>svg,.hm58-continue>strong{color:var(--hm58-accent);font-size:13px}.hm58-section{background:var(--hm58-card);border:1px solid var(--hm58-line);border-radius:16px;padding:18px}.hm58-section h2{color:var(--hm58-ink)!important}.hm58-profile-id{display:flex;align-items:center;gap:15px;margin-top:18px}.hm58-profile-id>span{width:72px;height:72px;display:grid;place-items:center;background:#ffffff15;border:1px solid #ffffff35;border-radius:24px;flex:none}.hm58-profile-id svg{width:38px;height:38px;color:#e3c88a}.hm58-profile-id p{overflow-wrap:anywhere}.hm58-mobile{display:none}.hm58-league-toolbar{display:flex;justify-content:flex-end;margin:12px 0}.hm56 .hm58-podium-leaders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:5px;margin:16px 0}.hm58-podium-person{min-width:0;display:grid;align-content:center;justify-items:center;gap:5px;padding:10px 4px;border-radius:13px;border:1px solid #dce5ed;background:#f5f8fc;text-align:center;min-height:105px;color:#183247}.hm58-place-1{grid-column:2;grid-row:1;min-height:145px;background:linear-gradient(180deg,#fff8e4,#f8e5b7);border-color:#e4c67f}.hm58-place-2{grid-column:1;grid-row:1;background:linear-gradient(180deg,#f9fbfd,#e2e8ef);min-height:121px}.hm58-place-3{grid-column:3;grid-row:1;background:linear-gradient(180deg,#fdf5ec,#ecd4bf)}.hm58-podium-person .hm57-leader-name{font-size:12px;line-height:1.55;max-width:100%;overflow-wrap:anywhere}.hm58-podium-person strong{font-size:18px;color:#173b52}.hm58-podium-person .hm56-rank{width:46px;height:46px;font-size:28px}.hm58-archive{margin:20px 0;padding:16px;border:1px solid #dce5eb;border-radius:18px;background:#fff}.hm58-archive summary{cursor:pointer;font-weight:800}.hm58-mobile a:focus-visible,.hm58-tile:focus-visible,.hm58-theme:focus-visible,.hm58-continue:focus-visible{outline:3px solid #bf8d35;outline-offset:3px}
/* Dark preference affects the new dashboard, profile and league surfaces only. */
.hm58-dark .hm58-shell{--hm58-card:#263b42;--hm58-ink:#eef6f1;--hm58-muted:#b9c9c7;--hm58-line:#41585c;--hm58-accent:#8fdbb1}.hm58-dark .hm58-hero{background:linear-gradient(135deg,#102b2c,#254a3b)}.hm58-dark .hm58-section p{color:var(--hm58-ink)!important}.hm58-dark .hm58-theme{background:#2b4240!important;color:#e8f5ed!important;border-color:#58736b!important}.hm58-dark .hm56 .hm57-group{background:#1f3038;border-color:#42535b;color:#eaf1f3}.hm58-dark .hm56 .hm57-group-head{border-color:#42535b}.hm58-dark .hm56 .hm56-heading,.hm58-dark .hm56 .hm57-group>p,.hm58-dark .hm56 .hm57-group-head small,.hm58-dark .hm56 .hm57-group [data-hm52-end]{color:#eaf1f3!important}.hm58-dark .hm56 .hm57-group-total{background:#30434a;border-color:#52666d}.hm58-dark .hm56 .hm57-group-total strong{color:#f4d293}.hm58-dark .hm56 .hm56-card{--ink:#f1f5f5;--muted:#c0d0d5;--accent:#a9dfca;--tint:#354c4d;background:#293b43;border-color:#485c62;color:#f1f5f5!important}.hm58-dark .hm56 .hm56-card label,.hm58-dark .hm56 .hm56-card summary{color:#e0eae7!important}.hm58-dark .hm56 .hm56-card .hm-button{background:#19775f!important;color:#fff!important}.hm58-dark .hm56 .hm56-card td{background:#354952;color:#edf4f5!important}.hm58-dark .hm56 .hm56-card th{color:#c0d0d5!important}.hm58-dark .hm56 .hm56-mine{color:#eaf4ef!important}.hm58-dark .hm56 .hm57-board{border-color:#52666d}.hm58-dark .hm56 .hm58-archive{background:#293b43;color:#edf4f5;border-color:#52666d}.hm58-dark .hm56 .hm58-archive td{background:#354952;color:#edf4f5!important}.hm58-dark .hm56 .hm58-archive th{color:#c0d0d5!important}
@media(max-width:700px){body.hm58-nav-active{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}.hm58-mobile{position:fixed;z-index:90;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:7px 4px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dce5eb;box-shadow:0 -4px 20px #16394d18}.hm58-mobile a{min-width:0;display:grid;justify-items:center;align-content:center;gap:4px;text-decoration:none!important;color:#516675!important;font-size:10px;font-weight:700;min-height:47px;border-radius:10px}.hm58-mobile a[aria-current=page]{background:#e5f4ed;color:#19775f!important}.hm58-dark .hm58-mobile{background:#263b42;border-color:#41585c}.hm58-dark .hm58-mobile a{color:#c4d3d0!important}.hm58-dark .hm58-mobile a[aria-current=page]{background:#365c50;color:#b1e9c9!important}.hm58-tiles{gap:8px}.hm58-tile{padding:10px;gap:8px}.hm58-tile-icon{width:35px;height:35px;border-radius:10px}.hm58-tile-icon svg{width:20px;height:20px}.hm58-tile b{font-size:13px}.hm58-tile small{font-size:11px}.hm58-tile>svg{display:none}.hm58-metrics{gap:5px}.hm58-metrics>div{padding:10px 4px}.hm58-metrics small{font-size:10px}.hm58-hero{padding:17px}.hm58-continue strong{font-size:11px}.hm58-profile-id>span{width:52px;height:52px}.hm58-profile-id svg{width:28px;height:28px}}@media(max-width:360px){.hm58-tiles{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.hm58-tile,.hm58-continue{transition:none!important;transform:none!important}}
