
:root{--blue:#174b86;--blue2:#0e66d0;--bg:#f4f7fb;--text:#12213a;--muted:#667085;--line:#dfe6ef;--green:#109253;--red:#c52b2b;--yellow:#b78500}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
a{color:var(--blue2);text-decoration:none}.top{background:var(--blue);color:#fff;position:sticky;top:0;z-index:50}.top-in{max-width:1320px;margin:auto;min-height:64px;padding:0 18px;display:flex;align-items:center;gap:20px}
.brand{font-weight:800;font-size:18px;white-space:nowrap}.nav{margin-left:auto;display:flex;align-items:center;gap:8px}.nav>a{color:#fff;padding:9px 10px;border-radius:8px;white-space:nowrap}.nav>a:hover{background:#ffffff18}
.account{position:relative}.account summary{list-style:none;cursor:pointer;background:#ffffff18;border-radius:9px;padding:8px 10px;color:#fff;display:flex;align-items:center;gap:8px}.account summary::-webkit-details-marker{display:none}
.account-panel{position:absolute;right:0;top:45px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 15px 36px #0002;padding:8px;min-width:240px}.account-panel a{display:block;padding:10px;border-radius:8px;color:var(--text)}.account-panel a:hover{background:#f3f6fa}
.badge-dot{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#e23b3b;color:#fff;font-size:11px;font-weight:800}
.container{max-width:1180px;margin:20px auto;padding:0 14px}.card{background:#fff;border-radius:15px;padding:20px;box-shadow:0 2px 16px #13243b12;margin-bottom:16px}.hero{display:flex;justify-content:space-between;gap:20px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric{border:1px solid var(--line);border-radius:12px;padding:16px}.metric b{font-size:28px;display:block}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn{border:0;border-radius:9px;padding:10px 14px;background:var(--blue2);color:#fff;cursor:pointer;font:inherit;display:inline-block}.btn.green{background:var(--green)}.btn.red{background:var(--red)}.btn.gray{background:#667085}.btn.yellow{background:var(--yellow)}.btn.sm{padding:7px 9px;font-size:13px}
.input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:10px 11px;background:#fff;font:inherit}.field{margin-bottom:13px}.field label{display:block;margin-bottom:6px;font-weight:700}.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.row3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.muted{color:var(--muted)}.small{font-size:12px}
.pill{padding:4px 9px;border-radius:999px;font-size:12px;font-weight:750;display:inline-block}.PASS{background:#daf4e5;color:#08733c}.FAIL{background:#ffe0e0;color:#a31a1a}.PENDING{background:#fff0cf;color:#8a5d00}
.project-card{display:grid;grid-template-columns:1fr auto;gap:12px;border:1px solid var(--line);border-radius:13px;padding:16px;margin-bottom:12px}.project-key{font-family:ui-monospace,Consolas,monospace;background:#eef3f8;padding:5px 8px;border-radius:7px}
.batch{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px}.batch summary{cursor:pointer;padding:14px 16px;background:#f8fafc;display:flex;justify-content:space-between;font-weight:800}.batch-body{padding:14px}
.field-box{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:10px;background:#fbfcfe}.rule-box{border-left:4px solid #f0b429;padding:10px 12px;background:#fff9e9;border-radius:8px;margin-bottom:10px}
.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.media-item{border:1px solid var(--line);border-radius:12px;padding:10px}.media-item img,.media-item video{width:100%;max-height:300px;object-fit:contain;background:#000;border-radius:8px}
.comment{border-left:4px solid #5b8def;padding:10px 12px;background:#f8fbff;border-radius:0 9px 9px 0;margin:10px 0}.notice{background:#fff6ce;border:1px solid #ecd171;border-radius:10px;padding:11px;margin-bottom:12px}.err{background:#ffe3e3;border:1px solid #efb0b0;color:#991b1b;border-radius:10px;padding:11px;margin-bottom:12px}
.member-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.member{border:1px solid var(--line);padding:10px;border-radius:10px}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:22px}.login-card{width:min(500px,100%)}
@media(max-width:850px){.grid{grid-template-columns:1fr 1fr}.row,.row3{grid-template-columns:1fr}.member-list{grid-template-columns:1fr}.top-in{flex-wrap:wrap;padding:10px 14px}.brand{width:100%}.nav{margin-left:0;width:100%;overflow:auto}.hero{display:block}.media-grid{grid-template-columns:1fr}}


/* ===== BSUN V4.3 enterprise UI ===== */
.brand{display:flex;align-items:center;gap:10px}.top-logo{height:34px;max-width:125px;object-fit:contain;background:#fff;border-radius:7px;padding:3px}
.page-actions{margin-bottom:12px}
.enterprise-login{background:#f3f5f7;min-height:100vh}.login-header{height:74px;background:#fff;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;padding:0 max(26px,calc((100vw - 1500px)/2));gap:20px}
.login-header-brand{display:flex;align-items:center;min-width:180px}.login-header-brand img{height:44px;max-width:180px;object-fit:contain}.login-wordmark{font-size:26px;font-weight:850;letter-spacing:.3px;color:#173f73}
.login-lang{margin-left:auto;width:auto;min-width:170px;border:0;background:transparent;padding:9px;font:inherit}
.login-stage{min-height:calc(100vh - 74px);display:grid;grid-template-columns:minmax(420px,1.2fr) minmax(400px,.8fr);max-width:1500px;margin:auto}
.login-visual{padding:9vw 6vw;background:linear-gradient(135deg,#123d70 0%,#1c5b9e 62%,#3d78b4 100%);color:#fff;display:flex;align-items:center}
.login-visual h1{font-size:clamp(40px,5vw,72px);line-height:1.05;margin:14px 0 24px;letter-spacing:-1px}.login-visual p{font-size:18px;line-height:1.8;max-width:690px;color:#e9f2fb}.eyebrow{font-size:14px;letter-spacing:2px;text-transform:uppercase;opacity:.85}
.login-feature-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:34px}.login-feature-row span{border:1px solid #ffffff55;background:#ffffff12;border-radius:999px;padding:9px 14px;font-size:13px}
.login-panel{display:grid;place-items:center;padding:40px;background:#f6f7f8}.login-box{width:min(460px,100%);background:#fff;border-radius:4px;padding:48px 46px;box-shadow:0 16px 50px rgba(15,23,42,.09)}
.login-box h2{font-size:30px;margin:0 0 6px}.login-input{height:54px;border-radius:4px}.login-submit{width:100%;height:54px;border-radius:4px;font-weight:750;font-size:17px;background:#174b86}.login-links{text-align:center;margin-top:20px}
.register-stage{max-width:1050px;margin:36px auto;padding:0 18px}.register-card{padding:34px}
.cookie-consent{position:fixed;z-index:9999;left:0;right:0;bottom:0;background:#edf4ff;border-top:1px solid #cfdef5;min-height:58px;padding:12px 28px;display:flex;align-items:center;gap:18px;box-shadow:0 -6px 24px #0e315814}.cookie-consent[hidden]{display:none}.cookie-text{flex:1;color:#213b5a}.cookie-actions{flex:0 0 auto}
.logo-preview{border:1px solid var(--line);background:#f8fafc;padding:18px;border-radius:12px;margin:12px 0}.logo-preview img{max-width:320px;max-height:110px;object-fit:contain}
.checkbox-line{display:flex;gap:8px;align-items:center;padding:10px 0}
@media(max-width:900px){.login-stage{grid-template-columns:1fr}.login-visual{padding:60px 30px}.login-visual h1{font-size:42px}.login-panel{padding:28px 18px}.login-box{padding:32px 25px}.login-header{padding:0 18px}.cookie-consent{padding:10px 14px}}

.lang-inline{width:auto;min-width:115px;background:#ffffff18;color:#fff;border:1px solid #ffffff33;border-radius:8px;padding:8px 9px;font:inherit}
.lang-inline option{color:#111;background:#fff}
.project-card>.toolbar{align-self:center;justify-content:flex-end}


/* ===== V4.5 login - code implementation of the approved BSUN visual direction ===== */
.v45-login{background:#eef2f7}
.v45-header{height:88px;padding:0 clamp(28px,4vw,70px);box-shadow:0 1px 0 rgba(15,23,42,.08);position:relative;z-index:5}
.v45-header .login-header-brand img{height:48px;max-width:220px}.v45-header .login-wordmark{font-size:34px;letter-spacing:.5px}
.v45-stage{min-height:calc(100vh - 88px);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(430px,.75fr)}
.v45-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#03142f 0%,#062c65 48%,#0c397d 100%);color:#fff;min-height:760px}
.v45-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(65,141,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(65,141,255,.04) 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(to bottom,transparent,#000 25%,#000)}
.v45-hero-inner{position:relative;z-index:2;padding:8vh 6vw 4vh;max-width:1060px;margin:0 auto}
.v45-eyebrow{font-size:16px;letter-spacing:3px;color:#d4e8ff;margin-bottom:22px}.v45-hero h1{font-size:clamp(52px,6vw,94px);line-height:.98;margin:0;letter-spacing:-2px;max-width:780px}
.v45-accent{width:58px;height:4px;background:#2e82ff;border-radius:999px;margin:28px 0 24px}.v45-desc{font-size:clamp(18px,1.4vw,25px);line-height:1.75;color:#e6f0ff;max-width:860px;margin:0}
.v45-features{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:48px;position:relative;z-index:4}.v45-feature{display:flex;gap:12px;align-items:flex-start}.v45-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#4090ff,#0c55d1);box-shadow:0 0 24px rgba(48,127,255,.35);font-size:18px;flex:0 0 auto}.v45-feature b{display:block;font-size:16px;margin:1px 0 4px}.v45-feature span{display:block;color:#bdd4f2;font-size:13px;line-height:1.45}
.v45-tech-art{height:340px;margin:28px -6vw -4vh;background-image:linear-gradient(to top,rgba(1,12,30,.02),rgba(1,12,30,.28)),url('/assets/login-tech-hero.jpg');background-size:cover;background-position:center 54%;mix-blend-mode:screen;opacity:.92;filter:saturate(1.15) contrast(1.05);mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 100%)}
.v45-login-side{display:grid;place-items:center;background:#f5f7fa;padding:42px}.v45-card{width:min(560px,100%);background:#fff;border-radius:14px;padding:62px 58px;box-shadow:0 28px 70px rgba(15,23,42,.12);border:1px solid rgba(15,23,42,.04)}
.v45-card h2{font-size:36px;margin:0 0 8px}.v45-subtitle{font-size:17px;margin-bottom:30px}.v45-card .field label{font-size:16px;margin-bottom:8px}.v45-input-wrap{position:relative}.v45-field-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:20px;color:#58708e;z-index:1}.v45-card .login-input{height:62px;padding-left:48px;border-radius:8px;font-size:16px}.v45-login-options{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:10px 0 22px;font-size:14px}.v45-login-options label{display:flex;align-items:center;gap:7px}.v45-card .login-submit{width:100%;height:62px;border-radius:8px;font-size:18px;background:linear-gradient(90deg,#155bbb,#0b62e8);box-shadow:0 10px 22px rgba(19,92,197,.22)}.v45-card .login-links{font-size:16px;margin-top:24px}
@media(max-width:1120px){.v45-stage{grid-template-columns:1fr}.v45-hero{min-height:auto}.v45-hero-inner{padding:58px 34px 0}.v45-tech-art{height:260px;margin:18px -34px 0}.v45-login-side{padding:34px 18px 90px}.v45-card{padding:42px 30px}.v45-features{grid-template-columns:1fr 1fr}.v45-hero h1{font-size:60px}}
@media(max-width:620px){.v45-header{height:68px;padding:0 16px}.v45-header .login-wordmark{font-size:25px}.v45-header .login-lang{min-width:120px;font-size:14px}.v45-stage{min-height:calc(100vh - 68px)}.v45-hero-inner{padding:38px 20px 0}.v45-hero h1{font-size:46px}.v45-eyebrow{font-size:12px;letter-spacing:2px}.v45-desc{font-size:16px}.v45-features{grid-template-columns:1fr;gap:14px;margin-top:28px}.v45-tech-art{height:190px;margin:14px -20px 0}.v45-login-side{padding:20px 12px 82px}.v45-card{padding:30px 20px}.v45-card h2{font-size:29px}.v45-card .login-input,.v45-card .login-submit{height:56px}.v45-login-options{font-size:12px}}

/* ===== BSUN V4.7 project background and resource library ===== */
.project-background{border-left:4px solid #1d66c1}
.project-background-text{font-size:16px;line-height:1.8;white-space:normal}
.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.section-title-row h2{margin-top:0;margin-bottom:6px}
.project-library .table td{vertical-align:top}
.resource-upload{margin:16px 0 20px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.resource-upload summary{padding:14px 16px;font-weight:700;cursor:pointer}
.no-auto-i18n{min-width:142px}
@media(max-width:760px){.project-library .table{min-width:840px}.section-title-row{display:block}}


/* ===== BSUN V4.8 project recycle bin ===== */
.inline-form{display:inline-flex;margin:0}
.nowrap{flex-wrap:nowrap}
.trash-settings{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:18px;margin:18px 0 22px}
.trash-retention-row{display:flex;gap:10px;align-items:center;margin-top:8px}
.trash-retention-row .input{width:120px}
.empty-state{padding:42px;text-align:center;color:#64748b;background:#f8fafc;border:1px dashed #ccd7e4;border-radius:12px}
@media(max-width:800px){
  .trash-settings{grid-template-columns:1fr}
  .trash-retention-row{flex-wrap:wrap}
}

/* BSUN V4.9 user delete */
.link-danger{background:none;border:0;padding:0;color:#d92d20;font:inherit;cursor:pointer;text-decoration:underline}
.link-danger:hover{color:#a61b13}


/* ===== V4.9.1 registration language switch ===== */
.register-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
}
.register-header-actions>a{
  white-space:nowrap;
}
.register-lang-switch{
  min-width:150px;
}
@media(max-width:640px){
  .register-header{
    gap:10px;
  }
  .register-header-actions{
    gap:8px;
  }
  .register-header-actions>a{
    font-size:13px;
  }
  .register-lang-switch{
    min-width:118px;
    max-width:138px;
  }
}

/* ===== V5.0.2 full auth audit ===== */
.v502-auth-card{max-width:620px;margin:0 auto}
.v502-auth-card h1{margin-top:0}
.v502-auth-card .login-submit{width:100%;margin-top:8px}
.v502-auth-card .login-links{text-align:center;margin-top:18px}
.v45-login-options a.muted{text-decoration:none}
.v45-login-options a.muted:hover{text-decoration:underline}

/* ===== V5.0.3 reset password account display ===== */
.v503-reset-account{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  margin:4px 0 20px;
  border:1px solid #d8e3f0;
  border-radius:12px;
  background:#f6f9fd;
}
.v503-reset-account-label{
  color:#66758a;
  font-size:14px;
}
.v503-reset-account-main{
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  min-width:0;
}
.v503-reset-account-main strong{
  color:#0d2948;
  font-size:17px;
}
.v503-reset-account-main span{
  color:#66758a;
  font-size:13px;
  overflow-wrap:anywhere;
}
@media(max-width:640px){
  .v503-reset-account{
    align-items:flex-start;
    flex-direction:column;
    gap:8px;
  }
  .v503-reset-account-main{
    align-items:flex-start;
  }
}

/* ===== V5.0.5 password verification-code UI ===== */
.v505-account-card{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  box-sizing:border-box;
  padding:16px 18px;
  margin:8px 0 22px;
  border:1px solid #d9e4ef;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fbff,#f3f7fc);
}
.v505-account-avatar{
  flex:0 0 46px;
  width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  background:#1f5b98;
  color:#fff;
  font-size:20px;
  font-weight:800;
}
.v505-account-copy{display:block;min-width:0;line-height:1.25}
.v505-account-label{display:block;color:#6b7b8f;font-size:13px;margin-bottom:3px}
.v505-account-name{display:block;color:#102b4a;font-size:18px;font-weight:800;margin-bottom:2px}
.v505-account-email{display:block;color:#4f6279;font-size:14px;overflow-wrap:anywhere}
.v505-code-input{
  letter-spacing:.22em;
  font-size:20px!important;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
@media(max-width:600px){
  .v505-account-card{padding:13px 14px;gap:11px}
  .v505-account-avatar{flex-basis:40px;width:40px;height:40px;font-size:17px}
  .v505-account-name{font-size:16px}
  .v505-account-email{font-size:13px}
}

/* ===== V5.0.6 favicon settings ===== */
.favicon-preview{display:flex;align-items:center;gap:12px;margin:10px 0 16px;padding:12px 14px;border:1px solid #dbe4ef;border-radius:12px;background:#f7f9fc}
.favicon-preview img{width:48px;height:48px;object-fit:contain;border-radius:8px;background:#fff;border:1px solid #e3e8ef}
.favicon-preview span{font-size:13px;color:#68798e;overflow-wrap:anywhere}
/* BSUN V5.1 content/compliance */
.v51-legal-check{display:block;margin:14px 0;font-size:14px;line-height:1.55;color:#53627a}.v51-legal-check input{margin-right:7px}.v51-legal-check a,.v51-cookie-links a{color:#0b6fe8;text-decoration:none}.v51-cookie-links{margin-top:6px}.v51-legal-meta{color:#738099;margin:-6px 0 22px}.v51-legal-body{line-height:1.85;white-space:normal;color:#26364f}.v51-lang-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 18px}.v51-lang-tabs a{padding:7px 10px;border:1px solid #d8e0eb;border-radius:8px;text-decoration:none;color:#32445f}.v51-lang-tabs a.active{background:#165a9f;color:#fff;border-color:#165a9f}.v51-content-admin textarea{width:100%;min-height:90px}.v51-cookie{z-index:9999}
@media(max-width:700px){.v51-lang-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:5px}.v51-lang-tabs a{white-space:nowrap}.v51-legal-check{font-size:13px}.cookie-consent.v51-cookie{left:12px;right:12px;bottom:12px;width:auto}}
.v51-login-header{min-height:56px;height:56px}.v51-hero-logo{display:block;max-width:190px;max-height:70px;object-fit:contain;margin:0 0 28px}.v51-hero-wordmark{font-size:30px;font-weight:800;color:#fff;margin-bottom:28px;letter-spacing:1px}
@media(max-width:900px){.v51-hero-logo{max-width:150px;max-height:56px;margin-bottom:18px}}


/* ===== V5.3 strict mobile auth / legal / cookie layout ===== */
.v51-login-header .login-header-brand{display:flex!important;align-items:center;min-width:0}
.v51-login-header .login-header-brand img{height:46px;max-width:190px;object-fit:contain}
.v53-cookie-icon{font-size:25px;line-height:1;flex:0 0 auto}
.cookie-consent.v51-cookie{background:#fff;border:1px solid #d8e2ee;border-radius:14px;left:20px;right:20px;bottom:18px;max-width:1100px;margin:0 auto;min-height:0;padding:16px 18px;box-shadow:0 18px 50px rgba(13,44,78,.22);color:#21344f}
.cookie-consent.v51-cookie .cookie-text{color:#263a55;line-height:1.55}
.cookie-consent.v51-cookie .cookie-text strong{display:block;font-size:15px;margin-bottom:3px;color:#102a49}
.cookie-consent.v51-cookie .cookie-text p{margin:0;font-size:13px}
.cookie-consent.v51-cookie .v51-cookie-links{margin-top:5px;font-size:13px}
.cookie-consent.v51-cookie .cookie-actions .btn{white-space:nowrap}
.v51-legal-check{display:flex;align-items:flex-start;gap:8px}
.v51-legal-check input{margin:3px 0 0;flex:0 0 auto}
.v51-legal-check span{min-width:0}

@media(max-width:700px){
  .v51-login-header{height:64px;min-height:64px;padding:0 16px!important;gap:10px}
  .v51-login-header .login-header-brand img{height:42px;max-width:145px}
  .v51-login-header .login-wordmark{font-size:22px}
  .v51-login-header .login-lang{min-width:0;width:138px;max-width:42vw;font-size:15px;padding:8px 26px 8px 8px}

  /* Mobile login opens with a compact brand/technology strip instead of a full marketing page. */
  .v45-stage{display:flex!important;flex-direction:column;min-height:calc(100vh - 64px)}
  .v45-hero{order:1;min-height:154px!important;height:154px!important;overflow:hidden;background:#082b59!important}
  .v45-hero-inner{height:154px!important;padding:0!important;display:block!important;position:relative}
  .v45-hero .v45-grid,.v45-hero .v45-eyebrow,.v45-hero h1,.v45-hero .v45-accent,.v45-hero .v45-desc,.v45-hero .v45-features{display:none!important}
  .v45-tech-art{display:block!important;position:absolute;inset:0;height:154px!important;margin:0!important;background-size:cover!important;background-position:center 58%!important;opacity:1!important;mix-blend-mode:normal!important;filter:saturate(1.08) contrast(1.02)!important;mask-image:none!important;-webkit-mask-image:none!important}
  .v45-login-side{order:2;padding:14px 12px 92px!important;display:block!important}
  .v45-card{width:100%!important;max-width:none!important;padding:24px 20px!important;border-radius:16px!important;box-shadow:0 10px 32px rgba(15,23,42,.09)!important}
  .v45-card h2{font-size:30px!important;line-height:1.15;margin-bottom:4px!important}
  .v45-subtitle{font-size:14px!important;margin-bottom:20px!important}
  .v45-card .field{margin-bottom:13px}
  .v45-card .field label{font-size:15px!important;margin-bottom:5px!important}
  .v45-card .login-input{height:52px!important;font-size:16px!important}
  .v45-login-options{font-size:13px!important;margin:6px 0 14px!important}
  .v45-card .login-submit{height:54px!important;margin-top:8px!important}
  .v45-card .login-links{font-size:15px!important;margin-top:17px!important}
  .v51-legal-check{font-size:12.5px!important;line-height:1.5;margin:10px 0!important}

  /* Cookie consent is an independent white bottom sheet, never blended into the hero image. */
  .cookie-consent.v51-cookie{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;max-height:48vh;overflow:auto;display:grid;grid-template-columns:auto 1fr;gap:9px 10px;padding:13px 14px!important;border-radius:14px!important;background:#fff!important}
  .cookie-consent.v51-cookie[hidden]{display:none!important}
  .cookie-consent.v51-cookie .cookie-actions{grid-column:1/-1}
  .cookie-consent.v51-cookie .cookie-actions .btn{width:100%;height:44px}
  .cookie-consent.v51-cookie .cookie-text p{font-size:12.5px}
  .cookie-consent.v51-cookie .v51-cookie-links{font-size:12.5px}

  /* Public legal / forgot / reset / register pages */
  .register-stage{padding:18px 12px 80px!important;align-items:flex-start!important}
  .register-card,.v502-auth-card{width:100%!important;max-width:none!important;padding:24px 20px!important;border-radius:16px!important}
  .v502-auth-card h1,.register-card h1{font-size:32px!important;line-height:1.15;margin-bottom:12px!important}
  .v51-legal-meta{font-size:13px;margin-bottom:16px}
  .v51-legal-body{font-size:15px;line-height:1.75}
}

@media(max-width:390px){
  .v51-login-header .login-header-brand img{max-width:125px;height:38px}
  .v51-login-header .login-lang{width:122px;max-width:40vw;font-size:14px}
  .v45-card{padding:21px 17px!important}
  .v45-card h2{font-size:28px!important}
}

/* ===== BSUN V5.3.1 reliable language switch: link based, no JS required ===== */
.bsun-lang-menu{position:relative;display:inline-block;z-index:1205;margin:0}
.bsun-lang-menu>summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-width:142px;min-height:42px;box-sizing:border-box;padding:9px 12px;
  border:1px solid rgba(90,112,138,.28);border-radius:10px;background:#fff;color:#172b46;
  cursor:pointer;user-select:none;font-size:15px;line-height:1.2;white-space:nowrap
}
.bsun-lang-menu>summary::-webkit-details-marker{display:none}
.bsun-lang-caret{font-size:17px;line-height:1;opacity:.7;transition:transform .15s ease}
.bsun-lang-menu[open] .bsun-lang-caret{transform:rotate(180deg)}
.bsun-lang-panel{
  position:absolute;right:0;top:calc(100% + 7px);z-index:1210;
  min-width:188px;max-height:min(430px,65vh);overflow:auto;padding:7px;
  border:1px solid #dbe4ef;border-radius:12px;background:#fff;
  box-shadow:0 16px 38px rgba(18,45,78,.18)
}
.bsun-lang-panel a{
  display:block;padding:10px 12px;border-radius:8px;color:#193a60!important;text-decoration:none!important;
  font-size:15px;line-height:1.25;white-space:nowrap
}
.bsun-lang-panel a:hover,.bsun-lang-panel a:focus{background:#eef5ff}
.bsun-lang-panel a.active{background:#e7f1ff;color:#0d63c9!important;font-weight:700}
.login-header .bsun-public-lang{margin-left:auto}
.top .bsun-lang-menu>summary{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);color:#fff}
.top .bsun-lang-panel a{color:#173b66!important}
.register-header-actions .bsun-lang-menu{margin-left:8px}

@media(max-width:1080px){
  .v504-mobile-actions .bsun-lang-menu>summary{min-width:120px;max-width:148px;background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);color:#fff;font-size:14px}
  .v504-mobile-actions .bsun-lang-panel{right:0;min-width:174px}
}
@media(max-width:600px){
  .login-header{overflow:visible!important}
  .login-header .bsun-lang-menu>summary{min-width:128px;max-width:44vw;min-height:42px;padding:8px 10px;font-size:14px}
  .login-header .bsun-lang-panel{position:fixed;right:12px;left:auto;top:74px;width:min(250px,calc(100vw - 24px));max-height:62vh}
  .register-header-actions{gap:6px}
  .register-header-actions>a{font-size:13px}
  .register-header-actions .bsun-lang-menu>summary{min-width:112px;max-width:39vw}
  .bsun-lang-panel a{padding:11px 12px;font-size:15px}
}

/* ===== BSUN V5.4 security hardening + compact public header ===== */
.v54-public-header{height:auto!important;min-height:74px!important;padding-top:8px!important;padding-bottom:8px!important;overflow:visible!important}
.v54-public-brand{display:flex!important;align-items:center!important;gap:16px;min-width:0;flex:1}
.v54-brand-copy{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.v54-brand-copy strong{font-size:17px;color:#173f73;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v54-brand-copy span{font-size:12px;color:#6b7b8f;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v45-card{padding:46px 50px 38px}
.v45-card .login-links{margin-top:18px}
.v54-forgot-form{margin-bottom:18px}
.v54-verify-box{border-top:1px solid #e1e8f0;margin-top:18px;padding-top:18px}
.v54-verify-btn{width:100%;min-height:52px}
.v54-hp{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:900px){
  .v54-public-header{min-height:64px!important;padding:7px 14px!important}
  .v54-public-brand{gap:10px}
  .v54-brand-copy strong{font-size:14px;max-width:52vw}
  .v54-brand-copy span{display:none}
  .v54-public-brand img{height:40px!important;max-width:132px!important}
  .v45-card{padding:30px 22px 26px}
}
@media(max-width:560px){
  .v54-brand-copy{display:none}
  .v54-public-brand img{height:38px!important;max-width:125px!important}
  .v54-public-header .bsun-lang-menu>summary{min-width:112px!important;max-width:39vw!important}
  .v502-auth-card{padding:26px 20px!important}
  .v502-auth-card h1{font-size:31px;line-height:1.15}
}
