/* GX Linear (light) — final conflict shield.
 * Loaded after each page's local <style> blocks so legacy light/dark
 * declarations cannot break the white/black console.
 */

/* 1) Shell must never fall back to legacy dark/glass styles. */
body.theme-linear.is-admin .app-frame{background:#fff!important;gap:0!important;margin:0!important;padding:0!important}
body.theme-linear.is-admin .sidebar{background:#fafafa!important;background-image:none!important;border-color:#e6e6e6!important;border-radius:0!important;box-shadow:none!important}
body.theme-linear.is-admin .workspace{background:#fff!important;background-image:none!important}
body.theme-linear.is-admin .workspace-top{background:#fff!important;background-image:none!important;border-color:#e6e6e6!important;border-radius:0!important;box-shadow:none!important}

/* 2) Sidebar text/icon contrast. */
body.theme-linear.is-admin .sidebar .side-link,
body.theme-linear.is-admin .sidebar .side-link .nav-label,
body.theme-linear.is-admin .sidebar .side-link .nav-icon{
  color:#555!important;-webkit-text-fill-color:#555!important;opacity:1!important;text-shadow:none!important;
}
body.theme-linear.is-admin .sidebar .side-link{background:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important}
body.theme-linear.is-admin .sidebar .side-link:hover{
  background:#f0f0f0!important;border-color:#e6e6e6!important;color:#111!important;-webkit-text-fill-color:#111!important;
}
body.theme-linear.is-admin .sidebar .side-link:hover .nav-label,
body.theme-linear.is-admin .sidebar .side-link:hover .nav-icon{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .sidebar .side-link.active{
  background:#eaeaea!important;background-image:none!important;border-color:#d5d5d5!important;
  color:#000!important;-webkit-text-fill-color:#000!important;box-shadow:none!important;
}
body.theme-linear.is-admin .sidebar .side-link.active .nav-label{color:#000!important;-webkit-text-fill-color:#000!important}
body.theme-linear.is-admin .sidebar .side-link.active .nav-icon{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .sidebar .nav-icon svg{fill:currentColor!important;stroke:none!important;opacity:1!important}
body.theme-linear.is-admin .sidebar .side-brand strong{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .sidebar .side-brand small{color:#777!important;-webkit-text-fill-color:#777!important}
body.theme-linear.is-admin .sidebar .user-card strong{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .sidebar .user-card small{color:#777!important;-webkit-text-fill-color:#777!important}
body.theme-linear.is-admin .sidebar .logout-link{background:transparent!important;color:#777!important;-webkit-text-fill-color:#777!important}

/* 3) Generic readable text. */
body.theme-linear.is-admin .container h1,
body.theme-linear.is-admin .container h2,
body.theme-linear.is-admin .container h3,
body.theme-linear.is-admin .container h4,
body.theme-linear.is-admin .container h5,
body.theme-linear.is-admin .container h6{
  color:#111!important;-webkit-text-fill-color:#111!important;
}
body.theme-linear.is-admin .container label{color:#333!important;-webkit-text-fill-color:#333!important;opacity:1!important}
body.theme-linear.is-admin .container p,
body.theme-linear.is-admin .container li,
body.theme-linear.is-admin .container .muted,
body.theme-linear.is-admin .container .small,
body.theme-linear.is-admin .container .small-text,
body.theme-linear.is-admin .container .help,
body.theme-linear.is-admin .container .tip{
  color:#555!important;-webkit-text-fill-color:#555!important;opacity:1!important;
}
body.theme-linear.is-admin .container strong,
body.theme-linear.is-admin .container b{color:#111!important;-webkit-text-fill-color:#111!important}

/* 4) Every commonly used content surface must be white. */
body.theme-linear.is-admin .container .card,
body.theme-linear.is-admin .container .compact-card,
body.theme-linear.is-admin .container .clean-create-card,
body.theme-linear.is-admin .container .create-card,
body.theme-linear.is-admin .container .create-section,
body.theme-linear.is-admin .container .multi-plan-section,
body.theme-linear.is-admin .container .type-plan-row,
body.theme-linear.is-admin .container .user-edit-panel,
body.theme-linear.is-admin .container .recharge-card,
body.theme-linear.is-admin .container .recharge-stat,
body.theme-linear.is-admin .container .recharge-plans label,
body.theme-linear.is-admin .container .traffic-plans label,
body.theme-linear.is-admin .container .cloud-card,
body.theme-linear.is-admin .container .cloud-top,
body.theme-linear.is-admin .container .cloud-current,
body.theme-linear.is-admin .container .cloud-app-picker,
body.theme-linear.is-admin .container .so-uploader,
body.theme-linear.is-admin .container .so-kv,
body.theme-linear.is-admin .container .so-mode-card,
body.theme-linear.is-admin .container .so-manage-card,
body.theme-linear.is-admin .container .client-file-box,
body.theme-linear.is-admin .container .local-so-setting,
body.theme-linear.is-admin .container .support-chat,
body.theme-linear.is-admin .container .support-chat-header,
body.theme-linear.is-admin .container .support-chat-footer,
body.theme-linear.is-admin .container .settings-card,
body.theme-linear.is-admin .container .appearance-section,
body.theme-linear.is-admin .container .security-settings-card,
body.theme-linear.is-admin .container .choice-card,
body.theme-linear.is-admin .container .plain-file,
body.theme-linear.is-admin .container .lua-update-panel{
  background:#fff!important;background-image:none!important;border-color:#e6e6e6!important;color:#111!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body.theme-linear.is-admin .container .multi-plan-section,
body.theme-linear.is-admin .container .type-plan-row,
body.theme-linear.is-admin .container .recharge-plans label,
body.theme-linear.is-admin .container .traffic-plans label,
body.theme-linear.is-admin .container .cloud-app-picker,
body.theme-linear.is-admin .container .so-uploader,
body.theme-linear.is-admin .container .so-kv,
body.theme-linear.is-admin .container .so-mode-card,
body.theme-linear.is-admin .container .client-file-box,
body.theme-linear.is-admin .container .local-so-setting,
body.theme-linear.is-admin .container .support-chat-header,
body.theme-linear.is-admin .container .support-chat-footer,
body.theme-linear.is-admin .container .plain-file{background:#fafafa!important}

/* 5) Forms: explicit foreground/background in all states. */
body.theme-linear.is-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
body.theme-linear.is-admin select,
body.theme-linear.is-admin textarea,
body.theme-linear.is-auth input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
body.theme-linear.is-auth select,
body.theme-linear.is-auth textarea{
  background-color:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;border-color:#d9d9d9!important;opacity:1!important;text-shadow:none!important;box-shadow:none!important;
}
body.theme-linear.is-admin input::placeholder,
body.theme-linear.is-admin textarea::placeholder,
body.theme-linear.is-auth input::placeholder,
body.theme-linear.is-auth textarea::placeholder{color:#999!important;-webkit-text-fill-color:#999!important;opacity:1!important}
body.theme-linear.is-admin select,
body.theme-linear.is-auth select{color-scheme:light!important;-webkit-appearance:none!important;appearance:none!important}
body.theme-linear.is-admin select option,
body.theme-linear.is-admin select optgroup,
body.theme-linear.is-auth select option,
body.theme-linear.is-auth select optgroup{background:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin input:focus,
body.theme-linear.is-admin select:focus,
body.theme-linear.is-admin textarea:focus,
body.theme-linear.is-auth input:focus,
body.theme-linear.is-auth select:focus,
body.theme-linear.is-auth textarea:focus{background-color:#fff!important;border-color:#111!important;color:#000!important;-webkit-text-fill-color:#000!important;box-shadow:0 0 0 3px rgba(0,0,0,.08)!important}
body.theme-linear.is-admin input:disabled,
body.theme-linear.is-admin select:disabled,
body.theme-linear.is-admin textarea:disabled{background:#f5f5f5!important;color:#999!important;-webkit-text-fill-color:#999!important;opacity:1!important}
body.theme-linear.is-admin input[readonly],
body.theme-linear.is-admin textarea[readonly]{background:#fafafa!important;color:#555!important;-webkit-text-fill-color:#555!important;opacity:1!important}

/* 6) Button text. */
body.theme-linear.is-admin .btn,
body.theme-linear.is-admin button{background:#fff!important;border-color:#d5d5d5!important;color:#111!important;-webkit-text-fill-color:#111!important;box-shadow:none!important;text-shadow:none!important;opacity:1!important}
body.theme-linear.is-admin .btn *,
body.theme-linear.is-admin button *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
body.theme-linear.is-admin .btn.primary,
body.theme-linear.is-admin button[type="submit"]:not(.secondary):not(.danger):not(.danger-btn){background:#111!important;border-color:#111!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body.theme-linear.is-admin .btn.secondary,
body.theme-linear.is-admin button.secondary,
body.theme-linear.is-admin a.btn.secondary{background:#fff!important;border-color:#d5d5d5!important;color:#333!important;-webkit-text-fill-color:#333!important}
body.theme-linear.is-admin .btn.danger,
body.theme-linear.is-admin .danger-btn,
body.theme-linear.is-admin button.danger{background:#fff!important;border-color:#f2b7c0!important;color:#b42335!important;-webkit-text-fill-color:#b42335!important}

/* 7) Tables and helper text. */
body.theme-linear.is-admin table th,
body.theme-linear.is-admin .table th{background:#fafafa!important;color:#555!important;-webkit-text-fill-color:#555!important;border-color:#e6e6e6!important}
body.theme-linear.is-admin table td,
body.theme-linear.is-admin .table td{background:transparent!important;color:#333!important;-webkit-text-fill-color:#333!important;border-color:#eeeeee!important}
body.theme-linear.is-admin table td strong{color:#111!important;-webkit-text-fill-color:#111!important}

/* 8) Page-specific text colors. */
body.theme-linear.is-admin .user-row-name strong,
body.theme-linear.is-admin .user-row-stat b,
body.theme-linear.is-admin .recharge-stat strong,
body.theme-linear.is-admin .recharge-plans strong,
body.theme-linear.is-admin .cloud-current strong,
body.theme-linear.is-admin .so-summary-main strong,
body.theme-linear.is-admin .client-file-main strong,
body.theme-linear.is-admin .local-so-copy strong,
body.theme-linear.is-admin .traffic-plans strong,
body.theme-linear.is-admin .so-mode-card strong{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .user-row-nick,
body.theme-linear.is-admin .user-row-sub,
body.theme-linear.is-admin .user-row-stat,
body.theme-linear.is-admin .recharge-title p,
body.theme-linear.is-admin .recharge-card p,
body.theme-linear.is-admin .recharge-plans small,
body.theme-linear.is-admin .recharge-stat small,
body.theme-linear.is-admin .cloud-title p,
body.theme-linear.is-admin .cloud-app-picker label,
body.theme-linear.is-admin .cloud-current small,
body.theme-linear.is-admin .cloud-card-sub,
body.theme-linear.is-admin .cloud-muted,
body.theme-linear.is-admin .so-kv small,
body.theme-linear.is-admin .so-summary-meta small,
body.theme-linear.is-admin .client-file-main p,
body.theme-linear.is-admin .local-so-copy small,
body.theme-linear.is-admin .traffic-plans small,
body.theme-linear.is-admin .so-mode-card small,
body.theme-linear.is-admin .simple-msg,
body.theme-linear.is-admin .multi-plan-hint{color:#555!important;-webkit-text-fill-color:#555!important;opacity:1!important}

/* 9) Status/color semantics stay colorful. */
body.theme-linear.is-admin .badge.success,
body.theme-linear.is-admin .online,
body.theme-linear.is-admin .status-success{background:#ecfdf3!important;border-color:#b7ebcd!important;color:#087443!important;-webkit-text-fill-color:#087443!important}
body.theme-linear.is-admin .badge.pending,
body.theme-linear.is-admin .status-warning{background:#fff8e7!important;border-color:#f0d28a!important;color:#8a5700!important;-webkit-text-fill-color:#8a5700!important}
body.theme-linear.is-admin .badge.error,
body.theme-linear.is-admin .badge.danger,
body.theme-linear.is-admin .offline,
body.theme-linear.is-admin .status-error{background:#fff0f2!important;border-color:#f2b7c0!important;color:#b42335!important;-webkit-text-fill-color:#b42335!important}

/* 10) Real images remain full color. */
body.theme-linear img{filter:none!important;-webkit-filter:none!important;opacity:1!important;mix-blend-mode:normal!important}

/* 11) Tablet: keep readable sidebar labels. */
@media (max-width:1100px) and (min-width:761px){
  body.theme-linear.is-admin .sidebar{width:184px!important;background:#fafafa!important}
  body.theme-linear.is-admin .app-frame{grid-template-columns:184px minmax(0,1fr)!important;width:100%!important}
  body.theme-linear.is-admin .side-brand>div{display:block!important}
  body.theme-linear.is-admin .side-link{min-height:38px!important;flex-direction:row!important;justify-content:flex-start!important;gap:9px!important;padding:0 9px!important}
  body.theme-linear.is-admin .side-link .nav-label{display:block!important;max-width:125px!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;text-align:left!important}
  body.theme-linear.is-admin .user-card>div:not(.avatar){display:block!important}
  body.theme-linear.is-admin .logout-link{flex-direction:row!important}
}

/* ---------- 充值中心：白底黑字简约 ---------- */
body.theme-linear.is-admin .recharge-title h2{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .recharge-title p{color:#666!important;-webkit-text-fill-color:#666!important}
body.theme-linear.is-admin .recharge-stat{background:#fff!important;background-image:none!important;border:1px solid #e6e6e6!important;border-radius:10px!important;box-shadow:none!important}
body.theme-linear.is-admin .recharge-stat small{color:#777!important;-webkit-text-fill-color:#777!important;font-weight:600!important}
body.theme-linear.is-admin .recharge-stat strong{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .recharge-card{background:#fff!important;background-image:none!important;border:1px solid #e6e6e6!important;border-radius:10px!important;box-shadow:none!important}
body.theme-linear.is-admin .recharge-card h3{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .recharge-card p{color:#666!important;-webkit-text-fill-color:#666!important}
body.theme-linear.is-admin .recharge-tip{background:#fafafa!important;border:1px solid #e6e6e6!important;border-radius:10px!important;color:#333!important;-webkit-text-fill-color:#333!important;font-weight:600!important}
body.theme-linear.is-admin .recharge-tip span{color:#111!important;-webkit-text-fill-color:#111!important;font-weight:700!important}
body.theme-linear.is-admin .recharge-admin{background:#fafafa!important;background-image:none!important;border:1px solid #e6e6e6!important}
body.theme-linear.is-admin .recharge-admin h3{color:#111!important;-webkit-text-fill-color:#111!important}
body.theme-linear.is-admin .recharge-unit span{color:#111!important;-webkit-text-fill-color:#111!important;font-weight:700!important}
body.theme-linear.is-admin .recharge-generated{background:#fafafa!important;border:1px solid #e0e0e0!important;color:#222!important;-webkit-text-fill-color:#222!important}

/* 充值方案：卡片化单选 */
body.theme-linear.is-admin .recharge-plans label{position:relative!important;display:block!important;padding:12px!important;cursor:pointer!important;background:#fff!important;background-image:none!important;border:1px solid #e0e0e0!important;border-radius:8px!important;box-shadow:none!important;transition:border-color .15s,background .15s!important}
body.theme-linear.is-admin .recharge-plans label:hover{border-color:#bbb!important;background:#fafafa!important}
body.theme-linear.is-admin .recharge-plans label input[type="radio"]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;clip:rect(0 0 0 0)!important;margin:0!important}
body.theme-linear.is-admin .recharge-plans label strong{display:block!important;color:#111!important;-webkit-text-fill-color:#111!important;font-size:14px!important;font-weight:600!important}
body.theme-linear.is-admin .recharge-plans label small{display:block!important;color:#666!important;-webkit-text-fill-color:#666!important;font-size:12px!important;margin-top:3px!important}
body.theme-linear.is-admin .recharge-plans label:has(input[type="radio"]:checked){border-color:#111!important;background:#fafafa!important;box-shadow:inset 0 0 0 1px #111!important}
body.theme-linear.is-admin .recharge-plans label:has(input[type="radio"]:checked) strong{color:#000!important;-webkit-text-fill-color:#000!important}

/* 充值中心"使用自定义"选项：卡片化（替代原生 radio） */
body.theme-linear.is-admin .recharge-form .mini-tag{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:8px 14px!important;
  cursor:pointer!important;
  border:1px solid #e0e0e0!important;
  border-radius:8px!important;
  background:#fff!important;
  background-image:none!important;
  color:#555!important;
  -webkit-text-fill-color:#555!important;
  font-size:13px!important;
  font-weight:600!important;
  box-shadow:none!important;
  transition:border-color .15s,background .15s!important;
}
body.theme-linear.is-admin .recharge-form .mini-tag:hover{
  border-color:#bbb!important;
  background:#fafafa!important;
}
body.theme-linear.is-admin .recharge-form .mini-tag input[type="radio"]{
  position:absolute!important;
  opacity:0!important;
  width:1px!important;
  height:1px!important;
  clip:rect(0 0 0 0)!important;
  margin:0!important;
}
body.theme-linear.is-admin .recharge-form .mini-tag:has(input[type="radio"]:checked){
  border-color:#111!important;
  background:#fafafa!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  box-shadow:inset 0 0 0 1px #111!important;
}

/* ========== 登录/注册页优化：简约居中 ========== */
body.theme-linear.is-auth{
  background:#fff!important;
  background-image:none!important;
}
body.theme-linear.is-auth .auth-shell{
  min-height:100vh!important;
  min-height:100dvh!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  padding:40px 16px!important;
  margin:0!important;
}
body.theme-linear.is-auth .auth-panel{
  width:100%!important;
  max-width:420px!important;
  margin:0!important;
}
body.theme-linear.is-auth .auth-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  margin:0 0 24px!important;
}
body.theme-linear.is-auth .auth-brand .brand-logo{
  width:40px!important;
  height:40px!important;
  border-radius:10px!important;
}
body.theme-linear.is-auth .auth-brand strong{
  font-size:18px!important;
  font-weight:700!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
body.theme-linear.is-auth .auth-card{
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:28px 24px!important;
  border:1px solid #e6e6e6!important;
  border-radius:12px!important;
  box-shadow:0 1px 3px rgba(0,0,0,.06)!important;
}
body.theme-linear.is-auth .auth-card h2{
  font-size:22px!important;
  font-weight:700!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  margin:0 0 20px!important;
}
body.theme-linear.is-auth .auth-card .form-row{
  margin-bottom:16px!important;
}
body.theme-linear.is-auth .auth-card .form-row>label{
  color:#333!important;
  -webkit-text-fill-color:#333!important;
  font-size:13px!important;
  font-weight:600!important;
  margin-bottom:6px!important;
}
body.theme-linear.is-auth .captcha-line{
  display:flex!important;
  gap:10px!important;
  align-items:center!important;
}
body.theme-linear.is-auth .captcha-line img{
  width:110px!important;
  height:44px!important;
  flex:0 0 110px!important;
  border-radius:8px!important;
  border:1px solid #e6e6e6!important;
  cursor:pointer!important;
}
body.theme-linear.is-auth .captcha-line input{
  flex:1!important;
  min-width:0!important;
}
body.theme-linear.is-auth .auth-card .actions{
  display:flex!important;
  gap:10px!important;
  margin-top:20px!important;
}
body.theme-linear.is-auth .auth-card button{
  flex:1!important;
  min-height:44px!important;
  background:#111!important;
  border-color:#111!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:15px!important;
  font-weight:600!important;
}
body.theme-linear.is-auth .auth-card .btn.secondary{
  min-height:44px!important;
  padding:0 18px!important;
  background:#fff!important;
  border-color:#d5d5d5!important;
  color:#333!important;
  -webkit-text-fill-color:#333!important;
}

/* 新首页结构：覆盖旧主题玻璃风残留（避免圆角边框盒子错乱） */
body.theme-linear.is-public .public-nav{
  border:0!important;
  border-bottom:1px solid #e6e6e6!important;
  border-radius:0!important;
  background:#fff!important;
}
body.theme-linear.is-public .public-hero{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.theme-linear.is-public .public-flow{
  border-radius:12px!important;
}
body.theme-linear.is-public .feature-card{
  border-radius:12px!important;
}

/* 首页布局完整覆盖：去掉旧玻璃风 grid/flex */
body.theme-linear.is-public .public-hero{
  display:block!important;
  grid-template-columns:none!important;
  min-height:auto!important;
  padding:24px 0 0!important;
  text-align:center!important;
}
body.theme-linear.is-public .public-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  margin-top:0!important;
}
body.theme-linear.is-public .feature-card{
  display:block!important;
  border-radius:12px!important;
  min-height:auto!important;
}
body.theme-linear.is-public .public-flow{
  display:block!important;
  grid-template-columns:none!important;
  border-radius:12px!important;
  padding:36px!important;
  margin-top:0!important;
}
body.theme-linear.is-public .flow-list{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  max-width:none!important;
  flex:none!important;
}
body.theme-linear.is-public .flow-list div{
  display:block!important;
  align-items:normal!important;
  gap:normal!important;
  padding:18px!important;
  border-radius:10px!important;
  background:#fafafa!important;
  border:1px solid #e6e6e6!important;
}
body.theme-linear.is-public .flow-list b{
  display:block!important;
  width:auto!important;
  height:auto!important;
  border-radius:0!important;
  background:transparent!important;
  color:#111!important;
  font-size:22px!important;
  font-weight:700!important;
  margin-bottom:8px!important;
}
body.theme-linear.is-public .flow-list span{
  display:block!important;
  font-size:14px!important;
  line-height:1.6!important;
  color:#555!important;
  font-weight:normal!important;
}
@media(max-width:900px){
  body.theme-linear.is-public .flow-list{grid-template-columns:1fr 1fr!important}
  body.theme-linear.is-public .public-flow{padding:24px!important}
}
@media(max-width:560px){
  body.theme-linear.is-public .flow-list{grid-template-columns:1fr!important}
}

/* 统计卡：独立白底卡片，数字统一黑色 */
body.theme-linear.is-admin .stat-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;
  gap:12px!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  margin-bottom:4px!important;
}
body.theme-linear.is-admin .stat{
  background:#fff!important;
  border:1px solid #e6e6e6!important;
  border-radius:10px!important;
  padding:16px!important;
  box-shadow:none!important;
}
body.theme-linear.is-admin .stat span{
  color:#777!important;
  -webkit-text-fill-color:#777!important;
  font-size:13px!important;
  font-weight:600!important;
}
body.theme-linear.is-admin .stat strong,
body.theme-linear.is-admin .stat:nth-child(2) strong,
body.theme-linear.is-admin .stat:nth-child(3) strong,
body.theme-linear.is-admin .stat:nth-child(4) strong,
body.theme-linear.is-admin .stat:nth-child(5) strong{
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  font-size:26px!important;
  font-weight:700!important;
  line-height:1.15!important;
}

/* ========== 移动端优化 ========== */
@media (max-width:760px){
  /* 底部导航：显示所有项（图标+文字），横向滚动 */
  body.theme-linear.is-admin .sidebar{
    height:64px!important;
    padding:4px 6px!important;
    border-radius:12px!important;
  }
  body.theme-linear.is-admin .side-nav{
    gap:2px!important;
    justify-content:flex-start!important;
  }
  body.theme-linear.is-admin .side-link,
  body.theme-linear.is-admin .side-link:nth-child(n+7){
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:3px!important;
    min-width:56px!important;
    width:56px!important;
    height:52px!important;
    min-height:52px!important;
    flex:0 0 56px!important;
    padding:4px 2px!important;
  }
  body.theme-linear.is-admin .side-link .nav-label{
    display:block!important;
    font-size:10px!important;
    line-height:1!important;
    white-space:nowrap!important;
    max-width:54px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.theme-linear.is-admin .side-link .nav-icon{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
  }
  body.theme-linear.is-admin .side-link.active::after{
    left:14px!important;
    right:14px!important;
    bottom:-1px!important;
    height:2px!important;
    top:auto!important;
    width:auto!important;
  }
  body.theme-linear.is-admin .container{padding-bottom:96px!important}
}

/* 云更新页面：移动端网格单列 */
@media (max-width:900px){
  body.theme-linear.is-admin .cloud-card{padding:16px!important}
  body.theme-linear.is-admin .so-info,
  body.theme-linear.is-admin .so-info.slim,
  body.theme-linear.is-admin .grid.three,
  body.theme-linear.is-admin .so-detail-body .grid{grid-template-columns:1fr!important}
  body.theme-linear.is-admin .so-summary{flex-direction:column!important;align-items:flex-start!important;gap:8px!important}
  body.theme-linear.is-admin .so-summary-meta{text-align:left!important}
  body.theme-linear.is-admin .client-file-box{flex-direction:column!important;align-items:flex-start!important}
}

/* ========== 云更新移动端彻底修复 ========== */
@media (max-width:900px){
  /* 容器宽度限制，防横向溢出 */
  body.theme-linear.is-admin .cloud-wrap,
  body.theme-linear.is-admin .cloud-card,
  body.theme-linear.is-admin .so-manage-card,
  body.theme-linear.is-admin .cloud-current,
  body.theme-linear.is-admin .storage-quota-card,
  body.theme-linear.is-admin .device-stats-card,
  body.theme-linear.is-admin .app-notice-card{
    max-width:100%!important;
    min-width:0!important;
  }
  /* 所有网格单列 */
  body.theme-linear.is-admin .grid,
  body.theme-linear.is-admin .grid.two,
  body.theme-linear.is-admin .grid.three,
  body.theme-linear.is-admin .grid.two-col,
  body.theme-linear.is-admin .so-info,
  body.theme-linear.is-admin .so-info.slim,
  body.theme-linear.is-admin .cloud-grid{
    grid-template-columns:1fr!important;
  }
  /* 表格、代码块横向滚动 */
  body.theme-linear.is-admin .device-stats-card table,
  body.theme-linear.is-admin .cloud-code,
  body.theme-linear.is-admin pre{
    max-width:100%!important;
    overflow-x:auto!important;
  }
  /* 长代码换行 */
  body.theme-linear.is-admin .so-kv code,
  body.theme-linear.is-admin .client-file-main code,
  body.theme-linear.is-admin .cloud-project-card strong,
  body.theme-linear.is-admin .cloud-project-card small{
    word-break:break-all!important;
    overflow-wrap:anywhere!important;
  }
  /* 项目卡片自适应 */
  body.theme-linear.is-admin .cloud-project-card{
    min-width:0!important;
    flex:1 1 150px!important;
    max-width:100%!important;
  }
  body.theme-linear.is-admin .cloud-projects{
    gap:8px!important;
  }
  /* 顶部/当前应用 竖排 */
  body.theme-linear.is-admin .cloud-current{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:8px!important;
  }
  body.theme-linear.is-admin .notice-head{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:8px!important;
  }
  body.theme-linear.is-admin .so-count-pill{margin-top:0!important}
}

/* ========== 侧边栏底部导航细节修复 ========== */
@media (max-width:760px){
  body.theme-linear.is-admin .sidebar{
    height:auto!important;
    min-height:58px!important;
    padding:6px 8px!important;
  }
  body.theme-linear.is-admin .side-nav{
    gap:4px!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.theme-linear.is-admin .side-link,
  body.theme-linear.is-admin .side-link:nth-child(n+7){
    min-width:52px!important;
    width:52px!important;
    height:48px!important;
    min-height:48px!important;
    flex:0 0 52px!important;
    gap:4px!important;
    padding:3px 2px!important;
    border-radius:8px!important;
  }
  body.theme-linear.is-admin .side-link .nav-label{
    font-size:11px!important;
    max-width:50px!important;
  }
  body.theme-linear.is-admin .side-link .nav-icon{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
  }
  /* active：背景高亮 + 顶部短条（避免底部条被裁剪） */
  body.theme-linear.is-admin .side-link.active{
    background:#f0f0f0!important;
    border-color:#e0e0e0!important;
  }
  body.theme-linear.is-admin .side-link.active::after{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    top:0!important;
    bottom:auto!important;
    height:2px!important;
    width:auto!important;
    border-radius:999px!important;
    background:#111!important;
  }
  body.theme-linear.is-admin .container{padding-bottom:84px!important}
}

/* ========== 侧边栏导航文字强制显示（覆盖 display:none） ========== */
body.theme-linear.is-admin .sidebar .side-link .nav-label{
  display:block!important;
}
@media (max-width:760px){
  body.theme-linear.is-admin .sidebar .side-link .nav-label,
  body.theme-linear.is-admin .sidebar .side-link:nth-child(-n+6) .nav-label{
    display:block!important;
    font-size:11px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    max-width:50px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}

/* ========== 移动端侧边栏：强制所有项「图标上+文字下」 ========== */
@media (max-width:760px){
  body.theme-linear.is-admin .sidebar .side-link,
  body.theme-linear.is-admin .sidebar .side-link:nth-child(-n+6),
  body.theme-linear.is-admin .sidebar .side-link:nth-child(n+7){
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:4px!important;
    width:52px!important;
    min-width:52px!important;
    height:48px!important;
    min-height:48px!important;
    flex:0 0 52px!important;
    padding:3px 2px!important;
  }
  body.theme-linear.is-admin .sidebar .side-link .nav-label{
    display:block!important;
    font-size:11px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    max-width:50px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.theme-linear.is-admin .sidebar .side-link .nav-icon{
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
  }
}
