:root{
  color-scheme:light;
  --agent-primary:#f9d423;
  --agent-cyan:#409eff;
  --agent-lime:#67c23a;
  --agent-yellow:#e6a23c;
  --agent-danger:#f56c6c;
  --agent-success:#67c23a;
  --agent-bg:#f5f9ff;
  --agent-sidebar:#000;
  --agent-surface:#fff;
  --agent-surface-strong:#f5f7fa;
  --agent-surface-soft:#eef3f8;
  --agent-line:#dcdfe6;
  --agent-line-strong:#b7c2cf;
  --agent-ink:#303133;
  --agent-muted:#909399;
  --agent-backdrop:none;
  --ink:var(--agent-ink);
  --muted:var(--agent-muted);
  --line:var(--agent-line);
  --bg:var(--agent-bg);
  --panel:var(--agent-surface);
  --primary:var(--agent-primary);
  --primary-ink:#17212c;
  --primary-soft:#fff7cc;
  --success:var(--agent-success);
  --warning:var(--agent-yellow);
  --danger:var(--agent-danger);
  --font-display:"DengXian","Microsoft YaHei UI","PingFang SC",sans-serif;
  --font-body:"Microsoft YaHei UI","PingFang SC","Noto Sans CJK SC",sans-serif;
  --font-money:"Bahnschrift","DIN Alternate","Arial Narrow",sans-serif
}
html[data-theme="dark"]{
  color-scheme:dark;
  --agent-primary:#f9d423;
  --agent-cyan:#40a9ff;
  --agent-lime:#8bdc65;
  --agent-yellow:#f0b75a;
  --agent-danger:#ff7b72;
  --agent-success:#70d19a;
  --agent-bg:#101722;
  --agent-sidebar:#000;
  --agent-surface:#182230;
  --agent-surface-strong:#202c3b;
  --agent-surface-soft:#273546;
  --agent-line:#334253;
  --agent-line-strong:#4a6074;
  --agent-ink:#f4f6f8;
  --agent-muted:#a8b3bf;
  --agent-backdrop:url("/agent/agent-data-stream-dark.webp");
  --primary-soft:#3e3820
}
html{background:var(--agent-bg)}
.agent-portal{min-width:320px;color:var(--agent-ink);background-color:var(--agent-bg);background-image:var(--agent-backdrop);background-position:center top;background-size:cover;background-attachment:fixed}
.agent-portal button,.agent-portal input,.agent-portal select,.agent-portal textarea{border-radius:5px}
.agent-portal button{transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease,transform 90ms ease}
.agent-portal button:active:not(:disabled){transform:translateY(1px)}
.agent-portal button:focus-visible,.agent-portal input:focus-visible,.agent-portal select:focus-visible,.agent-portal textarea:focus-visible,.agent-portal a:focus-visible{outline:3px solid color-mix(in srgb,var(--agent-cyan) 38%,transparent);outline-offset:2px}
.agent-portal button.is-busy{position:relative;padding-right:34px}
.agent-portal button.is-busy::after{content:"";position:absolute;right:12px;width:13px;height:13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:agent-spin 650ms linear infinite}
@keyframes agent-spin{to{transform:rotate(360deg)}}

/* 图标统一来自已经入库的 Bootstrap Icons。 */
.brand-icon,.nav-icon{display:block;flex:none;background:currentColor;mask-position:center;mask-repeat:no-repeat;mask-size:contain}
.brand-icon{width:21px;height:21px}
.icon-bell{mask-image:url("/vendor/bootstrap-icons-1.13.1/bell.svg")}
.icon-person{mask-image:url("/vendor/bootstrap-icons-1.13.1/person.svg")}
.icon-person-add{mask-image:url("/vendor/bootstrap-icons-1.13.1/person-plus.svg")}
.icon-gear{mask-image:url("/vendor/bootstrap-icons-1.13.1/gear.svg")}
.icon-grid{mask-image:url("/vendor/bootstrap-icons-1.13.1/grid.svg")}
.icon-wallet{mask-image:url("/vendor/bootstrap-icons-1.13.1/wallet2.svg")}
.icon-chevron{mask-image:url("/vendor/bootstrap-icons-1.13.1/chevron-right.svg")}
.icon-eye{mask-image:url("/vendor/bootstrap-icons-1.13.1/eye.svg")}
.icon-alipay{mask-image:url("/vendor/bootstrap-icons-1.13.1/alipay.svg")}
.icon-wechat{mask-image:url("/vendor/bootstrap-icons-1.13.1/wechat.svg")}
.icon-bank{mask-image:url("/vendor/bootstrap-icons-1.13.1/bank.svg")}
.icon-receipt{mask-image:url("/vendor/bootstrap-icons-1.13.1/receipt.svg")}
.icon-qr{mask-image:url("/vendor/bootstrap-icons-1.13.1/qr-code.svg")}
.icon-yuan{mask-image:url("/vendor/bootstrap-icons-1.13.1/currency-yen.svg")}
.icon-music{mask-image:url("/vendor/bootstrap-icons-1.13.1/music-note-beamed.svg")}
.icon-card{mask-image:url("/vendor/bootstrap-icons-1.13.1/credit-card-2-front.svg")}
.icon-book{mask-image:url("/vendor/bootstrap-icons-1.13.1/book.svg")}
.icon-cash{mask-image:url("/vendor/bootstrap-icons-1.13.1/cash-stack.svg")}
.icon-chat{mask-image:url("/vendor/bootstrap-icons-1.13.1/chat-dots.svg")}
.icon-headset{mask-image:url("/vendor/bootstrap-icons-1.13.1/headset.svg")}
.icon-graph{mask-image:url("/vendor/bootstrap-icons-1.13.1/graph-up-arrow.svg")}
.icon-journal{mask-image:url("/vendor/bootstrap-icons-1.13.1/journal-text.svg")}
.icon-shield{mask-image:url("/vendor/bootstrap-icons-1.13.1/shield-lock.svg")}
.icon-send{mask-image:url("/vendor/bootstrap-icons-1.13.1/arrow-up-right.svg")}
.icon-sun{mask-image:url("/vendor/bootstrap-icons-1.13.1/sun.svg")}
.icon-moon{mask-image:url("/vendor/bootstrap-icons-1.13.1/moon-stars.svg")}

.agent-theme-toggle{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--agent-line);color:var(--agent-ink);background:var(--agent-surface-strong)}
.agent-theme-toggle:hover{border-color:var(--agent-line-strong);background:var(--agent-surface-soft)}
.agent-theme-sun{display:none}
.agent-theme-moon{display:block}
html[data-theme="dark"] .agent-theme-sun{display:block}
html[data-theme="dark"] .agent-theme-moon{display:none}

/* 登录页的品牌区和表单保持为一个连续面板。 */
.agent-portal .login-shell{display:grid;grid-template-columns:minmax(330px,430px) minmax(420px,550px);place-content:center;align-items:stretch;justify-items:stretch;gap:0;column-gap:0;min-height:100vh;padding:34px;background-color:rgba(4,13,24,.9);background-image:var(--agent-backdrop);background-position:center;background-size:cover}
.agent-login-brand{position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;min-height:590px;padding:48px 42px;color:#fff;background:#071421;border:1px solid #284157;border-right:0;border-radius:8px 0 0 8px;overflow:hidden}
.agent-login-brand::before{content:"";position:absolute;inset:0;background-image:url("/agent/agent-data-stream-dark.webp");background-position:58% 30%;background-size:auto 100%;opacity:.56;pointer-events:none}
.agent-login-brand>*{position:relative;z-index:1}
.agent-login-brand .login-logo{width:78px;height:78px;margin:0 0 auto;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:#fff}
.agent-login-brand strong,.agent-login-brand span{display:block}
.agent-login-brand strong{font-size:38px;letter-spacing:-.045em;text-shadow:0 2px 18px rgba(0,0,0,.42)}
.agent-login-brand span{margin-top:9px;color:#bad0e2;font-size:15px;font-weight:650}
.agent-login-brand .agent-login-theme{position:absolute;top:24px;right:24px;border-color:#35536b;background:#0b2132}
.agent-portal .login-card{align-self:stretch;width:auto;min-height:590px;padding:82px 70px;border:1px solid var(--agent-line);border-left:0;border-radius:0 8px 8px 0;color:var(--agent-ink);background:var(--agent-surface);box-shadow:none}
.agent-portal .login-card h1{margin:8px 0 9px;text-align:left;font-size:32px;letter-spacing:-.035em}
.agent-portal .login-card>p:not(.login-kicker){margin:0 0 36px;color:var(--agent-muted);text-align:left}
.agent-portal .login-kicker{margin:0!important;color:var(--agent-cyan)!important;text-align:left!important;font-size:12px;font-weight:800;letter-spacing:.12em}
.agent-portal .login-note{text-align:left}
.agent-portal .login-card label{color:var(--agent-ink);font-weight:650}
.agent-portal .login-card input{min-height:50px;border-color:var(--agent-line);color:var(--agent-ink);background:var(--agent-surface-strong)}
.agent-portal .login-card input:focus-visible{border-color:var(--agent-cyan);box-shadow:0 0 0 3px color-mix(in srgb,var(--agent-cyan) 14%,transparent)}
.agent-portal .login-card .primary{min-height:52px;margin-top:12px;color:#fff;background:var(--agent-primary);box-shadow:0 8px 22px rgba(18,100,247,.28)}

/* 桌面左栏和业务区属于同一个连续应用壳。 */
.agent-portal .app{position:relative;display:grid;grid-template-columns:152px minmax(0,1fr);grid-template-rows:150px 1fr;width:100%;min-height:100vh;margin:0;column-gap:0;background:var(--agent-bg);border:0}
.agent-topbar{position:sticky;z-index:40;top:0;grid-column:1;grid-row:1;display:flex;align-items:center;min-height:150px;padding:0;color:var(--agent-ink);background:var(--agent-sidebar);border-right:1px solid var(--agent-line);border-bottom:1px solid var(--agent-line)}
.agent-portal .brand{align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:151px;padding:12px 10px;text-align:center;border-right:1px solid var(--agent-line)}
.agent-portal .brand>div{display:grid;justify-items:center}
.agent-portal .brand img{width:44px;height:44px;border:0;border-radius:50%;background:#fff}
.agent-portal .brand strong{font-size:22px;line-height:1.18;letter-spacing:-.03em;white-space:nowrap}
.agent-portal .brand small{display:block;margin-top:2px;color:var(--agent-muted);font-size:12px}
.agent-topbar-actions{position:fixed;z-index:45;bottom:18px;display:grid;grid-template-columns:repeat(3,40px);gap:4px;width:140px;padding-left:8px}
.agent-topbar-actions .agent-header-icon{width:40px;height:40px}
.agent-sidebar-help{position:fixed;z-index:45;bottom:70px;left:10px;display:flex;align-items:center;gap:7px;width:132px;min-height:42px;padding:7px 8px;border:0!important;color:var(--agent-muted);background:transparent!important;font-size:13px}
.agent-sidebar-help:hover{color:var(--agent-ink)}
.agent-sidebar-help .icon-chevron{width:12px;height:12px;margin-left:auto}
.agent-header-icon{position:relative;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid transparent;border-radius:5px!important;color:var(--agent-muted);background:transparent}
.agent-header-icon:hover{color:var(--agent-ink);background:var(--agent-surface-soft);border-color:var(--agent-line)}
.agent-header-avatar{color:#fff;background:var(--agent-primary)}
.agent-header-avatar:hover{color:#fff;background:#2877ff;border-color:#4e91ff}
.agent-header-avatar .brand-icon{width:24px;height:24px}
.agent-header-dot{position:absolute;top:7px;right:7px;width:8px;height:8px;border:2px solid var(--agent-sidebar);border-radius:50%;background:var(--agent-danger)}
.agent-portal .logout{display:none}

.agent-portal .agent-nav-shell{position:sticky;z-index:30;top:150px;grid-column:1;grid-row:2;align-self:start;height:auto;min-height:calc(100vh - 150px);padding:0 0 38px;color:var(--agent-ink);background:var(--agent-sidebar);border:0;border-right:1px solid var(--agent-line)}
.agent-portal nav{display:grid;gap:5px;width:100%;margin:0;padding:0}
.agent-portal nav button{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:8px 19px;border:0;border-radius:0!important;color:var(--agent-muted);background:transparent;text-align:left;font-size:17px;font-weight:650}
.agent-portal nav button:hover{color:var(--agent-ink);background:var(--agent-surface-strong)}
.agent-portal nav button.active{color:#fff;background:#0f4d92;box-shadow:inset 3px 0 0 var(--agent-lime)}
html[data-theme="light"] .agent-portal nav button.active{color:#0e3761;background:#dcecff}
.nav-icon{width:21px;height:21px}
nav button[data-view="dashboard"] .nav-icon{mask-image:url("/vendor/bootstrap-icons-1.13.1/house.svg")}
nav button[data-view="orders"] .nav-icon{mask-image:url("/vendor/bootstrap-icons-1.13.1/receipt.svg")}
nav button[data-view="team"] .nav-icon{mask-image:url("/vendor/bootstrap-icons-1.13.1/people.svg")}
nav button[data-view="services"] .nav-icon{mask-image:url("/vendor/bootstrap-icons-1.13.1/grid.svg")}
nav button[data-view="profile"] .nav-icon{mask-image:url("/vendor/bootstrap-icons-1.13.1/person.svg")}

.agent-portal .workspace{grid-column:2;grid-row:1/3;width:100%;min-width:0;margin:0;padding:24px;background-color:var(--agent-bg);background-image:var(--agent-backdrop);background-position:center top;background-size:cover;background-attachment:fixed}
.agent-page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:0 0 16px;padding:16px 18px!important;border:1px solid var(--agent-line)!important;background:rgba(13,29,43,.94)}
html[data-theme="light"] .agent-page-heading{background:rgba(255,255,255,.94)}
.agent-page-heading h1{font-size:24px;letter-spacing:-.025em}
.agent-page-heading p{margin-top:2px!important;color:var(--agent-muted)!important}
#appView[data-current-view="dashboard"] .agent-page-heading{display:none}
.agent-portal .notice{margin:0 0 14px;border:1px solid color-mix(in srgb,var(--agent-yellow) 52%,var(--agent-line));border-radius:5px;color:var(--agent-ink);background:var(--agent-surface-strong)}

/* 首页把接单、余额、渠道、队列和收益保持在一屏层级内。 */
.agent-dashboard{display:grid;grid-template-columns:minmax(560px,1.55fr) minmax(330px,.85fr);gap:12px;width:100%;max-width:none;margin:0}
.agent-home-intro{display:none}
.agent-command{grid-column:1/-1;overflow:hidden;color:var(--agent-ink);background:rgba(9,25,38,.94);border:1px solid var(--agent-line);box-shadow:0 15px 36px rgba(0,7,16,.28)}
html[data-theme="light"] .agent-command{background:rgba(255,255,255,.95);box-shadow:0 13px 30px rgba(27,70,105,.11)}
.agent-workbench{display:grid;grid-template-columns:minmax(245px,.8fr) minmax(280px,1fr) minmax(290px,.95fr);align-items:center;gap:24px;min-height:312px;padding:24px 28px;background:transparent;border:0}
.agent-status-orbit{position:relative;isolation:isolate;display:grid;place-items:center;width:min(268px,100%);aspect-ratio:1;margin:auto;border-radius:50%;overflow:hidden}
.agent-status-orbit img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;animation:agent-orbit 28s linear infinite}
.agent-status-orbit-light{display:none!important}
html[data-theme="light"] .agent-status-orbit-dark{display:none!important}
html[data-theme="light"] .agent-status-orbit-light{display:block!important}
.agent-workbench.is-active .agent-status-orbit img{animation-duration:12s}
.agent-workbench.is-preparing .agent-status-orbit img{animation-duration:7s}
@keyframes agent-orbit{to{transform:rotate(360deg)}}
.agent-status-orbit-copy{position:relative;z-index:1;width:58%;text-align:center}
.agent-status-orbit-copy h2{margin:0;color:var(--agent-ink);font-size:27px;line-height:1.2;letter-spacing:-.035em}
.agent-status-orbit-copy p{margin:8px 0 0;color:#a6bbcc;font-size:13px;line-height:1.5}
html[data-theme="light"] .agent-status-orbit-copy p{color:#60798c}
.agent-work-actions{display:grid;gap:14px;align-content:center}
.agent-work-primary{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:94px;border:1px solid #2d82ff!important;border-radius:5px!important;color:#fff!important;background:var(--agent-primary)!important;font-size:27px;letter-spacing:.01em;box-shadow:0 8px 18px rgba(0,8,20,.34)}
.agent-work-primary:hover{background:#2474ff!important}
.agent-primary-state{position:absolute;right:8%;display:flex;align-items:center;gap:8px;color:#dfffd0;font-size:.48em;font-weight:650}
.agent-work-primary.danger{color:#ffd8d2!important;background:#2b1b1c!important;border-color:#854238!important;box-shadow:none}
html[data-theme="light"] .agent-work-primary.danger{color:#ad2d20!important;background:#fff3f0!important}
.agent-work-settings{display:flex;align-items:center;width:100%;min-height:68px;padding:10px 20px;border:1px solid var(--agent-line)!important;border-radius:5px!important;color:var(--agent-ink)!important;background:var(--agent-surface-strong)!important;text-align:left;font-size:16px}
.agent-work-settings:hover{border-color:var(--agent-line-strong)!important;background:var(--agent-surface-soft)!important}
.agent-work-settings .icon-gear{margin-right:12px;color:var(--agent-cyan)}
.agent-work-settings .icon-chevron{margin-left:auto;width:17px;height:17px;color:var(--agent-muted)}
.agent-readiness{display:grid;gap:5px;margin:0;padding:11px 0 0;border-top:1px solid var(--agent-line);list-style:none}
.agent-readiness li{color:var(--agent-yellow);font-size:12px}
.agent-session-summary{align-self:stretch;padding:18px 22px;background:var(--agent-surface);border:1px solid var(--agent-line)}
.agent-session-summary h3{margin:0 0 10px;padding-bottom:13px;border-bottom:1px solid var(--agent-line);font-size:18px}
.agent-session-summary>div{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:44px;border-bottom:1px solid color-mix(in srgb,var(--agent-line) 72%,transparent)}
.agent-session-summary>div:last-child{border-bottom:0}
.agent-session-summary span{color:var(--agent-muted)}
.agent-session-summary b{color:var(--agent-ink);font:650 14px/1.3 var(--font-money);text-align:right}
.agent-session-summary>div:last-child b{color:var(--agent-success)}

.agent-balance{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(230px,1fr) minmax(260px,1.1fr) minmax(128px,.52fr);grid-template-rows:auto auto;align-items:stretch;padding:0;background:var(--agent-surface);border:0;border-top:1px solid var(--agent-line)}
.agent-balance-head{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:space-between;padding:18px 22px 0;color:var(--agent-muted);font-size:13px}
.agent-balance-head>span:first-child{display:flex;align-items:center;gap:7px}
.agent-balance-toggle{display:grid;place-items:center;width:38px;height:38px;padding:0;border:0!important;color:var(--agent-muted)!important;background:transparent!important}
.agent-balance-toggle:hover{color:var(--agent-ink)!important;background:var(--agent-surface-soft)!important}
.agent-balance-toggle.is-hidden{opacity:.58}
.agent-balance-head .icon-eye{width:18px;height:18px}
.agent-balance>strong{grid-column:1;grid-row:2;display:block;min-height:47px;padding:0 22px 18px;color:var(--agent-yellow);font:700 32px/1.18 var(--font-money);font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.agent-balance-facts{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:repeat(2,1fr);align-items:center;border-left:1px solid var(--agent-line)}
.agent-balance-facts>div{min-width:0;padding:19px 24px}
.agent-balance-facts>div:last-child{position:relative}
.agent-balance-facts>div+div{border-left:1px solid var(--agent-line)}
.agent-balance-facts span{display:block;color:var(--agent-muted);font-size:13px}
.agent-balance-facts b{display:block;margin-top:6px;color:var(--agent-cyan);font:650 22px/1.3 var(--font-money);font-variant-numeric:tabular-nums}
.agent-balance-spark{position:absolute;right:9%;bottom:24%;width:54px;height:24px;color:var(--agent-cyan)}
.agent-balance-actions{grid-column:3;grid-row:1/3;display:grid;grid-template-columns:repeat(2,1fr);border-left:1px solid var(--agent-line)}
.agent-balance-actions .table-action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:92px;border:0;border-radius:0;color:#fff;background:#1057c8;font-size:16px}
.agent-balance-actions .table-action+button{border-left:1px solid var(--agent-line);background:#124f3f}
.agent-balance-actions .table-action:hover{background:#1264f7}
.agent-balance-actions .table-action+button:hover{background:#176650}
html[data-theme="light"] .agent-balance-actions .table-action{color:#0f5ac9;background:#e6effd}
html[data-theme="light"] .agent-balance-actions .table-action+button{color:#14654f;background:#e4f3ed}
html[data-theme="light"] .agent-balance-actions .table-action:hover{background:#d7e7ff}
html[data-theme="light"] .agent-balance-actions .table-action+button:hover{background:#d4ece2}
.agent-all-services{grid-column:4;grid-row:1/3;display:flex;align-items:center;justify-content:center;gap:9px;width:auto;min-height:92px;margin:0;padding:12px 16px;border:0;border-left:1px solid var(--agent-line);border-radius:0!important;color:var(--agent-ink);background:var(--agent-surface-strong);font-weight:650}
.agent-all-services:hover{background:var(--agent-surface-soft)}
.agent-all-services .icon-chevron{width:15px;height:15px;color:var(--agent-muted)}

.agent-home-section{min-width:0;padding:20px 22px;background:rgba(13,29,43,.96);border:1px solid var(--agent-line)}
html[data-theme="light"] .agent-home-section{background:rgba(255,255,255,.96)}
.agent-channel-offers{grid-column:1;grid-row:2}
.agent-current-orders{grid-column:2;grid-row:2}
.agent-earnings{grid-column:1/-1;grid-row:3}
.agent-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.agent-section-head h2{margin:0;font-size:18px;letter-spacing:-.02em}
.agent-channel-pulse{width:24px;height:24px;margin-right:auto;color:var(--agent-cyan)}
.agent-text-action{display:flex;align-items:center;gap:3px;min-height:44px;padding:6px 0;border:0!important;color:var(--agent-muted)!important;background:transparent!important;font-weight:500}
.agent-text-action:hover{color:var(--agent-ink)!important}
.agent-text-action .icon-chevron{width:15px;height:15px}
.agent-home-empty{margin:28px 0 9px;color:var(--agent-muted);text-align:center}

.agent-offer-list{display:grid;margin-top:8px;border-top:1px solid var(--agent-line)}
.agent-offer-columns{display:grid;grid-template-columns:48px minmax(130px,1.05fr) .55fr 1.15fr .9fr .65fr 18px;align-items:center;gap:13px;min-height:38px;padding:0 4px;color:var(--agent-muted);font-size:12px;border-bottom:1px solid var(--agent-line)}
.agent-offer-columns span:first-child{grid-column:1/3}
.agent-offer-row{display:grid;grid-template-columns:48px minmax(130px,1.05fr) .55fr 1.15fr .9fr .65fr 18px;align-items:center;gap:13px;min-height:69px;padding:10px 4px;border:0;border-bottom:1px solid var(--agent-line);border-radius:0!important;color:var(--agent-ink);background:transparent;text-align:left}
.agent-offer-row:last-child{border-bottom:0}
.agent-offer-row:hover{background:var(--agent-surface-strong)}
.agent-offer-title strong,.agent-offer-rate strong{display:block}
.agent-offer-title strong{font-size:14px}
.agent-offer-rate{text-align:left}
.agent-offer-rate strong{color:var(--agent-yellow);font:700 18px/1.2 var(--font-money)}
.agent-offer-range,.agent-offer-estimated,.agent-offer-availability{min-width:0;color:var(--agent-muted);font:500 12px/1.35 var(--font-money)}
.agent-offer-estimated{color:var(--agent-cyan)}
.agent-offer-availability{display:flex;align-items:center;gap:7px;color:var(--agent-ink);white-space:nowrap}
.agent-live-dot{display:block;flex:none;width:8px;height:8px;border-radius:50%;background:var(--agent-success);box-shadow:0 0 10px color-mix(in srgb,var(--agent-success) 70%,transparent)}
.agent-offer-row>.icon-chevron{width:14px;height:14px;color:var(--agent-muted)}
.agent-offer-footer{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:auto;border:0!important;color:var(--agent-muted)!important;background:transparent!important}
.agent-offer-footer:hover{color:var(--agent-ink)!important}
.agent-offer-footer .icon-chevron{width:14px;height:14px}

.agent-channel-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:6px;color:#fff;background:#1677ff}
.agent-channel-mark .brand-icon{width:20px;height:20px}
.agent-channel-mark.is-wechat,.agent-channel-mark.is-wechat_fixed{background:#20b45a}
.agent-channel-mark.is-bank_card,.agent-channel-mark.is-bank_card_large{background:#2568d8}
.agent-channel-mark.is-aggregate_qr,.agent-channel-mark.is-union_qr_scan{background:#704fd6}
.agent-channel-mark.is-ecny{background:#d45544}
.agent-channel-mark.is-douyin{background:#141b22}
.agent-channel-mark.is-unionpay{background:#0b75ba}

.agent-order-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:7px 0 0;border-top:1px solid var(--agent-line);border-bottom:1px solid var(--agent-line)}
.agent-order-stat{display:grid;justify-items:center;gap:3px;min-height:65px;padding:9px;border:0;border-radius:0!important;color:var(--agent-muted);background:transparent}
.agent-order-stat+.agent-order-stat{border-left:1px solid var(--agent-line)}
.agent-order-stat:hover{color:var(--agent-ink);background:var(--agent-surface-strong)}
.agent-order-stat b{color:var(--agent-yellow);font:700 22px/1 var(--font-money)}
.agent-order-stat:nth-child(2) b,.agent-order-stat:nth-child(3) b{color:var(--agent-cyan)}
.agent-current-title{margin:12px 0 0;color:var(--agent-muted);font-size:12px}
.agent-current-list{display:grid;margin-top:10px}
.agent-current-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:64px;padding:9px 0;border:0;border-top:1px solid var(--agent-line);border-radius:0!important;color:var(--agent-ink);background:transparent;text-align:left}
.agent-current-row:hover{background:var(--agent-surface-strong)}
.agent-current-copy strong,.agent-current-copy small{display:block}
.agent-current-copy strong{font-size:14px}.agent-current-copy small{margin-top:2px;color:var(--agent-muted);font-size:11px}
.agent-current-row>.icon-chevron{width:14px;height:14px;color:var(--agent-muted)}

.agent-week-total{display:flex;align-items:baseline;gap:9px;margin:11px 0 2px;color:var(--agent-muted)}
.agent-week-total strong{color:var(--agent-cyan);font:650 19px/1.3 var(--font-money)}
.agent-week-chart{position:relative;display:grid;grid-template-rows:minmax(52px,1fr) auto;min-height:132px;padding-top:7px;border-bottom:1px solid var(--agent-line)}
.agent-week-canvas{display:block;width:100%;height:100%;min-height:52px}
.agent-week-axis{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.agent-week-column{display:grid;grid-template-rows:auto auto;gap:5px;align-items:end;justify-items:center;min-width:0;padding:0 0 7px}
.agent-week-value{font:500 10px/1 var(--font-money);font-variant-numeric:tabular-nums}
.agent-week-label{color:var(--agent-muted);font-size:11px}
.agent-week-column:nth-child(5) .agent-week-label{color:var(--agent-lime)}

/* 其他代理业务页继承同一终端视觉，业务接口与校验不变。 */
#appView:not([data-current-view="dashboard"]) #content{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-content:start}
#appView[data-current-view="orders"] #content{grid-template-columns:minmax(0,1fr)}
#appView:not([data-current-view="dashboard"]) #content>.panel{margin:0;background:rgba(13,29,43,.96)}
html[data-theme="light"] #appView:not([data-current-view="dashboard"]) #content>.panel{background:rgba(255,255,255,.97)}
.agent-page-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;overflow:hidden;border:1px solid var(--agent-line);border-radius:5px;background:var(--agent-line)}
.agent-page-metric{position:relative;min-height:86px;padding:16px 18px;background:var(--agent-surface)}
.agent-page-metric::after{content:"";position:absolute;right:14px;bottom:13px;width:28px;height:3px;background:var(--agent-line-strong)}
.agent-page-metric small,.agent-page-metric strong{display:block}.agent-page-metric small{color:var(--agent-muted);font-size:12px}.agent-page-metric strong{margin-top:7px;color:var(--agent-ink);font:700 24px/1.1 var(--font-money);font-variant-numeric:tabular-nums}
.agent-page-metric.is-cyan strong{color:var(--agent-cyan)}.agent-page-metric.is-cyan::after{background:var(--agent-cyan)}
.agent-page-metric.is-warning strong{color:var(--agent-yellow)}.agent-page-metric.is-warning::after{background:var(--agent-yellow)}
.agent-page-metric.is-success strong{color:var(--agent-success)}.agent-page-metric.is-success::after{background:var(--agent-success)}
.agent-page-metric.is-danger strong{color:var(--agent-danger)}.agent-page-metric.is-danger::after{background:var(--agent-danger)}
#appView[data-current-view="team"] #content{grid-template-columns:minmax(260px,.34fr) minmax(0,1fr)}
#appView[data-current-view="team"] .agent-page-metrics{grid-column:1/-1}
#appView[data-current-view="team"] .agent-team-overview{min-height:194px;border:1px solid var(--agent-line);border-radius:5px;display:grid;align-content:center}
#appView[data-current-view="team"] .agent-team-overview+.panel{border-radius:5px}
#appView[data-current-view="profile"] #content{grid-template-columns:minmax(290px,.38fr) minmax(0,1fr)}
#appView[data-current-view="profile"] .agent-profile-hero{align-content:center;min-height:164px;border:1px solid var(--agent-line);border-radius:5px}
#appView[data-current-view="profile"] .agent-profile-hero+.panel{border-radius:5px}
#appView[data-current-view="profile"] .agent-profile-logout{grid-column:1/-1}
#appView[data-current-view="usdt"] #content{grid-template-columns:repeat(2,minmax(0,1fr))}
#appView[data-current-view="usdt"] #content>.recharge-panel{grid-column:1/-1}
#appView[data-current-view="buyUsdtHelp"] #content>.panel{max-width:none}
.agent-portal .panel-head h2{display:flex;align-items:center;gap:9px}
.agent-portal .panel-head h2::before{content:"";display:block;width:18px;height:18px;flex:none;color:var(--agent-cyan);background:currentColor;mask:url("/vendor/bootstrap-icons-1.13.1/grid.svg") center/contain no-repeat}
#appView[data-current-view="orders"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/receipt.svg")}
#appView[data-current-view="team"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/people.svg")}
#appView[data-current-view="collections"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/qr-code.svg")}
#appView[data-current-view="commissions"] .panel-head h2::before,#appView[data-current-view="ledger"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/graph-up-arrow.svg")}
#appView[data-current-view="payouts"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/cash-stack.svg")}
#appView[data-current-view="usdt"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/wallet2.svg")}
#appView[data-current-view="support"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/chat-dots.svg")}
#appView[data-current-view="events"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/bell.svg")}
#appView[data-current-view="security"] .panel-head h2::before{mask-image:url("/vendor/bootstrap-icons-1.13.1/shield-lock.svg")}
.agent-portal .panel,.agent-portal .card{border:1px solid var(--agent-line);border-radius:5px;color:var(--agent-ink);background:var(--agent-surface);box-shadow:none}
.agent-portal .panel{margin-bottom:12px}
.agent-portal .panel-head{min-height:58px;padding:14px 17px;border-color:var(--agent-line);background:var(--agent-surface-strong)}
.agent-portal .panel-head h2{font-size:16px}
.agent-portal th{color:var(--agent-muted);background:var(--agent-surface-strong);font-weight:650}
.agent-portal th,.agent-portal td{border-color:var(--agent-line)}
.agent-portal tbody tr:hover{background:var(--agent-surface-strong)}
.agent-portal .status{border:1px solid var(--agent-line);border-radius:3px;color:var(--agent-muted);background:var(--agent-surface-soft)}
.agent-portal .status.ok{border-color:#276e4a;color:#73e2a2;background:#123323}
.agent-portal .status.warn{border-color:#77611e;color:#ffd35e;background:#342b13}
.agent-portal .status.bad{border-color:#74352f;color:#ff9b8c;background:#341b1c}
html[data-theme="light"] .agent-portal .status.ok{color:#14734a;background:#e5f6ee}
html[data-theme="light"] .agent-portal .status.warn{color:#8f6506;background:#fff4d7}
html[data-theme="light"] .agent-portal .status.bad{color:#b23a2c;background:#ffebe8}
.agent-portal .table-action{min-height:40px;border:1px solid var(--agent-line);border-radius:4px;color:var(--agent-cyan);background:var(--agent-surface-strong)}
.agent-portal .table-action:hover{border-color:var(--agent-line-strong);background:var(--agent-surface-soft)}
.agent-portal .table-action.danger{color:#ff9e91;border-color:#74352f;background:#321b1d}
.agent-portal .primary{background:var(--agent-primary)}
.agent-portal .secondary{color:var(--agent-ink);background:var(--agent-surface-soft)}
.agent-portal .empty,.agent-portal .loading{padding:44px 18px;color:var(--agent-muted);background:var(--agent-surface)}
.agent-portal .empty{display:grid;place-items:center;gap:12px;min-height:154px}
.agent-portal .empty::before{content:"";display:block;width:34px;height:34px;color:var(--agent-line-strong);background:currentColor;mask:url("/vendor/bootstrap-icons-1.13.1/receipt.svg") center/contain no-repeat}
.agent-portal label{color:var(--agent-ink)}
.agent-portal input,.agent-portal select,.agent-portal textarea{border-color:var(--agent-line);color:var(--agent-ink);background:var(--agent-surface-strong)}
.agent-portal select option{color:var(--agent-ink);background:var(--agent-surface)}

.agent-feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.agent-feature-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;min-height:74px;padding:11px 16px;border:0;border-right:1px solid var(--agent-line);border-bottom:1px solid var(--agent-line);border-radius:0!important;color:var(--agent-ink);background:var(--agent-surface);text-align:left}
.agent-feature-row:nth-child(2n){border-right:0}.agent-feature-row:hover{background:var(--agent-surface-strong)}
.agent-feature-icon{display:grid;place-items:center;width:32px;height:42px;color:var(--agent-cyan)}
.agent-feature-copy strong,.agent-feature-copy small{display:block}.agent-feature-copy strong{font-size:14px}.agent-feature-copy small{margin-top:2px;color:var(--agent-muted);font-size:12px}
.agent-feature-chevron{width:15px;height:15px;flex:none;background:var(--agent-muted);mask:url("/vendor/bootstrap-icons-1.13.1/chevron-right.svg") center/contain no-repeat}
.agent-profile-hero{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px;margin:0;padding:22px 20px;color:var(--agent-ink);background:var(--agent-surface-strong);border:1px solid var(--agent-line);border-bottom:0;border-radius:5px 5px 0 0}
.agent-profile-avatar{display:block;width:54px;height:54px;border:1px solid var(--agent-line);border-radius:50%;background:#fff}
.agent-profile-identity strong,.agent-profile-identity span{display:block}.agent-profile-identity strong{font-size:19px}.agent-profile-identity span{margin-top:2px;color:var(--agent-muted);font-size:12px}
.agent-profile-money{text-align:right}.agent-profile-money span,.agent-profile-money b{display:block}.agent-profile-money span{color:var(--agent-muted);font-size:11px}.agent-profile-money b{margin-top:2px;color:var(--agent-cyan);font:650 21px/1.3 var(--font-money)}
.agent-profile-hero+.panel{border-radius:0 0 5px 5px}.agent-team-overview{margin:0;padding:24px 20px;background:var(--agent-surface-strong);border:1px solid var(--agent-line);border-bottom:0;border-radius:5px 5px 0 0}.agent-team-overview span,.agent-team-overview strong,.agent-team-overview small{display:block}.agent-team-overview span,.agent-team-overview small{color:var(--agent-muted)}.agent-team-overview strong{margin:4px 0;color:var(--agent-cyan);font:700 30px/1.2 var(--font-money)}.agent-team-overview+.panel{border-radius:0 0 5px 5px}
.agent-profile-logout{display:flex;justify-content:flex-end;padding:6px 0 20px}.agent-profile-logout .table-action{min-width:160px;min-height:46px}
.agent-settings-list{overflow:hidden;background:var(--agent-surface);border:1px solid var(--agent-line);border-radius:5px}.agent-settings-intro{margin:0;padding:14px 16px;color:var(--agent-muted);border-bottom:1px solid var(--agent-line)}.agent-switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0;padding:15px 16px;border-bottom:1px solid var(--agent-line);font-weight:400}.agent-switch-copy strong,.agent-switch-copy small{display:block}.agent-switch-copy small{margin-top:2px;color:var(--agent-muted);font-size:12px}.agent-switch-row input{appearance:none;position:relative;flex:none;width:48px;min-height:28px;margin:0;border:0;border-radius:999px;background:#536473;box-shadow:none}.agent-switch-row input::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform 140ms ease}.agent-switch-row input:checked{background:var(--agent-success)}.agent-switch-row input:checked::after{transform:translateX(20px)}.agent-settings-actions{display:flex;justify-content:flex-end;padding:15px 16px}

.agent-portal .recharge-lead,.agent-portal .buy-usdt-disclaimer{color:var(--agent-muted)}
.agent-portal .recharge-amount{border:1px solid var(--agent-line);background:var(--agent-surface-strong)}
.agent-portal .recharge-warning{border-color:#6f5c20;color:#ffe39a;background:#302812}
html[data-theme="light"] .agent-portal .recharge-warning{color:#654304;background:#fff5d9}
.agent-portal .recharge-qr code{color:var(--agent-ink);background:var(--agent-surface-soft)}
.agent-portal .buy-usdt-steps li,.agent-portal .official-guide-card{border-color:var(--agent-line);background:var(--agent-surface-strong)}
.buy-usdt-step-visual{border:1px solid #225b80;border-radius:5px!important;color:var(--agent-cyan)!important;background:#0b2c43!important}
.buy-usdt-step-visual .brand-icon{width:28px;height:28px}
html[data-theme="light"] .buy-usdt-step-visual{border-color:#bdd9ee;background:#e8f5ff!important}
.agent-portal .official-guide-link{color:var(--agent-cyan);background:var(--agent-surface-soft)}
.agent-portal dialog{color:var(--agent-ink);background:var(--agent-surface);border:1px solid var(--agent-line);border-radius:6px}
.agent-portal dialog::backdrop{background:rgba(1,8,15,.72)}
.agent-portal dialog form>header,.agent-portal dialog footer,.agent-portal .detail-row{border-color:var(--agent-line)}
.agent-portal dialog form>header button{color:var(--agent-muted)}

/* 桌面首页按单屏业务台控制密度；移动端继续使用后面的触控尺寸。 */
@media(min-width:921px){
  .agent-portal .workspace{padding:18px 20px}
  .agent-dashboard{gap:8px}
  .agent-workbench{grid-template-columns:minmax(215px,.78fr) minmax(280px,1fr) minmax(290px,.95fr);gap:18px;min-height:228px;padding:12px 18px}
  .agent-status-orbit{width:min(205px,100%)}
  .agent-status-orbit-copy h2{font-size:23px}
  .agent-status-orbit-copy p{margin-top:5px;font-size:11px;line-height:1.35}
  .agent-work-actions{gap:8px}
  .agent-work-primary{min-height:72px;font-size:24px}
  .agent-work-settings{min-height:52px;padding:8px 16px;font-size:14px}
  .agent-readiness{padding-top:7px}
  .agent-readiness li{font-size:11px}
  .agent-session-summary{padding:11px 16px}
  .agent-session-summary h3{margin-bottom:5px;padding-bottom:8px;font-size:16px}
  .agent-session-summary>div{min-height:33px;gap:12px}
  .agent-session-summary span{font-size:12px}
  .agent-session-summary b{font-size:12px}
  .agent-balance-head{padding:10px 16px 0;font-size:12px}
  .agent-balance-toggle{width:30px;height:30px}
  .agent-balance-head .icon-eye{width:16px;height:16px}
  .agent-balance>strong{min-height:36px;padding:0 16px 11px;font-size:26px}
  .agent-balance-facts>div{padding:12px 16px}
  .agent-balance-facts span{font-size:12px}
  .agent-balance-facts b{margin-top:3px;font-size:19px}
  .agent-balance-actions .table-action,.agent-all-services{min-height:76px;font-size:14px}
  .agent-home-section{padding:12px 16px}
  .agent-section-head{gap:12px}
  .agent-section-head h2{font-size:18px}
  .agent-text-action{min-height:34px;font-size:12px}
  .agent-home-empty{margin:17px 0 5px;font-size:12px}
  .agent-offer-list{margin-top:4px}
  .agent-offer-columns,.agent-offer-row{grid-template-columns:36px minmax(110px,1.05fr) .5fr 1.15fr .9fr .68fr 15px;gap:9px;padding-inline:2px}
  .agent-offer-columns{min-height:32px;font-size:10px}
  .agent-offer-row{min-height:51px;padding-block:5px}
  .agent-channel-mark{width:32px;height:32px;border-radius:5px}
  .agent-channel-mark .brand-icon{width:18px;height:18px}
  .agent-offer-title strong{font-size:13px}
  .agent-offer-rate strong{font-size:16px}
  .agent-offer-range,.agent-offer-estimated,.agent-offer-availability{font-size:10px}
  .agent-order-stats{margin-top:4px}
  .agent-order-stat{gap:2px;min-height:50px;padding:6px;font-size:12px}
  .agent-order-stat b{font-size:18px}
  .agent-current-list{margin-top:5px}
  .agent-current-row{min-height:51px;padding:5px 0}
  .agent-week-total{margin:3px 0 0;font-size:12px}
  .agent-week-total strong{font-size:16px}
  .agent-week-chart{min-height:82px;padding-top:2px}
  .agent-week-column{grid-template-rows:auto auto;gap:3px}
  .agent-week-value{font-size:9px}
  .agent-week-label{font-size:10px}
}
@media(min-width:921px) and (min-height:942px){
  .agent-dashboard{min-height:calc(100vh - 28px);grid-template-rows:minmax(0,.95fr) minmax(0,1fr) minmax(0,.62fr)}
  .agent-command{display:grid;grid-template-rows:minmax(0,1fr) auto}
  .agent-workbench{min-height:0;height:100%}
  .agent-status-orbit{width:clamp(205px,19vh,268px)}
  .agent-channel-offers,.agent-current-orders,.agent-earnings{display:flex;min-height:0;flex-direction:column}
  .agent-offer-list,.agent-current-list,.agent-week-chart{flex:1;min-height:0}
  .agent-offer-list,.agent-current-list{align-content:stretch}
  .agent-offer-row,.agent-current-row{min-height:0}
  .agent-current-orders .agent-home-empty{margin:auto}
  .agent-week-chart{align-items:stretch}
}
@media(min-width:1600px){
  .agent-portal .app{grid-template-columns:194px minmax(0,1fr);grid-template-rows:220px 1fr}
  .agent-topbar{min-height:220px}
  .agent-portal .brand{gap:6px;width:193px;padding:16px 12px}
  .agent-portal .brand img{width:54px;height:54px}
  .agent-portal .brand strong{font-size:32px}
  .agent-portal .brand small{font-size:18px}
  .agent-topbar-actions{grid-template-columns:repeat(3,48px);width:182px;padding-left:18px}
  .agent-topbar-actions .agent-header-icon{width:48px;height:48px}
  .agent-sidebar-help{bottom:82px;left:18px;width:158px;min-height:48px;font-size:18px}
  .agent-sidebar-help .brand-icon{width:21px;height:21px}
  .agent-portal .agent-nav-shell{top:220px;min-height:calc(100vh - 220px)}
  .agent-portal nav button{gap:16px;min-height:78px;padding-inline:28px;font-size:24px}
  .nav-icon{width:26px;height:26px}
  .agent-portal .workspace{padding:32px}
  .agent-dashboard{height:calc(100vh - 86px);min-height:0;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);grid-template-rows:minmax(0,40.7fr) minmax(0,41.6fr) minmax(0,17.7fr);gap:16px}
  .agent-command{grid-template-rows:minmax(0,1fr) 130px}
  .agent-workbench{grid-template-columns:430px minmax(450px,.95fr) minmax(500px,1fr);align-items:stretch;gap:30px;padding:0 30px}
  .agent-status-orbit{align-self:start;width:min(315px,100%);margin:8px auto 0}
  .agent-status-orbit img{inset:-12.5%;width:125%;height:125%}
  .agent-status-orbit-copy h2{font-size:38px}
  .agent-status-orbit-copy{width:52%}
  .agent-status-orbit-copy p{font-size:21px;line-height:1.45}
  .agent-work-actions{align-self:stretch;gap:28px;padding:0 0 16px 30px;border-left:1px solid var(--agent-line)}
  .agent-portal .agent-work-primary{min-height:148px;font-size:46px;clip-path:polygon(0 0,95% 0,100% 22%,100% 100%,0 100%)}
  .agent-portal .agent-work-settings{min-height:100px;padding-inline:26px;font-size:22px}
  .agent-work-settings .brand-icon{width:24px;height:24px}
  .agent-session-summary{padding:20px 26px}
  .agent-session-summary h3{margin-bottom:8px;padding-bottom:12px;font-size:26px}
  .agent-session-summary>div{min-height:50px}
  .agent-session-summary span,.agent-session-summary b{font-size:21px}
  .agent-balance{grid-template-columns:1fr 1.85fr 1.05fr .62fr}
  .agent-balance-head{padding:18px 24px 0;font-size:19px}
  .agent-balance-head .icon-eye{width:20px;height:20px}
  .agent-balance>strong{padding:0 24px 18px;font-size:40px}
  .agent-balance-facts>div{padding:18px 24px}
  .agent-balance-facts span{font-size:17px}
  .agent-balance-facts b{margin-top:5px;font-size:27px}
  .agent-balance-actions .table-action,.agent-all-services{min-height:130px;font-size:21px}
  .agent-portal .agent-balance-actions .table-action{color:#fff;background:#1057c8}
  .agent-portal .agent-balance-actions .table-action+button{color:#fff;background:#124f3f}
  html[data-theme="light"] .agent-portal .agent-balance-actions .table-action{color:#0f5ac9;background:#e6effd}
  html[data-theme="light"] .agent-portal .agent-balance-actions .table-action+button{color:#14654f;background:#e4f3ed}
  .agent-balance-actions .brand-icon,.agent-all-services .brand-icon{width:24px;height:24px}
  .agent-home-section{padding:20px 26px}
  .agent-section-head h2{font-size:30px}
  .agent-channel-pulse{width:29px;height:29px}
  .agent-text-action{min-height:44px;font-size:20px}
  .agent-text-action .icon-chevron{width:18px;height:18px}
  .agent-home-empty{font-size:17px}
  .agent-offer-list{flex:1;grid-auto-rows:minmax(70px,1fr);margin-top:6px}
  .agent-offer-columns,.agent-offer-row{grid-template-columns:50px minmax(145px,1.05fr) .55fr 1.15fr .9fr .68fr 18px;gap:16px;padding-inline:4px}
  .agent-offer-columns{min-height:46px;font-size:16px}
  .agent-offer-row{min-height:72px}
  .agent-channel-mark{width:44px;height:44px}
  .agent-channel-mark .brand-icon{width:24px;height:24px}
  .agent-offer-title strong{font-size:23px}
  .agent-offer-rate strong{font-size:30px}
  .agent-offer-range,.agent-offer-estimated,.agent-offer-availability{font-size:18px}
  .agent-offer-row>.icon-chevron{width:18px;height:18px}
  .agent-offer-footer{min-height:50px;font-size:20px}
  .agent-order-stat{font-size:18px}
  .agent-order-stat b{font-size:28px}
  .agent-current-title{font-size:18px}
  .agent-current-copy strong{font-size:20px}
  .agent-current-copy small{font-size:16px}
  .agent-week-total{font-size:18px}
  .agent-week-total strong{font-size:24px}
  .agent-week-chart{min-height:0}
  .agent-week-canvas{min-height:64px}
  .agent-week-value{font-size:17px}
  .agent-week-label{font-size:19px}
}
@media(min-width:921px) and (max-height:820px){
  .agent-portal .workspace{padding:8px 12px}
  .agent-dashboard{gap:6px}
  .agent-workbench{gap:14px;min-height:190px;padding:8px 14px}
  .agent-status-orbit{width:min(176px,100%)}
  .agent-status-orbit-copy h2{font-size:20px}
  .agent-work-primary{min-height:60px;font-size:21px}
  .agent-work-settings{min-height:44px;padding:6px 14px;font-size:13px}
  .agent-session-summary{padding:8px 12px}
  .agent-session-summary h3{margin-bottom:2px;padding-bottom:6px;font-size:14px}
  .agent-session-summary>div{min-height:27px}
  .agent-session-summary span,.agent-session-summary b{font-size:11px}
  .agent-balance-head{padding:8px 12px 0}
  .agent-balance>strong{padding:0 12px 8px;font-size:23px}
  .agent-balance-facts>div{padding:9px 12px}
  .agent-balance-facts b{font-size:17px}
  .agent-balance-actions .table-action,.agent-all-services{min-height:70px}
  .agent-home-section{padding:8px 12px}
  .agent-text-action{min-height:30px}
  .agent-home-empty{margin:12px 0 3px}
  .agent-offer-row{min-height:43px;padding:3px 2px}
  .agent-channel-mark{width:28px;height:28px}
  .agent-channel-mark .brand-icon{width:16px;height:16px}
  .agent-order-stat{min-height:44px;padding:4px}
  .agent-current-row{min-height:43px;padding:3px 0}
  .agent-week-total{font-size:11px}
  .agent-week-chart{min-height:58px}
  .agent-week-column{grid-template-rows:12px 28px 16px}
  .agent-week-track{height:28px}
}

@media(min-width:921px) and (max-width:1599px) and (min-height:821px) and (max-height:930px){
  .agent-dashboard{height:calc(100vh - 36px);min-height:0;grid-template-rows:340fr 340fr 168fr}
  .agent-command{display:grid;grid-template-rows:minmax(0,1fr) 92px}
  .agent-workbench{min-height:0;height:100%}
  .agent-channel-offers,.agent-current-orders,.agent-earnings{display:flex;min-height:0;flex-direction:column}
  .agent-offer-list,.agent-current-list,.agent-week-chart{flex:1;min-height:0}
  .agent-offer-list{grid-auto-rows:minmax(42px,1fr)}
  .agent-offer-row,.agent-current-row{min-height:0}
  .agent-offer-footer{min-height:34px}
  .agent-current-orders .agent-home-empty{margin:auto}
  .agent-week-chart{align-items:stretch}
}

@media(max-width:1180px){
  .agent-workbench{grid-template-columns:minmax(230px,.75fr) minmax(260px,1fr);gap:20px}.agent-session-summary{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:0}.agent-session-summary h3{grid-column:1/-1}.agent-session-summary>div{display:grid;align-content:center;min-height:60px;padding:6px 13px;border-right:1px solid var(--agent-line);border-bottom:0}.agent-session-summary>div:last-child{border-right:0}.agent-session-summary b{text-align:left}
  .agent-balance{grid-template-columns:210px minmax(220px,1fr) minmax(230px,1fr)}.agent-all-services{grid-column:1/-1;grid-row:3;min-height:54px;border-top:1px solid var(--agent-line);border-left:0}
}
@media(max-width:920px){
  .agent-portal .app{grid-template-columns:116px minmax(0,1fr)}.agent-portal .brand{width:115px;padding-inline:10px}.agent-portal .brand img{width:38px;height:38px}.agent-portal .brand strong{font-size:16px}.agent-portal nav button{padding-inline:14px}.agent-dashboard{grid-template-columns:1fr}.agent-channel-offers,.agent-current-orders,.agent-earnings{grid-column:1;grid-row:auto}.agent-balance{grid-template-columns:1fr 1fr}.agent-balance-head{grid-column:1;grid-row:1}.agent-balance>strong{grid-column:1;grid-row:2}.agent-balance-facts{grid-column:2;grid-row:1/3}.agent-balance-actions{grid-column:1/-1;grid-row:3;border-top:1px solid var(--agent-line);border-left:0}.agent-all-services{grid-column:1/-1;grid-row:4}
  .agent-offer-columns{display:none}.agent-offer-row{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"mark title rate chevron" "mark range range range" "mark estimated availability availability";row-gap:4px}.agent-offer-row .agent-channel-mark{grid-area:mark}.agent-offer-title{grid-area:title}.agent-offer-rate{grid-area:rate;text-align:right}.agent-offer-range{grid-area:range}.agent-offer-estimated{grid-area:estimated}.agent-offer-availability{grid-area:availability;justify-self:end}.agent-offer-row>.icon-chevron{grid-area:chevron}
}
@media(max-width:700px){
  .agent-portal .login-shell{display:flex;min-height:100svh;flex-direction:column;padding:0;background:var(--agent-bg)}.agent-login-brand{min-height:168px;padding:26px 22px 20px;border:0;border-radius:0}.agent-login-brand .login-logo{width:58px;height:58px}.agent-login-brand strong{font-size:25px}.agent-login-brand span{font-size:13px}.agent-login-brand .agent-login-theme{top:20px;right:20px}.agent-portal .login-card{min-height:0;padding:32px 22px 38px;border:0;border-radius:0}.agent-portal .login-card h1{font-size:24px}
  .agent-portal .app{display:flex;min-height:100vh;flex-direction:column;border:0}.agent-topbar{position:sticky;grid-column:auto;grid-row:auto;justify-content:space-between;min-height:68px;padding:8px 14px;border-right:0}.agent-portal .brand{width:auto;padding:0;border:0;flex-direction:row;text-align:left}.agent-portal .brand>div{justify-items:start}.agent-portal .brand img{width:40px;height:40px}.agent-portal .brand strong{font-size:18px}.agent-portal .brand small{display:none}.agent-sidebar-help{display:none}.agent-topbar-actions{position:static;display:flex;width:auto;padding:0;gap:4px}.agent-header-icon{width:42px;height:42px}.agent-topbar-actions .agent-header-icon{width:42px;height:42px}
  .agent-portal .agent-nav-shell{position:fixed;z-index:50;right:0;bottom:0;left:0;top:auto;min-height:0;height:auto;padding:4px 8px calc(4px + env(safe-area-inset-bottom));background:var(--agent-sidebar);border:0;border-top:1px solid var(--agent-line)}.agent-portal nav{display:flex;justify-content:stretch;gap:0;width:100%;margin:auto}.agent-portal nav button{flex:1;display:grid;justify-items:center;gap:2px;width:auto;min-height:60px;padding:6px 3px;border-radius:0!important;text-align:center;font-size:11px;font-weight:600}.agent-portal nav button.active{color:var(--agent-cyan);background:transparent;box-shadow:none}
  .agent-portal .workspace{width:100%;margin:0;padding:12px 0 calc(78px + env(safe-area-inset-bottom));background-attachment:scroll}.agent-page-heading{margin:0 12px 12px;padding:13px 14px!important}.agent-page-heading h1{font-size:20px}.agent-page-heading p{display:none}.agent-portal .notice{margin-inline:12px}
  .agent-dashboard{display:flex;flex-direction:column;gap:10px;padding:0 12px}.agent-workbench{grid-template-columns:minmax(190px,.82fr) minmax(220px,1fr);gap:12px;padding:18px}.agent-status-orbit{width:min(220px,100%)}.agent-status-orbit-copy h2{font-size:22px}.agent-status-orbit-copy p{font-size:11px}.agent-work-primary{min-height:72px;font-size:22px}.agent-work-settings{min-height:58px;padding-inline:14px}.agent-session-summary{display:none}
  .agent-balance{display:grid;grid-template-columns:1fr 1fr}.agent-balance-head{grid-column:1;grid-row:1}.agent-balance>strong{grid-column:1;grid-row:2;font-size:28px}.agent-balance-facts{grid-column:2;grid-row:1/3}.agent-balance-facts>div{padding:14px}.agent-balance-facts b{font-size:18px}.agent-balance-actions{grid-column:1/-1;grid-row:3}.agent-balance-actions .table-action{min-height:62px}.agent-all-services{grid-column:1/-1;grid-row:4;min-height:54px}
  #appView:not([data-current-view="dashboard"]) #content,#appView[data-current-view="team"] #content,#appView[data-current-view="profile"] #content,#appView[data-current-view="usdt"] #content{display:grid;grid-template-columns:1fr;gap:10px}.agent-page-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:0 12px;border-radius:5px}.agent-page-metric{min-height:74px;padding:13px 14px}.agent-page-metric strong{font-size:20px}.agent-page-metric::after{right:11px;bottom:10px;width:22px}.agent-page-metrics>.agent-page-metric:only-child{grid-column:1/-1}
  .agent-home-section{padding:18px;border-right:0;border-left:0}.agent-offer-row{grid-template-columns:auto minmax(0,1fr) auto auto}.agent-feature-list{grid-template-columns:1fr}.agent-feature-row{border-right:0}.agent-portal .panel{border-right:0;border-left:0;border-radius:0}.agent-portal .panel-head{align-items:center;flex-direction:row;padding:12px 15px}.agent-portal .table-wrap{overflow:visible}.agent-portal table,.agent-portal tbody,.agent-portal tr,.agent-portal td{display:block;width:100%;white-space:normal}.agent-portal thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}.agent-portal tbody tr{padding:9px 15px;border-bottom:1px solid var(--agent-line)}.agent-portal td{display:grid;grid-template-columns:minmax(78px,32%) minmax(0,1fr);gap:10px;padding:5px 0;border:0;text-align:right;overflow-wrap:anywhere}.agent-portal td::before{content:attr(data-label);color:var(--agent-muted);font-size:12px;text-align:left}.agent-portal td .actions{justify-content:flex-end}.agent-profile-hero,.agent-team-overview{margin:0;border-right:0;border-left:0;border-radius:0}.agent-profile-hero{grid-template-columns:auto 1fr}.agent-profile-money{grid-column:1/-1;padding-top:11px;border-top:1px solid var(--agent-line);text-align:left}.agent-profile-logout{padding:4px 20px 24px}.agent-profile-logout .table-action{width:100%}.agent-portal dialog{width:100%;max-width:none;max-height:88svh;margin:auto 0 0;border-radius:8px 8px 0 0}
}
@media(max-width:520px){
  .agent-workbench{grid-template-columns:1fr}.agent-status-orbit{width:210px}.agent-work-actions{width:100%}.agent-balance{grid-template-columns:1fr}.agent-balance-head{grid-column:1;grid-row:1}.agent-balance>strong{grid-column:1;grid-row:2}.agent-balance-facts{grid-column:1;grid-row:3;border-top:1px solid var(--agent-line);border-left:0}.agent-balance-actions{grid-column:1;grid-row:4}.agent-all-services{grid-column:1;grid-row:5}.agent-offer-rate small{display:none}.agent-current-row{grid-template-columns:auto minmax(0,1fr) auto}.agent-current-row>.status{display:none}.agent-week-value{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .agent-portal *,.agent-portal *::before,.agent-portal *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
  .agent-portal button.is-busy::after{border-right-color:currentColor}
}

/* 旧版燃闪付 App 结构：三端共用卡片顺序和视觉语言，桌面端只放宽内容。 */
.agent-portal{background-image:none;font-family:var(--font-body)}
.agent-portal .app{display:flex;width:100%;min-height:100vh;flex-direction:column;background:var(--agent-bg)}
.agent-topbar{position:sticky;z-index:50;top:0;display:flex;align-items:center;width:100%;min-height:72px;padding:10px max(22px,calc((100vw - 1040px)/2));color:#fff;background:#000;border:0;border-bottom:1px solid rgba(255,255,255,.12)}
.agent-portal .brand{display:flex;width:auto;align-items:center;flex-direction:row;gap:10px;padding:0;text-align:left;border:0}
.agent-portal .brand>div{display:grid;justify-items:start}
.agent-portal .brand img{width:44px;height:44px;border-radius:50%;background:#fff}
.agent-portal .brand strong{color:#fff;font-size:20px;line-height:1.2}
.agent-portal .brand small{display:block;margin-top:2px;color:rgba(255,255,255,.54);font-size:11px}
.agent-topbar-actions{position:static;display:flex;width:auto;margin-left:auto;padding:0;gap:4px}
.agent-topbar-actions .agent-header-icon,.agent-header-icon{width:44px;height:44px;color:rgba(255,255,255,.72);background:transparent;border-color:transparent}
.agent-topbar-actions .agent-header-icon:hover,.agent-header-icon:hover{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.15)}
.agent-header-avatar,.agent-header-avatar:hover{color:#17212c;background:var(--agent-primary);border-color:var(--agent-primary)}
.agent-sidebar-help{position:static;display:flex;width:auto;min-height:44px;margin-left:12px;padding:8px 10px;color:rgba(255,255,255,.68);background:transparent!important;border:0!important}
.agent-sidebar-help:hover{color:#fff}
.agent-portal .agent-nav-shell{position:sticky;z-index:45;top:72px;width:100%;height:auto;min-height:0;padding:0;background:var(--agent-surface);border:0;border-bottom:1px solid var(--agent-line)}
.agent-portal nav{display:flex;width:min(980px,100%);margin:auto;gap:0}
.agent-portal nav button{position:relative;display:flex;flex:1;min-height:56px;align-items:center;justify-content:center;gap:8px;padding:8px 18px;color:var(--agent-muted);background:transparent;border:0;border-radius:0!important;font-size:14px;font-weight:600;text-align:center}
.agent-portal nav button::after{content:"";position:absolute;right:24%;bottom:0;left:24%;height:3px;border-radius:3px 3px 0 0;background:transparent}
.agent-portal nav button:hover{color:var(--agent-ink);background:var(--agent-surface-strong)}
.agent-portal nav button.active,html[data-theme="light"] .agent-portal nav button.active{color:#8a6800;background:#fffdf2;box-shadow:none}
.agent-portal nav button.active::after{background:var(--agent-primary)}
.agent-portal .nav-icon{width:20px;height:20px}
.agent-portal .workspace{width:min(980px,100%);min-width:0;margin:0 auto;padding:20px 18px 48px;background:transparent;background-image:none}
.agent-page-heading{margin:0 0 14px;padding:0;background:transparent!important;border:0;box-shadow:none}
.agent-page-heading h1{font-size:23px;letter-spacing:0}
.agent-page-heading p{margin-top:3px;font-size:13px}
#appView[data-current-view="dashboard"] .agent-page-heading{display:none}
.agent-dashboard,.agent-home-stack{display:flex!important;height:auto!important;min-height:0!important;flex-direction:column;gap:12px;padding:0;background:transparent;border:0;border-radius:0;overflow:visible}

.agent-balance{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(250px,.78fr)!important;grid-template-rows:auto auto!important;min-height:0;padding:20px 22px!important;color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6)!important;border:0!important;border-radius:12px!important;box-shadow:0 8px 18px rgba(99,102,241,.22)}
.agent-balance-head{grid-column:1;grid-row:1;padding:0!important;color:rgba(255,255,255,.72)}
.agent-balance-head>span:last-child{color:rgba(255,255,255,.66)}
.agent-balance-toggle{color:rgba(255,255,255,.8)!important}
.agent-balance>strong{grid-column:1;grid-row:2;padding:2px 0 0!important;color:#fff!important;font-size:34px!important}
.agent-balance-facts{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:1fr 1fr;border:0;border-left:1px solid rgba(255,255,255,.2)}
.agent-balance-facts>div{align-content:center;padding:4px 20px!important;border:0!important}
.agent-balance-facts span{color:rgba(255,255,255,.68)}
.agent-balance-facts b{margin-top:5px;color:#fff;font-size:19px}
.agent-balance-spark{color:#fff}

.agent-workbench{display:block!important;min-height:0!important;padding:0!important;background:var(--agent-surface)!important;border:1px solid var(--agent-line)!important;border-radius:8px!important;box-shadow:none!important}
.agent-work-head{display:flex;align-items:center;gap:18px;min-height:76px;padding:12px 16px}
.agent-work-copy{min-width:0;flex:1}
.agent-work-copy h2{margin:0;color:var(--agent-ink);font-size:16px}
.agent-work-copy p{margin:4px 0 0;color:var(--agent-muted);font-size:13px}
.agent-work-actions{display:flex!important;width:auto!important;align-items:center;gap:8px}
.agent-work-primary{width:auto!important;min-width:118px!important;min-height:44px!important;padding:8px 18px!important;color:#17212c!important;background:var(--agent-primary)!important;border:1px solid #e1b900!important;border-radius:6px!important;font-size:15px!important;font-weight:700;letter-spacing:0;box-shadow:none!important;clip-path:none!important}
.agent-work-primary:hover{background:#f5c900!important}
.agent-work-primary.danger{color:#c45656!important;background:#fef0f0!important;border-color:#fbc4c4!important}
.agent-work-settings{min-height:44px!important;padding:8px 12px!important;color:var(--agent-ink)!important;background:var(--agent-surface-strong)!important;border:1px solid var(--agent-line)!important;border-radius:6px!important;font-size:13px!important}
.agent-primary-state{margin-left:9px;color:#665100}
.agent-session-summary{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:0!important;background:var(--agent-surface-strong)!important;border:0!important;border-top:1px solid var(--agent-line)!important;border-radius:0 0 8px 8px!important}
.agent-session-summary h3{display:none}
.agent-session-summary>div{display:grid;align-content:center;min-height:58px;padding:9px 13px!important;border:0!important;border-right:1px solid var(--agent-line)!important}
.agent-session-summary>div:last-child{border-right:0!important}
.agent-session-summary span{font-size:11px!important}
.agent-session-summary b{margin-top:3px;font-size:13px!important;text-align:left!important}

.agent-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.agent-quick-action{display:flex;min-height:72px;align-items:center;justify-content:center;gap:10px;padding:12px 16px;color:var(--agent-ink);background:var(--agent-surface);border:1px solid var(--agent-line);border-radius:9px!important;font-size:14px;font-weight:650;box-shadow:0 2px 7px rgba(48,49,51,.04)}
.agent-quick-action .brand-icon{width:25px;height:25px;color:var(--agent-cyan)}
.agent-quick-action:nth-child(2) .brand-icon{color:#67c23a}
.agent-quick-action:nth-child(3) .brand-icon{color:#7c5ce5}
.agent-quick-action:nth-child(4) .brand-icon{color:#e6a23c}
.agent-quick-action:hover{background:var(--agent-surface-strong);border-color:var(--agent-line-strong)}

.agent-home-section{grid-column:auto!important;grid-row:auto!important;padding:17px 18px!important;background:var(--agent-surface)!important;border:1px solid var(--agent-line)!important;border-radius:8px!important;box-shadow:none!important}
.agent-section-head h2{font-size:16px!important}
.agent-text-action{color:var(--agent-muted)!important}
.agent-offer-list,.agent-current-list{margin-top:8px}
.agent-offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.agent-offer-card{position:relative;display:grid;gap:7px;min-width:0;min-height:126px;padding:13px 34px 12px 13px;color:var(--agent-ink);background:var(--agent-surface-strong);border:1px solid var(--agent-line);border-radius:8px!important;text-align:left}
.agent-offer-card:hover{background:var(--agent-surface-soft);border-color:var(--agent-line-strong)}
.agent-offer-card-head{display:flex;align-items:center;gap:9px;min-width:0}
.agent-offer-card-head .agent-offer-title{min-width:0;flex:1}
.agent-offer-card-head .agent-offer-rate{color:var(--agent-yellow);font-size:17px;text-align:right}
.agent-offer-card>.agent-offer-range,.agent-offer-card>.agent-offer-estimated{color:var(--agent-muted);font-size:12px}
.agent-offer-card>.agent-offer-availability{font-size:12px}
.agent-offer-card>.icon-chevron{position:absolute;right:12px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--agent-muted)}
.agent-earning-list{display:grid;margin-top:8px;border-top:1px solid var(--agent-line)}
.agent-earning-row{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:12px;min-height:58px;padding:8px 2px;color:var(--agent-ink);background:transparent;border:0;border-bottom:1px solid var(--agent-line);border-radius:0!important;text-align:left}
.agent-earning-row:hover{background:var(--agent-surface-strong)}
.agent-earning-copy strong,.agent-earning-copy small{display:block}
.agent-earning-copy strong{font-size:14px}
.agent-earning-copy small{margin-top:3px;color:var(--agent-muted);font-size:11px}
.agent-earning-row>b{color:var(--agent-success);font:700 15px/1.3 var(--font-money)}
.agent-earning-row>.icon-chevron{width:15px;height:15px;color:var(--agent-muted)}
.agent-offer-columns,.agent-offer-row{grid-template-columns:minmax(150px,1.2fr) minmax(80px,.6fr) minmax(190px,1.3fr) minmax(115px,.8fr) minmax(110px,.8fr) 20px}
.agent-offer-row{min-height:58px;background:transparent!important}
.agent-offer-row:hover,.agent-current-row:hover{background:var(--agent-surface-strong)!important}
.agent-current-row{background:transparent!important}
.agent-order-stats{background:var(--agent-surface-strong);border-color:var(--agent-line)}
.agent-order-stat{background:transparent!important}
.agent-week-canvas{filter:none}

#appView:not([data-current-view="dashboard"]) #content>.panel,.agent-portal .panel{background:var(--agent-surface)!important;border-color:var(--agent-line)!important;border-radius:8px!important;box-shadow:none!important}
.agent-page-metrics{background:var(--agent-surface);border-color:var(--agent-line);border-radius:8px}
.agent-profile-hero,.agent-team-overview{background:var(--agent-surface)!important;border-color:var(--agent-line)!important;border-radius:8px!important}

@media(max-width:700px){
  .agent-topbar{min-height:64px;padding:8px 14px}
  .agent-portal .brand img{width:40px;height:40px}
  .agent-portal .brand strong{font-size:18px}
  .agent-sidebar-help{display:none}
  .agent-portal .agent-nav-shell{position:fixed;z-index:60;top:auto;right:0;bottom:0;left:0;padding:3px 8px calc(3px + env(safe-area-inset-bottom));border-top:1px solid var(--agent-line);border-bottom:0}
  .agent-portal nav{width:100%}
  .agent-portal nav button{display:grid;justify-items:center;gap:2px;min-height:58px;padding:5px 3px;font-size:11px}
  .agent-portal nav button::after{display:none}
  .agent-portal nav button.active,html[data-theme="light"] .agent-portal nav button.active{color:#9a7600;background:transparent}
  .agent-portal .workspace{width:100%;padding:12px 11px calc(76px + env(safe-area-inset-bottom))}
  .agent-page-heading{margin:0 2px 12px;padding:0!important}
  .agent-dashboard,.agent-home-stack{gap:10px!important;padding:0!important}
  .agent-balance{grid-template-columns:1fr 1fr!important;padding:17px 16px!important}
  .agent-balance>strong{font-size:30px!important}
  .agent-balance-facts>div{padding:3px 12px!important}
  .agent-balance-facts b{font-size:16px}
  .agent-work-head{align-items:flex-start;flex-direction:column;gap:10px;padding:14px}
  .agent-work-actions{width:100%!important}
  .agent-work-primary{flex:1}
  .agent-work-settings{flex:1;justify-content:center}
  .agent-session-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .agent-session-summary>div{min-height:52px;border-bottom:1px solid var(--agent-line)!important}
  .agent-session-summary>div:nth-child(odd){border-right:0!important}
  .agent-session-summary>div:last-child{grid-column:1/-1;border-bottom:0!important}
  .agent-quick-actions{grid-template-columns:repeat(2,1fr);gap:7px}
  .agent-quick-action{min-height:68px;flex-direction:column;gap:4px;padding:8px 5px;font-size:12px}
  .agent-quick-action .brand-icon{width:23px;height:23px}
  .agent-home-section{padding:15px 14px!important;border-radius:8px!important}
  .agent-offer-grid{grid-template-columns:1fr}
  .agent-offer-columns{display:none}
  .agent-offer-row{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"mark title rate chevron" "mark range range range" "mark estimated availability availability";row-gap:4px}
  #appView:not([data-current-view="dashboard"]) #content>.panel,.agent-portal .panel{border-right:1px solid var(--agent-line)!important;border-left:1px solid var(--agent-line)!important;border-radius:8px!important}
  .agent-profile-hero,.agent-team-overview{margin:0;border-right:1px solid var(--agent-line)!important;border-left:1px solid var(--agent-line)!important;border-radius:8px!important}
}

@media(max-width:430px){
  .agent-balance{grid-template-columns:1fr!important}
  .agent-balance-head,.agent-balance>strong,.agent-balance-facts{grid-column:1;grid-row:auto}
  .agent-balance-facts{margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.2);border-left:0}
  .agent-balance-facts>div:first-child{padding-left:0!important}
  .agent-balance-facts>div+div{border-left:1px solid rgba(255,255,255,.2)!important}
}

/* 接入聚流前的燃闪付 App 是三端视觉母版；以下规则只做响应式放宽。 */
.agent-portal .login-shell{
  display:grid;place-items:center;min-height:100vh;padding:28px;
  background:var(--agent-bg);background-image:none
}
.agent-portal .login-card{
  position:relative;align-self:auto;width:min(100%,420px);min-height:0;padding:28px 32px;
  color:var(--agent-ink);background:transparent;border:0;border-radius:0;box-shadow:none;text-align:center
}
.agent-portal .login-card .login-logo{display:block;width:80px;height:80px;margin:0 auto 12px;border:0;border-radius:0;background:transparent}
.agent-portal .login-card h1{margin:0 0 28px;color:var(--agent-ink);font-size:24px;line-height:1.2;letter-spacing:0;text-align:center}
.agent-portal .login-card form{display:grid;gap:12px}
.agent-portal .login-card label{display:grid;gap:6px;color:var(--agent-muted);font-size:12px;font-weight:500;text-align:left}
.agent-portal .login-card input{min-height:50px;padding:0 12px;color:var(--agent-ink);background:var(--agent-surface);border:1px solid var(--agent-line);border-radius:6px}
.agent-portal .login-card .primary{min-height:46px;margin-top:6px;color:#17212c;background:var(--agent-primary);border:0;border-radius:8px;box-shadow:none;font-size:16px;font-weight:700}
.agent-portal .login-note{display:block;margin-top:14px;color:var(--agent-muted);font-size:12px;text-align:center}
.agent-login-theme{position:absolute;top:0;right:0;color:var(--agent-muted);background:transparent;border-color:transparent}

.agent-portal .app{display:flex;width:100%;min-height:100vh;flex-direction:column;background:var(--agent-bg)}
.agent-topbar{position:sticky;z-index:50;top:0;display:flex;align-items:center;width:100%;min-height:64px;padding:8px max(18px,calc((100vw - 1016px)/2));color:#fff;background:#000;border:0;border-bottom:1px solid rgba(255,255,255,.12)}
.agent-portal .brand{display:flex;width:auto;align-items:center;flex-direction:row;gap:10px;padding:0;text-align:left;border:0}
.agent-portal .brand>div{display:grid;justify-items:start}
.agent-portal .brand img{width:40px;height:40px;border-radius:50%;background:#fff}
.agent-portal .brand strong{color:#fff;font-size:18px;line-height:1.2;letter-spacing:0}
.agent-portal .brand small{display:block;margin-top:2px;color:rgba(255,255,255,.54);font-size:10px}
.agent-topbar-actions{position:static;display:flex;width:auto;margin-left:auto;padding:0;gap:2px}
.agent-topbar-actions .agent-header-icon,.agent-header-icon{width:44px;height:44px;color:rgba(255,255,255,.72);background:transparent;border-color:transparent}
.agent-topbar-actions .agent-header-icon:hover,.agent-header-icon:hover{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.15)}
.agent-header-avatar,.agent-header-avatar:hover{color:#17212c;background:var(--agent-primary);border-color:var(--agent-primary)}

.agent-portal .agent-nav-shell{position:sticky;z-index:45;top:64px;width:100%;height:auto;min-height:0;padding:0;background:var(--agent-surface);border:0;border-bottom:1px solid var(--agent-line)}
.agent-portal nav{display:flex;width:min(980px,100%);margin:auto;gap:0;padding:0}
.agent-portal nav button{position:relative;display:flex;flex:1;min-height:52px;align-items:center;justify-content:center;gap:8px;padding:8px 18px;color:var(--agent-muted);background:transparent;border:0;border-radius:0!important;font-size:14px;font-weight:600;text-align:center}
.agent-portal nav button::after{content:"";position:absolute;right:25%;bottom:0;left:25%;height:3px;background:transparent}
.agent-portal nav button.active,html[data-theme="light"] .agent-portal nav button.active{color:#8a6800;background:#fffdf2;box-shadow:none}
.agent-portal nav button.active::after{background:var(--agent-primary)}
.agent-portal .nav-icon{width:20px;height:20px}
.agent-portal .workspace{width:min(980px,100%);min-width:0;margin:0 auto;padding:18px 12px 48px;background:transparent;background-image:none}
.agent-page-heading{margin:0 0 14px;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.agent-page-heading h1{font-size:20px;letter-spacing:0}
.agent-page-heading p{margin-top:3px;font-size:12px}
#appView[data-current-view="dashboard"] .agent-page-heading{display:none}

.agent-dashboard,.agent-home-stack{display:flex!important;height:auto!important;min-height:0!important;flex-direction:column;gap:10px;padding:0;background:transparent;border:0;border-radius:0;overflow:visible}
.agent-home-announcement{display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 12px;color:#795548;background:#fff8e1;border:1px solid #ffe082;border-radius:8px;font-size:12px;text-align:left}
button.agent-home-announcement{width:100%}
.agent-home-announcement .brand-icon{width:18px;height:18px;color:#e6a23c}

.agent-balance{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(250px,.78fr)!important;grid-template-rows:auto auto!important;min-height:0;padding:18px!important;color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6)!important;border:0!important;border-radius:12px!important;box-shadow:0 4px 10px rgba(99,102,241,.3)}
.agent-balance-head{grid-column:1;grid-row:1;padding:0!important;color:rgba(255,255,255,.72)}
.agent-balance-head>span:last-child{color:rgba(255,255,255,.72)}
.agent-balance-toggle{color:rgba(255,255,255,.8)!important}
.agent-balance>strong{grid-column:1;grid-row:2;padding:2px 0 0!important;color:#fff!important;font-size:32px!important}
.agent-balance-facts{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:1fr 1fr;border:0;border-left:1px solid rgba(255,255,255,.22)}
.agent-balance-facts>div{align-content:center;padding:4px 18px!important;border:0!important}
.agent-balance-facts span{color:rgba(255,255,255,.7)}
.agent-balance-facts b{margin-top:4px;color:#fff;font-size:16px}
.agent-balance-spark{display:none}

.agent-workbench{display:block!important;min-height:0!important;padding:0!important;background:var(--agent-surface)!important;border:0!important;border-radius:8px!important;box-shadow:none!important;overflow:hidden}
.agent-work-head{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 14px}
.agent-work-copy{min-width:0;flex:1}
.agent-work-copy h2{margin:0;color:var(--agent-ink);font-size:14px;font-weight:600}
.agent-work-copy p{margin:3px 0 0;color:var(--agent-muted);font-size:12px}
.agent-work-actions{display:flex!important;width:auto!important;align-items:center;gap:8px}
.agent-work-primary{width:auto!important;min-width:104px!important;min-height:42px!important;padding:7px 14px!important;color:#17212c!important;background:var(--agent-primary)!important;border:0!important;border-radius:6px!important;font-size:14px!important;font-weight:700;letter-spacing:0;box-shadow:none!important;clip-path:none!important}
.agent-work-primary.danger{color:#c45656!important;background:#fef0f0!important;border:1px solid #fbc4c4!important}
.agent-readiness{margin:0;padding:8px 12px;color:var(--agent-danger);font-size:12px}
.agent-work-settings{display:grid!important;grid-template-columns:22px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%!important;min-height:54px!important;padding:8px 14px!important;color:var(--agent-ink)!important;background:var(--agent-surface)!important;border:0!important;border-top:1px solid var(--agent-line)!important;border-radius:0!important;text-align:left}
.agent-work-settings-copy{display:grid;min-width:0}
.agent-work-settings-copy strong{font-size:13px;font-weight:600}
.agent-work-settings-copy small{margin-top:2px;color:var(--agent-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.agent-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.agent-quick-action{display:flex;min-height:72px;align-items:center;justify-content:center;gap:9px;padding:10px;color:var(--agent-ink);background:var(--agent-surface);border:1px solid var(--agent-line);border-radius:10px!important;font-size:12px;font-weight:500;box-shadow:0 2px 6px rgba(0,0,0,.04)}
.agent-quick-action .brand-icon{width:25px;height:25px;color:var(--agent-cyan)}
.agent-quick-action:nth-child(2) .brand-icon{color:var(--agent-success)}
.agent-quick-action:nth-child(3) .brand-icon{color:#7c5ce5}
.agent-quick-action:nth-child(4) .brand-icon{color:var(--agent-yellow)}

.agent-home-section{grid-column:auto!important;grid-row:auto!important;padding:0!important;background:var(--agent-surface)!important;border:0!important;border-radius:8px!important;box-shadow:none!important;overflow:hidden}
.agent-section-head{min-height:44px;padding:9px 12px}
.agent-section-head h2{font-size:15px!important;font-weight:600!important}
.agent-text-action{color:var(--agent-muted)!important;font-size:12px!important}
.agent-home-tabs{display:flex;border-top:1px solid var(--agent-line);border-bottom:1px solid var(--agent-line);overflow-x:auto}
.agent-home-tab{position:relative;flex:0 0 auto;min-height:40px;padding:8px 12px;color:var(--agent-muted);background:transparent;border:0;border-radius:0!important;font-size:13px}
.agent-home-tab::after{content:"";position:absolute;right:12px;bottom:0;left:12px;height:2px;background:transparent}
.agent-home-tab.is-active{color:#9a7600;font-weight:600}
.agent-home-tab.is-active::after{background:var(--agent-primary)}
.agent-home-empty{margin:0;padding:28px 12px;color:var(--agent-muted);font-size:12px;text-align:center}

.agent-offer-list,.agent-current-list,.agent-record-list{display:grid;margin:0}
.agent-offer-list{border-top:1px solid var(--agent-line)}
.agent-offer-row{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto auto 18px!important;grid-template-areas:none!important;align-items:center;gap:10px;min-height:66px;padding:8px 12px;color:var(--agent-ink);background:transparent!important;border:0;border-bottom:1px solid var(--agent-line);border-radius:0!important;text-align:left}
.agent-offer-row>*{grid-area:auto!important}
.agent-offer-row:last-child{border-bottom:0}
.agent-offer-copy{display:grid;min-width:0}
.agent-offer-copy strong{font-size:14px;font-weight:600}
.agent-offer-range{margin-top:3px;color:var(--agent-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-offer-rate{display:grid;text-align:right}
.agent-offer-rate strong{color:var(--agent-yellow);font:700 15px/1.2 var(--font-money)}
.agent-offer-rate small{margin-top:2px;color:var(--agent-muted);font-size:10px}
.agent-offer-availability{color:var(--agent-muted);font-size:11px;white-space:nowrap}
.agent-offer-footer{width:100%;min-height:40px;color:var(--agent-muted);background:transparent;border:0;border-top:1px solid var(--agent-line);border-radius:0!important;font-size:12px}

.agent-current-row,.agent-record-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 18px;align-items:center;gap:10px;min-height:58px;padding:8px 12px;color:var(--agent-ink);background:transparent!important;border:0;border-bottom:1px solid var(--agent-line);border-radius:0!important;text-align:left}
.agent-current-row:last-child,.agent-record-row:last-child{border-bottom:0}
.agent-current-copy,.agent-record-copy{display:grid;min-width:0}
.agent-current-copy strong,.agent-record-copy strong{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-current-copy small,.agent-record-copy small{margin-top:3px;color:var(--agent-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-record-row{grid-template-columns:minmax(0,1fr) auto 18px}
.agent-record-row>b{font:600 14px/1.2 var(--font-money)}
.agent-record-row.is-positive>b{color:var(--agent-success)}
.agent-record-row.is-negative>b{color:var(--agent-danger)}

#appView:not([data-current-view="dashboard"]) #content{display:grid;gap:10px}
.agent-portal .panel,.agent-page-metrics,.agent-team-overview{background:var(--agent-surface)!important;border:0!important;border-radius:8px!important;box-shadow:none!important}
.agent-page-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:transparent!important}
.agent-page-metric{min-height:84px;padding:14px;background:var(--agent-surface);border:0;border-radius:8px}
.agent-profile-hero{margin:0;padding:16px;color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6)!important;border:0!important;border-radius:12px!important}
.agent-profile-identity strong,.agent-profile-identity span,.agent-profile-money span,.agent-profile-money b{color:#fff!important}
.agent-profile-avatar{background:rgba(255,255,255,.24);border-color:rgba(255,255,255,.28)}
.agent-feature-panel{background:transparent!important}
.agent-feature-panel>.panel-head{display:none}
.agent-feature-list{display:grid;grid-template-columns:1fr;gap:8px}
.agent-feature-row{min-height:68px;padding:9px 14px;background:var(--agent-surface);border:0!important;border-radius:8px!important}
.agent-feature-icon{width:42px;height:42px;border-radius:10px;background:color-mix(in srgb,var(--agent-cyan) 10%,var(--agent-surface))}
.agent-feature-copy strong{font-size:14px;font-weight:600}
.agent-feature-copy small{font-size:11px}
.agent-profile-logout{padding:8px 16px 24px}

@media(max-width:700px){
  .agent-portal .login-shell{padding:20px}
  .agent-portal .login-card{padding:24px 12px}
  .agent-topbar{min-height:64px;padding:8px 12px}
  .agent-portal .brand img{width:40px;height:40px}
  .agent-portal .agent-nav-shell{position:fixed;z-index:60;top:auto;right:0;bottom:0;left:0;padding:3px 8px calc(3px + env(safe-area-inset-bottom));border-top:1px solid var(--agent-line);border-bottom:0}
  .agent-portal nav{width:100%}
  .agent-portal nav button{display:grid;justify-items:center;gap:2px;min-height:58px;padding:5px 3px;font-size:11px}
  .agent-portal nav button::after{display:none}
  .agent-portal nav button.active,html[data-theme="light"] .agent-portal nav button.active{color:#9a7600;background:transparent}
  .agent-portal .workspace{width:100%;padding:12px 12px calc(76px + env(safe-area-inset-bottom))}
  .agent-page-heading{margin:0 0 12px}
  .agent-dashboard,.agent-home-stack{gap:10px!important}
  .agent-balance{grid-template-columns:1fr 1fr!important;padding:18px!important}
  .agent-balance>strong{font-size:30px!important}
  .agent-balance-facts>div{padding:3px 12px!important}
  .agent-work-head{align-items:center!important;flex-direction:row!important;gap:10px;padding:10px 12px}
  .agent-work-primary{min-width:94px!important}
  .agent-work-settings{padding-inline:12px!important}
  .agent-quick-actions{grid-template-columns:repeat(4,1fr);gap:6px}
  .agent-quick-action{min-height:70px;flex-direction:column;gap:4px;padding:7px 3px;font-size:11px}
  .agent-home-tab{padding-inline:10px}
  .agent-offer-row{grid-template-columns:32px minmax(0,1fr) auto 18px!important}
  .agent-offer-availability{display:none}
  .agent-profile-hero{margin:0}
  .agent-feature-list{gap:8px}
  .agent-portal .panel{border-radius:8px!important}
}

@media(max-width:430px){
  .agent-topbar-actions{gap:0}
  .agent-topbar-actions .agent-header-icon{width:40px;height:40px}
  .agent-header-avatar{display:none}
  .agent-balance{grid-template-columns:1fr!important}
  .agent-balance-head,.agent-balance>strong,.agent-balance-facts{grid-column:1;grid-row:auto}
  .agent-balance-facts{margin-top:14px;padding-top:13px;border-top:1px solid rgba(255,255,255,.22);border-left:0}
  .agent-balance-facts>div:first-child{padding-left:0!important}
  .agent-balance-facts>div+div{border-left:1px solid rgba(255,255,255,.22)!important}
  .agent-work-head{align-items:stretch!important;flex-direction:column!important}
  .agent-work-actions{width:100%!important;align-items:stretch;flex-direction:column}
  .agent-work-primary{width:100%!important}
  .agent-work-settings-copy small{max-width:260px}
  .agent-offer-rate small{display:none}
}
