/* ==========================================================================
   安易盾用户中心（第36轮重设计）— 暗色科技风，复用 site.css 设计令牌
   ========================================================================== */
body.dash-body{
  background:
    radial-gradient(1200px 620px at 88% -10%,rgba(99,102,241,.16),transparent 62%),
    radial-gradient(900px 520px at 2% 6%,rgba(34,211,238,.09),transparent 60%),
    var(--bg);
  min-height:100vh;
}
.dash-top{
  position:sticky;top:0;z-index:90;height:64px;
  display:flex;align-items:center;gap:14px;padding:0 22px;
  background:rgba(6,9,19,.82);backdrop-filter:blur(18px) saturate(1.4);
  border-bottom:1px solid var(--line);
}
.dash-top .brand{font-size:17px;gap:9px}
.dash-top .brand img{width:30px;height:30px;border-radius:9px}
.dash-flag{font-size:12.5px;color:var(--muted-2);border-left:1px solid var(--line-strong);padding-left:14px;margin-left:2px;white-space:nowrap}
.dash-top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.user-chip{display:flex;align-items:center;gap:9px;padding:5px 12px 5px 5px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid var(--line);font-size:13px;color:#dfe6ff;max-width:340px}
.user-chip .avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:800;color:#06111f;background:linear-gradient(135deg,#93a4ff,#22d3ee);flex:0 0 28px}
.user-chip #userInfo{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-burger{display:none;width:38px;height:38px;border-radius:10px;border:1px solid var(--line-strong);background:rgba(255,255,255,.04);color:#e8edff;cursor:pointer;align-items:center;justify-content:center}
.dash-burger svg{width:18px;height:18px}
.dash-shell{display:flex;min-height:calc(100vh - 64px);align-items:stretch}
.dash-side{
  width:232px;flex:0 0 232px;padding:20px 14px 18px;display:flex;flex-direction:column;
  border-right:1px solid var(--line);background:rgba(255,255,255,.014);
  position:sticky;top:64px;height:calc(100vh - 64px);overflow-y:auto;
}
.side-label{font-size:10.5px;font-weight:750;letter-spacing:.18em;text-transform:uppercase;color:var(--muted-2);padding:6px 12px 12px}
.side-link{
  display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:11px;
  color:var(--muted);font-size:13.5px;font-weight:550;cursor:pointer;
  border:1px solid transparent;margin-bottom:3px;transition:background .18s,color .18s,border-color .18s;
  -webkit-user-select:none;user-select:none;
}
.side-link svg{width:18px;height:18px;flex:0 0 18px;opacity:.8}
.side-link:hover{background:rgba(255,255,255,.055);color:#fff}
.side-link.active{background:linear-gradient(95deg,rgba(99,102,241,.26),rgba(34,211,238,.08));border-color:rgba(139,156,255,.3);color:#fff;font-weight:650}
.side-link.active svg{opacity:1;color:#a5b4fc}
.side-foot{margin-top:auto;padding-top:18px}
.side-plan{background:linear-gradient(160deg,rgba(99,102,241,.2),rgba(255,255,255,.03));border:1px solid rgba(139,156,255,.26);border-radius:15px;padding:15px 15px 14px;margin-bottom:12px}
.side-plan .sp-label{font-size:11px;color:#b9c5ff;letter-spacing:.05em;margin-bottom:6px}
.side-plan .sp-level{font-size:16px;font-weight:800;color:#fff;margin-bottom:4px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.side-plan .sp-key{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10.5px;color:#c7d2fe;word-break:break-all;margin-bottom:7px;line-height:1.4}
.side-plan .sp-exp{font-size:11.5px;color:var(--muted);line-height:1.6}
.side-plan .sp-exp b{font-weight:650}
.side-plan .sp-bar{height:5px;border-radius:5px;background:rgba(255,255,255,.1);overflow:hidden;margin-top:9px}
.side-plan .sp-bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#6366f1,#22d3ee);transition:width .5s}
.side-link .badge-num{margin-left:auto;font-size:10.5px;font-weight:750;padding:2px 7px;border-radius:999px;background:rgba(239,68,68,.16);color:#fca5a5;border:1px solid rgba(239,68,68,.3)}
.dash-main{flex:1;min-width:0;padding:26px 32px 70px}
.side-overlay{display:none;position:fixed;inset:0;z-index:85;background:rgba(2,5,12,.62);backdrop-filter:blur(2px)}

/* 图标尺寸：本地内联 SVG */
svg{display:inline-block;vertical-align:-.15em}
.btn svg,.page-head svg,.page-actions svg{width:15px;height:15px;flex:0 0 15px}
.dcard h3 svg,.block-head h2 svg{width:17px;height:17px;flex:0 0 17px;color:#a5b4fc}
.dcard .btn-row svg{width:14px;height:14px}
.data-table .btn svg{width:13px;height:13px}
.notice svg{width:18px;height:18px;flex:0 0 18px;margin-top:2px;color:#a5b4fc}
.hero-card svg{width:14px;height:14px}
.empty-state svg{width:26px;height:26px}
.dyn-card svg{width:15px;height:15px}
.toast svg{width:15px;height:15px}

/* 页面头 */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.page-title{font-size:24px;font-weight:850;letter-spacing:-.5px;display:flex;align-items:center;gap:10px}
.page-title .pt-sub{font-size:12px;color:var(--muted-2);font-weight:500;letter-spacing:.02em}
.page-sub{color:var(--muted);font-size:13.5px;margin-top:7px}
.page-actions{display:flex;gap:10px;flex-wrap:wrap}

/* 卡片 / 网格 */
.dash-grid{display:grid;gap:16px}
.g-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-side{grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr)}
.dcard{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.018));border:1px solid var(--line);border-radius:17px;padding:20px 21px;position:relative}
.dcard.pad-lg{padding:24px 26px}
.dcard h3{font-size:15px;font-weight:700;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.dcard h3 .h3-sub{font-size:11.5px;color:var(--muted-2);font-weight:500;margin-left:auto}
.dcard .muted{color:var(--muted);font-size:12.5px}
.section-block{margin-bottom:24px}
.section-block:last-child{margin-bottom:0}
.block-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.block-head h2{font-size:16.5px;font-weight:780;display:flex;align-items:center;gap:9px}
.block-head .bh-sub{font-size:12px;color:var(--muted-2);font-weight:500}

/* 概览 */
.hero-card{position:relative;overflow:hidden;border-radius:20px;border:1px solid rgba(139,156,255,.24);
  background:
    radial-gradient(720px 300px at 92% -10%,rgba(34,211,238,.2),transparent 62%),
    radial-gradient(620px 300px at 0% 0%,rgba(99,102,241,.3),transparent 62%),
    linear-gradient(135deg,rgba(20,26,54,.95),rgba(11,16,34,.95));
  padding:26px 28px;margin-bottom:18px}
.hero-card .hc-row{display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap}
.hero-card .hc-greet{font-size:12.5px;color:#b9c5ff;letter-spacing:.06em;margin-bottom:7px}
.hero-card h1{font-size:clamp(22px,2.4vw,30px);letter-spacing:-.7px;font-weight:850;margin-bottom:8px}
.hero-card h1 em{font-style:normal;color:#a5b4fc}
.hero-card .hc-sub{font-size:13px;color:var(--muted);max-width:520px}
.hero-card .hc-actions{display:flex;gap:10px;flex-wrap:wrap}
.level-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;border-radius:999px;font-size:11.5px;font-weight:750;background:linear-gradient(135deg,rgba(99,102,241,.3),rgba(34,211,238,.2));border:1px solid rgba(139,156,255,.35);color:#e0e7ff}
.expire-block{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:8px 0 2px}
.expire-big{font-size:34px;font-weight:850;letter-spacing:-1.4px;line-height:1}
.expire-unit{font-size:12.5px;color:var(--muted-2)}
.expire-text{font-size:12.5px;color:var(--muted)}
.expire-bar{height:6px;border-radius:6px;background:rgba(255,255,255,.1);overflow:hidden;margin-top:14px;max-width:480px}
.expire-bar i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#6366f1,#22d3ee);transition:width .6s}
.expire-hint{font-size:11.5px;color:var(--muted-2);margin-top:9px}
.hc-side{min-width:220px;padding:16px 18px;border-radius:15px;background:rgba(6,10,22,.45);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(8px)}
.hc-side .hs-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;font-size:12.5px;color:var(--muted)}
.hc-side .hs-row b{color:#e8edff;font-weight:650;font-size:13px}
.hc-side .hs-row + .hs-row{border-top:1px solid rgba(255,255,255,.06)}

.stat-card{background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:15px;padding:17px 18px;display:flex;align-items:center;gap:14px}
.stat-card .sc-ic{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:rgba(99,102,241,.14);border:1px solid rgba(139,156,255,.24);color:#a5b4fc;flex:0 0 40px}
.stat-card .sc-ic svg{width:19px;height:19px}
.stat-card .sc-v{font-size:23px;font-weight:850;letter-spacing:-.6px;line-height:1.1}
.stat-card .sc-l{font-size:11.5px;color:var(--muted-2);margin-top:2px}
.stat-card.warn .sc-ic{background:rgba(249,115,22,.13);border-color:rgba(249,115,22,.26);color:#fdba74}

/* 表格 */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.018)}
.data-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:760px}
.data-table th{background:rgba(255,255,255,.045);padding:11px 13px;text-align:left;font-weight:650;color:#c7d0e6;font-size:11.5px;letter-spacing:.03em;white-space:nowrap;border-bottom:1px solid var(--line)}
.data-table td{padding:12px 13px;border-bottom:1px solid rgba(255,255,255,.055);color:#d5ddF2;vertical-align:middle}
.data-table tr:last-child td{border-bottom:none}
.data-table tbody tr:hover td{background:rgba(255,255,255,.022)}
.data-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;color:#dfe6ff;letter-spacing:.01em}
.data-table .actions{display:flex;gap:6px;flex-wrap:wrap}
.data-table .actions .btn{padding:5px 10px;font-size:11.5px;border-radius:8px}
.tbl-empty{padding:34px 16px;text-align:center;color:var(--muted-2);font-size:13px}

/* 徽章 / 到期文本 */
.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap}
.badge::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.badge.ok{background:rgba(34,197,94,.12);border:1px solid rgba(34,197,94,.28);color:#86efac}
.badge.expired{background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.3);color:#fca5a5}
.badge.unused{background:rgba(148,163,184,.12);border:1px solid rgba(148,163,184,.26);color:#cbd5e1}
.badge.warn{background:rgba(234,179,8,.12);border:1px solid rgba(234,179,8,.28);color:#fde68a}
.expire-green{color:#4ade80 !important}
.expire-yellow{color:#eab308 !important}
.expire-orange{color:#fb923c !important}
.expire-red{color:#f87171 !important}

/* 表单 */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}
.form-grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field label{font-size:11.5px;color:var(--muted);font-weight:600;letter-spacing:.02em}
.field .hint{font-size:11px;color:var(--muted-2)}
.input,.select{
  width:100%;padding:10px 13px;border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.045);color:#eef2ff;font-size:13px;outline:none;
  transition:border-color .18s,background .18s;font-family:inherit;
}
.input:focus,.select:focus{border-color:rgba(139,156,255,.65);background:rgba(255,255,255,.06);box-shadow:0 0 0 3px rgba(99,102,241,.14)}
.input::placeholder{color:#6e7998}
.input[readonly]{opacity:.85}
.select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#8b9cff 50%),linear-gradient(135deg,#8b9cff 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:34px}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.form-msg{font-size:12.5px;margin-top:12px;display:none;padding:9px 12px;border-radius:9px}
.form-msg.ok{display:block;background:rgba(34,197,94,.1);border:1px solid rgba(34,197,94,.28);color:#86efac}
.form-msg.err{display:block;background:rgba(239,68,68,.1);border:1px solid rgba(239,68,68,.3);color:#fca5a5}
.check-row{display:flex;align-items:center;gap:10px;font-size:13px;color:#cdd5ea}
.switch{position:relative;display:inline-block;width:46px;height:25px;flex:0 0 46px}
.switch input{opacity:0;width:0;height:0}
.switch .track{position:absolute;inset:0;background:rgba(255,255,255,.18);border-radius:25px;transition:.25s}
.switch .thumb{position:absolute;top:2.5px;left:2.5px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.25s;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.switch input:checked + .track{background:linear-gradient(135deg,#16a34a,#22c55e)}
.switch input:checked ~ .thumb{transform:translateX(21px)}

/* Key 移动端卡片（桌面隐藏） */
.key-mobile-list{display:none;gap:12px}
.key-card{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));border:1px solid var(--line);border-radius:14px;padding:15px 15px 13px}
.key-card .kc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.key-card .kc-head .mono{font-size:11.5px;word-break:break-all}
.key-card .kc-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;margin-bottom:12px}
.key-card .kc-grid>div{min-width:0}
.key-card .kc-grid span{display:block;font-size:10.5px;color:var(--muted-2);margin-bottom:2px}
.key-card .kc-grid b{font-size:12.5px;color:#dfe6ff;font-weight:600;word-break:break-all}
.key-card .kc-actions{display:flex;gap:7px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.07);padding-top:11px}
.key-card .kc-actions .btn{padding:5px 10px;font-size:11.5px;border-radius:8px}

/* Key 选择卡（概览） */
.key-selector{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:14px}
.key-sel-card{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));border:1px solid var(--line);border-radius:16px;padding:16px 16px 13px;cursor:pointer;transition:transform .2s,border-color .2s,box-shadow .2s,background .2s}
.key-sel-card:hover{transform:translateY(-3px);border-color:rgba(139,156,255,.4);box-shadow:0 18px 44px rgba(2,6,23,.45)}
.key-sel-card.active{border-color:rgba(139,156,255,.72);background:linear-gradient(180deg,rgba(99,102,241,.2),rgba(255,255,255,.02));box-shadow:0 0 0 1px rgba(139,156,255,.28),0 18px 44px rgba(79,70,229,.2)}
.key-sel-card .ksc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.key-sel-card .ksc-head .mono{font-size:11px;letter-spacing:.01em;word-break:break-all}
.key-sel-card .ksc-level{font-size:15px;font-weight:750;color:#fff;margin-bottom:4px}
.key-sel-card .ksc-exp{font-size:20px;font-weight:850;letter-spacing:-.5px;margin-bottom:10px}
.key-sel-card .ksc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11.5px;color:var(--muted-2);padding:3px 0}
.key-sel-card .ksc-row b{font-weight:600;color:#c7d0e6;font-size:11.5px;word-break:break-all;text-align:right}
.key-sel-card .ksc-foot{margin-top:10px;padding-top:9px;border-top:1px solid rgba(255,255,255,.07);font-size:11px;color:#8b9cff;font-weight:650;text-align:center}
.key-sel-card.active .ksc-foot{color:#86efac}

/* 提示 / 空态 / 加载 */
.notice{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:13px;font-size:12.5px;line-height:1.7;border:1px solid var(--line);background:rgba(255,255,255,.03);color:var(--muted)}
.notice.warn{border-color:rgba(249,115,22,.3);background:rgba(249,115,22,.08);color:#fdba74}
.notice.info{border-color:rgba(99,102,241,.3);background:rgba(99,102,241,.08);color:#c7d2fe}
.empty-state{text-align:center;padding:52px 22px;color:var(--muted)}
.empty-state .es-ic{width:58px;height:58px;border-radius:17px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;background:rgba(99,102,241,.12);border:1px solid rgba(139,156,255,.24);color:#a5b4fc}
.empty-state .es-ic svg{width:26px;height:26px}
.empty-state h4{font-size:16px;color:#e8edff;font-weight:700;margin-bottom:7px}
.empty-state p{font-size:12.5px;color:var(--muted-2);margin-bottom:18px;line-height:1.7}
.loading-block{display:flex;align-items:center;justify-content:center;gap:12px;padding:56px 20px;color:var(--muted);font-size:13px}
.spin{width:20px;height:20px;border-radius:50%;border:2px solid rgba(139,156,255,.28);border-top-color:#8b9cff;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.error-block{text-align:center;padding:42px 20px;color:#fca5a5;font-size:13px}
.error-block button{margin-top:14px}

/* 支付二维码弹窗 & 通用弹窗 */
.modal{display:none;position:fixed;inset:0;z-index:1200;background:rgba(2,5,12,.74);backdrop-filter:blur(6px);align-items:center;justify-content:center;padding:20px}
.modal.show{display:flex}
.modal-card{width:100%;max-width:420px;max-height:92vh;overflow:auto;background:linear-gradient(180deg,#10162b,#0a0f1e);border:1px solid rgba(255,255,255,.13);border-radius:20px;padding:26px 24px;box-shadow:0 40px 110px rgba(0,0,0,.65);text-align:center}
.modal-card h3{font-size:18px;font-weight:800;margin-bottom:6px;letter-spacing:-.3px}
.modal-card .tip{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.7}
.modal-card .qrcode-wrap{width:222px;height:222px;margin:16px auto 4px;background:#fff;border-radius:14px;padding:10px;display:flex;align-items:center;justify-content:center}
.modal-card .qrcode-wrap img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px}
.modal-card .modal-actions{display:flex;gap:10px;margin-top:18px;justify-content:center;flex-wrap:wrap}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;text-align:left}
.modal-head h3{margin:0}
.modal-close{width:32px;height:32px;border-radius:9px;border:1px solid var(--line-strong);background:rgba(255,255,255,.05);color:var(--muted);cursor:pointer;font-size:16px;line-height:1}
.modal-close:hover{color:#fff;background:rgba(255,255,255,.1)}
.modal-card textarea.input{min-height:80px;resize:vertical}

/* 动态弹窗（升级/Key设置/换服/添加Key/昵称） */
.dyn-modal{position:fixed;inset:0;z-index:1200;background:rgba(2,5,12,.74);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px}
.dyn-card{width:100%;max-width:480px;max-height:92vh;overflow:auto;background:linear-gradient(180deg,#10162b,#0a0f1e);border:1px solid rgba(255,255,255,.13);border-radius:20px;padding:24px;box-shadow:0 40px 110px rgba(0,0,0,.65);text-align:left}
.dyn-card h3{font-size:18px;font-weight:800;margin-bottom:6px}
.dyn-card .dyn-sub{font-size:12.5px;color:var(--muted);margin-bottom:16px;line-height:1.7}
.dyn-card .lr-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.07);font-size:13px}
.dyn-card .lr-row:last-child{border-bottom:none}
.dyn-card .lr-label{width:88px;flex:0 0 88px;color:var(--muted);font-size:12.5px}
.dyn-card .lr-value{flex:1;min-width:0;color:#e8edff;display:flex;align-items:center;gap:8px;flex-wrap:wrap;word-break:break-all}
.dyn-card .lr-value input{width:100%;padding:8px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:#eef2ff;font-size:12.5px;outline:none}
.dyn-card .lr-value .code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;background:rgba(255,255,255,.06);padding:5px 8px;border-radius:6px;word-break:break-all}
.dyn-card .dyn-actions{display:flex;gap:10px;margin-top:20px}
.dyn-card .dyn-actions .btn{flex:1}
.tier-option{padding:13px 15px;margin:7px 0;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.03);cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:.18s}
.tier-option:hover{border-color:rgba(139,156,255,.5);background:rgba(99,102,241,.12)}
.tier-option.selected{border-color:rgba(139,156,255,.75);background:rgba(99,102,241,.18)}
.tier-option .t-name{font-weight:700;font-size:14px;color:#e8edff}
.tier-option .t-price{font-weight:800;font-size:15px;color:#a5b4fc}
.upgrade-summary{margin-top:14px;padding:13px 15px;border-radius:12px;background:rgba(34,197,94,.08);border:1px solid rgba(34,197,94,.25);font-size:12.5px;color:#bbf7d0;line-height:1.7}

/* Toast */
.toast-wrap{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:2000;display:flex;flex-direction:column;gap:9px;align-items:center;pointer-events:none}
.toast{min-width:180px;max-width:min(86vw,440px);padding:11px 18px;border-radius:11px;font-size:13px;color:#e8edff;background:rgba(13,19,36,.96);border:1px solid rgba(139,156,255,.34);box-shadow:0 16px 44px rgba(0,0,0,.5);backdrop-filter:blur(10px);animation:toastIn .22s ease-out}
.toast.err{border-color:rgba(239,68,68,.45);color:#fecaca;background:rgba(30,12,18,.96)}
.toast.ok{border-color:rgba(34,197,94,.42);color:#bbf7d0}
@keyframes toastIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

/* 窄屏 / 移动端抽屉 */
@media (max-width:1080px){
  .g-side{grid-template-columns:1fr}
  .g-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid.g4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-main{padding:22px 20px 60px}
}
@media (max-width:860px){
  .dash-burger{display:flex}
  .dash-side{position:fixed;left:0;top:0;bottom:0;height:100vh;z-index:86;transform:translateX(-104%);transition:transform .26s cubic-bezier(.2,.7,.2,1);background:#080d1a;padding-top:18px;width:250px;flex-basis:250px}
  .dash-side.open{transform:none}
  .side-overlay.show{display:block}
  .dash-top{padding:0 14px;gap:10px;height:60px}
  .dash-top .brand span{display:none}
  .dash-flag{display:none}
  .user-chip{max-width:150px;padding-right:6px;font-size:12px}
  .hide-sm{display:none !important}
  .dash-main{padding:18px 14px 72px;overflow-x:hidden}
  .page-title{font-size:21px}
  .page-head{width:100%}
  .page-head > div:first-child{min-width:0}
  .page-actions .btn{flex:1 1 0;min-width:0}
  .g-2,.g-3,.g-4{grid-template-columns:1fr}
  .form-grid,.form-grid.g3,.form-grid.g4{grid-template-columns:1fr}
  .hero-card{padding:20px 18px}
  .hero-card .hc-row{gap:16px}
  .hc-side{width:100%;min-width:0}
  .data-table{min-width:680px}
  .table-wrap.key-table-wrap{display:none}
  .key-mobile-list{display:grid}
  .g-2,.g-3{grid-template-columns:1fr}
  .g-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .modal-card{max-width:100%;padding:22px 16px}
  .modal-card .qrcode-wrap{width:200px;height:200px}
  .page-head{gap:12px}
  .page-actions{width:100%}
  .page-actions .btn{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto !important}
}
