:root{--blue:#3157d5;--blue-dark:#2344bb;--navy:#142343;--ink:#202b43;--muted:#65718a;--line:#e4e9f1;--canvas:#f6f8fc;--pale:#eef3ff;--mint:#dff5ee;--gold:#f3bf4d;--white:#fff;--green:#16845d;--red:#c94b53;--shadow:0 16px 38px rgba(27,47,91,.10);--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:'DM Sans',Arial,sans-serif;background:#fff;font-size:15px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,select{ -webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}.site-header{height:76px;padding:0 max(4.5vw,24px);display:flex;align-items:center;gap:28px;border-bottom:1px solid #edf0f5;background:#fff;position:sticky;top:0;z-index:30}.wordmark{display:inline-flex;align-items:center;gap:10px;flex-shrink:0}.wordmark-mark{display:inline-flex;width:34px;height:34px}.wordmark-mark svg{width:100%;height:100%;fill:none;stroke:var(--blue);stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.wordmark-text{font-family:Manrope,'DM Sans',sans-serif;font-size:14px;color:var(--navy);line-height:1.1;font-weight:600;letter-spacing:-.04em}.wordmark-text b{display:block;font-weight:800}.main-nav{display:flex;gap:22px;align-items:center;white-space:nowrap}.main-nav a{font-size:13px;font-weight:600;color:#526079}.main-nav a:hover,.login-link:hover{color:var(--blue)}.header-search{height:42px;max-width:380px;flex:1;display:flex;align-items:center;border:1px solid #dfe5ef;border-radius:9px;overflow:hidden;margin-left:auto;background:#f9fafc}.header-search svg{width:17px;height:17px;margin-left:13px;fill:none;stroke:#73809a;stroke-width:1.7}.header-search input{min-width:0;border:0;background:transparent;outline:0;padding:0 10px;flex:1;font-size:12px}.header-search button{height:100%;border:0;border-left:1px solid #e1e6ef;background:#fff;padding:0 15px;color:var(--blue);font-size:12px;font-weight:700}.header-actions{display:flex;align-items:center;gap:13px;white-space:nowrap}.header-actions select{background:transparent;border:0;color:#526079;font-size:11px;outline:0;cursor:pointer}.icon-button{width:31px;height:34px;display:grid;place-items:center;position:relative}.icon-button svg{width:20px;height:20px;fill:none;stroke:#56647d;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.cart-count{position:absolute;right:-5px;top:-1px;min-width:16px;height:16px;padding:0 4px;display:grid;place-items:center;border-radius:20px;background:var(--blue);color:#fff;font-size:9px}.login-link{font-size:12px;font-weight:700;color:#394762}.button{border:0;border-radius:8px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;transition:.18s ease}.button-primary{background:var(--blue);color:white;box-shadow:0 4px 9px rgba(49,87,213,.13)}.button-primary:hover{background:var(--blue-dark);transform:translateY(-1px)}.button-outline{background:#fff;border:1px solid #cfd7e5;color:var(--blue)}.button-outline:hover{border-color:var(--blue);background:#f7f9ff}.button-soft{background:#edf2ff;color:var(--blue)}.button-small{min-height:36px;padding:0 13px;font-size:12px;border-radius:7px}.button-large{min-height:50px;padding:0 23px}.button-dark{background:var(--navy);color:#fff}.mobile-menu-button,.mobile-menu{display:none}.container{width:min(1190px,calc(100% - 48px));margin:0 auto}.narrow{width:min(800px,calc(100% - 48px));margin:0 auto}.eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:var(--blue)}.h1,.h2,.h3{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.045em;color:var(--navy);line-height:1.15;margin:0}.h1{font-weight:800;font-size:clamp(35px,4.3vw,56px)}.h2{font-weight:800;font-size:clamp(25px,3vw,34px)}.h3{font-weight:700;font-size:20px}.subtle{color:var(--muted)}.section{padding:62px 0}.section-tight{padding:36px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.section-heading p{margin:9px 0 0;color:var(--muted);font-size:14px}.text-link{color:var(--blue);font-weight:700;font-size:13px}.text-link:hover{text-decoration:underline}.hero{background:linear-gradient(111deg,#f2f6ff 0%,#f9fbff 53%,#edf4ff 100%);overflow:hidden;position:relative}.hero-inner{min-height:440px;padding:74px 0 63px;display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:24px}.hero-copy{position:relative;z-index:1}.hero-copy .eyebrow{margin-bottom:16px}.hero-copy .h1{max-width:580px}.hero-copy .h1 span{color:var(--blue)}.hero-copy>p{color:#5f6b83;max-width:480px;font-size:16px;margin:19px 0 25px}.hero-ctas{display:flex;gap:11px;align-items:center}.hero-meta{display:flex;align-items:center;gap:14px;margin-top:28px;color:#65718a;font-size:11px}.avatar-stack{display:flex;padding-left:3px}.avatar-stack span{width:25px;height:25px;border-radius:50%;border:2px solid #f6f8fe;margin-left:-5px;display:grid;place-items:center;background:#dce5ff;font-size:11px}.hero-visual{height:310px;position:relative}.hero-art-card{position:absolute;border-radius:18px;box-shadow:0 18px 42px rgba(47,77,141,.13);background:#fff}.hero-art-main{width:310px;height:238px;right:35px;top:35px;padding:19px;transform:rotate(2deg)}.art-top{height:120px;border-radius:12px;background:linear-gradient(135deg,#d8e4ff,#eaf2ff);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.art-sun{position:absolute;right:30px;top:20px;width:46px;height:46px;background:#ffd879;border-radius:50%}.art-hill{position:absolute;bottom:-28px;width:190px;height:100px;border-radius:50% 50% 0 0;background:#92b4ef;left:-15px;transform:rotate(-8deg)}.art-hill.second{left:120px;bottom:-39px;background:#6b8ede;transform:rotate(14deg)}.art-book{position:relative;z-index:1;font-size:44px;filter:drop-shadow(0 8px 5px #6881bc55)}.art-meta{display:flex;justify-content:space-between;margin-top:14px;font-size:10px;color:#7a8599}.art-title{font-family:Manrope;font-weight:800;font-size:14px;color:var(--navy);margin-top:4px}.art-bars{display:flex;gap:5px;margin-top:12px}.art-bars i{height:5px;border-radius:8px;background:#e7edf8;width:17%}.art-bars i:first-child{background:var(--blue);width:45%}.hero-float{padding:13px 15px;display:flex;align-items:center;gap:11px;font-size:11px}.hero-float strong{display:block;color:var(--navy);font-size:13px}.hero-float span:last-child{color:#73809a}.float-one{top:9px;left:8px}.float-two{bottom:4px;right:8px}.float-three{left:0;bottom:23px}.float-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;font-size:17px;background:#ecf2ff}.float-one .float-icon{background:#e3f7ef}.trust-row{padding:19px 0;border-top:1px solid #e6ebf4;display:flex;justify-content:center;gap:35px;flex-wrap:wrap;color:#69768e;font-size:11px}.trust-row span{display:flex;align-items:center;gap:8px}.trust-row b{color:var(--navy)}.search-panel{max-width:820px;margin:32px auto 0;padding:9px;display:flex;gap:8px;background:#fff;border:1px solid #e5e9f1;border-radius:12px;box-shadow:0 9px 25px rgba(37,59,104,.08)}.search-panel input{flex:1;min-width:0;border:0;outline:0;padding:0 14px;font-size:13px}.search-panel select{border:0;border-left:1px solid #edf0f5;padding:0 13px;color:#596680;outline:0;background:#fff;font-size:12px}.search-panel .button{height:46px}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:13px}.category-card{border:1px solid var(--line);border-radius:12px;padding:16px 12px;display:flex;align-items:center;gap:11px;transition:.2s;background:#fff;min-height:77px}.category-card:hover{border-color:#b9c8f5;transform:translateY(-2px);box-shadow:0 8px 18px #2745810e}.category-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;font-size:20px;background:#eef3ff}.category-card strong{display:block;font-size:12px;color:var(--navy)}.category-card small{font-size:10px;color:#7e899d}.resource-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.resource-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:white;transition:.2s;min-width:0}.resource-card:hover{box-shadow:0 12px 26px rgba(24,49,103,.09);transform:translateY(-3px)}.resource-cover{height:156px;position:relative;display:grid;place-items:center;overflow:hidden}.cover-visual{width:76%;height:79%;border-radius:10px;box-shadow:0 8px 17px #1e355422;display:flex;flex-direction:column;justify-content:space-between;padding:13px;color:#fff;position:relative;z-index:1}.cover-visual small{font-size:8px;letter-spacing:.14em;text-transform:uppercase;font-weight:700;opacity:.9}.cover-visual strong{font-family:Manrope;font-size:16px;line-height:1.05;max-width:150px}.cover-visual span{font-size:22px;align-self:end}.cover-bg-blue{background:linear-gradient(135deg,#e1eaff,#c8d6ff)}.cover-bg-blue .cover-visual{background:linear-gradient(135deg,#2854c5,#5c81e7)}.cover-bg-peach{background:linear-gradient(140deg,#fff0dc,#ffdfc5)}.cover-bg-peach .cover-visual{background:linear-gradient(140deg,#df6d4a,#f49b63)}.cover-bg-mint{background:linear-gradient(140deg,#e6f7ef,#c6eddc)}.cover-bg-mint .cover-visual{background:linear-gradient(140deg,#268e6b,#5ab98e)}.cover-bg-lilac{background:linear-gradient(140deg,#f0eaff,#d8cffb)}.cover-bg-lilac .cover-visual{background:linear-gradient(140deg,#6e59bf,#a08de5)}.resource-badge{position:absolute;top:11px;left:11px;z-index:2;padding:4px 8px;background:#ffffffeb;border-radius:20px;color:#41516e;font-size:9px;font-weight:700}.resource-body{padding:13px 14px 14px}.resource-meta{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8791a4;font-weight:700}.resource-title{font-family:Manrope;font-size:13px;line-height:1.35;color:var(--navy);font-weight:800;display:block;margin:6px 0 8px;min-height:35px}.resource-title:hover{color:var(--blue)}.creator-line{display:flex;align-items:center;gap:6px;color:#768198;font-size:10px}.creator-avatar{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#edf1fb;color:var(--blue);font-size:9px;font-weight:700}.resource-rating{display:flex;align-items:center;gap:4px;color:#6b768c;font-size:10px;margin-top:10px}.star{color:#e9a92b}.resource-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0f5;margin-top:11px;padding-top:10px;font-size:11px;color:#68748a}.price{font-size:13px;font-weight:800;color:var(--navy)}.price.free{color:var(--green)}.pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:100px;background:#f0f3f8;color:#58657c;font-size:10px;font-weight:700}.pill-blue{background:#edf2ff;color:var(--blue)}.pill-green{background:#e8f6ef;color:#16845d}.pill-amber{background:#fff5dc;color:#9a6b0e}.pill-red{background:#fff0f0;color:#b4444a}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e6ebf2;border:1px solid #e6ebf2;border-radius:15px;overflow:hidden}.feature-tile{padding:22px;background:#fff;display:flex;gap:14px}.feature-tile>span{width:39px;height:39px;border-radius:11px;background:#edf2ff;display:grid;place-items:center;font-size:19px;flex-shrink:0}.feature-tile h3{font-size:13px;margin:1px 0 5px;color:var(--navy)}.feature-tile p{font-size:11px;color:#738098;line-height:1.55;margin:0}.banner-cta{border-radius:18px;padding:36px 42px;background:linear-gradient(115deg,#254bc0,#426de1);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:22px;overflow:hidden;position:relative}.banner-cta:after{content:"";position:absolute;right:23%;top:-80px;width:280px;height:280px;border:1px solid #ffffff29;border-radius:50%;box-shadow:0 0 0 35px #ffffff0a,0 0 0 70px #ffffff09}.banner-cta h2{font-family:Manrope;font-size:25px;letter-spacing:-.04em;line-height:1.2;margin:0 0 8px;position:relative;z-index:1}.banner-cta p{margin:0;color:#d8e1ff;font-size:13px;position:relative;z-index:1}.banner-cta .button{background:#fff;color:var(--blue);position:relative;z-index:1;flex-shrink:0}.site-footer{background:#f6f8fc;border-top:1px solid #edf0f4}.footer-main{width:min(1190px,calc(100% - 48px));margin:auto;padding:44px 0 33px;display:grid;grid-template-columns:2fr repeat(3,1fr);gap:38px}.footer-brand p{max-width:270px;color:#6d7890;font-size:12px;margin:14px 0 8px}.footer-note{font-size:10px;color:#98a1b2}.footer-main h3{margin:0 0 15px;font-size:11px;color:#26344f}.footer-main>div:not(:first-child)>a{display:block;margin:8px 0;color:#768198;font-size:11px}.footer-main a:hover{color:var(--blue)}.wordmark-footer .wordmark-mark{width:29px;height:29px}.wordmark-footer .wordmark-text{font-size:12px}.footer-bottom{border-top:1px solid #e6eaf0;width:min(1190px,calc(100% - 48px));margin:auto;padding:15px 0 18px;color:#8a94a5;font-size:10px;display:flex;justify-content:space-between;gap:10px}.footer-bottom a{color:#66728a}.page-top{background:#f5f7fb;border-bottom:1px solid #ebeff4;padding:26px 0}.breadcrumbs{font-size:11px;color:#818ca0;margin-bottom:11px}.breadcrumbs a{color:#65728b}.breadcrumbs a:hover{color:var(--blue)}.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.page-title-row p{margin:7px 0 0;color:var(--muted);font-size:13px}.market-layout{display:grid;grid-template-columns:225px 1fr;gap:31px}.filter-sidebar{border-right:1px solid var(--line);padding-right:22px}.filter-group{padding:0 0 18px;margin-bottom:17px;border-bottom:1px solid var(--line)}.filter-group h3{font-size:12px;color:var(--navy);margin:0 0 11px}.filter-option{display:flex;align-items:center;gap:8px;color:#626e84;font-size:11px;margin:8px 0;cursor:pointer}.filter-option input{accent-color:var(--blue);width:14px;height:14px;margin:0}.filter-tags{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0 17px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.toolbar select,.field,.field-select,.field-textarea{height:42px;border:1px solid #dce2ec;border-radius:8px;padding:0 12px;outline:0;background:#fff;color:#34415b;font-size:12px}.field:focus,.field-select:focus,.field-textarea:focus,.toolbar select:focus{border-color:#9aafea;box-shadow:0 0 0 3px #3157d51a}.toolbar select{min-width:142px}.count-label{color:#79859a;font-size:11px}.empty-state{padding:70px 20px;text-align:center;color:#6f7a8f}.empty-state .emoji{font-size:36px;margin-bottom:10px}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:46px;align-items:start}.detail-cover{height:330px;border-radius:16px;display:grid;place-items:center;position:relative;overflow:hidden}.detail-cover .cover-visual{width:48%;height:77%;padding:25px}.detail-cover .cover-visual strong{font-size:25px}.detail-description{color:#68758a;font-size:13px;line-height:1.75}.detail-box{border:1px solid var(--line);border-radius:13px;padding:21px;background:white;margin-bottom:16px}.purchase-card{position:sticky;top:100px;box-shadow:0 8px 26px #1e39680c}.purchase-card .price-large{font-family:Manrope;font-size:29px;font-weight:800;color:var(--navy);margin:12px 0 3px}.purchase-card .price-large.free{color:var(--green)}.purchase-card .button{width:100%;margin-top:10px}.detail-list{list-style:none;padding:0;margin:15px 0 0}.detail-list li{display:flex;align-items:center;gap:9px;color:#65718a;font-size:11px;margin:10px 0}.check{color:var(--green);font-weight:800}.tab-row{display:flex;gap:19px;border-bottom:1px solid var(--line);margin:24px 0 18px}.tab-row button{border:0;background:none;color:#7a859a;padding:0 0 11px;font-size:12px;font-weight:700}.tab-row button.active{color:var(--blue);border-bottom:2px solid var(--blue)}.preview-sheet{background:#fffef9;border:1px solid #e8e3d5;border-radius:9px;padding:30px;min-height:235px;box-shadow:0 7px 18px #423d2b10;color:#4b5567}.preview-sheet h3{font-family:Manrope;color:#243453}.preview-sheet p{font-size:12px;line-height:1.8}.preview-watermark{font-size:9px;color:#8790a1;text-transform:uppercase;letter-spacing:.14em;border-top:1px solid #ece7d9;padding-top:12px;margin-top:22px}.reader-shell{background:#edf0f5;min-height:560px;padding:25px 0 45px}.reader-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.reader-page{width:min(760px,calc(100% - 48px));min-height:470px;background:#fffefb;margin:0 auto;padding:56px 70px;box-shadow:0 8px 25px #23385a1a;border:1px solid #eeeae0}.reader-page .reader-kicker{color:#7e8aa0;font-size:10px;letter-spacing:.16em;text-transform:uppercase}.reader-page h1{font:800 31px/1.25 Manrope;color:#243452;letter-spacing:-.04em;margin:15px 0}.reader-page p{font-size:14px;line-height:1.9;color:#526078}.reader-page .reader-illustration{margin:25px auto;width:170px;height:110px;border-radius:14px;background:linear-gradient(140deg,#dceaff,#c7d7fc);display:grid;place-items:center;font-size:46px}.reader-controls{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:17px;color:#717d92;font-size:11px}.reader-controls button{border:1px solid #dce2eb;background:#fff;color:var(--blue);border-radius:7px;height:34px;padding:0 13px}.learning-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.learning-card{border-radius:16px;overflow:hidden;border:1px solid var(--line);background:#fff}.learning-card-visual{height:210px;background:linear-gradient(130deg,#ebf0ff,#dbe5ff);display:grid;place-items:center;font-size:60px;position:relative}.learning-card-visual.mint{background:linear-gradient(130deg,#e4f5ec,#ceeddc)}.learning-card-body{padding:19px}.learning-card-body p{color:#748098;font-size:12px}.quiz-wrap{width:min(720px,calc(100% - 48px));margin:0 auto}.quiz-progress{height:7px;background:#e9edf5;border-radius:20px;overflow:hidden;margin:23px 0}.quiz-progress span{height:100%;display:block;background:var(--blue);border-radius:20px;transition:width .25s}.quiz-option{width:100%;text-align:left;background:#fff;border:1px solid #dce3ee;border-radius:9px;padding:13px 15px;margin:6px 0;color:#42506b;font-size:13px}.quiz-option:hover{border-color:#9eafe3;background:#f8faff}.quiz-option.correct{background:#e9f8f0;border-color:#67bd95;color:#166847}.quiz-option.wrong{background:#fff1f0;border-color:#e89a99;color:#a63f42}.dashboard-layout{display:grid;grid-template-columns:220px 1fr;gap:26px;padding-top:30px;padding-bottom:55px}.dash-sidebar{border:1px solid var(--line);border-radius:12px;padding:12px;height:max-content;position:sticky;top:96px}.dash-side-title{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#9aa3b2;font-weight:700;padding:9px 10px}.dash-link{display:flex;align-items:center;gap:10px;padding:10px;border-radius:7px;color:#6b778d;font-size:12px;font-weight:600}.dash-link .dash-icon{width:20px;text-align:center;font-size:14px}.dash-link.active,.dash-link:hover{background:#edf2ff;color:var(--blue)}.dash-content{min-width:0}.dash-greeting{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:16px}.dash-greeting p{color:#758198;font-size:12px;margin:6px 0 0}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:20px}.stat-card{padding:17px;border:1px solid var(--line);border-radius:11px;background:#fff}.stat-card span{display:block;color:#7c879a;font-size:10px}.stat-card strong{display:block;font:800 24px Manrope;color:var(--navy);margin:5px 0 3px}.stat-card small{color:#16845d;font-size:10px}.panel{border:1px solid var(--line);border-radius:12px;background:#fff;padding:19px;margin-bottom:18px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.panel-heading h3{font-size:13px;margin:0;color:var(--navy)}.panel-heading span{font-size:10px;color:#8791a2}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}.data-table th{text-align:left;color:#8691a3;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;padding:10px;border-bottom:1px solid #edf0f4}.data-table td{padding:12px 10px;border-bottom:1px solid #f0f2f6;color:#536078}.data-table tr:last-child td{border-bottom:0}.table-primary{font-weight:700;color:#273653!important}.table-action{border:0;background:none;color:var(--blue);font-size:10px;font-weight:700;padding:4px}.mini-chart{height:170px;display:flex;align-items:end;gap:12px;padding:14px 8px 3px;border-bottom:1px solid #e8edf4}.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;gap:7px}.chart-bar{width:min(28px,70%);min-height:8px;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#6c89e8,#3157d5)}.chart-label{font-size:9px;color:#8a94a5}.chart-legend{font-size:10px;color:#7d8798;margin-top:10px}.earnings-highlight{padding:21px;border-radius:12px;background:linear-gradient(125deg,#243f9b,#4b6cdb);color:white}.earnings-highlight small{font-size:10px;color:#dce5ff}.earnings-highlight strong{font:800 29px Manrope;display:block;margin:7px 0}.earnings-highlight p{margin:0;color:#dce5ff;font-size:11px}.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:13px}.form-group label{font-size:11px;color:#536078;font-weight:700}.form-group .hint{font-size:10px;color:#8994a5}.field-textarea{height:auto;min-height:95px;padding:11px;resize:vertical}.file-drop{border:1px dashed #bac7dc;background:#f8faff;border-radius:10px;padding:22px;text-align:center;color:#6c7890;font-size:11px}.file-drop strong{display:block;color:#34425e;margin:7px 0}.file-drop input{max-width:190px;font-size:10px}.pricing-toggle{display:flex;gap:8px}.pricing-toggle button{border:1px solid #dce2ed;background:#fff;color:#69758b;border-radius:8px;padding:9px 17px;font-size:11px}.pricing-toggle button.selected{color:var(--blue);background:#eff3ff;border-color:#9eafea}.auth-section{background:linear-gradient(115deg,#f2f6ff,#fff);padding:48px 0 65px;min-height:610px}.auth-card{width:min(480px,calc(100% - 34px));margin:auto;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);padding:33px}.auth-card .h2{text-align:center;font-size:27px}.auth-card>p{text-align:center;color:#79849a;font-size:12px;margin:8px 0 25px}.auth-switch{font-size:11px;text-align:center;color:#737f94;margin-top:17px}.auth-switch a{color:var(--blue);font-weight:700}.auth-divider{display:flex;align-items:center;gap:10px;color:#a0a8b5;font-size:10px;margin:17px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:#e8ebf1;flex:1}.order-summary{background:#f7f9fc;border-radius:9px;padding:15px;margin:12px 0}.summary-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#69758b;margin:7px 0}.summary-row.total{font-size:13px;font-weight:800;color:var(--navy);border-top:1px solid #e3e8f0;padding-top:10px;margin-top:12px}.policy-copy h2{font:800 20px Manrope;color:var(--navy);letter-spacing:-.03em;margin:28px 0 9px}.policy-copy p,.policy-copy li{color:#69758b;font-size:13px;line-height:1.8}.policy-copy ul{padding-left:20px}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.help-card{border:1px solid var(--line);border-radius:12px;padding:19px}.help-card>span{font-size:22px}.help-card h3{font-size:13px;color:var(--navy)}.help-card p{font-size:11px;color:#778399}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#1d2b48;color:#fff;padding:12px 17px;border-radius:9px;box-shadow:var(--shadow);z-index:100;font-size:12px;transition:.25s;max-width:calc(100% - 30px)}.toast.show{opacity:1;transform:translate(-50%,0)}.modal-backdrop{position:fixed;inset:0;background:#12203c88;z-index:80;display:grid;place-items:center;padding:15px}.modal-backdrop[hidden]{display:none}.modal{width:min(460px,100%);background:#fff;border-radius:15px;padding:28px;position:relative;box-shadow:0 25px 60px #13204044}.modal-close{position:absolute;right:13px;top:8px;border:0;background:none;font-size:25px;color:#8791a2}.modal h2{font:800 23px Manrope;color:var(--navy);margin:3px 0 9px}.modal p{font-size:12px;color:#748096}.modal .button{margin-top:10px}.modal .field{width:100%}.success-mark{width:54px;height:54px;border-radius:50%;background:#e5f7ee;color:#16845d;font-size:26px;display:grid;place-items:center;margin-bottom:15px}.notice{border:1px solid #f1dfae;background:#fff9e9;color:#826419;border-radius:8px;padding:11px 13px;font-size:10px;line-height:1.55;margin:13px 0}.center{text-align:center}.muted-small{color:#8892a4;font-size:10px}.mobile-only{display:none}
@media(max-width:1050px){.site-header{gap:18px;padding:0 25px}.main-nav{gap:14px}.header-search{max-width:300px}.header-actions{gap:9px}.resource-grid{grid-template-columns:repeat(3,1fr)}.category-grid{grid-template-columns:repeat(3,1fr)}.detail-layout{gap:24px;grid-template-columns:minmax(0,1fr) 300px}.stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.site-header{height:66px;padding:0 18px;gap:12px}.main-nav,.header-search,.header-actions select,.login-link,.header-actions>.button{display:none}.header-actions{margin-left:auto}.wordmark-text{font-size:12px}.wordmark-mark{width:30px;height:30px}.mobile-menu-button{display:flex;width:34px;height:34px;border:1px solid #e1e6ef;background:#fff;border-radius:8px;align-items:center;justify-content:center;flex-direction:column;gap:4px}.mobile-menu-button span{width:15px;height:1.5px;background:#35425b}.mobile-menu{position:fixed;top:98px;right:12px;left:12px;background:#fff;z-index:40;border:1px solid var(--line);border-radius:12px;padding:9px;box-shadow:var(--shadow)}.mobile-menu.open{display:block}.mobile-menu a{display:block;padding:11px 12px;font-size:13px;color:#536078;border-radius:7px}.mobile-menu a:hover{background:#f1f4fb;color:var(--blue)}.container,.narrow{width:calc(100% - 36px)}.hero-inner{grid-template-columns:1fr;min-height:auto;padding:55px 0 36px}.hero-visual{height:245px;max-width:500px;width:100%;margin:0 auto}.hero-art-main{width:280px;height:214px;right:calc(50% - 130px);top:20px}.float-one{left:calc(50% - 190px);top:3px}.float-two{right:calc(50% - 190px);bottom:1px}.float-three{left:calc(50% - 190px);bottom:7px}.hero-copy>p{font-size:14px}.trust-row{gap:12px 19px;font-size:10px}.section{padding:45px 0}.resource-grid{grid-template-columns:repeat(2,1fr);gap:12px}.resource-cover{height:130px}.resource-body{padding:11px}.resource-title{font-size:12px}.category-grid{grid-template-columns:repeat(2,1fr);gap:9px}.category-card{padding:11px 9px;min-height:65px;gap:8px}.category-icon{width:34px;height:34px;font-size:17px}.category-card strong{font-size:11px}.category-card small{font-size:9px}.feature-strip{grid-template-columns:1fr}.feature-tile{padding:15px}.banner-cta{padding:25px;align-items:flex-start;flex-direction:column}.banner-cta h2{font-size:22px}.footer-main{width:calc(100% - 36px);grid-template-columns:1fr 1fr;gap:26px 18px;padding:34px 0}.footer-brand{grid-column:1/-1}.footer-bottom{width:calc(100% - 36px);flex-direction:column}.page-top{padding:21px 0}.page-title-row{align-items:flex-start;flex-direction:column}.market-layout{grid-template-columns:1fr;gap:16px}.filter-sidebar{border:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.filter-group{margin:0;border:1px solid var(--line);padding:11px;border-radius:9px}.filter-group:nth-child(n+3){display:none}.toolbar{margin-top:10px}.detail-layout{grid-template-columns:1fr;gap:18px}.purchase-card{position:static;grid-row:1}.detail-cover{height:250px}.detail-cover .cover-visual{width:65%;height:78%}.detail-cover .cover-visual strong{font-size:19px}.reader-shell{padding-top:16px}.reader-page{padding:35px 26px;min-height:430px}.reader-page h1{font-size:25px}.reader-page p{font-size:12px}.learning-grid{grid-template-columns:1fr}.learning-card-visual{height:180px}.dashboard-layout{grid-template-columns:1fr;padding-top:18px}.dash-sidebar{display:flex;overflow:auto;position:static;gap:3px;padding:7px}.dash-side-title{display:none}.dash-link{white-space:nowrap;padding:8px;font-size:10px}.dash-link .dash-icon{display:none}.dash-content{min-width:0}.dash-greeting{align-items:flex-start;flex-direction:column}.stat-grid{grid-template-columns:repeat(2,1fr);gap:9px}.stat-card{padding:13px}.stat-card strong{font-size:20px}.upload-grid{grid-template-columns:1fr}.help-grid{grid-template-columns:1fr}.auth-section{padding:32px 0 48px}.auth-card{padding:26px 21px}.search-panel{flex-wrap:wrap;margin-top:24px}.search-panel input{width:calc(100% - 30px);flex:auto;height:38px}.search-panel select{height:37px;flex:1;border-left:0;border-top:1px solid #edf0f5}.search-panel .button{height:37px;flex:1}.section-heading{align-items:flex-start;flex-direction:column}.detail-box{padding:16px}}
@media(max-width:420px){.resource-grid{grid-template-columns:1fr 1fr}.resource-cover{height:110px}.cover-visual{padding:9px}.cover-visual strong{font-size:13px}.resource-foot{font-size:9px}.price{font-size:11px}.hero-art-main{width:245px;right:calc(50% - 119px)}.float-one{left:0}.float-two{right:0}.float-three{left:0}.trust-row{justify-content:flex-start}.filter-sidebar{grid-template-columns:1fr 1fr}.data-table{font-size:10px}}
@media(max-width:780px){.header-actions select#countrySelect{display:block;max-width:96px;font-size:9px;padding-right:1px}}
#countrySelect{width:155px;max-width:155px;text-overflow:ellipsis}@media(max-width:1050px){#countrySelect{width:112px;max-width:112px}}@media(max-width:780px){#countrySelect{width:96px;max-width:96px}}
@media(max-width:780px){.filter-sidebar .filter-group:nth-child(n+3){display:block}}
.filter-sidebar details.filter-group{padding:0 0 12px;margin-bottom:12px}
.filter-sidebar details.filter-group summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:800;color:var(--navy);padding:2px 0 9px}
.filter-sidebar details.filter-group summary::-webkit-details-marker{display:none}
.filter-sidebar details.filter-group summary:after{content:"＋";font-size:14px;color:#8994a7}
.filter-sidebar details.filter-group[open] summary:after{content:"−"}
.taxonomy-select{width:100%;height:36px;margin-top:2px;font-size:11px}
.filter-tags .pill{max-width:100%;white-space:normal;text-align:left;line-height:1.4;cursor:pointer}
.category-card small{display:block}
.payment-method-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0}
.payment-method-option{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:10px;padding:13px;background:#fff;cursor:pointer;min-height:70px}
.payment-method-option:has(input:checked){border-color:#91a6e8;background:#f5f7ff;box-shadow:0 0 0 2px #3157d510}
.payment-method-option input{accent-color:var(--blue);margin:3px 0 0;flex:0 0 auto}
.payment-method-option strong{display:block;color:var(--navy);font-size:12px}
.payment-method-option small{display:block;color:#7c879b;font-size:10px;line-height:1.5;margin-top:4px}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:25px;align-items:start}
.payout-method-panel{margin-top:18px}
@media(max-width:780px){.payment-method-list{grid-template-columns:1fr}.checkout-layout{grid-template-columns:1fr}}


.ad-preview{display:flex;flex-direction:column;gap:5px;padding:18px 22px;border:1px dashed #aab8d8;border-radius:12px;background:linear-gradient(110deg,#f5f7ff,#fff);color:#54627c}.ad-preview strong{font:700 15px Manrope;color:var(--navy)}.ad-preview>span:last-child{font-size:10px;color:#8792a5}.ad-label{font-size:9px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#64739a}.newsletter-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:23px;border:1px solid var(--line);border-radius:14px;background:#f8faff}.newsletter-panel h2{margin-top:4px}.newsletter-panel p{margin:6px 0 0;font-size:12px}.newsletter-panel form{display:flex;gap:8px;min-width:min(420px,52%)}.newsletter-panel input{min-width:0;flex:1}.checkout-summary{max-width:470px;margin-left:auto}.coupon-form{display:flex;gap:8px;margin:14px 0 2px}.coupon-form .field{min-width:0;flex:1}.coupon-form .button{white-space:nowrap}.review-panel{margin-top:18px}.review-item{padding:13px 0;border-top:1px solid #eef1f6}.review-item:first-of-type{border-top:0}.review-item strong{font-size:12px;color:var(--navy)}.review-item .star{font-size:11px}.review-item p{margin:6px 0 3px;color:#606d84;font-size:12px}.review-item small{font-size:10px;color:#929bad}.seller-profile-card{display:flex;gap:18px;align-items:center;background:linear-gradient(120deg,#eff3ff,#f9fbff);margin-bottom:18px}.seller-rating{margin:8px 0 0;color:var(--navy);font-size:12px;font-weight:800}.seller-rating span:last-child{color:#7c8799;font-size:10px;font-weight:500}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.status-grid>div{padding:13px;border:1px solid #e8edf5;border-radius:9px;background:#fbfcfe}.status-grid b,.status-grid span{display:block}.status-grid b{font-size:11px;color:var(--navy)}.status-grid span{font-size:10px;color:#7d889d;margin-top:4px}.library-actions{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.link-button{border:0;background:none;padding:0;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:780px){.newsletter-panel{align-items:stretch;flex-direction:column;padding:18px}.newsletter-panel form{min-width:0;flex-direction:column}.newsletter-panel form .button{width:100%}.status-grid{grid-template-columns:repeat(2,1fr)}.seller-profile-card{align-items:flex-start}.checkout-summary{max-width:none}}

.promo-strip{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #dfe6ff;border-radius:10px;background:#f3f6ff;color:#52617c;font-size:11px;margin-bottom:14px}.promo-strip b{color:var(--blue);letter-spacing:.06em}.promo-strip a{margin-left:auto;color:var(--blue);font-weight:800;white-space:nowrap}
@media(max-width:600px){.promo-strip{align-items:flex-start;flex-wrap:wrap}.promo-strip a{margin-left:0}}

.cookie-banner{position:fixed;z-index:70;left:20px;right:20px;bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px;border:1px solid #dce3ef;border-radius:14px;background:#fff;box-shadow:0 18px 55px rgba(22,39,76,.2)}.cookie-banner[hidden]{display:none}.cookie-banner-copy{max-width:740px}.cookie-banner-copy strong{font:800 14px Manrope;color:var(--navy)}.cookie-banner-copy p{margin:5px 0;font-size:11px;color:#68748b}.cookie-banner-copy a{font-size:11px;color:var(--blue);font-weight:800}.cookie-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cookie-preference-card{border:1px solid var(--line);border-radius:11px;background:#f8faff;padding:16px;margin:18px 0}.cookie-preference-card>b{font-size:12px;color:var(--navy)}.cookie-preference-card p{font-size:11px;color:#68748b}.cookie-preference-card .cookie-actions{margin-top:12px}
@media(max-width:680px){.cookie-banner{left:10px;right:10px;bottom:10px;align-items:stretch;flex-direction:column;gap:11px;padding:15px}.cookie-banner .cookie-actions{display:grid;grid-template-columns:1fr 1fr}.cookie-banner .button{font-size:10px;padding:0 8px}}

/* Country-aware resource sharing */
.modal:has(.share-panel){width:min(620px,100%);max-height:min(88vh,820px);overflow-y:auto}
.share-panel{max-height:calc(88vh - 88px);overflow-y:auto;padding-right:3px}
.share-intro{line-height:1.55;margin:5px 0 14px!important}
.share-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 16px}
.share-option{min-width:0;display:flex;align-items:center;gap:10px;border:1px solid #e4e9f1;border-radius:10px;background:#fff;padding:10px;text-decoration:none;color:var(--navy);transition:border-color .15s,background .15s}
.share-option:hover{border-color:#9cafeb;background:#f8faff}
.share-option-icon{width:32px;height:32px;flex:0 0 32px;border-radius:9px;display:grid;place-items:center;background:#edf2ff;color:var(--blue);font-weight:800;font-size:13px}
.share-option>span:nth-child(2){min-width:0;flex:1}
.share-option b,.share-option small{display:block}
.share-option b{font-size:11px;color:var(--navy)}
.share-option small{font-size:9px;line-height:1.4;color:#7d889d;margin-top:3px}
.share-option-arrow{font-size:12px;color:#8a96ab}
.share-option-pending{background:#fafbfc;border-style:dashed}
.share-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.share-more{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}
.share-more summary{cursor:pointer;color:var(--blue);font-size:11px;font-weight:800}
.share-more h3{font-size:11px;color:var(--navy);margin:17px 0 4px}
.share-qr-card{display:flex;gap:13px;align-items:center;padding:12px;border:1px solid #e4e9f1;border-radius:11px;background:#fff}
.share-qr-card img{width:110px;height:110px;object-fit:contain;border:1px solid #edf0f4;border-radius:6px;background:#fff;flex:0 0 110px}
.share-qr-card b{font-size:11px;color:var(--navy)}
.share-qr-card p{font-size:10px;line-height:1.5;margin:5px 0;color:#68748b}
.share-qr-card small{font-size:9px;color:#8993a4;line-height:1.45;display:block}
.share-qr-optional{margin:12px 0}
.share-panel .notice{margin:14px 0 9px}
.share-panel>.muted-small{line-height:1.55}
@media(max-width:500px){.modal:has(.share-panel){padding:22px 17px}.share-grid{grid-template-columns:1fr}.share-qr-card{align-items:flex-start}.share-qr-card img{width:88px;height:88px;flex-basis:88px}.share-actions .button{flex:1}.share-panel{max-height:calc(88vh - 65px)}}

/* Safety, account and access settings */
.form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}
.a11y-large-text p,.a11y-large-text label,.a11y-large-text .subtle,.a11y-large-text .muted-small,.a11y-large-text .detail-list li{font-size:1.12em!important;line-height:1.7}
.a11y-high-contrast{--muted:#34415b;--line:#aeb8c9}
.a11y-high-contrast .subtle,.a11y-high-contrast .muted-small,.a11y-high-contrast .detail-description{color:#35415a!important}
.a11y-high-contrast a{ text-decoration-thickness:2px }
.a11y-high-contrast :focus-visible{outline:3px solid #173aa7!important;outline-offset:3px!important}
.a11y-reduced-motion *, .a11y-reduced-motion *::before, .a11y-reduced-motion *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
[dir="rtl"] .dash-greeting,[dir="rtl"] .panel-heading,[dir="rtl"] .share-option{direction:rtl}
[dir="rtl"] .detail-list{padding-right:0}

/* Added marketplace feature pages */
.toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.resource-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 18px;max-height:330px;overflow:auto;padding:2px}.resource-check{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.resource-check input{margin:3px 0 0;accent-color:var(--blue)}.resource-check span{min-width:0}.resource-check strong,.resource-check small,.creator-follow-list strong,.creator-follow-list small{display:block}.resource-check strong{font-size:12px;line-height:1.35;color:var(--navy)}.resource-check small,.creator-follow-list small{font-size:10px;color:var(--muted);margin-top:3px}.creator-follow-list>div,.saved-search-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}.creator-follow-list>div:last-child,.saved-search-row:last-child{border-bottom:0}.creator-follow-list>div>span:nth-child(2){flex:1}.saved-search-row>div:first-child{min-width:0}.saved-search-row strong,.saved-search-row small{display:block}.saved-search-row small{color:var(--muted);font-size:11px;margin-top:4px;overflow-wrap:anywhere}.bundle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bundle-card h3{margin:13px 0 6px}.bundle-card .button{margin:5px 6px 0 0}.bundle-card .detail-list{margin:16px 0}.bundle-card .detail-list li{padding:7px 0}.collection-list{display:grid;gap:14px}.collection-resources{display:flex;flex-wrap:wrap;gap:12px}.school-estimate{padding:14px;border-radius:10px;background:var(--pale);color:var(--navy);font-weight:700;font-size:13px;margin:12px 0}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.integration-card{margin:0}.integration-card p{font-size:12px;color:var(--muted);min-height:42px}.integration-logo{display:inline-grid;place-items:center;min-width:54px;height:38px;padding:0 10px;border-radius:10px;background:#edf2ff;color:var(--blue);font-weight:800;font-size:12px;margin-bottom:14px}.analytics-split{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.analytics-split .panel{margin:0}.funnel-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.funnel-grid>div{background:#f7f9fd;border:1px solid var(--line);padding:14px;border-radius:10px}.funnel-grid strong,.funnel-grid span{display:block}.funnel-grid strong{font-size:19px;color:var(--navy)}.funnel-grid span{font-size:11px;color:var(--muted)}
@media(max-width:850px){.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-split{grid-template-columns:1fr}}
@media(max-width:600px){.resource-picker,.bundle-grid,.integration-grid{grid-template-columns:1fr}.toolbar-actions{width:100%}.toolbar-actions select{flex:1;min-width:140px}.saved-search-row{align-items:flex-start;flex-direction:column}.creator-follow-list>div{align-items:flex-start;flex-wrap:wrap}.funnel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-check{padding:10px}}

/* Refined footer and country flag selector */
#countrySelect{max-width:235px}.site-footer{background:linear-gradient(180deg,#f7f9fd 0%,#f0f4fb 100%);border-top:1px solid #e8edf5}.footer-main{grid-template-columns:1.55fr repeat(3,minmax(135px,1fr));gap:clamp(24px,4vw,56px);padding:54px 0 43px}.footer-brand p{max-width:310px;line-height:1.7}.footer-share{margin-top:25px}.footer-share h3{margin:0 0 11px;color:#53617b;font-size:10px;letter-spacing:.05em;text-transform:uppercase}.footer-socials{display:flex;align-items:center;gap:8px}.footer-socials a{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#fff;border:1px solid #e3e8f1;color:#53617b;transition:transform .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}.footer-socials a:hover{color:var(--blue);border-color:#bccaf5;transform:translateY(-2px);box-shadow:0 6px 15px #243d7815}.footer-socials svg{width:17px;height:17px;fill:currentColor}.footer-main h3{font-size:11px;margin-bottom:16px;letter-spacing:.03em}.footer-main .footer-col>a{display:block;margin:10px 0;color:#707d94;font-size:11px;line-height:1.45}.footer-bottom{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:17px 0 20px}.footer-bottom-main{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.footer-locale{color:#64718a}.footer-policy-links{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.footer-policy-links a{font-size:10px;color:#69768e}.footer-policy-links a:hover{color:var(--blue)}
@media(max-width:900px){.footer-main{grid-template-columns:1.3fr repeat(3,minmax(120px,1fr));gap:24px}.footer-policy-links{gap:9px}}
@media(max-width:780px){.footer-main{width:calc(100% - 36px);grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px;padding:38px 0 30px}.footer-brand{grid-column:1/-1}.footer-bottom{width:calc(100% - 36px);grid-template-columns:1fr;gap:12px}.footer-policy-links{justify-content:flex-start}}
@media(max-width:480px){.footer-main{grid-template-columns:1fr 1fr;gap:25px 14px}.footer-share{margin-top:21px}.footer-socials{gap:6px}.footer-socials a{width:34px;height:34px}.footer-bottom-main{gap:6px;flex-direction:column;align-items:flex-start}.footer-policy-links{gap:8px 13px}}
@media(max-width:780px){.mobile-menu{max-height:calc(100vh - 116px);overflow:auto}.mobile-country-picker{padding:11px 12px 13px;border-bottom:1px solid var(--line);margin-bottom:5px}.mobile-country-picker label{display:block;font-size:10px;font-weight:700;color:#536078;margin-bottom:6px}.mobile-country-picker select{width:100%;border:1px solid #dfe5ef;border-radius:8px;background:#f9fbff;color:#394762;padding:10px;font-size:12px}}

/* Theme control */
.theme-toggle-button{width:34px;height:34px;display:grid;place-items:center;flex:none;border:1px solid #e1e6ef;border-radius:9px;background:#fff;color:#35425b;font-size:20px;line-height:1;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}.theme-toggle-button:hover{background:#edf2ff;border-color:#c7d2f5;color:var(--blue);transform:rotate(-8deg)}.theme-toggle-menu{width:100%;display:flex;align-items:center;gap:10px;padding:11px 12px;margin:4px 0 6px;border:1px solid var(--line);border-radius:8px;background:#f7f9fd;color:#394762;text-align:left;font-size:12px;font-weight:700}.theme-toggle-menu [data-theme-icon]{font-size:18px}

/* Dark theme */
html[data-theme="dark"]{color-scheme:dark;--blue:#8aa5ff;--blue-dark:#a0b4ff;--navy:#edf2ff;--ink:#e7ecf7;--muted:#aab5ca;--line:#2b3952;--canvas:#101827;--pale:#202d49;--mint:#18382f;--white:#151f31;--shadow:0 16px 38px rgba(0,0,0,.28)}
html[data-theme="dark"] body{background:#101827;color:#e7ecf7}
html[data-theme="dark"] .site-header,html[data-theme="dark"] .mobile-menu,html[data-theme="dark"] .mobile-country-picker select,html[data-theme="dark"] .header-search,html[data-theme="dark"] .search-panel,html[data-theme="dark"] .category-card,html[data-theme="dark"] .resource-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .detail-box,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .help-card,html[data-theme="dark"] .modal,html[data-theme="dark"] .cookie-banner,html[data-theme="dark"] .filter-group,html[data-theme="dark"] .share-option,html[data-theme="dark"] .saved-search-row,html[data-theme="dark"] .theme-toggle-button,html[data-theme="dark"] .theme-toggle-menu{background:#172238;color:#e7ecf7;border-color:#2b3952}
html[data-theme="dark"] .site-header{border-bottom-color:#26344c}
html[data-theme="dark"] .main-nav a,html[data-theme="dark"] .login-link,html[data-theme="dark"] .header-actions select,html[data-theme="dark"] .mobile-menu a,html[data-theme="dark"] .dash-link,html[data-theme="dark"] .footer-col>a,html[data-theme="dark"] .footer-policy-links a,html[data-theme="dark"] .footer-bottom,html[data-theme="dark"] .footer-locale,html[data-theme="dark"] .subtle,html[data-theme="dark"] .dash-greeting p,html[data-theme="dark"] .resource-meta,html[data-theme="dark"] .data-table td,html[data-theme="dark"] .data-table th,html[data-theme="dark"] .muted-small,html[data-theme="dark"] .panel-heading span,html[data-theme="dark"] .form-group label,html[data-theme="dark"] .breadcrumbs,html[data-theme="dark"] .breadcrumbs a,html[data-theme="dark"] .filter-option,html[data-theme="dark"] .detail-description{color:#aab5ca}
html[data-theme="dark"] .wordmark-text,html[data-theme="dark"] .h1,html[data-theme="dark"] .h2,html[data-theme="dark"] .h3,html[data-theme="dark"] .resource-title,html[data-theme="dark"] .panel-heading h3,html[data-theme="dark"] .footer-main h3,html[data-theme="dark"] .art-title,html[data-theme="dark"] .dash-side-title,html[data-theme="dark"] .resource-check strong,html[data-theme="dark"] .table-primary{color:#edf2ff!important}
html[data-theme="dark"] .hero{background:linear-gradient(115deg,#141f34 0%,#18243a 55%,#1d2b46 100%)}
html[data-theme="dark"] .hero-copy>p,html[data-theme="dark"] .trust-row,html[data-theme="dark"] .trust-row span{color:#b2bfd6}
html[data-theme="dark"] .hero-art-card{background:#1b2941}
html[data-theme="dark"] .art-meta{color:#aebbd2}
html[data-theme="dark"] .art-bars i{background:#34425b}
html[data-theme="dark"] .page-top,html[data-theme="dark"] .auth-section{background:#141f32;border-color:#283650}
html[data-theme="dark"] .site-footer{background:linear-gradient(180deg,#141f32 0%,#101827 100%);border-top-color:#283650}
html[data-theme="dark"] .footer-note,html[data-theme="dark"] .footer-brand p{color:#aab5ca}
html[data-theme="dark"] .footer-socials a{background:#1b2941;color:#c8d3e8;border-color:#34425b}
html[data-theme="dark"] .footer-socials a:hover{color:#fff;background:#263a67;border-color:#526ba9}
html[data-theme="dark"] .footer-bottom{border-top-color:#283650}
html[data-theme="dark"] .header-search,html[data-theme="dark"] .search-panel{background:#121c2e;border-color:#34425b}
html[data-theme="dark"] .header-search input,html[data-theme="dark"] .search-panel input,html[data-theme="dark"] .search-panel select,html[data-theme="dark"] .field,html[data-theme="dark"] .field-select,html[data-theme="dark"] .field-textarea,html[data-theme="dark"] .form-group input,html[data-theme="dark"] .form-group select,html[data-theme="dark"] .form-group textarea,html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] select:not(#countrySelect):not(#countrySelectMobile),html[data-theme="dark"] textarea{background:#111b2d;color:#edf2ff;border-color:#34425b}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8391aa}

/* Compact searchable country, language and currency picker */
.country-picker{position:relative;min-width:0}
.country-picker-header{flex:0 0 auto}
.country-picker-trigger{display:flex;align-items:center;justify-content:center;gap:6px;min-width:66px;height:34px;padding:0 8px;border:1px solid #e1e6ef;border-radius:9px;background:#fff;color:#52617c;font:700 11px Inter,Arial,sans-serif;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.country-picker-trigger:hover,.country-picker-trigger[aria-expanded="true"]{border-color:#b8c7ef;background:#f7f9ff;box-shadow:0 3px 12px #243d7812}
.country-picker-trigger:focus-visible{outline:3px solid #3157d54d;outline-offset:2px}
.country-picker-flag{font-size:16px;line-height:1}
.country-picker-code{letter-spacing:.04em}
.country-picker-chevron{color:#8591a6;font-size:15px;line-height:1;transform:translateY(-2px)}
.country-picker-popover{position:absolute;z-index:95;top:calc(100% + 8px);right:0;width:min(320px,calc(100vw - 24px));max-height:min(410px,calc(100vh - 100px));display:flex;flex-direction:column;padding:9px;border:1px solid #dce3ef;border-radius:13px;background:#fff;box-shadow:0 18px 45px #1c2b4d29}
.country-picker-popover[hidden]{display:none}
.country-picker-search{display:flex;align-items:center;gap:8px;flex:0 0 auto;height:39px;padding:0 10px;border:1px solid #e2e8f2;border-radius:9px;background:#f8faff;color:#8290a8}
.country-picker-search>span{font-size:20px;line-height:1}
.country-picker-search input{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#263653!important;font:500 11px Inter,Arial,sans-serif!important;box-shadow:none!important}
.country-picker-search input::placeholder{color:#8995aa}
.country-picker-options{min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 1px 1px}
.country-picker-option{width:100%;min-height:46px;display:flex;align-items:center;gap:10px;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:#52617c;text-align:left;cursor:pointer}
.country-picker-option:hover,.country-picker-option:focus-visible{outline:0;background:#f1f5ff}
.country-picker-option[aria-selected="true"]{background:#edf2ff}
.country-picker-option-flag{width:23px;flex:0 0 23px;font-size:17px;text-align:center}
.country-picker-option-copy{min-width:0;flex:1}
.country-picker-option-copy strong,.country-picker-option-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.country-picker-option-copy strong{color:#293754;font-size:11px;font-weight:700}
.country-picker-option-copy small{margin-top:2px;color:#7e8aa1;font-size:9px}
.country-picker-option-check{width:14px;color:var(--blue);font-size:12px;font-weight:900;text-align:center}
.country-picker-empty{margin:0;padding:20px 9px;color:#76839a;font-size:11px;text-align:center}
.mobile-country-picker{display:none}
@media(max-width:780px){.country-picker-header{display:none}.mobile-country-picker{display:block;padding:11px 12px 13px;border-bottom:1px solid var(--line);margin-bottom:5px}.mobile-country-picker>label{display:block;font-size:10px;font-weight:700;color:#536078;margin-bottom:6px}.country-picker-mobile .country-picker-trigger{width:100%;justify-content:space-between;height:40px;padding:0 11px;background:#f9fbff;font-size:12px}.country-picker-mobile-current{display:flex;align-items:center;gap:7px}.country-picker-mobile .country-picker-popover{position:relative;top:auto;right:auto;width:100%;max-height:310px;margin-top:8px;padding:8px;box-shadow:none}.country-picker-mobile .country-picker-options{max-height:250px}}
html[data-theme="dark"] .country-picker-trigger,html[data-theme="dark"] .country-picker-popover{background:#172238;color:#e7ecf7;border-color:#34425b}
html[data-theme="dark"] .country-picker-trigger:hover,html[data-theme="dark"] .country-picker-trigger[aria-expanded="true"]{background:#202f4b;border-color:#526ba9}
html[data-theme="dark"] .country-picker-search{background:#111b2d;border-color:#34425b;color:#aab5ca}
html[data-theme="dark"] .country-picker-search input{color:#edf2ff!important}
html[data-theme="dark"] .country-picker-option{color:#c5cfe1}
html[data-theme="dark"] .country-picker-option:hover,html[data-theme="dark"] .country-picker-option:focus-visible,html[data-theme="dark"] .country-picker-option[aria-selected="true"]{background:#25365a}
html[data-theme="dark"] .country-picker-option-copy strong{color:#edf2ff}
html[data-theme="dark"] .country-picker-option-copy small,html[data-theme="dark"] .country-picker-empty{color:#aab5ca}
html[data-theme="dark"] .button-outline{background:#172238;color:#a9bcff;border-color:#465775}
html[data-theme="dark"] .button-outline:hover{background:#223354;border-color:#7f98e5}
html[data-theme="dark"] .button-soft,html[data-theme="dark"] .pill-blue,html[data-theme="dark"] .dash-link.active,html[data-theme="dark"] .dash-link:hover,html[data-theme="dark"] .mobile-menu a:hover{background:#25365a;color:#c1ceff}
html[data-theme="dark"] .button-primary{background:#4569df;color:#fff}
html[data-theme="dark"] .resource-card:hover,html[data-theme="dark"] .category-card:hover{box-shadow:0 14px 32px rgba(0,0,0,.35)}
html[data-theme="dark"] .resource-badge{background:#101a2de8;color:#dbe4fa}
html[data-theme="dark"] .resource-body{background:#172238}
html[data-theme="dark"] .data-table td,html[data-theme="dark"] .data-table th{border-color:#2a3851}
html[data-theme="dark"] .stat-card,html[data-theme="dark"] .funnel-grid>div,html[data-theme="dark"] .order-summary,html[data-theme="dark"] .preview-sheet,html[data-theme="dark"] .school-estimate{background:#1b2941;border-color:#34425b;color:#e7ecf7}
html[data-theme="dark"] .notice{background:#342d1d;border-color:#68552a;color:#e2cc89}
html[data-theme="dark"] .filter-tags .pill,html[data-theme="dark"] .pill{border-color:#34425b}
html[data-theme="dark"] .modal-backdrop{background:#030814bb}
html[data-theme="dark"] .theme-toggle-button,html[data-theme="dark"] .theme-toggle-menu{color:#f3d889}

/* Gentle hover motion with keyboard and reduced-motion support */
@media(hover:hover){.resource-card,.category-card,.help-card,.integration-card,.bundle-card,.feature-tile{transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.resource-card:hover,.category-card:hover,.help-card:hover,.integration-card:hover,.bundle-card:hover,.feature-tile:hover{transform:translateY(-4px);box-shadow:0 14px 28px rgba(27,47,91,.12)}.resource-card .cover-visual{transition:transform .28s cubic-bezier(.2,.7,.3,1)}.resource-card:hover .cover-visual{transform:scale(1.045)}.button,.text-link,.dash-link,.footer-col>a{transition:transform .18s ease,color .18s ease,background-color .18s ease,border-color .18s ease}.button:hover{transform:translateY(-2px)}.footer-col>a:hover,.text-link:hover{transform:translateX(2px)}}
:focus-visible{outline:3px solid #7c9aff;outline-offset:3px}
html[data-theme="dark"] :focus-visible{outline-color:#a9bcff}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.a11y-reduced-motion,.a11y-reduced-motion *,body.a11y-reduced-motion *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
.admin-reference-form{display:grid;gap:8px;min-width:230px;max-width:360px}.admin-reference-form .filter-option{font-size:12px;align-items:flex-start}.admin-reference-form .field{width:100%;min-width:0}.server-backend-panel{margin-top:18px}.backend-status{padding:7px 20px;background:#eef3ff;color:#33456f;text-align:center;font-size:12px;border-bottom:1px solid #dfe7fa}

/* Original online learning games hub */
.learning-page-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.game-hub-banner{display:flex;align-items:center;gap:16px;padding:19px 22px;margin-bottom:22px;border:1px solid #dbe5ff;border-radius:15px;background:linear-gradient(110deg,#f0f5ff,#f5fbff)}.game-hub-banner-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#fff;font-size:26px;flex-shrink:0}.game-hub-banner strong{color:var(--navy);font-family:Manrope,sans-serif;font-size:16px}.game-hub-banner p{margin:3px 0 0;color:var(--muted);font-size:12px}.game-hub-banner>.pill{margin-left:auto;white-space:nowrap}.game-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.game-card{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.game-card:hover{transform:translateY(-3px);border-color:#c9d5fa;box-shadow:0 14px 28px rgba(26,48,100,.1)}.game-card-art{height:146px;position:relative;display:grid;place-items:center;overflow:hidden;background:#edf2ff}.game-card-art>span{font-size:62px;filter:drop-shadow(0 7px 5px #243b6922);transition:transform .25s ease}.game-card:hover .game-card-art>span{transform:scale(1.08) rotate(-3deg)}.game-card-art small{position:absolute;left:13px;bottom:12px;padding:5px 9px;border-radius:99px;background:#ffffffdf;color:#43516d;font-size:10px;font-weight:700}.game-art-team{background:linear-gradient(135deg,#e4ebff,#f1edff)}.game-art-match{background:linear-gradient(135deg,#e3f6ed,#e9f4ff)}.game-art-word{background:linear-gradient(135deg,#fff0db,#fff8e8)}.game-art-quiz{background:linear-gradient(135deg,#f2eaff,#e8f0ff)}.game-art-shapes{background:linear-gradient(135deg,#e0f4f1,#e9f0ff)}.game-card-copy{padding:16px}.game-card-copy .eyebrow{font-size:9px}.game-card-copy h2{margin:5px 0 6px;font-family:Manrope,sans-serif;font-size:17px;letter-spacing:-.03em;color:var(--navy)}.game-card-copy p{min-height:40px;margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.6}.game-play-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:18px;align-items:start}.game-play-panel{padding:22px}.game-play-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.game-play-heading h2{margin-top:5px}.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(65px,1fr));gap:10px;max-width:570px;margin:0 auto}.memory-card{min-height:105px;border:1px solid #dce4f5;border-radius:13px;background:linear-gradient(145deg,#f3f6ff,#e9efff);color:#5269b2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;transition:transform .17s ease,background .17s ease,border-color .17s ease;box-shadow:0 3px 8px rgba(30,52,98,.04)}.memory-card:hover:not(:disabled){transform:translateY(-2px);border-color:#9aadea}.memory-card>span{font-size:34px;line-height:1.2}.memory-card small{font-size:10px;font-weight:700}.memory-card.is-revealed{background:#fff;border-color:#cfd9f7;color:var(--navy)}.memory-card.is-matched{background:#eaf7ef;border-color:#bfe1ce;color:#257349}.game-live-feedback{min-height:23px;margin:17px 0 12px;text-align:center;color:var(--muted);font-size:12px}.game-play-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-side-tip{padding:18px;border-radius:14px;background:#f4f7fc;border:1px solid var(--line)}.game-side-tip>span{font-size:24px}.game-side-tip h3{margin:7px 0 5px;color:var(--navy);font-size:14px}.game-side-tip p{margin:6px 0;color:var(--muted);font-size:11px;line-height:1.65}.word-game-panel,.team-game-panel{max-width:570px;text-align:center}.word-picture{width:94px;height:94px;display:grid;place-items:center;margin:0 auto 12px;border-radius:24px;background:#f0f4ff;font-size:53px}.word-choice-list{display:grid;gap:9px;margin:17px auto;max-width:420px}.word-choice-list .quiz-option{margin:0;text-align:center}.game-result-icon{font-size:50px}.team-score-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.team-score{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border:2px solid transparent;border-radius:12px;background:#f5f7fc;color:var(--navy)}.team-score span{font-size:12px;font-weight:700}.team-score strong{font-size:25px}.team-score.blue-team.is-current{border-color:#8da7f0;background:#edf2ff}.team-score.green-team.is-current{border-color:#89d0af;background:#edf8f2}.team-turn{margin:2px auto}
@media(max-width:900px){.game-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-play-layout{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:780px){.game-hub-banner{align-items:flex-start;padding:15px;gap:11px}.game-hub-banner>.pill{display:none}.game-card-grid{grid-template-columns:1fr 1fr;gap:11px}.game-card-art{height:112px}.game-card-art>span{font-size:48px}.game-card-copy{padding:12px}.game-card-copy h2{font-size:14px}.game-card-copy p{min-height:58px;font-size:11px}.game-card-copy .button{width:100%;padding:0 8px;font-size:10px}.game-play-layout{grid-template-columns:1fr}.game-play-panel{padding:15px}.game-side-tip{display:grid;grid-template-columns:30px 1fr;column-gap:8px}.game-side-tip>span{grid-row:span 2}.game-side-tip h3{margin:0}.game-side-tip p{grid-column:2}.memory-grid{gap:7px}.memory-card{min-height:77px;border-radius:10px}.memory-card>span{font-size:27px}.memory-card small{font-size:9px}.word-game-panel,.team-game-panel{width:min(570px,calc(100% - 36px))}.team-score{padding:10px}.team-score span{font-size:10px}.team-score strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){.game-card,.game-card-art>span,.memory-card{transition:none}.game-card:hover,.game-card:hover .game-card-art>span,.memory-card:hover:not(:disabled){transform:none}}
html[data-theme="dark"] .game-hub-banner{background:linear-gradient(110deg,#1c2c4c,#1b3046);border-color:#344467}html[data-theme="dark"] .game-hub-banner-icon,html[data-theme="dark"] .game-card,html[data-theme="dark"] .game-play-panel{background:#17243c}html[data-theme="dark"] .game-card,html[data-theme="dark"] .game-side-tip{border-color:#34415b}html[data-theme="dark"] .game-hub-banner strong,html[data-theme="dark"] .game-card-copy h2,html[data-theme="dark"] .game-side-tip h3,html[data-theme="dark"] .team-score{color:#e3e9f6}html[data-theme="dark"] .game-card-copy p,html[data-theme="dark"] .game-hub-banner p,html[data-theme="dark"] .game-side-tip p{color:#aab5ca}html[data-theme="dark"] .game-side-tip,html[data-theme="dark"] .team-score{background:#202d46}html[data-theme="dark"] .memory-card{background:#202d46;border-color:#3b4b6b;color:#d4def5}html[data-theme="dark"] .memory-card.is-revealed{background:#263550}html[data-theme="dark"] .memory-card.is-matched{background:#1d3b34;border-color:#356859}

/* Search and filters for the platform-curated games catalog */
.games-filter-panel{margin:0 0 20px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(27,47,91,.05)}
.games-filter-grid{display:grid;grid-template-columns:minmax(210px,1.6fr) repeat(4,minmax(120px,1fr));gap:11px;align-items:end}
.games-filter-field{display:grid;gap:6px;min-width:0;color:#536078;font-size:11px;font-weight:700}
.games-filter-field input,.games-filter-field select{width:100%;height:41px;min-width:0;padding:0 10px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;color:var(--ink);font-size:12px;font-weight:500;outline:none}
.games-filter-field input:focus,.games-filter-field select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(49,87,213,.13)}
.games-filter-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;padding-top:12px;border-top:1px solid #edf0f5}
.games-filter-footer>div{display:flex;align-items:center;gap:15px}.games-result-count{color:var(--muted);font-size:11px}.games-result-count strong{color:var(--navy)}.games-clear-link{color:var(--blue);font-size:11px;font-weight:700}.games-clear-link:hover{text-decoration:underline}
.game-card-facts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}.game-card-facts span{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border:1px solid #e7ebf3;border-radius:99px;background:#f8f9fc;color:#65718a;font-size:9px;line-height:1.25}.games-empty-state{padding:34px 18px}.games-empty-state .button{margin-top:7px}
@media(max-width:1000px){.games-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.games-search-field{grid-column:span 2}}
@media(max-width:700px){.games-filter-panel{padding:14px}.games-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.games-search-field{grid-column:1/-1}.games-filter-footer{align-items:flex-start;flex-direction:column}.games-filter-footer>div{width:100%;justify-content:space-between}}
@media(max-width:460px){.games-filter-grid{grid-template-columns:1fr}.games-search-field{grid-column:auto}.games-filter-footer>div{gap:9px}.games-filter-footer .button{flex:1}}
html[data-theme="dark"] .games-filter-panel{background:#172238;border-color:#2b3952}html[data-theme="dark"] .games-filter-field{color:#c0cadd}html[data-theme="dark"] .games-filter-field input,html[data-theme="dark"] .games-filter-field select{background:#111b2d;border-color:#34425b;color:#edf2ff}html[data-theme="dark"] .games-filter-footer{border-color:#2b3952}html[data-theme="dark"] .games-result-count strong{color:#e7ecf7}html[data-theme="dark"] .game-card-facts span{background:#202d46;border-color:#34415b;color:#bdc7d9}

/* Admin-only game authoring and learner play surfaces */
.admin-game-studio-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(265px,.82fr);align-items:start;gap:16px}
.admin-game-builder-column{display:grid;gap:15px;min-width:0}
.admin-game-preview-rail{position:sticky;top:18px;display:grid;gap:12px;min-width:0}
.admin-game-preview-panel{margin:0;overflow:hidden}
.admin-game-preview-panel .panel-heading{align-items:flex-start}
.builder-step{display:block;margin-bottom:5px;color:var(--blue);font-size:9px;font-weight:900;letter-spacing:.12em}
.preview-live-dot{white-space:nowrap;color:#26815d;font-size:10px;font-weight:800}
.game-template-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:8px 0 17px}
.game-template-card{min-width:0;min-height:112px;display:grid;align-content:start;justify-items:start;gap:6px;padding:11px 10px;border:1px solid var(--line);border-radius:11px;background:var(--canvas);color:var(--ink);text-align:left;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
.game-template-card:hover{transform:translateY(-2px);border-color:#8ba5ee;box-shadow:0 8px 18px rgba(28,58,130,.08)}
.game-template-card.is-selected{border-color:var(--blue);background:var(--pale);box-shadow:0 0 0 2px rgba(49,87,213,.1)}
.game-template-card strong{font-size:10px;line-height:1.3;color:var(--navy)}
.game-template-card small{color:var(--muted);font-size:9px;line-height:1.4}
.game-template-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#e9efff;font-size:16px}
.game-builder-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:14px;border-top:1px solid var(--line)}
.game-builder-settings .form-group{margin:0}
.game-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.game-builder-preview-card{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--canvas);box-shadow:0 9px 24px rgba(27,47,91,.07)}
.game-builder-preview-art{min-height:80px;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:linear-gradient(125deg,#e8efff,#f3f7ff 57%,#e7f6f2)}
.game-builder-preview-art>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.86);font-size:24px}
.game-builder-preview-art>i{padding:5px 8px;border-radius:99px;background:#fff;color:#2b5a45;font-size:8px;font-style:normal;font-weight:900;letter-spacing:.07em}
.game-builder-preview-body{padding:15px}
.game-builder-preview-body h3{margin:7px 0 4px;color:var(--navy);font-size:17px;line-height:1.28}
.game-builder-preview-body>p{min-height:35px;margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.game-preview-activity{display:grid;gap:9px;margin-top:13px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff)}
.game-preview-prompt{color:var(--navy);font-size:11px;font-weight:800;line-height:1.5}
.game-preview-image{width:100%;max-height:155px;object-fit:cover;border-radius:8px;background:#edf1fa}
.game-preview-options{display:grid;gap:6px}
.game-preview-options>div{display:flex;gap:8px;align-items:center;padding:7px 8px;border:1px solid var(--line);border-radius:7px;color:var(--blue);font-size:9px;font-weight:800}
.game-preview-options>div span{color:var(--ink);font-weight:600}
.game-preview-match{display:grid;grid-template-columns:1fr auto 1fr;gap:7px;align-items:center;text-align:center}
.game-preview-match span,.game-preview-answer{padding:9px 6px;border:1px solid var(--line);border-radius:8px;color:var(--navy);font-size:9px;font-weight:700}
.game-preview-match i{color:var(--blue);font-style:normal}
.game-preview-answer{color:var(--muted);font-weight:500}
.game-builder-preview-meta{display:grid;gap:6px;margin-top:12px;color:var(--muted);font-size:9px}
.game-builder-preview-empty{min-height:220px;display:grid;place-items:center;padding:20px;border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:11px;text-align:center}
.created-game-clue-image{display:block;width:min(100%,430px);max-height:300px;object-fit:contain;margin:17px auto 6px;border:1px solid var(--line);border-radius:13px;background:var(--canvas)}
.created-game-timer{display:grid;gap:6px;margin:13px 0 5px}
.created-game-timer>div:first-child{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}
.created-game-timer b{color:var(--navy);font-variant-numeric:tabular-nums}
.created-game-timer-track{height:7px;overflow:hidden;border-radius:99px;background:#e9edf5}
.created-game-timer-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3157d5,#79a2f5);transition:width .2s linear}
.admin-games-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-game-form{display:grid;gap:16px}
.admin-game-form .panel{margin:0}
.admin-game-form .panel-heading{align-items:flex-start}
.admin-game-content-fields{display:grid;gap:12px;margin-bottom:13px}
.admin-game-question{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--canvas)}
.admin-game-question legend{padding:0 7px;color:var(--navy);font-weight:800;font-size:13px}
.admin-game-question .form-group:last-of-type{margin-bottom:8px}
.admin-game-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.admin-game-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.admin-game-form-actions button{min-width:140px}
.created-game-preview{display:grid;gap:10px}
.created-game-preview .game-result-icon{font-size:42px}
.created-game-preview h3,.created-game-preview p{margin:0}
.created-game-panel{max-width:690px}
.created-game-panel .quiz-option{margin:7px 0}
.created-match-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.created-match-grid>div{display:grid;align-content:start;gap:9px}
.created-match-option{min-height:50px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-weight:650;text-align:left;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.created-match-option:hover:not(:disabled){transform:translateY(-1px);border-color:#9eb2ed}
.created-match-option.is-selected{border-color:var(--blue);background:var(--pale);color:var(--blue)}
.created-match-option.is-matched{border-color:#b8dfc8;background:#eef8f2;color:#286447}
.created-match-option:disabled{cursor:default;opacity:1}
.created-game-preview .detail-box{margin:2px 0}
.admin-game-form-actions button:focus-visible,.admin-game-question button:focus-visible,.created-match-option:focus-visible{outline:3px solid #7896f4;outline-offset:2px}
html[data-theme="dark"] .admin-game-question{background:#202d46;border-color:#34415b}
html[data-theme="dark"] .admin-game-question legend{color:#e3e9f6}
html[data-theme="dark"] .game-template-card{background:#172238;border-color:#34415b}
html[data-theme="dark"] .game-template-card strong,html[data-theme="dark"] .game-builder-preview-body h3,html[data-theme="dark"] .game-preview-prompt,html[data-theme="dark"] .created-game-timer b{color:#e3e9f6}
html[data-theme="dark"] .game-template-card.is-selected{background:#25375d;border-color:#7592ed}
html[data-theme="dark"] .game-template-icon{background:#263858}
html[data-theme="dark"] .game-builder-preview-card{background:#172238;border-color:#34415b}
html[data-theme="dark"] .game-builder-preview-art{background:linear-gradient(125deg,#263858,#202d46 57%,#1d3b34)}
html[data-theme="dark"] .game-builder-preview-art>span,html[data-theme="dark"] .game-builder-preview-art>i{background:#172238;color:#c4d0e7}
html[data-theme="dark"] .game-preview-activity{background:#111b2d;border-color:#34415b}
html[data-theme="dark"] .game-preview-options>div,html[data-theme="dark"] .game-preview-match span,html[data-theme="dark"] .game-preview-answer{border-color:#34415b}
html[data-theme="dark"] .game-preview-options>div span,html[data-theme="dark"] .game-preview-match span{color:#dce4f4}
html[data-theme="dark"] .created-game-clue-image{background:#111b2d;border-color:#34415b}
html[data-theme="dark"] .created-game-timer-track{background:#303c52}
html[data-theme="dark"] .created-match-option{background:#172238;border-color:#34415b;color:#d8e1f4}
html[data-theme="dark"] .created-match-option.is-selected{background:#25375d;border-color:#7592ed;color:#e9edff}
html[data-theme="dark"] .created-match-option.is-matched{background:#1d3b34;border-color:#356859;color:#c5f0da}
@media(max-width:1050px){.admin-game-studio-layout{grid-template-columns:minmax(0,1.2fr) minmax(245px,.8fr)}.game-template-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.admin-game-studio-layout{grid-template-columns:1fr}.admin-game-preview-rail{position:static;grid-row:1}.admin-game-preview-panel{max-width:none}.game-builder-preview-card{display:grid;grid-template-columns:minmax(130px,.65fr) 1fr}.game-builder-preview-art{align-items:flex-start;flex-direction:column;gap:10px}.game-builder-preview-body>p{min-height:0}}
@media(max-width:700px){.admin-games-heading-actions{width:100%;justify-content:space-between}.admin-game-options{grid-template-columns:1fr}.admin-game-form-actions{display:grid;grid-template-columns:1fr}.admin-game-form-actions button{width:100%}.created-match-grid{gap:8px}.created-match-option{padding:10px;font-size:12px}}
@media(max-width:520px){.game-template-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.game-template-card{min-height:98px}.game-builder-settings,.game-detail-grid{grid-template-columns:1fr}.game-builder-preview-card{display:block}.game-builder-preview-art{align-items:center;flex-direction:row}.admin-game-preview-rail{grid-row:auto}}
@media(prefers-reduced-motion:reduce){.created-match-option{transition:none}.created-match-option:hover:not(:disabled){transform:none}}

/* Optional administrator-authored HTML games run inside isolated preview frames. */
.game-template-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
.game-code-editor{display:block;min-height:340px;resize:vertical;padding:14px;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;tab-size:2;white-space:pre;overflow:auto}
.game-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.custom-game-frame{display:block;width:100%;min-height:360px;height:min(68vh,640px);border:1px solid var(--line);border-radius:12px;background:#fff}
.game-builder-code-frame{min-height:260px;height:360px}
.custom-game-preview-frame{padding:0;overflow:hidden}
.custom-game-player{max-width:980px;margin:0 auto}
.custom-game-player-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.custom-game-empty{min-height:130px;display:grid;place-items:center;padding:20px;border:1px dashed var(--line);border-radius:10px;background:var(--canvas);color:var(--muted);font-size:12px;line-height:1.6;text-align:center}
html[data-theme="dark"] .custom-game-empty{background:#111b2d;border-color:#34415b;color:#aab5ca}
@media(max-width:820px){.game-code-editor{min-height:280px}.custom-game-frame{height:min(65vh,560px);min-height:320px}.game-builder-code-frame{height:340px;min-height:240px}}
@media(max-width:560px){.game-code-toolbar,.custom-game-player-footer{align-items:flex-start;flex-direction:column}.game-code-toolbar .button{width:100%}.custom-game-frame{height:62vh;min-height:300px}.game-builder-code-frame{height:320px;min-height:220px}}


/* Games use the same filter rail and result toolbar as Explore. */
.games-market-layout{align-items:start;margin-top:18px}
.games-filter-sidebar{align-self:start}
.games-search-form{display:grid;gap:8px}
.games-search-control{display:block;width:100%;min-width:0;margin-top:2px}
.games-search-form .button{width:100%}
.games-filter-sidebar>.games-clear-link{display:inline-block;padding:3px 0;color:var(--blue);font-size:11px;font-weight:700}
.games-filter-sidebar>.games-clear-link:hover{text-decoration:underline}
.games-market-layout .toolbar-actions .pill{white-space:nowrap}
.games-market-layout .filter-tags:empty{display:none}
html[data-theme="dark"] .games-search-control{background:#111b2d;border-color:#34425b;color:#edf2ff}
@media(max-width:780px){.games-market-layout{margin-top:14px}.games-filter-sidebar>.games-clear-link{padding:6px 4px}}

/* Final game discovery facets: shared subject/grade tree with lesson metadata. */
.games-filter-sidebar .filter-group{min-width:0}
.games-filter-sidebar .field-select{margin-top:2px}
.games-filter-sidebar .games-search-group{padding-bottom:15px}
.games-filter-sidebar .games-search-form .button{min-height:38px}
.games-filter-sidebar .games-clear-link{margin-top:3px}
.games-sort-label{color:var(--muted);font-size:11px;font-weight:700}
.game-card-art{isolation:isolate}
.game-free-badge{position:absolute;top:11px;right:11px;padding:5px 9px;border:1px solid #c9e6d3;border-radius:999px;background:#effaf3;color:#286847;font-size:9px;line-height:1;font-weight:800;box-shadow:0 2px 8px #1d3c2010}
.game-card-copy .eyebrow{line-height:1.5;min-height:14px}
.game-card-facts{align-items:flex-start}
.game-card-facts span{max-width:100%}
html[data-theme="dark"] .game-free-badge{background:#173a30;border-color:#315e4e;color:#aee4c4}
@media(max-width:780px){.games-filter-sidebar .games-search-group{grid-column:1/-1}.games-filter-sidebar>.games-clear-link{align-self:center}.games-sort-label{display:none}}
@media(max-width:460px){.games-filter-sidebar{grid-template-columns:1fr 1fr}.games-filter-sidebar .games-search-group{grid-column:1/-1}.game-card-facts span{font-size:8px;padding-inline:6px}}

/* Listen & Watch multilingual audio/video discovery. */
.listen-watch-section{padding-top:22px}
.listen-library-note{display:flex;align-items:center;gap:15px;margin-bottom:20px;padding:17px 20px;border:1px solid #dce5f6;border-radius:15px;background:linear-gradient(110deg,#f0f5ff,#f8fbff)}
.listen-library-note-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:13px;background:#e1eaff;font-size:21px}
.listen-library-note>div{flex:1;min-width:0}
.listen-library-note strong{color:var(--navy);font-size:14px}
.listen-library-note p{margin:3px 0 0;color:var(--muted);font-size:11px}
.listen-watch-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}
.listen-filter-sidebar{position:sticky;top:124px;padding:17px;border:1px solid var(--line);border-radius:15px;background:var(--white);box-shadow:0 8px 22px rgba(27,47,91,.045)}
.listen-search-group{display:grid;gap:8px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.listen-search-group label,.listen-filter-control>span{color:var(--navy);font-size:11px;font-weight:800}
.listen-search-group .field{min-width:0;width:100%}
.listen-filter-grid{display:grid;gap:13px;padding:16px 0}
.listen-filter-control{display:grid;gap:5px;min-width:0}
.listen-filter-control .field-select{width:100%;min-width:0}
.listen-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:13px}
.listen-results{min-width:0}
.listen-sort-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:700}
.listen-sort-label .field-select{width:auto;min-width:130px;padding:8px 28px 8px 10px}
.listen-results-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.listen-page-size-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.listen-page-size-label .field-select{width:auto;min-width:62px;padding:8px 23px 8px 9px}
.listen-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.listen-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 14px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.listen-page-summary,.listen-page-indicator{color:var(--muted);font-size:11px}
.listen-page-controls{display:flex;align-items:center;gap:8px}
.listen-page-indicator{min-width:70px;text-align:center;font-weight:700}
.listen-pagination button:disabled{opacity:.45;cursor:not-allowed;transform:none}
.listen-media-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:var(--white);box-shadow:0 7px 20px rgba(27,47,91,.045);transition:box-shadow .18s ease,border-color .18s ease}
.listen-media-card:hover{border-color:#c5d2f1;box-shadow:0 14px 30px rgba(27,47,91,.11)}
.listen-media-art{height:112px;flex:0 0 112px;position:relative;display:grid;place-items:center;overflow:hidden}
.listen-art-audio{background:radial-gradient(circle at 72% 28%,#ffe08a 0 11%,transparent 12%),linear-gradient(135deg,#dff5ee,#edf1ff 58%,#f8e9ed)}
.listen-art-video{background:radial-gradient(circle at 73% 28%,#ffe08a 0 11%,transparent 12%),linear-gradient(135deg,#dceaff,#edf8f3 58%,#f4e9ff)}
.listen-media-icon{width:50px;height:50px;display:grid;place-items:center;border:1px solid #ffffffa8;border-radius:17px;background:#ffffffc9;color:var(--blue);font-size:26px;box-shadow:0 7px 18px rgba(31,56,115,.1)}
.listen-media-format,.listen-media-flag{position:absolute;top:10px;padding:5px 8px;border:1px solid #ffffffa8;border-radius:999px;background:#ffffffd9;color:#43536f;font-size:9px;font-weight:800;box-shadow:0 3px 10px rgba(31,56,115,.08)}
.listen-media-format{left:10px;text-transform:uppercase;letter-spacing:.07em}
.listen-media-flag{right:10px;font-size:14px;line-height:1}
.listen-media-copy{display:flex;flex:1;flex-direction:column;padding:15px}
.listen-media-meta{min-height:26px;line-height:1.35;color:var(--blue);font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.listen-media-copy h2{min-height:4.05em;margin:4px 0 6px;color:var(--navy);font-family:Manrope,'DM Sans',sans-serif;font-size:15px;line-height:1.35;letter-spacing:-.025em}
.listen-media-copy>p{min-height:4.8em;margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.6}
.listen-media-tags{display:flex;min-height:46px;align-content:flex-start;flex-wrap:wrap;gap:5px;margin:0 0 13px}
.listen-media-tags span{padding:4px 7px;border-radius:999px;background:#f2f5fa;color:#586781;font-size:9px;font-weight:700}
.listen-media-card .button{min-height:34px;align-self:flex-start;margin-top:auto}
.listen-player-detail{display:grid;gap:13px}
.listen-player-description{margin:0;color:var(--muted);font-size:13px}
.listen-native-player{display:block;width:100%;max-width:100%;border-radius:10px;background:#111}
.listen-video-player{max-height:min(60vh,520px);object-fit:contain}
.listen-player-source{color:var(--muted);font-size:10px}
.listen-transcript{padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--canvas);font-size:12px}
.listen-transcript summary{cursor:pointer;color:var(--navy);font-weight:700}
.listen-transcript p{margin:8px 0 0;color:var(--muted)}
html[data-theme="dark"] .listen-library-note{background:linear-gradient(110deg,#17253d,#182337);border-color:#34425b}
html[data-theme="dark"] .listen-library-note-icon{background:#25365a}
html[data-theme="dark"] .listen-library-note strong,html[data-theme="dark"] .listen-filter-control>span,html[data-theme="dark"] .listen-media-copy h2,html[data-theme="dark"] .listen-transcript summary{color:#edf2ff}
html[data-theme="dark"] .listen-filter-sidebar,html[data-theme="dark"] .listen-media-card{background:#172238;border-color:#34425b}
html[data-theme="dark"] .listen-search-group,html[data-theme="dark"] .listen-filter-actions{border-color:#34425b}
html[data-theme="dark"] .listen-media-tags span{background:#23324c;color:#c4d0e5}
html[data-theme="dark"] .listen-transcript{background:#111b2d;border-color:#34425b}
/* Administrator Listen & Watch media studio */
.admin-media-form{display:grid;gap:18px}
.admin-media-format-row{display:grid;grid-template-columns:minmax(200px,.72fr) minmax(0,1.5fr);gap:16px;align-items:stretch}
.admin-media-format-row>.form-group{margin:0}
.admin-media-drop{min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:18px;border:1.5px dashed #b9c8e7;border-radius:14px;background:var(--canvas);text-align:center;color:var(--navy);cursor:pointer;transition:border-color .18s ease,background .18s ease}
.admin-media-drop:hover,.admin-media-drop.is-dragging{border-color:var(--blue);background:var(--pale)}
.admin-media-drop-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#e5edff;color:var(--blue);font-size:22px;font-weight:700}
.admin-media-drop>span{color:var(--muted);font-size:11px}
.admin-media-drop input{max-width:100%;margin:5px auto 0;font-size:11px}
.admin-media-drop small{color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.admin-media-preview{max-width:560px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--canvas)}
.admin-media-section-heading{margin-top:3px;padding-top:17px;border-top:1px solid var(--line)}
.admin-media-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.admin-media-fields .form-group{margin:0}
.admin-media-full{grid-column:1/-1}
.admin-media-rights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--canvas)}
.admin-media-rights .form-group{margin:0}
.admin-media-rights-check{grid-column:1/-1;margin:0}
.admin-media-submit-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.admin-media-submit-row [role=status]{flex:1 1 100%;color:var(--muted);font-size:12px}
.admin-media-upload-progress{display:grid;gap:7px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--canvas)}
.admin-media-upload-progress-heading{display:flex;justify-content:space-between;gap:12px;color:var(--navy);font-size:11px}
.admin-media-upload-progress progress,.admin-media-zip-progress{width:100%;height:9px;overflow:hidden;accent-color:var(--blue)}
.admin-media-list-panel{min-width:0}
.admin-media-list .table-wrap{margin-top:4px}
.admin-media-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:155px}
.admin-media-delete{color:var(--red)}
.admin-media-empty{margin:12px 0;padding:26px 16px}
.admin-media-upload-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;border:0}
.admin-media-upload-mode legend{grid-column:1/-1;margin-bottom:2px;font-size:12px;font-weight:750;color:var(--navy)}
.admin-media-upload-mode label{display:flex;align-items:center;gap:11px;min-height:72px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--canvas);cursor:pointer;transition:border-color .18s ease,background .18s ease}
.admin-media-upload-mode label:has(input:checked){border-color:var(--blue);background:var(--pale);box-shadow:0 0 0 2px color-mix(in srgb,var(--blue) 12%,transparent)}
.admin-media-upload-mode input{accent-color:var(--blue);width:17px;height:17px;flex:none}
.admin-media-upload-mode label span{display:grid;gap:3px}
.admin-media-upload-mode label strong{font-size:12px;color:var(--navy)}
.admin-media-upload-mode label small{font-size:11px;color:var(--muted)}
.admin-media-zip-drop{margin:0}
.admin-media-zip-help,.admin-media-zip-summary{margin:12px 0 0}
.admin-media-zip-summary:empty{display:none}
.admin-media-zip-review{margin-top:15px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--canvas)}
.admin-media-zip-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.admin-media-zip-toolbar strong{font-size:12px;color:var(--navy)}
.admin-media-zip-review>p{margin:7px 0 12px}
.admin-media-zip-queue{display:grid;gap:9px}
.admin-media-zip-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.8fr);align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.admin-media-zip-item.is-uploaded{opacity:.72}
.admin-media-zip-file{display:flex;align-items:flex-start;gap:9px;min-width:0;cursor:pointer}
.admin-media-zip-file>input{margin:3px 0 0;accent-color:var(--blue);flex:none}
.admin-media-zip-file-copy{display:grid;gap:4px;min-width:0}
.admin-media-zip-file-copy strong{font-size:11px;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-media-zip-file-copy small{font-size:10px;color:var(--muted)}
.admin-media-zip-title{display:grid;gap:4px;font-size:10px;font-weight:700;color:var(--muted)}
.admin-media-zip-title .field{min-height:35px;padding:7px 9px;font-size:11px}
.admin-media-zip-progress{grid-column:1/-1}
.admin-media-zip-duplicate{grid-column:1/-1;padding:9px 11px;border:1px solid #f0ce84;border-radius:9px;background:#fff8e8;color:#785317;font-size:11px}
.admin-media-zip-duplicate label{display:inline-flex;align-items:center;gap:6px;margin-left:7px;font-weight:700}
.admin-media-zip-duplicate input,.admin-media-zip-rights input{accent-color:var(--blue)}
.admin-media-zip-rights{grid-column:1/-1;display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;color:var(--navy);font-size:11px;cursor:pointer}
.admin-media-zip-details{grid-column:1/-1;border-top:1px solid var(--line);padding-top:8px}
.admin-media-zip-details summary{display:flex;align-items:center;gap:8px;color:var(--blue);font-size:11px;font-weight:750;cursor:pointer}
.admin-media-zip-details summary small{color:var(--muted);font-weight:500}
.admin-media-zip-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 0 4px}
.admin-media-zip-meta{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:10px;font-weight:700}
.admin-media-zip-meta .field,.admin-media-zip-meta .field-select{min-height:36px;padding:7px 9px;font-size:11px}
.admin-media-zip-meta .field-textarea{min-height:65px;padding:8px;font-size:11px}
.admin-media-zip-meta-full{grid-column:span 2}
html[data-theme="dark"] .admin-media-upload-progress,html[data-theme="dark"] .admin-media-zip-rights{background:#111b2d;border-color:#34425b}
html[data-theme="dark"] .admin-media-upload-progress-heading,html[data-theme="dark"] .admin-media-zip-rights{color:#edf2ff}
html[data-theme="dark"] .admin-media-zip-duplicate{background:#352b19;border-color:#785b29;color:#f6d78b}
html[data-theme="dark"] .admin-media-zip-details{border-color:#34425b}
html[data-theme="dark"] .admin-media-zip-details summary{color:#a9bbff}
html[data-theme="dark"] .admin-media-drop,html[data-theme="dark"] .admin-media-rights{background:#111b2d;border-color:#34425b}
html[data-theme="dark"] .admin-media-drop{color:#edf2ff}
/* Local metadata helper and honest provider-usage status */
.ai-local-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin:0 0 18px;padding:17px;background:linear-gradient(105deg,#f1f5ff,#f8fbff);border-color:#d8e2fb}
.ai-local-banner strong{display:block;color:var(--navy);font-size:13px}
.ai-local-banner p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.ai-usage-grid{align-items:start}
.ai-usage-grid>.panel{min-width:0}
.local-metadata-result{margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--canvas);overflow-wrap:anywhere}
.local-metadata-result[hidden]{display:none}
.local-metadata-result strong{display:block;margin-top:9px;color:var(--navy);font-size:11px}
.local-metadata-result strong:first-child{margin-top:0}
.local-metadata-result p{margin:4px 0;color:var(--muted);font-size:11px;line-height:1.55}
.local-metadata-result small{color:var(--muted);font-size:10px;line-height:1.5}
.provider-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.provider-info-card{display:flex;align-items:flex-start;gap:13px;margin:0;padding:17px}
.provider-info-card h3{font-size:14px;margin:0 0 5px;color:var(--navy)}
.provider-info-card p{font-size:11px;line-height:1.55;color:var(--muted);margin:0 0 8px}
.provider-info-mark{flex:0 0 38px;height:38px;border-radius:11px;background:var(--pale);color:var(--blue);font-size:12px;font-weight:800;display:grid;place-items:center}
.ai-provider-manager{margin-bottom:18px}
.provider-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.provider-secret-field{grid-column:1/-1}
.provider-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:4px}
.ai-provider-list{display:grid;gap:10px}
.ai-provider-row{border:1px solid var(--line);border-radius:12px;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:16px;background:var(--white)}
.ai-provider-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0;flex:1}
.ai-provider-summary h4{font-size:14px;color:var(--navy);margin:3px 0 2px}
.ai-provider-summary small{display:block;color:var(--muted);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.ai-provider-summary .eyebrow{font-size:9px}
.ai-provider-last-message{margin-top:4px}
.ai-provider-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
html[data-theme="dark"] .provider-info-card h3,html[data-theme="dark"] .ai-provider-summary h4{color:#edf2ff}
html[data-theme="dark"] .ai-provider-row{background:#101a2a;border-color:#34425b}
@media(max-width:900px){.provider-info-grid{grid-template-columns:1fr}.provider-info-card{padding:14px}}
@media(max-width:620px){.provider-form-grid{grid-template-columns:1fr}.provider-secret-field{grid-column:auto}.ai-provider-row{align-items:stretch;flex-direction:column}.ai-provider-actions{justify-content:flex-start}.ai-provider-summary{align-items:flex-start}.ai-provider-actions .button{flex:1}}
.admin-media-suggest-single{justify-self:start}
.admin-media-suggest-single:disabled{opacity:.55;cursor:not-allowed}
.admin-media-zip-item-top>.button{justify-self:start}
html[data-theme="dark"] .ai-local-banner{background:linear-gradient(105deg,#17253d,#182337);border-color:#34425b}
html[data-theme="dark"] .ai-local-banner strong,html[data-theme="dark"] .local-metadata-result strong{color:#edf2ff}
html[data-theme="dark"] .local-metadata-result{background:#111b2d;border-color:#34425b}
@media(max-width:700px){.ai-local-banner{grid-template-columns:auto minmax(0,1fr)}.ai-local-banner>.button{grid-column:2;justify-self:start}.admin-media-zip-item-top>.button{width:100%}}
html[data-theme="dark"] .admin-media-drop:hover,html[data-theme="dark"] .admin-media-drop.is-dragging{background:#1d2b45;border-color:#718ee6}
html[data-theme="dark"] .admin-media-drop-icon{background:#25365a}
html[data-theme="dark"] .admin-media-section-heading{border-color:#34425b}
html[data-theme="dark"] .admin-media-upload-mode label,html[data-theme="dark"] .admin-media-zip-review{background:#111b2d;border-color:#34425b}
html[data-theme="dark"] .admin-media-upload-mode label:has(input:checked){background:#1d2b45;border-color:#718ee6}
html[data-theme="dark"] .admin-media-upload-mode label strong,html[data-theme="dark"] .admin-media-upload-mode legend,html[data-theme="dark"] .admin-media-zip-toolbar strong,html[data-theme="dark"] .admin-media-zip-file-copy strong{color:#edf2ff}
html[data-theme="dark"] .admin-media-zip-item{background:#172238;border-color:#34425b}
@media(max-width:700px){.admin-media-format-row,.admin-media-fields,.admin-media-rights,.admin-media-zip-details-grid{grid-template-columns:1fr}.admin-media-full,.admin-media-rights-check,.admin-media-zip-meta-full{grid-column:auto}.admin-media-submit-row>.button{flex:1}.admin-media-zip-item{grid-template-columns:1fr}.admin-media-upload-mode{grid-template-columns:1fr}}
@media(max-width:1200px){.listen-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.listen-watch-layout{grid-template-columns:1fr}.listen-filter-sidebar{position:static}.listen-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.listen-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.listen-library-note{align-items:flex-start;flex-wrap:wrap;padding:14px}.listen-library-note>div{flex-basis:calc(100% - 60px)}.listen-library-note>.pill{margin-left:57px}.listen-filter-sidebar{padding:14px}.listen-media-grid{grid-template-columns:1fr}.listen-results>.toolbar{align-items:flex-start;flex-direction:column}.listen-results-controls{width:100%;justify-content:space-between}.listen-sort-label{font-size:0}.listen-sort-label .field-select{font-size:11px}.listen-pagination{align-items:flex-start;flex-direction:column}.listen-page-controls{width:100%;justify-content:space-between}.listen-media-art{height:125px;flex-basis:125px}}

/* Friendly, consistent hover details across the marketplace */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .resource-card,
  .category-card,
  .help-card,
  .integration-card,
  .bundle-card,
  .feature-tile,
  .game-card,
  .listen-media-card {
    transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s ease, border-color .2s ease, background-color .2s ease;
    will-change: transform;
  }

  .resource-card:hover,
  .category-card:hover,
  .help-card:hover,
  .integration-card:hover,
  .bundle-card:hover,
  .feature-tile:hover,
  .game-card:hover,
  .listen-media-card:hover {
    transform: translateY(-5px) scale(1.006);
    border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
    box-shadow: 0 18px 34px rgba(37, 69, 145, .14);
  }

  .resource-card .cover-visual,
  .category-icon,
  .game-card-art > span,
  .listen-media-art > span,
  .wordmark-mark,
  .footer-socials a svg,
  .icon-button svg {
    transition: transform .28s cubic-bezier(.2,.75,.25,1), filter .24s ease;
  }

  .resource-card:hover .cover-visual { transform: scale(1.06) rotate(-1deg); }
  .category-card:hover .category-icon { transform: translateY(-2px) rotate(-5deg) scale(1.08); }
  .game-card:hover .game-card-art > span { transform: translateY(-3px) scale(1.1) rotate(-4deg); }
  .listen-media-card:hover .listen-media-art > span { transform: translateY(-3px) scale(1.1) rotate(-4deg); }
  .wordmark:hover .wordmark-mark { transform: rotate(-7deg) scale(1.07); }

  .button:not(:disabled),
  .icon-button,
  .main-nav a,
  .login-link,
  .footer-socials a,
  .filter-chip,
  .pill,
  .text-link,
  .dash-link {
    transition: transform .2s cubic-bezier(.2,.75,.25,1), color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .button:not(:disabled):hover,
  .icon-button:hover,
  .footer-socials a:hover { transform: translateY(-2px); }
  .button:not(:disabled):active { transform: translateY(0) scale(.975); transition-duration: .08s; }
  .main-nav a { display: inline-flex; }
  .main-nav a:hover,
  .login-link:hover,
  .text-link:hover,
  .dash-link:hover { transform: translateY(-1px); }
  .icon-button:hover svg,
  .footer-socials a:hover svg { transform: scale(1.12) rotate(-5deg); }
  .search-panel:focus-within,
  .header-search:focus-within { border-color: #9bb0f1; box-shadow: 0 0 0 4px rgba(49,87,213,.09), 0 10px 26px rgba(37,59,104,.08); }
  input, select, textarea { transition: border-color .18s ease, box-shadow .18s ease; }
}

:focus-visible { outline: 3px solid #3157d5; outline-offset: 3px; }
html[data-theme="dark"] :focus-visible { outline-color: #b4c4ff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .resource-card:hover,
  .category-card:hover,
  .help-card:hover,
  .integration-card:hover,
  .bundle-card:hover,
  .feature-tile:hover,
  .game-card:hover,
  .listen-media-card:hover,
  .button:hover,
  .icon-button:hover,
  .footer-socials a:hover { transform: none !important; }
}

.seller-upload-feedback{display:grid;gap:8px;margin:14px 0;padding:12px 14px;border:1px solid #dbe5ff;border-radius:12px;background:#f4f7ff;color:#4e5c78;font-size:12px}
.seller-upload-feedback progress{width:100%;height:9px;accent-color:var(--blue)}
.seller-upload-feedback[hidden]{display:none}
html[data-theme="dark"] .seller-upload-feedback{background:#172238;border-color:#34425b;color:#d3dced}

.auth-provider-list{display:grid;gap:10px;margin:18px 0 12px}
.auth-provider-button{width:100%;min-height:46px;justify-content:center;font-weight:700;background:var(--white)}
.auth-provider-button:hover{border-color:var(--blue);background:var(--pale);transform:translateY(-1px)}
#authEmailForm{margin-top:4px}
#adminAuthProviderForm .upload-grid{align-items:start}
#adminAuthCallbackNote{overflow-wrap:anywhere;font-size:12px}
#adminAuthSettings code{padding:2px 5px;border-radius:5px;background:var(--pale);overflow-wrap:anywhere}
html[data-theme="dark"] .auth-provider-button{background:#172238;color:#e7ecf7}
html[data-theme="dark"] .auth-provider-button:hover{background:#202f49;border-color:#6e8df7}
html[data-theme="dark"] #adminAuthSettings code{background:#202f49;color:#dce6ff}

[hidden]{display:none!important}
.not-found-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px}
.donation-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}.donation-method{min-width:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,#fff,#f8faff);box-shadow:0 8px 20px rgba(27,47,91,.05)}.donation-method-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.donation-method h3{margin:0;color:var(--navy);font-family:Manrope,'DM Sans',sans-serif;font-size:17px;letter-spacing:-.02em}.donation-method p{margin:8px 0;color:var(--muted);font-size:13px;line-height:1.6}.donation-method p:last-child{margin-bottom:0}.donation-method strong{color:var(--ink)}.donation-status{flex:none;border-radius:999px;padding:4px 9px;background:#fff3d6;color:#785200;font-size:10px;font-weight:700}.donation-method-paypal button:disabled{cursor:not-allowed;opacity:.72;box-shadow:none}@media(max-width:640px){.donation-method-grid{grid-template-columns:1fr}.donation-method{padding:16px}}
