/* Six module cards keep CET immediately before membership at every width. */
html body .portal-modules:has([data-module="cet"]){grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body .portal-modules:has([data-module="cet"])>.portal-module{grid-column:auto!important;grid-row:auto!important;min-width:0}
html body .portal-modules>[data-module="phonetic"]{order:1}html body .portal-modules>[data-module="vocabulary"]{order:2}html body .portal-modules>[data-module="grammar"]{order:3}html body .portal-modules>[data-module="reading"]{order:4}html body .portal-modules>[data-module="cet"]{order:5}html body .portal-modules>[data-module="membership"]{order:6}
@media(max-width:900px){html body .portal-modules:has([data-module="cet"]){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){html body .portal-modules:has([data-module="cet"]){gap:10px!important}html body .portal-modules:has([data-module="cet"])>.portal-module{padding:13px;min-height:130px}.portal-module[data-module="membership"] h3{font-size:clamp(16px,4vw,22px)}}
.cover-login .cover-home-link{position:fixed;top:16px;left:18px;z-index:30;display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border:1px solid #86b9b2;border-radius:12px;background:#f3fcf6ed;color:#185f59;font:700 13px/1.3 system-ui,"Microsoft YaHei",sans-serif;text-decoration:none;box-shadow:0 3px 0 #bdd5cd,0 5px 14px #123d3818;transition:transform .15s,box-shadow .15s}
.cover-login .cover-home-link:hover{transform:translateY(-1px);background:#fff;box-shadow:0 4px 0 #bdd5cd,0 7px 16px #123d3828}.cover-login .cover-home-link:active{transform:translateY(1px)}.cover-login .cover-home-link:focus-visible{outline:3px solid #14b8a6;outline-offset:3px}.cover-home-link>span{font-size:18px;line-height:1}
@media(max-width:640px){.cover-login .cover-home-link{top:10px;left:10px;padding:6px 10px}}

/* CET follows the existing vocabulary card palette and paired readable ink. */
html:not([data-learning-style="classic_custom"])[data-learning-style] .portal-module[data-module="cet"] {--module-bg:var(--sv-pages-hub-vocabulary-bg);--module-border:var(--sv-pages-hub-vocabulary-border);--module-shadow:var(--sv-pages-hub-vocabulary-shadow);--module-symbol:var(--sv-pages-hub-vocabulary-symbol-color);--module-top:var(--sv-pages-hub-vocabulary-top-bar);--module-badge-bg:var(--sv-pages-hub-vocabulary-badge-bg);--module-badge-text:var(--sv-pages-hub-vocabulary-badge-text);}
html:not([data-learning-style="classic_custom"])[data-learning-style] .portal-module[data-module="cet"] {--read-module:var(--read-module-vocabulary);--read-module-sub:var(--read-module-vocabulary-sub);--read-module-symbol:var(--read-module-vocabulary-symbol);--read-module-badge:var(--read-module-vocabulary-badge);}
html[data-learning-style="classic_custom"] .portal-module[data-module="cet"]{--accent:#adf3c8;background:linear-gradient(140deg,#193930,#0d192d 80%);border-color:#3e6556}
html[data-learning-style="classic_custom"] .portal-module[data-module="cet"]{--module-glow:#73e8b666;background:linear-gradient(145deg,#fff 10%,#e2faee 58%,#bcebd3);border-color:#7ac8a6}
