/* IELTS Planet — one style sheet for this kind of page, built by includes/asset_bundle.php. Do not edit: edit the files listed here. */

/* ── /assets/tw-site.css (only the classes the site uses) ── */
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.bottom-\[90px\]{bottom:90px}.left-1{left:.25rem}.left-1\/2{left:50%}.left-4{left:1rem}.right-0{right:0}.right-4{right:1rem}.right-8{right:2rem}.top-0{top:0}.top-1{top:.25rem}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[200\]{z-index:200}.z-\[60\]{z-index:60}.z-\[70\]{z-index:70}.z-\[80\]{z-index:80}.m-0{margin:0}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.-ml-1{margin-left:-.25rem}.-ml-2{margin-left:-.5rem}.-mt-\[2px\]{margin-top:-2px}.mb-0{margin-bottom:0}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.mr-0{margin-right:0}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-\[1px\]{margin-top:1px}.mt-\[2px\]{margin-top:2px}.mt-\[3px\]{margin-top:3px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.table-cell{display:table-cell}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-1{height:.25rem}.h-11{height:2.75rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[27\.22px\]{height:27.22px}.h-\[2px\]{height:2px}.h-\[30px\]{height:30px}.h-\[36px\]{height:36px}.h-\[56px\]{height:56px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.min-h-0{min-height:0}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[17px\]{width:17px}.w-\[2px\]{width:2px}.w-\[30px\]{width:30px}.w-\[36px\]{width:36px}.w-\[49\.6\%\]{width:49.6%}.w-\[56px\]{width:56px}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-x-1{--tw-translate-x:-0.25rem}.-translate-x-1,.-translate-x-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\/2{--tw-translate-x:-50%}.translate-x-1{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1{--tw-translate-x:0.25rem}.translate-x-6{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-6{--tw-translate-x:1.5rem}.translate-x-full{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x:100%}.scale-100{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.scale-95,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes enter{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-15px)}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\[1fr_auto_1fr\]{grid-template-columns:1fr auto 1fr}.flex-col{flex-direction:column}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-\[2\.5px\]{gap:2.5px}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity,1))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}.border-gray-200\/80{border-color:rgba(229,231,235,.8)}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.border-white\/5{border-color:hsla(0,0%,100%,.05)}.bg-amber-400{--tw-bg-opacity:1;background-color:rgb(251 191 36/var(--tw-bg-opacity,1))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-emerald-50{--tw-bg-opacity:1;background-color:rgb(236 253 245/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-950{--tw-bg-opacity:1;background-color:rgb(3 7 18/var(--tw-bg-opacity,1))}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/5{background-color:hsla(0,0%,100%,.05)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-amber-50{--tw-gradient-from:#fffbeb var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,251,235,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-transparent{--tw-gradient-from:transparent var(--tw-gradient-from-position);--tw-gradient-to:transparent var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-violet-600{--tw-gradient-from:#7c3aed var(--tw-gradient-from-position);--tw-gradient-to:rgba(124,58,237,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-gray-800{--tw-gradient-to:rgba(31,41,55,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#1f2937 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-500{--tw-gradient-to:#6366f1 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:transparent var(--tw-gradient-to-position)}.to-yellow-50{--tw-gradient-to:#fefce8 var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-1\.5{padding:.375rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[11px\]{padding-top:11px;padding-bottom:11px}.pb-32{padding-bottom:8rem}.pl-0{padding-left:0}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pr-6{padding-right:1.5rem}.pr-7{padding-right:1.75rem}.pr-8{padding-right:2rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[11px\]{font-size:11px}.text-\[15px\]{font-size:15px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal}.ordinal,.tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.tabular-nums{--tw-numeric-spacing:tabular-nums}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-\[0\.12em\]{letter-spacing:.12em}.tracking-tight{letter-spacing:-.025em}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-current{color:currentColor}.text-emerald-700{--tw-text-opacity:1;color:rgb(4 120 87/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-purple-100{--tw-text-opacity:1;color:rgb(243 232 255/var(--tw-text-opacity,1))}.text-purple-800{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.line-through{text-decoration-line:line-through}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-lg,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-violet-500\/20{--tw-shadow-color:rgba(139,92,246,.2);--tw-shadow:var(--tw-shadow-colored)}.shadow-violet-500\/25{--tw-shadow-color:rgba(139,92,246,.25);--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px)}.blur{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:-translate-y-0\.5:hover{--tw-translate-y:-0.125rem}.hover\:-translate-y-0\.5:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:border-pink-500\/30:hover{border-color:rgba(236,72,153,.3)}.hover\:border-violet-500\/30:hover{border-color:rgba(139,92,246,.3)}.hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.hover\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.hover\:bg-pink-600\/20:hover{background-color:rgba(219,39,119,.2)}.hover\:bg-purple-50:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity,1))}.hover\:bg-violet-600\/20:hover{background-color:rgba(124,58,237,.2)}.hover\:bg-white\/10:hover{background-color:hsla(0,0%,100%,.1)}.hover\:text-gray-300:hover{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.hover\:text-gray-900:hover{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.hover\:opacity-100:hover{opacity:1}.focus\:border-violet-500:focus{--tw-border-opacity:1;border-color:rgb(139 92 246/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\:ring-violet-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(139 92 246/var(--tw-ring-opacity,1))}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\:opacity-100{opacity:1}.peer:checked~.peer-checked\:translate-x-6{--tw-translate-x:1.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\:bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity,1))}.dark\:border-white\/10:is(.dark *){border-color:hsla(0,0%,100%,.1)}.dark\:border-white\/\[0\.08\]:is(.dark *){border-color:hsla(0,0%,100%,.08)}.dark\:bg-black\/20:is(.dark *){background-color:rgba(0,0,0,.2)}.dark\:bg-emerald-900\/25:is(.dark *){background-color:rgba(6,78,59,.25)}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.dark\:bg-red-900\/25:is(.dark *){background-color:rgba(127,29,29,.25)}.dark\:text-emerald-300:is(.dark *){--tw-text-opacity:1;color:rgb(110 231 183/var(--tw-text-opacity,1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\:text-red-300:is(.dark *){--tw-text-opacity:1;color:rgb(252 165 165/var(--tw-text-opacity,1))}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:bottom-6{bottom:1.5rem}.sm\:left-auto{left:auto}.sm\:right-6{right:1.5rem}.sm\:inline{display:inline}.sm\:w-\[340px\]{width:340px}.sm\:flex-row{flex-direction:row}}@media (min-width:768px){.md\:flex{display:flex}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-6{gap:1.5rem}.md\:p-9{padding:2.25rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width:1024px){.lg\:col-span-3{grid-column:span 3/span 3}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:px-8{padding-left:2rem;padding-right:2rem}}

/* ── /css/style.css ── */
/* --- Smooth Scrolling --- */
html {
  scroll-behavior: smooth;
}

/* --- Base & Animation Styles --- */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* --- Dark Mode Styles --- */
body.dark { background-color: #111827; }
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark span, body.dark div, body.dark label {
  color: #f9fafb;
}
body.dark p, body.dark li { color: #d1d5db; }
body.dark .text-gray-600, body.dark .text-gray-700 { color: #d1d5db; }
body.dark .text-gray-500 { color: #9ca3af; }
body.dark section { background-color: #111827; }
body.dark .bg-white { background-color: #1f2937; }
body.dark .bg-gray-50 { background-color: #1f2937; }
body.dark .bg-gradient-to-br { background-image: none; background-color: #111827; }
body.dark .border, body.dark .border-2 { border-color: #4b5563 !important; }
body.dark .shadow-lg { box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05); }
body.dark .text-purple-600 { color: #a78bfa; }

body.dark .bg-blue-50, body.dark .bg-green-50, body.dark .bg-purple-50, body.dark .bg-orange-50, body.dark .bg-red-50, body.dark .bg-indigo-50, body.dark .bg-emerald-50, body.dark .bg-cyan-50, body.dark .bg-pink-50 {
  background-color: #374151;
}
body.dark .bg-gradient-to-r.from-yellow-50.to-orange-50 { background-image: none; background-color: #4b5563; }
body.dark .bg-gradient-to-r.from-gray-50.to-slate-50 { background-image: none; background-color: #4b5563; }
body.dark .bg-gradient-to-r.from-orange-50.to-amber-50 { background-image: none; background-color: #4b5563; }

/* ==================================================================
   DESIGN SYSTEM ADDITIONS (2026 UI audit)
   ================================================================== */

/* --- ONE display serif for the whole site.
       Safety net: every page-local serif class resolves to Playfair. --- */
.font-serif-r, .font-serif-w, .font-serif-s, .font-serif-l, .font-display {
  font-family: 'Playfair Display', Georgia, serif;
}

/* --- UNIFIED BUTTONS - the only three buttons on the site.
       Usage: <a class="btn btn-primary">Start Practice</a>
       Skill-colored: <a class="btn btn-primary" style="--btn-bg:#059669;--btn-bg-hover:#047857">...</a> --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .9375rem; line-height: 1;
  border-radius: 9999px; padding: .8125rem 1.75rem;
  transition: transform .15s ease, box-shadow .15s ease,
              background-color .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer; text-decoration: none; border: 0;
}
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--btn-bg, #7c3aed); color: #fff; }
.btn-primary:hover {
  background: var(--btn-bg-hover, #6d28d9);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .35);
}

.btn-secondary {
  background: transparent; color: #374151;
  border: 1.5px solid #d1d5db; padding: .75rem 1.6875rem;
}
.btn-secondary:hover { border-color: #7c3aed; color: #7c3aed; transform: translateY(-1px); }
.dark .btn-secondary, body.dark .btn-secondary { color: #e5e7eb; border-color: #4b5563; }
.dark .btn-secondary:hover, body.dark .btn-secondary:hover { border-color: #a78bfa; color: #a78bfa; }

.btn-ghost { background: transparent; color: #6b7280; padding: .5rem 1rem; }
.btn-ghost:hover { background: rgba(124, 58, 237, .08); color: #7c3aed; }
.dark .btn-ghost:hover, body.dark .btn-ghost:hover { background: rgba(167, 139, 250, .12); color: #a78bfa; }

.btn:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }


/* ── /css/header.css ── */
/* css/header.css — styles for the site header: the floating glass capsule (desktop), the phone bar, the search
   window and the phone menu. Loaded by includes/header.php on every page.
   HEADER v2 (Phase 1, 28 Oct 2026): new brand fonts, animated logo, pill-shaped nav with an active marker, one shape for
   every round button, a redesigned phone menu. Everything that moves uses only transform / opacity (cheap on phones).
   Values you may want to change are marked  SETTING. */

/* ============================================ */
/* SEARCH v2 (Phase 2, 29 Oct 2026) — a "command palette" in the site's space look */
/* ============================================ */
#search-overlay { position: fixed; inset: 0; z-index: 9999; isolation: isolate; }
#search-overlay.hidden { display: none; }
#search-backdrop { position: absolute; inset: 0; background: rgba(2,2,10,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .3s; cursor: pointer; }
#search-backdrop.opacity-0 { opacity: 0; }
.sq-center { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: clamp(60px, 12vh, 140px) 16px 16px; pointer-events: none; }
.sq-box { position: relative; width: min(680px, 100%); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); display: flex; flex-direction: column; overflow: hidden; pointer-events: auto; color: #fff;
  border-radius: 24px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(160deg, rgba(22,18,52,.96), rgba(8,8,24,.97)); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.sq-box.scale-95 { transform: translateY(-10px) scale(.97); } .sq-box.opacity-0 { opacity: 0; }
.sq-box::before { content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,.9), rgba(56,214,255,.8), transparent); }
.sq-stars { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 80% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 60% 80%, #ffe7a3 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #bfeaff 50%, transparent 51%), radial-gradient(1px 1px at 92% 60%, #fff 50%, transparent 51%); }
.sq-field { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sq-lens { width: 24px; height: 24px; color: #ffc947; flex: none; } .sq-lens svg { width: 24px; height: 24px; }
#search-input { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: 500 18px/1.3 Inter, sans-serif; appearance: none; -webkit-appearance: none; }
#search-input::placeholder { color: rgba(255,255,255,.4); } #search-input::-webkit-search-cancel-button { display: none; }
.sq-esc { font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 7px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.55); }
.sq-x { display: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; place-items: center; cursor: pointer; flex: none; } .sq-x svg { width: 16px; height: 16px; }
.sq-results, .sq-quick { position: relative; overflow-y: auto; padding: 10px 12px 14px; scrollbar-width: thin; }
.sq-results:empty { display: none; }
.sq-label { margin: 10px 8px 6px; font: 800 10.5px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #a78bfa; }
.sq-group + .sq-group { margin-top: 6px; }
.sq-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #fff; outline: none; transition: background .15s; }
.sq-item:hover, .sq-item:focus { background: rgba(255,255,255,.08); } .sq-item:focus { box-shadow: inset 0 0 0 1px rgba(56,214,255,.6); }
.sq-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #ffc947, #ff9f43); box-shadow: 0 0 10px rgba(255,201,71,.6); flex: none; }
.sq-item-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sq-item-txt b { font: 600 15px/1.3 Inter, sans-serif; } .sq-item-txt small { font: 500 12px/1.3 Inter, sans-serif; color: #a9a6c7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-item mark { background: rgba(255,201,71,.22); color: #ffe7a3; border-radius: 4px; padding: 0 2px; }
.sq-item-go { opacity: 0; color: #38d6ff; font-size: 14px; transition: opacity .15s; } .sq-item:hover .sq-item-go, .sq-item:focus .sq-item-go { opacity: 1; }
.sq-empty { padding: 34px 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; } .sq-empty b { font: 600 16px/1.3 Inter, sans-serif; } .sq-empty span { color: #a9a6c7; font-size: 13.5px; }
.sq-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 4px; }
.sq-chip { --c: #38d6ff; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #fff; font: 600 14px/1 Inter, sans-serif;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .2s, border-color .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.sq-chip:hover { background: color-mix(in srgb, var(--c) 14%, transparent); border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.sq-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); } .sq-ic svg { width: 16px; height: 16px; }
.sq-hint { margin: 14px 8px 4px; font-size: 12px; color: rgba(255,255,255,.4); text-align: center; }
/* day mode */
html:not(.dark) .sq-box { color: #12102e; background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(246,244,255,.98)); border-color: rgba(20,16,60,.12); box-shadow: 0 40px 100px rgba(40,30,100,.3); }
html:not(.dark) .sq-stars { opacity: 0; } html:not(.dark) .sq-field { border-bottom-color: rgba(20,16,60,.1); } html:not(.dark) .sq-lens { color: #a86b00; }
html:not(.dark) #search-input { color: #12102e; } html:not(.dark) #search-input::placeholder { color: rgba(18,16,46,.4); }
html:not(.dark) .sq-esc { border-color: rgba(20,16,60,.2); color: #5b5880; } html:not(.dark) .sq-x { color: #12102e; background: rgba(20,16,60,.05); border-color: rgba(20,16,60,.12); }
html:not(.dark) .sq-item { color: #12102e; } html:not(.dark) .sq-item:hover, html:not(.dark) .sq-item:focus { background: rgba(20,16,60,.06); } html:not(.dark) .sq-item-txt small { color: #5b5880; }
html:not(.dark) .sq-item mark { background: rgba(255,201,71,.35); color: #5a3d00; } html:not(.dark) .sq-chip { color: #12102e; background: rgba(20,16,60,.04); border-color: rgba(20,16,60,.1); }
html:not(.dark) .sq-empty span, html:not(.dark) .sq-hint { color: #5b5880; } html:not(.dark) .sq-label { color: #7c3aed; }
@media (max-width: 640px) { .sq-center { padding: 12px 10px; align-items: flex-start; } .sq-box { border-radius: 20px; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); } .sq-esc, .hdr-only-desk { display: none; } .sq-x { display: grid; } #search-input { font-size: 16px; } .sq-chips { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .sq-box, #search-backdrop { transition: none; } }

/* ============================================ */
/* SCROLLBAR (Phase 2) — a thin "comet trail" instead of the grey system bar. Firefox gets the thin coloured version. */
/* ============================================ */
html { scrollbar-width: thin; scrollbar-color: #7c3aed #0b0b1c; }
html:not(.dark) { scrollbar-color: #a86b00 #ebe9f6; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0b1c; }
::-webkit-scrollbar-thumb { border-radius: 99px; border: 2px solid #0b0b1c; background: linear-gradient(180deg, #ffc947, #a78bfa 45%, #38d6ff); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffe7a3, #c4b5fd 45%, #8ee8ff); }
html:not(.dark) ::-webkit-scrollbar-track { background: #ebe9f6; } html:not(.dark) ::-webkit-scrollbar-thumb { border-color: #ebe9f6; background: linear-gradient(180deg, #d98a00, #5b3fc4 45%, #0b8fc9); }
@media (hover: none) and (pointer: coarse) { ::-webkit-scrollbar { width: 0; height: 0; } }   /* phones keep their own overlay bar */

.glass-clean { background: rgba(255,255,255,.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.5); }
.dark .glass-clean { background: rgba(17,24,39,.6); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.08); }
.pro-card-hover { transition: all .4s cubic-bezier(.4,0,.2,1); }
.pro-card-hover:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================ */
/* HEADER v2 — shared pieces (desktop + phone)  */
/* ============================================ */
:root { --hdr-ic: 38px; }                                  /* SETTING: size of every round header button */
.hdr-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: none; }
.hdr-brand:hover { opacity: 1; }
.dh-brand, .mh-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; white-space: nowrap; }
/* the name: Orbitron (a wide, geometric "space" face), spaced out like a mission patch */
.hdr-name { font-family: 'Orbitron', 'Michroma', 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 16.5px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  transition: color .3s; }   /* SETTING: brand size and spacing */
.hdr-by { font-family: 'Michroma', 'Orbitron', 'Segoe UI', Arial, sans-serif; font-weight: 400; font-size: 7.5px; line-height: 1; letter-spacing: .34em; text-transform: uppercase; color: #c4b5fd; transition: color .3s; }
/* the nebula logo: the picture, a soft breathing glow behind it, and a thin orbit with a moon going round */
.hdr-logo { position: relative; width: 40px; height: 40px; flex: none; display: block; }
.hdr-logo img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 6px 18px rgba(80,40,160,.45); }
.hdr-logo-glow { position: absolute; inset: -9px; border-radius: 50%; z-index: 1; pointer-events: none; opacity: .55;
  background: radial-gradient(circle, rgba(167,139,250,.55) 0%, rgba(236,72,153,.22) 45%, transparent 70%); animation: hdrGlow 4.5s ease-in-out infinite; }
@keyframes hdrGlow { 0%, 100% { transform: scale(.92); opacity: .45; } 50% { transform: scale(1.08); opacity: .8; } }
.hdr-logo-orbit { position: absolute; inset: -6px; border-radius: 50%; z-index: 3; pointer-events: none; border: 1px solid rgba(255,255,255,.22);
  transform: rotateX(62deg); transform-style: preserve-3d; animation: hdrOrbit 9s linear infinite; }   /* SETTING: orbit speed (seconds per turn) */
.hdr-logo-orbit i { position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #ffe7a3;
  box-shadow: 0 0 8px 2px rgba(255,201,71,.75); }
@keyframes hdrOrbit { to { transform: rotateX(62deg) rotate(360deg); } }
.hdr-brand:hover .hdr-logo img { transform: rotate(-8deg) scale(1.06); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .hdr-logo-glow, .hdr-logo-orbit { animation: none; } }
html[data-gfx="lite"] .hdr-logo-glow { animation: none; }
/* every round button: same size, same ring, same hover */
.hdr-ic { position: relative; display: inline-grid; place-items: center; width: var(--hdr-ic); height: var(--hdr-ic); padding: 0 !important; border-radius: 50%; flex: none;
  color: currentColor; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); cursor: pointer; text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s cubic-bezier(.2,.8,.2,1), color .3s; -webkit-tap-highlight-color: transparent; }
.hdr-ic > svg { width: 18px; height: 18px; display: block; } .hdr-ic > svg.hidden { display: none; }   /* the sun / moon pair: only one shows */
.hdr-ic:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.hdr-ic:active { transform: scale(.94); }
.hdr-ic:focus-visible, .nav-item:focus-visible, .hdr-login:focus-visible, .hdr-profile:focus-visible { outline: 2px solid #38d6ff; outline-offset: 2px; }
.hdr-flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.hdr-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.hdr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; } .hdr-avatar b { font-size: 12px; font-weight: 800; }
.hdr-ic-avatar .hdr-avatar { width: calc(var(--hdr-ic) - 4px); height: calc(var(--hdr-ic) - 4px); }
.hdr-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ff7a1a; color: #fff; font: 800 11px/1 Inter, sans-serif; box-shadow: 0 0 0 2px rgba(4,4,12,.6); }
.hdr-ic .hdr-badge { position: absolute; top: -4px; right: -4px; }
/* the music button keeps its own inside (js/music.js draws the note / the little planet) */
#desktop-capsule .sj-mu-btn, #mh .sj-mu-btn { width: var(--hdr-ic); height: var(--hdr-ic); }
.hdr-fs .hidden { display: none; }

/* ============================================ */
/* HEADER v2 — the desktop capsule              */
/* ============================================ */
#desktop-header-container { transition: padding-top .4s ease; }
#desktop-header-container.state-top { padding-top: 1.5rem; }
#desktop-header-container.state-scrolled { padding-top: .5rem; }
#desktop-capsule { width: 95%; max-width: 1480px; gap: 18px; padding: 9px 12px 9px 16px; color: #fff; transition: background .4s, border-color .4s, box-shadow .4s, transform .4s; }
.hdr-nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-item { position: relative; display: inline-flex; align-items: center; padding: 9px 13px; border-radius: 99px; font: 600 14.5px/1.2 Inter, sans-serif; letter-spacing: .005em; white-space: nowrap; text-decoration: none; color: rgba(255,255,255,.88);
  transition: color .25s, background .25s; }   /* SETTING: nav link size */
.nav-item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.1); opacity: 0; transform: scale(.85); transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1); }
.nav-item:hover::before { opacity: 1; transform: none; }
.nav-item span { position: relative; z-index: 1; }
.nav-item::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #ffc947; box-shadow: 0 0 8px #ffc947; opacity: 0; transform: scale(0); transition: opacity .25s, transform .3s; }
.nav-item.is-active { color: #fff; } .nav-item.is-active::after { opacity: 1; transform: none; }   /* the gold dot marks the part of the homepage you are reading */
.hdr-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-search { width: auto; padding: 0 12px 0 10px !important; gap: 8px; border-radius: 99px; display: inline-flex; align-items: center; font: 600 13.5px/1 Inter, sans-serif; }
.hdr-search kbd { font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .04em; padding: 3px 5px; border-radius: 6px; border: 1px solid rgba(255,255,255,.22); opacity: .7; }
.hdr-auth { display: flex; align-items: center; }
.hdr-login { display: inline-flex; align-items: center; height: var(--hdr-ic); padding: 0 20px; border-radius: 99px; text-decoration: none; font: 700 14px/1 Inter, sans-serif; color: #2a1200;
  background: linear-gradient(100deg, #ffd166, #ffb347 55%, #ff8a5c); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 22px rgba(255,160,60,.32); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.hdr-login:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 28px rgba(255,160,60,.45); }
.hdr-profile { display: inline-flex; align-items: center; gap: 9px; height: var(--hdr-ic); padding: 0 14px 0 4px; border-radius: 99px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: background .25s, border-color .25s, color .3s; }
.hdr-profile:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.hdr-profile-name { font: 700 13.5px/1 Inter, sans-serif; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- AT TOP: a floating, almost transparent pill over the dark hero --- */
#desktop-capsule.state-top { background: rgba(255,255,255,.07); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 40px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.14); }
/* --- SCROLLED: frosted glass, light in day mode, deep in night mode --- */
#desktop-capsule.state-scrolled { background: linear-gradient(158deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.56) 40%, rgba(240,244,255,.62) 100%);
  backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%); border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 6px rgba(0,0,0,.06), inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(0,0,0,.05); color: #1f2340; }
#desktop-capsule.state-scrolled::after { content: ""; position: absolute; top: 0; left: 4%; right: 4%; height: 1.5px; border-radius: 99px; pointer-events: none; opacity: .7;
  background: linear-gradient(90deg, transparent, rgba(190,120,255,.55) 15%, rgba(110,190,255,.65) 35%, rgba(255,245,130,.45) 60%, rgba(210,110,255,.5) 85%, transparent); }
#desktop-capsule.state-scrolled .nav-item { color: #2a2f4f; } #desktop-capsule.state-scrolled .nav-item::before { background: rgba(20,16,60,.08); } #desktop-capsule.state-scrolled .nav-item:hover, #desktop-capsule.state-scrolled .nav-item.is-active { color: #12102e; }
#desktop-capsule.state-scrolled .hdr-name { color: #12102e; } #desktop-capsule.state-scrolled .hdr-by { color: #7c3aed; }
#desktop-capsule.state-scrolled .hdr-ic, #desktop-capsule.state-scrolled .hdr-profile { color: #1f2340; background: rgba(20,16,60,.05); border-color: rgba(20,16,60,.12); }
#desktop-capsule.state-scrolled .hdr-ic:hover, #desktop-capsule.state-scrolled .hdr-profile:hover { background: rgba(20,16,60,.1); }
#desktop-capsule.state-scrolled .hdr-search kbd { border-color: rgba(20,16,60,.2); }
.dark #desktop-capsule.state-scrolled { background: linear-gradient(158deg, rgba(22,18,48,.82) 0%, rgba(12,12,34,.78) 40%, rgba(18,22,50,.8) 100%); border-color: rgba(255,255,255,.13); color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3), inset 0 1.5px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.35); }
.dark #desktop-capsule.state-scrolled .nav-item { color: rgba(255,255,255,.85); } .dark #desktop-capsule.state-scrolled .nav-item::before { background: rgba(255,255,255,.1); } .dark #desktop-capsule.state-scrolled .nav-item:hover, .dark #desktop-capsule.state-scrolled .nav-item.is-active { color: #fff; }
.dark #desktop-capsule.state-scrolled .hdr-name { color: #fff; } .dark #desktop-capsule.state-scrolled .hdr-by { color: #c4b5fd; }
.dark #desktop-capsule.state-scrolled .hdr-ic, .dark #desktop-capsule.state-scrolled .hdr-profile { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.dark #desktop-capsule.state-scrolled .hdr-ic:hover, .dark #desktop-capsule.state-scrolled .hdr-profile:hover { background: rgba(255,255,255,.15); }
.dark #desktop-capsule.state-scrolled .hdr-search kbd { border-color: rgba(255,255,255,.22); }
/* day mode at the very top of a light page (most inner pages are light by day): the pill must not be white-on-white */
html:not(.dark) #desktop-capsule.state-top { background: rgba(255,255,255,.72); border-color: rgba(20,16,60,.12); box-shadow: 0 8px 30px rgba(40,30,100,.12); color: #1f2340; }
html:not(.dark) #desktop-capsule.state-top .nav-item { color: #2a2f4f; } html:not(.dark) #desktop-capsule.state-top .nav-item::before { background: rgba(20,16,60,.08); } html:not(.dark) #desktop-capsule.state-top .nav-item:hover, html:not(.dark) #desktop-capsule.state-top .nav-item.is-active { color: #12102e; }
html:not(.dark) #desktop-capsule.state-top .hdr-name { color: #12102e; } html:not(.dark) #desktop-capsule.state-top .hdr-by { color: #7c3aed; }
html:not(.dark) #desktop-capsule.state-top .hdr-ic, html:not(.dark) #desktop-capsule.state-top .hdr-profile { color: #1f2340; background: rgba(20,16,60,.05); border-color: rgba(20,16,60,.12); }
html:not(.dark) #desktop-capsule.state-top .hdr-search kbd { border-color: rgba(20,16,60,.2); }
/* a page can ask for the white-on-dark top state even by day (the homepage sets its own rule) */

/* laptops: tighter spacing, the Search word and the ⌘K hint hide, then "About" hides (it is in the footer and the phone menu) */
@media (max-width: 1439px) { .hdr-search span, .hdr-search kbd { display: none; } .hdr-search { width: var(--hdr-ic); padding: 0 !important; } #desktop-capsule { gap: 14px; } .nav-item { padding: 9px 11px; font-size: 14px; } }
@media (max-width: 1239px) { #desktop-capsule { padding-left: 12px; } .hdr-nav { gap: 0; } .nav-item { padding: 9px 9px; font-size: 13.5px; } .hdr-profile-name { display: none; } .hdr-profile { padding-right: 4px; } .hdr-tools { gap: 6px; } }
@media (max-width: 1139px) { .nav-item[data-nav="about"] { display: none; } #desktop-capsule .hdr-by { display: none; } #desktop-capsule .hdr-name { font-size: 15px; } }

/* ============================================ */
/* HEADER v2 — the phone bar                    */
/* ============================================ */
#mh { background: rgba(6,6,18,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; transition: background .3s; }
html:not(.dark) #mh { background: rgba(255,255,255,.86); border-bottom-color: rgba(20,16,60,.1); color: #12102e; }
html:not(.dark) #mh .hdr-name { color: #12102e; } html:not(.dark) #mh .hdr-by { color: #7c3aed; }
html:not(.dark) #mh .hdr-ic { background: rgba(20,16,60,.05); border-color: rgba(20,16,60,.12); color: #12102e; }
#mh-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px 9px 14px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
#mh .hdr-logo { width: 34px; height: 34px; } #mh .hdr-name { font-size: 14px; } #mh .hdr-by { font-size: 6.5px; }
#mh-icons { display: flex; align-items: center; gap: 6px; }
html[data-gfx="lite"] #mh { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6,6,18,.96); }
html[data-gfx="lite"]:not(.dark) #mh { background: rgba(255,255,255,.97); }
@media (max-width: 419px) { :root { --hdr-ic: 36px; } #mh-icons { gap: 4px; } #mh-bar { padding-left: 12px; padding-right: 8px; } #mh .hdr-logo { width: 32px; height: 32px; } #mh .hdr-name { font-size: 12.5px; } }
@media (max-width: 359px) { #mh .hdr-by { display: none; } #lang-btn-m { display: none; } }   /* very small phones: the flag moves into the menu */

/* ============================================ */
/* MOBILE MENU v2                               */
/* ============================================ */
#mobile-backdrop { background: rgba(2,2,10,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: opacity .3s; }
#mobile-menu { width: min(86vw, 380px); height: 100vh; height: 100dvh; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(ellipse 80% 40% at 100% 0%, rgba(90,50,170,.45), transparent 60%), radial-gradient(ellipse 70% 40% at 0% 100%, rgba(20,60,120,.4), transparent 60%), #07071a;
  border-left: 1px solid rgba(255,255,255,.1); box-shadow: -20px 0 60px rgba(0,0,0,.5); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
#mobile-menu::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 20% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 85% 70%, #ffe7a3 50%, transparent 51%), radial-gradient(1px 1px at 35% 85%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 55%, #bfeaff 50%, transparent 51%); }   /* a few fixed stars */
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px 20px; padding-top: max(16px, env(safe-area-inset-top)); flex: none; position: relative; }
.mm-title { display: flex; flex-direction: column; gap: 4px; } .mm-title .hdr-name { font-size: 15px; } .mm-title .hdr-by { font-size: 7px; }
.mm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); position: relative; overscroll-behavior: contain; }
.mm-group { margin: 14px 8px 6px; font: 800 10.5px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #a78bfa; }
.mm-nav { display: flex; flex-direction: column; }
.mm-row { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 14px; text-decoration: none; color: #ebe8fb; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.mm-row:hover, .mm-row:active { background: rgba(255,255,255,.07); }
.mm-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #c4b5fd; }
.mm-ic svg { width: 19px; height: 19px; }
.mm-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 600 15px/1.25 Inter, sans-serif; }
.mm-txt small { font: 500 12px/1.3 Inter, sans-serif; color: #a9a6c7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-go { color: rgba(255,255,255,.35); font-size: 22px; line-height: 1; padding-right: 4px; }
.mm-install { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px; border-radius: 16px; border: 0; text-align: left; color: #fff; cursor: pointer;
  background: linear-gradient(120deg, #3b2a8a, #5b21b6 60%, #7c3aed); box-shadow: 0 10px 30px rgba(91,33,182,.35); } .mm-install .mm-ic { background: rgba(255,255,255,.16); color: #fff; }
.mm-set { display: flex; flex-direction: column; gap: 4px; }
.mm-static { cursor: default; flex-wrap: wrap; } .mm-static:hover { background: none; }
.mm-switch { position: relative; width: 48px; height: 28px; flex: none; border-radius: 99px; border: 0; cursor: pointer; background: rgba(255,255,255,.14); transition: background .25s; }
.mm-switch[aria-checked="true"], #theme-toggle-mobile-action.is-on { background: #7c3aed; }
.mm-knob { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.mm-knob.translate-x-6, .mm-knob.is-on { transform: translateX(20px); }   /* js/header.js adds "translate-x-6" to the knob when dark mode is on */
.mm-music .mm-range { flex: 1 0 100%; margin: 6px 0 2px 50px; width: auto; }
.mm-auth { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.mm-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 14px; text-decoration: none; font: 700 15px/1 Inter, sans-serif; }
.mm-btn .mm-ic { width: 26px; height: 26px; border-radius: 8px; background: rgba(0,0,0,.12); border: 0; color: inherit; } .mm-btn .mm-ic svg { width: 15px; height: 15px; }
.mm-btn-p { color: #2a1200; background: linear-gradient(100deg, #ffd166, #ffb347 55%, #ff8a5c); box-shadow: 0 10px 28px rgba(255,160,60,.3); }
.mm-btn-s { color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.mm-out { text-align: center; color: #ff8a8a; font: 600 13.5px/1 Inter, sans-serif; text-decoration: none; padding: 8px; }
/* the menu by day: a light drawer */
html:not(.dark) #mobile-menu { color: #12102e; background: radial-gradient(ellipse 80% 40% at 100% 0%, rgba(170,140,255,.28), transparent 60%), radial-gradient(ellipse 70% 40% at 0% 100%, rgba(120,170,255,.25), transparent 60%), #f7f6fd; border-left-color: rgba(20,16,60,.1); }
html:not(.dark) #mobile-menu::before { opacity: 0; }
html:not(.dark) .mm-row { color: #12102e; } html:not(.dark) .mm-row:hover, html:not(.dark) .mm-row:active { background: rgba(20,16,60,.06); }
html:not(.dark) .mm-ic { background: rgba(20,16,60,.06); border-color: rgba(20,16,60,.08); color: #5b3fc4; } html:not(.dark) .mm-txt small { color: #5b5880; } html:not(.dark) .mm-go { color: rgba(20,16,60,.35); }
html:not(.dark) .mm-head .hdr-name { color: #12102e; } html:not(.dark) .mm-head .hdr-ic { color: #12102e; background: rgba(20,16,60,.05); border-color: rgba(20,16,60,.12); }
html:not(.dark) .mm-group { color: #7c3aed; } html:not(.dark) .mm-switch { background: rgba(20,16,60,.18); } html:not(.dark) .mm-btn-s { color: #12102e; background: rgba(20,16,60,.05); border-color: rgba(20,16,60,.12); }
html:not(.dark) .mm-install .mm-ic { color: #fff; }
@media (prefers-reduced-motion: reduce) { #mobile-menu, .mm-knob, .nav-item::before { transition: none; } }

/* ============================================ */
/* The old raindrop engine (js/header.js, switched off) keeps its styles so it can be turned back on */
/* ============================================ */
@keyframes drop-appear { 0% { opacity: 0; transform: scale(.3); } 20% { opacity: 1; transform: scale(1); } 75% { opacity: .85; } 100% { opacity: 0; transform: scale(.8); } }
@keyframes drop-slide { 0% { opacity: 0; transform: translateY(0) scale(.4); } 15% { opacity: .9; transform: translateY(0) scale(1); } 80% { opacity: .7; transform: translateY(14px) scale(.85); } 100% { opacity: 0; transform: translateY(20px) scale(.5); } }
.glass-drop { position: absolute; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; pointer-events: none; z-index: 10; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 40%, rgba(200,220,255,.1) 70%, rgba(180,210,255,.05) 100%); }

/* ============================================ */
/* LANGUAGE LIST (W7, 2 Nov 2026) — opens under the flag button on every page. js/header.js sets its left/top and the
   .open class; the choice is saved by api/lang.php without a reload. Colours follow day / night. */
/* ============================================ */
.hlp { position: fixed; z-index: 60; width: 332px; max-width: calc(100vw - 16px); padding: 10px 8px 8px; border-radius: 20px; color: #fff;
       background: rgba(16,14,40,.96); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
       backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
       transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.hlp[hidden] { display: none !important; }
.hlp.open { opacity: 1; transform: none; pointer-events: auto; }
.hlp::before { content: ""; position: absolute; top: -7px; right: var(--hlp-arrow, 18px); width: 12px; height: 12px; transform: rotate(45deg); background: inherit; border-left: 1px solid rgba(255,255,255,.13); border-top: 1px solid rgba(255,255,255,.13); }
.hlp-head { padding: 2px 10px 8px; font: 800 11px/1 Inter, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #ffc947; }
.hlp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.hlp-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; font: 600 14px/1.15 Inter, system-ui, sans-serif; transition: background .15s, border-color .15s; }
.hlp-opt img { width: 24px; height: 17px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.hlp-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hlp-name small { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.55); letter-spacing: .02em; }
.hlp-tick { width: 16px; height: 16px; flex: none; color: #ffc947; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s; }
.hlp-opt:hover, .hlp-opt:focus-visible { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); outline: none; }
.hlp-opt.is-on { background: rgba(255,201,71,.12); border-color: rgba(255,201,71,.45); }
.hlp-opt.is-on .hlp-tick { opacity: 1; transform: none; }
.hlp-opt.is-busy { opacity: .6; cursor: progress; }
.hlp-note { margin: 8px 6px 2px; padding: 8px 10px; border-radius: 10px; font: 500 12px/1.4 Inter, system-ui, sans-serif; color: rgba(255,255,255,.8); background: rgba(255,255,255,.06); }
.hlp-note[hidden] { display: none; }
html:not(.dark) .hlp { color: #12102e; background: rgba(255,255,255,.97); border-color: rgba(20,16,60,.12); box-shadow: 0 24px 60px rgba(40,30,100,.22); }
html:not(.dark) .hlp::before { border-color: rgba(20,16,60,.12); }
html:not(.dark) .hlp-head { color: #a86b00; }
html:not(.dark) .hlp-name small { color: #5b5880; }
html:not(.dark) .hlp-opt:hover, html:not(.dark) .hlp-opt:focus-visible { background: rgba(20,16,60,.06); border-color: rgba(20,16,60,.1); }
html:not(.dark) .hlp-opt.is-on { background: rgba(255,201,71,.18); border-color: rgba(168,107,0,.45); }
html:not(.dark) .hlp-tick { color: #a86b00; }
html:not(.dark) .hlp-note { color: #3b3860; background: rgba(20,16,60,.05); }
@media (max-width: 420px) { .hlp { width: calc(100vw - 16px); } .hlp-list { grid-template-columns: 1fr 1fr; } .hlp-opt { padding: 9px 8px; font-size: 13.5px; } }
@media (prefers-reduced-motion: reduce) { .hlp { transition: none; } }


/* ── /fonts/fonts.css ── */
/* fonts.css — self-hosted Inter, Anton and Playfair Display (2026-10-26). Files from Fontsource (Google Fonts builds), served from /fonts/. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-vietnamese-400-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-cyrillic-ext-500-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-vietnamese-500-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-cyrillic-ext-600-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-vietnamese-600-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-cyrillic-ext-700-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-vietnamese-700-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/inter-cyrillic-ext-800-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/inter-cyrillic-800-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/inter-vietnamese-800-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/inter-latin-ext-800-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/inter-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/anton-vietnamese-400-normal.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/anton-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Anton';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/anton-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/playfair-display-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/playfair-display-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/playfair-display-cyrillic-700-italic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:700;font-display:swap;src:url(/fonts/playfair-display-latin-700-italic.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Phase 1 (28 Oct 2026): the header's "cosmic" brand fonts (files from Fontsource, OFL licence). Orbitron is a variable font: one 12 KB file covers weights 400–900. */
@font-face{font-family:'Orbitron';font-style:normal;font-weight:400 900;font-display:swap;src:url(/fonts/orbitron-latin-wght-normal.woff2) format('woff2-variations'),url(/fonts/orbitron-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Michroma';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/michroma-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}


/* ── /assets/site-ui.css ── */
/* =====================================================================
   assets/site-ui.css — THE "CLASSIC" LOOK (6 Nov 2026)
   =====================================================================
   WHAT THIS FILE IS
   The design Sharifjon approved on 6 Nov 2026 (the dashboard look on every
   page). It is used only when site_look() === 'classic' (includes/look.php).
   The "Cosmic" look (today's design) never loads this file.

   PART 1  THE CHROME — the top menu, the phone bottom bar, the phone menu
           sheet, the footer, the "Choose your look" pop-up and card.
           Every class starts with "lk-" (look). Written by hand.
   PART 2  PAGE PARTS — cards, heroes, rings, test cards, chips … copied
           from the approved preview (built from assets/student-ui.css).
           They only work inside an element with class "lk-ui"
           (a Classic page puts it on <body class="lk-ui">).

   WHERE TO CHANGE COLOURS
   The colours are variables on .lk-ui (day) and html.dark .lk-ui (night),
   the same values as assets/student-ui.css. Skills keep their colour:
     Listening = cyan (--l)  Reading = violet (--r)
     Writing   = pink (--w)  Speaking = amber (--s)   Gold = big numbers.
   THE LOGO colours are --lg-* (planet, ring, star …).

   NIGHT / DAY: <html> gets class "dark" — the student's saved choice
   (sun / moon button), else the phone's or computer's own setting.

   MOTION: only transform and opacity move. "Reduce motion" on the phone
   = no motion at all (see the end of the file).
   After editing: nothing to bump — the address gets ?v=<file time> itself.
   ===================================================================== */

/* ── 1. COLOURS — DAY ───────────────────────────────────────────────── */
/* 6 Nov 2026 (round 2): ".lk-day" keeps day colours at night too (the "Choose your look" pop-up shows day first). */
.lk-ui, html.dark .lk-ui.lk-day {
  --bg: #f4f3fb; --card: #ffffff; --glass: rgba(255,255,255,.95); --glass-solid: #ffffff;   /* round 2: no blur behind the bars any more (speed), so the glass is almost solid */
  --line: #e4e2f0; --line2: #edecf5;
  --ink: #12102e; --body: #45436a; --mute: #6f6d8f;
  --brand: #6d4ee0; --brand-dk: #5b3ed0; --brand-ink: #4c2fb8; --brand-soft: #ece7fd;
  --hero: #12102e; --hero-ink: #b9b6d8;
  --gold: #ffc947; --gold-fill: #f0b429; --gold-ink: #1a1400; --gold-soft: #fff3d1; --gold-txt: #8a5b00;
  --l: #0ea5d9; --l-soft: #e0f6ff; --l-ink: #006f94;
  --r: #7c5ce6; --r-soft: #ede8ff; --r-ink: #5235b8;
  --w: #db2777; --w-soft: #ffe4f1; --w-ink: #a3155a;
  --s: #d97706; --s-soft: #fff1dc; --s-ink: #8a4b00;
  --m: #12102e; --m-soft: #e6e4f3; --m-ink: #12102e;
  --ok: #0f9d6e; --ok-soft: #e0f7ee; --bad: #d12d4a; --bad-soft: #ffe3e8; --warn: #e3a700;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18,16,46,.05), 0 8px 24px -18px rgba(18,16,46,.25);
  --shadow-up: 0 16px 36px -14px rgba(18,16,46,.28);
  --num-font: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --lab-font: Orbitron, "Segoe UI", Inter, sans-serif;
  --sub: var(--bg); --hero-bg: var(--card); --btn-ink: #fff; --ring-track: var(--line2);
  --gold-num: var(--gold-txt); --l-num: var(--l-ink); --r-num: var(--r-ink); --w-num: var(--w-ink); --s-num: var(--s-ink); --ok-num: var(--ok);
  --num-glow: none; --sky: none; --scrim: rgba(4,6,20,.5);
  --lg-planet: #6d4ee0; --lg-planet2: #9b85f2; --lg-ring: #f0b429; --lg-star: #f0b429; --lg-ink: #12102e; --lg-track: #e4e2f0; --lg-gap: var(--glass-solid);
  --gl: max(16px, env(safe-area-inset-left)); --gr: max(16px, env(safe-area-inset-right));
}
html.dark .lk-ui.lk-day { color-scheme: light; --lg-gap: #fff; }
/* ── 2. COLOURS — NIGHT ─────────────────────────────────────────────── */
html.dark .lk-ui {
  --bg: #070b1c; --card: #0f1430; --glass: rgba(10,14,36,.95); --glass-solid: #0b1029;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.05);
  --ink: #f2f3ff; --body: #c3c7e6; --mute: #8b90b8;
  --brand: #a78bfa; --brand-dk: #8f6ff5; --brand-ink: #cdbcff; --brand-soft: rgba(167,139,250,.14);
  --hero: #0f1430; --hero-ink: #9ba3d3;
  --gold: #ffc947; --gold-fill: #ffc947; --gold-ink: #1a1400; --gold-soft: rgba(255,201,71,.13); --gold-txt: #ffd978;
  --l: #38d6ff; --l-soft: rgba(56,214,255,.13); --l-ink: #9ae9ff;
  --r: #a78bfa; --r-soft: rgba(167,139,250,.14); --r-ink: #cdbcff;
  --w: #f472b6; --w-soft: rgba(244,114,182,.14); --w-ink: #ffb0d6;
  --s: #ffb347; --s-soft: rgba(255,179,71,.14); --s-ink: #ffd08c;
  --m: #ffc947; --m-soft: rgba(255,201,71,.12); --m-ink: #ffd978;
  --ok: #34d399; --ok-soft: rgba(52,211,153,.14); --bad: #fb7185; --bad-soft: rgba(251,113,133,.14); --warn: #ffc947;
  --shadow: 0 1px 0 rgba(255,255,255,.02), 0 10px 30px -18px rgba(0,0,0,.8);
  --shadow-up: 0 18px 40px -16px rgba(0,0,0,.85);
  --sub: rgba(255,255,255,.03);
  --hero-bg: linear-gradient(135deg, #121840 0%, #0f1430 55%, #0c1130 100%);
  --btn-ink: #0a0820; --ring-track: rgba(255,255,255,.1);
  --gold-num: #ffc947; --l-num: #38d6ff; --r-num: #a78bfa; --w-num: #f472b6; --s-num: #ffb347; --ok-num: #34d399;
  --num-glow: 0 0 24px rgba(255,201,71,.35);
  --sky: radial-gradient(ellipse 60% 40% at 15% 0%, rgba(167,139,250,.14), transparent 70%), radial-gradient(ellipse 50% 35% at 90% 5%, rgba(56,214,255,.10), transparent 70%), radial-gradient(1px 1px at 23px 41px, rgba(255,255,255,.55), transparent 100%), radial-gradient(1px 1px at 157px 112px, rgba(255,255,255,.35), transparent 100%), radial-gradient(1.5px 1.5px at 211px 27px, rgba(255,201,71,.55), transparent 100%), radial-gradient(1px 1px at 91px 203px, rgba(255,255,255,.45), transparent 100%), radial-gradient(1px 1px at 266px 171px, rgba(56,214,255,.5), transparent 100%), linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  --scrim: rgba(4,6,20,.66);
  --lg-planet: #a78bfa; --lg-planet2: #cdbcff; --lg-ring: #ffc947; --lg-star: #ffc947; --lg-ink: #f2f3ff; --lg-track: rgba(255,255,255,.14);
  color-scheme: dark;
}

/* ── 3. A CLASSIC PAGE (body class="lk-ui") ─────────────────────────── */
body.lk-ui {
  margin: 0; background-color: var(--bg); background-image: var(--sky);
  background-size: 100% 900px, 100% 700px, 300px 260px, 300px 260px, 300px 260px, 300px 260px, 300px 260px, 56px 56px, 56px 56px;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat;
  color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; overflow-x: hidden;
}
html.dark body.lk-ui { background-color: #070b1c; }
:where(.lk-ui) *, :where(.lk-ui) *::before, :where(.lk-ui) *::after { box-sizing: border-box; }
:where(.lk-ui) [hidden] { display: none !important; }
:where(.lk-ui) a { color: var(--brand); }
:where(.lk-ui) button { font: inherit; }
:where(.lk-ui) :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }
.lk-skip { position: absolute; left: 8px; top: 8px; z-index: 100; background: #12102e; color: #fff !important; padding: 8px 12px; border-radius: 8px; font: 600 14px Inter, sans-serif; transform: translateY(-300%); }
.lk-skip:focus { transform: none; }   /* no "left: -9999px": in Persian / Urdu (right-to-left) that made the page scroll sideways */
.lk-lab { font-family: var(--lab-font); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }

/* ── 4. THE LOGO (Score Orbit) ─────────────────────────────────────── */
.lk-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.lk-mark { display: block; flex: none; }
.lk-wm { font-family: var(--lab-font, Orbitron, sans-serif); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lk-wm b { font-weight: 800; }
.lk-wm span { font-weight: 500; opacity: .72; margin-left: .35em; }
/* 6 Nov 2026 (round 2): the ring no longer "fills" when a page opens (that animated a drawing, not transform/opacity:
   costly on weak phones). The header logo now has a small moving shine instead — see look_icon_links() in includes/look.php. */

/* ── 5. THE TOP MENU ────────────────────────────────────────────────── */
.lk-top { position: sticky; top: 0; z-index: 45; background: var(--glass); border-bottom: 1px solid var(--line); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
/* pages still in the old design (Tailwind) keep the space of their old fixed header, so the bar floats over the top */
body:not(.lk-ui):not(.sd) > .lk-top { position: fixed; left: 0; right: 0; }
.lk-top-in { max-width: 1240px; margin: 0 auto; padding: 10px var(--gr) 10px var(--gl); display: flex; align-items: center; gap: 12px; min-height: 58px; }
.lk-logo { display: flex; align-items: center; text-decoration: none; color: var(--ink) !important; flex: none; min-width: 0; }
.lk-tabs { display: flex; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; margin-left: 6px; }
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 13px; border-radius: 11px; font-weight: 600; font-size: 13.5px; color: var(--body); text-decoration: none; white-space: nowrap; position: relative; transition: background-color .15s, color .15s; }
.lk-tabs a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.lk-tabs a.on, .lk-tabs a.active { color: var(--ink); background: var(--brand-soft); }
.lk-tabs a.on::after, .lk-tabs a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold-fill); }
/* 9 Nov 2026 (round 3): a thin line between the tests (Listening … Mock) and the learning places (Grammar, Words, Community) */
.lk-tabs a.sep { margin-left: 17px; }
.lk-tabs a.sep::before { content: ""; position: absolute; left: -9px; top: 11px; bottom: 11px; width: 1px; background: var(--line); }
.lk-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.lk-ic { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--body); cursor: pointer; display: inline-grid; place-items: center; padding: 0; flex: none; position: relative; transition: transform .15s, color .15s, background-color .15s; text-decoration: none; }
.lk-ic:hover { color: var(--ink); background: var(--brand-soft); }
.lk-ic svg { display: block; }
.lk-theme:hover { transform: rotate(-12deg); }
.lk-theme .sun { display: none; } .lk-theme .moon { display: block; }
html.dark .lk-theme .sun { display: block; } html.dark .lk-theme .moon { display: none; }
.lk-flag img { width: 22px; height: 16px; border-radius: 3px; display: block; object-fit: cover; }
.lk-bell .np-cnt { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e8961a; color: #1a1000; font: 800 10.5px/18px Inter, system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--glass-solid); }
.lk-bell .np-cnt[hidden] { display: none; }
/* the teacher's Classroom and the Admin buttons — 6 Nov 2026 (round 2, owner's #23): before, hovering / pressing gave them the
   pale ".lk-ic:hover" background, so the white (day) or dark (night) icon disappeared. Now every state has its own solid colour. */
.lk-ic.lk-hq { background: var(--brand); border-color: var(--brand); color: var(--btn-ink) !important; -webkit-tap-highlight-color: transparent; }
.lk-ic.lk-hq:hover, .lk-ic.lk-hq:focus-visible { background: var(--brand-dk); border-color: var(--brand-dk); color: var(--btn-ink) !important; }
.lk-ic.lk-hq:active { background: var(--hq-press, #4c2fb8); border-color: var(--hq-press, #4c2fb8); color: #fff !important; transform: scale(.94); }
.lk-ic.lk-adm { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-ink) !important; -webkit-tap-highlight-color: transparent; }
.lk-ic.lk-adm:hover, .lk-ic.lk-adm:focus-visible { background: var(--adm-hover, #e2a614); border-color: var(--adm-hover, #e2a614); color: var(--gold-ink) !important; }
.lk-ic.lk-adm:active { background: var(--adm-press, #c98f0a); border-color: var(--adm-press, #c98f0a); color: var(--gold-ink) !important; transform: scale(.94); }
.lk-ic.lk-adm:focus-visible { outline-color: var(--brand); }
.lk-ic.lk-hq.on, .lk-ic.lk-adm.on { box-shadow: 0 0 0 2px var(--glass-solid), 0 0 0 4px var(--ink); }   /* you are on that page */
html.dark .lk-ui { --hq-press: #cdbcff; --adm-hover: #ffd466; --adm-press: #ffe08f; }
html.dark .lk-ic.lk-hq:active { color: #0a0820 !important; }
/* the student's "Classroom" chip (6 Nov 2026, round 2, owner's #5): only for students in a teacher's group */
.lk-class { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px; border-radius: 11px; border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-ink) !important; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; flex: none; position: relative; -webkit-tap-highlight-color: transparent; transition: background-color .15s, color .15s; }
.lk-class:hover, .lk-class:focus-visible { background: var(--brand); color: var(--btn-ink) !important; }
.lk-class:active { transform: scale(.96); }
.lk-class.on { background: var(--brand); color: var(--btn-ink) !important; }
.lk-class-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--w); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
@media (max-width: 1440px) and (min-width: 761px) { .lk-class-t { display: none; } .lk-class { padding: 0 9px; } }   /* room for every tab (Guide was added) */
@media (max-width: 760px) { .lk-class { height: 36px; padding: 0 8px; } .lk-class-t { display: none; } .lk-class-n { position: absolute; top: -6px; right: -6px; } }
@media (max-width: 1100px) and (min-width: 761px) { .lk-many .lk-logo .lk-wm { display: none; } }   /* extra buttons (Classroom, Admin): the mark alone leaves room for every tab */
@media (max-width: 1440px) { .lk-tabs a { padding: 0 11px; } .lk-tabs a.on::after, .lk-tabs a.active::after { left: 11px; right: 11px; } .lk-right { gap: 6px; } }
@media (max-width: 1100px) { .lk-tabs a { padding: 0 9px; } .lk-tabs a.on::after, .lk-tabs a.active::after { left: 9px; right: 9px; } .lk-tabs a.sep { margin-left: 13px; } .lk-tabs a.sep::before { left: -7px; } }
.lk-pill { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 99px; background: var(--brand); color: var(--btn-ink) !important; font-weight: 800; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.lk-pill.gold { background: var(--gold-fill); color: var(--gold-ink) !important; }
.lk-pill:hover { filter: brightness(1.06); }
.lk-avbtn { position: relative; border: 0; background: none; padding: 0; border-radius: 99px; display: inline-flex; flex: none; cursor: pointer; box-shadow: 0 0 0 2px var(--glass-solid), 0 0 0 3.5px var(--gold-fill); }
.lk-avbtn > *:not(.lk-badge) { width: 34px !important; height: 34px !important; border-radius: 50% !important; overflow: hidden; }
.lk-av { width: 34px; height: 34px; border-radius: 99px; background: var(--l); color: #fff; font-weight: 800; display: grid; place-items: center; }
.lk-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--w); color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 18px; }
.lk-badge.in { position: static; margin-left: auto; }
/* 13 Nov 2026: YOUR ACCOUNT MENU under the picture (computer). Dashboard · Profile and settings · Results · Messages · Log out */
.lk-acct { position: relative; display: inline-flex; flex: none; }
.lk-acct-menu { position: absolute; top: calc(100% + 12px); right: -4px; z-index: 70; width: 244px; padding: 6px; border-radius: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 22px 44px -18px rgba(8,10,30,.45), 0 2px 6px rgba(8,10,30,.08); font-family: Inter, system-ui, sans-serif; text-align: left; }
.lk-acct-menu[hidden] { display: none; }
.lk-acct-who { padding: 9px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.lk-acct-who b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-acct-who span { display: block; margin-top: 1px; font-size: 12px; color: var(--mute); }
.lk-acct-menu a, .lk-acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink) !important; font: 600 14px Inter, system-ui, sans-serif; text-decoration: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.lk-acct-menu a:hover, .lk-acct-menu button:hover, .lk-acct-menu a:focus-visible, .lk-acct-menu button:focus-visible { background: var(--brand-soft); outline: none; }
.lk-acct-menu a[aria-current="page"] { color: var(--brand) !important; }
.lk-acct-menu svg { flex: none; color: var(--mute); }
.lk-acct-menu .lk-acct-out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 2px; min-height: 44px; color: var(--w) !important; font-weight: 700; }
.lk-acct-menu .lk-acct-out svg { color: var(--w); }
.lk-tab-n { display: inline-block; margin-left: 5px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--w); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center; vertical-align: 1px; }   /* 9 Nov 2026: new Community messages */
.lk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--brand); color: var(--btn-ink) !important; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .15s, background-color .15s, filter .15s; white-space: nowrap; font-family: Inter, system-ui, sans-serif; }
.lk-btn:hover { background: var(--brand-dk); transform: translateY(-2px); }
.lk-btn.sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.lk-btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.lk-btn.ghost:hover { background: var(--brand-soft); }
.lk-btn.gold { background: var(--gold-fill); color: var(--gold-ink) !important; }
.lk-only-ph { display: none !important; }
/* 9 Nov 2026 (round 3): tablets (761–1000px) — the tests stay in the bar; Grammar, Words and Community move into the menu button */
@media (max-width: 1000px) and (min-width: 761px) {
  .lk-tabs a.sep, .lk-tabs a.sep ~ a { display: none; }
  .lk-right button[data-lk-sheet="open"] { display: inline-grid !important; }
}
.lk-bottom, .lk-scrim, .lk-sheet { display: none; }

/* ── 6. PHONES (760 px and less) ────────────────────────────────────── */
@media (max-width: 760px) {
  .lk-tabs, .lk-hide-ph { display: none !important; }
  .lk-only-ph { display: inline-grid !important; }
  .lk-top-in { padding: 8px var(--gr) 8px var(--gl); gap: 6px; min-height: 54px; }
  .lk-logo { flex: 0 1 auto; margin-right: auto; }   /* 10 Nov 2026 (owner): was stretched over the whole bar, so a tap lit up the whole header */
  .lk-logo .lk-mark { width: 30px; height: 30px; }
  .lk-logo .lk-lockup { gap: 8px; }
  .lk-wm { font-size: 11px; letter-spacing: .12em; }
  /* 9 Nov 2026: on a 375 px phone the five header buttons left ~95 px and the name was cut ("IELTS · Plan…") — it now stands on two lines */
  @media (max-width: 430px) { .lk-logo .lk-wm { display: flex; flex-direction: column; font-size: 10.5px; line-height: 1.12; letter-spacing: .1em; overflow: visible; } .lk-logo .lk-wm i { display: none; } .lk-logo .lk-wm span { margin-left: 0; } }
  .lk-right { gap: 6px; }
  .lk-ic { width: 36px; height: 36px; }
  /* the bottom bar */
  .lk-bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--glass); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); font-family: Inter, system-ui, sans-serif; }
  .lk-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 10px; font-size: 10.5px; font-weight: 700; color: var(--mute); text-decoration: none; position: relative; }
  .lk-bottom a.on { color: var(--gold-txt); }
  .lk-bottom a.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 2px; border-radius: 2px; background: var(--gold-fill); transform: translateX(-50%); }
  .lk-bottom .lk-badge.dot { top: 4px; right: calc(50% - 22px); }
  body.lk-has-bottom, body:has(> .lk-bottom) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* the menu sheet (opens from the ☰ button and from "Tests") */
  .lk-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 60; background: var(--scrim, rgba(4,6,20,.5)); animation: lkFade .2s ease both; }
  .lk-sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; background: var(--card); color: var(--ink); border-radius: 22px 22px 0 0; padding: 14px var(--gr) calc(18px + env(safe-area-inset-bottom)) var(--gl); box-shadow: 0 -18px 40px -18px rgba(0,0,0,.45); font-family: Inter, system-ui, sans-serif; animation: lkUp .25s cubic-bezier(.2,.8,.2,1) both; }
}
@media (max-width: 370px) { .lk-wm span { display: none; } }
.lk-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; color: var(--ink); }
.lk-sheet-lab { margin: 14px 0 8px; font-family: var(--lab-font); font-weight: 700; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.lk-sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lk-sheet-grid a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--sub); color: var(--ink) !important; text-decoration: none; font-weight: 700; font-size: 13px; }
.lk-sheet-grid a svg { color: var(--k, var(--brand)); }
.lk-sheet-grid .L { --k: var(--l); } .lk-sheet-grid .R { --k: var(--r); } .lk-sheet-grid .W { --k: var(--w); } .lk-sheet-grid .S { --k: var(--s); } .lk-sheet-grid .M { --k: var(--gold-fill); } .lk-sheet-grid .G { --k: var(--ok); } .lk-sheet-grid .B { --k: var(--brand); }   /* 9 Nov 2026: Question types */
.lk-sheet-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.lk-sheet-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 10px; color: var(--ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.lk-sheet-list a:hover { background: var(--brand-soft); }
.lk-sheet-list a svg { color: var(--mute); }
.lk-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lk-out { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--mute) !important; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.lk-imp { background: var(--gold-fill); color: var(--gold-ink); text-align: center; padding: 8px 12px; font: 600 13.5px Inter, sans-serif; }
.lk-imp a { color: inherit; }

/* ── 7. THE FOOTER ──────────────────────────────────────────────────── */
.lk-foot { background: var(--card); border-top: 1px solid var(--line); color: var(--body); font: 14px/1.5 Inter, system-ui, sans-serif; margin-top: 24px; }
.lk-foot-in { max-width: 1240px; margin: 0 auto; padding: 32px var(--gr) 18px var(--gl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 28px; }
.lk-foot-brand p { margin: 12px 0 0; color: var(--mute); font-size: 13.5px; }
.lk-foot-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lk-foot-map h3 { margin: 0 0 8px; font-family: var(--lab-font); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }   /* 19 Nov 2026: was 10px */
.lk-foot-map a { display: block; padding: 8px 0;   /* 19 Nov 2026: was 4px: a link is now 37 px high, enough for a finger */ color: var(--body) !important; text-decoration: none; font-weight: 500; }
.lk-foot-map a:hover { color: var(--brand) !important; }
.lk-foot-bar { max-width: 1240px; margin: 0 auto; padding: 14px var(--gr) 18px var(--gl); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 12.5px; color: var(--mute); }
.lk-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.lk-foot-links a, .lk-linkbtn { color: var(--mute) !important; text-decoration: none; font-weight: 600; }
.lk-linkbtn { border: 0; background: none; padding: 0; cursor: pointer; font: 600 12.5px Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.lk-foot-links a:hover, .lk-linkbtn:hover { color: var(--ink) !important; }
@media (max-width: 900px) { .lk-foot-in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lk-foot-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── 8. "CHOOSE YOUR LOOK" — the pop-up and the settings card ───────── */
.lk-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .lk-choices { grid-template-columns: 1fr; } }
.lk-choice { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--sub); cursor: pointer; transition: border-color .15s, transform .15s; min-width: 0; }
.lk-choice:hover { transform: translateY(-2px); }
.lk-choice.on { border-color: var(--brand); background: var(--brand-soft); }
.lk-choice:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.lk-shots { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--line2); }
.lk-shots .lap { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lk-shots .ph { position: absolute; right: 8px; bottom: 8px; width: 26%; height: auto; aspect-ratio: 390 / 812; object-fit: cover; object-position: top; border-radius: 8px; border: 3px solid #12102e; box-shadow: 0 8px 20px -8px rgba(0,0,0,.6); background: #12102e; }
.lk-choice-t { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 4px; padding-right: 30px; }
.lk-choice-t b { font-size: 16px; color: var(--ink); }
.lk-choice-t small { font-size: 13px; color: var(--body); line-height: 1.4; }
.lk-tick { position: absolute; right: 14px; bottom: 16px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.lk-choice.on .lk-tick { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--card); }
.lk-card-look { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; margin: 18px 0; }
.lk-card-look .lk-choices { max-width: 760px; }
.lk-card-head h2 { margin: 4px 0 2px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.lk-card-head p { margin: 0 0 14px; color: var(--mute); font-size: 13.5px; }
.lk-card-note { margin: 10px 0 0; min-height: 1.4em; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.lk-card-note.bad { color: var(--bad); }
@media (max-width: 760px) { .lk-card-look { padding: 16px; } }
.lk-pop { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: var(--scrim); animation: lkFade .2s ease both; font-family: Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
.lk-pop-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); animation: lkUp .3s cubic-bezier(.2,.8,.2,1) both; }
.lk-pop-box h2 { margin: 6px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.lk-pop-box > p { margin: 0 0 16px; color: var(--body); font-size: 14.5px; }
.lk-pop-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 520px) { .lk-pop-box { padding: 18px 16px; } .lk-pop-acts .lk-btn { flex: 1 1 auto; } }
/* 6 Nov 2026 (round 2): the pop-up must be answered. It shows only when JavaScript runs (class lk-js from the head script),
   so a browser without JavaScript is never stuck behind it. The page under it stays complete. */
html.lk-js .lk-pop:not([hidden]) { display: grid; }
html.lk-pop-open, html.lk-pop-open body { overflow: hidden; }
html.lk-pop-open .np { visibility: hidden; }   /* the homework pop-up notice waits until the look is chosen (it comes back on the next page) */
.lk-pop-box .lk-btn[disabled] { opacity: .55; cursor: default; transform: none; }
.lk-pop-box:focus { outline: none; }
.lk-pop .lk-pop-acts { position: sticky; bottom: -22px; z-index: 2; margin: 14px -22px -22px; padding: 12px 22px 16px; background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
@media (max-width: 520px) { .lk-pop .lk-pop-acts { bottom: -18px; margin: 12px -16px -18px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); } }
.lk-pop .lk-pop-note:empty { display: none; }
.lk-pop-tog { display: inline-flex; gap: 4px; padding: 3px; margin: 0 0 12px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); }
.lk-pop-tog button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: transparent; color: var(--body); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.lk-pop-tog button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(18,16,46,.15); }
.lk-pop-note { margin: 8px 0 0; min-height: 1.3em; font-size: 13px; color: var(--mute); }
.lk-pros { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--body); }
.lk-pros li { position: relative; padding-left: 18px; }
.lk-pros li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.lk-best { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--brand-ink); }
@media (max-width: 520px) { .lk-pop .lk-shots { aspect-ratio: 16 / 8; } .lk-pop .lk-choice { gap: 6px; } .lk-pop-box h2 { font-size: 21px; } }
/* 9 Nov 2026 (owner: "fix the sizes"): on a phone both looks sit SIDE BY SIDE, each shown by its phone picture, so the student
   compares them without scrolling; the bullet points stay on bigger screens. */
@media (max-width: 520px) {
  .lk-pop .lk-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lk-pop .lk-choice { padding: 6px; gap: 6px; border-radius: 14px; }
  .lk-pop .lk-shots { aspect-ratio: 390 / 560; background: var(--card); }
  .lk-pop .lk-shots .lap { display: none; }
  .lk-pop .lk-shots .ph { position: static; width: 100%; height: 100%; border: 0; border-radius: 9px; box-shadow: none; }
  .lk-pop .lk-pros, .lk-pop .lk-best { display: none; }
  .lk-pop .lk-choice-t { padding: 0 2px 2px; padding-right: 22px; }
  .lk-pop .lk-choice-t b { font-size: 15px; } .lk-pop .lk-choice-t small { font-size: 12px; line-height: 1.35; }
  .lk-pop-box > p { font-size: 13.5px; margin-bottom: 10px; } .lk-pop-tog { margin-bottom: 8px; }
}
/* "Customise by section" in the settings card */
.lk-by { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--sub); max-width: 760px; }
.lk-by summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; min-height: 44px; }
.lk-by summary::-webkit-details-marker { display: none; }
.lk-by summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); margin-left: 4px; flex: none; }
.lk-by[open] summary::after { transform: rotate(-135deg); }
.lk-by summary small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--mute); }
.lk-by-help { margin: 0 14px 10px; font-size: 13px; color: var(--mute); }
.lk-by-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 0 14px 14px; }
@media (max-width: 640px) { .lk-by-list { grid-template-columns: 1fr; } }
.lk-by-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.lk-by-name { font-size: 13.5px; font-weight: 600; color: var(--ink); min-width: 0; }
.lk-seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); flex: none; }
.lk-seg label { position: relative; cursor: pointer; }
.lk-seg label span { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--body); }
.lk-seg input:checked + span { background: var(--brand); color: var(--btn-ink); }
.lk-seg label:first-child input:checked + span { background: var(--brand-soft); color: var(--brand-ink); }   /* "Same" = quiet; an own choice stands out */
.lk-seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }

/* "Make it yours" — the settings card (9 Nov 2026, owner round 2): Design · Day or night · Text size · Look by section, nothing folded away */
.lk-set { padding: 24px 24px 20px; position: relative; overflow: hidden; }
.lk-set::before { content: ""; position: absolute; right: -90px; top: -110px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); pointer-events: none; }
.lk-set-top { display: flex; gap: 14px; align-items: flex-start; position: relative; }
.lk-set-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), #f0b429); box-shadow: 0 12px 24px -14px var(--brand); }
.lk-set .lk-card-head h2 { font-size: 22px; }
.lk-set-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; position: relative; }
.lk-set-nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--sub); color: var(--ink) !important; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.lk-set-nav a:hover { border-color: var(--brand); background: var(--brand-soft); }
.lk-set-b, .lk-by2 { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); position: relative; scroll-margin-top: 80px; }
.lk-set-h h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink); scroll-margin-top: 90px; }
.lk-set-h p { margin: 2px 0 12px; font-size: 13.5px; color: var(--mute); max-width: 62ch; }
.lk-set .lk-choices { max-width: none; }
.lk-def { font-style: normal; margin-left: 6px; padding: 2px 7px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-txt); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
/* Day · Night · Auto and Text size: picture cards */
.lk-th, .lk-fs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lk-th-c, .lk-fs-c { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; -webkit-tap-highlight-color: transparent; min-width: 0; }
.lk-th-c:hover, .lk-fs-c:hover { transform: translateY(-2px); border-color: var(--brand); }
.lk-th-c:has(input:checked), .lk-fs-c:has(input:checked), .lk-th-c.on, .lk-fs-c.on { border-color: var(--brand); background: var(--brand-soft); }
.lk-th-c:focus-within, .lk-fs-c:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.lk-th-c .lk-tick, .lk-fs-c .lk-tick { top: auto; bottom: 12px; right: 12px; }
.lk-th-c:has(input:checked) .lk-tick, .lk-fs-c:has(input:checked) .lk-tick, .lk-th-c.on .lk-tick, .lk-fs-c.on .lk-tick { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--card); }
.lk-th-t, .lk-fs-t { display: flex; flex-direction: column; gap: 1px; padding: 0 30px 2px 4px; min-width: 0; }
.lk-th-t b, .lk-fs-t b { font-size: 15px; color: var(--ink); }
.lk-th-t small, .lk-fs-t small { font-size: 12.5px; color: var(--body); line-height: 1.35; }
.lk-th-pic { --pg: #f4f3fb; --pc: #ffffff; --pl: #e4e2f0; --pk: #12102e; --pb: #6d4ee0; position: relative; display: block; height: 92px; border-radius: 11px; overflow: hidden; background: var(--pg); border: 1px solid rgba(18,16,46,.08); }
.lk-th-c.dark .lk-th-pic { --pg: #070b1c; --pc: #0f1430; --pl: rgba(255,255,255,.12); --pk: #f2f3ff; --pb: #a78bfa; border-color: rgba(255,255,255,.08); }
.lk-th-c.auto .lk-th-pic { background: linear-gradient(120deg, #f4f3fb 0 50%, #070b1c 50% 100%); }
.lk-th-pic i { position: absolute; display: block; }
.lk-th-pic .bar { left: 0; right: 0; top: 0; height: 14px; background: var(--pc); border-bottom: 1px solid var(--pl); }
.lk-th-pic .h { left: 10px; top: 24px; width: 46%; height: 8px; border-radius: 4px; background: var(--pk); }
.lk-th-pic .l1 { left: 10px; top: 38px; width: 58%; height: 5px; border-radius: 3px; background: var(--pl); }
.lk-th-pic .l2 { left: 10px; top: 48px; width: 40%; height: 5px; border-radius: 3px; background: var(--pl); }
.lk-th-pic .crd { left: 10px; right: 10px; bottom: 9px; height: 22px; border-radius: 6px; background: var(--pc); border: 1px solid var(--pl); display: flex; gap: 5px; align-items: center; padding: 0 6px; }
.lk-th-pic .crd em { display: block; width: 26%; height: 8px; border-radius: 3px; background: var(--pb); opacity: .85; }
.lk-th-pic .crd em + em { background: #f0b429; }
.lk-th-pic .sky { right: 12px; top: 22px; width: 22px; height: 22px; border-radius: 50%; background: #f0b429; box-shadow: 0 0 0 4px rgba(240,180,41,.22), 0 0 18px rgba(240,180,41,.6); }
.lk-th-c.dark .lk-th-pic .sky { background: transparent; box-shadow: inset -7px -3px 0 0 #ffd978; transform: rotate(-20deg); }
.lk-th-c.auto .lk-th-pic .sky { background: linear-gradient(120deg, #f0b429 0 50%, transparent 50%); box-shadow: inset -7px -3px 0 0 #ffd978; }
.lk-th-c.auto .lk-th-pic .h { background: linear-gradient(120deg, #12102e 0 60%, #f2f3ff 60%); }
.lk-fs-aa { display: grid; place-items: center; height: 92px; border-radius: 11px; background: var(--sub); border: 1px solid var(--line); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.lk-fs-aa::first-letter { color: var(--brand); }
/* Homepage headline (10 Nov 2026): five designs, each with a small still picture. The real ones: assets/home-headline.css */
.lk-hh { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.lk-hh-c { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; -webkit-tap-highlight-color: transparent; min-width: 0; }
.lk-hh-c:hover { transform: translateY(-2px); border-color: var(--brand); }
.lk-hh-c:has(input:checked), .lk-hh-c.on { border-color: var(--brand); background: var(--brand-soft); }
.lk-hh-c:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.lk-hh-c .lk-tick { top: auto; bottom: 12px; right: 12px; }
.lk-hh-c:has(input:checked) .lk-tick, .lk-hh-c.on .lk-tick { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--card); }
.lk-hh-t { display: flex; flex-direction: column; gap: 1px; padding: 0 30px 2px 4px; min-width: 0; }
.lk-hh-t b { font-size: 15px; color: var(--ink); }
.lk-hh-t small { font-size: 12.5px; color: var(--body); line-height: 1.35; }
.lk-set-h p a { color: var(--brand-ink); font-weight: 700; white-space: nowrap; }
.lk-hh-pic { display: flex; align-items: center; height: 104px; padding: 10px 12px; border-radius: 11px; background: var(--sub); border: 1px solid var(--line); overflow: hidden; }
.hhp { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.hhp b { font-weight: inherit; } .hhp i, .hhp em { font-style: normal; }
.hhp3 b { color: var(--gold-num); white-space: nowrap; }
.hhp3 b i { display: inline-block; width: .62em; height: .62em; margin-left: .14em; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #b6a2ff, #7c5ce6 55%, #4c2fb8); box-shadow: 0 0 0 .07em #f0b429 inset; }
.hhp4 { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Roboto Mono", monospace; font-size: 13.5px; letter-spacing: -.04em; line-height: 1.25; }
.hhp4 b { background: #f0b429; color: #1a1400; padding: 0 .16em; border-radius: .14em; }
.hhp4 i { display: inline-block; width: .12em; height: 1em; margin-left: .08em; vertical-align: -.14em; background: var(--brand); }
.hhp5 small { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--body); }
.hhp5 b { display: block; margin: 1px 0 2px; font: 400 50px/.95 var(--num-font); letter-spacing: .01em; color: #f0b429; -webkit-text-stroke: 1px #c98f0a; }
.hhp6 { display: flex; flex-wrap: wrap; gap: 4px 3px; font-size: 11.5px; line-height: 1; }
.hhp6 i { padding: .3em .45em .34em; border-radius: .45em; color: #fff; background: var(--c); box-shadow: 0 2px 0 var(--d); }
.hhp6 .l { --c: #0a8ec2; --d: #06678e; } .hhp6 .r { --c: #7c5ce6; --d: #4c2fb8; } .hhp6 .w { --c: #db2777; --d: #9d174d; } .hhp6 .s { --c: #c96a04; --d: #8a4b00; }
.hhp6 .k { --c: #f0b429; --d: #c98f0a; color: #1a1400; }
.hhp10 b { display: inline-block; padding: 0 .28em; border: 2px solid #e11d48; border-radius: 50%; transform: rotate(-4deg); }
.hhp10 em { display: block; margin-top: 7px; font: 700 13px/1 "Segoe Script", "Bradley Hand", cursive; color: #e11d48; transform: rotate(-3deg); transform-origin: 0 50%; }
html.dark .hhp10 b { border-color: #fb7185; } html.dark .hhp10 em { color: #fb7185; }
html.lk-lite .lk-hh-c:hover { transform: none; }
@media (max-width: 560px) {
  .lk-hh { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lk-hh-c { padding: 7px; gap: 6px; }
  .lk-hh-pic { height: 92px; padding: 8px; }
  .hhp { font-size: 13.5px; } .hhp4 { font-size: 11.5px; } .hhp5 b { font-size: 42px; } .hhp6 { font-size: 10px; }
  .lk-hh-t { padding: 0 2px 22px; } .lk-hh-t small { display: none; }
  .lk-hh-c .lk-tick { bottom: 7px; right: 50%; margin-right: -10px; }
}
/* Look by section: always open, a small picture of the section in each look */
.lk-by2-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.lk-by2-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--sub); border: 1px solid var(--line2); min-width: 0; }
.lk-by2-name { font-size: 14px; font-weight: 700; color: var(--ink); min-width: 0; }
.lk-by2-opts { display: flex; align-items: center; gap: 6px; flex: none; }
.lk-by2-opts label { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lk-by2-same span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 11px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 700; color: var(--body); }
.lk-by2-same input:checked + span { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.lk-by2-pic span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px; border-radius: 11px; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.lk-by2-pic img { display: block; width: 54px; height: 90px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.lk-by2-pic b { font-size: 10.5px; font-weight: 800; color: var(--mute); }
.lk-by2-pic:hover span { transform: translateY(-2px); }
.lk-by2-pic input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.lk-by2-pic input:checked + span b { color: var(--brand-ink); }
.lk-by2-opts input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
@media (max-width: 860px) { .lk-by2-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lk-by2-row { flex-wrap: wrap; gap: 6px; padding: 10px; } .lk-by2-name { flex: 1 1 100%; } .lk-by2-opts { width: 100%; justify-content: space-between; } .lk-by2-same { flex: 1; } .lk-by2-same span { width: 100%; min-height: 96px; } }
@media (max-width: 560px) {
  .lk-set { padding: 18px 14px 16px; }
  .lk-set-ic { width: 44px; height: 44px; }
  .lk-th, .lk-fs { gap: 8px; }
  .lk-th-c, .lk-fs-c { padding: 7px; gap: 6px; }
  .lk-th-pic, .lk-fs-aa { height: 70px; }
  .lk-th-t, .lk-fs-t { padding: 0 2px 22px; }
  .lk-th-t small, .lk-fs-t small { display: none; }
  .lk-th-c .lk-tick, .lk-fs-c .lk-tick { bottom: 7px; right: 50%; margin-right: -10px; }
}
html.lk-lite .lk-th-c:hover, html.lk-lite .lk-fs-c:hover, html.lk-lite .lk-by2-pic:hover span { transform: none; }

@keyframes lkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lkUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lk-ui *, .lk-ui *::before, .lk-ui *::after, .lk-ui { animation: none !important; transition: none !important; }
}
@media print { .lk-top, .lk-bottom, .lk-sheet, .lk-scrim, .lk-pop, .lk-foot { display: none !important; } }

/* ── 9. LITE MODE (6 Nov 2026, round 2 — owner's rule #10) ─────────────
   <html class="lk-lite"> on weak devices (2 GB memory or less, 2 cores or less, "Save data"): see look_lite_script() in
   includes/look.php. No glass blur, no night star pattern, no entrance animations, no hover lifts. Same layout. */
html.lk-lite .lk-top, html.lk-lite .lk-bottom { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--glass-solid); }
html.lk-lite body.lk-ui { background-image: none; }
html.lk-lite .lk-ui *, html.lk-lite .lk-ui *::before, html.lk-lite .lk-ui *::after { animation: none !important; transition: none !important; }
html.lk-lite .lk-ui .sd-card, html.lk-lite .lk-ui .tc { box-shadow: none; }
html.lk-lite .lk-btn:hover, html.lk-lite .lk-choice:hover, html.lk-lite :where(.lk-ui) .sd-btn:hover { transform: none; }


/* =====================================================================
   PART 2 — PAGE PARTS (from the approved preview, 6 Nov 2026)
   Cards (.sd-card), heroes (.sd-hero), rings (.sd-ring), stat tiles (.sd-stat),
   test cards (.sd-launch / .tc), chips (.sd-chip), rows, bars … — the same class
   names as assets/student-ui.css, but ONLY inside .lk-ui (":where(.lk-ui)").
   ===================================================================== */
/* ── 6. LAYOUT + CARDS (student-ui.css §5) ───────────────────────── */
:where(.lk-ui) .sd-main { max-width: 1200px; margin: 0 auto; padding: 24px 0 56px; display: flex; flex-direction: column; gap: 18px; }
:where(.lk-ui) .sd-g2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
:where(.lk-ui) .sd-g2 > * { min-width: 0; }
:where(.lk-ui) .sd-g2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { :where(.lk-ui) .sd-g2, :where(.lk-ui) .sd-g2.even { grid-template-columns: 1fr; } }
@media (max-width: 760px) { :where(.lk-ui) .sd-main { padding: 14px 0 40px; gap: 14px; } }
:where(.lk-ui) .sd-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 760px) { :where(.lk-ui) .sd-card { padding: 16px; } }
:where(.lk-ui) .sd-card h2 { margin: 0; font-size: 17px; font-weight: 800; }
:where(.lk-ui) .sd-card h2.sd-lab, :where(.lk-ui) h2.sd-lab { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; margin: 0; }
:where(.lk-ui) .sd-sub { margin: 4px 0 14px; font-size: 13.5px; color: var(--mute); }
:where(.lk-ui) .sd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
:where(.lk-ui) .sd-link { font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--brand); }
:where(.lk-ui) .sd-lift { transition: transform .2s ease, box-shadow .2s ease; }
:where(.lk-ui) .sd-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
:where(.lk-ui) .sd-foot { text-align: center; color: var(--mute); font-size: 12.5px; margin: 6px 0 0; }
:where(.lk-ui) .sec-lab { padding-left: 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
:where(.lk-ui) .sec-lab span:last-child { font-family: Inter, sans-serif; letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 600; }

/* buttons and chips (§6) */
:where(.lk-ui) .sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--brand); color: var(--btn-ink); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .15s, background-color .15s, filter .15s; white-space: nowrap; }
:where(.lk-ui) .sd-btn:hover { background: var(--brand-dk); transform: translateY(-2px); }
:where(.lk-ui) .sd-btn.sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
:where(.lk-ui) .sd-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
:where(.lk-ui) .sd-btn.ghost:hover { background: var(--brand-soft); }
:where(.lk-ui) .sd-btn.gold { background: var(--gold-fill); color: var(--gold-ink); }
:where(.lk-ui) .sd-btn.gold:hover { filter: brightness(1.05); background: var(--gold-fill); }
:where(.lk-ui) .sd-btn.k { background: var(--k); color: var(--btn-ink); } :where(.lk-ui) .sd-btn.k:hover { filter: brightness(1.08); }
:where(.lk-ui) .sd-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
:where(.lk-ui) .sd-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
:where(.lk-ui) .sd-chip .n { opacity: .7; font-weight: 600; }
:where(.lk-ui) .sd-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
:where(.lk-ui) .sd-chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
:where(.lk-ui) .sd-chips.scroll::-webkit-scrollbar { display: none; }
:where(.lk-ui) .sd-band { display: inline-block; min-width: 46px; text-align: center; font-weight: 800; border-radius: 10px; padding: 4px 9px; font-size: 14px; font-variant-numeric: tabular-nums; }
:where(.lk-ui) .sd-band.hi { background: var(--ok-soft); color: var(--ok); } :where(.lk-ui) .sd-band.mid { background: var(--l-soft); color: var(--l-ink); } :where(.lk-ui) .sd-band.lo { background: var(--s-soft); color: var(--s-ink); }
:where(.lk-ui) .sd-sk { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; background: var(--ks); color: var(--ki); }
:where(.lk-ui) .sd-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: 1px; }
:where(.lk-ui) .sd-tag.gold { background: var(--gold-soft); color: var(--gold-txt); }
:where(.lk-ui) .eg { font-family: Inter, sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-transform: none; padding: 1px 7px; border-radius: 99px; border: 1px dashed var(--line); color: var(--mute); vertical-align: 1px; white-space: nowrap; }

/* skill keys: --k colour, --ks soft, --ki ink, --kn the big number colour */
:where(.lk-ui) .L { --k: var(--l); --ks: var(--l-soft); --ki: var(--l-ink); --kn: var(--l-num); }
:where(.lk-ui) .R { --k: var(--r); --ks: var(--r-soft); --ki: var(--r-ink); --kn: var(--r-num); }
:where(.lk-ui) .W { --k: var(--w); --ks: var(--w-soft); --ki: var(--w-ink); --kn: var(--w-num); }
:where(.lk-ui) .S { --k: var(--s); --ks: var(--s-soft); --ki: var(--s-ink); --kn: var(--s-num); }
:where(.lk-ui) .M { --k: var(--gold-fill); --ks: var(--gold-soft); --ki: var(--gold-txt); --kn: var(--gold-num); }
:where(.lk-ui) .G { --k: var(--ok); --ks: var(--ok-soft); --ki: var(--ok); --kn: var(--ok-num); }
:where(.lk-ui) .B { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink); --kn: var(--brand); }

/* ── 7. HERO = the dashboard's "command deck" (§8) ────────────────── */
:where(.lk-ui) .sd-hero { position: relative; overflow: hidden; background: var(--hero-bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; box-shadow: var(--shadow); }
:where(.lk-ui) .sd-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,71,.16), transparent 62%); pointer-events: none; }
:where(.lk-ui) .sd-hero.k::before { background: radial-gradient(circle, color-mix(in srgb, var(--k) 20%, transparent), transparent 62%); }
:where(.lk-ui) .sd-hero > * { position: relative; min-width: 0; }
:where(.lk-ui) .sd-hero h1 { margin: 6px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
:where(.lk-ui) .sd-hero h1 em { font-style: normal; color: var(--kn, var(--gold-num)); }
:where(.lk-ui) .sd-hero .mot { margin: 0; color: var(--body); font-size: 15px; max-width: 600px; }
:where(.lk-ui) .sd-hero-l { display: flex; flex-direction: column; gap: 4px; }
:where(.lk-ui) .sd-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
:where(.lk-ui) .sd-ringbox { display: flex; align-items: center; gap: 18px; }
:where(.lk-ui) .sd-ring { position: relative; width: 156px; height: 156px; flex: none; }
:where(.lk-ui) .sd-ring svg { display: block; width: 100%; height: 100%; }
:where(.lk-ui) .sd-ring .val, :where(.lk-ui) .ring-val { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
:where(.lk-ui) .sd-ring .track { stroke: var(--ring-track); }
:where(.lk-ui) .sd-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
:where(.lk-ui) .sd-ring .num b { font-family: var(--num-font); font-weight: 400; font-size: 46px; line-height: 1; color: var(--kn, var(--gold-num)); letter-spacing: .01em; text-shadow: var(--num-glow); }
:where(.lk-ui) .sd-ring .num b small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; color: var(--mute); text-shadow: none; margin-left: 2px; }
:where(.lk-ui) .sd-ring .num .sd-lab { margin-top: 6px; font-size: 9.5px; }
:where(.lk-ui) .sd-ringside p { margin: 0; }
:where(.lk-ui) .sd-ringside .big { font-family: var(--num-font); font-size: 30px; line-height: 1; margin-top: 6px; display: block; }
:where(.lk-ui) .sd-ringside .hint { margin-top: 4px; font-size: 12px; color: var(--mute); }
:where(.lk-ui) .sd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
:where(.lk-ui) .sd-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
:where(.lk-ui) .sd-stat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--sub); color: var(--ink); display: block; min-width: 0; position: relative; overflow: hidden; text-decoration: none; }
:where(.lk-ui) .sd-stat .v { display: block; font-family: var(--num-font); font-weight: 400; font-size: 30px; line-height: 1; margin-top: 6px; color: var(--kn, var(--ink)); }
:where(.lk-ui) .sd-stat .v small { font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 700; color: var(--mute); margin-left: 4px; letter-spacing: 0; }
:where(.lk-ui) .sd-stat .u { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; }
:where(.lk-ui) .sd-stat .sd-lab { display: flex; align-items: center; gap: 6px; }
:where(.lk-ui) .sd-stat.lit::after { content: ""; position: absolute; right: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,179,71,.35), transparent 70%); }
:where(.lk-ui) .sd-cont { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(240,180,41,.45); background: var(--sub); }
:where(.lk-ui) .sd-cont .sd-sk { width: 38px; height: 38px; }
:where(.lk-ui) .sd-cont .txt { flex: 1; min-width: 0; }
:where(.lk-ui) .sd-cont .txt .sd-lab { display: block; font-size: 9.5px; margin-bottom: 2px; color: var(--gold-txt); }
:where(.lk-ui) .sd-cont .txt b { display: block; font-size: 14.5px; }
:where(.lk-ui) .sd-cont .txt span.s { font-size: 12.5px; color: var(--mute); display: block; }
:where(.lk-ui) .sd-flame { animation: sdFlame 1.6s ease-in-out infinite; transform-origin: 50% 80%; display: inline-flex; }
@media (max-width: 1000px) { :where(.lk-ui) .sd-hero { grid-template-columns: 1fr; } :where(.lk-ui) .sd-ringbox { order: -1; } }
@media (max-width: 760px) {
  :where(.lk-ui) .sd-hero { padding: 18px; gap: 14px; border-radius: 20px; }
  :where(.lk-ui) .sd-hero h1 { font-size: 24px; margin: 2px 0 4px; }
  :where(.lk-ui) .sd-hero .mot { font-size: 14px; }
  :where(.lk-ui) .sd-ring { width: 124px; height: 124px; } :where(.lk-ui) .sd-ring .num b { font-size: 38px; }
  :where(.lk-ui) .sd-stats, :where(.lk-ui) .sd-stats.four { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); } :where(.lk-ui) .sd-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(.lk-ui) .sd-stat { padding: 10px 11px; } :where(.lk-ui) .sd-stat .v { font-size: 24px; }
  :where(.lk-ui) .sd-stat .u { font-size: 11px; line-height: 1.3; }
  :where(.lk-ui) .sd-stat .sd-lab { letter-spacing: .06em; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  :where(.lk-ui) .sd-stat .sd-lab svg { display: none; }
  :where(.lk-ui) .sd-acts .sd-btn { flex: 1 1 auto; }
}
@media (max-width: 480px) { :where(.lk-ui) .sd-ring { width: 112px; height: 112px; } :where(.lk-ui) .sd-ring .num b { font-size: 34px; } :where(.lk-ui) .sd-ring .num .sd-lab { font-size: 8.5px; letter-spacing: .12em; } :where(.lk-ui) .sd-ringside .big { font-size: 26px; } }
@media (max-width: 480px) { :where(.lk-ui) .sd-cont { flex-wrap: wrap; } :where(.lk-ui) .sd-cont .sd-btn { width: 100%; } :where(.lk-ui) .sd-cont .sd-sk { display: none; } }

/* ── 8. QUICK LAUNCH cards (§9) — reused as the test cards ───────── */
:where(.lk-ui) .sd-launch { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
:where(.lk-ui) :where(.sd-launch a, :where(.lk-ui) .tc) { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink); --kn: var(--brand); }
:where(.lk-ui) .sd-launch a, :where(.lk-ui) .tc { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 128px; min-width: 0; cursor: pointer; }
:where(.lk-ui) .sd-launch a::before, :where(.lk-ui) .tc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k); }
:where(.lk-ui) .sd-launch a::after, :where(.lk-ui) .tc::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--ks); opacity: .9; transition: transform .25s; }
:where(.lk-ui) .sd-launch a:hover::after, :where(.lk-ui) .tc:hover::after { transform: scale(1.4); }
:where(.lk-ui) .sd-launch a > *, :where(.lk-ui) .tc > * { position: relative; z-index: 1; }
:where(.lk-ui) .sd-launch .ic, :where(.lk-ui) .tc .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--ks); color: var(--ki); display: grid; place-items: center; flex: none; }
:where(.lk-ui) .sd-launch .nm { font-weight: 800; font-size: 14px; }
:where(.lk-ui) .sd-launch .band { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
:where(.lk-ui) .sd-launch .band b { font-family: var(--num-font); font-weight: 400; font-size: 26px; line-height: 1; color: var(--kn); }
:where(.lk-ui) .sd-launch .band small { font-size: 11px; color: var(--mute); font-weight: 600; }
:where(.lk-ui) .go, :where(.lk-ui) .sd-launch a > .go, :where(.lk-ui) .tc > .go { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--k); color: #0a0820; display: grid; place-items: center; transition: transform .2s; z-index: 1; }
:where(.lk-ui) a:hover > .go, :where(.lk-ui) .tc:hover > .go { transform: translateX(3px); }
@media (max-width: 1000px) { :where(.lk-ui) .sd-launch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { :where(.lk-ui) .sd-launch { gap: 10px; } :where(.lk-ui) .sd-launch a { padding: 13px 12px 12px; min-height: 112px; gap: 8px; } :where(.lk-ui) .sd-launch .ic { width: 32px; height: 32px; } :where(.lk-ui) .sd-launch .band b { font-size: 22px; } :where(.lk-ui) .sd-launch .band small { display: none; } :where(.lk-ui) .go { width: 26px; height: 26px; right: 10px; bottom: 10px; } }

/* test cards */
:where(.lk-ui) .tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
:where(.lk-ui) .tgrid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
@media (max-width: 760px) { :where(.lk-ui) .tgrid { gap: 10px; } }
:where(.lk-ui) .tc { padding: 16px 18px 16px; gap: 8px; }
:where(.lk-ui) .tc .hd { display: flex; align-items: center; gap: 12px; }
:where(.lk-ui) .tc .hd .nmb { min-width: 0; flex: 1; }
:where(.lk-ui) .tc .hd .sd-lab { display: block; font-size: 9.5px; color: var(--ki); }
:where(.lk-ui) .tc .no { font-family: var(--num-font); font-size: 34px; line-height: 1; color: var(--kn); min-width: 46px; }
:where(.lk-ui) .tc h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
:where(.lk-ui) .tc .meta { font-size: 12.5px; color: var(--mute); font-weight: 600; }
:where(.lk-ui) .tc .time { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--body); padding: 3px 8px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
:where(.lk-ui) .tc .parts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 5px; }
:where(.lk-ui) .tc .parts li { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--body); min-width: 0; }
:where(.lk-ui) .tc .parts li i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--ks); color: var(--ki); font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; transform: translateY(2px); }
:where(.lk-ui) .tc .parts li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.lk-ui) .tc .parts li small { margin-left: auto; flex: none; color: var(--mute); font-weight: 600; font-size: 11.5px; font-variant-numeric: tabular-nums; }
:where(.lk-ui) .tc .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; padding-right: 36px; }
:where(.lk-ui) .tc .tags span { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); color: var(--body); white-space: nowrap; }
:where(.lk-ui) .tc .ft { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; padding-right: 36px; min-height: 28px; font-size: 12.5px; color: var(--mute); font-weight: 600; flex-wrap: wrap; }
:where(.lk-ui) .tc .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; color: var(--body); margin: 0; }
:where(.lk-ui) .tc .task { border-radius: 12px; background: var(--sub); border: 1px solid var(--line); padding: 9px 11px; }
:where(.lk-ui) .tc .task .sd-lab { font-size: 9px; color: var(--ki); display: flex; justify-content: space-between; gap: 6px; }
:where(.lk-ui) .tc .task .ty { display: block; font-size: 12.5px; font-weight: 800; color: var(--ki); margin: 2px 0 3px; line-height: 1.3; }
:where(.lk-ui) .tc .cue { border: 1.5px dashed color-mix(in srgb, var(--k) 55%, transparent); border-radius: 12px; padding: 10px 12px; background: var(--ks); }
:where(.lk-ui) .tc .cue p { margin: 3px 0 0; font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--ink); }
:where(.lk-ui) .tc .pic { width: 64px; height: 64px; border-radius: 16px; background: var(--ks); display: grid; place-items: center; flex: none; overflow: hidden; }
:where(.lk-ui) .tc .pic img { width: 44px; height: 44px; display: block; }
:where(.lk-ui) .tc .cover { border-radius: 12px; overflow: hidden; aspect-ratio: 240 / 150; background: var(--sub); border: 1px solid var(--line); }
:where(.lk-ui) .tc .cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
:where(.lk-ui) .tc .tbtn { margin-left: auto; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--body); background: var(--card); }

/* toolbar */
:where(.lk-ui) .tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
:where(.lk-ui) .tools .grow { flex: 1 1 260px; min-width: 0; }
:where(.lk-ui) .sd-search { display: flex; align-items: center; gap: 8px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); padding: 0 12px; color: var(--mute); min-width: 0; }
:where(.lk-ui) .sd-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); width: 100%; min-width: 0; }
:where(.lk-ui) .sd-search:focus-within { border-color: var(--brand); }
:where(.lk-ui) .sd-tablist { display: inline-flex; gap: 6px; background: var(--card); border: 1px solid var(--line); padding: 6px; border-radius: 18px; box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; }
:where(.lk-ui) .sd-tab { height: 44px; padding: 0 18px; border-radius: 13px; border: 0; background: transparent; font-weight: 800; font-size: 14.5px; color: var(--body); cursor: pointer; white-space: nowrap; }
:where(.lk-ui) .sd-tab[aria-selected="true"] { background: var(--brand); color: var(--btn-ink); }
:where(.lk-ui) .sd-tab small { font-weight: 700; opacity: .75; margin-left: 4px; }
@media (max-width: 480px) { :where(.lk-ui) .sd-tablist { display: flex; } :where(.lk-ui) .sd-tab { flex: 1; padding: 0 10px; font-size: 13.5px; } }

/* ── 9. Skill tiles, rows, bars, heat, badges (§11–15) ───────────── */
:where(.lk-ui) .sd-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:where(.lk-ui) .sd-skills.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { :where(.lk-ui) .sd-skills.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { :where(.lk-ui) .sd-skills { gap: 10px; } }
:where(.lk-ui) .sd-skill { display: block; border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--sub); position: relative; overflow: hidden; min-width: 0; }
:where(.lk-ui) .sd-skill::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--k); }
:where(.lk-ui) .sd-skill .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
:where(.lk-ui) .sd-skill .nm { font-family: var(--lab-font); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ki); }
:where(.lk-ui) .sd-skill .dl { font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 1px 8px; background: var(--ok-soft); color: var(--ok); }
:where(.lk-ui) .sd-skill .mid { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; gap: 8px; }
:where(.lk-ui) .sd-skill .mid b { font-family: var(--num-font); font-weight: 400; font-size: 34px; line-height: 1; }
:where(.lk-ui) .sd-skill .bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
:where(.lk-ui) .sd-skill .bars i { width: 7px; background: var(--k); border-radius: 3px; opacity: .4; transform-origin: bottom; animation: sdGrow .8s cubic-bezier(.2,.8,.2,1) both; }
:where(.lk-ui) .sd-skill .bars i:last-child { opacity: 1; }
:where(.lk-ui) .sd-skill .meta { display: block; font-size: 12.5px; color: var(--mute); margin-top: 6px; }
:where(.lk-ui) .sd-skill p { margin: 6px 0 0; font-size: 13px; color: var(--body); }
:where(.lk-ui) .sd-rows { list-style: none; margin: 0; padding: 0; }
:where(.lk-ui) .sd-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line2); }
:where(.lk-ui) .sd-row:last-child { border-bottom: 0; }
:where(.lk-ui) .sd-row .ti { flex: 1; min-width: 0; }
:where(.lk-ui) .sd-row .ti b { display: block; font-size: 14.5px; }
:where(.lk-ui) .sd-row .ti span { font-size: 13px; color: var(--mute); }
:where(.lk-ui) .sd-row .chev { color: var(--mute); }
:where(.lk-ui) .sd-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--k, var(--brand)); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
:where(.lk-ui) .sd-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
:where(.lk-ui) .sd-bars .t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
:where(.lk-ui) .sd-bars .t small { color: var(--mute); font-weight: 600; }
:where(.lk-ui) .sd-bars .tr { height: 8px; background: var(--line2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
:where(.lk-ui) .sd-bars .tr i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); background: var(--k, var(--brand)); }
:where(.lk-ui) .p-lo { color: var(--bad); } :where(.lk-ui) .p-mid { color: var(--s-ink); } :where(.lk-ui) .p-hi { color: var(--ok); }
:where(.lk-ui) .b-lo { background: var(--bad) !important; } :where(.lk-ui) .b-mid { background: var(--s) !important; } :where(.lk-ui) .b-hi { background: var(--ok) !important; }
:where(.lk-ui) .sd-heatwrap { overflow-x: auto; padding-bottom: 4px; }
:where(.lk-ui) .sd-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; gap: 4px; }
:where(.lk-ui) .sd-heat i { display: block; width: 14px; height: 14px; border-radius: 4px; background: var(--line2); animation: sdFade .35s ease both; --hc: var(--brand); }
:where(.lk-ui) .sd-heat i.L { --hc: var(--l); } :where(.lk-ui) .sd-heat i.R { --hc: var(--r); } :where(.lk-ui) .sd-heat i.W { --hc: var(--w); } :where(.lk-ui) .sd-heat i.S { --hc: var(--s); } :where(.lk-ui) .sd-heat i.G { --hc: var(--ok); }
:where(.lk-ui) .sd-heat i.l1 { background: var(--hc); opacity: .35; } :where(.lk-ui) .sd-heat i.l2 { background: var(--hc); opacity: .65; } :where(.lk-ui) .sd-heat i.l3 { background: var(--hc); opacity: 1; }
:where(.lk-ui) .sd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--mute); }
:where(.lk-ui) .sd-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: var(--k); }
:where(.lk-ui) .sd-kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
:where(.lk-ui) .sd-kv b { display: block; font-family: var(--num-font); font-weight: 400; font-size: 24px; line-height: 1.1; }
:where(.lk-ui) .sd-kv span { color: var(--mute); font-size: 12px; font-weight: 600; }
:where(.lk-ui) .sd-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
:where(.lk-ui) .sd-chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease .3s; }
:where(.lk-ui) .sd-chart .draw.in { stroke-dashoffset: 0; }
:where(.lk-ui) .sd-badges { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { :where(.lk-ui) .sd-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { :where(.lk-ui) .sd-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:where(.lk-ui) .sd-bdg { border: 1px dashed var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; color: var(--mute); }
:where(.lk-ui) .sd-bdg .bi { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 6px; background: var(--sub); display: grid; place-items: center; border: 1px solid var(--line); }
:where(.lk-ui) .sd-bdg b { display: block; font-size: 12.5px; color: var(--body); }
:where(.lk-ui) .sd-bdg small { display: block; font-size: 11px; margin-top: 2px; line-height: 1.3; }
:where(.lk-ui) .sd-bdg.on { border: 1px solid rgba(255,201,71,.45); background: var(--gold-soft); color: var(--gold-txt); }
:where(.lk-ui) .sd-bdg.on .bi { background: var(--gold-fill); color: var(--gold-ink); border-color: transparent; box-shadow: 0 0 18px rgba(255,201,71,.35); }
:where(.lk-ui) .sd-bdg.on b { color: var(--ink); }
:where(.lk-ui) .sd-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
:where(.lk-ui) .sd-quick a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 14px 16px; }
:where(.lk-ui) .sd-quick b { display: block; font-size: 14.5px; } :where(.lk-ui) .sd-quick span.s { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
@media (max-width: 760px) { :where(.lk-ui) .sd-quick { grid-template-columns: 1fr 1fr; gap: 10px; } :where(.lk-ui) .sd-quick a.sd-card { padding: 12px; align-items: flex-start; flex-direction: column; gap: 8px; } }
:where(.lk-ui) .gquick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
:where(.lk-ui) .gquick a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sub); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
:where(.lk-ui) .gquick a span { grid-row: span 2; font-size: 22px; } :where(.lk-ui) .gquick a b { font-size: 14px; } :where(.lk-ui) .gquick a small { color: var(--mute); font-weight: 600; font-size: 12px; }
:where(.lk-ui) .gquick a.hot { border-color: var(--gold-fill); background: var(--gold-soft); }
:where(.lk-ui) .gquick a:hover { border-color: var(--ok); }
@media (max-width: 480px) { :where(.lk-ui) .gquick { grid-template-columns: 1fr 1fr; } }

/* grammar topic rows (dashboard .sd-gram li a) */
:where(.lk-ui) .gtopics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
:where(.lk-ui) .gtopics a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sub); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; min-width: 0; transition: border-color .15s, transform .2s ease, box-shadow .2s ease; }
:where(.lk-ui) .gtopics a:hover { border-color: var(--gc); transform: translateY(-3px); box-shadow: var(--shadow-up); }
:where(.lk-ui) .gtopics .em { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: none; background: color-mix(in srgb, var(--gc) 16%, transparent); }
:where(.lk-ui) .gtopics .tt { flex: 1; min-width: 0; line-height: 1.3; }
:where(.lk-ui) .gtopics .tt small { display: block; font-size: 11.5px; color: var(--mute); font-weight: 700; margin-top: 2px; }
:where(.lk-ui) .gtopics .st { color: var(--line); white-space: nowrap; font-size: 13px; letter-spacing: 1px; } :where(.lk-ui) .gtopics .st i { font-style: normal; color: var(--gold-fill); }
:where(.lk-ui) .ghead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
:where(.lk-ui) .ghead .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--gc); }
:where(.lk-ui) .ghead h2 { font-size: 17px; }
:where(.lk-ui) .ghead .sd-lab { color: var(--gc); }
:where(.lk-ui) .gc-tenses { --gc: #2F5FE8; } :where(.lk-ui) .gc-core { --gc: #12A150; } :where(.lk-ui) .gc-upper { --gc: #7C3AED; } :where(.lk-ui) .gc-ielts { --gc: #E8590C; }
html.dark :where(.lk-ui) .gc-tenses { --gc: #7d9bff; } html.dark :where(.lk-ui) .gc-core { --gc: #4ade80; } html.dark :where(.lk-ui) .gc-upper { --gc: #b794ff; } html.dark :where(.lk-ui) .gc-ielts { --gc: #ff9a5c; }

/* word card */
:where(.lk-ui) .wotd .w { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
:where(.lk-ui) .wotd .w h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
:where(.lk-ui) .wotd .ipa { color: var(--mute); font-size: 14px; }
:where(.lk-ui) .wotd .def { margin: 8px 0 0; font-size: 15px; }
:where(.lk-ui) .wotd .ex { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sub); border-left: 3px solid var(--gold-fill); font-size: 14px; color: var(--body); font-style: italic; }
:where(.lk-ui) .wotd .col { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
:where(.lk-ui) .wotd .col span { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }
:where(.lk-ui) .say { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; }
/* book shelf */
:where(.lk-ui) .shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
:where(.lk-ui) .book { display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
:where(.lk-ui) .book img { width: 64px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6), 0 0 0 1px var(--line); flex: none; }
:where(.lk-ui) .book .bk { width: 64px; aspect-ratio: 3 / 4; border-radius: 8px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--bc) 18%, transparent); color: var(--ink); }
:where(.lk-ui) .book .bk b { font-family: var(--num-font); font-size: 26px; font-weight: 400; color: var(--ink); }
:where(.lk-ui) .book .tt { min-width: 0; flex: 1; }
:where(.lk-ui) .book .tt b { display: block; font-size: 14.5px; line-height: 1.3; }
:where(.lk-ui) .book .tt span { display: block; font-size: 12.5px; color: var(--mute); }
:where(.lk-ui) .book .prog { height: 6px; border-radius: 99px; background: var(--line2); margin-top: 8px; overflow: hidden; }
:where(.lk-ui) .book .prog i { display: block; height: 100%; width: 0; background: var(--bc); border-radius: 99px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
:where(.lk-ui) .book.soon { border-style: dashed; box-shadow: none; background: transparent; }
:where(.lk-ui) .book.soon .tt b { color: var(--body); }

/* photo frames: real photos appear here on the live site */
:where(.lk-ui) .pnote { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(240,180,41,.45); font-size: 13.5px; font-weight: 600; color: var(--ink); }
:where(.lk-ui) .pnote svg { color: var(--gold-txt); flex: none; }
:where(.lk-ui) .lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: 18px 14px; }
@media (max-width: 480px) { :where(.lk-ui) .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
:where(.lk-ui) .litem { text-decoration: none; color: var(--ink); display: block; min-width: 0; }
:where(.lk-ui) .frame { aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; background: linear-gradient(135deg, var(--sub), var(--line2)); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18,16,46,.06), 0 14px 26px -16px rgba(18,16,46,.45); display: grid; place-items: center; color: var(--mute); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
:where(.lk-ui) .frame::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.08), transparent); }
:where(.lk-ui) .frame .ph { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-align: center; padding: 10px; }
:where(.lk-ui) .litem:hover .frame { transform: translateY(-3px); box-shadow: var(--shadow-up); }
:where(.lk-ui) .frame .rt { position: absolute; top: 8px; right: 8px; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); }
:where(.lk-ui) .frame .ty { position: absolute; top: 8px; left: 12px; }
:where(.lk-ui) .litem .cap { margin-top: 8px; }
:where(.lk-ui) .litem .cap b { display: block; font-size: 14px; line-height: 1.3; }
:where(.lk-ui) .litem .cap span { display: block; font-size: 12.5px; color: var(--mute); }
:where(.lk-ui) .frame.a4 { aspect-ratio: 1 / 1.41; border-radius: 10px; }

/* podium */
:where(.lk-ui) .pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
:where(.lk-ui) .pod .p { text-align: center; padding: 16px 10px 14px; position: relative; }
:where(.lk-ui) .pod .p.first { padding-top: 26px; border-color: rgba(240,180,41,.55); background: linear-gradient(180deg, var(--gold-soft), var(--card) 70%); }
:where(.lk-ui) .pod .av { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px; background: var(--k); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--k); }
:where(.lk-ui) .pod .first .av { width: 66px; height: 66px; font-size: 22px; }
:where(.lk-ui) .pod .rk { position: absolute; top: 10px; left: 10px; font-family: var(--num-font); font-size: 20px; color: var(--mute); }
:where(.lk-ui) .pod .first .rk { color: var(--gold-num); }
:where(.lk-ui) .pod b { display: block; font-size: 14px; }
:where(.lk-ui) .pod .pts { font-family: var(--num-font); font-size: 26px; line-height: 1.1; color: var(--kn); display: block; margin-top: 4px; }
:where(.lk-ui) .pod .pts small { font-family: Inter, sans-serif; font-size: 11px; color: var(--mute); font-weight: 700; margin-left: 3px; }
:where(.lk-ui) .lbrow .rk { width: 32px; font-family: var(--num-font); font-size: 18px; color: var(--mute); text-align: center; flex: none; }
:where(.lk-ui) .lbrow .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; background: var(--k); flex: none; }
:where(.lk-ui) .lbrow .pt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
:where(.lk-ui) .lbrow.me { background: var(--gold-soft); border-radius: 12px; border-bottom-color: transparent; padding-left: 8px; padding-right: 8px; }

/* mock paper rows */
:where(.lk-ui) .paper { display: grid; gap: 10px; }
:where(.lk-ui) .prow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--sub); position: relative; overflow: hidden; }
:where(.lk-ui) .prow::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--k); }
:where(.lk-ui) .prow .n { font-family: var(--num-font); font-size: 28px; color: var(--kn); width: 26px; text-align: center; flex: none; }
:where(.lk-ui) .prow .tt { flex: 1; min-width: 0; }
:where(.lk-ui) .prow .tt b { display: block; font-size: 15px; }
:where(.lk-ui) .prow .tt small { font-family: var(--lab-font); font-size: 9.5px; letter-spacing: .14em; color: var(--mute); font-weight: 700; }
:where(.lk-ui) .prow .pick { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); font-weight: 700; }
:where(.lk-ui) .prow .pick input { width: 64px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; text-align: center; }
:where(.lk-ui) .checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
:where(.lk-ui) .check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--sub); color: var(--ink); text-align: left; cursor: pointer; }
:where(.lk-ui) .check .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; transition: background-color .3s; }
:where(.lk-ui) .check.ok .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); animation: sdPop .35s ease-out both; }
:where(.lk-ui) .check b { display: block; font-size: 14px; } :where(.lk-ui) .check small { display: block; font-size: 12px; color: var(--mute); }

/* settings */
:where(.lk-ui) .setlist { list-style: none; margin: 0; padding: 0; }
:where(.lk-ui) .setlist li { border-bottom: 1px solid var(--line2); }
:where(.lk-ui) .setlist li:last-child { border-bottom: 0; }
:where(.lk-ui) .setlist .rowbtn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 4px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
:where(.lk-ui) .setlist .rowbtn .sd-sk { width: 36px; height: 36px; border-radius: 10px; }
:where(.lk-ui) .setlist .rowbtn b { display: block; font-size: 14.5px; } :where(.lk-ui) .setlist .rowbtn span.s { display: block; font-size: 12.5px; color: var(--mute); }
:where(.lk-ui) .setlist .rowbtn .tx { flex: 1; min-width: 0; }
:where(.lk-ui) .setlist .rowbtn.bad b { color: var(--bad); }
:where(.lk-ui) .setpanel { padding: 4px 4px 16px 52px; display: grid; gap: 12px; }
@media (max-width: 480px) { :where(.lk-ui) .setpanel { padding-left: 4px; } }
:where(.lk-ui) .setpanel label.f { display: block; font-size: 12.5px; font-weight: 700; color: var(--mute); margin-bottom: 6px; }
:where(.lk-ui) .sel { height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; padding: 0 10px; max-width: 100%; width: 260px; }

/* modal (§16) */
:where(.lk-ui) .sd-modal { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: none; align-items: flex-end; justify-content: center; }
:where(.lk-ui) .sd-modal.open { display: flex; }
:where(.lk-ui) .sd-modal .box { background: var(--card); border: 1px solid var(--line); width: 100%; max-width: 440px; border-radius: 22px 22px 0 0; padding: 22px; animation: sdUp .25s ease both; text-align: center; }
@media (min-width: 640px) { :where(.lk-ui) .sd-modal { align-items: center; padding: 16px; } :where(.lk-ui) .sd-modal .box { border-radius: 22px; } }
:where(.lk-ui) .sd-modal h3 { margin: 6px 0 8px; font-size: 22px; font-weight: 800; }
:where(.lk-ui) .sd-modal h3 em { font-style: normal; color: var(--gold-num); }
:where(.lk-ui) .sd-modal p { color: var(--body); margin: 0 0 16px; font-size: 14.5px; }
:where(.lk-ui) .sd-modal .acts { display: grid; gap: 10px; }
:where(.lk-ui) .sd-modal small { display: block; margin-top: 12px; color: var(--mute); font-size: 12.5px; }
:where(.lk-ui) .sd-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; max-width: calc(100% - 32px); text-align: center; }
:where(.lk-ui) .sd-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { :where(.lk-ui) .sd-toast { bottom: 92px; } }

/* homepage */
:where(.lk-ui) .hm-hero { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 1000px) { :where(.lk-ui) .hm-hero { grid-template-columns: 1fr; } :where(.lk-ui) .hm-hero .hm-orbit { order: 0; } }
:where(.lk-ui) .hm-kick { display: inline-flex; align-items: center; gap: 8px; }
:where(.lk-ui) .hm-kick i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
:where(.lk-ui) .hm-hero h1 { font-size: 44px; line-height: 1.05; margin: 10px 0 10px; }
@media (max-width: 760px) { :where(.lk-ui) .hm-hero h1 { font-size: 32px; } }
:where(.lk-ui) .hm-orbit { position: relative; width: 300px; height: 300px; flex: none; }
:where(.lk-ui) .hm-orbit .sd-ring { position: absolute; inset: 52px; width: auto; height: auto; }
:where(.lk-ui) .hm-orbit .sat { position: absolute; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; white-space: nowrap; animation: sdRise .55s cubic-bezier(.2,.8,.2,1) both; }
:where(.lk-ui) .hm-orbit .sat i { width: 26px; height: 26px; border-radius: 50%; background: var(--ks); color: var(--ki); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
:where(.lk-ui) .hm-orbit .sat b { font-family: var(--num-font); font-weight: 400; font-size: 17px; color: var(--kn); }
:where(.lk-ui) .hm-orbit .s1 { top: 6px; left: 8px; } :where(.lk-ui) .hm-orbit .s2 { top: 30px; right: 0; } :where(.lk-ui) .hm-orbit .s3 { bottom: 30px; left: 0; } :where(.lk-ui) .hm-orbit .s4 { bottom: 6px; right: 14px; }
@media (max-width: 1000px) { :where(.lk-ui) .hm-orbit { margin: 0 auto; } }
@media (max-width: 760px) { :where(.lk-ui) .hm-orbit { width: 300px; height: 250px; } :where(.lk-ui) .hm-orbit .sd-ring { inset: 40px 70px; } :where(.lk-ui) .hm-orbit .s1 { top: 0; left: 0; } :where(.lk-ui) .hm-orbit .s2 { top: 16px; right: 0; } :where(.lk-ui) .hm-orbit .s3 { bottom: 16px; left: 0; } :where(.lk-ui) .hm-orbit .s4 { bottom: 0; right: 0; } }
:where(.lk-ui) .hm-sec h2.big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; line-height: 1.2; }
:where(.lk-ui) .hm-sec h2.big em { font-style: normal; color: var(--kn, var(--gold-num)); }
@media (max-width: 760px) { :where(.lk-ui) .hm-sec h2.big { font-size: 22px; } }
:where(.lk-ui) .opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--sub); }
:where(.lk-ui) .opt + .opt { margin-top: 10px; }
:where(.lk-ui) .opt b { display: block; font-size: 15px; } :where(.lk-ui) .opt p { margin: 2px 0 0; font-size: 13.5px; color: var(--body); }
:where(.lk-ui) .opt .fig { margin-left: auto; text-align: right; flex: none; }
:where(.lk-ui) .opt .fig b { font-family: var(--num-font); font-weight: 400; font-size: 24px; color: var(--kn); }
:where(.lk-ui) .opt .fig small { display: block; font-size: 11px; color: var(--mute); font-weight: 700; }
:where(.lk-ui) .price { font-family: var(--num-font); font-size: 34px; line-height: 1; color: var(--kn); display: block; margin: 10px 0 8px; }
:where(.lk-ui) .ticks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--body); }
:where(.lk-ui) .ticks li { display: flex; gap: 8px; align-items: flex-start; }
:where(.lk-ui) .ticks li svg { color: var(--ok); margin-top: 2px; }
:where(.lk-ui) .rwall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { :where(.lk-ui) .rwall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
:where(.lk-ui) .rwall .cap { margin-top: 8px; font-size: 13px; } :where(.lk-ui) .rwall .cap b { font-family: var(--num-font); font-weight: 400; font-size: 20px; color: var(--gold-num); margin-right: 4px; }
:where(.lk-ui) .ftr { text-align: center; color: var(--mute); font-size: 12.5px; padding: 18px 0 8px; }

/* ── 11. MOTION (student-ui.css §19, unchanged) ───────────────────── */
@keyframes sdRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sdGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sdFlame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes sdPop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes sdFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sdUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
:where(.lk-ui) .sd-rise { animation: sdRise .55s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  :where(.lk-ui) *, :where(.lk-ui) *::before, :where(.lk-ui) *::after { animation: none !important; transition: none !important; }
  :where(.lk-ui) .sd-chart .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  :where(.lk-ui) .sd-rise { opacity: 1; transform: none; }
}
/* phone polish (dashboard: bigger chart labels under 560 px) */
@media (max-width: 560px) { :where(.lk-ui) .sd-chart text { font-size: 19px; } }
@media (max-width: 480px) { :where(.lk-ui) .prow { padding: 12px; gap: 10px; } :where(.lk-ui) .prow .tt small { letter-spacing: .06em; } :where(.lk-ui) .prow .pick input { width: 54px; } }


/* =====================================================================
   PART 3 — CLASSIC LAYOUT FIXES + THE CLASSIC HOMEPAGE (index.php)
   ===================================================================== */
/* the page column keeps a 16 px gutter on phones (the preview kept it on <body>) */
:where(.lk-ui) .sd-main { max-width: 1232px; padding-left: var(--gl); padding-right: var(--gr); }

/* the Classic homepage (includes/home_classic.php) — every class starts with "hc-" */
:where(.lk-ui) .hc-block { display: flex; flex-direction: column; gap: 10px; }
:where(.lk-ui) .hc-h1 .g, :where(.lk-ui) .hm-sec h2.big .g, :where(.lk-ui) .hm-sec h2.big .b { color: var(--kn, var(--gold-num)); }
:where(.lk-ui) .hc-h1 .g { color: var(--gold-num); }
:where(.lk-ui) .hc-h1 em, :where(.lk-ui) .hm-sec h2.big em { font-style: normal; }
:where(.lk-ui) .hc-hw { margin: 0 0 4px; font-size: 13.5px; color: var(--body); }
:where(.lk-ui) a.sd-stat { text-decoration: none; transition: transform .15s, border-color .15s; }
:where(.lk-ui) a.sd-stat:hover { transform: translateY(-2px); border-color: var(--k, var(--brand)); }
:where(.lk-ui) a.opt { text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
:where(.lk-ui) a.opt:hover { transform: translateY(-2px); border-color: var(--k, var(--brand)); }
:where(.lk-ui) .hm-orbit .hc-eg { position: absolute; left: 50%; top: 50%; margin-top: 44px; transform: translateX(-50%); z-index: 1; }
@media (max-width: 760px) { :where(.lk-ui) .hm-orbit .hc-eg { margin-top: 36px; } }
:where(.lk-ui) .hc-live { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--body); }
:where(.lk-ui) .hc-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }
:where(.lk-ui) .hc-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 0; padding: 0; }   /* 9 Nov 2026: three promises in the hero (were the 4 skill boxes) */
:where(.lk-ui) .hc-trust li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--body); }
:where(.lk-ui) .hc-trust li svg { color: var(--gold-num); flex: none; }
@media (max-width: 560px) { :where(.lk-ui) .hc-trust li { font-size: 12px; padding: 6px 10px 6px 8px; } }
/* games strip */
:where(.lk-ui) .hc-games { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; }
:where(.lk-ui) .hc-games .sd-sub { margin-bottom: 0; }
:where(.lk-ui) .hc-gico { width: 58px; height: 58px; border-radius: 16px; }
:where(.lk-ui) .hc-gacts { margin: 0; justify-content: flex-end; }
@media (max-width: 1000px) { :where(.lk-ui) .hc-games { grid-template-columns: auto minmax(0, 1fr); } :where(.lk-ui) .hc-gacts { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 560px) { :where(.lk-ui) .hc-games { grid-template-columns: 1fr; } :where(.lk-ui) .hc-gico { display: none; } }
/* results: the real Test Report Forms in a strip that scrolls sideways inside its card */
:where(.lk-ui) .hc-rwstat { font-size: 13px; color: var(--mute); font-weight: 600; } :where(.lk-ui) .hc-rwstat b { font-family: var(--num-font); font-weight: 400; font-size: 18px; color: var(--gold-num); }
:where(.lk-ui) .hc-rw { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
:where(.lk-ui) .hc-rc { margin: 0; scroll-snap-align: start; min-width: 0; }
:where(.lk-ui) .hc-rc-ph { display: block; aspect-ratio: 1 / 1.41; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--sub); box-shadow: var(--shadow); transition: transform .2s; }
:where(.lk-ui) .hc-rc-ph:hover { transform: translateY(-3px); }
:where(.lk-ui) .hc-rc-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
:where(.lk-ui) .hc-rc-ph.blank { display: grid; place-items: center; font-family: var(--num-font); font-size: 34px; color: var(--mute); }
:where(.lk-ui) .hc-rc figcaption { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12.5px; line-height: 1.25; }
:where(.lk-ui) .hc-rc figcaption .ov { font-family: var(--num-font); font-weight: 400; font-size: 22px; color: var(--r-num); flex: none; }
:where(.lk-ui) .hc-rc figcaption .ov.hi { color: var(--gold-num); }
:where(.lk-ui) .hc-rc figcaption span { min-width: 0; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
:where(.lk-ui) .hc-rc figcaption small { display: block; font-weight: 600; color: var(--mute); }
@media (max-width: 760px) { :where(.lk-ui) .hc-rw { grid-auto-columns: 132px; gap: 10px; } }
/* contact + the enquiry form */
:where(.lk-ui) .hc-me { display: flex; gap: 14px; align-items: center; }
:where(.lk-ui) .hc-me img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--gold-fill); flex: none; }
:where(.lk-ui) .hc-me b { display: block; font-size: 18px; margin-top: 2px; } :where(.lk-ui) .hc-me small { display: block; color: var(--mute); font-size: 13px; }
:where(.lk-ui) .hc-cl { margin: 14px 0 14px; color: var(--body); font-size: 15px; }
:where(.lk-ui) .hc-form { display: flex; flex-direction: column; gap: 12px; position: relative; }
:where(.lk-ui) .hc-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
:where(.lk-ui) .hc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { :where(.lk-ui) .hc-row { grid-template-columns: 1fr; } }
:where(.lk-ui) .hc-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--body); min-width: 0; }
:where(.lk-ui) .hc-form .cf-input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--sub); color: var(--ink); font: 500 15px/1.4 Inter, system-ui, sans-serif; }
:where(.lk-ui) .hc-form textarea.cf-input { resize: vertical; }
:where(.lk-ui) .hc-form .cf-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
:where(.lk-ui) .hc-form .cf-input.is-bad { border-color: var(--bad); }
:where(.lk-ui) .hc-form .cf-err { color: var(--bad); font-weight: 700; }
:where(.lk-ui) .hc-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
:where(.lk-ui) .hc-send small { color: var(--mute); font-size: 12.5px; flex: 1 1 200px; }
:where(.lk-ui) .cf-status { margin: 0; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; }
:where(.lk-ui) .cf-status.ok { background: var(--ok-soft); color: var(--ok); } :where(.lk-ui) .cf-status.bad { background: var(--bad-soft); color: var(--bad); }
:where(.lk-ui) .sd-launch a .nm, :where(.lk-ui) .sd-launch a .band small { overflow-wrap: anywhere; }

/* ── 6 Nov 2026 (round 3): KEY-CAP — the site's standard primary button in the Classic look (Sharifjon's pick) ──────────────
   A key that really goes down: the button sits on a darker edge of its own colour; pointing lifts it a little, pressing pushes
   it down. Only transform and the edge (box-shadow) change — cheap on every phone. Ghost (outline) buttons stay flat.
   The edge colour: --kc = the button's own colour, mixed with black (older browsers get a soft dark edge instead).
   Exam screens never load this file, so they never change. */
.lk-btn, .cp .cp-btn, :where(.lk-ui) .sd-btn { --kc: var(--brand); }
.lk-btn.gold, .cp .cp-btn.gold, :where(.lk-ui) .sd-btn.gold { --kc: var(--gold-fill); }
.cp .cp-btn.k, :where(.lk-ui) .sd-btn.k { --kc: var(--k, var(--brand)); }
.lk-btn:not(.ghost), .cp .cp-btn:not(.ghost), :where(.lk-ui) .sd-btn:not(.ghost) {
  --kc-edge: rgba(10, 8, 32, .32);
  --kc-edge: color-mix(in srgb, var(--kc) 66%, #000);
  box-shadow: 0 4px 0 0 var(--kc-edge);
  transition: transform .12s cubic-bezier(.3, .7, .4, 1), box-shadow .12s cubic-bezier(.3, .7, .4, 1), background-color .15s, filter .15s;
}
.lk-btn.sm:not(.ghost), .cp .cp-btn.sm:not(.ghost), :where(.lk-ui) .sd-btn.sm:not(.ghost) { box-shadow: 0 3px 0 0 var(--kc-edge); }
.lk-btn:not(.ghost):hover, .cp .cp-btn:not(.ghost):hover, :where(.lk-ui) .sd-btn:not(.ghost):hover { transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--kc-edge); }
.lk-btn:not(.ghost):active, .cp .cp-btn:not(.ghost):active, :where(.lk-ui) .sd-btn:not(.ghost):active { transform: translateY(3px); box-shadow: 0 1px 0 0 var(--kc-edge); transition-duration: .05s; }
.lk-btn:not(.ghost):disabled, .cp .cp-btn:not(.ghost):disabled, :where(.lk-ui) .sd-btn:not(.ghost):disabled { transform: none; box-shadow: 0 2px 0 0 var(--kc-edge); }
html.lk-lite .lk-btn:not(.ghost):hover, html.lk-lite .cp .cp-btn:not(.ghost):hover, html.lk-lite :where(.lk-ui) .sd-btn:not(.ghost):hover { transform: none; box-shadow: 0 4px 0 0 var(--kc-edge); }
/* 6 Nov 2026 (qa): the Comet lockup "IELTS • Planet" (Inter) also on pages that print the Classic menu without look_icon_links() (login, certificates) */
.lk-wm.lk-wc { font-family: Inter, system-ui, sans-serif; font-size: 18px; letter-spacing: -.015em; text-transform: none; display: inline-flex; align-items: center; line-height: 1; } .lk-wm.lk-wc b, .lk-wm.lk-wc span { font-weight: 800; opacity: 1; margin-left: 0; } .lk-wm.lk-wc i { width: 5px; height: 5px; border-radius: 50%; background: var(--lgc-a1, #f0b429); margin: 2px .3em 0; flex: none; } @media (max-width: 760px) { .lk-wm.lk-wc { font-size: 16px; } } @media (max-width: 370px) { .lk-wm.lk-wc i { display: none; } }

/* ── 10 Nov 2026 (owner: "when I press the header icon it shows a background glitch — it should feel like a mobile application") ──
   No grey / blue flash behind what you tap, no text selection or "save image" menu on the bars; a small press instead. */
.lk-top a, .lk-top button, .lk-bottom a, .lk-bottom button, .lk-sheet a, .lk-sheet button, :where(.lk-ui) a, :where(.lk-ui) button, :where(.lk-ui) label, :where(.lk-ui) summary { -webkit-tap-highlight-color: transparent; }
.lk-logo, .lk-bottom a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.lk-logo:focus { outline: none; } .lk-logo:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
.lk-logo .lk-lockup, .lk-bottom a { transition: transform .12s ease; }
@media (hover: none) { .lk-logo:active .lk-lockup { transform: scale(.95); } .lk-bottom a:active { transform: scale(.94); } }
/* on touch screens a "hover" colour stays after the finger leaves (the pale box behind the bell, the moon, the menu): switch it off there */
@media (hover: none) {
  .lk-ic:hover { color: var(--body); background: transparent; }
  .lk-ic:active { background: var(--brand-soft); transform: scale(.94); }
  .lk-sheet-list a:hover { background: transparent; } .lk-sheet-list a:active { background: var(--brand-soft); }
}

/* 21 Nov 2026 (owner): new chat messages = a small red dot, no number (top tab, phone bottom bar, phone menu) */
.lk-cm-dot { display: inline-block; width: 9px; height: 9px; min-width: 0; padding: 0; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px var(--card, #fff); font-size: 0; line-height: 0; }
.lk-cm-dot.lk-tab-n { margin-left: 5px; vertical-align: 6px; }
.lk-bottom .lk-cm-dot.lk-badge.dot { position: absolute; top: 6px; right: calc(50% - 15px); }
.lk-cm-dot.lk-badge.in { position: static; margin-left: auto; }
/* 22 Nov 2026 (owner): the teacher's ORANGE DOT on the Classroom button — something new (no pop-ups any more) */
.lk-hq, .lk-ic[data-lk-sheet="open"] { position: relative; }
.lk-hq-dot { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 2px var(--card, #fff); pointer-events: none; }
.lk-acct-menu .lk-hq-dot, .lk-sheet-list .lk-hq-dot { position: static; display: inline-block; margin-left: auto; flex: none; }


/* ── /assets/pages-ui.css ── */
/* =====================================================================
   assets/pages-ui.css — the "Classic" look of the list pages (6 Nov 2026)
   =====================================================================
   Used by the page bodies in views/classic/*.php (Listening, Reading,
   Writing, Speaking, Grammar, Word Library shelves, Library, Documentaries,
   Games, Leaderboard, Profile, Mock). The top menu and the phone bar come
   from the site look (includes/look.php); this file is only the page body.

   Copied from the approved preview (IELTS-Planet-Dashboard-Style.html),
   which copies assets/student-ui.css: the same colours, cards, rings,
   numbers, labels and motion. Every class starts with "cp-" so nothing
   here can touch another page. Everything sits inside <div class="cp">.

   Day = .cp            Night = html.dark .cp (the site's one night rule)
   Skills: .L Listening (cyan) .R Reading (violet) .W Writing (pink)
           .S Speaking (amber) .M gold .G green (grammar) .B brand violet
   Motion: only transform/opacity; "reduce motion" turns it all off.
   ===================================================================== */

/* ── 1. DAY tokens ──────────────────────────────────────────────────── */
.cp {
  --bg: #f4f3fb; --card: #ffffff; --glass: rgba(255,255,255,.82);
  --line: #e4e2f0; --line2: #edecf5;
  --ink: #12102e; --body: #45436a; --mute: #6f6d8f;
  --brand: #6d4ee0; --brand-dk: #5b3ed0; --brand-ink: #4c2fb8; --brand-soft: #ece7fd;
  --gold: #ffc947; --gold-fill: #f0b429; --gold-ink: #1a1400; --gold-soft: #fff3d1; --gold-txt: #8a5b00;
  --l: #0ea5d9; --l-soft: #e0f6ff; --l-ink: #006f94;
  --r: #7c5ce6; --r-soft: #ede8ff; --r-ink: #5235b8;
  --w: #db2777; --w-soft: #ffe4f1; --w-ink: #a3155a;
  --s: #d97706; --s-soft: #fff1dc; --s-ink: #8a4b00;
  --ok: #0f9d6e; --ok-soft: #e0f7ee; --bad: #d12d4a; --bad-soft: #ffe3e8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18,16,46,.05), 0 8px 24px -18px rgba(18,16,46,.25);
  --shadow-up: 0 16px 36px -14px rgba(18,16,46,.28);
  --num-font: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --lab-font: Orbitron, "Segoe UI", Inter, sans-serif;
  --sub: var(--bg); --hero-bg: var(--card); --btn-ink: #fff; --ring-track: var(--line2);
  --gold-num: var(--gold-txt); --l-num: var(--l-ink); --r-num: var(--r-ink); --w-num: var(--w-ink); --s-num: var(--s-ink); --ok-num: var(--ok);
  --num-glow: none; --sky: none; --scrim: rgba(4,6,20,.5); --chart-bg: #ffffff;
  color-scheme: light;
}
/* ── 2. NIGHT tokens ───────────────────────────────────────────────── */
html.dark .cp {
  --bg: #070b1c; --card: #0f1430; --glass: rgba(10,14,36,.74);
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.05);
  --ink: #f2f3ff; --body: #c3c7e6; --mute: #8b90b8;
  --brand: #a78bfa; --brand-dk: #8f6ff5; --brand-ink: #cdbcff; --brand-soft: rgba(167,139,250,.14);
  --gold: #ffc947; --gold-fill: #ffc947; --gold-ink: #1a1400; --gold-soft: rgba(255,201,71,.13); --gold-txt: #ffd978;
  --l: #38d6ff; --l-soft: rgba(56,214,255,.13); --l-ink: #9ae9ff;
  --r: #a78bfa; --r-soft: rgba(167,139,250,.14); --r-ink: #cdbcff;
  --w: #f472b6; --w-soft: rgba(244,114,182,.14); --w-ink: #ffb0d6;
  --s: #ffb347; --s-soft: rgba(255,179,71,.14); --s-ink: #ffd08c;
  --ok: #34d399; --ok-soft: rgba(52,211,153,.14); --bad: #fb7185; --bad-soft: rgba(251,113,133,.14);
  --shadow: 0 1px 0 rgba(255,255,255,.02), 0 10px 30px -18px rgba(0,0,0,.8);
  --shadow-up: 0 18px 40px -16px rgba(0,0,0,.85);
  --sub: rgba(255,255,255,.03);
  --hero-bg: linear-gradient(135deg, #121840 0%, #0f1430 55%, #0c1130 100%);
  --btn-ink: #0a0820; --ring-track: rgba(255,255,255,.1);
  --gold-num: #ffc947; --l-num: #38d6ff; --r-num: #a78bfa; --w-num: #f472b6; --s-num: #ffb347; --ok-num: #34d399;
  --num-glow: 0 0 24px rgba(255,201,71,.35);
  --sky: radial-gradient(ellipse 60% 40% at 15% 0%, rgba(167,139,250,.14), transparent 70%), radial-gradient(ellipse 50% 35% at 90% 5%, rgba(56,214,255,.10), transparent 70%), radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%), radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.4), transparent 60%), radial-gradient(1.5px 1.5px at 230px 40px, rgba(255,255,255,.5), transparent 60%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  --scrim: rgba(4,6,20,.66); --chart-bg: #000000;
  color-scheme: dark;
}

/* ── 3. BASE ───────────────────────────────────────────────────────── */
.cp {
  --gl: max(16px, env(safe-area-inset-left)); --gr: max(16px, env(safe-area-inset-right));
  background-color: var(--bg); background-image: var(--sky);
  background-size: 100% 900px, 100% 700px, 300px 260px, 300px 260px, 300px 260px, 56px 56px, 56px 56px;
  background-repeat: no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat;
  color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.5;
  padding: 0 var(--gr) 0 var(--gl); min-height: 70vh; overflow-x: clip; text-align: left;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp [hidden] { display: none !important; }
.cp a { color: var(--brand); }
.cp button, .cp input, .cp select { font: inherit; }
.cp h1, .cp h2, .cp h3 { letter-spacing: -.01em; color: var(--ink); }
.cp p { margin: 0; }
.cp img { max-width: 100%; }
.cp :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cp .cp-ic { flex: none; }
.cp .cp-lab { font-family: var(--lab-font); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.cp .cp-num { font-family: var(--num-font); font-weight: 400; letter-spacing: .01em; line-height: 1; font-variant-numeric: tabular-nums; }
.cp .cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 4. LAYOUT + CARDS ─────────────────────────────────────────────── */
.cp-main { max-width: 1200px; margin: 0 auto; padding: 24px 0 56px; display: flex; flex-direction: column; gap: 18px; }
.cp-g2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.cp-g2 > * { min-width: 0; }
.cp-g2.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cp-g2, .cp-g2.even { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .cp-main { padding: 14px 0 40px; gap: 14px; } }
.cp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
@media (max-width: 760px) { .cp-card { padding: 16px; } }
.cp-card h2 { margin: 0; font-size: 17px; font-weight: 800; }
.cp h2.cp-lab { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; margin: 0; }
.cp .cp-sub { margin: 4px 0 14px; font-size: 13.5px; color: var(--mute); }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cp .cp-link { font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--brand); }
.cp .cp-link:hover { text-decoration: underline; }
.cp-lift { transition: transform .2s ease, box-shadow .2s ease; }
.cp-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp .cp-foot { text-align: center; color: var(--mute); font-size: 12.5px; margin: 6px 0 0; }
.cp .cp-foot a { font-weight: 700; }
.cp-seclab { padding-left: 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cp-seclab span:last-child { font-family: Inter, sans-serif; letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 600; }
.cp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* buttons, chips, pills */
.cp .cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--brand); color: var(--btn-ink); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .15s, background-color .15s, filter .15s; white-space: nowrap; }
.cp .cp-btn:hover { background: var(--brand-dk); transform: translateY(-2px); }
.cp .cp-btn.sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.cp .cp-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cp .cp-btn.ghost:hover { background: var(--brand-soft); }
.cp .cp-btn.gold { background: var(--gold-fill); color: var(--gold-ink); }
.cp .cp-btn.gold:hover { filter: brightness(1.05); background: var(--gold-fill); }
.cp .cp-btn.k { background: var(--k); color: var(--btn-ink); }
.cp .cp-btn.k:hover { filter: brightness(1.08); }
.cp .cp-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; flex: none; }
.cp .cp-chip:hover { border-color: var(--brand); }
.cp .cp-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cp .cp-chip .n { opacity: .7; font-weight: 600; }
.cp .cp-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.cp-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; }
.cp-chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cp-chips.scroll::-webkit-scrollbar { display: none; }
.cp .cp-band { display: inline-block; min-width: 46px; text-align: center; font-weight: 800; border-radius: 10px; padding: 3px 9px; font-size: 14px; font-variant-numeric: tabular-nums; }
.cp .cp-band.hi { background: var(--ok-soft); color: var(--ok); } .cp .cp-band.mid { background: var(--l-soft); color: var(--l-ink); } .cp .cp-band.lo { background: var(--s-soft); color: var(--s-ink); }
.cp .cp-sk { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; background: var(--ks); color: var(--ki); }
.cp .cp-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: 1px; }
.cp .cp-tag.gold { background: var(--gold-soft); color: var(--gold-txt); }
.cp .cp-tag.bad { background: var(--bad-soft); color: var(--bad); }
.cp .cp-tag.ok { background: var(--ok-soft); color: var(--ok); }

/* skill keys: --k colour, --ks soft, --ki ink, --kn big number */
.cp .L { --k: var(--l); --ks: var(--l-soft); --ki: var(--l-ink); --kn: var(--l-num); }
.cp .R { --k: var(--r); --ks: var(--r-soft); --ki: var(--r-ink); --kn: var(--r-num); }
.cp .W { --k: var(--w); --ks: var(--w-soft); --ki: var(--w-ink); --kn: var(--w-num); }
.cp .S { --k: var(--s); --ks: var(--s-soft); --ki: var(--s-ink); --kn: var(--s-num); }
.cp .M { --k: var(--gold-fill); --ks: var(--gold-soft); --ki: var(--gold-txt); --kn: var(--gold-num); }
.cp .G { --k: var(--ok); --ks: var(--ok-soft); --ki: var(--ok); --kn: var(--ok-num); }
.cp .B { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink); --kn: var(--brand); }

/* ── 5. HERO ("command deck") ───────────────────────────────────────── */
.cp-hero { position: relative; overflow: hidden; background: var(--hero-bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; box-shadow: var(--shadow); }
.cp-hero.one { grid-template-columns: 1fr; }
.cp-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,71,.16), transparent 62%); pointer-events: none; }
.cp-hero.k::before { background: radial-gradient(circle, color-mix(in srgb, var(--k) 20%, transparent), transparent 62%); }
.cp-hero > * { position: relative; min-width: 0; }
.cp-hero h1 { margin: 6px 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.cp-hero h1 em { font-style: normal; color: var(--kn, var(--gold-num)); }
.cp-hero .mot { margin: 0; color: var(--body); font-size: 15px; max-width: 600px; }
.cp-hero-l { display: flex; flex-direction: column; gap: 4px; }
.cp-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cp-ringbox { display: flex; align-items: center; gap: 18px; }
.cp-ring { position: relative; width: 156px; height: 156px; flex: none; }
.cp-ring svg { display: block; width: 100%; height: 100%; }
.cp-ring .val { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.cp-ring .track { stroke: var(--ring-track); }
.cp-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cp-ring .num b { font-family: var(--num-font); font-weight: 400; font-size: 46px; line-height: 1; color: var(--kn, var(--gold-num)); letter-spacing: .01em; text-shadow: var(--num-glow); }
.cp-ring .num b small { font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; color: var(--mute); text-shadow: none; margin-left: 2px; }
.cp-ring .num .cp-lab { margin-top: 6px; font-size: 9.5px; }
.cp-ringside { min-width: 0; }
.cp-ringside .big { font-family: var(--num-font); font-size: 30px; line-height: 1; margin-top: 6px; display: block; color: var(--kn, var(--ink)); }
.cp-ringside .hint { margin-top: 4px; font-size: 12px; color: var(--mute); max-width: 180px; }
.cp-ringside a { font-weight: 700; font-size: 13px; }
.cp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cp-stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-stat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--sub); color: var(--ink); display: block; min-width: 0; position: relative; overflow: hidden; text-decoration: none; }
.cp-stat .v { display: block; font-family: var(--num-font); font-weight: 400; font-size: 30px; line-height: 1; margin-top: 6px; color: var(--kn, var(--ink)); }
.cp-stat .v small { font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 700; color: var(--mute); margin-left: 4px; letter-spacing: 0; }
.cp-stat .u { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; }
.cp-stat .cp-lab { display: flex; align-items: center; gap: 6px; }
.cp-stat.lit::after { content: ""; position: absolute; right: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(255,179,71,.35), transparent 70%); }
.cp .cp-cont { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(240,180,41,.45); background: var(--sub); text-decoration: none; color: var(--ink); }
.cp-cont .cp-sk { width: 38px; height: 38px; }
.cp-cont .txt { flex: 1; min-width: 0; }
.cp-cont .txt .cp-lab { display: block; font-size: 9.5px; margin-bottom: 2px; color: var(--gold-txt); }
.cp-cont .txt b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-cont .txt span.s { font-size: 12.5px; color: var(--mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-cont.late { border-color: var(--bad); }
.cp-flame { animation: cpFlame 1.6s ease-in-out infinite; transform-origin: 50% 80%; display: inline-flex; }
@media (max-width: 1000px) { .cp-hero { grid-template-columns: 1fr; } .cp-ringbox { order: -1; } }
@media (max-width: 760px) {
  .cp-hero { padding: 18px; gap: 14px; border-radius: 20px; }
  .cp-hero h1 { font-size: 24px; margin: 2px 0 4px; }
  .cp-hero .mot { font-size: 14px; }
  .cp-ring { width: 124px; height: 124px; } .cp-ring .num b { font-size: 38px; }
  .cp-stats, .cp-stats.four { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); } .cp-stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-stat { padding: 10px 11px; } .cp-stat .v { font-size: 24px; }
  .cp-stat .u { font-size: 11px; line-height: 1.3; }
  .cp-stat .cp-lab { letter-spacing: .06em; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .cp-stat .cp-lab svg { display: none; }
  .cp-acts .cp-btn { flex: 1 1 auto; }
}
@media (max-width: 480px) { .cp-ring { width: 112px; height: 112px; } .cp-ring .num b { font-size: 34px; } .cp-ring .num .cp-lab { font-size: 8.5px; letter-spacing: .12em; } .cp-ringside .big { font-size: 26px; } }
@media (max-width: 480px) { .cp-cont { flex-wrap: wrap; } .cp-cont .cp-btn { width: 100%; } .cp-cont .cp-sk { display: none; } }

/* ── 6. TOOLBAR: search, selects, tabs, toggles ────────────────────── */
.cp-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cp-tools .grow { flex: 1 1 260px; min-width: 0; }
.cp-search { display: flex; align-items: center; gap: 8px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); padding: 0 12px; color: var(--mute); min-width: 0; }
.cp-search input { border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); width: 100%; min-width: 0; height: 100%; }
.cp-search input::placeholder { color: var(--mute); }
.cp-search:focus-within { border-color: var(--brand); }
/* 10 Nov 2026: ".cp-search input { outline: 0 }" above was beaten by ".cp :focus-visible" (a stronger rule), so a gold box
   appeared inside the search field. The frame already changes colour when the field is active; this line removes the box. */
.cp .cp-search input:focus-visible { outline: 0; }
.cp .cp-sel { height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); padding: 0 10px; max-width: 100%; font-size: 14px; font-weight: 600; }
.cp .cp-tog { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 700; color: var(--body); cursor: pointer; white-space: nowrap; }
.cp .cp-tog input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.cp .cp-count { font-size: 13px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.cp-tablist { display: inline-flex; gap: 6px; background: var(--card); border: 1px solid var(--line); padding: 6px; border-radius: 18px; box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; }
.cp .cp-tab { height: 44px; padding: 0 18px; border-radius: 13px; border: 0; background: transparent; font-weight: 800; font-size: 14.5px; color: var(--body); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.cp .cp-tab[aria-selected="true"], .cp .cp-tab[aria-current="page"] { background: var(--brand); color: var(--btn-ink); }
.cp .cp-tab small { font-weight: 700; opacity: .75; margin-left: 4px; }
@media (max-width: 480px) { .cp-tablist { display: flex; } .cp .cp-tab { flex: 1; padding: 0 10px; font-size: 13.5px; justify-content: center; } }
.cp-recent { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--mute); font-weight: 600; }
.cp-recent a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-recent a:hover { border-color: var(--brand); }
.cp .cp-empty { text-align: center; padding: 30px 10px; color: var(--mute); font-weight: 600; }
.cp .cp-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(240,180,41,.45); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cp .cp-note a { font-weight: 800; }

/* ── 7. TEST CARDS ─────────────────────────────────────────────────── */
.cp-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cp-tgrid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
@media (max-width: 760px) { .cp-tgrid { gap: 10px; } }
.cp-tc { --k: var(--brand); --ks: var(--brand-soft); --ki: var(--brand-ink); --kn: var(--brand);
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.cp .cp-tc.L { --k: var(--l); --ks: var(--l-soft); --ki: var(--l-ink); --kn: var(--l-num); }
.cp .cp-tc.R { --k: var(--r); --ks: var(--r-soft); --ki: var(--r-ink); --kn: var(--r-num); }
.cp .cp-tc.W { --k: var(--w); --ks: var(--w-soft); --ki: var(--w-ink); --kn: var(--w-num); }
.cp .cp-tc.S { --k: var(--s); --ks: var(--s-soft); --ki: var(--s-ink); --kn: var(--s-num); }
.cp-tc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k); z-index: 2; }
.cp-tc::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--ks); opacity: .9; transition: transform .25s; pointer-events: none; }
.cp-tc:hover::after { transform: scale(1.4); }
.cp-tc > * { position: relative; z-index: 1; }
.cp-tc .cp-stretch { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cp-tc .cp-stretch:focus-visible { outline-offset: -3px; }
.cp-tc .up { position: relative; z-index: 2; }   /* things you can press inside a card, above the card link */
.cp-tc .hd { display: flex; align-items: center; gap: 12px; }
.cp-tc .hd .nmb { min-width: 0; flex: 1; }
.cp-tc .hd .cp-lab { display: block; font-size: 9.5px; color: var(--ki); }
.cp-tc .no { font-family: var(--num-font); font-size: 34px; line-height: 1; color: var(--kn); min-width: 46px; }
.cp-tc h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
.cp-tc .meta { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.cp-tc .time { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--body); padding: 3px 8px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-tc .parts { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.cp-tc .parts li { min-width: 0; }
.cp-tc .parts a, .cp-tc .parts span.pr { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--body); min-width: 0; text-decoration: none; padding: 2px 4px; margin: 0 -4px; border-radius: 8px; }
.cp-tc .parts a:hover { background: var(--ks); color: var(--ink); }
.cp-tc .parts i { font-style: normal; flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--ks); color: var(--ki); font-size: 10.5px; font-weight: 800; display: inline-grid; place-items: center; transform: translateY(2px); }
.cp-tc .parts .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.cp-tc .parts small { margin-left: auto; flex: none; color: var(--mute); font-weight: 600; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cp-tc .parts mark { background: var(--gold-soft); color: inherit; border-radius: 3px; }
.cp-tc .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.cp-tc .tags span { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); color: var(--body); white-space: nowrap; }
.cp-tc .tags span.k { background: var(--ks); border-color: transparent; color: var(--ki); }
.cp-tc .ft { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; padding-right: 36px; min-height: 28px; font-size: 12.5px; color: var(--mute); font-weight: 600; flex-wrap: wrap; }
.cp-tc .ft b { color: var(--ink); }
.cp-tc .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; color: var(--body); margin: 0; }
.cp-tc .task { border-radius: 12px; background: var(--sub); border: 1px solid var(--line); padding: 9px 11px; }
.cp-tc .task .cp-lab { font-size: 9px; color: var(--ki); display: flex; justify-content: space-between; gap: 6px; }
.cp-tc .cue { border: 1.5px dashed color-mix(in srgb, var(--k) 55%, transparent); border-radius: 12px; padding: 10px 12px; background: var(--ks); }
.cp-tc .cue p { margin: 3px 0 0; font-weight: 700; font-size: 14px; line-height: 1.4; color: var(--ink); }
.cp-tc .go { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--k); color: #0a0820; display: grid; place-items: center; transition: transform .2s; z-index: 1; pointer-events: none; }
.cp-tc:hover > .go { transform: translateX(3px); }
.cp-tc .save { position: absolute; top: 12px; right: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--mute); display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .15s, color .15s; }
.cp-tc .save:hover { transform: scale(1.08); color: var(--ink); }
.cp-tc .save[aria-pressed="true"] { color: var(--gold-ink); background: var(--gold-fill); border-color: transparent; }
.cp-tc .save[aria-pressed="true"] svg { fill: currentColor; }
.cp-tc.has-save .hd { padding-right: 40px; }
.cp-tc .mini { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--body); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.cp-tc .mini:hover { border-color: var(--k); color: var(--ink); }
.cp-tc .mini.hw { border-color: var(--k); color: var(--ki); }
.cp-tc .draft { color: var(--s-ink); font-weight: 800; }
.cp-tc.dim { opacity: .55; }
@media (max-width: 760px) { .cp-tc { padding: 14px 14px; } .cp-tc .go { width: 26px; height: 26px; right: 10px; bottom: 10px; } }

/* reading (6 Nov 2026, item 17): a soft cover made of three small pictures, one per passage; no title on the cover */
.cp .rv0 { --rb: #eaf3fb; --rm: #d3e7f7; } .cp .rv1 { --rb: #eaf6ef; --rm: #d0ebdc; } .cp .rv2 { --rb: #f1edfb; --rm: #dfd7f6; }
.cp .rv3 { --rb: #fdf0e7; --rm: #f8dbc8; } .cp .rv4 { --rb: #f8f2e1; --rm: #eee0b9; } .cp .rv5 { --rb: #fbecf1; --rm: #f4d2de; }
.cp .rv6 { --rb: #e8f4f4; --rm: #cce7e7; } .cp .rv7 { --rb: #eef0fb; --rm: #d8dcf6; } .cp .rv8 { --rb: #f3f1ea; --rm: #e3ddcc; }
.cp .rv9 { --rb: #edf5e6; --rm: #d6e9c6; }
html.dark .cp .rv0 { --rb: #14233a; --rm: #1c3250; } html.dark .cp .rv1 { --rb: #132a25; --rm: #1b3b32; } html.dark .cp .rv2 { --rb: #1e1a3a; --rm: #2b2552; }
html.dark .cp .rv3 { --rb: #2d1f1a; --rm: #3f2b22; } html.dark .cp .rv4 { --rb: #29261a; --rm: #3a3422; } html.dark .cp .rv5 { --rb: #2b1824; --rm: #3e2333; }
html.dark .cp .rv6 { --rb: #12292b; --rm: #1a393c; } html.dark .cp .rv7 { --rb: #181d38; --rm: #232a4e; } html.dark .cp .rv8 { --rb: #24221d; --rm: #34302a; }
html.dark .cp .rv9 { --rb: #1c2a19; --rm: #283c23; }
/* five soft backgrounds (one gradient each, painted once): a sun, hills, lined paper, a band, rings */
.cp .m0 { background: radial-gradient(circle at 80% 22%, var(--rm) 0 40px, transparent 41px) var(--rb); }
.cp .m1 { background: radial-gradient(ellipse 58% 46% at 18% 112%, var(--rm) 98%, transparent 100%), radial-gradient(ellipse 52% 40% at 88% 118%, var(--rm) 98%, transparent 100%) var(--rb); }
.cp .m2 { background: linear-gradient(90deg, transparent 0 30px, var(--rm) 30px 32px, transparent 32px), repeating-linear-gradient(transparent 0 15px, var(--rm) 15px 17px) var(--rb); }
.cp .m3 { background: linear-gradient(118deg, transparent 0 46%, var(--rm) 46% 68%, transparent 68%) var(--rb); }
.cp .m4 { background: radial-gradient(circle at 104% 110%, transparent 0 42px, var(--rm) 43px 54px, transparent 55px 72px, var(--rm) 73px 80px, transparent 81px) var(--rb); }
.cp-rc { position: relative; margin: -16px -18px 4px; height: 124px; overflow: hidden; border-bottom: 1px solid var(--line); }
.cp-rc .tn { position: absolute; left: 18px; bottom: 14px; font-family: var(--num-font); font-size: 44px; line-height: 1; color: var(--ink); letter-spacing: .01em; }
.cp-rc .tn small { display: block; font-family: var(--lab-font); font-size: 9.5px; font-weight: 700; letter-spacing: .2em; margin-bottom: 5px; color: var(--r-ink); }
.cp-rc .bd { position: absolute; left: 18px; top: 12px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); }
.cp-rc .trio { position: absolute; right: 14px; bottom: 9px; display: flex; gap: 6px; align-items: flex-end; }
.cp-rc .e { position: relative; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.78); display: grid; place-items: center; box-shadow: 0 6px 14px -10px rgba(18,16,46,.45); transition: transform .3s ease; }
html.dark .cp .cp-rc .e { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cp-rc .e img { width: 44px; height: 44px; display: block; }
.cp-rc .e i { position: absolute; left: -3px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); color: var(--r-ink); font: 800 10.5px/18px Inter, sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 1px var(--line); }
.cp-rc .a0 .e:nth-child(2) { transform: translateY(-14px); }
.cp-rc .a1 .e:nth-child(1) { transform: translateY(-14px) rotate(-6deg); } .cp-rc .a1 .e:nth-child(2) { transform: translateY(-4px); }
.cp-rc .a2 .e:nth-child(1) { transform: translateY(-6px); } .cp-rc .a2 .e:nth-child(2) { transform: translateY(-16px) rotate(5deg); }
.cp-tc:hover .cp-rc .e:nth-child(2) { transform: translateY(-18px) rotate(-4deg); }
@media (max-width: 760px) { .cp-rc { margin: -14px -14px 4px; height: 112px; } .cp-rc .tn { font-size: 38px; } .cp-rc .e { width: 52px; height: 52px; } .cp-rc .e img { width: 40px; height: 40px; } .cp-rc .trio { gap: 4px; } }
@media (max-width: 360px) { .cp-rc .e { width: 46px; height: 46px; } .cp-rc .e img { width: 34px; height: 34px; } }

/* reading: single passages — compact rows with a small cover */
.cp-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.cp-pc { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-width: 0; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.cp-pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--r); }
.cp-pc .th { width: 92px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); }
.cp-pc .th:not([class*="rv"]) { background: var(--pbg, var(--r-soft)); }
.cp-pc .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-pc .th[class*="rv"] { display: grid; place-items: center; }
.cp-pc .th img.em { width: 44px; height: 44px; object-fit: contain; transition: transform .3s ease; }
.cp-pc:hover .th img.em { transform: rotate(-6deg) scale(1.08); }
.cp-pc .tx { min-width: 0; flex: 1; }
.cp-pc .tx .cp-lab { display: block; font-size: 9px; color: var(--r-ink); letter-spacing: .14em; }
.cp-pc .tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; margin: 2px 0 2px; }
.cp-pc .tx small { display: block; font-size: 12px; color: var(--mute); font-weight: 600; }
.cp-pc .tx small .ok { color: var(--ok); font-weight: 800; }
.cp-pc .ar { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--r-soft); color: var(--r-ink); display: grid; place-items: center; }

/* writing: the Task 1 chart as the cover */
.cp-wcover { position: relative; margin: -16px -18px 4px; aspect-ratio: 16 / 9; background: var(--chart-bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.cp-wcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.cp-tc:hover .cp-wcover img { transform: scale(1.03); }
.cp-wcover .dk { display: none; }
html.dark .cp .cp-wcover .dk { display: block; } html.dark .cp .cp-wcover .lt { display: none; }
.cp-wcover .ty { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--w); color: #fff; }
.cp-wcover .bd { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); }
@media (max-width: 760px) { .cp-wcover { margin: -14px -14px 4px; } }

/* small link cards ("quick tools") */
.cp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.cp-quick a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 14px 16px; }
.cp-quick b { display: block; font-size: 14.5px; }
.cp-quick span.s { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
@media (max-width: 760px) { .cp-quick { grid-template-columns: 1fr 1fr; gap: 10px; } .cp-quick a.cp-card { padding: 12px; align-items: flex-start; flex-direction: column; gap: 8px; } }

/* rows (lists inside a card) */
.cp-rows { list-style: none; margin: 0; padding: 0; }
.cp-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line2); min-width: 0; }
.cp-row:last-child { border-bottom: 0; }
.cp-row .ti { flex: 1; min-width: 0; }
.cp-row .ti b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-row .ti span { font-size: 13px; color: var(--mute); }
a.cp-row { text-decoration: none; color: var(--ink); }
a.cp-row:hover b { color: var(--brand); }
.cp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-bars .t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.cp-bars .t small { color: var(--mute); font-weight: 600; }
.cp-bars .tr { height: 8px; background: var(--line2); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.cp-bars .tr i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); background: var(--k, var(--brand)); }

/* ── 8. GRAMMAR ────────────────────────────────────────────────────── */
.cp-gq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.cp-gq a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sub); color: var(--ink); text-decoration: none; border: 1px solid var(--line); min-width: 0; }
.cp-gq a span { grid-row: span 2; font-size: 22px; }
.cp-gq a b { font-size: 14px; } .cp-gq a small { color: var(--mute); font-weight: 600; font-size: 12px; }
.cp-gq a.hot { border-color: var(--gold-fill); background: var(--gold-soft); }
.cp-gq a:hover { border-color: var(--ok); }
@media (max-width: 480px) { .cp-gq { grid-template-columns: 1fr 1fr; } }
.cp-gt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.cp-gt li { min-width: 0; }
.cp-gt a, .cp-gt .soon { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sub); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; min-width: 0; transition: border-color .15s, transform .2s ease, box-shadow .2s ease; }
.cp-gt a:hover { border-color: var(--gc); transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp-gt .soon { opacity: .6; border-style: dashed; }
.cp-gt .em { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex: none; background: color-mix(in srgb, var(--gc) 16%, transparent); }
.cp-gt .em svg { width: 20px; height: 20px; }
.cp-gt .tt { flex: 1; min-width: 0; line-height: 1.3; }
.cp-gt .tt small { display: block; font-size: 11.5px; color: var(--mute); font-weight: 700; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gt .st { color: var(--line); white-space: nowrap; font-size: 13px; letter-spacing: 1px; }
.cp-gt .st i { font-style: normal; color: var(--gold-fill); }
html.dark .cp .cp-gt .st { color: rgba(255,255,255,.18); }
.cp-ghead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cp-ghead .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--gc); }
.cp-ghead h2 { font-size: 17px; }
.cp-ghead .cp-lab { color: var(--gc); }
.cp-ghead .n { font-size: 13px; color: var(--mute); font-weight: 600; white-space: nowrap; }
.cp-gtests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.cp-gtests a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--sub); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.cp-gtests a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.cp-gtests a:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp-gtests .e { font-size: 22px; }
.cp-gtests b { font-size: 14.5px; } .cp-gtests small { font-size: 12px; color: var(--mute); font-weight: 600; }
.cp-gtests .cefr { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--body); }
.cp-lang { position: relative; }
.cp-lang details > summary { list-style: none; cursor: pointer; }

/* ── 9. WORD LIBRARY shelves ───────────────────────────────────────── */
.cp-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cp .cp-book { color: var(--ink); }
.cp-book { display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
.cp-book .bk { width: 56px; aspect-ratio: 3 / 4; border-radius: 6px 9px 9px 6px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--bc), color-mix(in srgb, var(--bc) 60%, #000)); color: #fff; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6), inset 4px 0 0 rgba(0,0,0,.18); text-align: center; padding: 4px; }
.cp-book .bk b { font-family: var(--num-font); font-size: 22px; font-weight: 400; line-height: 1; }
.cp-book .bk small { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; opacity: .9; margin-top: 3px; }
.cp-book .tt { min-width: 0; flex: 1; }
.cp-book .tt b { display: block; font-size: 14.5px; line-height: 1.3; }
.cp-book .tt span { display: block; font-size: 12.5px; color: var(--mute); }
.cp-book .prog { height: 6px; border-radius: 99px; background: var(--line2); margin-top: 8px; overflow: hidden; }
.cp-book .prog i { display: block; height: 100%; width: 0; background: var(--bc); border-radius: 99px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.cp-book .pct { font-size: 11.5px; font-weight: 800; color: var(--body); margin-top: 3px; display: block; }
.cp-book.soon { border-style: dashed; box-shadow: none; background: transparent; }
.cp-book.soon .tt b { color: var(--body); }
.cp-wotd .w { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-wotd .w h3 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cp-wotd .ipa { color: var(--mute); font-size: 14px; }
.cp-wotd .def { margin: 8px 0 0; font-size: 15px; }
.cp-wotd .tr { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--brand-ink); }
.cp-wotd .ex { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--sub); border-left: 3px solid var(--gold-fill); font-size: 14px; color: var(--body); font-style: italic; }
.cp-wotd .ex mark { background: var(--gold-soft); color: inherit; font-style: normal; font-weight: 800; }
.cp .cp-say { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.cp .cp-say::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9zM16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; }
.cp-kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.cp-kv b { display: block; font-family: var(--num-font); font-weight: 400; font-size: 24px; line-height: 1.1; }
.cp-kv span { color: var(--mute); font-size: 12px; font-weight: 600; }
.cp-sres { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-up); max-height: 360px; overflow: auto; }
.cp-sres a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.cp-sres a:hover, .cp-sres a:focus, .cp-sres [aria-selected="true"] a { background: var(--brand-soft); }
.cp-hwl li { align-items: flex-start; }
.cp-hwl .cp-btn { flex: none; }

/* ── 10. LIBRARY (real cover photos) ───────────────────────────────── */
.cp-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 168px), 1fr)); gap: 18px 14px; }
@media (max-width: 480px) { .cp-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.cp-litem { text-decoration: none; color: var(--ink); display: block; min-width: 0; position: relative; cursor: pointer; text-align: left; background: none; border: 0; padding: 0; width: 100%; }
.cp-frame { aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; background: linear-gradient(135deg, var(--sub), var(--line2)); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18,16,46,.06), 0 14px 26px -16px rgba(18,16,46,.45); position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.cp-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-frame::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); z-index: 1; }
.cp-litem:hover .cp-frame, .cp-litem:focus-visible .cp-frame { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp-frame .rt { position: absolute; top: 8px; left: 12px; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); z-index: 2; }
.cp-frame .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--mute); padding: 10px; text-align: center; }
.cp-fav { position: absolute; top: 6px; right: 6px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #8b90b8; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); transition: transform .15s; }
.cp-fav:hover { transform: scale(1.1); }
.cp-fav[aria-pressed="true"] { color: #e11d48; }
.cp-fav[aria-pressed="true"] svg { fill: currentColor; }
.cp-litem .cap { margin-top: 8px; }
.cp-litem .cap b { display: block; font-size: 14px; line-height: 1.3; }
.cp-litem .cap span { display: block; font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* documentaries */
.cp-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.cp-doc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-width: 0; }
.cp-doc .pic { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a2160, #12102e 60%, #3a2a10); overflow: hidden; display: block; }
.cp-doc .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; }
.cp-doc .pic img { position: relative; }
.cp-doc .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cp-doc:hover .pic img { transform: scale(1.05); }
.cp-doc .play { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,201,71,.95); color: #1a1400; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.6); transition: transform .2s; }
.cp-doc:hover .play { transform: scale(1.1); }
.cp-doc .cat { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(10,8,32,.72); color: #fff; }
.cp-doc .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cp-doc .bd b { font-size: 15px; line-height: 1.3; }
.cp-doc .bd small { font-size: 12.5px; color: var(--mute); font-weight: 600; }
.cp-doc .bd p { font-size: 13px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-doc .cp-fav { top: 8px; right: 8px; }

/* ── 11. LEADERBOARD ───────────────────────────────────────────────── */
.cp-pod { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.cp-pod .p { text-align: center; padding: 16px 10px 14px; position: relative; min-width: 0; }
.cp-pod .p.first { padding-top: 28px; border-color: rgba(240,180,41,.55); background: linear-gradient(180deg, var(--gold-soft), var(--card) 70%); }
.cp-pod .av { margin: 0 auto 8px; display: grid; place-items: center; width: fit-content; border-radius: 50%; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--k, var(--brand)); }
.cp-pod .rk { position: absolute; top: 10px; left: 12px; font-family: var(--num-font); font-size: 20px; color: var(--mute); }
.cp-pod .first .rk { color: var(--gold-num); }
.cp-pod .crown { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 18px; }
.cp-pod b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-pod .pts { font-family: var(--num-font); font-size: 26px; line-height: 1.1; color: var(--kn, var(--gold-num)); display: block; margin-top: 4px; }
.cp-pod .pts small { font-family: Inter, sans-serif; font-size: 11px; color: var(--mute); font-weight: 700; margin-left: 3px; }
@media (max-width: 480px) { .cp-pod { gap: 8px; } .cp-pod .p { padding: 12px 6px; } .cp-pod b { font-size: 12.5px; } .cp-pod .pts { font-size: 22px; } }
.cp-lb .rk { width: 32px; font-family: var(--num-font); font-size: 18px; color: var(--mute); text-align: center; flex: none; }
.cp-lb .pt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-lb .pt small { font-weight: 600; color: var(--mute); margin-left: 3px; font-size: 11.5px; }
.cp-lb .me { background: var(--gold-soft); border-radius: 12px; border-bottom-color: transparent; padding-left: 8px; padding-right: 8px; }
.cp-lb .gap { justify-content: center; color: var(--mute); }
.cp-lb img, .cp-pod img { border-radius: 50%; }

/* ── 12. MODAL + TOAST ─────────────────────────────────────────────── */
.cp-modal { position: fixed; inset: 0; z-index: 90; background: var(--scrim); display: none; align-items: flex-end; justify-content: center; }
.cp-modal.open { display: flex; }
.cp-modal .box { position: relative; background: var(--card); color: var(--ink); border: 1px solid var(--line); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px; animation: cpUp .25s ease both; }
@media (min-width: 640px) { .cp-modal { align-items: center; padding: 16px; } .cp-modal .box { border-radius: 22px; } }
.cp-modal .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cp-modal h3 { margin: 4px 0 4px; font-size: 22px; font-weight: 800; }
.cp-mbook { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.cp-mbook img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px 12px 12px 6px; box-shadow: var(--shadow-up); }
@media (max-width: 480px) { .cp-mbook { grid-template-columns: 96px 1fr; gap: 14px; } .cp-modal h3 { font-size: 19px; } }
.cp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 95; max-width: calc(100% - 32px); text-align: center; }
.cp-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .cp-toast { bottom: 92px; } }

/* ── 13. MOTION (student-ui.css, unchanged) ────────────────────────── */
@keyframes cpRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cpFlame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes cpUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cp-rise { animation: cpRise .55s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .cp *, .cp *::before, .cp *::after { animation: none !important; transition: none !important; }
  .cp .cp-rise { opacity: 1; transform: none; }
}

/* ── 14. SKILL DRAWINGS (6 Nov 2026, round 2 — owner's items 16, 17, 19) ──
   Small hand-drawn pictures from views/classic/_art.php (one hidden sprite per page; cards say <use href="#…">).
   Lines = currentColor (--lc), soft fill = --la, paper = --lp. Six calm tints .lt0–.lt5. No filters, no blur. */
.cp .lt0 { --lt: #e5f3fb; --la: #bde3f5; --lc: #0e5f80; }
.cp .lt1 { --lt: #e3f5ee; --la: #b8e6d1; --lc: #11684a; }
.cp .lt2 { --lt: #efecfb; --la: #d6cff7; --lc: #4b3a99; }
.cp .lt3 { --lt: #fdefe6; --la: #f8d2bc; --lc: #8a4421; }
.cp .lt4 { --lt: #f7f1de; --la: #eddfb2; --lc: #6e5512; }
.cp .lt5 { --lt: #fbeaf0; --la: #f3cbd9; --lc: #8a2c4f; }
html.dark .cp .lt0 { --lt: rgba(56,189,248,.10); --la: rgba(56,189,248,.26); --lc: #a3def7; }
html.dark .cp .lt1 { --lt: rgba(52,211,153,.10); --la: rgba(52,211,153,.24); --lc: #9fe6c7; }
html.dark .cp .lt2 { --lt: rgba(167,139,250,.11); --la: rgba(167,139,250,.28); --lc: #d0c2ff; }
html.dark .cp .lt3 { --lt: rgba(251,146,90,.10); --la: rgba(251,146,90,.26); --lc: #ffc8a8; }
html.dark .cp .lt4 { --lt: rgba(234,196,90,.10); --la: rgba(234,196,90,.24); --lc: #f1da95; }
html.dark .cp .lt5 { --lt: rgba(244,114,160,.10); --la: rgba(244,114,160,.26); --lc: #ffb8d0; }

/* the faint skill drawing in every hero's corner */
.cp-hero > .cp-motif { position: absolute; right: -4px; bottom: -10px; width: 230px; height: 138px; color: var(--k, var(--brand)); opacity: .17; pointer-events: none; }
html.dark .cp-hero > .cp-motif { opacity: .22; }
@media (max-width: 760px) { .cp-hero > .cp-motif { width: 124px; height: 74px; right: -12px; bottom: -12px; opacity: .1; } }

/* the picture tile at the top of a card, with the test number on its corner */
.cp .cp-tile { --lp: #ffffff; position: relative; width: 64px; height: 64px; border-radius: 18px; background: var(--lt, var(--ks)); color: var(--lc, var(--ki)); flex: none; display: grid; place-items: center; }
html.dark .cp .cp-tile { --lp: #0f1430; }
.cp .cp-tile .art { width: 54px; height: 54px; display: block; transition: transform .3s ease; }
.cp-tc:hover .cp-tile .art { transform: rotate(-5deg) scale(1.05); }
.cp .cp-tc .cp-tile .no { position: absolute; left: -7px; bottom: -7px; min-width: 0; font-size: 15px; padding: 4px 6px 3px; border-radius: 8px; background: var(--card); color: var(--kn); box-shadow: 0 0 0 1px var(--line), 0 4px 10px -6px rgba(18,16,46,.35); }
.cp-tc::after { background: var(--lt, var(--ks)); }
.cp-tc .hd .meta { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; }
.cp-tc .hd .meta b { color: var(--ki); font-weight: 800; }
.cp .qs { width: 14px; height: 14px; flex: none; color: var(--mute); }
.cp-tc .parts .qs { align-self: center; opacity: .85; }
.cp-tc .tags span .qs { width: 13px; height: 13px; color: var(--ki); }
@media (max-width: 760px) { .cp .cp-tile { width: 56px; height: 56px; border-radius: 16px; } .cp .cp-tile .art { width: 46px; height: 46px; } }

/* Listening: the four part badges get a soft step of colour (Part 1 lightest → Part 4 strongest) */
.cp-lc .parts li:nth-child(2) i { background: color-mix(in srgb, var(--l) 22%, var(--card)); }
.cp-lc .parts li:nth-child(3) i { background: color-mix(in srgb, var(--l) 34%, var(--card)); }
.cp-lc .parts li:nth-child(4) i { background: var(--l); color: #fff; }
html.dark .cp-lc .parts li:nth-child(4) i { color: #062030; }

/* ── Listening cards: "Sticker banner" (13 Nov 2026) ─────────────────────────────────────────────
   The card Sharifjon chose from the second set of previews. A blue banner with the big test number and four small
   drawings (one for each part) like stickers; under it the four part names, the time, the score and the Start button.
   The card is printed by views/classic/listening.php; the drawings are named in includes/listening_pics.php. */
.cp-tc.cp-ls5 { --ld: #075e7d; --l5-btn: #006f94; --l5-on: #fff; padding: 0; gap: 0; }
html.dark .cp-tc.cp-ls5 { --ld: #0b4a63; --l5-btn: var(--l); --l5-on: #04202b; }
.cp-tc.cp-ls5::before, .cp-tc.cp-ls5::after { display: none; }
.cp-ls5 > .ban { position: relative; flex: none; height: 96px; overflow: hidden; background: linear-gradient(120deg, var(--ld), var(--l)); }
.cp-ls5 > .ban small { position: absolute; left: 16px; top: 12px; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #fff; opacity: .88; }
.cp .cp-ls5 > .ban .no { position: absolute; left: 14px; bottom: 7px; min-width: 0; font-size: 54px; line-height: 1; font-weight: 400; color: #fff; }
.cp .cp-ls5 > .ban .no.n3 { font-size: 42px; bottom: 9px; }
.cp-ls5 .stk { position: absolute; width: 54px; height: 54px; padding: 7px; border-radius: 16px; background: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); transition: transform .25s ease; }
.cp-ls5 .stk img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cp-ls5 .stk.s1 { right: 162px; top: 26px; transform: rotate(-8deg); }
.cp-ls5 .stk.s2 { right: 112px; top: 12px; transform: rotate(5deg); }
.cp-ls5 .stk.s3 { right: 62px; top: 28px; transform: rotate(-4deg); }
.cp-ls5 .stk.s4 { right: 12px; top: 14px; transform: rotate(8deg); }
.cp-ls5:hover .stk.s1 { transform: rotate(-3deg) translateY(-2px); } .cp-ls5:hover .stk.s2 { transform: rotate(1deg) translateY(2px); }
.cp-ls5:hover .stk.s3 { transform: rotate(0deg) translateY(-3px); } .cp-ls5:hover .stk.s4 { transform: rotate(3deg) translateY(2px); }
.cp-tc.cp-ls5 > .bd { position: static; z-index: auto; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px 14px; }   /* static: the part links and the save button must lie above the card's own link */
.cp-tc.cp-ls5 .hd { align-items: flex-start; gap: 10px; padding-right: 0; }
.cp-ls5 .hd h3 { flex: 1; min-width: 0; padding-top: 6px; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.cp-tc.cp-ls5 .save { position: relative; top: auto; right: auto; flex: none; }
.cp-ls5 .parts { margin: 0; gap: 3px; }
.cp-ls5 .parts a { align-items: flex-start; }
.cp-ls5 .parts i { transform: none; margin-top: 1px; }
.cp-ls5 .parts .t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; }   /* the whole name of every part is shown, on two lines if it is long */
.cp-tc.cp-ls5 .ft { margin-top: auto; padding: 10px 0 0; min-height: 0; gap: 6px 8px; border-top: 1px solid var(--line2); }
.cp-ls5 .ft .meta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-ls5 .ft .st { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.cp-ls5 .ft .st:empty { display: none; }
.cp-ls5 .l5-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; background: var(--sub); color: var(--body); font-size: 11.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-ls5 .l5-chip.map { background: var(--gold-soft); color: var(--gold-txt); }
.cp-ls5 .l5-chip.done { background: var(--ok-soft); color: var(--ok); }
.cp-ls5 .l5-chip.band { background: var(--l-soft); color: var(--l-ink); }
.cp-ls5 .l5-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 15px; border-radius: 11px; background: var(--l5-btn); color: var(--l5-on); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.cp-ls5 .l5-btn.ghost { background: none; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.cp-ls5 .l5-btn svg { transition: transform .2s; }
.cp-ls5:hover .l5-btn svg { transform: translateX(3px); }
.cp-ls5 .cp-lps { margin: 0; }
@media (max-width: 760px) { .cp-tc.cp-ls5 { padding: 0; } }
@media (max-width: 359px) { .cp-ls5 .stk { width: 46px; height: 46px; padding: 6px; border-radius: 14px; } .cp-ls5 .stk.s1 { right: 138px; } .cp-ls5 .stk.s2 { right: 96px; } .cp-ls5 .stk.s3 { right: 54px; } }   /* very narrow phones: smaller stickers, so they never touch the number */
@media (prefers-reduced-motion: reduce) { .cp-ls5 .stk, .cp-ls5 .l5-btn svg { transition: none; } .cp-ls5:hover .stk.s1 { transform: rotate(-8deg); } .cp-ls5:hover .stk.s2 { transform: rotate(5deg); } .cp-ls5:hover .stk.s3 { transform: rotate(-4deg); } .cp-ls5:hover .stk.s4 { transform: rotate(8deg); } .cp-ls5:hover .l5-btn svg { transform: none; } }
html.lk-lite .cp-ls5 .stk { box-shadow: none; transition: none; }

/* Speaking: the cue card looks like a real card (ruled lines, a strip of tape) */
.cp-sc .cue { position: relative; border: 1px solid var(--line); border-radius: 6px 6px 12px 12px; padding: 16px 14px 12px; margin-top: 4px; transform: rotate(-.6deg);
  background: var(--card) repeating-linear-gradient(transparent 0 23px, color-mix(in srgb, var(--s) 18%, transparent) 23px 24px); background-position: 0 6px; box-shadow: 0 6px 14px -10px rgba(18,16,46,.35); }
.cp-sc .cue::before { content: ""; position: absolute; left: 50%; top: -7px; width: 64px; height: 14px; margin-left: -32px; background: color-mix(in srgb, var(--s) 30%, transparent); border-radius: 2px; transform: rotate(2deg); }
.cp-sc .cue .cp-lab { display: flex; align-items: center; gap: 5px; color: var(--s-ink); }
.cp-sc .cue p { line-height: 24px; margin-top: 2px; }
.cp-sc .tags span.k { display: inline-flex; align-items: center; gap: 4px; }

@media (prefers-reduced-motion: reduce) { .cp-tc:hover .cp-tile .art { transform: none; } .cp-sc .cue { transform: none; } }

/* ── 15. GRAMMAR topic list (6 Nov 2026, item 22): "By level" / "By topic", progress as three sentence blocks ── */
#cp-gview[data-gv="level"] .cp-gv-group, #cp-gview[data-gv="group"] .cp-gv-level { display: none; }
.cp-gv-level, .cp-gv-group { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 760px) { .cp-gv-level, .cp-gv-group { gap: 14px; } }
.cp .cp-gt2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.cp .cp-gt2 a, .cp .cp-gt2 .soon { gap: 12px; padding: 12px 12px 12px 12px; background: var(--card); border-left: 3px solid var(--gc); }
.cp .cp-gt2 a > .cp-ic { color: var(--mute); transition: transform .2s; }
.cp .cp-gt2 a:hover > .cp-ic { transform: translateX(3px); color: var(--ink); }
.cp-gt2 .tt b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.cp-gt2 .gp { display: flex; align-items: center; gap: 8px; margin-top: 7px; min-width: 0; }
.cp-gt2 .blk { display: inline-flex; gap: 3px; flex: none; }
.cp-gt2 .blk i { width: 22px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 60%, transparent) var(--v), var(--line) 0); }
.cp-gt2 .blk i:nth-child(2) { width: 18px; } .cp-gt2 .blk i:nth-child(3) { width: 26px; }
.cp-gt2 .blk i.full { background: var(--gold-fill); }
.cp-gt2 .gs { font-size: 11.5px; color: var(--mute); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gt2 .gs .ok { color: var(--ok); }
.cp-gt2 li.is-done .em { box-shadow: 0 0 0 2px var(--gold-fill); }
.cp-glv .lvb { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--gc); color: #fff; font-family: var(--num-font); font-size: 20px; box-shadow: 6px 6px 0 -1px color-mix(in srgb, var(--gc) 28%, transparent); }
.cp-glv .cp-ghead .cp-lab { color: var(--gc); }
html.dark .cp-glv .cp-ghead .cp-lab { color: color-mix(in srgb, var(--gc) 55%, #fff); }
.cp-glbar { height: 6px; border-radius: 99px; background: var(--line2); margin: -2px 0 14px; overflow: hidden; }
.cp-glbar i { display: block; height: 100%; border-radius: 99px; background: var(--gc); }

/* ── 16. WORD LIBRARY book cards (6 Nov 2026, item 14): three real words of the book as word tiles ── */
.cp .cp-book2 { align-items: flex-start; }
.cp .cp-book2 > img { transition: transform .3s ease; transform-origin: 0 100%; }
.cp .cp-book2:hover > img { transform: rotate(-4deg) translateY(-2px); }
.cp .cp-book .tt span.wt { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cp .cp-book2 .wt i { font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 8px 4px; border-radius: 6px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 2px 0 color-mix(in srgb, var(--bc) 45%, var(--line)); transform: rotate(-1.5deg); transition: transform .2s ease; }
.cp .cp-book2 .wt i:nth-child(2) { transform: rotate(1.2deg); } .cp .cp-book2 .wt i:nth-child(3) { transform: rotate(-.6deg); }
.cp .cp-book2:hover .wt i { transform: translateY(-2px); }
html.dark .cp .cp-book2 .wt i { background: rgba(255,255,255,.05); }
@media (prefers-reduced-motion: reduce) { .cp .cp-book2:hover > img, .cp .cp-book2:hover .wt i { transform: none; } }
.cp-hero > .cp-motif.top { top: 8px; bottom: auto; }

/* ── 17. LITE MODE (6 Nov 2026, NOV6B rule 10): weak phones/laptops (html.lk-lite, set by look.php) get no rise-in motion,
   no hover lifts and no night-sky background layers. Everything still shows at once. ── */
html.lk-lite .cp .cp-rise { animation: none; }
html.lk-lite .cp { background-image: none; }
html.lk-lite .cp .cp-lift:hover, html.lk-lite .cp-tc:hover .cp-tile .art, html.lk-lite .cp-tc:hover .cp-rc .e:nth-child(2), html.lk-lite .cp-pc:hover { transform: none; }
html.lk-lite .cp-tc::after { transition: none; }
/* writing: the chart and pen signs (item 19); the Task 2 box looks like lined writing paper */
.cp-wcover .ty { display: inline-flex; align-items: center; gap: 5px; }
.cp-tc .task .cp-lab > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.cp-tc.W .task { background: var(--card) repeating-linear-gradient(transparent 0 20px, color-mix(in srgb, var(--w) 12%, transparent) 20px 21px); background-position: 0 24px; border-left: 3px solid color-mix(in srgb, var(--w) 45%, transparent); }
.cp-tc.W .task .clamp { line-height: 21px; }

/* ── 18. SKILL HEROES (6 Nov 2026, round 3, HEROES helper hr9) ─────────────────────────────────────────────
   Drawn by views/classic/_heroes.php. Kept in this file (not a file of its own) so it rides in the page's ONE style sheet
   (includes/asset_bundle.php). Every class starts with "cph". */
.cp .cph { --paper: #ffffff; --cph-ki: #ffffff; --bar-o: #c9c6e0; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 34px; align-items: center; padding: 32px 34px; border-radius: 24px; background: var(--hero-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
html.dark .cp .cph { --paper: #131a3a; --cph-ki: #0a0820; --bar-o: #5d628a; }
.cp .cph.L, .cp .cph.S, .cp .cph.G { --cph-ki: #0a0820; }
.cp .cph::before { content: ""; position: absolute; right: -80px; top: -150px; width: 540px; height: 540px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--k) 16%, transparent), transparent 62%); }
.cp .cph > * { position: relative; min-width: 0; }

/* ── left: the words ── */
.cph-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--lab-font); font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ki); }
.cph-kick .cp-ic { color: var(--k); }
.cp .cph h1 { margin: 12px 0 0; font-size: 42px; font-weight: 800; letter-spacing: -.025em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.cp .cph h1 em { font-style: normal; color: var(--kn); }
.cph-lead { margin: 12px 0 0; font-size: 16px; line-height: 1.45; color: var(--body); max-width: 470px; }
.cph-lead b { color: var(--ink); }
.cph-prog { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--mute); max-width: 470px; }
.cph-prog > span:first-child, .cph-prog > span:last-child { white-space: nowrap; }
.cph-prog b { color: var(--ink); font-weight: 800; }
.cph-prog .bar { flex: 1; min-width: 60px; height: 8px; border-radius: 99px; background: var(--ring-track); overflow: hidden; }
.cph-prog .bar i { display: block; height: 100%; border-radius: 99px; background: var(--k); transform-origin: left; transform: scaleX(var(--p, 0)); }
.cph-prog .n { font: 400 21px/1 var(--num-font); color: var(--kn); vertical-align: -2px; margin-left: 2px; }
.cph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cph-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--body); white-space: nowrap; }
.cph-chip b { font: 400 17px/1 var(--num-font); color: var(--ink); letter-spacing: .01em; }
.cph-chip .cp-ic { color: var(--k); }
.cph-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.cp .cph .cp-btn.cph-key { min-height: 50px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 800; color: var(--cph-ki); gap: 10px; }
.cp .cph .cp-btn.cph-key .cp-ic { transition: transform .2s; }
.cp .cph .cp-btn.cph-key:hover .cp-ic { transform: translateX(3px); }
.cph-line { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 800; font-size: 14.5px; color: var(--body) !important; text-decoration: none !important; }
.cph-line::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--k); transform: scaleX(.3); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cph-line:hover::after, .cph-line:focus-visible::after { transform: scaleX(1); }
.cph-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.cph-more .cp-btn { min-height: 36px; }
.cph-more .hint { width: 100%; margin: 2px 0 0; font-size: 12.5px; color: var(--mute); }
.cph-note { margin: 10px 0 0; font-size: 12.5px; color: var(--mute); }
.cph-note a { font-weight: 700; }

/* ── right: the paper ── */
.cph-ppr { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-up); min-width: 0; }
.cph-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; min-width: 0; }
.cph-hd .cp-lab { color: var(--ki); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cph-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--ks); color: var(--ki); white-space: nowrap; }
.cph-tag.gold { background: var(--gold-soft); color: var(--gold-txt); }
.cph-slip { font-family: Inter, system-ui, sans-serif; position: relative; display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 13px; background: var(--gold-soft); border: 1px solid rgba(240,180,41,.55);
  font-size: 13.5px; line-height: 1.4; color: var(--ink) !important; text-decoration: none !important; }
.cph-slip > .cp-ic { color: var(--gold-txt); flex: none; align-self: flex-start; margin-top: 2px; }
.cph-slip .cph-tx { flex: 1; min-width: 0; }
.cph-slip .cp-lab { display: block; font-size: 9px; color: var(--gold-txt); margin-bottom: 2px; }
.cph-slip b { font-weight: 800; }
.cph-slip .m { color: var(--body); }
.cph-slip .cph-go { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--gold-fill); color: var(--gold-ink); font-weight: 800; font-size: 12.5px; }
a.cph-slip:hover .cph-go .cp-ic { transform: translateX(2px); }
.cph-slip .cph-go .cp-ic { transition: transform .2s; }
.cph-slip.late { border-color: var(--bad); }

/* ════════ LISTENING · PART BY PART ════════ */
.cph-pb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cph-pc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 8px 11px; border-radius: 14px; background: var(--sub); border: 1px solid var(--line); text-align: center; min-width: 0; }
.cph-pc.weak { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold-fill) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-fill) 70%, transparent); }
.cph-pc .flag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); white-space: nowrap; }
.cph-pc .top { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.cph-pc .top i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 400 12px/1 var(--num-font); font-style: normal; background: color-mix(in srgb, var(--k) calc(var(--t) * 100%), var(--card)); color: var(--cph-pt, var(--ki)); }
.cph-pc .top i.dk { --cph-pt: #fff; }
html.dark .cph-pc .top i.dk { --cph-pt: #0a0820; }
.cph-ring { position: relative; width: 70px; height: 70px; }
.cph-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.cph-ring .tr { stroke: var(--ring-track); }
.cph-ring .vl { stroke: var(--k); }
.cph-pc.weak .cph-ring .vl { stroke: var(--gold-fill); }
.cph-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 20px/1 var(--num-font); font-weight: 400; color: var(--kn); letter-spacing: .01em; }
.cph-ring b small { font: 700 10px/1 Inter, sans-serif; color: var(--mute); margin: 5px 0 0 1px; }
.cph-pc.weak .cph-ring b { color: var(--gold-num); }
.cph-pc .who { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--body); line-height: 1.25; }
.cph-pc .who svg { flex: none; color: var(--k); }
.cph-pc .ds { font-size: 11px; color: var(--mute); font-weight: 600; line-height: 1.3; }
.cph-pc .ty { width: 100%; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 10.5px; line-height: 1.3; font-weight: 700; color: var(--body); }
.cph-pc .ty b { font: 400 13px/1 var(--num-font); color: var(--kn); }
.cph-dots { display: grid; grid-template-columns: repeat(5, 9px); gap: 4px; justify-content: center; }
.cph-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--mute) 55%, transparent); }
.cph-dots i.r { background: var(--k); border-color: var(--k); }
.cph-dots i.b { border-style: dashed; opacity: .6; }
.cph-pc.weak .cph-dots i.r { background: var(--gold-fill); border-color: var(--gold-fill); }
.cph-key2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--mute); }
.cph-key2 span { display: inline-flex; align-items: center; gap: 5px; }
.cph-key2 i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--mute) 55%, transparent); }
.cph-key2 i.r { background: var(--k); border-color: var(--k); }
.cph-key2 i.b { border-style: dashed; opacity: .6; }
.cph-tot { display: flex; justify-content: space-between; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; font-weight: 700; color: var(--mute); }
.cph-tot b { color: var(--ink); }
.cph-tot .n { font: 400 21px/1 var(--num-font); color: var(--kn); vertical-align: -2px; }
.cph-tot .g { font: 400 21px/1 var(--num-font); color: var(--gold-num); vertical-align: -2px; }

/* ════════ WRITING · ONE HOUR ════════ */
.cph-wtwo { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.cph-wtwo .cph-ppr { padding: 12px 14px; display: flex; flex-direction: column; }
.cph-chart { position: relative; flex: 1; display: grid; place-items: center; border-radius: 10px; background: #fff; overflow: hidden; aspect-ratio: 16 / 9; }
html.dark .cph-chart { background: #0f1430; }
.cph-chart img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cph-chart img.dk { display: none; }
html.dark .cph-chart.has-dk img.lt { display: none; } html.dark .cph-chart.has-dk img.dk { display: block; }
.cph-t1n { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--body); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cph-t2q { flex: 1; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink);
  background: repeating-linear-gradient(transparent 0 25px, color-mix(in srgb, var(--k) 14%, transparent) 25px 26px); }
.cph-t2q::before { content: "“"; font: 400 30px/0 Georgia, serif; color: var(--k); vertical-align: -10px; margin-right: 3px; }
.cph-wft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; font-weight: 700; color: var(--mute); }
.cph-stamp { position: absolute; right: -8px; top: -12px; z-index: 2; transform: rotate(-9deg); border: 2.5px solid var(--w); border-radius: 12px; padding: 4px 10px 3px; text-align: center; background: var(--paper); color: var(--w-ink); }
.cph-stamp b { display: block; font: 400 24px/1 var(--num-font); color: var(--w-num); }
.cph-stamp small { font-family: var(--lab-font); font-weight: 700; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.cph-tline { margin-top: 14px; }
.cph-tline .bar { display: grid; grid-template-columns: 1fr 2fr; gap: 4px; height: 36px; }
.cph-tline .bar span { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px; border-radius: 10px; font-weight: 800; font-size: 12.5px; transform-origin: left; min-width: 0; white-space: nowrap; overflow: hidden; }
.cph-tline .bar .a { background: var(--w-soft); color: var(--w-ink); }
.cph-tline .bar .b { background: var(--w); color: #fff; }
html.dark .cph-tline .bar .b { color: #0a0820; }
.cph-tline .bar span b { font: 400 17px/1 var(--num-font); }
.cph-tline .sc { display: grid; grid-template-columns: 1fr 2fr; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--mute); }
.cph-tline .sc span:last-child { display: flex; justify-content: space-between; }
.cph-tline .note { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--body); }
.cph-tline .note b { color: var(--w-ink); }

/* ════════ READING · PASSAGE + QUESTION TYPE ════════ */
.cph-psg h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.cph-psg .tx { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.62; color: var(--body); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cph-psg .tx .pl { font-family: var(--lab-font); font-weight: 700; font-size: 10px; color: var(--r-ink); margin-right: 6px; }
.cph-q { margin-top: 12px; padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line); background: var(--sub); }
.cph-q .ins { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.cph-q p { margin: 0 0 9px; font-size: 14px; font-weight: 600; line-height: 1.42; color: var(--ink); }
.cph-q p .gap { display: inline-block; min-width: 70px; border-bottom: 2px solid var(--k); margin: 0 3px; vertical-align: -2px; }
.cph-op { display: flex; gap: 6px; flex-wrap: wrap; }
.cph-op a { height: 32px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); display: inline-flex; align-items: center; font-weight: 800; font-size: 11.5px; letter-spacing: .04em; color: var(--body) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.cph-op a:hover { border-color: var(--k); transform: translateY(-1px); }
.cph-ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.cph-ol a { display: flex; gap: 8px; align-items: baseline; padding: 6px 9px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--body) !important; text-decoration: none !important; min-width: 0; }
.cph-ol a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cph-ol a b { flex: none; font-weight: 800; color: var(--ki); }
.cph-ol a:hover { border-color: var(--k); }

/* ════════ SPEAKING · EXAMINER CHAT ════════ */
.cph-chat { display: grid; gap: 8px; }
.cph-bub { max-width: 86%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; min-width: 0; }
.cph-bub .cp-lab { display: block; font-size: 8.5px; color: var(--s-ink); margin-bottom: 3px; }
.cph-bub.ex { justify-self: start; display: flex; gap: 10px; align-items: center; background: var(--sub); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.cph-bub.ex .tx { min-width: 0; }
.cph-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--s); color: #1a0f00; transition: transform .15s; }
.cph-play:hover { transform: scale(1.06); }
.cph-play .pa { display: none; }
.cph-play.on .pl { display: none; } .cph-play.on .pa { display: block; }
.cph-bub.me { justify-self: end; display: flex; align-items: center; gap: 10px; background: var(--s); color: #1a0f00; border-bottom-right-radius: 5px; font-weight: 800; }
.cph-bub.me .rec { position: relative; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.5); display: grid; place-items: center; flex: none; }
.cph-bub.me .lv { display: inline-flex; gap: 2px; align-items: center; height: 16px; }
.cph-bub.me .lv i { width: 3px; height: 100%; border-radius: 2px; background: #1a0f00; opacity: .5; transform: scaleY(var(--h)); }
.cph-bub.cue { justify-self: start; max-width: 94%; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--s); box-shadow: var(--shadow); color: var(--ink); }
.cph-bub.cue b { display: block; }
.cph-bub.cue ul { margin: 5px 0 0; padding-left: 17px; font-size: 12.5px; color: var(--body); }
.cph-bub.cue small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--mute); font-weight: 700; }
.cph-crit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.cph-crit span { display: grid; gap: 2px; padding: 7px 4px 6px; border-radius: 10px; background: var(--sub); border: 1px solid var(--line); text-align: center; font-size: 10.5px; font-weight: 700; color: var(--mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cph-crit span b { font: 400 18px/1 var(--num-font); color: var(--s-num); }
.cph-crit span.low { border: 2px solid var(--gold-fill); background: var(--gold-soft); color: var(--gold-txt); padding: 6px 3px 5px; }
.cph-crit span.low b { color: var(--gold-num); }

/* ════════ GRAMMAR · RULE CARD + LEVELS ════════ */
.cph-rule h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.cph-rule h3 small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--mute); letter-spacing: 0; }
.cph-rule .sum { margin: 6px 0 10px; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--body); }
.cph-ex { padding: 9px 12px; border-radius: 12px; background: var(--sub); border: 1px solid var(--line); font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.cph-ex + .cph-ex { margin-top: 6px; }
.cph-ex em { font-style: normal; font-weight: 800; color: var(--ok); background-image: linear-gradient(var(--gold-fill), var(--gold-fill)); background-size: 100% 2.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; }
.cph-ex small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.cph-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cph-langs span { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.cph-langs span.on { background: var(--ok); color: #fff; }
html.dark .cph-langs span.on { color: #04140d; }
.cph-lvh { margin-top: 13px; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.cph-lvl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.cph-lvl a { position: relative; display: grid; gap: 3px; padding: 8px 4px 7px; border-radius: 11px; background: var(--sub); border: 1px solid var(--line); text-align: center; font-size: 10.5px; font-weight: 700; color: var(--mute) !important; text-decoration: none !important; min-width: 0; }
.cph-lvl a b { font: 400 18px/1 var(--num-font); color: var(--ink); }
.cph-lvl a i { display: block; height: 4px; margin: 2px 6px 0; border-radius: 4px; background: var(--ring-track); overflow: hidden; }
.cph-lvl a i::after { content: ""; display: block; height: 100%; background: var(--ok); transform-origin: left; transform: scaleX(var(--v, 0)); }
.cph-lvl a.me { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok) !important; }
.cph-lvl a.me b { color: var(--ok); }
.cph-lvl a.me::after { content: attr(data-me); position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: var(--gold-fill); color: var(--gold-ink); white-space: nowrap; }
.cph-lvl a:hover { border-color: var(--k); }

/* ── motion: once, transform + opacity only ── */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lk-lite) .cph-ppr, html:not(.lk-lite) .cph-wtwo > .cph-ppr { animation: cphUp .6s cubic-bezier(.2,.8,.2,1) .08s both; }
  html:not(.lk-lite) .cph-wtwo > .cph-ppr + .cph-ppr { animation-delay: .18s; }
  html:not(.lk-lite) .cph-prog .bar i, html:not(.lk-lite) .cph-tline .bar span, html:not(.lk-lite) .cph-lvl a i::after { animation: cphGrow .9s cubic-bezier(.2,.8,.2,1) .3s both; }
  html:not(.lk-lite) .cph-tline .bar .b { animation-delay: .5s; }
  html:not(.lk-lite) .cph-pc { animation: cphUp .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.2s + var(--i, 0) * .09s); }
  html:not(.lk-lite) .cph-dots i { animation: cphPop .35s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.55s + var(--d, 0) * 16ms); }
  html:not(.lk-lite) .cph-slip { animation: cphUp .5s cubic-bezier(.2,.8,.2,1) .7s both; }
  html:not(.lk-lite) .cph-bub { animation: cphUp .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.2s + var(--i, 0) * .35s); }
  html:not(.lk-lite) .cph-op a, html:not(.lk-lite) .cph-ol li { animation: cphPop .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.55s + var(--i, 0) * .08s); }
  html:not(.lk-lite) .cph-stamp { animation: cphStamp .5s cubic-bezier(.2,.8,.2,1) .9s both; }
}
@keyframes cphUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cphPop { 0% { opacity: 0; transform: scale(.5); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cphGrow { from { transform: scaleX(0); } }
@keyframes cphStamp { 0% { opacity: 0; transform: scale(.4) rotate(-9deg); } 70% { transform: scale(1.08) rotate(-9deg); } 100% { opacity: 1; transform: scale(1) rotate(-9deg); } }
html.lk-lite .cp .cph { box-shadow: none; }
html.lk-lite .cph-ppr { box-shadow: none; }
html.lk-lite .cp .cph::before { display: none; }

/* ── laptops below 1100, tablets, phones ── */
@media (max-width: 1100px) { .cp .cph h1 { font-size: 36px; } .cp .cph { gap: 26px; padding: 28px; } }
@media (max-width: 1000px) { .cp .cph { grid-template-columns: minmax(0, 1fr); } .cph-lead, .cph-prog { max-width: none; } }
@media (max-width: 760px) {
  .cp .cph { padding: 20px 16px 18px; gap: 20px; border-radius: 20px; }
  .cp .cph::before { width: 360px; height: 360px; right: -140px; top: -170px; }
  .cp .cph h1 { font-size: 29px; line-height: 1.1; margin-top: 10px; }
  .cph-lead { font-size: 14.5px; margin-top: 8px; }
  .cph-acts { margin-top: 18px; gap: 10px 14px; }
  .cph-acts .cp-btn.cph-key { flex: 1 1 100%; }
  .cph-more { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-top: 12px; padding-bottom: 2px; }
  .cph-more::-webkit-scrollbar { display: none; }
  .cph-more > * { flex: none; }
  .cph-more .cp-btn { min-height: 36px; padding: 0 11px; font-size: 12.5px; }
  .cph-more .hint { flex: none; width: auto; white-space: normal; }
  .cph-ppr { padding: 14px 12px; border-radius: 16px; }
  .cph-pb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .cph-wtwo { grid-template-columns: minmax(0, 1fr); }
  .cph-tline .bar span { font-size: 11.5px; padding: 0 9px; }
  .cph-psg h3 { font-size: 18px; }
  .cph-bub { max-width: 94%; font-size: 13.5px; }
  .cph-crit span { font-size: 9.5px; }
  .cph-lvl a { font-size: 9.5px; padding: 7px 2px 6px; }
  .cph-ex { font-size: 14px; }
}
@media (max-width: 380px) { .cph-chip { font-size: 12px; padding: 0 10px; } .cph-tot { font-size: 12px; } }

/* ── 19. GRAMMAR: the 12-tense map and richer topic cards (16 Nov 2026, owner: "explain every single tense separately") ── */
.cp-gt2 .fm { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--gc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gc) 28%, transparent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-gt2 .sm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: 12.5px; line-height: 1.4; font-weight: 500; color: var(--body); }
.cp-tmap .tm { display: flex; flex-direction: column; gap: 10px; }
.cp-tmap .tm-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: stretch; }
.cp-tmap .tm-h { border-radius: 14px; padding: 10px; background: var(--tc); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.cp-tmap .tm-h b { font-size: 15px; } .cp-tmap .tm-h small { font-size: 11.5px; font-weight: 700; opacity: .85; }
.cp-tmap .tm-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cp-tmap .tm-c { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 11px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--tc); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .15s; }
.cp-tmap a.tm-c:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: var(--tc); }
.cp-tmap .tm-c.soon { opacity: .55; border-style: dashed; }
.cp-tmap .tm-c.done { box-shadow: inset 0 0 0 2px var(--gold-fill); }
.cp-tmap .tm-e { position: absolute; right: 9px; top: 8px; font-size: 17px; }
.cp-tmap .tm-n { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: color-mix(in srgb, var(--tc) 80%, var(--ink)); padding-right: 22px; }
.cp-tmap .tm-c b { font-size: 14px; line-height: 1.25; }
.cp-tmap .tm-f { font-size: 12px; color: var(--body); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-tmap .tm-s { font-size: 12px; letter-spacing: 1px; color: var(--line); } .cp-tmap .tm-s i { font-style: normal; } .cp-tmap .tm-s i.on { color: var(--gold-fill); }
html.dark .cp-tmap .tm-n { color: color-mix(in srgb, var(--tc) 55%, #fff); } html.dark .cp-tmap .tm-s { color: rgba(255,255,255,.2); }
.cp-tmap .tm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--mute); }
.cp-tmap .tm-more a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 99px; background: var(--sub); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cp-tmap .tm-more a:hover { border-color: var(--ink); }
@media (max-width: 760px) {
  .cp-tmap .tm-row { grid-template-columns: 1fr; gap: 6px; }
  .cp-tmap .tm-h { flex-direction: row; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 11px; }
  .cp-tmap .tm-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

