/* User workspace only. Shared login, public pages and admin stay outside scope. */
.app-shell:not(.admin-shell){--bg:#f7f8fb;--panel:#fff;--ink:#243149;--muted:#718096;--line:#e3e8f0;--brand:#4d6bfe;--danger:#c44949;background:#f7f8fb;color:#243149;min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr);font-family:"Hanken Grotesk","LXGW Neo XiHei Screen",sans-serif;font-size:14px;line-height:1.65}
.app-shell:not(.admin-shell) *{box-sizing:border-box}
.app-shell:not(.admin-shell) .sidebar{width:auto;background:#f0f3fa;border-right:1px solid #e1e7f0;padding:34px 18px;position:sticky;top:0;height:100vh}
.app-shell:not(.admin-shell) .sidebar-logo{width:132px;height:auto;max-height:40px;object-fit:contain;margin:0 16px 38px;filter:none}
.app-shell:not(.admin-shell) .sidebar nav{display:grid;gap:8px}
.app-shell:not(.admin-shell) .sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:10px;color:#66738b;text-decoration:none;font-size:14px;font-weight:500;border:1px solid transparent;transition:background .16s,color .16s}
.app-shell:not(.admin-shell) .sidebar nav a:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.4}
.app-shell:not(.admin-shell) .sidebar nav a:hover{background:#e6ebf7;color:#4564c8}
.app-shell:not(.admin-shell) .sidebar nav a.router-link-exact-active{background:#fff;color:#4564c8;border-color:#dfe6f4;box-shadow:0 3px 12px #36538d06}
.app-shell:not(.admin-shell) .sidebar nav a.router-link-exact-active:before{opacity:1}
.app-shell:not(.admin-shell) .workspace{min-width:0;background:transparent}
.app-shell:not(.admin-shell) .topbar{height:74px;background:#ffffffb8;border-bottom:1px solid #e3e8f0;padding:0 38px;display:flex;align-items:center;justify-content:space-between;color:#64718a;backdrop-filter:blur(8px)}
.app-shell:not(.admin-shell) .main-content{padding:36px 38px 64px;min-width:0}
.app-shell:not(.admin-shell) .page-section{max-width:1280px;width:100%;margin:0 auto;color:#243149}
.app-shell:not(.admin-shell) .page-head{align-items:flex-start;gap:20px;margin-bottom:28px}
.app-shell:not(.admin-shell) h1{font-size:28px;line-height:1.4;font-weight:600;letter-spacing:-.5px;color:#243149;margin:0 0 8px}
.app-shell:not(.admin-shell) h2{font-size:17px;font-weight:600;color:#2d3d55;line-height:1.5;margin-top:0}
.app-shell:not(.admin-shell) p,.app-shell:not(.admin-shell) small{color:#718096}
.app-shell:not(.admin-shell) .breadcrumb{font-size:12px;letter-spacing:.2px;margin-bottom:12px;color:#8894a8}
.app-shell:not(.admin-shell) .breadcrumb strong{color:#66738b;font-weight:500}
.app-shell:not(.admin-shell) .panel,.app-shell:not(.admin-shell) .metric-card,.app-shell:not(.admin-shell) .key-card{background:#fff;border:1px solid #e3e8f0;border-radius:16px;box-shadow:0 4px 20px #243b6504;color:#243149}
.app-shell:not(.admin-shell) .panel{padding:24px}
.app-shell:not(.admin-shell) .metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:24px 0}
.app-shell:not(.admin-shell) .metric-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.app-shell:not(.admin-shell) .metric-card{padding:22px 20px;min-height:132px;display:flex;flex-direction:column;justify-content:space-between;gap:14px}
.app-shell:not(.admin-shell) .metric-card>span{color:#718096;font-size:13px}
.app-shell:not(.admin-shell) .metric-card>strong{color:#2d3d55;font-size:28px;font-weight:600;line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.app-shell:not(.admin-shell) .dashboard-page .metric-grid:first-of-type .metric-card:first-child{background:linear-gradient(135deg,#eef2ff,#fafcff);border-color:#dbe3fa}
.app-shell:not(.admin-shell) .dashboard-page .metric-grid:first-of-type .metric-card:first-child>strong{color:#4564c8}
.app-shell:not(.admin-shell) .content-grid{gap:20px;margin-top:24px}
.app-shell:not(.admin-shell) .content-grid.two-columns{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}
.app-shell:not(.admin-shell) button,.app-shell:not(.admin-shell) .button-link{border:1px solid #dfe5ef;background:#fff;color:#52617b;border-radius:9px;min-height:38px;padding:8px 14px;font:inherit;font-size:13px;cursor:pointer;transition:background .16s,border-color .16s}
.app-shell:not(.admin-shell) button:hover{background:#f0f4fc;border-color:#ccd7ed}
.app-shell:not(.admin-shell) .primary-button{background:#4d6bfe;color:#fff;border-color:#4d6bfe;box-shadow:0 3px 8px #4d6bfe18}
.app-shell:not(.admin-shell) .primary-button:hover{background:#405ee6;border-color:#405ee6}
.app-shell:not(.admin-shell) .text-button{border:0;background:transparent;color:#718096}
.app-shell:not(.admin-shell) button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.app-shell:not(.admin-shell) .danger,.app-shell:not(.admin-shell) .danger-button{color:#c44949;background:#fff7f7;border-color:#f0d6d6}
.app-shell:not(.admin-shell) .segmented-control{background:#edf1f7;border:0;border-radius:10px;padding:4px;gap:3px;display:inline-flex;flex-wrap:wrap;margin-top:16px}
.app-shell:not(.admin-shell) .segmented-control button{background:transparent;border:0;min-height:34px;color:#718096}
.app-shell:not(.admin-shell) .segmented-control button.active{background:#fff;color:#4564c8;box-shadow:0 2px 5px #34476b09}
.app-shell:not(.admin-shell) input,.app-shell:not(.admin-shell) select,.app-shell:not(.admin-shell) textarea{background:#fff;color:#243149;border:1px solid #dce3ee;border-radius:9px;padding:10px 12px;min-height:42px;font:inherit;font-size:14px;max-width:100%}
.app-shell:not(.admin-shell) input::placeholder{color:#95a1b3}
.app-shell:not(.admin-shell) input:focus,.app-shell:not(.admin-shell) select:focus,.app-shell:not(.admin-shell) textarea:focus{outline:2px solid #4d6bfe24;border-color:#6d85f7}
.app-shell:not(.admin-shell) input[type=checkbox]{min-height:auto;accent-color:#4d6bfe}
.app-shell:not(.admin-shell) .filter-bar,.app-shell:not(.admin-shell) .recharge-bar{gap:12px;background:#fff;border:1px solid #e3e8f0;border-radius:12px;padding:16px;margin:22px 0;flex-wrap:wrap}
.app-shell:not(.admin-shell) .responsive-table{overflow-x:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:#cdd7e7 transparent}
.app-shell:not(.admin-shell) table{width:100%;border-collapse:collapse;color:#34445c;font-size:13px;font-variant-numeric:tabular-nums}
.app-shell:not(.admin-shell) th{color:#7c899e;background:#f7f9fc;font-size:12px;font-weight:500;text-align:left;white-space:nowrap;padding:13px 14px;border-bottom:1px solid #e5eaf2}
.app-shell:not(.admin-shell) td{padding:15px 14px;border-bottom:1px solid #edf0f6;vertical-align:middle}
.app-shell:not(.admin-shell) tbody tr:hover{background:#fafbff}
.app-shell:not(.admin-shell) tbody tr:last-child td{border-bottom:0}
.app-shell:not(.admin-shell) .table-panel{padding:0;overflow:hidden}
.app-shell:not(.admin-shell) .panel-head{padding:20px 24px;margin:0;border-bottom:1px solid #edf0f6}
.app-shell:not(.admin-shell) .panel-head h2{margin:0}
.app-shell:not(.admin-shell) code{color:#526b93;background:#f2f5fb;border-radius:5px;font-size:12px;padding:3px 6px;overflow-wrap:anywhere}
.app-shell:not(.admin-shell) .config-list div{padding:14px 0;border-color:#edf0f6}
.app-shell:not(.admin-shell) .config-list dt{color:#7c899e;font-size:12px}
.app-shell:not(.admin-shell) .config-list dd{color:#34445c;min-width:0;margin-left:0}
.app-shell:not(.admin-shell) .config-list code{font-size:13px;white-space:normal}
.app-shell:not(.admin-shell) .status-pill{border-radius:6px;font-size:12px;line-height:1.6;padding:3px 8px;background:#f0f3f7;color:#718096;border:0;white-space:nowrap}
.app-shell:not(.admin-shell) .status-pill.success,.app-shell:not(.admin-shell) .status-pill.active,.app-shell:not(.admin-shell) .status-pill.credited{background:#eaf7f1;color:#288568}
.app-shell:not(.admin-shell) .status-pill.error,.app-shell:not(.admin-shell) .status-pill.disabled{background:#fff0ed;color:#bf6354}
.app-shell:not(.admin-shell) .notice{background:#edf3ff;color:#5f7399;border:1px solid #dce7fa;border-radius:10px;padding:14px 18px;font-size:13px;line-height:1.8}
.app-shell:not(.admin-shell) .warning{background:#fff8eb;border-color:#f0e3c7;color:#977538}
.app-shell:not(.admin-shell) .inline-error,.app-shell:not(.admin-shell) .form-error{background:#fff1f0;color:#bd4f4f;border:1px solid #f4d7d4;border-radius:8px;padding:12px 16px}
.app-shell:not(.admin-shell) .empty-state{padding:30px 20px;text-align:center;color:#94a0b3}
.app-shell:not(.admin-shell) .key-list{gap:16px}
.app-shell:not(.admin-shell) .key-card{padding:22px;gap:16px}
.app-shell:not(.admin-shell) .key-identity{min-width:0;gap:12px}
.app-shell:not(.admin-shell) .key-card>strong{font-size:15px;color:#52617b;font-variant-numeric:tabular-nums}
.app-shell:not(.admin-shell) .row-actions{gap:8px;flex-wrap:wrap}
.app-shell:not(.admin-shell) .divider{background:#e3e8f0}
.app-shell:not(.admin-shell) .model-table{background:#fff;border-color:#e3e8f0;border-radius:14px;overflow:auto}
.app-shell:not(.admin-shell) .model-head{background:#f7f9fc;color:#7c899e;font-size:12px}
.app-shell:not(.admin-shell) .model-row{color:#34445c;border-color:#edf0f6}
.app-shell:not(.admin-shell) .model-row:hover{background:#fafbff}
.app-shell:not(.admin-shell) .provider,.app-shell:not(.admin-shell) .model-name strong{color:#34445c}
.app-shell:not(.admin-shell) .capabilities span,.app-shell:not(.admin-shell) .tag{background:#eef3fb;color:#667ea3;border:0}
.app-shell:not(.admin-shell) .help-grid{gap:20px}
.app-shell:not(.admin-shell) .help-list dt{color:#52617b}
.app-shell:not(.admin-shell) .help-list dd{color:#718096}
.app-shell:not(.admin-shell) a.email-link,.app-shell:not(.admin-shell) .help-list a{color:#4564c8}
.app-shell:not(.admin-shell) .cancel-zone{background:#fff;border-color:#f0dede;border-radius:12px;padding:20px 24px}
.app-shell:not(.admin-shell) .reward-value{color:#4564c8}
.app-shell:not(.admin-shell) .modal-overlay{background:#1f32584d;backdrop-filter:blur(3px)}
.app-shell:not(.admin-shell) .modal-dialog{background:#fff;color:#34445c;border:1px solid #e3e8f0;border-radius:18px;box-shadow:0 24px 80px #16305a20;max-height:90vh;overflow-y:auto}
.app-shell:not(.admin-shell) .modal-dialog h2{color:#243149}
.app-shell:not(.admin-shell) .payment-card{background:#fff;border-color:#e3e8f0;border-radius:14px}
.app-shell:not(.admin-shell) progress{accent-color:#6a83ef}
.app-shell:not(.admin-shell) :is(button,a,input,select):focus-visible{outline:2px solid #7e94f8;outline-offset:3px}
@media(max-width:1200px){.app-shell:not(.admin-shell){grid-template-columns:200px minmax(0,1fr)}.app-shell:not(.admin-shell) .main-content{padding:28px 24px 48px}.app-shell:not(.admin-shell) .topbar{padding:0 24px}.app-shell:not(.admin-shell) .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app-shell:not(.admin-shell) .metric-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.app-shell:not(.admin-shell){display:block}.app-shell:not(.admin-shell) .sidebar{height:auto;position:relative;padding:18px 20px 12px;border-right:0;border-bottom:1px solid #e1e7f0}.app-shell:not(.admin-shell) .sidebar-logo{width:108px;max-height:30px;margin:0 0 18px}.app-shell:not(.admin-shell) .sidebar nav{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none;padding-bottom:4px}.app-shell:not(.admin-shell) .sidebar nav a{flex:none;white-space:nowrap;padding:9px 12px;font-size:13px;min-height:40px}.app-shell:not(.admin-shell) .sidebar nav a:before{display:none}.app-shell:not(.admin-shell) .topbar{height:52px;padding:0 20px;font-size:13px}.app-shell:not(.admin-shell) .main-content{padding:26px 20px 40px}.app-shell:not(.admin-shell) h1{font-size:24px}.app-shell:not(.admin-shell) .page-head{flex-wrap:wrap;gap:14px;margin-bottom:22px}.app-shell:not(.admin-shell) .metric-grid,.app-shell:not(.admin-shell) .metric-grid-three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-shell:not(.admin-shell) .metric-card{padding:18px 16px;min-height:110px}.app-shell:not(.admin-shell) .metric-card>strong{font-size:24px}.app-shell:not(.admin-shell) .content-grid.two-columns{grid-template-columns:minmax(0,1fr)}.app-shell:not(.admin-shell) .panel{padding:20px}.app-shell:not(.admin-shell) .table-panel{padding:0}.app-shell:not(.admin-shell) .filter-bar{align-items:stretch}.app-shell:not(.admin-shell) .filter-bar input{width:100%;min-width:0}.app-shell:not(.admin-shell) .key-card{flex-wrap:wrap;align-items:flex-start;padding:18px}.app-shell:not(.admin-shell) .key-identity{width:100%}.app-shell:not(.admin-shell) .key-card>strong{width:100%}.app-shell:not(.admin-shell) .help-grid{grid-template-columns:minmax(0,1fr)}.app-shell:not(.admin-shell) .modal-dialog{width:calc(100vw - 32px);padding:22px}.app-shell:not(.admin-shell) .secret-row{flex-wrap:wrap}.app-shell:not(.admin-shell) .secret-row input{width:100%;min-width:0}.app-shell:not(.admin-shell) .cancel-zone{flex-wrap:wrap;gap:16px}.app-shell:not(.admin-shell) .panel-head{padding:18px 20px}}
@media(prefers-reduced-motion:reduce){.app-shell:not(.admin-shell) *{transition:none!important}}
.app-shell:not(.admin-shell) code{border:0;box-shadow:none}.app-shell:not(.admin-shell) .page-title-line{align-items:baseline;gap:12px;flex-wrap:wrap}.app-shell:not(.admin-shell) .page-title-line p{font-size:13px}.app-shell:not(.admin-shell) .dashboard-page .responsive-table table{min-width:460px}
