*{box-sizing:border-box}body{background:#f4f6f9;color:#21304a;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:15px}a{color:inherit}a:hover{color:#2468d8}.topbar{background:#fff;display:flex;align-items:center;justify-content:space-between;padding:22px max(4vw,20px);border-bottom:1px solid #e4e9f1;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px}.brand-mark{background:#245ac2;color:#fff;padding:7px 10px;border-radius:9px}.brand img{max-height:38px}.topbar nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:14px}.shell{max-width:1220px;margin:32px auto;padding:0 24px;min-height:70vh}.shell main{min-width:0}.admin-shell{display:grid;grid-template-columns:190px minmax(0,1fr);gap:28px}.sidebar{padding:22px 16px;background:#fff;border:1px solid #e5eaf2;border-radius:12px;align-self:start}.sidebar a{display:block;padding:12px 8px;border-radius:6px}.sidebar a:hover{background:#eef4ff}.eyebrow{color:#6580a8;font-size:12px;letter-spacing:2px;text-transform:uppercase;margin-bottom:12px}.hero{background:linear-gradient(120deg,#162e58,#2864ad);border-radius:18px;padding:58px 48px;color:#fff;margin-bottom:38px}.hero h1{font-size:38px;line-height:1.4;max-width:730px;margin:12px 0}.hero p{color:#d4e2f4;line-height:1.8;margin-bottom:25px}.searchbar{display:flex;gap:10px;margin:22px 0;max-width:850px}.searchbar input{flex:1;min-width:0}.hero .searchbar{background:#fff;padding:8px;border-radius:8px}.hero input{border:0}.layui-btn{background:#245fc9;border-radius:6px}.layui-btn-primary{background:#fff}.layui-input,.layui-textarea,select{border-radius:6px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card,.panel{background:#fff;border:1px solid #e2e8f1;border-radius:12px;padding:26px;margin-bottom:22px}.card{margin-bottom:0}.card h3{font-size:19px;font-weight:600;margin:12px 0}.card p,.muted{color:#728098;line-height:1.8}.card .meta{font-size:12px;margin-top:18px}.section{margin:38px 0}.section-head,.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:15px}.section h2,.page-head h1{font-size:25px;font-weight:650}.tag{display:inline-block;background:#eef4ff;color:#3965a2;padding:5px 9px;border-radius:5px;font-size:12px;margin:3px 5px 3px 0}.entry{background:#fff;border:1px solid #e2e8f1;border-radius:10px;margin:16px 0;padding:24px}.entry h3{font-size:19px;margin:10px 0}.entry .source{font-size:17px;line-height:1.9;white-space:pre-wrap}.variant{border-left:3px solid #a9c4ed;padding:10px 16px;margin:14px 0;white-space:pre-wrap;line-height:1.8}.notice{padding:17px 22px;border-radius:8px;margin:20px 0;line-height:1.8}.success{background:#e5f5ec;color:#217345}.error{background:#ffeded;color:#ab3232}.empty{text-align:center;color:#78869b;padding:45px 20px;border:1px dashed #d5dfed;border-radius:10px;background:#fff}.form-row{margin:20px 0}.form-row label{display:block;font-weight:550;margin-bottom:9px}.form-row small{display:block;color:#7a879a;margin-top:7px;line-height:1.7}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.check-label{display:inline-flex!important;gap:8px;align-items:center;margin-right:15px}.check-label input{width:16px;height:16px;accent-color:#245fc9}.table-wrap{overflow-x:auto}.layui-table td,.layui-table th{padding:15px 12px}.layui-table{border-radius:8px}.inline{display:inline}.text-button{border:0;background:none;color:#3867af;cursor:pointer;font-size:14px}.danger{color:#ae3434}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.article-body{white-space:pre-wrap;line-height:2;font-size:17px}.banner{position:relative;min-height:230px;border-radius:12px;overflow:hidden;margin-bottom:20px;background:#132d51}.banner img{width:100%;max-height:340px;object-fit:cover;opacity:.65}.banner-caption{position:absolute;bottom:22px;left:28px;color:#fff;max-width:80%}.banner-caption h3{font-size:25px;margin-bottom:10px}.media img,.media video{max-width:100%;max-height:450px}.media audio{max-width:100%}.pagination{display:flex;justify-content:center;gap:12px;margin:25px 0}.pagination a,.pagination span{background:#fff;padding:9px 14px;border-radius:5px;border:1px solid #dce4f0}footer{border-top:1px solid #e1e7ef;padding:28px;text-align:center;color:#8290a5;font-size:13px}.auth-panel{max-width:460px;margin:65px auto}.summary{display:flex;gap:16px;flex-wrap:wrap}.stat{flex:1;background:#fff;border-radius:10px;border:1px solid #e2e8f1;padding:24px;min-width:150px}.stat strong{display:block;font-size:30px;color:#245fc9;margin:12px 0}.filters{display:flex;gap:12px;flex-wrap:wrap}.filters select{height:38px;border:1px solid #dce4ee;min-width:130px;padding:0 10px}.code-input{font-family:ui-monospace,monospace;min-height:155px}.caption{color:#78869c;font-size:13px;line-height:1.8}@media(max-width:850px){.topbar{flex-direction:column;align-items:flex-start}.grid{grid-template-columns:1fr 1fr}.admin-shell{grid-template-columns:1fr}.sidebar{display:flex;flex-wrap:wrap;gap:4px}.sidebar p{width:100%}.sidebar a{padding:8px}.hero{padding:35px 24px}.hero h1{font-size:29px}}@media(max-width:550px){.grid,.form-grid{grid-template-columns:1fr}.shell{padding:0 16px}.topbar nav{gap:14px}.searchbar{flex-wrap:wrap}.hero{padding:30px 20px}.page-head{align-items:flex-start;flex-direction:column}}

/* Public portal */
.portal-body{background:linear-gradient(125deg,#667eea 0%,#7462bd 48%,#764ba2 100%);background-attachment:fixed;color:#2d3748}.portal-body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 15% 20%,#ffffff18,transparent 40%),radial-gradient(circle at 90% 80%,#ffffff15,transparent 40%)}.portal-header{position:sticky;top:0;z-index:30;background:#fffffff5;backdrop-filter:blur(14px);border-bottom:1px solid #ffffff55;box-shadow:0 2px 18px #27315813}.portal-nav{max-width:1280px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 28px}.brand{min-width:0;max-width:430px;font-size:17px;flex-shrink:1}.brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-mark{background:linear-gradient(130deg,#6576e6,#8355b3);border-radius:10px;font-weight:700;font-size:21px;padding:7px 11px}.portal-menu{display:flex;gap:4px;align-items:center;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}.portal-menu>a{font-size:14px;padding:9px 10px;border-radius:7px;color:#546078}.portal-menu>a:hover,.portal-menu>a.active{background:#eef0fe;color:#6972d8}.portal-menu>a.nav-admin{background:#eef0fc;color:#636ed1;margin-left:6px}.portal-body{--portal-content-width:1240px;--portal-content-gutter:24px}.portal-shell{position:relative;max-width:var(--portal-content-width);margin:0 auto;padding:30px var(--portal-content-gutter) 50px}.portal-intro{text-align:center;color:#fff;padding:27px 15px 31px}.portal-kicker{font-size:12px;letter-spacing:3px;color:#e5e7ff}.portal-intro h1{font-size:32px;line-height:1.5;margin:15px 0;font-weight:700}.portal-intro p{color:#eee9ff;line-height:1.8}.search-hub,.asset-section{background:#fffffff5;border-radius:16px;box-shadow:0 10px 32px #33285717;border:1px solid #ffffff60;padding:30px;margin-bottom:24px}.search-hub-heading{display:flex;align-items:center;gap:15px;margin-bottom:24px}.search-hub-heading h2{font-size:23px;font-weight:650}.search-hub-heading p{font-size:14px;color:#8590a2;margin-top:7px}.hub-icon{color:#6873d8;background:#edeffd;display:grid;place-items:center;width:54px;height:54px;border-radius:14px}.hub-icon i{font-size:27px}.search-kind-tabs{display:flex;gap:10px;flex-wrap:wrap}.search-kind-tabs label input{position:absolute;opacity:0;width:0;height:0}.search-kind-tabs span{display:block;padding:8px 17px;border-radius:8px;background:#f0f2f7;color:#6c7890;cursor:pointer;font-size:14px}.search-kind-tabs input:checked+span{background:#6c71d5;color:#fff}.search-kind-tabs input:focus-visible+span{outline:2px solid #a0a9fa;outline-offset:2px}.search-hub .searchbar{max-width:none;margin:20px 0 15px;gap:12px}.search-hub .searchbar input{height:49px;border-color:#dce1ef;background:#fafbfe;padding-left:17px}.search-hub .searchbar button{height:49px;line-height:49px;padding:0 25px;background:linear-gradient(120deg,#687ee3,#8156b6);box-shadow:0 5px 12px #6b72d830}.search-hint{font-size:12px;color:#8590a2;line-height:1.7}.search-hint i{margin-right:7px}.section-heading{display:flex;gap:14px;align-items:center}.section-heading h2,.asset-section h2{font-size:22px;font-weight:650}.section-heading p{font-size:13px;color:#8490a3;margin-top:7px}.section-icon{width:46px;height:46px;background:#eef0fe;color:#6e78d6;border-radius:12px;display:grid;place-items:center}.section-icon i{font-size:23px}.section-icon.kind-term{background:#e7f5f0;color:#40a58a}.section-icon.kind-multimodal{background:#fff1e4;color:#dd9a52}.section-link{font-size:13px;font-weight:600;color:#6d73ce;white-space:nowrap}.portal-body .grid{gap:16px}.portal-body .card{border-radius:12px;border-color:#e8eaf2;background:#fff;padding:23px;transition:transform .2s,box-shadow .2s}.portal-body .card:hover{transform:translateY(-3px);box-shadow:0 8px 20px #5d6d9520;border-color:#c7cff1}.library-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.resource-icon{background:#eef1ff;color:#7180df;width:38px;height:38px;border-radius:10px;display:grid;place-items:center}.resource-icon i{font-size:20px}.library-card.kind-term .resource-icon{background:#e6f4ee;color:#39a38b}.library-card.kind-multimodal .resource-icon{background:#fff3e7;color:#df9b51}.library-category{font-size:12px;background:#f2f4f9;color:#8995a8;padding:5px 8px;border-radius:5px}.portal-body .card h3{font-size:18px;margin:16px 0 10px}.portal-body .card p{font-size:13px;line-height:1.8;min-height:45px}.language-pair{display:flex;gap:8px;align-items:center;font-size:12px;color:#7585a0;margin-top:17px}.language-pair span{background:#f6f7fa;border-radius:4px;padding:4px 7px}.portal-body .card .meta{padding-top:15px;border-top:1px solid #eff1f6;display:flex;align-items:center;gap:5px;font-size:12px}.meta>span{margin-left:auto;color:#7885be}.meta strong{color:#6678c8;font-size:16px}.translation-promo{display:flex;align-items:center;gap:22px;padding:30px;background:linear-gradient(110deg,#f4f1ff,#ffffff);border-radius:16px;margin:24px 0;box-shadow:0 10px 32px #33285717}.translation-promo h2{font-size:24px;margin:5px 0 10px}.translation-promo p{font-size:13px;color:#8390a5;line-height:1.8}.translation-promo .layui-btn{margin-left:auto;background:#7171cf;flex-shrink:0}.translation-orb{width:70px;height:70px;background:#e7e5fb;border-radius:20px;display:grid;place-items:center;color:#7970c9;flex-shrink:0}.translation-orb i{font-size:34px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.feature-item{text-align:center;padding:17px 9px}.feature-item>i{font-size:33px;color:#7885dc}.feature-item h3{font-size:16px;font-weight:600;margin:15px 0 8px}.feature-item p{font-size:12px;color:#8490a1;line-height:1.8}.portal-stats{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;padding:12px}.portal-stats strong{display:block;font-size:34px;color:#7180d6;margin-bottom:10px}.portal-stats span{font-size:13px;color:#8791a4}.guest-tip{background:#fff6dbe8;border:1px solid #fff0b6;border-radius:10px;color:#a68946;padding:18px 23px;font-size:13px;line-height:1.8}.guest-tip a{color:#6676c9;margin:0 4px;font-weight:600}.portal-footer{background:#fffffff2;position:relative;color:#8b94a6;line-height:2.2;padding:27px;text-align:center}.portal-footer strong{color:#737e93;font-weight:500}.portal-body .page-head{background:#ffffffee;border-radius:14px;padding:26px;margin-bottom:20px}.portal-body .muted,.portal-body .caption{color:#808ea4}.portal-body main>p.muted,.portal-body main>p.caption{color:#eeeaff}.portal-body .layui-btn:not(.layui-btn-primary){background:#7078d8}.mobile-nav-button{display:none;border:0;background:#eef0ff;border-radius:7px;padding:9px;color:#6972c9;cursor:pointer}.category-tabs{display:flex;gap:10px;flex-wrap:wrap;background:#fff;border-radius:10px;padding:15px;margin-bottom:20px}.category-tabs a{padding:7px 13px;border-radius:6px;color:#8a94a5}.category-tabs a.active{background:#eef0fd;color:#737acf}
/* Independent administration workspace */
.admin-body{background:#f1f4f8;color:#30415b;font-size:14px}.admin-sidebar{position:fixed;left:0;top:0;bottom:0;width:242px;background:#17263e;color:#b9c5d8;z-index:45;display:flex;flex-direction:column;box-shadow:3px 0 18px #2030480c}.admin-brand{display:flex;align-items:center;gap:12px;padding:24px 21px;color:#fff;min-height:100px;border-bottom:1px solid #ffffff0b;font-weight:650;font-size:16px}.admin-brand small{display:block;color:#7386a4;font-size:10px;font-weight:400;max-width:158px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:7px}.admin-brand .brand-mark{background:#4c73bf;font-size:18px;padding:8px 11px}.admin-menu{overflow-y:auto;padding:10px 14px 20px;flex:1}.menu-group{font-size:10px;color:#6c809f;padding:18px 14px 8px;letter-spacing:1px}.admin-menu-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:7px;margin:3px 0;font-size:13px;transition:background .15s}.admin-menu-item i{font-size:17px;color:#8da1bd}.admin-menu-item:hover{background:#ffffff09;color:#fff}.admin-menu-item.active{background:#3765b5;color:#fff;box-shadow:0 4px 14px #00000012}.admin-menu-item.active i{color:#dce9ff}.sidebar-front{padding:20px 25px;border-top:1px solid #ffffff0a;font-size:12px;color:#8fa2c0}.admin-workspace{margin-left:242px;min-height:100vh;display:flex;flex-direction:column}.admin-topbar{position:sticky;top:0;background:#fff;border-bottom:1px solid #e1e7ef;min-height:72px;padding:0 32px;display:flex;justify-content:space-between;align-items:center;gap:20px;z-index:25}.admin-breadcrumb{font-size:12px;color:#94a0b3;display:flex;align-items:center;gap:12px}.admin-breadcrumb strong{color:#566780;font-weight:500}.admin-breadcrumb i{font-size:10px}.admin-account{display:flex;align-items:center;gap:14px;font-size:12px;color:#7d8ca3}.role-badge{padding:5px 8px;color:#6e82a7;background:#edf2fa;border-radius:5px;font-size:10px}.admin-main{padding:30px 32px;flex:1;min-width:0;max-width:1600px;width:100%;margin:0 auto}.admin-main .page-head{margin-bottom:25px}.admin-main .page-head h1{font-size:26px;color:#293e5d;font-weight:650}.admin-main .page-head .muted{font-size:12px;margin-top:8px}.admin-main .eyebrow{font-size:10px;color:#a0abc0;letter-spacing:1px;margin-bottom:7px}.admin-body .panel{padding:28px;border-radius:10px;border-color:#e6ebf3;box-shadow:0 3px 8px #39496803}.admin-body .layui-btn{background:#416dbd;font-size:13px;height:38px;line-height:38px}.admin-body .layui-btn-primary{background:#fff;color:#6e809e;border-color:#dbe2ef}.admin-body .layui-btn-danger{background:#c95559}.admin-body .layui-table{margin:0;background:#fff;border:1px solid #e9edf3}.admin-body .layui-table th{background:#f7f9fc;border-color:#e9edf3;color:#8793a9;font-size:12px;font-weight:500;padding:16px}.admin-body .layui-table td{border-color:#edf0f5;font-size:13px;padding:17px 16px;color:#50617e}.admin-body .layui-table tbody tr:hover{background:#f7f9fe}.admin-body .layui-table td .caption{font-size:11px;margin-top:4px}.admin-body .actions{gap:13px}.admin-body .actions a{color:#5a7caf}.admin-body .form-row label{color:#566983;font-size:13px;font-weight:500}.admin-body .form-row small{font-size:11px}.admin-body .layui-input,.admin-body .layui-textarea{border-color:#dfe6f0;background:#fdfefe;font-size:13px}.admin-body .layui-input:focus,.admin-body .layui-textarea:focus{border-color:#97b2e1!important;box-shadow:0 0 0 3px #6084c80d}.admin-body .stat{border-radius:10px;border-color:#e3eaf4;padding:24px;font-size:12px;color:#8391a8}.admin-body .stat strong{font-size:32px;font-weight:650;color:#416dbd}.admin-footer{font-size:10px;color:#a7b2c5;border:0;padding:20px;text-align:center}.admin-menu-toggle{display:none;border:0;background:#eff3fa;border-radius:6px;padding:9px;color:#6d83ab;cursor:pointer}.admin-topbar-left{display:flex;align-items:center;gap:14px}.admin-backdrop{display:none}.admin-body .notice{font-size:12px;border-radius:8px;margin-top:0}.admin-body .table-panel{padding:0;overflow:hidden}.module-sort-row{display:flex;gap:16px;align-items:center;padding:14px;border:1px solid #e4eaf2;border-radius:8px;margin:10px 0;background:#fff}.module-sort-row.dragging{opacity:.4}.drag-handle{cursor:grab;color:#a2aec0}.module-default{font-size:11px;color:#8997ac;width:130px;flex-shrink:0}.module-default small{display:block;color:#b0bac9;font-size:10px;margin-top:3px}.module-sort-row .layui-input{max-width:380px}.sort-arrows{display:flex;gap:5px;margin-left:auto}.sort-arrows button{border:1px solid #e3e9f2;border-radius:5px;background:#f6f8fc;color:#7e91b2;width:29px;height:29px;cursor:pointer}.danger-panel{border-left:3px solid #d67373!important}.danger-panel h2{font-size:19px;color:#ae5a60;margin-bottom:12px}.danger-panel summary{cursor:pointer;color:#a5646c;font-weight:550}.danger-panel details{line-height:1.8}.ql-toolbar.ql-snow{border-color:#dfe6f0;border-radius:7px 7px 0 0;background:#f7f9fc}.ql-container.ql-snow{border-color:#dfe6f0;border-radius:0 0 7px 7px;font-family:inherit;font-size:15px;min-height:320px}.ql-editor{min-height:320px;line-height:1.9;color:#3e506d}.editor-status{display:flex;justify-content:space-between;color:#a0acc0;font-size:10px;padding:9px 2px}.rich-content{white-space:normal;line-height:1.9}.rich-content p{margin:14px 0}.rich-content h1,.rich-content h2,.rich-content h3{font-weight:650;line-height:1.5;margin:25px 0 13px}.rich-content h1{font-size:28px}.rich-content h2{font-size:24px}.rich-content h3{font-size:20px}.rich-content ul,.rich-content ol{padding-left:28px;margin:15px 0}.rich-content ul{list-style:disc}.rich-content ol{list-style:decimal}.rich-content blockquote{border-left:4px solid #b5c2e2;padding:10px 20px;background:#f3f5fb;margin:18px 0;color:#7a87a2}.rich-content a{color:#5c76bd;text-decoration:underline}.rich-content img{max-width:100%;border-radius:8px;margin:15px 0}.rich-content pre{padding:20px;background:#eef1f7;overflow-x:auto;border-radius:7px}.pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px 2px;font-size:12px}.pagination-summary{border:0!important;background:none!important;color:#8a98ae;padding:0!important}.pagination-controls{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.pagination-controls a,.pagination-controls span{padding:6px 10px;border-radius:5px;border-color:#e0e6f0;background:#fff;color:#8a98af;min-width:30px;text-align:center}.pagination-controls .current{background:#577cc5;border-color:#577cc5;color:#fff}.pagination-controls [aria-disabled]{background:#f5f7fa;color:#c5ccda}.pagination-jump{display:flex;align-items:center;gap:8px;color:#97a3b7}.pagination-jump input[type=number]{width:45px;height:28px;border:1px solid #dce4f0;border-radius:4px;text-align:center;color:#7688a7}.pagination-jump button{padding:5px 10px;background:#fff;border:1px solid #dce4f0;color:#8394af;border-radius:4px}.portal-body .pagination-summary,.portal-body .pagination-jump{color:#ece9ff}.portal-body .pagination-controls .current{background:#8075cc;border-color:#8075cc}.portal-body .empty{font-size:13px;border-color:#e1e4f0;padding:35px 20px}.portal-body .entry{border-color:#e9eaf2;border-radius:13px}.portal-body .tag{background:#eef0fc;color:#7c85c1}
@media(min-width:1600px){.admin-main{padding:38px 45px}}
@media(max-width:1050px){.portal-nav{gap:12px;padding:16px 22px}.portal-nav .brand{max-width:300px;font-size:15px}.portal-menu>a{padding:8px;font-size:12px}}
@media(max-width:960px){.admin-sidebar{transform:translateX(-100%);transition:transform .2s}.admin-workspace{margin-left:0}.admin-menu-toggle{display:block}.admin-nav-open .admin-sidebar{transform:translateX(0)}.admin-nav-open .admin-backdrop{display:block;position:fixed;inset:0;background:#13223b65;border:0;z-index:40}.admin-topbar{padding:0 22px}.admin-main{padding:25px 22px}.portal-nav{flex-wrap:wrap}.portal-nav .brand{max-width:calc(100% - 65px);font-size:16px}.mobile-nav-button{display:block;margin-left:auto}.portal-menu{display:none;width:100%;justify-content:flex-start;padding-top:12px;border-top:1px solid #eff0f5}.portal-nav-open .portal-menu{display:flex}.portal-intro h1{font-size:26px}.feature-grid{grid-template-columns:repeat(2,1fr)}.translation-promo{flex-wrap:wrap}.translation-promo .layui-btn{margin-left:92px}}
@media(max-width:620px){.portal-body{--portal-content-gutter:15px}.portal-shell{padding:20px var(--portal-content-gutter) 35px}.portal-intro{padding:18px 4px 26px}.portal-intro h1{font-size:23px}.search-hub,.asset-section{padding:22px 19px;border-radius:13px}.search-hub-heading h2{font-size:19px}.search-hub-heading p{font-size:12px}.search-hub .searchbar{flex-wrap:nowrap;gap:8px}.search-hub .searchbar button{padding:0 14px;font-size:13px}.search-hub .searchbar button i{display:none}.portal-body .grid{grid-template-columns:1fr}.section-head{align-items:flex-start}.section-heading{gap:10px}.section-heading h2,.asset-section h2{font-size:19px}.section-heading p{font-size:11px;max-width:170px;line-height:1.7}.section-icon{width:38px;height:38px;flex-shrink:0}.section-link{font-size:11px}.translation-promo{padding:22px;gap:14px}.translation-orb{width:48px;height:48px;border-radius:14px}.translation-orb i{font-size:24px}.translation-promo h2{font-size:20px}.translation-promo .layui-btn{margin-left:62px}.translation-promo>div:nth-child(2){max-width:calc(100% - 65px)}.portal-stats strong{font-size:28px}.portal-stats span{font-size:11px}.admin-account .role-badge{display:none}.admin-breadcrumb{gap:7px;font-size:11px}.admin-topbar{padding:0 16px;min-height:62px;gap:10px}.admin-main{padding:22px 15px}.admin-body .panel{padding:21px}.admin-main .page-head h1{font-size:23px}.admin-body .form-grid{grid-template-columns:1fr}.admin-main .summary{gap:10px}.admin-main .stat{padding:18px;min-width:100px}.admin-main .stat strong{font-size:25px}.module-sort-row{gap:9px;padding:10px}.module-default{width:80px;font-size:10px}.module-sort-row .layui-input{min-width:70px}.sort-arrows{flex-direction:column}.pagination{justify-content:center}.pagination-summary{width:100%;text-align:center}.admin-body .editor-status{flex-wrap:wrap;gap:7px}}

.admin-body .actions a.layui-btn:not(.layui-btn-primary){color:#fff}[data-rich-source][hidden]{display:none!important}

.status-pill{display:inline-block;padding:4px 8px;border-radius:5px;font-size:10px;background:#edf1f7;color:#91a0b7}.status-pill.enabled{background:#e9f5ef;color:#4d9a80}.status-pill.disabled{background:#f0f2f6;color:#a2adbf}.banner-thumbnail{width:100px;height:43px;object-fit:cover;border-radius:5px;background:#edf1f7}.endpoint-text{font-size:11px;color:#8c9ab2;display:inline-block;max-width:290px;overflow-wrap:anywhere}.table-pagination{padding:0 20px}.admin-body .layui-table td strong{font-weight:500}.empty>i{display:block;font-size:26px;color:#b8c4da;margin-bottom:10px}.admin-body .layui-table .tag{font-size:10px}

.portal-menu{flex:1;min-width:0}.portal-menu>a{max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.admin-menu-item span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
/* School-specific public appearance */
.portal-body{background:linear-gradient(125deg,var(--portal-background-start,#667eea),var(--portal-background-end,#764ba2));background-attachment:fixed}
.portal-body .brand-mark{background:linear-gradient(130deg,var(--portal-primary),var(--portal-background-end));color:var(--portal-on-primary)}
.portal-body .portal-intro,.portal-body .portal-intro p,.portal-body .portal-kicker,.portal-body main>p.muted,.portal-body main>p.caption{color:var(--portal-on-background)}
.portal-body .portal-menu>a:hover,.portal-body .portal-menu>a.active,.portal-body .portal-menu>a.nav-admin,.portal-body .category-tabs a.active{background:var(--portal-primary-soft);color:var(--portal-primary-dark)}
.portal-body .search-kind-tabs input:checked+span,.portal-body .layui-btn:not(.layui-btn-primary),.portal-body .search-hub .searchbar button,.portal-body .translation-promo .layui-btn{background:var(--portal-primary);color:var(--portal-on-primary)}
.portal-body .search-kind-tabs input:focus-visible+span{outline-color:var(--portal-primary-dark)}
.portal-body .section-icon,.portal-body .hub-icon,.portal-body .resource-icon,.portal-body .translation-orb,.portal-body .tag{background:var(--portal-primary-soft);color:var(--portal-primary-dark)}
.portal-body .section-link,.portal-body .card .meta strong,.portal-body .card .meta>span,.portal-body .feature-item>i,.portal-body .portal-stats strong,.portal-body .rich-content a,.portal-body .guest-tip a{color:var(--portal-primary-dark)}
.portal-body .translation-promo{background:linear-gradient(110deg,var(--portal-primary-soft),#ffffff)}
.portal-body .pagination-controls .current{background:var(--portal-primary);border-color:var(--portal-primary);color:var(--portal-on-primary)}
.portal-body .pagination-summary,.portal-body .pagination-jump{color:var(--portal-on-background)}
.portal-body .mobile-nav-button{background:var(--portal-primary-soft);color:var(--portal-primary-dark)}
.portal-body .card:hover{border-color:var(--portal-primary);box-shadow:0 8px 20px #26354b15}
.portal-body .variant{border-left-color:var(--portal-primary)}
.portal-body .brand img{width:42px;height:42px;object-fit:contain;flex-shrink:0}
.settings-section-title{font-size:17px;font-weight:600;color:#546985;border-top:1px solid #edf0f5;padding-top:27px;margin:30px 0 17px}.settings-section-title:first-of-type{border:0;margin-top:0;padding-top:0}.logo-path-control{display:flex;align-items:center;gap:12px}.logo-path-control .layui-input{flex:1;min-width:0}.logo-path-control button{flex-shrink:0}[data-logo-file][hidden],[data-logo-preview][hidden]{display:none!important}.logo-preview{display:flex;align-items:center;gap:16px;margin-top:17px;padding:13px;background:#f7f9fc;border-radius:8px;color:#9ba8bc;font-size:11px}.logo-preview img{width:75px;height:60px;object-fit:contain}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.theme-option input{position:absolute;opacity:0}.theme-option-content{display:flex;gap:10px;align-items:center;padding:15px;border:1px solid #e1e7f0;border-radius:8px;cursor:pointer;background:#fff;flex-wrap:wrap;font-size:12px;color:#72829a}.theme-option-content small{margin-left:auto;color:#acb6c7;font-size:10px}.theme-option input:checked+.theme-option-content{border-color:#6f91c9;box-shadow:0 0 0 2px #edf2fa;background:#f8faff}.theme-option input:focus-visible+.theme-option-content{outline:2px solid #6988bd;outline-offset:2px}.theme-swatch{width:33px;height:33px;border-radius:7px;border:1px solid #e6eaf0}.custom-swatch{background:conic-gradient(#1e9fff,#a233c6,#ff5722,#ffb800,#16baaa,#1e9fff)}.color-control{display:flex;align-items:center;gap:15px;background:#fafbfe;border:1px solid #e3e9f2;border-radius:6px;padding:9px;color:#8594aa;font-size:12px}.color-control input{width:48px;height:32px;border:0;background:transparent;cursor:pointer}.theme-custom-fields:not(.is-custom){opacity:.55}.theme-preview{border-radius:12px;overflow:hidden;border:1px solid #e3e8f0;margin:10px 0 30px}.theme-preview-header{padding:17px 22px;background:#ffffffef;display:flex;align-items:center;justify-content:space-between;gap:15px;color:#64758e;font-size:12px}.theme-preview-header>span:first-child{font-weight:600}.theme-preview-header>span:last-child{font-size:10px;color:#95a0b4}.theme-preview-main{padding:30px;text-align:center}.theme-preview-main>strong{display:block;font-size:22px;margin-bottom:25px}.theme-preview-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;background:#fffffff5;border-radius:10px;text-align:left;color:#60728d}.theme-preview-card b{font-weight:600;font-size:14px}.theme-preview-card p{font-size:11px;color:#9aa7bc;margin-top:9px}.theme-preview-card>span{padding:10px 15px;border-radius:6px;font-size:12px;white-space:nowrap}
@media(max-width:650px){.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-option-content{gap:7px;padding:11px}.theme-option-content small{display:none}.logo-path-control{flex-wrap:wrap}.logo-path-control .layui-input{flex-basis:100%}.theme-preview-main{padding:24px 18px}.theme-preview-header>span:last-child{display:none}.theme-preview-card{padding:19px 15px}.theme-preview-card>span{padding:9px;font-size:10px}}
.portal-body .library-card.kind-corpus .resource-icon,.portal-body .library-card.kind-term .resource-icon,.portal-body .library-card.kind-multimodal .resource-icon{background:var(--portal-primary-soft);color:var(--portal-primary-dark)}
.portal-body .search-hub .searchbar button{box-shadow:0 5px 12px #26354b20}.portal-body .rich-content blockquote{border-left-color:var(--portal-primary)}
.portal-body[data-theme=light] .layui-btn:not(.layui-btn-primary){border:1px solid #d2d2d2}
[data-banner-file][hidden],[data-banner-preview][hidden]{display:none!important}.banner-form-preview{margin-top:17px;padding:12px;background:#f4f7fb;border-radius:8px}.banner-form-preview img{display:block;width:100%;max-height:260px;object-fit:contain}.banner-order-input{width:90px!important}

.homepage-banner{width:calc(100% - var(--portal-content-gutter) * 2);max-width:calc(var(--portal-content-width) - var(--portal-content-gutter) * 2);margin:24px auto 0;position:relative;background:#e9edf4;border-radius:18px;overflow:hidden;box-shadow:0 10px 30px #0000001f}.homepage-banner .layui-carousel{background:#e9edf4}.homepage-slide>a{display:block;width:100%;height:100%}.homepage-slide img{width:100%;height:100%;object-fit:cover;display:block}.article-home-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px;border-bottom:1px solid #e7eaf2;padding-bottom:14px}.article-home-tabs button{background:#f3f5fa;border:0;color:#8190a7;padding:9px 17px;border-radius:7px;cursor:pointer}.article-home-tabs button[aria-selected=true]{background:var(--portal-primary);color:var(--portal-on-primary)}[data-article-panel][hidden]{display:none!important}.category-more{display:inline-block;margin-top:20px;color:var(--portal-primary-dark);font-size:12px}.article-card-cover{width:100%;height:150px;object-fit:cover;border-radius:8px;margin-bottom:16px}.search-result-heading{display:flex;align-items:center;justify-content:space-between;color:var(--portal-on-background);margin:20px 0}.search-result-heading h2{font-size:22px}.search-result-heading span{font-size:12px}

#homepage-carousel{width:100%}.feature-grid:has(.feature-item:only-child){grid-template-columns:1fr}

.feature-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}

@media(max-width:550px){.homepage-banner{margin-top:16px;border-radius:12px}}
/* Resource browsing and multilingual results */
.resource-page-intro{background:#ffffffed;border-radius:18px;padding:28px;margin-bottom:22px}.resource-page-intro .page-head{margin-bottom:12px}.resource-languages{display:flex;align-items:center;gap:8px;margin-top:16px;flex-wrap:wrap}.resource-search-row{display:flex;gap:12px;flex-wrap:wrap}.resource-search-row>.layui-input{flex:1;min-width:200px}.resource-search select{height:38px;border:1px solid #e1e6ef;background:#fff;padding:0 12px;max-width:100%}.resource-search-row select{min-width:160px}.resource-entry{position:relative;background:#ffffffed;border:1px solid #e6eaf2;border-left:4px solid var(--portal-primary);padding:22px;border-radius:14px;overflow:hidden}.resource-entry-header{display:flex;justify-content:space-between;gap:14px;align-items:center;padding-bottom:14px;border-bottom:1px solid #edf0f6;margin-bottom:16px}.resource-entry-header>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.resource-type{background:var(--portal-primary);color:var(--portal-on-primary);border-radius:20px;padding:4px 12px;font-size:12px}.resource-library,.resource-detail{font-size:12px;color:#718096}.resource-detail{white-space:nowrap}.resource-entry h3{font-size:18px;margin:0 0 16px;font-weight:600}.resource-language-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}.resource-language{padding:18px;background:#f4f6fb;border-radius:10px;border-top:3px solid var(--portal-primary)}.target-language{background:#f7f5fa;border-color:var(--portal-background-end)}.resource-language-label{font-size:12px;font-weight:600;color:#64748b;margin-bottom:10px}.resource-language p{font-size:16px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.kind-term .resource-language p{font-weight:600;font-size:19px}.resource-definition{font-size:14px;line-height:1.8;margin-top:12px;color:#66758a;white-space:pre-wrap}.resource-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin-top:18px}.resource-media{min-width:0;padding:12px;background:#f4f6fb;border-radius:10px}.resource-media img,.resource-media video{display:block;width:100%;height:200px;object-fit:contain;background:#e9edf3;border-radius:7px}.resource-media audio{width:100%;max-width:100%;margin:15px 0}.resource-media-name{font-size:12px;line-height:1.7;margin-top:10px;overflow-wrap:anywhere}.resource-media-name span{color:#8190a7;margin-left:6px}.resource-file{display:flex;align-items:center;justify-content:center;gap:10px;min-height:95px;color:var(--portal-primary-dark)}.resource-notes{margin-top:16px;border-top:1px solid #edf0f6;padding-top:12px;font-size:13px;color:#718096}.resource-notes summary{cursor:pointer}.resource-notes p{white-space:pre-wrap;line-height:1.9;margin-top:10px}.resource-entry-footer{font-size:12px;color:#8190a7;margin-top:16px}.single-library-preview .resource-entry:last-child{margin-bottom:0}@media(max-width:620px){.resource-page-intro{padding:22px}.resource-entry{padding:16px}.resource-language-grid{grid-template-columns:1fr}.resource-search-row>select{flex:1}.resource-search-row>.layui-input{flex-basis:100%}.resource-language{padding:14px}}
.portal-body .resource-page-intro .page-head{background:transparent;padding:0;border-radius:0}
.resource-table-wrap{overflow-x:auto;margin:20px 0;background:#fff;border-radius:14px;border:1px solid #e1e6ef}.resource-table{width:100%;border-collapse:collapse;color:#29364b;font-size:14px}.resource-table caption{text-align:left;padding:16px 20px;font-weight:600;color:#52647e;border-bottom:1px solid #e1e6ef}.resource-table th{background:#eef1f9;font-weight:600;white-space:nowrap}.resource-table td,.resource-table th{padding:15px 18px;text-align:left;border-bottom:1px solid #e8ecf3;border-right:1px solid #e8ecf3;vertical-align:top;line-height:1.8}.resource-table td{min-width:160px;max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere}.resource-table td:first-child{min-width:55px}.resource-table tr:last-child td{border-bottom:0}.resource-table tbody tr:nth-child(even){background:#fafbfe}.resource-table tbody tr:hover{background:#f2f5fb}.resource-table .resource-media-grid{white-space:normal}.resource-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:20px;margin:20px 0}.resource-cards .resource-entry{margin:0}.resource-inline-field{margin-top:14px;line-height:1.8;font-size:13px}.resource-inline-field strong{color:#718096}.resource-inline-field p{white-space:pre-wrap;overflow-wrap:anywhere}
.multimodal-title-list{background:#ffffffed;border:1px solid #e1e6ef;border-radius:14px;overflow:hidden;margin:20px 0}.multimodal-title-item{display:block;padding:20px 24px;border-bottom:1px solid #e8ecf3;font-size:17px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}.multimodal-title-item:last-child{border-bottom:0}.multimodal-title-item:hover{background:var(--portal-primary-soft);color:var(--portal-primary-dark)}

.multimodal-title-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;background:transparent;border:0;border-radius:0;overflow:visible}.multimodal-title-item{display:flex;align-items:center;min-height:110px;padding:24px;background:#ffffffed;border:1px solid #e1e6ef;border-radius:14px;box-shadow:0 6px 20px #0000000a;transition:box-shadow .2s,transform .2s}.multimodal-title-item:last-child{border-bottom:1px solid #e1e6ef}.multimodal-title-item:hover{transform:translateY(-3px);box-shadow:0 10px 26px #00000014}@media(max-width:992px){.multimodal-title-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.multimodal-title-list{grid-template-columns:1fr;gap:14px}.multimodal-title-item{min-height:88px;padding:20px}}
.multimodal-title-item{display:block;padding:0;overflow:hidden}.multimodal-card-preview{position:relative;aspect-ratio:16/9;background:#e9edf4;overflow:hidden}.multimodal-card-preview img,.multimodal-card-preview video{display:block;width:100%;height:100%;object-fit:cover}.multimodal-card-preview video{pointer-events:none}.multimodal-card-title{font-size:17px;font-weight:600;line-height:1.7;padding:18px 20px;margin:0;overflow-wrap:anywhere}.multimodal-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#00000018}.multimodal-play i{width:48px;height:48px;background:#00000070;border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;font-size:25px}.multimodal-placeholder{height:100%;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;color:#8190a7}.multimodal-placeholder>i{font-size:40px}.multimodal-placeholder>span{font-size:13px}@media(max-width:620px){.multimodal-title-item{padding:0}}
.multimodal-editor-language{background:#f7f9fc;border:1px solid #e5eaf2;border-radius:10px;padding:22px;margin:24px 0}.multimodal-editor-language h2{font-size:17px;color:#45618b}.media-slot-actions{margin-top:12px}.multimodal-editor-language .form-row:last-child{margin-bottom:0}
.multimodal-detail{padding:30px;background:#ffffffed;border-radius:18px;color:#29364b}.multimodal-detail-header{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid #e7ebf2;padding-bottom:20px}.multimodal-breadcrumb,.multimodal-detail-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:#718096}.multimodal-detail h1{font-size:27px;line-height:1.5;margin:26px 0;overflow-wrap:anywhere}.multimodal-view-switch{display:flex;border:1px solid #dce3ef;border-radius:8px;overflow:hidden}.multimodal-view-switch button{border:0;background:white;padding:9px 14px;color:#718096;cursor:pointer}.multimodal-view-switch button[aria-pressed=true]{background:var(--portal-primary);color:var(--portal-on-primary)}.multimodal-language-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #e4e9f1;margin-bottom:24px;padding-bottom:12px}.multimodal-language-tabs button{padding:10px 22px;background:#f1f4fa;border:0;border-radius:7px;color:#718096;cursor:pointer}.multimodal-language-tabs button[aria-selected=true]{background:var(--portal-primary);color:var(--portal-on-primary)}.multimodal-detail-content{display:flex;gap:24px;margin-bottom:24px}.multimodal-detail-media{flex:0 0 45%;max-width:45%;min-width:0}.multimodal-detail-text{flex:1;min-width:0;padding:16px 0}.multimodal-detail-text h2{font-size:16px;font-weight:600;margin:0 0 14px}.multimodal-detail-text h2 span{font-size:12px;color:#91a0b7;font-weight:400;margin-left:8px}.multimodal-detail-text p,.multimodal-detail-metadata p{white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}.multimodal-detail-media .resource-media-grid{display:block;margin:0}.multimodal-detail-media .resource-media{margin-bottom:16px;padding:16px}.multimodal-detail-media .resource-media img,.multimodal-detail-media .resource-media video{height:auto;max-height:460px;min-height:80px;object-fit:contain}.multimodal-detail-metadata{padding:18px 0;border-top:1px solid #e7ebf2;font-size:14px}.multimodal-detail-metadata strong{display:block;color:#718096;margin-bottom:8px}.multimodal-language-panel[hidden],.multimodal-language-tabs[hidden],.multimodal-view-switch[hidden]{display:none!important}@media(max-width:768px){.multimodal-detail{padding:22px}.multimodal-detail h1{font-size:23px}.multimodal-detail-content{flex-direction:column;gap:8px}.multimodal-detail-media{max-width:100%;flex-basis:auto}.multimodal-detail-text{padding:8px 0 20px}.multimodal-language-tabs button{padding:9px 15px}}
.search-hub{padding-top:22px;padding-bottom:22px}.search-hub-heading{margin-bottom:16px}.search-hub .hub-icon{width:44px;height:44px;font-size:24px}.search-hub .search-kind-tabs{margin-bottom:14px}.search-hub .searchbar{margin:0 0 10px}.search-hub .searchbar input,.search-hub .searchbar button{height:40px;line-height:40px}.search-hub .search-kind-tabs span{padding:7px 15px}.portal-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.search-highlight{background:#fff0a3;color:#753f00;padding:1px 2px;border-radius:3px}
.navigation-group{border:1px solid #e2e8f1;border-radius:10px;margin-bottom:20px;overflow:hidden;background:#fff}.navigation-group-header{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#edf2fa;border-bottom:1px solid #e2e8f1}.navigation-group-header h2{font-size:17px;font-weight:600}.navigation-group-header .sort-arrows{margin-left:auto;flex-direction:row}.navigation-group>.module-sort-list{padding:10px 16px}.navigation-group.dragging{opacity:.5}
.admin-resource-tabs{display:flex;gap:12px;margin:0 0 22px}.admin-resource-tabs a{padding:10px 18px;border-radius:7px;background:#fff;color:#718096;border:1px solid #e2e8f1}.admin-resource-tabs a.active{background:#526bc1;color:#fff;border-color:#526bc1}[data-model-select][hidden]{display:none!important}
.language-picker{position:relative}.language-picker>summary{list-style:none;padding:10px 14px;background:#fff;border:1px solid #dce4ee;border-radius:6px;cursor:pointer;min-height:40px}.language-picker>summary:after{content:'▾';float:right;color:#8190a7}.language-picker-menu{position:absolute;top:100%;left:0;right:0;z-index:50;background:white;border:1px solid #dce4ee;box-shadow:0 8px 24px #00000015;border-radius:7px;padding:12px}.language-picker-options{max-height:230px;overflow:auto;margin-top:10px}.language-picker-options .check-label{display:flex!important;padding:7px 8px;margin:0}.language-picker-options small{display:inline;color:#8c9ab2;margin:0 0 0 8px}.language-picker-options [hidden]{display:none!important}
.admin-menu{scrollbar-width:thin;scrollbar-color:#42536b transparent;padding:12px 12px 20px}.admin-menu::-webkit-scrollbar{width:5px}.admin-menu::-webkit-scrollbar-track{background:transparent}.admin-menu::-webkit-scrollbar-thumb{background:#42536b;border-radius:8px}.admin-menu-group{margin-bottom:8px}.admin-menu-group>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:13px 12px;border-radius:8px;font-size:13px;font-weight:600;color:#b9c5d8;cursor:pointer;user-select:none;transition:background .15s}.admin-menu-group>summary::-webkit-details-marker{display:none}.admin-menu-group>summary:hover{background:#ffffff0a;color:#fff}.admin-menu-group>summary>i{font-size:12px;color:#8296b5;transition:transform .2s}.admin-menu-group[open]>summary>i{transform:rotate(180deg)}.admin-menu-group[open]>summary{background:#ffffff08;color:#e6edf7}.admin-menu-children{padding:5px 0 8px 8px}.admin-menu-children .admin-menu-item{padding:10px 12px;font-size:12px}.admin-menu-group>summary:focus-visible{outline:2px solid #7299e3;outline-offset:2px}.language-picker>summary{padding:11px 14px;border-color:#dfe5ef;box-shadow:0 2px 4px #21304a04;line-height:1.6}.language-picker[open]>summary{border-color:#7287c7;box-shadow:0 0 0 3px #526bc110}.language-picker-menu{top:calc(100% + 6px);border-radius:10px;padding:14px;border-color:#e2e8f1;box-shadow:0 12px 32px #21304a18}.language-picker-options{scrollbar-width:thin;scrollbar-color:#c0ccdf transparent}.language-picker-options .check-label{border-radius:6px;gap:10px;padding:9px 10px;cursor:pointer}.language-picker-options .check-label:hover{background:#f0f4fb}.language-picker-options .check-label:has(input:checked){background:#eef2fc;color:#526bc1}.admin-body select.layui-input,.admin-body .filters select,.admin-body .actions select{border:1px solid #dfe5ef;border-radius:7px;background:#fff;min-height:38px;padding:0 12px;color:#4b5d77;max-width:100%;font-size:14px}
.translation-chat{max-width:1000px;margin:auto;background:#ffffffed;border-radius:18px;overflow:hidden}.translation-chat-header{padding:22px 28px;border-bottom:1px solid #e3e8f2}.translation-chat-header h1{font-size:24px;font-weight:600}.translation-chat-header p{color:#8190a7;margin-top:8px;font-size:13px}.translation-chat-messages{padding:28px;min-height:280px;max-height:65vh;overflow:auto;display:flex;flex-direction:column;gap:20px}.chat-message{max-width:90%;padding:18px 22px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:15px}.chat-assistant{background:#f0f3f9;align-self:flex-start}.chat-user{background:var(--portal-primary);color:var(--portal-on-primary);align-self:flex-end}.translation-chat-composer{padding:22px 28px;border-top:1px solid #e3e8f2;background:#fafbfe}.translation-chat-composer textarea{margin-top:12px;resize:vertical}.chat-composer-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:14px}.chat-message details{white-space:normal;margin-top:14px;border-top:1px solid #dce3ef;padding-top:12px}.chat-message details p{white-space:pre-wrap}.chat-message summary{cursor:pointer;color:#526bc1}.chat-reference{padding:12px;background:#fff;border-radius:8px;margin-top:12px}.chat-reference p{margin-top:8px}@media(max-width:620px){.translation-chat-header,.translation-chat-composer{padding:20px}.translation-chat-messages{padding:20px;min-height:220px}.chat-message{max-width:100%;padding:15px 17px}}
[data-agent-select][hidden]{display:none!important}
.chat-thinking-mode{display:inline-block;padding:3px 9px;border-radius:20px;background:#eef2fb;color:#526bc1;font-size:11px;margin-left:10px}.chat-assistant{width:100%;max-width:100%;background:#f8faff;border:1px solid #e5eaf4}.chat-stage-progress{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;white-space:normal}.chat-stage-progress span{padding:5px 12px;background:#e9edf5;color:#8190a7;border-radius:20px;font-size:12px}.chat-stage-progress span.active{background:#fff0c4;color:#906400}.chat-stage-progress span.completed{background:#e4f3ec;color:#2d8061}.chat-output-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:2}.chat-final-result{background:#fff;padding:20px;border:1px solid #dfe7f3;border-radius:10px;white-space:normal;margin-bottom:20px}.chat-result-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #edf1f7}.chat-copy-button{border:1px solid #dce4ef;background:#f5f7fc;color:#526bc1;border-radius:6px;padding:6px 12px;cursor:pointer;font-size:12px}.chat-stream-error{color:#ab3232;white-space:normal}.chat-stage-output[hidden]{display:none!important}.chat-message .chat-stage-output{margin-top:12px}.chat-reference strong{color:#526bc1}
.chat-heading-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.chat-clear-button{border:1px solid #dfe6f2;background:#fff;color:#718096;border-radius:8px;padding:8px 14px;font-size:13px;cursor:pointer;white-space:nowrap}.chat-clear-button:disabled{opacity:.5;cursor:wait}.chat-speaker{font-size:12px;font-weight:600;opacity:.75;margin-bottom:12px}.chat-user{border-radius:16px 16px 4px 16px}.chat-assistant{border-radius:16px 16px 16px 4px}.chat-reference-link{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;border:1px solid #e4eaf4;border-radius:8px;padding:12px 14px;margin-top:8px;color:#4b5d77;cursor:pointer;line-height:1.7;font-size:13px}.chat-reference-link:hover{background:#edf2fc;border-color:#b5c5e7}.chat-reference-number{color:#526bc1;font-weight:600;flex-shrink:0}.chat-reference-arrow{margin-left:auto;color:#8190a7}.chat-reference-dialog{width:min(720px,calc(100% - 32px));max-height:80vh;border:0;border-radius:14px;padding:26px;color:#29364b;box-shadow:0 20px 80px #00000030;overflow:auto;margin:auto}.chat-reference-dialog::backdrop{background:#17263e70}.chat-reference-dialog h3{font-size:13px;color:#8190a7;margin:20px 0 8px}.chat-reference-dialog .chat-output-text{font-size:14px}.chat-history-pagination{padding:0 20px;background:#f5f7fb}.chat-references>summary{font-weight:600}.chat-references{background:#eef3fb;border-radius:8px;padding:12px!important;border:0!important}
.translation-chat{max-width:none;width:100%;margin:0}.chat-message{white-space:normal}.chat-user{display:flex;align-items:flex-start;gap:14px;background:transparent;color:#29364b;padding:0;max-width:90%;border:0}.chat-user>.chat-output-text{background:var(--portal-primary);color:var(--portal-on-primary);padding:14px 18px;border-radius:14px 14px 4px 14px;min-width:0}.chat-user-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#ffffffde;color:var(--portal-primary-dark);margin-top:4px}.chat-user-avatar i{font-size:21px}.chat-result-tabs{display:flex;gap:6px;flex-wrap:wrap}.chat-result-tabs button{border:0;background:#edf1f7;padding:8px 14px;border-radius:6px;color:#718096;cursor:pointer;font-size:13px}.chat-result-tabs button[aria-selected=true]{background:var(--portal-primary);color:var(--portal-on-primary)}.chat-result-tabs button.streaming:after{content:' ·';animation:chat-pulse 1s infinite}.chat-tab-panel[hidden]{display:none!important}.chat-tab-panel{margin:0;padding:0;min-height:0}.chat-result-header{padding-bottom:12px;margin-bottom:12px;flex-wrap:wrap}.chat-speaker{margin-bottom:10px}@keyframes chat-pulse{50%{opacity:.3}}@media(max-width:620px){.chat-user{max-width:100%;gap:10px}.chat-user>.chat-output-text{padding:12px 14px}.chat-user-avatar{flex-basis:32px;width:32px;height:32px}.chat-result-tabs button{padding:7px 10px}}
.pagination-size select{padding:8px 12px;min-height:36px;border:1px solid #dce4ef;border-radius:6px;background:#fff;color:#64748b}
[data-import-progress][hidden]{display:none!important}

/* Library cards wrap to the available width and fill incomplete rows. */
.portal-body .library-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 1.4vw, 20px);
    min-width: 0;
}
.portal-body .library-grid > .library-card {
    flex: 1 1 290px;
    max-width: 100%;
}
.portal-body .library-grid > .empty { flex: 1 1 100%; }
.portal-body .library-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(16px, 1.5vw, 22px);
    overflow-wrap: anywhere;
}
.library-card .library-card-top {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
}
.library-card .resource-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}
.library-card-heading { flex: 1; min-width: 0; }
.portal-body .library-card .library-card-heading h3 {
    margin: 2px 0 0;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.55;
}
.library-card .library-category {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
}
.library-card-arrow { flex: 0 0 auto; margin-top: 10px; color: #94a3b8; }
.portal-body .library-card .library-card-description {
    min-height: 0;
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.75;
}
.library-card .language-pair {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    margin: 14px 0;
}
.library-card .language-pair > span { flex: 0 0 auto; }
.library-card .language-pair > i { margin-top: 5px; }
.library-target-languages {
    display: flex;
    flex: 1 1 120px;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.library-card .language-pair span { line-height: 1.5; overflow-wrap: anywhere; }
.portal-body .library-card .meta {
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 12px;
}
.library-card .meta > span { white-space: nowrap; }
/* Long parallel passages keep a full reading row; short term cards wrap naturally. */
.resource-cards--corpus { grid-template-columns: minmax(0, 1fr); }
.resource-cards--term {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.resource-cards { align-items: start; gap: 16px; }
.resource-cards .resource-entry { min-width: 0; padding: clamp(14px, 1.5vw, 22px); }
.resource-cards .resource-entry-header {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.resource-cards .resource-language-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: start;
    gap: 12px;
}
.resource-cards .resource-language { min-width: 0; padding: 12px 14px; }
.resource-cards .resource-language p { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.resource-cards--term .resource-language p { font-size: 17px; line-height: 1.7; }
.resource-cards .resource-language-label { margin-bottom: 6px; }
.resource-cards .resource-inline-field { margin-top: 10px; }
@media (max-width: 480px) {
    .portal-body .library-grid { gap: 12px; }
    .library-card .resource-icon { flex-basis: 32px; width: 32px; height: 32px; }
    .resource-cards .resource-language { padding: 12px; }
}

.platform-features > h2 { margin: 4px 0 26px; text-align: center; font-size: clamp(22px, 2vw, 28px); }
.platform-features-grid { display: grid; grid-template-columns: repeat(var(--feature-columns, 4), minmax(0, 1fr)); gap: 18px; }
.platform-feature { min-width: 0; padding: 28px 18px; border-radius: 18px; background: #fff; text-align: center; }
.platform-feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 18px; color: var(--portal-on-primary, #fff); background: linear-gradient(135deg, var(--portal-primary, #667eea), var(--portal-primary-dark, #764ba2)); }
.platform-feature-icon .layui-icon { font-size: 28px; }
.platform-feature h3 { margin-bottom: 12px; font-size: 19px; }
.platform-feature p { color: #7c8ba5; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 960px) { .platform-features-grid { grid-template-columns: repeat(min(var(--feature-columns, 4), 2), minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .platform-features-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .platform-feature { padding: 22px 18px; }
    .platform-features > h2 { margin-bottom: 20px; }
}

.resource-category-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.resource-category-tab { display: inline-flex; align-items: center; padding: 10px 20px; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; background: #fff; color: #475569; line-height: 1.5; transition: background .15s, color .15s; }
.resource-category-tab:hover, .resource-category-tab.is-active { background: var(--portal-primary, #667eea); color: var(--portal-on-primary, #fff); border-color: transparent; }
.resource-category-tab:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 560px) { .resource-category-tabs { gap: 8px; } .resource-category-tab { padding: 8px 14px; } }

.agent-library-group { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; margin: 12px 0; }
.agent-library-group legend { padding: 0 8px; font-weight: 600; }
.agent-library-options { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.collocation-search { margin-top: 16px; border-top: 1px solid #e2e8f0; padding-top: 14px; }
.collocation-search summary { cursor: pointer; font-weight: 600; }
.collocation-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 16px 0 10px; }
.collocation-fields label { display: block; margin-bottom: 8px; }
@media (max-width: 560px) { .collocation-fields { grid-template-columns: minmax(0,1fr); } }

.upload-button-group { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.upload-button-group .layui-btn + .layui-btn { margin-left: 0; }
.admin-body .page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 22px; }
.admin-body .page-head > :first-child { flex: 1 1 300px; min-width: 0; }
.admin-body .page-head > .layui-btn { flex: 0 0 auto; margin: 0; }
.admin-body .page-head > .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.admin-body .actions { align-items: center; gap: 10px; }
.admin-body .actions .layui-btn + .layui-btn { margin-left: 0; }
.admin-body .admin-search-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; margin-bottom: 20px; }
.admin-body .admin-search-toolbar input:not([type="hidden"]) { flex: 1 1 260px !important; min-width: 180px; width: auto !important; }
.admin-body .admin-search-toolbar select { flex: 0 1 220px; min-width: 160px; height: 38px; border: 1px solid #dce3ed; border-radius: 6px; padding: 0 10px; background: #fff; }
.admin-body .admin-search-toolbar .layui-btn { margin: 0; flex: 0 0 auto; }
.admin-body .admin-resource-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-body .admin-resource-tabs a { margin: 0; }
.admin-body .logo-path-control { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.admin-body .logo-path-control > .layui-input { flex: 1 1 300px; min-width: 0; }
.admin-body .table-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.admin-body .table-pagination > .form-row { margin: 0; }
@media (max-width: 640px) {
    .admin-body .page-head > :first-child { flex-basis: 100%; }
    .admin-body .page-head > .actions { justify-content: flex-start; }
    .admin-body .admin-search-toolbar { padding: 16px; gap: 10px; }
    .admin-body .admin-search-toolbar select { flex: 1 1 160px; }
    .admin-body .logo-path-control > .layui-input { flex-basis: 100%; }
    .admin-body .upload-button-group { width: 100%; }
    .admin-body .upload-button-group > button { flex: 1; }
}

.admin-body .admin-batch-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.admin-body .admin-batch-toolbar .caption { margin: 0; }
.admin-body .editor-upload-actions { margin: 12px 0; }

.library-clear-action { max-width: 420px; }
.library-clear-action summary { cursor: pointer; white-space: nowrap; }
.library-clear-form { display: grid !important; gap: 10px; padding: 16px; margin-top: 10px; border: 1px solid #fecaca; border-radius: 8px; background: #fff7f7; white-space: normal; min-width: min(280px, 65vw); }
.library-clear-form p { line-height: 1.7; font-size: 13px; }
.library-clear-form label { font-size: 13px; font-weight: 600; }
.library-clear-form .layui-btn { justify-self: start; }

.article-detail { padding: clamp(24px, 4vw, 54px); }
.article-detail-header { text-align: center; padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid #e5eaf1; }
.article-detail-header h1 { max-width: 960px; margin: 0 auto 18px; font-size: clamp(24px, 2.7vw, 34px); line-height: 1.5; overflow-wrap: anywhere; }
.article-detail-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; color: #7a879b; font-size: 14px; }
.article-detail .article-body { max-width: 960px; margin: 0 auto; white-space: normal; line-height: 2; overflow-wrap: anywhere; }
.article-detail .article-body p { margin: 0 0 1.25em; }
.article-detail .article-body img { max-width: 100%; height: auto; }
.article-detail .article-body pre { overflow-x: auto; white-space: pre; }
.article-search { margin-bottom: 18px; }
@media(max-width: 560px) { .article-detail-header { margin-bottom: 22px; padding-bottom: 20px; } .article-detail-meta { gap: 8px 14px; font-size: 13px; } }

.portal-body .listing-page-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.listing-page-head > h1, .listing-page-head > div:first-child { flex: 1 1 240px; min-width: 0; }
.heading-search { flex: 0 1 520px; min-width: 0; margin: 0; }
.heading-search .resource-search-row { display: flex; align-items: center; gap: 10px; }
.heading-search .layui-input { flex: 1; min-width: 0; height: 40px; }
.heading-search .layui-btn { flex-shrink: 0; margin: 0; height: 40px; line-height: 40px; }
.resource-heading-summary { margin: 0 0 16px; color: var(--portal-on-background, #fff); }
.portal-body main > .collocation-search { background: #fff; color: #334155; border: 0; border-radius: 10px; padding: 16px 20px; margin: 0 0 20px; }
.backup-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.backup-option { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #dce4ef; border-radius: 10px; padding: 20px; cursor: pointer; }
.backup-option:has(input:checked) { border-color: #245fc9; background: #f2f6ff; }
.backup-option small { display: block; margin-top: 10px; color: #728098; line-height: 1.8; }
.backup-option input { margin-top: 4px; }
@media(max-width: 700px) { .heading-search { flex: 1 1 100%; width: 100%; } .backup-options { grid-template-columns: minmax(0,1fr); } }

.portal-body .resource-heading-summary { color: #7a879b; font-size: 13px; line-height: 1.8; margin: 10px 0 0; }
.portal-body .listing-page-head:has(#resource-heading-search) { align-items: flex-start; }
.heading-search .collocation-search { margin-top: 12px; padding-top: 12px; text-align: left; }
.heading-search .collocation-search summary { color: var(--portal-primary-dark); font-size: 13px; }
.heading-search .collocation-search .form-row { margin: 14px 0; }

.heading-search .advanced-search-toggle { height: 32px; line-height: 30px; padding: 0 10px; font-size: 12px; align-self: center; }
.advanced-search-toggle .layui-icon { margin-left: 4px; font-size: 12px; }
.advanced-search-toggle[aria-expanded=true] .layui-icon { display: inline-block; transform: rotate(180deg); }
.advanced-search-panel[hidden] { display: none !important; }
.advanced-search-panel { flex: 1 0 100%; width: 100%; background: #f6f8fc; border: 1px solid #e2e7f0; border-radius: 10px; padding: 20px; margin-top: 4px; }
.advanced-search-panel-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.advanced-search-panel-heading span { color: #8490a4; font-size: 12px; }
.advanced-search-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.advanced-search-fields .form-row { margin: 0; }
.advanced-search-fields label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.advanced-search-panel .advanced-search-help { margin: 14px 0; font-size: 12px; line-height: 1.8; }
.advanced-search-actions { display: flex; gap: 10px; margin-top: 16px; }
.advanced-search-actions .layui-btn + .layui-btn { margin-left: 0; }
.resource-language-group { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; color: #53647a; }
.resource-language-group strong { font-size: 14px; }
.resource-language-group span { margin-left: auto; font-size: 12px; color: #8490a4; }
.resource-table { table-layout: auto; }
.resource-table td:first-child, .resource-table th:first-child { width: 60px; }
@media(max-width: 700px) {
    .advanced-search-fields { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .advanced-search-panel { padding: 16px; }
    .heading-search .resource-search-row { gap: 6px; }
    .heading-search .resource-search-row > .layui-btn { padding: 0 12px; }
    .heading-search .advanced-search-toggle { padding: 0 8px !important; }
}

/* Keep expanded navigation on its own row instead of squeezing it beside the brand. */
.portal-header .portal-nav { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.portal-header .brand { width: 100%; max-width: 430px; }
.portal-header .brand img { flex: 0 0 auto; width: auto; max-width: 70px; object-fit: contain; }
.portal-header .brand-name { display: block; min-width: 0; }
.portal-header .portal-menu { display: flex; width: auto; max-width: 100%; min-width: 0; gap: 3px; }
.portal-header .portal-menu > a { flex: 0 0 auto; }
.portal-header .portal-menu .inline { display: flex; align-items: center; margin: 0; }
.portal-header .portal-menu .inline button { padding: 9px 10px; }
.portal-header a:focus-visible, .mobile-nav-button:focus-visible { outline: 2px solid var(--portal-primary); outline-offset: 3px; }
@media(max-width:1100px) {
    .portal-header .portal-nav { grid-template-columns: minmax(0,1fr) 38px; padding: 14px 20px; gap: 12px; }
    .portal-header .brand { max-width: none; font-size: 16px; }
    .portal-header .mobile-nav-button { display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; }
    .portal-header .portal-menu { display: none; grid-column: 1 / -1; width: 100%; padding: 14px 0 0; margin: 0; border-top: 1px solid #e7eaf1; max-height: min(420px,calc(100svh - 90px)); overflow-y: auto; }
    .portal-nav-open .portal-header .portal-menu { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
    .portal-header .portal-menu > a { width: auto; max-width: none; min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; text-align: center; padding: 12px 8px; font-size: 14px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
    .portal-header .portal-menu .inline { justify-content: center; }
}
@media(max-width:420px) {
    .portal-header .portal-nav { padding: 12px 16px; }
    .portal-header .brand { gap: 9px; font-size: 14px; }
    .portal-nav-open .portal-header .portal-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(prefers-reduced-motion:reduce) { .portal-header * { transition: none!important; } }

/* Compact, readable home controls and statistics on narrow screens. */
@media(max-width:620px) {
    .search-hub .search-hub-heading { gap: 10px; margin-bottom: 16px; }
    .search-hub .hub-icon { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; }
    .search-hub .hub-icon i { font-size: 23px; }
    .search-hub-heading h2 { font-size: clamp(16px,4.6vw,19px); line-height: 1.5; }
    .search-hub .search-kind-tabs { flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding: 3px 2px 8px; margin: -3px -2px 10px; scrollbar-width: thin; scrollbar-color: #c7cce0 transparent; }
    .search-hub .search-kind-tabs label { flex: 0 0 auto; }
    .search-hub .search-kind-tabs span { padding: 9px 12px; font-size: 13px; line-height: 20px; white-space: nowrap; border-radius: 8px; }
    .search-hub .searchbar input { font-size: 13px; }
    .search-hub .searchbar button { padding: 0 12px; flex-shrink: 0; }
    .search-hub .search-hint { font-size: 11px; line-height: 1.7; }
    .platform-statistics .section-head { flex-direction: column; gap: 4px; margin-bottom: 16px; }
    .platform-statistics .section-head .caption { font-size: 11px; }
    .platform-statistics .portal-stats { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 0; }
    .platform-statistics .portal-stats > div { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 14px; border-radius: 10px; background: var(--portal-primary-light,#eef0fc); }
    .platform-statistics .portal-stats strong { min-width: 0; margin: 0; font-size: clamp(22px,6vw,28px); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .platform-statistics .portal-stats span { flex-shrink: 0; font-size: 12px; line-height: 1.6; }
}

.email-code-row{display:flex;gap:10px;align-items:center}.email-code-row input{flex:1;min-width:0}.email-code-row button{flex-shrink:0}.email-code-row button:disabled{opacity:.6;cursor:wait}

.admin-entry-table th,.admin-entry-table td{vertical-align:top}.admin-entry-table .admin-entry-source{min-width:220px;width:30%}.admin-entry-table .admin-entry-target{min-width:260px;width:35%}.admin-entry-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.admin-entry-text summary{cursor:pointer}.admin-entry-fulltext{margin-top:10px;padding-top:10px;border-top:1px solid var(--admin-border,#dfe6f0)}.admin-entry-translations{display:grid;gap:12px}.admin-entry-variant+.admin-entry-variant{padding-top:10px;border-top:1px solid var(--admin-border,#dfe6f0)}.admin-entry-variant .tag{margin:0 0 5px}.admin-entry-variant .tag small{opacity:.7;margin-left:4px}@media(max-width:620px){.admin-entry-table .admin-entry-source{min-width:190px}.admin-entry-table .admin-entry-target{min-width:230px}}

/* Expand text once, with a compact disclosure instead of repeating its summary. */
.admin-text-disclosure summary{list-style:none;outline:none}.admin-text-disclosure summary::-webkit-details-marker{display:none}.admin-text-disclosure .admin-entry-excerpt{display:block}.admin-entry-toggle{display:inline-flex;align-items:center;gap:5px;color:var(--admin-accent,#416dbd);font-size:12px;margin-top:6px;padding:2px 0;line-height:1.6}.admin-entry-toggle i{font-size:11px}.admin-text-disclosure .when-open{display:none}.admin-text-disclosure[open]{display:flex;flex-direction:column}.admin-text-disclosure[open] summary{order:2}.admin-text-disclosure[open] .admin-entry-excerpt,.admin-text-disclosure[open] .when-closed{display:none}.admin-text-disclosure[open] .when-open{display:inline}.admin-text-disclosure[open] .admin-entry-toggle i{transform:rotate(180deg)}.admin-text-disclosure summary:focus-visible .admin-entry-toggle{outline:2px solid var(--admin-accent,#416dbd);outline-offset:3px;border-radius:3px}.admin-text-disclosure .admin-entry-fulltext{margin:0;padding:0;border:0}.admin-entry-text[dir=auto],.admin-entry-fulltext[dir=auto]{text-align:start;unicode-bidi:plaintext}
.resource-unified-wrap .resource-table td{white-space:normal}.resource-unified-wrap .resource-source-cell{width:40%;min-width:180px}.resource-unified-wrap .resource-target-cell{width:50%;min-width:260px}.resource-cell-content,.resource-translation-content{white-space:pre-wrap;overflow-wrap:anywhere;text-align:start;unicode-bidi:plaintext;line-height:1.85}.resource-translation-stack{display:grid;gap:12px}.resource-translation-row{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:start}.resource-translation-row+.resource-translation-row{padding-top:10px;border-top:1px solid #e6eaf2}.resource-translation-label{display:block;color:var(--portal-primary-dark,#5366a2);font-size:12px;font-weight:600;line-height:1.85;white-space:normal}.resource-no-value{color:#94a0b2}@media(max-width:620px){.resource-unified-wrap .resource-table td,.resource-unified-wrap .resource-table th{padding:12px}.resource-translation-row{grid-template-columns:1fr;gap:3px}.resource-unified-wrap .resource-target-cell{min-width:210px}.resource-unified-wrap .resource-source-cell{min-width:155px}}



.resource-navigation{background:#fff;border-radius:12px;margin-bottom:20px;padding:8px 18px}.resource-navigation-row{display:flex;align-items:flex-start;gap:16px;padding:10px 0}.resource-navigation-row+.resource-navigation-row{border-top:1px solid #e8ecf3}.resource-navigation-label{flex:0 0 48px;color:#8a94a5;font-size:12px;line-height:36px}.resource-navigation .category-tabs{flex:1;min-width:0;padding:0;margin:0;gap:6px;background:transparent;border-radius:0}.resource-navigation .category-tabs a{line-height:22px;padding:7px 12px}.resource-navigation .category-tabs a[aria-current=page]{font-weight:600}@media(max-width:620px){.resource-navigation{padding:5px 14px}.resource-navigation-row{display:block;padding:10px 0}.resource-navigation-label{display:block;line-height:1.6;margin-bottom:7px}.resource-navigation .category-tabs{gap:5px}.resource-navigation .category-tabs a{font-size:12px;padding:6px 10px}}
