/* Owner-supplied atqinha_home_preview.html layout; dashboard only. */
:root {
      font-family: "Noto Sans Arabic UI", "Noto Sans Arabic", "Tajawal", system-ui, sans-serif;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      color-scheme: dark;
      --bg: #051426;
      --bg2: #071b34;
      --surface: rgba(11,38,70,.94);
      --surface2: #112f51;
      --surface3: #173858;
      --border: rgba(65,126,198,.28);
      --edge: #29619b;
      --text: #f7fbff;
      --muted: #a5bfda;
      --soft: #cce0f7;
      --blue: #0e58d5;
      --blue-bright: #1278ff;
      --focus: #6bcaff;
      --nav: rgba(15,43,76,.88);
      --page-shadow: 0 16px 42px rgba(0,7,19,.18);
      --course-bg: #e0eeff;
      --course-text: #0b244a;
      --course-muted: #4a6c94;
      --small-tile: #13345a;
      --modal: #112844;
      --outline-btn: #0a3159;
    }
    html[data-theme="light"] {
      color-scheme: light;
      --bg: #edf4fc;
      --bg2: #f7faff;
      --surface: #ffffff;
      --surface2: #f1f6fc;
      --surface3: #e7f1fb;
      --border: #d7e5f5;
      --edge: #b8cee6;
      --text: #14294b;
      --muted: #607c9b;
      --soft: #274363;
      --blue: #1256c6;
      --blue-bright: #0874df;
      --focus: #087bc8;
      --nav: rgba(255,255,255,.96);
      --page-shadow: 0 13px 40px rgba(44,79,126,.08);
      --course-bg: #eaf3ff;
      --course-text: #152e56;
      --course-muted: #55769c;
      --small-tile: #f3f8ff;
      --modal: #ffffff;
      --outline-btn: #f3f8ff;
    }
    *,*::before,*::after{box-sizing:border-box}
    html{scroll-behavior:smooth}
    body{margin:0; min-width:320px; min-height:100vh; min-height:100dvh; color:var(--text); background: radial-gradient(ellipse at 86% -16%, rgba(18,79,153,.20),transparent 43%),radial-gradient(ellipse at 2% 85%, rgba(12,95,176,.08),transparent 50%),linear-gradient(142deg,var(--bg),var(--bg2) 68%,var(--bg)); transition:background .2s,color .2s}
    button{font:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}
    a{color:inherit;text-decoration:none}
    button, a{-webkit-tap-highlight-color:transparent}
    :focus-visible{outline:3px solid var(--focus);outline-offset:3px}
    .svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
    .ic{width:22px;height:22px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
    .ic.fill{fill:currentColor;stroke-width:1.2}
    .shell{max-width:1552px;margin:auto;padding:0 clamp(16px,3vw,48px) 24px}
    .topbar{height:88px;display:grid;grid-template-columns:minmax(176px,1fr) auto minmax(176px,1fr);align-items:center;gap:16px}
    .brand{display:flex;align-items:center;gap:10px;width:max-content;justify-self:start}
    .brand-name{font-weight:900;font-size:clamp(25px,2.2vw,35px);letter-spacing:-1.2px;line-height:1.5}
    .brand-glyph{width:32px;height:37px;position:relative;display:inline-block}
    .brand-glyph span{position:absolute;width:13px;height:25px;background:linear-gradient(155deg,#00c4fa,#1267f2);border-radius:6px;transform:rotate(37deg)}
    .brand-glyph span:first-child{right:3px;top:0}.brand-glyph span:last-child{left:4px;bottom:0;background:linear-gradient(155deg,#168fff,#0651be)}
    .desktop-nav{display:flex;align-items:center;gap:4px;background:var(--nav);padding:5px;border:1px solid rgba(96,142,195,.07);border-radius:18px;justify-self:center;backdrop-filter:blur(18px)}
    .nav-item{border:0;background:transparent;color:var(--muted);border-radius:13px;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 20px;font-weight:700;font-size:14px;transition:.18s}
    .nav-item:hover,.nav-item:focus-visible{background:var(--surface3);color:var(--text)}
    .nav-item.active{background:linear-gradient(140deg,#1253b9,#073d8e);color:#fff;box-shadow:0 5px 16px rgba(0,43,126,.25)}
    .nav-item .ic{width:20px;height:20px}
    .tools{justify-self:end;display:flex;align-items:center;gap:13px;direction:ltr}
    .icon-button{position:relative;display:grid;place-items:center;color:var(--text);width:43px;height:43px;border-radius:12px;background:transparent;border:1px solid transparent;transition:.2s}
    .icon-button:hover{background:var(--surface2);border-color:var(--border)}
    .icon-button .ic{width:24px;height:24px}
    .unread::after{position:absolute;content:"";width:9px;height:9px;background:#ff5264;border-radius:50%;right:8px;top:6px;border:2px solid var(--bg)}
    .theme-button{border:1px solid var(--border);background:var(--surface);height:39px;padding:0 12px;border-radius:12px;display:flex;align-items:center;gap:7px;color:var(--text);font-size:12px;font-weight:700;direction:rtl}
    .theme-button .ic{width:18px;height:18px;color:#e3b968}
    .account-button{display:flex;align-items:center;gap:9px;background:transparent;border:0;color:var(--text);font-weight:700;direction:rtl;padding:2px}
    .avatar{background:linear-gradient(140deg,#1465c1,#1ca6c4);border:2px solid #377ebc;border-radius:50%;width:39px;height:39px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:18px}
    .tiny-chevron{width:15px!important;height:15px!important;color:var(--muted)}
    .relative{position:relative}
    .pop{position:absolute;top:calc(100% + 9px);left:0;z-index:30;width:260px;display:none;direction:rtl;text-align:right;background:var(--modal);border:1px solid var(--border);box-shadow:0 22px 45px rgba(0,0,0,.3);border-radius:16px;padding:12px}
    .pop.open{display:block}
    .pop h4{font-size:13px;margin:2px 8px 10px;color:var(--text)}
    .pop p{margin:0 8px 10px;color:var(--muted);font-size:11px;line-height:1.8}
    .pop button{display:flex;gap:10px;align-items:center;text-align:right;width:100%;border:0;border-radius:10px;background:transparent;padding:10px;color:var(--text);font-size:12px}
    .pop button:hover,.pop button.current{background:var(--surface2)}
    .pop button .ic{width:17px;height:17px}
    .pop-sep{border-top:1px solid var(--border);margin:8px 0}
    .hero{position:relative;height:clamp(248px,29vh,343px);border-radius:22px;overflow:hidden;border:1px solid #2463a4;background:linear-gradient(140deg,#06162b,#0c3053);isolation:isolate;box-shadow:var(--page-shadow)}
    .hero-photo{pointer-events:none;position:absolute;z-index:-2;inset-block:0;inset-inline-start:0;width:63%;background: url('../images/student-study-hero.jpg') center center / cover no-repeat;opacity:.97;mask-image:linear-gradient(to left,#000 38%,rgba(0,0,0,.8) 64%,transparent 100%)}
    .hero::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(to right,rgba(2,14,36,.89),rgba(5,26,57,.62) 48%,rgba(6,18,43,.05) 89%)}
    .hero::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(0deg,rgba(2,17,44,.18),transparent 35%)}
    .hero-copy{height:100%;width:61%;margin-inline-start:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:right;gap:11px;position:relative;z-index:2;padding:24px clamp(36px,4.5vw,66px) 36px 18px}
    .hero-greeting{font-size:clamp(18px,2.15vw,29px);color:#fff;font-weight:850;line-height:1.7}
    .hero-headline{font-size:clamp(18px,2.05vw,30px);font-weight:850;line-height:1.8;margin:0;max-width:850px;color:#fff}
    .hero-subtitle{font-size:clamp(11px,1.15vw,16px);color:#bcd2ed;line-height:1.8}
    .hero-arrow{z-index:3;position:absolute;top:50%;transform:translateY(-50%);background:rgba(29,79,132,.63);border:1px solid rgba(135,178,222,.1);color:#fff;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;backdrop-filter:blur(8px)}
    .hero-arrow:hover{background:rgba(30,102,176,.88)}
    .hero-arrow.prev{right:18px}.hero-arrow.next{left:18px}
    .hero-arrow .ic{width:20px;height:20px}
    .hero-dots{position:absolute;bottom:25px;left:68px;z-index:4;display:flex;gap:10px;direction:ltr}
    .hero-dots button{border:0;width:9px;height:9px;border-radius:50%;background:rgba(171,205,242,.44);padding:0;transition:width .2s,background .2s}
    .hero-dots button.active{width:22px;border-radius:20px;background:#38cbf1}
    .badges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.5vw,19px);margin-top:19px}
    .badge-tile{min-height:100px;min-width:0;border:1px solid var(--border);background:linear-gradient(145deg,var(--surface),var(--surface2));border-radius:17px;padding:15px clamp(13px,1.65vw,23px);display:flex;align-items:center;gap:15px;justify-content:space-between;text-align:right;color:var(--text);transition:transform .2s,border-color .2s}
    .badge-tile:hover,.metric-tile:hover{transform:translateY(-2px);border-color:var(--edge)}
    .badge-tile .badge-info{display:flex;flex-direction:column;gap:3px;min-width:0}
    .badge-value{font-size:clamp(17px,1.5vw,22px);font-weight:850;white-space:nowrap}
    .badge-label{font-size:12px;color:var(--muted);white-space:nowrap}
    .badge-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:15px;flex-shrink:0;background:rgba(77,154,233,.14)}
    .badge-icon svg{width:33px;height:33px;stroke-width:2.25}
    .gold .badge-icon{color:#ffcf68;background:radial-gradient(circle at center,rgba(255,184,70,.23),rgba(255,178,65,.07))}
    .award .badge-icon{color:#89c0ff;background:radial-gradient(circle,rgba(0,131,250,.24),rgba(0,92,196,.07))}
    .fire .badge-icon{color:#ff855b;background:radial-gradient(circle,rgba(238,98,67,.28),rgba(230,75,65,.04))}
    .star .badge-icon{color:#ffcf65;background:radial-gradient(circle,rgba(255,194,53,.24),rgba(255,194,53,.04))}
    .dashboard-row{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:21px;margin-top:20px;align-items:stretch}
    .panel{background:linear-gradient(145deg,var(--surface),var(--surface2));border:1px solid var(--border);border-radius:19px;min-width:0;padding:18px 20px;box-shadow:var(--page-shadow)}
    .section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;margin-bottom:13px}
    .section-head h2{margin:0;display:flex;align-items:center;gap:9px;font-weight:850;font-size:clamp(16px,1.35vw,21px);white-space:nowrap}
    .section-head .ic{color:#5aaeff}
    .small-outline{border:1px solid var(--edge);padding:7px 13px;background:var(--outline-btn);color:#79c2ff;border-radius:100px;font-size:11px;font-weight:700;white-space:nowrap}
    .small-outline:hover{color:var(--text);border-color:var(--focus)}
    .course-ticket{background:linear-gradient(110deg,#d9eaff,#f0f7ff 55%,#d9e9ff);border:1px solid rgba(255,255,255,.65);border-radius:16px;color:var(--course-text);padding:16px 18px;display:flex;flex-direction:column;gap:12px}
    .course-heading{display:flex;align-items:center;justify-content:space-between;gap:17px}
    .course-title{font-size:clamp(15px,1.55vw,21px);font-weight:850;line-height:1.7;margin:0}
    .course-sub{color:var(--course-muted);font-size:clamp(10px,1vw,13px);margin:0;line-height:1.6}
    .course-emblem{width:76px;height:76px;background:linear-gradient(140deg,#a4cdff,#badbff);display:grid;place-items:center;border-radius:17px;color:#135ac6;flex-shrink:0}
    .course-emblem svg{width:40px;height:40px;stroke-width:1.7}
    .course-progress{display:flex;align-items:center;gap:10px;direction:rtl}
    .progress-track{height:9px;flex:1;background:#bed2ed;border-radius:20px;overflow:hidden;direction:rtl}
    .progress-fill{height:100%;width:0%;border-radius:20px;background:linear-gradient(90deg,#187bea,#0451d2);transition:width .2s}
    .progress-number{direction:ltr;font-weight:800;font-size:14px;min-width:30px;text-align:left}
    .primary-btn{background:linear-gradient(100deg,#0b67f5,#0549b8);color:#fff;border:1px solid #438cfa;border-radius:12px;padding:12px 18px;font-weight:850;font-size:clamp(13px,1.1vw,16px);display:flex;align-items:center;justify-content:center;gap:10px;min-height:46px;box-shadow:0 5px 12px rgba(2,71,162,.15)}
    .primary-btn:hover{filter:brightness(1.12)}
    .primary-btn .ic{width:18px;height:18px}
    .discover-link{margin:6px auto 0;background:none;border:0;color:#55c5fa;font-size:12px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:7px;padding:3px 9px;border-radius:8px}
    html[data-theme="light"] .discover-link{color:#0d69b4}
    .discover-link:hover{text-decoration:underline}
    .discover-link .ic{width:16px;height:16px}
    .metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
    .metric-tile{display:flex;align-items:center;justify-content:space-between;min-height:92px;gap:13px;background:var(--small-tile);border:1px solid rgba(63,109,167,.12);border-radius:13px;padding:14px 14px 14px 17px;color:var(--text);text-align:right;transition:transform .2s,border-color .2s}
    .metric-copy{display:flex;flex-direction:column;gap:2px}
    .metric-num{font-size:clamp(20px,2vw,30px);font-weight:850;line-height:1.3;direction:ltr;text-align:right}
    .metric-label{color:var(--muted);font-size:12px;white-space:nowrap}
    .metric-icon{width:54px;height:54px;border-radius:13px;display:grid;place-items:center;background:rgba(20,107,205,.2);color:#59baff;flex-shrink:0}
    .metric-icon .ic{width:29px;height:29px}
    .metric-tile:nth-child(3) .metric-icon{color:#46dfd0;background:rgba(29,154,149,.15)}
    .metric-tile:nth-child(4) .metric-icon{color:#ad92ff;background:rgba(102,87,222,.20)}
    .mobile-nav{display:none}
    .page[hidden],.pop[hidden]{display:none!important}
    .secondary-page{max-width:1040px;margin:18px auto 0;min-height:570px;display:flex;flex-direction:column;gap:17px}
    .secondary-page h1{margin:0;font-size:26px}.secondary-page .intro{color:var(--muted);margin:0;font-size:14px}
    .secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
    .secondary-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:23px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
    .secondary-card .big-icon{width:43px;height:43px;color:#63baff}.secondary-card h3{margin:0;font-size:19px}.secondary-card p{color:var(--muted);font-size:13px;margin:0;line-height:1.9}
    .secondary-card button{margin-top:5px}.soon{font-size:11px;color:#8de2e3;border-radius:30px;background:rgba(33,150,156,.12);padding:6px 10px}
    .demo-note{font-size:11px;color:var(--muted);text-align:center;margin:12px 0 0}
    dialog{border:1px solid var(--border);border-radius:21px;color:var(--text);background:var(--modal);padding:0;width:min(490px,calc(100vw - 28px));max-height:min(88dvh,740px);box-shadow:0 24px 90px rgba(0,0,0,.45);direction:rtl}
    dialog::backdrop{background:rgba(0,8,22,.77);backdrop-filter:blur(4px)}
    .dialog-body{padding:24px;display:flex;flex-direction:column;gap:15px}
    .dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-top h2{margin:0;font-size:22px}
    .dialog-body p{margin:0;line-height:1.9;color:var(--muted);font-size:13px}
    .dialog-tile{background:var(--surface2);border:1px solid var(--border);border-radius:13px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:13px}
    .dialog-tile .ic{color:#63b8ff}.dialog-tile strong{font-size:13px}
    .dialog-tile span{color:var(--muted);font-size:11px}
    .dialog-list{display:flex;flex-direction:column;gap:8px}
    .toast{position:fixed;left:50%;transform:translateX(-50%) translateY(20px);bottom:28px;z-index:50;border:1px solid var(--border);background:var(--modal);color:var(--text);border-radius:12px;padding:12px 19px;box-shadow:var(--page-shadow);opacity:0;pointer-events:none;transition:.2s;font-size:12px;text-align:center;max-width:90vw}
    .toast.shown{opacity:1;transform:translateX(-50%) translateY(0)}
    @media(max-width:1100px){
      .nav-item{padding:11px 13px}.topbar{grid-template-columns:minmax(135px,1fr) auto minmax(135px,1fr)}
      .badge-tile{padding:13px 11px;gap:8px}.badge-icon{width:48px;height:48px}.badge-icon svg{width:27px;height:27px}
      .dashboard-row{gap:13px}.panel{padding:15px}.metric-tile{padding:12px 10px;min-height:81px}.metric-icon{width:42px;height:42px}.metric-icon .ic{width:25px;height:25px}
    }
    @media(max-width:760px){
      body{overflow-x:hidden}
      .shell{padding:0 12px calc(85px + env(safe-area-inset-bottom,0px));max-width:520px}
      .topbar{height:63px;grid-template-columns:1fr auto;gap:8px}
      .brand{gap:6px}.brand-name{font-size:25px}.brand-glyph{transform:scale(.72);transform-origin:right center;width:25px}
      .desktop-nav{display:none}.tools{gap:2px}
      .account-button .username,.account-button .tiny-chevron{display:none}
      .avatar{width:31px;height:31px;font-size:15px}
      .icon-button{width:34px;height:37px;border:0}.icon-button .ic{width:20px;height:20px}
      .theme-button{height:34px;padding:0 7px;border:0;background:transparent}.theme-button .ic{width:19px;height:19px}
      .theme-label{display:none}
      .hero{height:156px;border-radius:17px}
      .hero-photo{width:77%;background-position:50% 50%;mask-image:linear-gradient(to left,#000 33%,transparent 100%)}
      .hero::before{background:linear-gradient(to right,rgba(2,14,36,.97),rgba(5,26,57,.85) 50%,rgba(6,18,43,.08) 100%)}
      .hero-copy{width:72%;gap:3px;padding:13px 19px 20px 9px}
      .hero-greeting{font-size:17px;line-height:1.5}
      .hero-headline{font-size:14px;line-height:1.65;font-weight:900}
      .hero-subtitle{font-size:9px;line-height:1.5}
      .hero-arrow{display:none}
      .hero-dots{left:33px;bottom:10px;gap:5px}.hero-dots button{width:6px;height:6px}.hero-dots button.active{width:17px}
      .badges{gap:6px;margin-top:11px}
      .badge-tile{border-radius:12px;min-height:83px;display:flex;flex-direction:column-reverse;gap:3px;padding:7px 2px;justify-content:center;text-align:center}
      .badge-tile .badge-info{align-items:center;gap:0}.badge-value{font-size:12px}.badge-label{font-size:9px;letter-spacing:-.1px}
      .badge-icon{width:29px;height:29px;border-radius:9px}.badge-icon svg{width:20px;height:20px}
      .dashboard-row{grid-template-columns:minmax(0,1fr);gap:11px;margin-top:11px}
      .panel{border-radius:15px;padding:11px 12px}
      .section-head{margin-bottom:8px;min-height:21px}.section-head h2{font-size:15px}.section-head .ic{width:19px;height:19px}
      .small-outline{font-size:9px;padding:4px 8px}
      .course-ticket{padding:10px 11px;gap:9px;border-radius:12px}
      .course-heading{gap:7px}.course-title{font-size:14px}.course-sub{font-size:10px}.course-emblem{width:48px;height:48px;border-radius:11px}.course-emblem svg{width:27px;height:27px}
      .progress-track{height:6px}.progress-number{font-size:11px}
      .primary-btn{min-height:38px;padding:7px 10px;font-size:13px;border-radius:9px}
      .discover-link{margin:5px auto 0;font-size:10px;padding:2px 5px}
      .metric-grid{gap:8px}.metric-tile{min-height:65px;padding:7px 9px;border-radius:10px;gap:7px}.metric-num{font-size:17px}.metric-label{font-size:10px}.metric-icon{height:34px;width:34px;border-radius:9px}.metric-icon .ic{width:19px;height:19px}
      .mobile-nav{display:flex;position:fixed;bottom:0;right:0;left:0;z-index:25;justify-content:space-between;gap:3px;padding:8px max(11px,env(safe-area-inset-left,0px)) calc(7px + env(safe-area-inset-bottom,0px));background:var(--nav);border-top:1px solid var(--border);backdrop-filter:blur(20px);box-shadow:0 -14px 32px rgba(1,8,20,.22)}
      .mobile-nav .nav-item{display:flex;flex-direction:column;flex:1;gap:2px;padding:6px 2px 5px;min-height:47px;border-radius:12px;font-size:10px}
      .mobile-nav .nav-item .ic{width:20px;height:20px}
      .secondary-page{margin-top:10px;min-height:500px}.secondary-page h1{font-size:20px}.secondary-grid{grid-template-columns:1fr;gap:10px}.secondary-card{padding:17px}.secondary-card h3{font-size:16px}
      .pop{left:0;top:calc(100% + 10px)}
      .demo-note{font-size:10px}
    }
    @media(max-width:760px) and (max-height:760px){
      .topbar{height:55px}.hero{height:135px}.badges{margin-top:8px}.badge-tile{min-height:74px}.dashboard-row{margin-top:8px;gap:8px}.panel{padding:8px 11px}.course-ticket{gap:6px;padding:8px 10px}.section-head{margin-bottom:5px}.primary-btn{min-height:34px}.metric-tile{min-height:58px}.metric-grid{gap:6px}
    }
    @media(max-width:760px) and (max-height:700px){
      .shell{padding-bottom:calc(58px + env(safe-area-inset-bottom,0px))}
      .topbar{height:50px}
      .hero{height:115px}
      .hero-copy{padding-top:9px;padding-bottom:14px;gap:2px}
      .hero-greeting{font-size:15px}
      .hero-headline{font-size:12.5px;line-height:1.55}
      .hero-subtitle{display:none}
      .badges{margin-top:7px;gap:5px}
      .badge-tile{min-height:66px;padding:4px 2px}
      .badge-icon{width:25px;height:25px}
      .badge-icon svg{width:18px;height:18px}
      .badge-value{font-size:11px}.badge-label{font-size:8.5px}
      .dashboard-row{margin-top:8px;gap:8px}
      .section-head{margin-bottom:4px}
      .panel{padding:7px 10px}
      .course-ticket{gap:5px;padding:7px 9px}
      .course-emblem{width:41px;height:41px}
      .course-emblem svg{width:23px;height:23px}
      .primary-btn{min-height:32px;padding:5px 9px}
      .discover-link{margin-top:3px;font-size:9px}
      .metric-grid{gap:5px}
      .metric-tile{min-height:53px;padding:6px 8px}
      .metric-icon{width:30px;height:30px}
      .metric-icon .ic{width:17px;height:17px}
      .metric-num{font-size:16px}
      .metric-label{font-size:9px}
      .mobile-nav{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
      .mobile-nav .nav-item{min-height:44px}
    }
    @media(min-width:761px) and (max-height:780px){
      .topbar{height:72px}.hero{height:215px}.badges{margin-top:12px}.badge-tile{min-height:77px}.dashboard-row{margin-top:12px}.panel{padding:13px}.metric-tile{min-height:75px}.course-emblem{width:58px;height:58px}.course-ticket{gap:9px;padding:11px 15px}
    }
    @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Product bindings and accessible controls; reference geometry stays intact. */
[hidden]{display:none!important}
.brand-logo{display:block;width:125px;height:72px;object-fit:contain}
.username{max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}
details[open]>.pop{display:block}
.pop a{display:flex;align-items:center;gap:10px;width:100%;padding:10px;color:var(--text);font-size:13px;border-radius:10px}
.pop a:hover,.pop a.current{background:var(--surface2)}
.account-menu .tiny-chevron{width:15px;height:15px}
.account-menu .avatar{flex-shrink:0}
.notification-count{position:absolute;top:1px;right:1px;border:2px solid var(--bg);border-radius:20px;background:#e34155;color:#fff;min-width:18px;height:18px;padding:0 3px;font-size:10px;line-height:14px;text-align:center}
.notification-panel{width:min(360px,calc(100vw - 32px));padding:10px}
.notification-heading{display:flex;align-items:center;justify-content:space-between;padding:0 3px}
.notification-heading h4{margin:0 6px}
.notification-list{max-height:min(390px,55dvh);overflow:auto;overscroll-behavior:contain}
.pop .notification-item{display:flex;gap:9px;align-items:flex-start;padding:11px 8px;width:100%;text-align:right;font:inherit;font-size:12px;line-height:1.8;border:0;border-radius:10px;background:transparent;color:var(--text)}
.pop .notification-item:hover{background:var(--surface2)}
.notification-item small{display:block;color:var(--muted);font-size:11px}
.notification-dot{width:7px;height:7px;flex:0 0 7px;margin-top:8px;border-radius:50%;background:transparent}
.is-unread .notification-dot{background:#0874df}
.notification-item.is-unread{background:var(--surface2)}
.pop .notification-feedback{font-size:11px;margin:8px;min-height:1em}
.pop .notification-empty{margin:18px 8px}
.course-list{width:min(370px,calc(100vw - 48px));max-height:55dvh;overflow:auto}
.course-list h4{display:flex;justify-content:space-between;gap:8px}
.pop .course-choice{justify-content:space-between;line-height:1.6}
.course-choice>span{min-width:0;overflow-wrap:anywhere}
.course-choice small{display:block;font-size:11px;color:var(--muted)}
.course-choice .ic{width:17px;height:17px}
.course-search input{width:100%;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:10px;font:inherit;font-size:13px}
.course-title{overflow-wrap:anywhere}
.hero-greeting{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.progress-track{display:block;width:100%;appearance:none;-webkit-appearance:none;border:0;margin:0}
.progress-track::-webkit-progress-bar{background:#bed2ed;border-radius:20px}
.progress-track::-webkit-progress-value{background:linear-gradient(90deg,#187bea,#0451d2);border-radius:20px}
.progress-track::-moz-progress-bar{background:linear-gradient(90deg,#187bea,#0451d2);border-radius:20px}
.metric-unavailable{font-size:10px;color:var(--muted)}
.metric-num{overflow-wrap:anywhere}
.badge-value{white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.small-outline{display:inline-flex;align-items:center;justify-content:center;min-height:32px}
.sd-sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link:focus{position:fixed;z-index:2000;top:8px;right:12px;padding:12px 18px;background:var(--surface);color:var(--text);border:2px solid var(--focus);border-radius:12px}
.sd-js-only{visibility:hidden}.sd-ready .sd-js-only{visibility:visible}
.student-home .motqen-chat-button{width:54px;height:54px;right:22px;bottom:24px}
.student-home .motqen-chat-window{transition:opacity .2s,transform .2s;max-height:min(620px,calc(100dvh - 110px))}
.student-home .motqen-chat-window:not(.active){visibility:hidden}
@media(min-width:761px) and (max-width:1000px){.topbar{grid-template-columns:1fr auto;height:auto;padding-block:10px;gap:8px}.desktop-nav{grid-row:2;grid-column:1/-1}.tools{grid-column:2;grid-row:1}.brand{grid-column:1;grid-row:1}}
@media(max-width:760px){
 .brand-logo{width:95px;height:55px}.theme-button,.icon-button{min-width:36px;min-height:44px}.account-button{min-width:36px;min-height:44px}.tools{gap:2px}
 .small-outline{min-height:36px}.badge-label{font-size:10px;white-space:normal}.metric-label{font-size:11px;white-space:normal}.hero-subtitle{font-size:10px}.badge-value{font-size:13px}.metric-num{font-size:20px}
 .student-home .motqen-chat-button{width:44px;height:44px;right:14px;bottom:calc(85px + env(safe-area-inset-bottom,0px))}
 .student-home .motqen-chat-window{bottom:calc(80px + env(safe-area-inset-bottom,0px));right:12px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 160px)}
 .course-list{width:min(340px,calc(100vw - 48px))}
}
/* Keep compact reference artwork inside full keyboard/touch targets. */
.small-outline,.discover-link,.theme-button,.icon-button,.account-button,.pop a,.pop button,.course-search input{min-height:44px}
.theme-button,.icon-button,.account-button{min-width:44px}
#themeIcon{display:flex;align-items:center}
.hero-arrow{width:44px;height:44px}
.hero-dots{bottom:8px;left:54px;gap:0}
.hero-dots button,.hero-dots button.active{position:relative;width:44px;height:44px;background:transparent;border-radius:12px}
.hero-dots button::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:9px;height:9px;border-radius:20px;background:rgba(171,205,242,.44)}
.hero-dots button.active::after{width:22px;background:#38cbf1}
@media(max-width:760px){.hero-dots{bottom:-7px;left:14px}.hero-dots button::after{width:6px;height:6px}.hero-dots button.active::after{width:17px}}
/* V7 integration: only the two actions inside the existing course ticket. */
.sd-learning-actions{display:flex;gap:12px;align-items:stretch;width:100%;min-width:0}
.sd-learning-actions>.primary-btn{flex:1.35;min-width:0}
.sd-learning-actions>.sd-practice-btn{flex:1;background:linear-gradient(135deg,#059669 0%,#047857 100%);border-color:#10b981;color:#fff;box-shadow:0 4px 14px rgba(5,150,105,.25)}
.sd-learning-actions>.sd-practice-btn:hover{background:linear-gradient(135deg,#10b981 0%,#059669 100%);filter:brightness(1.08)}
@media(max-width:480px){.sd-learning-actions{gap:8px}}
