.header-right{gap:10px}.header-right .pill{display:none}#accountSwitch{width:210px;max-width:32vw;margin:0;padding:10px;font-size:12px;background:white}.header-right>.primary{white-space:nowrap}.account-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:18px;margin-bottom:24px}.account-card{text-align:left;background:white;border:1px solid var(--line);padding:24px;border-radius:9px;color:var(--ink)}.account-card:hover{border-color:#a79b80;box-shadow:0 4px 15px #51472e09}.account-card .card-head>b{font-size:15px}.account-return{font-size:32px;font-weight:600;margin:24px 0 17px;font-variant-numeric:tabular-nums}.account-return small{font-size:10px;font-weight:400;color:#908979;margin-left:12px}.account-meta{display:flex;justify-content:space-between;font-size:11px;color:#766c54;margin-bottom:18px}.account-card>.muted{border-top:1px solid #f1eee8;padding-top:13px;font-size:10px;display:flex;justify-content:space-between}.compare-card{margin-top:16px}#compareChart{height:310px;margin:28px 0 12px;display:flex;align-items:center;justify-content:center}#compareChart svg{width:100%;height:100%}.curve-check{display:flex;align-items:center;gap:8px;cursor:pointer}.curve-check input{width:14px;height:14px;margin:0;accent-color:#51472e}.builder-grid{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:22px}.asset-results{max-height:505px;overflow-y:auto;border-top:1px solid #f0eee8}.asset-option{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;border:0;border-bottom:1px solid #f0eee8;padding:14px 5px;background:white;color:#574c33}.asset-option:hover{background:#f5f4f0}.asset-option div{display:flex;flex-direction:column;gap:5px;min-width:0;padding-right:12px}.asset-option b{font-size:13px}.asset-option span{font-size:11px;color:#8c8576;line-height:1.5;overflow-wrap:anywhere}.asset-option small{font-size:10px;color:#a8a18f}.asset-option strong{background:#eeebe4;border-radius:4px;padding:6px 9px;font-weight:500;font-size:12px;white-space:nowrap}.asset-option.picked{opacity:.55;cursor:default}.weight-row{display:grid;grid-template-columns:minmax(0,1fr) 106px 28px;gap:12px;align-items:center;padding:17px 0;border-bottom:1px solid #efece6}.weight-row>div{min-width:0}.weight-row b{font-size:13px}.weight-row small{display:block;color:#9f9889;font-size:10px;line-height:1.5;overflow-wrap:anywhere;margin-top:5px}.weight-row label{display:flex;align-items:center;gap:8px;margin:0;color:#a09884}.weight-row input{margin:0;padding:10px 7px;min-width:0;text-align:right}.remove-asset{border:0;background:transparent;color:#afa899;font-size:21px;padding:3px}.remove-asset:hover{color:#a04f44}.weight-summary{display:flex;justify-content:space-between;font-size:12px;color:#695e43;margin-top:24px}progress{display:block;width:100%;height:8px;margin:12px 0 8px;appearance:none;border:0;background:#ece8e0;border-radius:4px;overflow:hidden}progress::-webkit-progress-bar{background:#ece8e0}progress::-webkit-progress-value{background:#786947}.reason-label{display:block;color:#837a66;font-size:11px;margin-top:22px}.full{width:100%;margin-top:20px}.section-heading{margin:32px 0 15px}.form-error{color:#ab5442!important;font-size:12px;line-height:1.7}details{margin:22px 0 0}summary{cursor:pointer;color:#877e6a;font-size:12px}dialog form label{margin-top:20px}#createDialog{max-width:490px}#createDialog h2{margin:0}.color0{background:#51472e}.color1{background:#9c7a42}.color2{background:#668ab3}.color3{background:#ad6d7d}.color4{background:#9e8d64}.color5{background:#8481ad}#compareLegend{flex-wrap:wrap;justify-content:flex-end}#compareLegend span{white-space:nowrap}.account-cards>.empty{grid-column:1/-1;background:white;border:1px dashed #d5cdba;border-radius:9px}#confirmBody .table-wrap{max-height:320px}#confirmDialog{max-height:85vh;overflow:auto}.header-right .quiet{white-space:nowrap}
@media(max-width:1100px){.crumb{display:none}.header-right{width:100%;justify-content:flex-end}.builder-grid{grid-template-columns:1fr}.asset-results{max-height:310px}.account-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.account-card{padding:20px}.account-meta{flex-direction:column;gap:7px}}
@media(max-width:800px){nav{gap:2px;overflow-x:auto}.nav{width:auto;flex:1;flex-shrink:0;padding:10px 6px;gap:2px}.nav span{white-space:nowrap;font-size:10px}.header-right{justify-content:space-between;flex-wrap:wrap}header{height:auto;min-height:84px;padding:15px 0}#accountSwitch{max-width:none;width:100%;flex-basis:100%;order:0}.header-right>.primary{font-size:11px;padding:10px 13px}.header-right>.quiet{font-size:11px}.account-cards{grid-template-columns:1fr}.account-meta{flex-direction:row}.builder-grid{gap:18px}#compareChart{height:240px}.weight-row{grid-template-columns:minmax(0,1fr) 90px 24px;gap:8px}.compare-card .card-head{align-items:flex-start}.compare-card .legend{justify-content:flex-start}.account-card .card-head{flex-wrap:nowrap}}

/* Phone-first controls, 2026-11-07. */
button,a,input,select,summary{touch-action:manipulation}
dialog{max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain}
#confirmBody{overflow-x:auto}
.table-wrap{overscroll-behavior-x:contain}
@media(max-width:800px){
  body{overflow-wrap:break-word}
  aside{padding:14px 16px}
  aside .brand{font-size:21px}
  aside .brand span{font-size:9px;margin-left:12px}
  aside nav{position:fixed;inset:auto 0 0;z-index:20;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));background:#f6f5f2;border-top:1px solid #e5e0d6;box-shadow:0 -3px 15px #2f2e2b0a;overflow:visible}
  .nav{min-width:0;min-height:56px;margin:0;padding:6px 0;display:flex;flex-direction:column;gap:4px;font-size:16px;border-radius:7px}
  .nav span{font-size:11px;line-height:1.3;white-space:normal}
  .nav.active{background:#e9e5dd;color:#3b3321}
  main{padding:0 16px calc(100px + env(safe-area-inset-bottom));min-width:0}
  header{padding:12px 0}
  button,.button,.quiet,.primary{min-height:44px;font-size:14px}
  input,select,textarea,#accountSwitch{font-size:16px;min-height:48px}
  .header-right>.primary,.header-right>.quiet{font-size:14px;flex:1}
  #accountSwitch{font-size:16px}
  h1{font-size:24px;overflow-wrap:anywhere}
  .title-row{flex-wrap:wrap;gap:12px;margin:22px 0}
  .title-row>.primary{font-size:14px;min-height:44px}
  .muted,.helper,.soft-note,dl{font-size:14px;line-height:1.8}
  .metric{min-width:0;padding:16px 12px}
  .metric .name,.metric .sub{font-size:12px}
  .metric .value{font-size:clamp(18px,5.5vw,25px);letter-spacing:-.5px;overflow-wrap:anywhere}
  .card{min-width:0;padding:18px 14px}
  .account-card{padding:18px;overflow-wrap:anywhere}
  .account-meta{flex-wrap:wrap;font-size:13px;gap:8px}
  .account-card>.muted{font-size:12px;gap:8px;flex-wrap:wrap}
  .account-card .card-head{flex-wrap:wrap}
  .legend{flex-wrap:wrap;font-size:12px}
  #chart,#compareChart{height:220px;overflow-x:auto;justify-content:flex-start}
  #chart svg,#compareChart svg{min-width:480px;flex-shrink:0}
  .chart-foot{font-size:12px;flex-wrap:wrap;gap:8px}
  .compare-card .helper::after,.holdings .card-head::after{content:'表格与图表可左右滑动查看';font-size:12px;display:block;color:#68604c;margin-top:8px}
  th,td{font-size:13px;padding:14px 10px}
  .curve-check{min-height:44px}
  .curve-check input{min-height:22px;width:22px;height:22px}
  .asset-results{max-height:280px;overscroll-behavior-y:contain}
  .asset-option{min-height:64px;padding:12px 4px}
  .asset-option b{font-size:15px}
  .asset-option span,.asset-option small{font-size:12px}
  .asset-option strong{min-width:44px;min-height:44px;display:grid;place-items:center}
  .weight-row{grid-template-columns:minmax(0,1fr) 94px 44px;gap:6px}
  .weight-row small{font-size:12px}
  .weight-row input{font-size:16px}
  .remove-asset{width:44px;height:44px;color:#8a4538}
  .reason-label,form label{font-size:14px}
  .actions{flex-wrap:wrap;width:100%}.actions button{flex:1}
  .signal-bottom .muted{font-size:12px}
  dialog{width:calc(100% - 16px);max-width:560px;padding:20px 16px;max-height:calc(100dvh - 24px);border-radius:16px;margin:auto}
  dialog summary{min-height:44px;padding:10px 0;font-size:14px}
  dialog .card-head{flex-wrap:nowrap}
  #closeCreate{min-width:44px;flex-shrink:0}
  .dialog-actions{flex-wrap:wrap;gap:10px}
  .dialog-actions button{flex:1 1 120px}
  #notice{top:8px;font-size:14px}
  footer{font-size:12px;flex-wrap:wrap;line-height:1.8}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.brand{overflow-wrap:anywhere}.brand span{font-size:11px;letter-spacing:1px}footer{flex-wrap:wrap;gap:12px}@media(max-width:800px){.brand{font-size:22px}.brand span{margin-left:10px}}

.account-card:hover{border-color:#b79a62;box-shadow:0 4px 15px #96743c12}.curve-check input{accent-color:#96743c}.asset-option{color:#55472f}.asset-option:hover{background:#f5efdf}.asset-option strong{background:#eee2c8;color:#715626}.weight-summary{color:#72592e}progress::-webkit-progress-value{background:#a58449}.color0{background:#a58449}.color4{background:#5e8790}@media(max-width:800px){.brand{font-size:28px}.brand span{display:none}.brand-symbol{width:29px;height:29px}}

/* Comparison series must stay distinguishable from brand gold. */
.color1{background:#55758b}
