*{box-sizing:border-box}
:root{
  --text:#111827;
  --text-soft:#374151;
  --muted:#6b7280;
  --line:rgba(17,24,39,.10);
  --line-strong:rgba(17,24,39,.16);
  --glass:rgba(255,255,255,.36);
  --glass-strong:rgba(255,255,255,.52);
  --glass-soft:rgba(255,255,255,.28);
  --shadow:0 24px 70px rgba(15,23,42,.12);
  --shadow-soft:0 12px 34px rgba(15,23,42,.08);
  --radius:24px;
  --radius-sm:16px;
  --sidebar-w:260px;
  --primary:#111827;
  --blue:#2563eb;
  --green:#059669;
  --red:#dc2626;
  --orange:#d97706;
}
html{
  min-height:100%;
  margin:0;
  background:#f5f6f8;
  overscroll-behavior:none;
  overflow-x:hidden;
}
body{
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  margin:0;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
  line-height:1.6;
  overflow-x:hidden;
  overscroll-behavior:none;
  background:transparent;
  position:relative;
  isolation:isolate;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* 固定背景层：向外扩大，避免上下拉/高斯模糊边缘露白 */
body::before{
  content:"";
  position:fixed;
  inset:-70px;
  z-index:-3;
  pointer-events:none;
  background-image:var(--gx-bg-image),linear-gradient(135deg,#f8fafc 0%,#e5e7eb 100%);
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  filter:saturate(1.08) brightness(1.06);
  transform:translateZ(0) scale(1.03);
  will-change:transform;
}
/* 不再用整页白色蒙版挡背景，只保留很淡的边缘提亮 */
body::after{
  content:"";
  position:fixed;
  inset:-70px;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 8%,rgba(255,255,255,.18),rgba(255,255,255,0) 34%),
    linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
}
a{color:#1d4ed8;text-decoration:none;transition:.16s ease}
a:hover{color:#111827}
button,input,select,textarea{font:inherit}

/* 后台布局：左侧纵向导航 + 右侧内容区 */
.app-frame{
  width:min(1480px,calc(100% - 32px));
  min-height:calc(100vh - 32px);
  min-height:calc(100dvh - 32px);
  margin:16px auto;
  display:grid;
  grid-template-columns:var(--sidebar-w) minmax(0,1fr);
  gap:18px;
}
.sidebar{
  position:sticky;
  top:16px;
  height:calc(100vh - 32px);
  height:calc(100dvh - 32px);
  display:flex;
  flex-direction:column;
  padding:18px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:28px;
  background:var(--glass);
  box-shadow:var(--shadow);
  backdrop-filter:blur(28px) saturate(155%);
  -webkit-backdrop-filter:blur(26px) saturate(150%);
}
.side-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 8px 18px;
  margin-bottom:14px;
  border-bottom:1px solid var(--line);
}
.brand-mark{
  width:36px;
  height:36px;
  border-radius:12px;
  display:inline-block;
  background:linear-gradient(135deg,#ffffff,#dbe2ea);
  border:1px solid rgba(17,24,39,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 12px 24px rgba(15,23,42,.08);
}
.side-brand strong{display:block;color:#111827;font-size:18px;line-height:1.12;letter-spacing:.01em}
.side-brand small{display:block;color:#6b7280;font-size:12px;margin-top:4px}
.side-nav{display:flex;flex-direction:column;gap:8px;padding:2px 0}
.side-link{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:0 14px;
  border-radius:16px;
  color:#374151;
  font-weight:800;
  border:1px solid transparent;
  background:transparent;
}
.side-link::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:#cbd5e1;
  transition:.16s ease;
}
.side-link:hover{
  color:#111827;
  background:rgba(255,255,255,.62);
  border-color:rgba(17,24,39,.08);
}
.side-link.active{
  color:#111827;
  background:rgba(255,255,255,.88);
  border-color:rgba(17,24,39,.10);
  box-shadow:var(--shadow-soft);
}
.side-link.active::before{background:#111827;box-shadow:0 0 0 4px rgba(17,24,39,.08)}
.side-bottom{margin-top:auto;display:grid;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.user-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  background:rgba(255,255,255,.58);
}
.avatar{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  font-weight:900;
}
.user-card strong{display:block;color:#111827;line-height:1.1}
.user-card small{display:block;color:#6b7280;font-size:12px;margin-top:4px}
.logout-link{
  display:block;
  text-align:center;
  padding:10px 12px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  background:rgba(255,255,255,.56);
  color:#374151;
  font-weight:800;
}
.logout-link:hover{background:#fff;color:#dc2626;border-color:rgba(220,38,38,.18)}

.workspace{min-width:0;display:flex;flex-direction:column;gap:16px}
.workspace-top{
  position:sticky;
  top:16px;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:76px;
  padding:18px 22px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:28px;
  background:var(--glass);
  box-shadow:var(--shadow);
  backdrop-filter:blur(28px) saturate(155%);
  -webkit-backdrop-filter:blur(26px) saturate(150%);
}
.workspace-top h1{margin:0;color:#111827;font-size:28px;line-height:1.18;letter-spacing:-.02em}
.top-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.top-user{display:inline-flex;align-items:center;min-height:36px;padding:0 13px;border-radius:999px;background:rgba(255,255,255,.70);border:1px solid rgba(17,24,39,.08);color:#374151;font-weight:800}
.container{width:100%;margin:0;padding:0 0 18px}
.container>h2:first-child{display:none}

/* 登录/注册 */
.auth-shell{
  width:min(520px,calc(100% - 32px));
  min-height:100vh;
  min-height:100dvh;
  margin:0 auto;
  display:grid;
  place-items:center;
  padding:24px 0;
}
.auth-panel{
  width:100%;
  border:1px solid rgba(255,255,255,.76);
  border-radius:30px;
  background:rgba(255,255,255,.42);
  box-shadow:var(--shadow);
  backdrop-filter:blur(30px) saturate(150%);
  -webkit-backdrop-filter:blur(30px) saturate(150%);
  padding:28px;
}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.auth-brand strong{font-size:20px;color:#111827}
.auth-panel .card{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.auth-panel h2{font-size:28px;margin:0 0 20px;color:#111827}

/* 通用组件 */
h1,h2,h3{color:#111827;margin-top:0}
h2{font-size:26px;margin-bottom:16px}
h3{font-size:18px;margin-bottom:14px}
.hero,.card,.stat{
  position:relative;
  border:1px solid rgba(255,255,255,.72);
  border-radius:var(--radius);
  background:var(--glass);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(24px) saturate(150%);
  -webkit-backdrop-filter:blur(24px) saturate(150%);
  overflow:hidden;
}
.hero{padding:24px;margin-bottom:16px}
.hero h1{margin:0 0 8px;font-size:30px;line-height:1.2;color:#111827}
.hero p,.help,.muted{color:var(--muted)}
.card{padding:22px;margin-bottom:16px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:16px}
.stat{padding:18px}
.stat span{display:block;color:#6b7280;font-weight:800}
.stat strong{display:block;margin-top:8px;color:#111827;font-size:32px;line-height:1.1}

.form-row{margin-bottom:15px}
.form-row label{display:block;margin-bottom:7px;color:#374151;font-weight:800}
input,select,textarea{
  width:100%;
  padding:12px 13px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:14px;
  outline:none;
  color:#111827;
  background:rgba(255,255,255,.54);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
  transition:.16s ease;
}
textarea{min-height:120px;resize:vertical}
input::placeholder,textarea::placeholder{color:#9ca3af}
input:focus,select:focus,textarea:focus{border-color:rgba(17,24,39,.26);box-shadow:0 0 0 4px rgba(17,24,39,.08),inset 0 1px 0 rgba(255,255,255,.80)}
select option{background:#fff;color:#111827}
input[disabled],button[disabled]{opacity:.55;cursor:not-allowed}

.btn,button{
  appearance:none;
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  border-radius:14px;
  padding:10px 16px;
  color:#fff;
  background:#111827;
  cursor:pointer;
  text-decoration:none;
  font-weight:850;
  box-shadow:0 14px 28px rgba(17,24,39,.12);
  transition:.16s ease;
}
.btn:hover,button:hover{transform:translateY(-1px);background:#000;color:#fff}
.btn.secondary,button.secondary{background:rgba(255,255,255,.54);color:#374151;border:1px solid rgba(17,24,39,.10);box-shadow:none}
.btn.secondary:hover,button.secondary:hover{background:#fff;color:#111827}
.btn.danger,button.danger{background:#dc2626}
.btn.warn,button.warn{background:#d97706}
.btn.ok,button.ok{background:#059669}
.btn.small,button.small{min-height:36px;padding:7px 12px;border-radius:12px;font-size:13px}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.table-wrap{overflow:auto;border:1px solid rgba(17,24,39,.08);border-radius:18px;background:rgba(255,255,255,.46)}
.table{width:100%;border-collapse:separate;border-spacing:0;background:transparent}
.table th,.table td{padding:12px 13px;text-align:left;border-bottom:1px solid rgba(17,24,39,.08);white-space:nowrap;color:#374151}
.table th{position:sticky;top:0;background:rgba(255,255,255,.88);color:#111827;font-weight:900;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.table tr:hover td{background:rgba(255,255,255,.58)}
.table tr:last-child td{border-bottom:0}
.card.table-wrap{padding:0}
code{background:rgba(17,24,39,.06);border:1px solid rgba(17,24,39,.08);padding:3px 7px;border-radius:8px;color:#111827}
.codebox{white-space:pre-wrap;background:rgba(255,255,255,.58);color:#111827;padding:15px;border-radius:16px;overflow:auto;border:1px solid rgba(17,24,39,.08)}
.badge{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:12px;background:rgba(17,24,39,.06);border:1px solid rgba(17,24,39,.08);color:#374151}
.badge.active{background:rgba(5,150,105,.10);color:#047857}.badge.disabled{background:rgba(220,38,38,.10);color:#b91c1c}.badge.pending{background:rgba(217,119,6,.12);color:#b45309}
.alert{border-radius:16px;padding:13px 15px;margin-bottom:14px;border:1px solid rgba(255,255,255,.72);background:rgba(255,255,255,.54);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:var(--shadow-soft);color:#374151}
.alert.success{border-color:rgba(5,150,105,.18);color:#047857}.alert.error{border-color:rgba(220,38,38,.18);color:#b91c1c}.alert.info{border-color:rgba(37,99,235,.18);color:#1d4ed8}
.captcha-line{display:flex;gap:10px;align-items:center}.captcha-line img{width:136px;height:44px;border:1px solid rgba(17,24,39,.10);border-radius:14px;cursor:pointer;background:#fff}
details summary{list-style:none;cursor:pointer}details summary::-webkit-details-marker{display:none}details[open]>div,details[open]>form{border:1px solid rgba(17,24,39,.08);border-radius:16px;background:rgba(255,255,255,.62)}
body.is-admin .card[style*="max-width"]{max-width:none!important;margin-bottom:16px!important}

@media(max-width:980px){
  .app-frame{width:min(100% - 20px,760px);display:block;margin:10px auto;min-height:calc(100dvh - 20px)}
  .sidebar{position:relative;top:auto;height:auto;margin-bottom:14px}
  .side-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .side-bottom{margin-top:16px}
  .workspace-top{position:relative;top:auto;align-items:flex-start;flex-direction:column}
  .split{grid-template-columns:1fr}.captcha-line{align-items:stretch;flex-direction:column}.captcha-line img{width:100%}
}
@media(max-width:560px){
  .side-nav{grid-template-columns:1fr}.workspace-top h1{font-size:24px}.card{padding:18px}.grid,.stat-grid{grid-template-columns:1fr}.auth-shell{width:min(100% - 20px,520px);padding:10px 0}.auth-panel{border-radius:24px;padding:22px}.top-actions{width:100%}.top-actions .btn,.top-actions .top-user{flex:1;text-align:center;justify-content:center}
}


/* V10 卡密/项目界面补充 */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.page-head h2{margin:0 0 6px}.page-head p{margin:0}
.compact-card{padding:14px;margin-bottom:12px}
.create-card{background:rgba(255,255,255,.34)!important}
.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.section-title-row h3{margin:0 0 4px}.section-title-row p{margin:0}
.two-col{grid-template-columns:repeat(2,minmax(230px,1fr))}
.project-create-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
.project-edit-grid{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:start}
.project-image-picker{display:grid;gap:12px;align-content:start;justify-items:center;padding:16px;border:1px solid rgba(255,255,255,.42);border-radius:22px;background:rgba(255,255,255,.24)}
.project-image-picker.compact{padding:12px}
.project-cover{width:150px;height:150px;border-radius:28px;overflow:hidden;border:1px solid rgba(255,255,255,.60);background:rgba(255,255,255,.40);box-shadow:0 20px 48px rgba(15,23,42,.10);display:grid;place-items:center}
.project-image-picker.compact .project-cover{width:120px;height:120px;border-radius:24px}
.project-cover img{width:100%;height:100%;object-fit:cover;display:block}.project-cover-text span{font-size:28px;font-weight:900;color:#111827;letter-spacing:.02em}
.project-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:16px}.project-item{margin:0}.project-item-head{display:flex;gap:16px;align-items:center}.project-item .project-cover{width:96px;height:96px;border-radius:22px;flex:0 0 auto}.project-meta h3{margin:0 0 6px}.project-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.mini-tag{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;background:rgba(255,255,255,.50);border:1px solid rgba(17,24,39,.08);color:#374151}.project-note{margin:14px 0 0;color:#4b5563}.project-manage-box{margin-top:14px}.project-edit-panel{padding:16px;margin-top:12px}.lua-config-box{margin-top:14px}.lua-config-box textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;min-height:128px}.danger-actions{margin-top:14px;padding-top:14px;border-top:1px solid rgba(17,24,39,.08)}
.check-input-wrap,.secret-input-wrap{display:flex;gap:8px;align-items:center}.check-input-wrap input,.secret-input-wrap input{min-width:0}.app-id-check{white-space:nowrap;min-width:100px;text-align:center;border-radius:999px;padding:9px 10px;font-size:13px;font-weight:900;border:1px solid rgba(17,24,39,.08);background:rgba(255,255,255,.52);color:#6b7280}.app-id-check.ok{color:#047857;background:rgba(5,150,105,.10);border-color:rgba(5,150,105,.18)}.app-id-check.bad{color:#b91c1c;background:rgba(220,38,38,.10);border-color:rgba(220,38,38,.18)}.app-id-check.wait{color:#6b7280}
.project-tabs{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch}.project-tab{min-width:160px;display:grid;gap:2px;padding:12px 14px;border-radius:18px;border:1px solid rgba(17,24,39,.08);background:rgba(255,255,255,.34);color:#111827;font-weight:900}.project-tab small{display:block;color:#6b7280;font-size:12px;font-weight:700}.project-tab span{margin-top:4px;color:#374151;font-size:12px;font-weight:800}.project-tab.active{background:rgba(255,255,255,.68);box-shadow:var(--shadow-soft);border-color:rgba(17,24,39,.16)}
.card-toolbar{justify-content:space-between}.batch-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.check-all{display:inline-flex;align-items:center;gap:8px;font-weight:900;color:#374151}.check-all input,.row-check{width:auto;box-shadow:none}.cards-table-card{padding:0}.cards-table th,.cards-table td{font-size:13px}.generated-keys{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;min-height:160px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px}
.detail-settings{grid-column:1/-1}.detail-settings summary{width:max-content}.detail-settings-body{margin-top:12px;padding:14px}.detail-form .count-field,.detail-form .bind-ip-field,.detail-form .allow-ip-field{transition:.16s ease}
.badge.pending{background:rgba(37,99,235,.10);color:#1d4ed8;border-color:rgba(37,99,235,.18)}
.table td .badge{margin:2px 0}
@media(max-width:860px){.page-head{display:grid}.project-create-grid,.project-edit-grid{grid-template-columns:1fr}.project-board{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.project-image-picker{justify-items:start}.pagination{align-items:flex-start;flex-direction:column}.card-toolbar{justify-content:flex-start}.project-tab{min-width:100%;}.check-input-wrap,.secret-input-wrap{align-items:stretch;flex-direction:column}.app-id-check{width:100%}}

/* v11 fix: error panel */
.code-box{white-space:pre-wrap;word-break:break-word;background:rgba(255,255,255,.72);border:1px solid rgba(15,23,42,.1);border-radius:14px;padding:14px;color:#111827;line-height:1.7;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;max-height:420px;overflow:auto}

/* V13：简约白色玻璃、允许页面上下滚动、取消整页白雾遮罩 */
html{
  height:auto;
  min-height:100%;
  overflow-x:hidden;
  overflow-y:auto;
  background:#e5e7eb;
}
body{
  height:auto;
  min-height:100vh;
  min-height:100dvh;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:none;
}
body::after{display:none!important}
body::before{
  inset:-120px;
  filter:saturate(1.04) brightness(1.02);
  transform:translateZ(0) scale(1.05);
}
:root{
  --glass:rgba(255,255,255,.26);
  --glass-strong:rgba(255,255,255,.38);
  --glass-soft:rgba(255,255,255,.18);
}
.app-frame{
  min-height:auto;
  align-items:start;
  padding-bottom:28px;
}
.workspace{min-height:0;overflow:visible}
.container{padding-bottom:48px;overflow:visible}
.card,.sidebar,.workspace-top,.auth-panel{
  background:rgba(255,255,255,.30);
  border-color:rgba(255,255,255,.56);
  backdrop-filter:blur(22px) saturate(135%);
  -webkit-backdrop-filter:blur(22px) saturate(135%);
}
.create-card,.clean-create-card{background:rgba(255,255,255,.22)!important}
.table-wrap,input,select,textarea,.user-card,.logout-link,.project-image-picker,.mini-tag,.project-tab,.alert{
  background:rgba(255,255,255,.42);
}
.clean-head{margin-bottom:14px}
.clean-head h2{margin-bottom:0}
.project-details{margin:8px 0 14px}
.project-details .detail-settings-body{background:rgba(255,255,255,.28)!important}
.app-id-check{min-width:46px;padding:9px 12px;font-size:16px}
.secret-input-wrap input{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}
.page-head p,.section-title-row p,.project-image-picker p{display:none!important}
@media(max-width:980px){
  .app-frame{min-height:auto;padding-bottom:20px}
  .sidebar{height:auto}
}


/* V14：整页拖动滚动，不使用侧边内部下拉条 */
html{
  height:auto!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:auto!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}
body{
  height:auto!important;
  min-height:100vh!important;
  min-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
  overscroll-behavior:auto!important;
  touch-action:pan-y!important;
}
.app-frame{
  height:auto!important;
  min-height:auto!important;
  overflow:visible!important;
  align-items:start!important;
}
.sidebar{
  position:sticky!important;
  top:16px!important;
  height:auto!important;
  min-height:calc(100vh - 32px)!important;
  min-height:calc(100dvh - 32px)!important;
  max-height:none!important;
  overflow:visible!important;
}
.workspace,
.container,
.card,
.hero,
.auth-shell,
.auth-panel{
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}
.workspace-top{
  position:sticky!important;
  top:16px!important;
}
.table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
  max-height:none!important;
}
.codebox,
.code-box{
  overflow-x:auto!important;
  overflow-y:visible!important;
  max-height:none!important;
}
.table-wrap::-webkit-scrollbar,
.codebox::-webkit-scrollbar,
.code-box::-webkit-scrollbar{
  height:0!important;
  width:0!important;
  display:none!important;
}
.table-wrap,.codebox,.code-box{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
@media(max-width:980px){
  .sidebar{position:relative!important;top:auto!important;min-height:auto!important;}
  .workspace-top{position:relative!important;top:auto!important;}
}

/* v16 logo */
.brand-logo{
  width:36px;
  height:36px;
  border-radius:12px;
  object-fit:cover;
  display:inline-block;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(17,24,39,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 12px 24px rgba(15,23,42,.08);
  flex:0 0 auto;
}
.auth-brand .brand-logo{width:42px;height:42px;border-radius:14px}

/* v17 bound devices */
.bound-device-cell{
  min-width:160px;
  vertical-align:top;
}
.device-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
.device-chip,
.device-more{
  display:inline-flex;
  align-items:center;
  max-width:220px;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.52);
  border:1px solid rgba(15,23,42,.10);
  color:#334155;
  font-size:12px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.device-more{
  background:rgba(15,23,42,.06);
  color:#64748b;
}
.cards-table th:nth-child(8),
.cards-table td:nth-child(8){
  min-width:170px;
}

/* v18 logo/fav icon display */
.side-brand .brand-logo,
.auth-brand .brand-logo{
  display:block;
  object-fit:cover;
  object-position:center;
}
.side-brand .brand-logo{
  width:42px;
  height:42px;
  border-radius:14px;
}
.auth-brand .brand-logo{
  width:46px;
  height:46px;
  border-radius:16px;
}
.brand-logo{
  background:rgba(255,255,255,.72);
}

/* v22 quota and announcement */
.quota-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.quota-card > div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.quota-card span{
  color:rgba(31,41,55,.70);
  font-size:13px;
}
.detail-settings textarea,
.project-form textarea,
.card-add-form textarea{
  min-height:92px;
  resize:vertical;
}
button:disabled,
.btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
}

/* v24 用户管理布局修复 */
.users-overview{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-bottom:14px;
}
.user-mini-stat{
  padding:16px;
  border:1px solid rgba(255,255,255,.58);
  border-radius:22px;
  background:rgba(255,255,255,.26);
  backdrop-filter:blur(20px) saturate(135%);
  -webkit-backdrop-filter:blur(20px) saturate(135%);
  box-shadow:0 12px 34px rgba(15,23,42,.08);
}
.user-mini-stat span{
  display:block;
  color:#6b7280;
  font-size:13px;
  font-weight:800;
}
.user-mini-stat strong{
  display:block;
  margin-top:6px;
  color:#111827;
  font-size:28px;
  line-height:1.1;
}
.user-list{
  display:grid;
  gap:6px;
  min-width:0;
  overflow:hidden;
}
.user-admin-card{
  padding:0;
  overflow:hidden!important;
}
.user-admin-main{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1.6fr) auto;
  gap:18px;
  align-items:center;
  padding:18px;
  min-width:0;
}
/* 紧凑行式卡片 */
.user-row-card{padding:0;overflow:hidden!important}
.user-row-main{display:flex;align-items:center;gap:12px;padding:6px 14px;min-width:0}
.user-row-left{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 280px}
.user-letter-sm{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:0 0 auto;background:#111827;color:#fff;font-size:13px;font-weight:900}
.user-row-info{min-width:0;overflow:hidden}
.user-row-name{display:flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}
.user-row-name strong{color:#111827;font-weight:900}
.user-row-nick{color:#9ca3af;font-size:12px;white-space:nowrap}
.user-row-name .badge{font-size:10px;padding:1px 6px;border-radius:99px}
.user-row-sub{display:flex;align-items:center;gap:0;font-size:11px;color:#9ca3af;margin-top:1px}
.user-row-sub span{white-space:nowrap}
.user-row-dot::before{content:"·";margin:0 5px;color:#d1d5db}
.user-row-stats{display:flex;align-items:center;gap:10px;flex-shrink:0}
.user-row-stat{font-size:12px;color:#6b7280;white-space:nowrap}
.user-row-stat b{color:#111827;font-weight:900}
.user-row-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.user-identity{
  min-width:0;
  display:flex;
  gap:12px;
  align-items:center;
}
.user-letter{
  width:48px;
  height:48px;
  border-radius:18px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#111827;
  color:#fff;
  font-size:20px;
  font-weight:900;
  box-shadow:0 14px 30px rgba(17,24,39,.12);
}
.user-identity strong{
  display:block;
  color:#111827;
  font-size:17px;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.user-identity small{
  display:block;
  margin-top:4px;
  color:#6b7280;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.user-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}
.user-quota-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.quota-box{
  padding:12px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  background:rgba(255,255,255,.36);
}
.quota-box-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:#374151;
  font-weight:900;
}
.quota-box-title small{
  color:#6b7280;
  font-weight:800;
}
.quota-num{
  display:flex;
  align-items:flex-end;
  gap:6px;
  margin-bottom:9px;
}
.quota-num strong{
  font-size:24px;
  line-height:1;
  color:#111827;
}
.quota-num span{
  color:#6b7280;
  font-size:13px;
}
.quota-bar{
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(17,24,39,.08);
}
.quota-bar i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#111827;
}
.user-card-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.user-edit-panel{
  margin:0 18px 18px;
  padding:16px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:22px;
  background:rgba(255,255,255,.30);
}
.user-edit-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  min-width:0;
}
.user-edit-grid .form-row{margin:0}
.user-quick-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(17,24,39,.08);
}
.user-quick-row form{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.user-quick-row input{
  width:130px;
}
.user-reset-form{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.user-reset-form .form-row{margin:0;min-width:220px}
.empty-card{
  padding:28px;
  text-align:center;
  color:#6b7280;
}
@media(max-width:1200px){
  .user-admin-main{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .user-card-actions{justify-content:flex-start}
  .user-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  .user-row-main{flex-direction:column;align-items:stretch;gap:8px}
  .user-row-stats{flex-wrap:wrap}
  .user-row-actions{justify-content:flex-end}
}
@media(max-width:640px){
  .user-quota-grid,.user-edit-grid{grid-template-columns:1fr}
  .user-admin-main{padding:14px;gap:14px}
  .user-edit-panel{margin:0 14px 14px;padding:14px}
  .user-quick-row form,.user-reset-form{width:100%}
  .user-quick-row input,.user-reset-form .form-row{width:100%;min-width:0}
  .user-quick-row button,.user-reset-form button{width:100%}
}

/* v33 时间卡生成样式 */
.duration-line{display:flex;gap:10px;align-items:center;width:100%}
.duration-line input{max-width:120px;flex:0 0 120px}
.duration-line select{flex:1;min-width:120px}
@media (max-width:720px){.duration-line{gap:8px}.duration-line input{max-width:92px;flex-basis:92px}}

/* v34 时间卡单位按钮 */
.duration-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.duration-line input[type=number]{max-width:120px}
.duration-unit-pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.duration-unit-pills label{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid rgba(255,255,255,.38);border-radius:999px;background:rgba(255,255,255,.46);backdrop-filter:blur(12px);cursor:pointer;font-size:13px;white-space:nowrap}
.duration-unit-pills input{accent-color:#111827}
.duration-unit-pills label:has(input:checked){background:rgba(255,255,255,.82);border-color:rgba(17,24,39,.25);box-shadow:0 8px 22px rgba(15,23,42,.08)}

/* v36 clean card creation page */
.clean-create-card{max-width:980px;margin:0 auto 32px;padding:22px;background:rgba(255,255,255,.72)!important;border:1px solid rgba(255,255,255,.58)!important;box-shadow:0 18px 50px rgba(15,23,42,.10)!important;}
.clean-card-form{display:flex;flex-direction:column;gap:16px;}
.create-section{border:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.50);border-radius:18px;padding:16px;}
.create-section .section-title{font-size:15px;font-weight:800;color:#111827;margin:0 0 12px;}
.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.duration-clean-row{display:grid;grid-template-columns:180px 1fr;gap:14px;align-items:end;}
.clean-create-card .form-row{margin:0;}
.clean-create-card label{display:block;margin:0 0 8px;font-weight:700;color:#111827;font-size:14px;}
.clean-create-card input,.clean-create-card select,.clean-create-card textarea{width:100%;height:44px;border-radius:12px;border:1px solid rgba(15,23,42,.14);background:rgba(255,255,255,.78);padding:0 12px;color:#111827;outline:none;box-sizing:border-box;}
.clean-create-card textarea{height:90px;padding:12px;resize:vertical;}
.clean-create-card input:focus,.clean-create-card select:focus,.clean-create-card textarea:focus{border-color:rgba(37,99,235,.55);box-shadow:0 0 0 4px rgba(37,99,235,.10);}
.clean-create-card details summary{cursor:pointer;font-weight:800;color:#111827;list-style:none;}
.clean-create-card details summary::-webkit-details-marker{display:none;}
.clean-create-card details summary:after{content:'展开';float:right;color:#6b7280;font-weight:600;font-size:13px;}
.clean-create-card details[open] summary:after{content:'收起';}
.clean-create-card .detail-settings-body{margin-top:14px;}
.create-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;padding-top:4px;}
.create-actions .btn,.create-actions button{min-width:110px;}
@media (max-width: 760px){.clean-create-card{padding:14px;margin:0 0 22px}.form-grid-2,.duration-clean-row{grid-template-columns:1fr}.create-actions{justify-content:stretch}.create-actions .btn,.create-actions button{width:100%;text-align:center}}


/* v40：背景同一浏览器标签页内固定，切换页面不变化；增强灰字对比但保持简约 */
:root{
  --text:#0f172a;
  --text-soft:#1f2937;
  --muted:#3f4b5f;
  --line:rgba(15,23,42,.13);
  --line-strong:rgba(15,23,42,.20);
  --glass:rgba(255,255,255,.34);
  --glass-strong:rgba(255,255,255,.48);
  --glass-soft:rgba(255,255,255,.24);
}
body{color:var(--text);}
body::before{transition:none!important;}
body.bg-ready::before{transition:none!important;}
.side-brand small,
.user-card small,
.top-user,
.hero p,
.help,
.muted,
.page-head p,
.section-title-row p,
.project-note,
.project-tab small,
.project-tab span,
.mini-tag,
.quota-box-title small,
.quota-num span,
.user-mini-stat span,
.user-identity small,
.form-tip,
.tip,
small{
  color:#3f4b5f!important;
}
.side-link,
.logout-link,
label,
.table td,
.table th,
table td,
table th,
input,
select,
textarea{
  color:#111827;
}
input::placeholder,
textarea::placeholder{
  color:#64748b;
  opacity:1;
}
.card,.sidebar,.workspace-top,.auth-panel,.hero,.stat{
  background:rgba(255,255,255,.36);
  border-color:rgba(255,255,255,.66);
}
.table-wrap,
input,select,textarea,
.user-card,.logout-link,
.project-image-picker,.mini-tag,.project-tab,.alert,.quota-box,.create-section{
  background:rgba(255,255,255,.50);
  border-color:rgba(15,23,42,.12);
}
.workspace-top h1,
h1,h2,h3,
.side-brand strong,
.auth-brand strong,
.user-card strong,
.stat strong,
.user-mini-stat strong,
.quota-num strong,
.project-meta h3{
  color:#0f172a!important;
}
.table-wrap table,
table{
  color:#111827;
}
.badge,
.mini-tag,
.device-chip,
.device-more{
  color:#1f2937;
  background:rgba(255,255,255,.62);
  border-color:rgba(15,23,42,.12);
}
.btn.secondary,
button.secondary,
a.btn.secondary{
  color:#1f2937;
  background:rgba(255,255,255,.58);
  border-color:rgba(15,23,42,.13);
}
/* 背景图保持清晰，不再被额外白层大面积遮住 */
body::after{display:none!important;}
@media (prefers-contrast: more){
  :root{--muted:#263244;--text-soft:#111827;}
  .card,.sidebar,.workspace-top,.auth-panel{background:rgba(255,255,255,.44);}
}

/* v41：同一会话固定背景 + 后台页面无整页刷新切换 + 文字对比增强 */
html.gx-bg-fixed body::before{transition:none!important;}
html.gx-ajax-loading .workspace{
  opacity:.88;
  transform:translateY(2px);
  transition:opacity .12s ease,transform .12s ease;
}
.workspace{
  transition:opacity .16s ease,transform .16s ease;
}
/* 背景更透，文字更清楚：不是加白色挡板，而是提高文字和控件自身对比 */
:root{
  --text:#0b1220;
  --text-soft:#172033;
  --muted:#253247;
  --glass:rgba(255,255,255,.30);
  --glass-strong:rgba(255,255,255,.42);
  --glass-soft:rgba(255,255,255,.20);
  --line:rgba(15,23,42,.16);
}
body{color:#0b1220!important;}
body::before{
  filter:saturate(1.06) brightness(1.02) contrast(1.02)!important;
}
.card,.sidebar,.workspace-top,.auth-panel,.hero,.stat{
  background:rgba(255,255,255,.30)!important;
  border-color:rgba(255,255,255,.58)!important;
  box-shadow:0 20px 56px rgba(15,23,42,.10)!important;
}
.table-wrap,input,select,textarea,.user-card,.logout-link,.project-image-picker,.mini-tag,.project-tab,.alert,.quota-box,.create-section,.user-edit-panel{
  background:rgba(255,255,255,.46)!important;
  border-color:rgba(15,23,42,.14)!important;
}
p,li,td,th,label,small,
.help,.muted,.form-tip,.tip,
.side-brand small,.user-card small,.project-note,.project-tab small,.project-tab span,.quota-box-title small,.quota-num span,.user-mini-stat span,.user-identity small{
  color:#253247!important;
  text-shadow:0 1px 0 rgba(255,255,255,.30);
}
h1,h2,h3,strong,.workspace-top h1,.side-brand strong,.auth-brand strong,.stat strong,.user-mini-stat strong,.quota-num strong{
  color:#0b1220!important;
  text-shadow:0 1px 0 rgba(255,255,255,.20);
}
.side-link,.logout-link,.btn.secondary,a.btn.secondary,button.secondary{
  color:#172033!important;
}
.side-link.active{
  background:rgba(255,255,255,.72)!important;
}
input::placeholder,textarea::placeholder{
  color:#526174!important;
  opacity:1!important;
}
.table-wrap table,table{color:#111827!important;}
.badge,.mini-tag,.device-chip,.device-more{
  color:#172033!important;
  background:rgba(255,255,255,.58)!important;
  border-color:rgba(15,23,42,.14)!important;
}
/* 使用 AJAX 切换时不要出现整页白屏闪动 */
.app-frame,.workspace,.container{backface-visibility:hidden;}

/* v42：每个账号独立页面喜好 + 背景模式 + 文字对比细化 */
body.pref-glass-clear .card,
body.pref-glass-clear .sidebar,
body.pref-glass-clear .workspace-top,
body.pref-glass-clear .auth-panel,
body.pref-glass-clear .hero,
body.pref-glass-clear .stat{
  background:rgba(255,255,255,.22)!important;
}
body.pref-glass-clear .table-wrap,
body.pref-glass-clear input,
body.pref-glass-clear select,
body.pref-glass-clear textarea,
body.pref-glass-clear .user-card,
body.pref-glass-clear .logout-link,
body.pref-glass-clear .project-image-picker,
body.pref-glass-clear .mini-tag,
body.pref-glass-clear .project-tab,
body.pref-glass-clear .alert,
body.pref-glass-clear .quota-box,
body.pref-glass-clear .create-section,
body.pref-glass-clear .user-edit-panel{
  background:rgba(255,255,255,.34)!important;
}
body.pref-glass-solid .card,
body.pref-glass-solid .sidebar,
body.pref-glass-solid .workspace-top,
body.pref-glass-solid .auth-panel,
body.pref-glass-solid .hero,
body.pref-glass-solid .stat{
  background:rgba(255,255,255,.48)!important;
}
body.pref-glass-solid .table-wrap,
body.pref-glass-solid input,
body.pref-glass-solid select,
body.pref-glass-solid textarea,
body.pref-glass-solid .user-card,
body.pref-glass-solid .logout-link,
body.pref-glass-solid .project-image-picker,
body.pref-glass-solid .mini-tag,
body.pref-glass-solid .project-tab,
body.pref-glass-solid .alert,
body.pref-glass-solid .quota-box,
body.pref-glass-solid .create-section,
body.pref-glass-solid .user-edit-panel{
  background:rgba(255,255,255,.62)!important;
}
body.pref-blur-soft .card,
body.pref-blur-soft .sidebar,
body.pref-blur-soft .workspace-top,
body.pref-blur-soft .auth-panel,
body.pref-blur-soft .hero,
body.pref-blur-soft .stat{
  backdrop-filter:blur(14px) saturate(128%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(128%)!important;
}
body.pref-blur-strong .card,
body.pref-blur-strong .sidebar,
body.pref-blur-strong .workspace-top,
body.pref-blur-strong .auth-panel,
body.pref-blur-strong .hero,
body.pref-blur-strong .stat{
  backdrop-filter:blur(34px) saturate(158%)!important;
  -webkit-backdrop-filter:blur(34px) saturate(158%)!important;
}
body.pref-contrast-high{
  --text:#07111f;
  --text-soft:#111827;
  --muted:#1f2937;
}
body.pref-contrast-high p,
body.pref-contrast-high li,
body.pref-contrast-high td,
body.pref-contrast-high th,
body.pref-contrast-high label,
body.pref-contrast-high small,
body.pref-contrast-high .help,
body.pref-contrast-high .muted,
body.pref-contrast-high .form-tip,
body.pref-contrast-high .tip,
body.pref-contrast-high .side-brand small,
body.pref-contrast-high .user-card small,
body.pref-contrast-high .project-note,
body.pref-contrast-high .project-tab small,
body.pref-contrast-high .project-tab span,
body.pref-contrast-high .quota-box-title small,
body.pref-contrast-high .quota-num span,
body.pref-contrast-high .user-mini-stat span,
body.pref-contrast-high .user-identity small{
  color:#182235!important;
  text-shadow:0 1px 0 rgba(255,255,255,.34);
}
body.pref-contrast-normal p,
body.pref-contrast-normal li,
body.pref-contrast-normal td,
body.pref-contrast-normal th,
body.pref-contrast-normal label,
body.pref-contrast-normal small,
body.pref-contrast-normal .help,
body.pref-contrast-normal .muted,
body.pref-contrast-normal .form-tip,
body.pref-contrast-normal .tip{
  color:#334155!important;
}
.appearance-layout{
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.appearance-preview-card{
  position:sticky;
  top:108px;
}
.appearance-preview{
  min-height:260px;
  border-radius:24px;
  overflow:hidden;
  padding:18px;
  display:flex;
  align-items:flex-end;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.50),0 16px 38px rgba(15,23,42,.12);
}
.appearance-preview-glass{
  width:100%;
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.38);
  border:1px solid rgba(255,255,255,.68);
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
}
.appearance-preview-glass strong{display:block;font-size:20px;color:#07111f!important;margin-bottom:4px}
.appearance-preview-glass span{display:block;color:#1f2937;font-size:13px;font-weight:700}
.appearance-current{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding:12px;border-radius:18px;background:rgba(255,255,255,.46);border:1px solid rgba(15,23,42,.12)}
.appearance-current span{color:#334155;font-weight:800}
.appearance-current strong{color:#07111f!important}
.appearance-form{margin-bottom:28px}
.appearance-section{padding:16px;border:1px solid rgba(15,23,42,.10);border-radius:20px;background:rgba(255,255,255,.28);margin-bottom:14px}
.appearance-section h3{margin:0 0 12px;font-size:16px}
.choice-grid{display:grid;gap:12px}
.choice-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.choice-card{position:relative;display:block;padding:14px;border-radius:18px;border:1px solid rgba(15,23,42,.12);background:rgba(255,255,255,.42);cursor:pointer;transition:.16s ease}
.choice-card:hover{background:rgba(255,255,255,.62);transform:translateY(-1px)}
.choice-card input{width:auto;margin:0 0 10px;box-shadow:none;accent-color:#111827}
.choice-card strong{display:block;color:#07111f!important;margin-bottom:4px}
.choice-card span{display:block;color:#334155;font-size:12px;font-weight:700;line-height:1.5}
.bg-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.bg-pick{display:block;position:relative;cursor:pointer;border:1px solid rgba(15,23,42,.12);border-radius:18px;padding:8px;background:rgba(255,255,255,.36);transition:.16s ease;overflow:hidden}
.bg-pick:hover{background:rgba(255,255,255,.58);transform:translateY(-1px)}
.bg-pick.active{border-color:rgba(17,24,39,.42);box-shadow:0 14px 34px rgba(15,23,42,.14);background:rgba(255,255,255,.68)}
.bg-pick input{position:absolute;opacity:0;pointer-events:none;width:auto}
.bg-thumb{display:block;height:94px;border-radius:14px;background-size:cover;background-position:center;border:1px solid rgba(255,255,255,.68);box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.bg-pick small{display:block;margin-top:7px;color:#253247!important;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}
.form-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.inline-form{margin:0}
@media(max-width:1040px){
  .appearance-layout{grid-template-columns:1fr}
  .appearance-preview-card{position:relative;top:auto}
  .choice-grid.three,.form-grid-3{grid-template-columns:1fr}
}
@media(max-width:560px){
  .bg-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .appearance-preview{min-height:210px}
}

/* V43 游客首页 */
body.is-public {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: rgba(17, 24, 39, .94);
}
body.is-public::before {
    position: fixed;
    inset: 0;
    content: "";
    background-image: var(--gx-bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3;
}
body.is-public::after {
    position: fixed;
    inset: 0;
    content: "";
    background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.05));
    z-index: -2;
    pointer-events: none;
}
.public-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 34px;
}
.glass-card {
    background: rgba(255,255,255,.58);
    border: 1px solid rgba(255,255,255,.62);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.public-nav {
    position: sticky;
    top: 16px;
    z-index: 30;
    border-radius: 24px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(15,23,42,.96);
    text-decoration: none;
    font-weight: 850;
    letter-spacing: .02em;
}
.public-logo {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15,23,42,.14);
}
.public-nav nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.public-nav nav a {
    color: rgba(31,41,55,.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 999px;
}
.public-nav nav a:hover { background: rgba(255,255,255,.62); color: rgba(15,23,42,.98); }
.public-nav .nav-pill {
    background: rgba(17, 24, 39, .9);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15,23,42,.18);
}
.public-nav .nav-pill:hover { background: rgba(17, 24, 39, .96); color: #fff; }
.public-main { padding-top: 28px; }
.public-hero {
    min-height: 430px;
    border-radius: 34px;
    padding: clamp(24px, 5vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
    align-items: center;
    gap: 34px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.68);
    color: rgba(55,65,81,.88);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
}
.hero-copy h1 {
    margin: 18px 0 14px;
    max-width: 760px;
    color: rgba(15,23,42,.98);
    font-size: clamp(34px, 6vw, 68px);
    line-height: .98;
    letter-spacing: -.06em;
}
.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(31,41,55,.84);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 600;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.hero-actions .btn { min-width: 132px; justify-content: center; }
.hero-panel { display: flex; justify-content: center; }
.mini-window {
    width: min(100%, 360px);
    border-radius: 28px;
    padding: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: inset 0 1px rgba(255,255,255,.7), 0 22px 50px rgba(15,23,42,.14);
}
.mini-head { display: flex; gap: 7px; padding: 2px 2px 16px; }
.mini-head i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(17,24,39,.22);
}
.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(15,23,42,.08);
}
.mini-row span { color: rgba(55,65,81,.76); font-weight: 700; }
.mini-row strong { color: rgba(15,23,42,.95); }
.public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.feature-card {
    min-height: 132px;
    border-radius: 26px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.feature-card strong {
    font-size: 19px;
    color: rgba(15,23,42,.96);
}
.feature-card span {
    color: rgba(31,41,55,.78);
    font-weight: 600;
    line-height: 1.65;
}
.public-flow {
    margin-top: 18px;
    border-radius: 30px;
    padding: 28px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.public-flow h2 {
    margin: 14px 0 0;
    color: rgba(15,23,42,.96);
    font-size: 28px;
    letter-spacing: -.03em;
}
.flow-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.flow-list div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.52);
    border: 1px solid rgba(255,255,255,.58);
}
.flow-list b {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17,24,39,.9);
    color: #fff;
    font-size: 13px;
}
.flow-list span { font-weight: 800; color: rgba(31,41,55,.88); }
.public-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 6px 0;
    color: rgba(31,41,55,.76);
    font-weight: 700;
}

@media (max-width: 820px) {
    .public-shell { width: min(100% - 22px, 1180px); padding-top: 12px; }
    .public-nav { position: relative; top: 0; align-items: flex-start; flex-direction: column; }
    .public-nav nav { justify-content: flex-start; }
    .public-hero { grid-template-columns: 1fr; border-radius: 28px; }
    .hero-copy h1 { font-size: clamp(34px, 12vw, 50px); }
    .public-grid { grid-template-columns: 1fr; }
    .public-flow { grid-template-columns: 1fr; }
    .flow-list { grid-template-columns: 1fr; }
}

/* v48：小图标导航、自适应修复、文字对比重做 */
:root{
  --sidebar-w:104px;
  --text:#0b1220;
  --text-soft:#172033;
  --muted:#273244;
  --line:rgba(15,23,42,.14);
  --glass:rgba(255,255,255,.34);
  --glass-strong:rgba(255,255,255,.46);
  --glass-soft:rgba(255,255,255,.24);
  --shadow:0 22px 58px rgba(15,23,42,.12);
  --shadow-soft:0 10px 28px rgba(15,23,42,.08);
}
body.is-admin{color:var(--text)!important}
body.is-admin::before{filter:saturate(1.04) brightness(1.02) contrast(1.03)!important}
body.is-admin .app-frame{
  width:min(1440px,calc(100% - 28px));
  grid-template-columns:var(--sidebar-w) minmax(0,1fr)!important;
  gap:16px;
}
body.is-admin .sidebar{
  padding:12px 10px!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.32)!important;
  border-color:rgba(255,255,255,.58)!important;
  box-shadow:var(--shadow)!important;
  overflow:visible!important;
}
body.is-admin .side-brand{
  justify-content:center;
  padding:6px 4px 14px!important;
  margin-bottom:10px!important;
}
body.is-admin .side-brand>div{display:none!important}
body.is-admin .side-brand .brand-logo,
body.is-admin .side-brand .brand-mark{
  width:48px!important;
  height:48px!important;
  border-radius:18px!important;
}
body.is-admin .side-nav{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  padding:0!important;
}
body.is-admin .side-link{
  min-height:68px!important;
  padding:8px 6px!important;
  border-radius:22px!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:6px!important;
  color:#1f2937!important;
  font-size:12px!important;
  line-height:1.1!important;
  font-weight:900!important;
  background:rgba(255,255,255,.24)!important;
  border:1px solid rgba(255,255,255,.24)!important;
  box-shadow:none!important;
}
body.is-admin .side-link::before{display:none!important}
body.is-admin .side-link:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.56)!important;
  border-color:rgba(15,23,42,.12)!important;
  color:#0b1220!important;
}
body.is-admin .side-link.active{
  background:rgba(255,255,255,.78)!important;
  border-color:rgba(15,23,42,.16)!important;
  color:#0b1220!important;
  box-shadow:0 14px 30px rgba(15,23,42,.10)!important;
}
body.is-admin .nav-icon{
  width:26px;
  height:26px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  color:currentColor;
}
body.is-admin .nav-icon svg{
  width:22px;
  height:22px;
  display:block;
  fill:currentColor;
}
body.is-admin .nav-label{
  display:block;
  max-width:72px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.is-admin .side-bottom{
  padding-top:10px!important;
  gap:10px!important;
}
body.is-admin .user-card{
  justify-content:center!important;
  padding:10px 6px!important;
  border-radius:22px!important;
  background:rgba(255,255,255,.34)!important;
}
body.is-admin .user-card>div:not(.avatar){display:none!important}
body.is-admin .avatar{
  width:42px!important;
  height:42px!important;
  border-radius:16px!important;
  font-size:16px!important;
}
body.is-admin .logout-link{
  min-height:52px;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:4px!important;
  padding:7px 6px!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.30)!important;
  color:#1f2937!important;
  font-size:12px!important;
  font-weight:900!important;
}
body.is-admin .logout-link:hover{color:#b91c1c!important;background:rgba(255,255,255,.72)!important}
body.is-admin .workspace-top{
  min-height:66px!important;
  padding:14px 18px!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.34)!important;
  border-color:rgba(255,255,255,.58)!important;
}
body.is-admin .workspace-top h1{
  font-size:24px!important;
  letter-spacing:-.03em;
}
body.is-admin .top-user{
  color:#172033!important;
  background:rgba(255,255,255,.54)!important;
  border-color:rgba(15,23,42,.12)!important;
}
body.is-admin .card,
body.is-admin .hero,
body.is-admin .stat,
body.is-admin .auth-panel{
  background:rgba(255,255,255,.34)!important;
  border-color:rgba(255,255,255,.58)!important;
  box-shadow:var(--shadow-soft)!important;
}
body.is-admin .table-wrap,
body.is-admin input,
body.is-admin select,
body.is-admin textarea,
body.is-admin .project-tab,
body.is-admin .mini-tag,
body.is-admin .badge,
body.is-admin .quota-box,
body.is-admin .create-section,
body.is-admin .user-edit-panel,
body.is-admin .appearance-section,
body.is-admin .choice-card,
body.is-admin .bg-pick{
  background:rgba(255,255,255,.50)!important;
  border-color:rgba(15,23,42,.13)!important;
}
body.is-admin h1,
body.is-admin h2,
body.is-admin h3,
body.is-admin strong,
body.is-admin label,
body.is-admin .table th,
body.is-admin table th{
  color:#0b1220!important;
  text-shadow:none!important;
}
body.is-admin p,
body.is-admin li,
body.is-admin td,
body.is-admin th,
body.is-admin small,
body.is-admin .help,
body.is-admin .muted,
body.is-admin .form-tip,
body.is-admin .tip,
body.is-admin .project-note,
body.is-admin .project-tab small,
body.is-admin .project-tab span,
body.is-admin .quota-box-title small,
body.is-admin .quota-num span,
body.is-admin .user-mini-stat span,
body.is-admin .user-identity small,
body.is-admin .device-more{
  color:#273244!important;
  text-shadow:none!important;
}
body.is-admin .table td,
body.is-admin table td{
  color:#1f2937!important;
}
body.is-admin input::placeholder,
body.is-admin textarea::placeholder{
  color:#64748b!important;
  opacity:1!important;
}
body.is-admin .btn.secondary,
body.is-admin button.secondary,
body.is-admin a.btn.secondary{
  color:#172033!important;
  background:rgba(255,255,255,.56)!important;
  border-color:rgba(15,23,42,.14)!important;
}
body.is-admin .badge,
body.is-admin .mini-tag,
body.is-admin .device-chip{
  color:#172033!important;
  background:rgba(255,255,255,.62)!important;
}

@media(max-width:1100px){
  body.is-admin .app-frame{
    width:min(100% - 22px,980px);
    grid-template-columns:92px minmax(0,1fr)!important;
    gap:12px;
  }
  body.is-admin .workspace-top{position:relative!important;top:auto!important}
}
@media(max-width:760px){
  body.is-admin{padding-bottom:88px!important}
  body.is-admin .app-frame{
    display:block!important;
    width:min(100% - 20px,760px)!important;
    margin:10px auto 0!important;
  }
  body.is-admin .sidebar{
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    top:auto!important;
    z-index:1000!important;
    height:auto!important;
    min-height:0!important;
    padding:8px!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.50)!important;
    backdrop-filter:blur(24px) saturate(150%)!important;
    -webkit-backdrop-filter:blur(24px) saturate(150%)!important;
  }
  body.is-admin .side-brand,
  body.is-admin .side-bottom{display:none!important}
  body.is-admin .side-nav{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(58px,1fr))!important;
    gap:7px!important;
  }
  body.is-admin .side-link{
    min-height:58px!important;
    border-radius:18px!important;
    padding:7px 4px!important;
    font-size:11px!important;
  }
  body.is-admin .nav-icon{width:22px;height:22px}
  body.is-admin .nav-icon svg{width:20px;height:20px}
  body.is-admin .nav-label{max-width:58px}
  body.is-admin .workspace-top{
    min-height:auto!important;
    padding:13px 15px!important;
    border-radius:22px!important;
    flex-direction:row!important;
    align-items:center!important;
  }
  body.is-admin .workspace-top h1{font-size:22px!important}
  body.is-admin .top-user{display:none!important}
  body.is-admin .card{padding:16px!important;border-radius:22px!important}
  body.is-admin .hero{padding:18px!important;border-radius:22px!important}
  body.is-admin .table-wrap{border-radius:18px!important}
  body.is-admin .table th,
  body.is-admin .table td{padding:10px 11px!important;font-size:12px!important}
}
@media(max-width:420px){
  body.is-admin .app-frame{width:calc(100% - 14px)!important;margin-top:7px!important}
  body.is-admin .sidebar{left:7px!important;right:7px!important;bottom:7px!important;border-radius:22px!important}
  body.is-admin .side-nav{gap:5px!important}
  body.is-admin .side-link{min-height:54px!important;border-radius:16px!important;font-size:10px!important}
  body.is-admin .nav-label{max-width:48px}
  body.is-admin .workspace-top h1{font-size:20px!important}
  body.is-admin .grid,
  body.is-admin .stat-grid,
  body.is-admin .split,
  body.is-admin .form-grid-2,
  body.is-admin .form-grid-3,
  body.is-admin .two-col,
  body.is-admin .project-board,
  body.is-admin .project-create-grid,
  body.is-admin .project-edit-grid,
  body.is-admin .appearance-layout{
    grid-template-columns:1fr!important;
  }
}

/* v49 account settings */
.settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:start;
}
.settings-card{
  min-height:0;
}
.settings-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.settings-title h3{
  margin:0;
  font-size:18px;
  letter-spacing:.01em;
}
.settings-title p{
  margin:4px 0 0;
}
.account-identity{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.42);
  border:1px solid rgba(17,24,39,.08);
  margin-bottom:14px;
}
.big-avatar{
  width:54px;
  height:54px;
  border-radius:18px;
  font-size:20px;
}
.account-identity strong{
  display:block;
  font-size:18px;
  line-height:1.2;
}
.account-identity span{
  display:block;
  color:rgba(17,24,39,.66);
  font-weight:700;
  margin-top:3px;
}
.settings-info-list{
  display:grid;
  gap:10px;
}
.settings-info-list>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.34);
  border:1px solid rgba(17,24,39,.07);
}
.settings-info-list span{
  color:rgba(17,24,39,.64);
  font-weight:800;
}
.settings-info-list strong{
  color:#111827;
  text-align:right;
  word-break:break-all;
}
.inline-cancel-form{
  margin-top:10px;
}
@media (max-width:900px){
  .settings-grid{grid-template-columns:1fr;gap:12px}
  .settings-info-list>div{align-items:flex-start;flex-direction:column;gap:2px}
  .settings-info-list strong{text-align:left}
}

/* v50 设置页折叠 + 网站公告 */
.security-settings-card{grid-column:1/-1}
.gx-accordion{
  border:1px solid rgba(17,24,39,.10);
  border-radius:18px;
  background:rgba(255,255,255,.42);
  margin:12px 0 0;
  overflow:hidden;
}
.gx-accordion summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  min-height:56px;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#111827;
  font-weight:900;
}
.gx-accordion summary::-webkit-details-marker{display:none}
.gx-accordion summary span{display:flex;align-items:center;gap:8px}
.gx-accordion summary span::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#111827;
  opacity:.68;
}
.gx-accordion summary em{
  font-style:normal;
  min-width:48px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(17,24,39,.08);
  color:#4b5563;
  font-size:12px;
  font-weight:900;
}
.gx-accordion[open] summary{border-bottom:1px solid rgba(17,24,39,.08)}
.gx-accordion[open] summary em{color:#111827;background:#fff}
.gx-accordion[open] summary em::before{content:"收起";font-style:normal}
.gx-accordion[open] summary em{font-size:0}
.gx-accordion[open] summary em::before{font-size:12px}
.accordion-body-form{padding:16px;margin:0}
.site-notice-card{
  margin:0 0 16px;
  padding:14px 16px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:20px;
  background:rgba(255,255,255,.50);
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
}
.site-notice-title{
  color:#111827;
  font-size:14px;
  font-weight:950;
  margin-bottom:6px;
  letter-spacing:.02em;
}
.site-notice-text{
  color:#1f2937;
  font-size:14px;
  line-height:1.75;
  word-break:break-word;
  white-space:normal;
}
.notice-editor-card textarea{
  min-height:180px;
  resize:vertical;
  line-height:1.75;
}
.notice-preview-card .site-notice-card.in-preview{margin:0;background:rgba(255,255,255,.42)}
body.pref-contrast-high .site-notice-text{color:#111827}
body.pref-contrast-high .gx-accordion summary em{color:#374151}
@media(max-width:720px){
  .gx-accordion summary{min-height:52px;padding:0 13px}
  .accordion-body-form{padding:14px}
  .site-notice-card{border-radius:16px;padding:12px 13px;margin-bottom:12px}
}


/* v51 生成卡密弹窗 */
.generated-modal-mask{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,23,42,.28);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.generated-modal-panel{
  width:min(720px, calc(100vw - 32px));
  max-height:min(760px, calc(100vh - 40px));
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:20px;
  border-radius:28px;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.82);
  box-shadow:0 28px 80px rgba(15,23,42,.22);
  color:#111827;
}
.generated-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.generated-modal-head h3{
  margin:0;
  font-size:22px;
  line-height:1.25;
  color:#111827;
}
.generated-modal-head p{
  margin:6px 0 0;
  color:#4b5563;
  font-weight:700;
}
.modal-close-btn{
  width:38px;
  height:38px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:14px;
  background:rgba(255,255,255,.82);
  color:#111827;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  box-shadow:none;
}
.modal-close-btn:hover{background:#fff}
.generated-keys-modal{
  min-height:260px;
  max-height:430px;
  resize:vertical;
  white-space:pre;
  font-size:14px;
  line-height:1.65;
  background:rgba(255,255,255,.72);
  color:#111827;
  border-color:rgba(17,24,39,.12);
}
.generated-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width:640px){
  .generated-modal-mask{align-items:flex-end;padding:12px}
  .generated-modal-panel{width:100%;border-radius:24px;max-height:86vh;padding:16px}
  .generated-keys-modal{min-height:220px;max-height:52vh;font-size:13px}
  .generated-modal-actions .btn{width:100%}
}

/* v53 生成卡密：真正居中弹窗 + 背景高斯模糊 */
html.generated-modal-open,
body.generated-modal-open{
  overflow:hidden !important;
  overscroll-behavior:none;
}
body.generated-modal-open .app-shell,
body.generated-modal-open .auth-shell,
body.generated-modal-open .page-shell,
body.generated-modal-open .container{
  filter:blur(7px) saturate(105%);
  transition:filter .18s ease;
}
.generated-modal-mask{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483000 !important;
  width:100vw !important;
  height:100vh !important;
  height:100dvh !important;
  display:grid !important;
  place-items:center !important;
  padding:24px !important;
  background:rgba(15,23,42,.26) !important;
  backdrop-filter:blur(18px) saturate(130%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(130%) !important;
}
.generated-modal-panel{
  width:min(620px, calc(100vw - 36px)) !important;
  max-height:min(720px, calc(100dvh - 48px)) !important;
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  padding:22px !important;
  border-radius:24px !important;
  border:1px solid rgba(255,255,255,.88) !important;
  background:rgba(255,255,255,.92) !important;
  box-shadow:0 34px 95px rgba(15,23,42,.30), inset 0 1px 0 rgba(255,255,255,.86) !important;
  color:#111827 !important;
  transform:translateY(8px) scale(.985);
  opacity:0;
  transition:opacity .18s ease, transform .18s ease;
}
.generated-modal-mask.modal-ready .generated-modal-panel{
  opacity:1;
  transform:translateY(0) scale(1);
}
.generated-modal-head{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:14px !important;
}
.generated-modal-head h3{
  margin:0 !important;
  font-size:22px !important;
  line-height:1.25 !important;
  color:#111827 !important;
  letter-spacing:-.02em;
}
.generated-modal-head p{
  margin:6px 0 0 !important;
  color:#4b5563 !important;
  font-weight:700 !important;
}
.generated-keys-modal{
  width:100% !important;
  min-height:260px !important;
  max-height:420px !important;
  resize:none !important;
  overflow:auto !important;
  white-space:pre !important;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace !important;
  font-size:14px !important;
  line-height:1.65 !important;
  color:#111827 !important;
  background:rgba(255,255,255,.76) !important;
  border:1px solid rgba(17,24,39,.12) !important;
  border-radius:18px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7) !important;
}
.generated-modal-actions{
  display:flex !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}
.modal-close-btn{
  flex:0 0 auto !important;
  width:38px !important;
  height:38px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(17,24,39,.10) !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.86) !important;
  color:#111827 !important;
  font-size:24px !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:none !important;
}
.modal-close-btn:hover{background:#fff !important;transform:none !important;}
@media (max-width:640px){
  .generated-modal-mask{place-items:center !important;padding:16px !important;}
  .generated-modal-panel{width:calc(100vw - 28px) !important;max-height:calc(100dvh - 32px) !important;border-radius:22px !important;padding:16px !important;}
  .generated-keys-modal{min-height:220px !important;max-height:45dvh !important;font-size:13px !important;}
  .generated-modal-actions{display:grid !important;grid-template-columns:1fr !important;}
  .generated-modal-actions .btn{width:100% !important;}
}


/* v54 真正居中浮层弹窗：生成卡密 */
html.kami-gen-modal-open,
body.kami-gen-modal-open{overflow:hidden!important;overscroll-behavior:none!important;}
body.kami-gen-modal-open .app-shell,
body.kami-gen-modal-open .auth-shell,
body.kami-gen-modal-open .page-shell,
body.kami-gen-modal-open .container,
body.kami-gen-modal-open .workspace{filter:blur(7px) saturate(105%);transition:filter .16s ease;}
.kami-gen-overlay{position:fixed!important;inset:0!important;z-index:2147483646!important;width:100vw!important;height:100vh!important;height:100dvh!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:22px!important;background:rgba(15,23,42,.28)!important;backdrop-filter:blur(18px) saturate(130%)!important;-webkit-backdrop-filter:blur(18px) saturate(130%)!important;box-sizing:border-box!important;}
.kami-gen-dialog{width:min(620px,calc(100vw - 36px))!important;max-height:min(720px,calc(100dvh - 48px))!important;display:flex!important;flex-direction:column!important;gap:14px!important;padding:22px!important;border-radius:24px!important;border:1px solid rgba(255,255,255,.9)!important;background:rgba(255,255,255,.94)!important;box-shadow:0 34px 95px rgba(15,23,42,.32),inset 0 1px 0 rgba(255,255,255,.9)!important;color:#111827!important;box-sizing:border-box!important;opacity:0;transform:translateY(8px) scale(.985);transition:opacity .18s ease,transform .18s ease;}
.kami-gen-overlay.kami-gen-ready .kami-gen-dialog{opacity:1;transform:translateY(0) scale(1);}
.kami-gen-head h3{margin:0!important;font-size:22px!important;line-height:1.25!important;color:#111827!important;letter-spacing:-.02em!important;}
.kami-gen-head p{margin:6px 0 0!important;color:#4b5563!important;font-weight:700!important;}
.kami-gen-text{width:100%!important;min-height:260px!important;max-height:420px!important;resize:none!important;overflow:auto!important;white-space:pre!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;font-size:14px!important;line-height:1.65!important;color:#111827!important;background:rgba(255,255,255,.76)!important;border:1px solid rgba(17,24,39,.12)!important;border-radius:18px!important;padding:14px!important;box-sizing:border-box!important;outline:none!important;}
.kami-gen-close{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;border:1px solid rgba(17,24,39,.10)!important;border-radius:14px!important;background:rgba(255,255,255,.86)!important;color:#111827!important;font-size:24px!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important;}
.kami-gen-close:hover{background:#fff!important;}
.kami-gen-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;}
@media(max-width:640px){.kami-gen-overlay{padding:14px!important}.kami-gen-dialog{width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;padding:16px!important;border-radius:22px!important}.kami-gen-text{min-height:220px!important;max-height:45dvh!important;font-size:13px!important}.kami-gen-actions{display:grid!important;grid-template-columns:1fr!important}.kami-gen-actions .btn{width:100%!important}}


/* v56：手机性能优化。手机端自动启用轻量玻璃，减少卡顿，不影响电脑端效果。 */
@media (max-width:760px), (pointer:coarse){
  html.gx-mobile-lite,
  html.gx-mobile-lite body{
    scroll-behavior:auto!important;
    overscroll-behavior:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html.gx-mobile-lite body::before{
    inset:0!important;
    transform:none!important;
    filter:saturate(1.02) brightness(1.02)!important;
    will-change:auto!important;
    background-position:center center!important;
    background-size:cover!important;
  }
  html.gx-mobile-lite body::after{
    display:none!important;
  }
  html.gx-mobile-lite *,
  html.gx-mobile-lite *::before,
  html.gx-mobile-lite *::after{
    transition:none!important;
    animation:none!important;
    text-shadow:none!important;
  }
  html.gx-mobile-lite body.is-admin .sidebar,
  html.gx-mobile-lite body.is-admin .workspace-top,
  html.gx-mobile-lite body.is-admin .card,
  html.gx-mobile-lite body.is-admin .auth-panel,
  html.gx-mobile-lite body.is-admin .hero,
  html.gx-mobile-lite body.is-admin .stat,
  html.gx-mobile-lite body.is-admin .table-wrap,
  html.gx-mobile-lite body.is-admin .site-notice-card,
  html.gx-mobile-lite body.is-admin .settings-card,
  html.gx-mobile-lite body.is-admin .appearance-section,
  html.gx-mobile-lite body.is-admin .user-card,
  html.gx-mobile-lite body.is-admin .project-card,
  html.gx-mobile-lite body.is-admin .quota-box,
  html.gx-mobile-lite body.is-admin .create-section,
  html.gx-mobile-lite body.is-admin input,
  html.gx-mobile-lite body.is-admin select,
  html.gx-mobile-lite body.is-admin textarea{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    background:rgba(255,255,255,.76)!important;
    border-color:rgba(15,23,42,.12)!important;
    box-shadow:0 10px 26px rgba(15,23,42,.08)!important;
  }
  html.gx-mobile-lite body.is-admin .sidebar{
    background:rgba(255,255,255,.86)!important;
    box-shadow:0 10px 30px rgba(15,23,42,.16)!important;
  }
  html.gx-mobile-lite body.is-admin .side-link{
    background:rgba(255,255,255,.18)!important;
    border-color:transparent!important;
  }
  html.gx-mobile-lite body.is-admin .side-link.active{
    background:#fff!important;
    box-shadow:0 8px 18px rgba(15,23,42,.10)!important;
  }
  html.gx-mobile-lite body.is-admin .workspace-top{
    background:rgba(255,255,255,.78)!important;
  }
  html.gx-mobile-lite body.is-admin .table th,
  html.gx-mobile-lite body.is-admin table th{
    position:static!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    background:rgba(255,255,255,.86)!important;
  }
  html.gx-mobile-lite body.is-admin .table-wrap{
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html.gx-mobile-lite body.is-admin h1,
  html.gx-mobile-lite body.is-admin h2,
  html.gx-mobile-lite body.is-admin h3,
  html.gx-mobile-lite body.is-admin strong,
  html.gx-mobile-lite body.is-admin label{
    color:#07111f!important;
  }
  html.gx-mobile-lite body.is-admin p,
  html.gx-mobile-lite body.is-admin li,
  html.gx-mobile-lite body.is-admin td,
  html.gx-mobile-lite body.is-admin small,
  html.gx-mobile-lite body.is-admin .help,
  html.gx-mobile-lite body.is-admin .muted,
  html.gx-mobile-lite body.is-admin .form-tip,
  html.gx-mobile-lite body.is-admin .tip{
    color:#1f2937!important;
  }
  html.gx-mobile-lite .gx-ajax-loading .workspace,
  html.gx-mobile-lite.gx-ajax-loading .workspace{
    opacity:1!important;
    transform:none!important;
  }
  html.gx-mobile-lite .kami-gen-overlay{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    background:rgba(15,23,42,.34)!important;
  }
  html.gx-mobile-lite body.kami-gen-modal-open .workspace{
    filter:none!important;
  }
  html.gx-mobile-lite .kami-gen-dialog{
    box-shadow:0 18px 46px rgba(15,23,42,.28)!important;
  }
}

/* 省电/弱网设备强制轻量，避免低端安卓卡顿 */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}

/* v57 设置页收纳界面 UI 设置 */
.settings-shortcut-card{min-height:auto}
.settings-jump-button{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  padding:16px;
  border-radius:20px;
  border:1px solid rgba(17,24,39,.10);
  background:rgba(255,255,255,.56);
  color:#111827;
  font-weight:800;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.settings-jump-button:hover{background:rgba(255,255,255,.78);color:#111827;transform:translateY(-1px)}
.settings-jump-button span:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
.settings-jump-button small{display:block;color:#475569;font-size:12px;font-weight:700;line-height:1.35}
.settings-jump-icon{
  width:42px;
  height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(17,24,39,.92);
  color:#fff;
  font-size:18px;
  flex:0 0 auto;
}
.settings-jump-button em{font-style:normal;font-size:28px;color:#64748b;line-height:1}
.head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:760px){
  .settings-jump-button{padding:14px;align-items:flex-start}
  .settings-jump-icon{width:38px;height:38px;border-radius:14px}
  .settings-jump-button em{display:none}
  .head-actions{width:100%}
  .head-actions .button,.head-actions .inline-form,.head-actions .inline-form button{width:100%}
}

/* v58: 后台切换加速与过渡 */
.workspace{
  will-change: opacity, transform;
}
.workspace.gx-workspace-leave{
  opacity:.82;
  transform:translateY(2px);
  transition:opacity .10s ease, transform .10s ease;
}
.workspace.gx-workspace-enter{
  animation:gxWorkspaceEnter .16s ease both;
}
@keyframes gxWorkspaceEnter{
  from{opacity:.88; transform:translateY(4px)}
  to{opacity:1; transform:translateY(0)}
}
html.gx-ajax-loading .workspace::after{
  content:'';
  position:fixed;
  top:12px;
  right:18px;
  width:18px;
  height:18px;
  border:2px solid rgba(15,23,42,.18);
  border-top-color:rgba(15,23,42,.62);
  border-radius:50%;
  animation:gxSpin .72s linear infinite;
  z-index:9999;
}
@keyframes gxSpin{to{transform:rotate(360deg)}}
@media (max-width:760px){
  html.gx-ajax-loading .workspace::after{top:10px;right:12px;width:16px;height:16px}
  .workspace.gx-workspace-enter{animation-duration:.10s}
}

/* v64：控制台建议 + 管理员私信 */
.suggestion-card textarea{
  width:100%;
  min-height:112px;
  resize:vertical;
  border-radius:18px;
  border:1px solid rgba(17,24,39,.12);
  background:rgba(255,255,255,.72);
  color:#111827;
  padding:14px 16px;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.suggestion-card textarea:focus{
  border-color:rgba(17,24,39,.26);
  background:rgba(255,255,255,.9);
}
.suggestion-card .card-title-row{align-items:flex-start;}
.message-list{display:grid;gap:14px;}
.message-card{
  border:1px solid rgba(255,255,255,.72);
  border-radius:24px;
  background:rgba(255,255,255,.42);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  padding:18px;
}
.message-card.is-unread{background:rgba(255,255,255,.62);border-color:rgba(5,150,105,.22);}
.message-card.is-read{opacity:.86;}
.message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;}
.message-head h3{display:flex;align-items:center;gap:8px;margin:0 0 4px;}
.message-head .actions{flex-wrap:nowrap;}
.message-content{
  white-space:normal;
  color:#111827;
  border-top:1px solid rgba(17,24,39,.08);
  padding-top:13px;
  font-weight:650;
  line-height:1.85;
}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:rgba(107,114,128,.12);
  color:#374151;
}
.pill.green{background:rgba(5,150,105,.12);color:#047857;}
.empty-card{color:#6b7280;font-weight:800;text-align:center;}
@media(max-width:760px){
  .message-head{display:grid;}
  .message-head .actions{display:grid;grid-template-columns:1fr 1fr;}
  .message-head .actions form,.message-head .actions button{width:100%;}
  .suggestion-card textarea{min-height:132px;}
}

/* V68 自定义卡密输入优化：不强制改值，只提示状态 */
.field-tip{font-size:12px;line-height:1.5;margin-top:6px;color:rgba(30,41,59,.72)}
.danger-text{color:#dc2626!important;font-weight:600}
.input-error{border-color:rgba(220,38,38,.65)!important;box-shadow:0 0 0 3px rgba(220,38,38,.10)!important;background:rgba(255,255,255,.82)!important}

/* v59：通知铃铛按钮 */
.notice-bell-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:0 10px;
  border-radius:14px;
  border:1px solid rgba(17,24,39,.10);
  background:rgba(255,255,255,.54);
  color:#374151;
  text-decoration:none;
  font-weight:800;
  transition:background .16s ease, color .16s ease;
}
.notice-bell-btn:hover{background:rgba(255,255,255,.82);color:#111827}
.notice-bell-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  font-size:11px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:0 2px 6px rgba(220,38,38,.3);
}
.notice-item:last-child{border-bottom:0!important}
@media(max-width:760px){
  .notice-bell-btn{min-width:34px;min-height:34px;padding:0 8px}
  .notice-bell-badge{min-width:16px;height:16px;font-size:10px;top:-3px;right:-3px}
}


/* V73：进入后台前预加载常用页面，显示居中进度弹窗 */
.kami-admin-preload-active{
  overflow:hidden!important;
}
.kami-preload-overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(255,255,255,.10);
  backdrop-filter:blur(18px) saturate(130%);
  -webkit-backdrop-filter:blur(18px) saturate(130%);
}
.kami-preload-box{
  width:min(430px,calc(100vw - 34px));
  border-radius:28px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,255,255,.86);
  box-shadow:0 28px 90px rgba(15,23,42,.22);
  padding:26px;
  color:#111827;
  text-align:left;
}
.kami-preload-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.kami-preload-icon{
  width:44px;
  height:44px;
  flex:0 0 auto;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  font-weight:900;
  box-shadow:0 12px 30px rgba(17,24,39,.22);
}
.kami-preload-title{
  margin:0;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.kami-preload-sub{
  margin:5px 0 0;
  color:#4b5563;
  font-size:13px;
  font-weight:700;
}
.kami-preload-track{
  height:10px;
  border-radius:999px;
  background:rgba(17,24,39,.08);
  overflow:hidden;
  margin:10px 0 12px;
}
.kami-preload-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#111827,#4b5563);
  transition:width .18s ease;
}
.kami-preload-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#4b5563;
  font-size:13px;
  font-weight:800;
}
.kami-preload-now{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:260px;
}
.kami-preload-percent{color:#111827;font-size:15px;font-weight:900}
.kami-preload-hide{
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}
@media (max-width:760px){
  .kami-preload-overlay{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(255,255,255,.18)}
  .kami-preload-box{padding:22px;border-radius:24px;background:rgba(255,255,255,.95)}
  .kami-preload-now{max-width:190px}
}

/* v45 project manage responsive fix */
.project-board{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr))!important;
  align-items:start!important;
}
.project-item{
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
.project-item-head{
  min-width:0!important;
  width:100%!important;
  align-items:flex-start!important;
}
.project-meta{
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
}
.project-meta h3{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.28!important;
}
.project-meta code{
  display:inline-block!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-all!important;
}
.project-tags{
  min-width:0!important;
  max-width:100%!important;
}
.project-tags .mini-tag,
.project-tags .badge{
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.35!important;
}
.project-edit-panel,
.project-form-main,
.project-details,
.detail-settings-body,
.lua-output-box,
.lua-output-grid,
.lua-code-card{
  min-width:0!important;
  max-width:100%!important;
}
.project-edit-panel .actions,
.project-manage-box .actions,
.danger-actions{
  min-width:0!important;
  flex-wrap:wrap!important;
}
.project-edit-panel .actions .btn,
.project-edit-panel .actions button,
.project-manage-box .actions .btn,
.project-manage-box .actions button,
.danger-actions .btn,
.danger-actions button{
  white-space:normal!important;
  min-width:0!important;
}
.lua-output-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))!important;
  gap:12px!important;
}
.lua-code-card textarea{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:auto!important;
}
@media(max-width:1180px){
  .project-board{grid-template-columns:1fr!important;}
  .project-item-head{gap:12px!important;}
}
@media(max-width:640px){
  .project-item-head{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:start!important;}
  .project-item .project-cover{width:72px!important;height:72px!important;border-radius:18px!important;}
  .project-tags{gap:6px!important;}
  .project-tags .mini-tag,.project-tags .badge{font-size:11px!important;padding:3px 8px!important;}
  .project-edit-panel .actions .btn,
  .project-edit-panel .actions button,
  .project-manage-box .actions .btn,
  .project-manage-box .actions button,
  .danger-actions .btn,
  .danger-actions button{flex:1 1 calc(50% - 8px)!important;text-align:center!important;justify-content:center!important;}
}
@media(max-width:420px){
  .project-item-head{grid-template-columns:1fr!important;}
  .project-item .project-cover{width:64px!important;height:64px!important;}
  .project-edit-panel .actions .btn,
  .project-edit-panel .actions button,
  .project-manage-box .actions .btn,
  .project-manage-box .actions button,
  .danger-actions .btn,
  .danger-actions button{flex-basis:100%!important;}
}


/* v46 project manage panel isolation fix */
.project-board{
  grid-auto-flow:row!important;
  align-items:start!important;
}
.project-item{
  position:relative!important;
  box-sizing:border-box!important;
  isolation:isolate!important;
  z-index:1!important;
  contain:layout paint!important;
}
.project-item.project-item-open,
.project-item:has(.project-manage-box[open]){
  grid-column:1/-1!important;
  z-index:20!important;
  contain:none!important;
}
.project-item.project-item-open .project-item-head,
.project-item:has(.project-manage-box[open]) .project-item-head{
  max-width:100%!important;
}
.project-manage-box{
  position:relative!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  z-index:2!important;
}
.project-manage-box[open]{
  z-index:30!important;
}
.project-edit-panel{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  z-index:31!important;
}
.project-item.project-item-open .project-edit-panel,
.project-item:has(.project-manage-box[open]) .project-edit-panel{
  overflow:visible!important;
}
.project-edit-grid,
.project-create-grid,
.project-form,
.project-form-main,
.project-details,
.detail-settings-body,
.lua-output-box,
.lua-output-grid,
.lua-code-card,
.cpp-entry-box{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.project-item.project-item-open .project-edit-grid,
.project-item:has(.project-manage-box[open]) .project-edit-grid{
  grid-template-columns:minmax(120px,180px) minmax(0,1fr)!important;
}
.project-item.project-item-open .lua-output-grid,
.project-item:has(.project-manage-box[open]) .lua-output-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.project-edit-panel input,
.project-edit-panel select,
.project-edit-panel textarea,
.lua-code-card textarea{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.lua-code-card textarea{
  display:block!important;
  resize:vertical!important;
  white-space:pre!important;
}
@media(max-width:980px){
  .project-board{grid-template-columns:1fr!important;}
  .project-item.project-item-open .project-edit-grid,
  .project-item:has(.project-manage-box[open]) .project-edit-grid,
  .project-item.project-item-open .lua-output-grid,
  .project-item:has(.project-manage-box[open]) .lua-output-grid{grid-template-columns:1fr!important;}
  .project-edit-panel{overflow:hidden!important;}
}
@media(max-width:640px){
  .project-item{contain:none!important;}
  .project-edit-panel{padding:12px!important;}
}


/* gx-project-final-hard-fix-start */
body.is-admin .gx-project-board-fixed,body.is-admin .project-board{display:block!important;grid-template-columns:1fr!important;grid-auto-flow:row!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;}
body.is-admin .gx-project-board-fixed>.project-item,body.is-admin .project-board>.project-item{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 16px!important;grid-column:1/-1!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;float:none!important;clear:both!important;overflow:hidden!important;z-index:auto!important;}
body.is-admin .project-item-head{width:100%!important;max-width:100%!important;min-width:0!important;display:flex!important;align-items:flex-start!important;gap:16px!important;overflow:hidden!important;}
body.is-admin .project-meta{min-width:0!important;max-width:100%!important;flex:1 1 auto!important;overflow:hidden!important;}
body.is-admin .project-meta h3,body.is-admin .project-meta code,body.is-admin .project-tags,body.is-admin .mini-tag,body.is-admin .badge{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;}
body.is-admin .project-manage-box,body.is-admin .project-manage-box[open],body.is-admin .project-edit-panel,body.is-admin .project-form,body.is-admin .project-form-main,body.is-admin .project-edit-grid,body.is-admin .detail-settings,body.is-admin .detail-settings-body,body.is-admin .lua-output-box,body.is-admin .lua-output-grid,body.is-admin .lua-code-card,body.is-admin .cpp-entry-box{display:block;position:relative!important;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;float:none!important;clear:both!important;overflow:hidden!important;z-index:auto!important;}
body.is-admin .project-edit-grid{display:grid!important;grid-template-columns:minmax(110px,180px) minmax(0,1fr)!important;gap:16px!important;}
body.is-admin .detail-settings-body.grid,body.is-admin .project-form-main .grid.two-col{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
body.is-admin .lua-output-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
body.is-admin .project-edit-panel input,body.is-admin .project-edit-panel select,body.is-admin .project-edit-panel textarea,body.is-admin .lua-code-card textarea{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
body.is-admin .project-edit-panel .actions,body.is-admin .danger-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;max-width:100%!important;}
body.is-admin .project-edit-panel .actions>* ,body.is-admin .danger-actions>*{max-width:100%!important;min-width:0!important;}
@media(max-width:980px){body.is-admin .project-edit-grid,body.is-admin .detail-settings-body.grid,body.is-admin .project-form-main .grid.two-col,body.is-admin .lua-output-grid{grid-template-columns:1fr!important;}body.is-admin .project-item-head{display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;}body.is-admin .project-item .project-cover{width:76px!important;height:76px!important;}}
@media(max-width:460px){body.is-admin .project-item-head{grid-template-columns:1fr!important;}body.is-admin .project-edit-panel{padding:12px!important;}body.is-admin .project-edit-panel .actions>* ,body.is-admin .danger-actions>*{flex:1 1 100%!important;}}
/* gx-project-final-hard-fix-end */


/* 项目管理：公告移到管理主区域，应用类型和应用ID创建后锁定 */
.project-notice-row{margin-top:12px;width:100%;max-width:100%;box-sizing:border-box;}
.project-notice-row textarea{width:100%;max-width:100%;box-sizing:border-box;resize:vertical;min-height:86px;}
.project-lock-tip{font-size:12px;color:var(--muted,#8a8f98);margin-top:4px;}

/* 本地直链 upload style */
.lua-update-panel input[type=file]{padding:10px;border:1px dashed rgba(255,255,255,.28);border-radius:12px;background:rgba(255,255,255,.05)}
.lua-code-card textarea{white-space:pre;overflow:auto}
.alert.warn{border:1px solid rgba(245,158,11,.35);background:rgba(245,158,11,.12);border-radius:14px;padding:10px 12px;margin:8px 0}


/* v86 项目管理：创建项目默认收缩为右上角按钮 */
body.is-admin .project-page-head{align-items:center!important;}
body.is-admin .project-head-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important;margin-left:auto!important;}
body.is-admin .project-create-toggle{white-space:nowrap!important;}
body.is-admin .project-create-wrap[hidden]{display:none!important;}
body.is-admin .project-create-wrap{max-width:980px!important;margin:0 auto 22px!important;}
@media(max-width:640px){body.is-admin .project-page-head{display:grid!important;grid-template-columns:1fr!important;}body.is-admin .project-head-actions{justify-content:flex-start!important;margin-left:0!important;width:100%!important;}body.is-admin .project-head-actions .btn,body.is-admin .project-head-actions button{flex:1 1 auto!important;text-align:center!important;justify-content:center!important;}}


/* 生成卡密导出复制弹窗防遮挡修复：弹窗自身不再被后台高斯模糊层影响 */
html.kami-gen-modal-open body,
body.kami-gen-modal-open{
  overflow:hidden!important;
}
body.kami-gen-modal-open .app-shell,
body.kami-gen-modal-open .auth-shell,
body.kami-gen-modal-open .page-shell,
body.kami-gen-modal-open .container,
body.kami-gen-modal-open .workspace{
  filter:none!important;
}
body.kami-gen-modal-open .kami-gen-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:2147483647!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  isolation:isolate!important;
  transform:none!important;
  filter:none!important;
  pointer-events:auto!important;
}
body.kami-gen-modal-open .kami-gen-dialog,
body.kami-gen-modal-open .kami-gen-dialog *{
  filter:none!important;
}
body.kami-gen-modal-open .kami-gen-dialog{
  position:relative!important;
  z-index:2147483647!important;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  body.kami-gen-modal-open .kami-gen-overlay{background:rgba(15,23,42,.58)!important;}
}

/* 20260602 clean text：隐藏非必要说明小字，保留核心表单、按钮、表格和提示 */
.hero-copy p,.feature-card span,.public-footer,.kami-preload-sub,.upload-drop-sub,.small-text:empty,.form-row small.muted:empty,.settings-jump-button small{display:none!important;}
.feature-card{min-height:82px;display:flex;align-items:center;}
.feature-card strong{margin-bottom:0!important;}
.public-hero{min-height:360px;}
.card-title-row p.muted:empty,.section-title-row p.muted:empty{display:none!important;}


/* v91：正式后台质感重做 + 云储存容量提示 */
:root{--sidebar-w:220px!important;--panel-bg:rgba(255,255,255,.78);--panel-border:rgba(15,23,42,.10);--panel-shadow:0 20px 54px rgba(15,23,42,.10)}
body.is-admin::before{filter:saturate(1.02) brightness(1.04) contrast(1.02)!important}
body.is-admin .app-frame{width:min(1480px,calc(100% - 32px))!important;grid-template-columns:var(--sidebar-w) minmax(0,1fr)!important;gap:18px!important}
body.is-admin .sidebar{padding:18px!important;border-radius:30px!important;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.58))!important;border:1px solid rgba(255,255,255,.82)!important;box-shadow:var(--panel-shadow)!important;overflow:hidden!important}
body.is-admin .side-brand{justify-content:flex-start!important;gap:12px!important;padding:6px 6px 18px!important;margin-bottom:12px!important}
body.is-admin .side-brand>div{display:block!important;min-width:0!important}
body.is-admin .side-brand strong{font-size:17px!important;letter-spacing:-.02em!important}
body.is-admin .side-brand small{display:block!important;color:#64748b!important;font-weight:800!important}
body.is-admin .side-brand .brand-logo,body.is-admin .side-brand .brand-mark{width:42px!important;height:42px!important;border-radius:16px!important;flex:0 0 auto!important}
body.is-admin .side-nav{gap:8px!important}
body.is-admin .side-link{min-height:46px!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;padding:0 13px!important;border-radius:16px!important;font-size:14px!important;line-height:1.2!important;background:transparent!important;border:1px solid transparent!important;color:#334155!important}
body.is-admin .side-link:hover{background:rgba(255,255,255,.76)!important;border-color:rgba(15,23,42,.08)!important;transform:none!important}
body.is-admin .side-link.active{color:#0f172a!important;background:#fff!important;border-color:rgba(15,23,42,.10)!important;box-shadow:0 12px 28px rgba(15,23,42,.08)!important}
body.is-admin .nav-icon{width:22px!important;height:22px!important;display:inline-grid!important;place-items:center!important}
body.is-admin .nav-icon svg{width:20px!important;height:20px!important}
body.is-admin .nav-label{display:block!important;max-width:138px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.is-admin .user-card{justify-content:flex-start!important;padding:12px!important;border-radius:18px!important;background:rgba(255,255,255,.72)!important}
body.is-admin .user-card>div:not(.avatar){display:block!important;min-width:0!important}
body.is-admin .avatar{width:40px!important;height:40px!important;border-radius:15px!important}
body.is-admin .logout-link{min-height:42px!important;display:flex!important;flex-direction:row!important;gap:8px!important;padding:9px 12px!important;border-radius:16px!important;background:rgba(255,255,255,.64)!important;font-size:13px!important}
body.is-admin .workspace-top{min-height:70px!important;padding:16px 22px!important;border-radius:28px!important;background:var(--panel-bg)!important;border:1px solid rgba(255,255,255,.82)!important;box-shadow:var(--panel-shadow)!important}
body.is-admin .workspace-top h1{font-size:26px!important;letter-spacing:-.04em!important;color:#0f172a!important}
body.is-admin .card,body.is-admin .hero,body.is-admin .stat,body.is-admin .cloud-card,body.is-admin .so-manage-card,body.is-admin .message-card,body.is-admin .settings-card,body.is-admin .appearance-section,body.is-admin .project-item,body.is-admin .project-manage-box,body.is-admin .project-edit-panel{background:var(--panel-bg)!important;border:1px solid var(--panel-border)!important;border-radius:24px!important;box-shadow:0 14px 38px rgba(15,23,42,.07)!important}
body.is-admin .card,body.is-admin .cloud-card{padding:22px!important}
body.is-admin .table-wrap{background:rgba(255,255,255,.82)!important;border:1px solid var(--panel-border)!important;border-radius:20px!important;box-shadow:0 10px 30px rgba(15,23,42,.05)!important}
body.is-admin .table th,body.is-admin table th{background:#f8fafc!important;color:#0f172a!important;font-size:13px!important}
body.is-admin .table td,body.is-admin table td{color:#334155!important}
body.is-admin input,body.is-admin select,body.is-admin textarea{background:#fff!important;border:1px solid rgba(15,23,42,.13)!important;border-radius:14px!important;box-shadow:none!important}
body.is-admin input:focus,body.is-admin select:focus,body.is-admin textarea:focus{border-color:rgba(37,99,235,.58)!important;box-shadow:0 0 0 4px rgba(37,99,235,.10)!important}
body.is-admin .btn,body.is-admin button{border-radius:14px!important;box-shadow:0 12px 24px rgba(15,23,42,.12)!important}
body.is-admin .btn.secondary,body.is-admin button.secondary,body.is-admin a.btn.secondary{background:#fff!important;color:#334155!important;border:1px solid rgba(15,23,42,.11)!important;box-shadow:none!important}
body.is-admin .alert{background:rgba(255,255,255,.88)!important;border-color:rgba(15,23,42,.10)!important;border-radius:18px!important}
body.is-admin h1,body.is-admin h2,body.is-admin h3,body.is-admin strong,body.is-admin label{color:#0f172a!important}
body.is-admin p,body.is-admin li,body.is-admin td,body.is-admin small,body.is-admin .muted,body.is-admin .help,body.is-admin .cloud-muted,body.is-admin .cloud-card-sub{color:#475569!important}
.cloud-wrap{display:grid;gap:16px}.cloud-top,.cloud-current{background:var(--panel-bg)!important;border:1px solid var(--panel-border)!important;box-shadow:0 14px 38px rgba(15,23,42,.07)!important;border-radius:26px!important}
.storage-quota-card{overflow:hidden!important}.quota-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.quota-head h3{margin:0 0 4px!important}.quota-head strong{white-space:nowrap;font-size:18px;color:#0f172a!important;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:999px;padding:8px 12px}.storage-bar{height:12px;border-radius:999px;background:#e2e8f0;overflow:hidden;box-shadow:inset 0 1px 2px rgba(15,23,42,.08)}.storage-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0f172a,#475569)}.quota-foot{display:flex;justify-content:space-between;gap:12px;margin-top:9px;font-size:13px;font-weight:900;color:#475569}
.so-uploader{background:linear-gradient(180deg,#ffffff,#f8fafc)!important;border:1px dashed rgba(15,23,42,.20)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important}.so-uploader .icon{background:#0f172a!important}.so-mode-card,.so-kv,.client-file-box,.account-identity,.settings-info-list>div,.gx-accordion,.site-notice-card{background:#fff!important;border-color:rgba(15,23,42,.10)!important}
@media(max-width:1100px){body.is-admin .app-frame{grid-template-columns:96px minmax(0,1fr)!important;width:min(100% - 22px,980px)!important}body.is-admin .side-brand{justify-content:center!important}body.is-admin .side-brand>div{display:none!important}body.is-admin .side-link{min-height:62px!important;flex-direction:column!important;justify-content:center!important;gap:5px!important;padding:8px 4px!important;font-size:11px!important}body.is-admin .nav-label{max-width:70px!important;text-align:center!important}body.is-admin .user-card>div:not(.avatar){display:none!important}body.is-admin .logout-link{flex-direction:column!important;font-size:11px!important}}
@media(max-width:760px){body.is-admin .app-frame{display:block!important;width:min(100% - 20px,760px)!important;margin:10px auto 0!important}body.is-admin .sidebar{position:fixed!important;left:10px!important;right:10px!important;bottom:10px!important;top:auto!important;z-index:1000!important;height:auto!important;min-height:0!important;padding:8px!important;border-radius:24px!important;background:rgba(255,255,255,.90)!important;overflow:visible!important}body.is-admin .side-brand,body.is-admin .side-bottom{display:none!important}body.is-admin .side-nav{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(58px,1fr))!important;gap:7px!important}body.is-admin .side-link{min-height:58px!important;border-radius:18px!important;font-size:11px!important}body.is-admin .workspace-top{position:relative!important;top:auto!important;border-radius:22px!important;min-height:auto!important;padding:13px 15px!important}body.is-admin .workspace-top h1{font-size:22px!important}body.is-admin .cloud-card,body.is-admin .card{padding:16px!important;border-radius:22px!important}.quota-head{display:block}.quota-head strong{display:inline-flex;margin-top:8px}.quota-foot{font-size:12px}}
