/* MyKey Academy 7.17.10 | Design quality layer.
 * Progressive enhancement: no changes to data, auth, payment or existing selectors.
 * Palette: academic blue, orange only for brand accents, neutral surfaces for data.
 */
:root{
  --mkq-blue:#153dbd;
  --mkq-blue-deep:#102d84;
  --mkq-blue-soft:#edf3ff;
  --mkq-ink:#18283e;
  --mkq-muted:#50627a;
  --mkq-stroke:#d9e3f0;
  --mkq-paper:#fff;
  --mkq-canvas:#f6f8fc;
  --mkq-orange:#e87020;
  --mkq-focus:#d46a12;
  --mkq-shadow:0 2px 5px rgba(18,38,79,.035),0 12px 34px rgba(18,38,79,.045);
}
/* Unified keyboard accessibility; never hide visible focus. */
:where(a,button,input,select,textarea,[role="tab"],[tabindex="0"]):focus-visible{
  outline:3px solid var(--mkq-focus)!important;
  outline-offset:3px!important;
}
:where(button,a,[role="tab"]){-webkit-tap-highlight-color:transparent}
:where(input,select,textarea){accent-color:var(--mkq-blue)}
:where(button,[role="button"]):disabled{cursor:not-allowed!important}
:where(.admin-main,.chip-main,.student-dashboard,.study-room-v7122) :where(h1,h2,h3){text-wrap:balance}
:where(.chip-main,.admin-main,.section,.hero,.student-dashboard) :where(p,small){overflow-wrap:break-word}
/* Restrained student design: clear visual hierarchy without gradients everywhere. */
body:is(.home-page,.study-page,.assessment-page){--brand:var(--mkq-blue);--brand-dark:var(--mkq-blue-deep);--ink:var(--mkq-ink);--ink-soft:var(--mkq-muted);--line:var(--mkq-stroke)}
body:is(.home-page,.study-page,.assessment-page) .section-head h2{line-height:1.16;letter-spacing:-.045em}
body:is(.home-page,.study-page,.assessment-page) .section-head p{line-height:1.6;color:var(--mkq-muted)}
body.home-page:not(.student-mode) .hero{gap:clamp(22px,4vw,62px);padding-block:clamp(44px,6vw,84px)}
body.home-page:not(.student-mode) .hero-content h1{font-size:clamp(2.15rem,4.3vw,3.9rem);line-height:1.12;letter-spacing:-.052em;max-width:20ch}
body.home-page:not(.student-mode) .hero-content .lead{line-height:1.75;color:var(--mkq-muted);max-width:58ch}
body.home-page:not(.student-mode) .hero-card{border:1px solid #d8e3f4;background:#fff;box-shadow:var(--mkq-shadow);border-radius:22px}
body.home-page:not(.student-mode) .hero-card-head{padding-bottom:16px;border-bottom:1px solid #e8eef7}
body.home-page:not(.student-mode) .hero-list{font-size:14px;line-height:1.65}
body.home-page:not(.student-mode) .hero-list li{padding-inline-start:2px;margin:9px 0}
body:is(.home-page,.study-page,.assessment-page) :is(.ccard,.lib-card,.dl-item,.student-panel-card){border-color:var(--mkq-stroke);box-shadow:var(--mkq-shadow)}
body:is(.home-page,.study-page,.assessment-page) :is(.ccard,.lib-card,.dl-item) .btn{min-height:44px}
body:is(.home-page,.study-page,.assessment-page) .student-course-toolbar-v7170 select{border-color:var(--mkq-stroke);background:#fff}
body:is(.home-page,.study-page,.assessment-page) .student-quick-links-v7170 a{border-color:var(--mkq-stroke);box-shadow:0 4px 16px rgba(18,38,79,.035)}
body:is(.home-page,.study-page,.assessment-page) .student-quick-links-v7170 a:focus-visible{border-color:var(--mkq-blue)}
body:is(.home-page,.study-page,.assessment-page) :is(.student-nav-item.active,.student-nav-item[aria-current="page"]){font-weight:800}
/* Make information-dense administration calm and scannable. */
body.admin-v7169{--brand:var(--mkq-blue);--brand-dark:var(--mkq-blue-deep);background:var(--mkq-canvas)}
body.admin-v7169 .admin-sidebar{border-right:1px solid var(--mkq-stroke);box-shadow:2px 0 14px rgba(15,36,80,.035)}
body.admin-v7169 .admin-tab{border-radius:10px;line-height:1.35}
body.admin-v7169 .admin-tab:hover:not(.active){background:var(--mkq-blue-soft)}
body.admin-v7169 .admin-page-context-v7169{margin-bottom:16px}
body.admin-v7169 .admin-commandbar-search{border:1px solid #cfdaec;background:#fff}
body.admin-v7169 .admin-commandbar-search:focus-within{border-color:#7097e6;box-shadow:0 0 0 3px #184bbc16}
body.admin-v7169 :is(.admin-card,.metric-card,.badge-admin-card){border-color:var(--mkq-stroke)}
body.admin-v7169 .admin-section-head h2{line-height:1.2;letter-spacing:-.04em}
body.admin-v7169 :is(.admin-table,.bling-clients-table,.students-table-v7169) :is(td,th){line-height:1.52}
body.admin-v7169 :is(.admin-table,.bling-clients-table,.students-table-v7169) tbody tr:hover{background:#f7faff}
body.admin-v7169 :is(.admin-table,.bling-clients-table,.students-table-v7169) th{color:#3d506a}
/* Small standalone pages share the main panel visual language. */
body.chip-light-shell{color:var(--mkq-ink);background:var(--mkq-canvas)}
body.chip-light-shell .mk-admin-sidebar{background:#fff;border-color:var(--mkq-stroke)}
body.chip-light-shell .mk-nav-item{line-height:1.35;border-radius:10px}
body.chip-light-shell .mk-nav-item:not(.is-active):hover{border-color:#dce6f7;background:var(--mkq-blue-soft)}
body.chip-light-shell .mk-nav-group-label{color:#62738a}
body.chip-light-shell .mk-light-content>.chip-topbar{border-color:var(--mkq-stroke);box-shadow:none}
body.chip-light-shell .mk-light-content>.chip-topbar .mk-path span{color:#566b85}
body.chip-light-shell .chip-main{max-width:1320px}
body.chip-light-shell .admin-section-head h2{font-size:clamp(24px,2.4vw,32px);letter-spacing:-.045em;line-height:1.2}
body.chip-light-shell :is(.admin-card,.records-card,.chip-review-stat){border-color:var(--mkq-stroke);box-shadow:var(--mkq-shadow)}
body.chip-light-shell :is(.admin-card,.records-card){border-radius:16px}
body.chip-light-shell :is(.admin-card,.records-card) :is(p,.hint,.dashboard-sub){line-height:1.62}
body.chip-light-shell .records-filter :is(input,select){min-height:46px;border-color:var(--mkq-stroke);border-radius:11px}
body.chip-light-shell :is(.btn,.records-nav button,.records-card a){min-height:44px;border-radius:11px}
body.chip-light-shell .btn-primary{background:var(--mkq-blue)}
body.chip-light-shell .btn-primary:hover{background:var(--mkq-blue-deep)}
body.chip-light-shell .chip-tabs{border-bottom-color:var(--mkq-stroke)}
body.chip-light-shell .chip-tab{color:#415977;letter-spacing:-.01em}
body.chip-light-shell .chip-tab.active{color:var(--mkq-blue-deep)}
body.chip-light-shell .chip-quick-order{background:#f7faff;border-color:#d3e1f9}
body.chip-light-shell .admin-table-wrap{border-color:var(--mkq-stroke)}
body.chip-light-shell .admin-table th{color:#3e5067;background:#f5f7fb}
body.chip-light-shell .admin-table tbody tr:hover{background:#f9fbff}
body.chip-light-shell .chip-review-stat strong{font-variant-numeric:tabular-nums}
body.chip-light-shell .chip-review-alert{line-height:1.65}
/* Avoid truncated controls and accidental horizontal scrolling. */
body.chip-light-shell :is(.chip-filters,.chip-settings-grid,.chip-search-grid,.chip-review-grid)>*{min-width:0}
body.chip-light-shell :is(input,select,textarea){max-width:100%}
body.chip-light-shell .chip-toast{line-height:1.5}
@media(max-width:760px){
 body.home-page:not(.student-mode) .hero{grid-template-columns:minmax(0,1fr);padding:34px 18px 28px;gap:22px}
 body.home-page:not(.student-mode) .hero-content h1{font-size:clamp(2rem,9vw,3rem);max-width:100%}
 body:is(.home-page,.study-page,.assessment-page) .section{padding-inline:18px}
 body.chip-light-shell .chip-main{padding:16px}
 body.chip-light-shell .mk-light-content>.chip-topbar{gap:9px}
 body.chip-light-shell .chip-tab{min-height:52px}
 body.chip-light-shell .chip-review-stats{gap:9px}
 body.chip-light-shell .chip-review-stat{padding:12px}
 body.chip-light-shell .admin-table td{overflow-wrap:anywhere}
}
@media(max-width:380px){
 body:is(.home-page,.study-page,.assessment-page) :is(.hero-actions,.admin-actions) .btn{white-space:normal}
 body.chip-light-shell .mk-light-content>.chip-topbar{align-items:flex-start}
 body.chip-light-shell .mk-light-content>.chip-topbar .btn{max-width:100%}
}
@media(hover:none){
 body:is(.home-page,.study-page,.assessment-page) :is(.ccard,.lib-card):hover{transform:none}
 body.admin-v7169 .admin-tab:hover{transform:none}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
