/* ============================================================
   我的資產 — 子頁共用層
   投資組合／持倉詳情／交易記錄／資金管理／收益與分配／投後報告
   依賴 assets.css（版面、子導航、卡片、表格、骨架屏）與 club.css（.chip、.tabs、.input、.vtl）
   ============================================================ */

/* 子頁裡的 <section>（月份分組、報告分組）不吃 style.css 給 section 的大內距 */
.txg, .rp-group { padding: 0; }

/* ============ 通用：按鈕、連結鈕、說明 ============ */
.as-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--c-accent);
  border-radius: 999px;
  background: var(--c-accent);
  color: #16120F;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, opacity .25s;
}
.as-btn:hover { background: #E0B384; border-color: #E0B384; }
.as-btn svg { width: 14px; height: 14px; flex: none; }
.as-btn--sm { padding: 7px 14px; font-size: 12.5px; }
.as-btn--ghost { background: transparent; color: var(--c-accent); border: 1px dashed rgba(210, 160, 110, .55); }
.as-btn--ghost:hover { background: rgba(210, 160, 110, .1); border-color: rgba(210, 160, 110, .8); }
.as-btn--plain { background: transparent; color: rgba(247, 247, 247, .8); border: 1px dashed var(--line-on-dark); }
.as-btn--plain:hover { background: rgba(247, 247, 247, .04); border-color: rgba(210, 160, 110, .55); color: var(--c-accent); }
.as-btn--danger { background: transparent; color: var(--down); border: 1px dashed rgba(217, 140, 122, .6); }
.as-btn--danger:hover { background: rgba(217, 140, 122, .1); }
.as-btn:disabled, .as-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.as-btn:disabled:hover, .as-btn[aria-disabled="true"]:hover { background: inherit; }
.as-btn--plain[aria-disabled="true"]:hover, .as-btn--ghost[aria-disabled="true"]:hover { background: transparent; }

.as-linkbtn { font-size: 12.5px; color: var(--c-accent); white-space: nowrap; }
.as-linkbtn:hover { color: #E6BC8E; }
.as-linkbtn--mute { color: rgba(247, 247, 247, .55); }
.as-linkbtn--mute:hover { color: var(--c-text); }
.as-card__note { font-size: 11px; opacity: .5; text-transform: none; letter-spacing: .03em; }
button.as-card__link { font-size: 12px; }
.as-card__link:hover { color: #E6BC8E; }

.as-note {
  padding: 11px 14px;
  border-left: 1px dashed rgba(210, 160, 110, .55);
  background: rgba(210, 160, 110, .05);
  font-size: 12.5px;
  line-height: 1.75;
  opacity: .85;
}
.as-note--warn { border-left-color: rgba(217, 140, 122, .7); background: rgba(217, 140, 122, .07); }
.as-note b { color: var(--c-accent); font-weight: 500; }
.as-note--warn b { color: var(--down); }

.as-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 48px 20px;
  text-align: center;
  font-size: 13.5px;
}
.as-empty p { opacity: .55; max-width: 360px; line-height: 1.75; }
.as-empty b { font-size: 15px; font-weight: 500; opacity: .9; }

.as-back { font-size: 12px; color: rgba(247, 247, 247, .6); text-transform: none; letter-spacing: .04em; transition: color .25s; }
.as-back:hover { color: var(--c-accent); }

.as-seg--icon button { padding: 6px 14px; }

/* ============ 頂部統計條（四個小數字） ============ */
.as-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  background: rgba(27, 21, 20, .6);
}
.as-stats > div {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  border-right: 1px dashed var(--line-on-dark);
  min-width: 0;
}
.as-stats > div:last-child { border-right: none; }
.as-stats dt { font-size: 12px; opacity: .55; }
.as-stats dd {
  font-family: var(--mono);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.as-stats dd small { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; opacity: .6; }
.as-stats dd.is-gold { color: var(--c-accent); }
@media (max-width: 760px) {
  .as-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-stats > div:nth-child(2n) { border-right: none; }
  .as-stats > div:nth-child(n+3) { border-top: 1px dashed var(--line-on-dark); }
}

/* ============ 下鑽來源標記 ============ */
.as-drill {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px;
  border: 1px dashed rgba(210, 160, 110, .55);
  border-radius: 6px;
  background: rgba(210, 160, 110, .07);
  font-size: 13px;
}
.as-drill__k { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--c-accent); }
.as-drill__v b { font-weight: 500; }
.as-drill__x {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(247, 247, 247, .7);
  border: 1px dashed var(--line-on-dark);
}
.as-drill__x:hover { color: var(--c-accent); border-color: rgba(210, 160, 110, .6); }

/* ============ 篩選欄 ============ */
.as-filter { padding: 14px 18px; gap: 12px; }
.as-filter__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.as-filter__label { min-width: 64px; font-size: 10.5px; opacity: .5; }
.as-filter .chips { gap: 7px; }
.as-filter .chip { padding: 5px 13px; font-size: 12.5px; }
.as-filter .chip__n { font-family: var(--mono); font-size: 10.5px; opacity: .6; }
.as-filter .chip.is-on .chip__n { opacity: .75; }
.as-filter__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-on-dark);
}
.as-filter__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-left: auto; }
.as-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.as-saved__label { opacity: .45; margin-right: 2px; }
.as-saved__item {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(210, 160, 110, .35);
  border-radius: 999px;
  overflow: hidden;
}
.as-saved__item button { padding: 3px 10px; font-size: 12px; color: var(--c-accent); }
.as-saved__item button:hover { background: rgba(210, 160, 110, .1); }
.as-saved__item button + button { padding: 3px 8px 3px 4px; color: rgba(247, 247, 247, .45); }
.as-filter__row--fields { align-items: flex-end; }
.as-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.as-field .select, .as-field .input { padding: 8px 34px 8px 12px; font-size: 13px; }
.as-field .input { padding-right: 12px; color-scheme: dark; }
@media (max-width: 620px) {
  .as-filter__label { min-width: 100%; }
  /* 手機：chips 單行橫向捲動，避免篩選欄佔掉整個首屏 */
  .as-filter .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; }
  .as-filter .chips::-webkit-scrollbar { display: none; }
  .as-filter .chip { flex: none; }
  .as-seg--icon button, #rpSeg button { flex: 1; }
  .as-filter__row { gap: 6px; }
  .as-field { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .as-filter__tools { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* ============ 投資組合 ============ */
.pf { min-width: 1120px; }
.pf .chk { width: 34px; padding-right: 0; }
.pf input[type="checkbox"], .pfc input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--c-accent); cursor: pointer; }
.pf tbody tr.is-sel { background: rgba(210, 160, 110, .07); }
.pf tbody tr.is-exited td:not(.chk):not(:last-child) { opacity: .6; }
.pf small { opacity: .75; }
.pf__sub { display: block; font-family: var(--mono); font-size: 10.5px; opacity: .45; margin-top: 2px; }
.pf th button { font: inherit; color: inherit; letter-spacing: inherit; }
.pf tfoot td { font-family: var(--mono); font-size: 12px; font-weight: 700; border-bottom: none; border-top: 1px dashed var(--line-on-dark); }
.pf tfoot td:first-child { font-family: var(--sans); font-weight: 500; opacity: .6; }

.pfc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pfc {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 16px 14px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  background: rgba(20, 16, 16, .55);
  cursor: pointer;
  transition: border-color .25s, transform .3s var(--ease-power4);
}
.pfc:hover { border-color: rgba(210, 160, 110, .55); transform: translateY(-2px); }
.pfc.is-sel { border-style: solid; border-color: rgba(210, 160, 110, .6); background: rgba(210, 160, 110, .06); }
.pfc.is-exited { opacity: .62; }
.pfc.is-exited:hover { opacity: .9; }
.pfc__top { display: flex; align-items: flex-start; gap: 10px; }
.pfc__name { font-size: 14px; font-weight: 500; line-height: 1.45; }
.pfc__name a:hover { color: var(--c-accent); }
.pfc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.pfc__meta .trtag { margin-left: 0; }
.pfc__chk { margin-left: auto; padding: 2px; }
.pfc__val { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pfc__val b { font-family: var(--mono); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pfc__val span { font-family: var(--mono); font-size: 12px; text-align: right; }
.pfc__kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding-top: 10px; border-top: 1px dashed var(--line-on-dark); }
.pfc__kv div { display: flex; flex-direction: column; gap: 2px; }
.pfc__kv dt { font-size: 10.5px; opacity: .45; }
.pfc__kv dd { font-family: var(--mono); font-size: 12px; }
.pfc__recent { font-size: 12px; opacity: .6; }

.as-batch {
  position: sticky; bottom: 16px;
  z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  align-self: center;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(210, 160, 110, .55);
  border-radius: 999px;
  background: rgba(20, 16, 16, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.as-batch__n { font-size: 13px; margin-right: 4px; }
.as-batch__n b { font-family: var(--mono); color: var(--c-accent); }
@media (max-width: 620px) {
  .as-batch { border-radius: 10px; align-self: stretch; justify-content: center; }
}

/* ============ 持倉詳情 ============ */
.hd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hd-head .hold__logo { width: 52px; height: 52px; border-radius: 10px; font-size: 15px; }
.hd-head__main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hd-head__name { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.25; }
.hd-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.hd-head__meta .trtag { margin-left: 0; }
.hd-head__meta .tag--plain { font-size: 11px; }
.hd-head__intro { font-size: 13.5px; opacity: .62; line-height: 1.7; max-width: 640px; }

.hd-pos { gap: 18px; }
.hd-pos__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.hd-pos__label { font-size: 13px; opacity: .6; display: flex; align-items: center; gap: 8px; }
.hd-pos__val {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hd-pos__val small { font-size: .45em; margin-right: 4px; opacity: .7; vertical-align: .5em; }
.hd-pos__chg { margin-top: 8px; font-size: 13px; }
.hd-pos__src { font-size: 11.5px; opacity: .5; margin-top: 6px; }
.hd-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-pos .as-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hd-pos .as-metrics dd { font-size: clamp(14px, 1.3vw, 17px); }
.hd-pos .as-metrics dd small { font-size: 10.5px; font-weight: 500; opacity: .55; }
@media (max-width: 1180px) {
  .hd-pos .as-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hd-pos .as-metrics > div:nth-child(3n) { border-right: none; }
  .hd-pos .as-metrics > div:nth-child(3n+1) { padding-left: 0; }
  .hd-pos .as-metrics > div:nth-child(n+4) { border-top: 1px dashed var(--line-on-dark); padding-top: 14px; margin-top: 12px; }
}
@media (max-width: 760px) {
  .hd-pos .as-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-pos .as-metrics > div { border-right: 1px dashed var(--line-on-dark); padding-left: 16px; border-top: none; margin-top: 0; padding-top: 16px; }
  .hd-pos .as-metrics > div:nth-child(2n) { border-right: none; }
  .hd-pos .as-metrics > div:nth-child(2n+1) { padding-left: 0; }
  .hd-pos .as-metrics > div:nth-child(n+3) { border-top: 1px dashed var(--line-on-dark); padding-top: 14px; margin-top: 12px; }
  .hd-ops { width: 100%; }
  .hd-ops .as-btn { flex: 1 1 calc(50% - 4px); }
}

.hd-tabs { margin: 0; padding: 0 18px; gap: clamp(14px, 2vw, 26px); }
.hd-tabs .tab { padding: 15px 2px; font-size: 12px; font-family: var(--sans); font-weight: 500; letter-spacing: .02em; }

/* 估值折線 */
.vchart { position: relative; }
.vchart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.vlist { margin-top: 16px; display: flex; flex-direction: column; }
.vlist__row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px dashed var(--line-on-dark);
  font-size: 13px;
}
.vlist__date { font-family: var(--mono); font-size: 11.5px; opacity: .55; }
.vlist__basis { opacity: .75; line-height: 1.65; }
.vlist__v { font-family: var(--mono); font-weight: 700; text-align: right; white-space: nowrap; }
.vlist__v small { display: block; font-weight: 500; font-size: 10.5px; }
@media (max-width: 560px) {
  .vlist__row { grid-template-columns: minmax(0, 1fr) auto; }
  .vlist__basis { grid-column: 1 / -1; order: 3; }
}

/* 通用資料列表（分配、交易、文件、報告） */
.dlist { display: flex; flex-direction: column; }
.dlist__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-on-dark);
  font-size: 13px;
}
.dlist__row:last-child { border-bottom: none; }
.dlist__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dlist__main b { font-weight: 500; }
.dlist__main span { font-family: var(--mono); font-size: 10.5px; opacity: .45; }
.dlist__mid { font-size: 12px; opacity: .65; }
.dlist__end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-align: right; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.dlist__end small { font-family: var(--sans); font-weight: 400; font-size: 11px; opacity: .6; }
@media (max-width: 560px) {
  .dlist__row { grid-template-columns: minmax(0, 1fr) auto; }
  .dlist__mid { grid-column: 1 / -1; order: 3; }
}
.stchip { display: inline-block; padding: 2px 8px; border-radius: 3px; font-family: var(--sans); font-size: 11px; font-weight: 500; white-space: nowrap; }
.stchip--done { background: rgba(169, 196, 151, .14); color: var(--up); }
.stchip--pending { background: rgba(210, 160, 110, .16); color: var(--c-accent); }
.stchip--failed { background: rgba(217, 140, 122, .14); color: var(--down); }
.stchip--muted { background: rgba(247, 247, 247, .07); color: rgba(247, 247, 247, .6); }

.doc__icon {
  width: 32px; height: 38px;
  display: grid; place-items: center;
  border: 1px dashed var(--line-on-dark);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--c-accent);
  flex: none;
}
.doc { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* 項目動態時間軸 */
.upd { display: flex; flex-direction: column; }
.upd__item { display: grid; grid-template-columns: 86px 12px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; position: relative; }
.upd__item:last-child { padding-bottom: 0; }
.upd__item::before { content: ''; position: absolute; left: 105px; top: 14px; bottom: -2px; width: 1px; background: var(--line-on-dark); }
.upd__item:last-child::before { display: none; }
.upd__date { font-family: var(--mono); font-size: 11px; opacity: .5; padding-top: 2px; }
.upd__dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--c-accent); position: relative; z-index: 1; }
.upd__item:not(:first-child) .upd__dot { background: var(--c-surface); border: 1px solid rgba(210, 160, 110, .6); }
.upd__t { font-size: 14px; font-weight: 500; }
.upd__p { margin-top: 4px; font-size: 13px; opacity: .65; line-height: 1.7; }

/* 風險提示塊 */
.hd-risk {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px 28px;
  padding: 20px 22px;
  border: 1px dashed rgba(217, 140, 122, .45);
  border-radius: 8px;
  background: rgba(217, 140, 122, .04);
}
@media (max-width: 760px) { .hd-risk { grid-template-columns: 1fr; } }
.hd-risk__lv { display: flex; flex-direction: column; gap: 10px; }
.hd-risk__k { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; opacity: .55; }
.hd-risk__lvl { font-size: 18px; font-weight: 500; }
.hd-risk__lvl b { font-family: var(--mono); color: var(--down); margin-right: 8px; }
.hd-risk__meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.hd-risk__meter i { height: 5px; border-radius: 2px; background: rgba(247, 247, 247, .1); }
.hd-risk__meter i.is-on { background: linear-gradient(90deg, #C9A074, var(--down)); }
.hd-risk__meter + span { font-family: var(--mono); font-size: 10px; opacity: .4; display: flex; justify-content: space-between; }
.hd-risk ul { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.7; }
.hd-risk li { position: relative; padding-left: 16px; opacity: .78; }
.hd-risk li::before { content: ''; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--down); }
.hd-risk__mon { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-on-dark); font-size: 12.5px; opacity: .65; line-height: 1.7; }
.hd-risk__mon b { color: var(--c-accent); font-weight: 500; opacity: 1; }

/* ============ 交易記錄 ============ */
.txw { padding: 0; }
.txg__head {
  position: sticky; top: 56px;
  z-index: 2;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px;
  padding: 12px 18px;
  background: #1E1817;
  border-bottom: 1px solid rgba(247, 247, 247, .07);
}
.txg:first-child .txg__head { border-radius: 0; }
.txg__m { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.txg__m span { font-family: var(--sans); font-weight: 400; font-size: 11.5px; opacity: .45; margin-left: 8px; }
.txg__sum { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--mono); font-size: 11.5px; }
.txg__sum em { font-style: normal; font-family: var(--sans); opacity: .45; margin-right: 6px; }

.txr { border-bottom: 1px solid rgba(247, 247, 247, .06); }
.txr:last-child { border-bottom: none; }
.txr__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 112px 64px minmax(0, 1fr) 130px 92px 150px 16px;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  text-align: left;
  font-size: 13px;
  transition: background-color .2s;
}
.txr__btn:hover { background: rgba(210, 160, 110, .05); }
.txr.is-open .txr__btn { background: rgba(210, 160, 110, .06); }
.txr__time { font-family: var(--mono); font-size: 11.5px; opacity: .6; }
.txr__type { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.txr__type i { width: 6px; height: 6px; border-radius: 50%; background: rgba(247, 247, 247, .45); flex: none; }
.txr__type.is-in i { background: var(--up); }
.txr__target { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.txr__amt { text-align: right; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.txr__amt.is-void { opacity: .45; text-decoration: line-through; }
.txr__no { font-family: var(--mono); font-size: 10.5px; opacity: .45; text-align: right; }
.txr__chev { width: 10px; height: 10px; opacity: .5; transition: transform .3s var(--ease-power4); }
.txr.is-open .txr__chev { transform: rotate(180deg); }
.txr__more { padding: 4px 18px 20px; background: rgba(210, 160, 110, .03); }
.txr__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 32px; }
@media (max-width: 760px) { .txr__grid { grid-template-columns: 1fr; } }
.txr__kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 12px; font-size: 12.5px; align-content: start; }
.txr__kv dt { opacity: .45; }
.txr__kv dd { min-width: 0; overflow-wrap: anywhere; line-height: 1.6; }
.txr__kv a, .txr__kv button { color: var(--c-accent); }
.txr__hash { font-family: var(--mono); font-size: 11.5px; }
.txr__note { margin-top: 12px; }
.txr .vtl { padding-top: 2px; }
.txr .vtl__label { font-size: 13px; }
.txr .vtl__step { padding-bottom: 14px; }
.vtl__step.is-fail .vtl__dot { background: var(--down); border-color: var(--down); }
.vtl__step.is-fail .vtl__label { color: var(--down); opacity: 1; }

@media (max-width: 860px) {
  .txg__head { top: 62px; padding: 12px 16px; }
  .txr__btn {
    grid-template-columns: minmax(0, 1fr) auto 14px;
    grid-template-areas: "type amt chev" "target status chev" "time no chev";
    gap: 4px 12px;
    padding: 13px 16px;
  }
  .txr__type { grid-area: type; }
  .txr__amt { grid-area: amt; }
  .txr__target { grid-area: target; font-size: 12.5px; opacity: .7; }
  .txr__status { grid-area: status; justify-self: end; }
  .txr__time { grid-area: time; font-size: 10.5px; }
  .txr__no { grid-area: no; }
  .txr__chev { grid-area: chev; align-self: center; }
  .txr__more { padding: 4px 16px 18px; }
}

/* ============ 資金管理 ============ */
.fd-pay {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 13px 16px;
  border: 1px dashed rgba(217, 140, 122, .55);
  border-radius: 6px;
  background: rgba(217, 140, 122, .06);
  font-size: 13px;
  line-height: 1.7;
}
.fd-pay__t { flex: 1 1 300px; }
.fd-pay__t b { color: var(--down); font-weight: 500; }
.fd-pay__t span { font-family: var(--mono); }

.fd-acct {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px 32px;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(247, 247, 247, .12);
  border-radius: 10px;
  background: var(--c-surface);
}
@media (max-width: 900px) { .fd-acct { grid-template-columns: 1fr; } }
.fd-acct__label { font-size: 13px; opacity: .6; }
.fd-acct__big {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fd-acct__big small { font-size: .45em; margin-right: 4px; opacity: .6; vertical-align: .5em; }
.fd-acct__subs { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px dashed var(--line-on-dark); }
.fd-acct__subs > div { padding: 14px 16px 0 0; display: flex; flex-direction: column; gap: 4px; }
.fd-acct__subs > div + div { padding-left: 18px; border-left: 1px dashed var(--line-on-dark); }
.fd-acct__subs dt { font-size: 12px; opacity: .55; }
.fd-acct__subs dd { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.fd-acct__subs dd small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11px; opacity: .5; margin-top: 4px; line-height: 1.5; }
.fd-acct__ops { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.fd-acct__ops .as-btn { min-width: 120px; }
.fd-cust {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 18px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  background: rgba(20, 16, 16, .5);
  font-size: 12.5px;
  align-self: start;
}
.fd-cust__seal { display: flex; align-items: center; gap: 12px; }
.fd-cust__seal svg { width: 34px; height: 34px; flex: none; color: var(--up); }
.fd-cust__seal b { display: block; font-size: 14px; font-weight: 500; }
.fd-cust__seal span { font-size: 11.5px; opacity: .55; }
.fd-cust dl { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px 10px; }
.fd-cust dt { opacity: .45; }
.fd-cust dd { font-family: var(--mono); font-size: 11.5px; overflow-wrap: anywhere; }
.fd-cust p { opacity: .55; line-height: 1.7; }
.fd-limit { display: flex; flex-direction: column; gap: 6px; }
.fd-limit__row { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; }
.fd-limit__row span:last-child { font-family: var(--mono); }
.fd-limit .progress__bar { height: 3px; }

.acct { display: flex; flex-direction: column; gap: 10px; }
.acct__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 6px;
}
.acct__item.is-default { border-color: rgba(210, 160, 110, .45); }
.acct__ic {
  width: 40px; height: 28px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(210, 160, 110, .3), rgba(210, 160, 110, .08));
  font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--c-accent);
}
.acct__ic--chain { border-radius: 50%; width: 32px; height: 32px; justify-self: center; background: rgba(140, 169, 191, .16); color: var(--tr-web3); }
.acct__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acct__main b { font-size: 13.5px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.acct__main span { font-family: var(--mono); font-size: 11.5px; opacity: .55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__tag { font-family: var(--mono); font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; background: rgba(210, 160, 110, .16); color: var(--c-accent); letter-spacing: .04em; }
.acct__tag--mute { background: rgba(247, 247, 247, .08); color: rgba(247, 247, 247, .6); }
.acct__ops { display: flex; gap: 6px; }
.acct__ops button { font-size: 12px; padding: 4px 9px; border-radius: 4px; color: rgba(247, 247, 247, .6); border: 1px dashed transparent; }
.acct__ops button:hover { color: var(--c-accent); border-color: rgba(210, 160, 110, .45); }
.acct__ops button.is-danger:hover { color: var(--down); border-color: rgba(217, 140, 122, .5); }
.acct__foot { font-size: 11.5px; opacity: .45; margin-top: 4px; }

.fd-sec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fd-sec__col { padding: 16px 18px; border-right: 1px dashed var(--line-on-dark); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fd-sec__col:last-child { border-right: none; }
.fd-sec__h { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; opacity: .5; }
@media (max-width: 1100px) {
  .fd-sec__grid { grid-template-columns: 1fr; }
  .fd-sec__col { border-right: none; border-bottom: 1px dashed var(--line-on-dark); }
  .fd-sec__col:last-child { border-bottom: none; }
}
.dev { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px dashed var(--line-on-dark); font-size: 13px; }
.dev:last-child { border-bottom: none; }
.dev b { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dev span { font-size: 11.5px; opacity: .5; }
.dev .acct__tag { background: rgba(169, 196, 151, .16); color: var(--up); }
.fd-sec .switch { justify-content: space-between; width: 100%; font-size: 12.5px; padding: 6px 0; }
.fd-sec .tx { padding: 9px 0; }

/* 充值／提現多步流程 */
.flow-steps { display: flex; gap: 4px; margin-bottom: 18px; }
.flow-steps li {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 10.5px;
  color: rgba(247, 247, 247, .4);
}
.flow-steps li::before { content: ''; height: 2px; border-radius: 2px; background: rgba(247, 247, 247, .1); }
.flow-steps li.is-done { color: rgba(247, 247, 247, .6); }
.flow-steps li.is-done::before { background: rgba(210, 160, 110, .5); }
.flow-steps li.is-now { color: var(--c-accent); }
.flow-steps li.is-now::before { background: var(--c-accent); }
@media (max-width: 480px) { .flow-steps li span { display: none; } .flow-steps li.is-now span { display: inline; } }

.optcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .optcards { grid-template-columns: 1fr; } }
.optcard {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.optcard:hover { border-color: rgba(210, 160, 110, .55); }
.optcard:has(input:checked) { border-style: solid; border-color: rgba(210, 160, 110, .7); background: rgba(210, 160, 110, .08); }
.optcard input { position: absolute; opacity: 0; pointer-events: none; }
.optcard:focus-within { outline: 1px solid var(--c-accent); outline-offset: 2px; }
.optcard b { font-size: 13.5px; font-weight: 500; }
.optcard span { font-size: 11.5px; opacity: .55; line-height: 1.6; }
.amt { position: relative; }
.amt__cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); opacity: .5; }
.amt .input { padding-left: 30px; font-family: var(--mono); font-size: 20px; font-weight: 700; }
.amt__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.amt__quick button { padding: 4px 11px; border: 1px dashed var(--line-on-dark); border-radius: 999px; font-family: var(--mono); font-size: 11px; color: rgba(247, 247, 247, .7); }
.amt__quick button:hover { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.amt__err { min-height: 18px; font-size: 12px; color: var(--down); }
.flow-info { display: flex; flex-direction: column; gap: 4px; font-size: 12px; opacity: .65; line-height: 1.7; }
.flow-info b { font-family: var(--mono); font-weight: 500; color: var(--c-text); }
.recv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; font-size: 12.5px; padding: 14px; border: 1px dashed var(--line-on-dark); border-radius: 6px; }
.recv dt { opacity: .45; }
.recv dd { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.qr { width: 108px; height: 108px; padding: 8px; border-radius: 6px; background: #F7F7F7; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.recv-wrap { display: flex; gap: 14px; align-items: flex-start; }
@media (max-width: 480px) { .recv-wrap { flex-direction: column; } }

/* ============ 收益與分配 ============ */
.rbar__keys { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; opacity: .7; }
.rbar__keys span { display: inline-flex; align-items: center; gap: 6px; }
.rbar__keys i { width: 10px; height: 10px; border-radius: 2px; }
.k-div { background: #D2A06E; }
.k-exit { background: #8CA9BF; }
.k-buy { background: #9DB98C; }
.k-exp { border: 1px dashed #D2A06E; background: rgba(210, 160, 110, .12); }
.rbar { position: relative; }
.rbar svg { display: block; width: 100%; height: 250px; overflow: visible; }
.rbar__col { cursor: pointer; outline: none; }
.rbar__col:hover .rbar__bg, .rbar__col:focus-visible .rbar__bg { fill: rgba(247, 247, 247, .05); }
.rbar__col.is-sel .rbar__bg { fill: rgba(210, 160, 110, .08); }
.rbar__detail { margin-top: 12px; }

.rt-table { min-width: 760px; }
.rt-table .num small { display: block; font-size: 10.5px; opacity: .55; font-weight: 400; }
.rt-table td.muted { opacity: .4; }
.rt-table tbody tr { cursor: default; }
.rt-table__new { font-family: var(--mono); font-size: 10.5px; color: var(--down); margin-left: 6px; }

.taxdocs { display: flex; flex-direction: column; }
.taxdoc { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line-on-dark); }
.taxdoc:last-child { border-bottom: none; }
.taxdoc__t b { display: block; font-size: 13.5px; font-weight: 500; }
.taxdoc__t span { font-size: 11.5px; opacity: .55; line-height: 1.6; }
.taxdoc.is-pending .doc__icon { color: rgba(247, 247, 247, .35); }
.taxdoc__state { font-family: var(--mono); font-size: 10.5px; opacity: .5; text-align: right; white-space: nowrap; }

/* ============ 投後報告 ============ */
.rp-group { display: flex; flex-direction: column; gap: 12px; }
.rp-group + .rp-group { margin-top: clamp(18px, 2vw, 26px); }
.rp-group__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-on-dark); }
.rp-group__head .hold__logo { width: 28px; height: 28px; }
.rp-group__t { font-size: 15px; font-weight: 500; }
.rp-group__t a:hover { color: var(--c-accent); }
.rp-group__n { font-family: var(--mono); font-size: 11px; opacity: .45; }
.rp-group__head .trtag { margin-left: 0; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rpcard {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 16px 14px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  background: rgba(27, 21, 20, .6);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, transform .3s var(--ease-power4);
}
.rpcard:hover, .rpcard:focus-visible { border-color: rgba(210, 160, 110, .55); transform: translateY(-2px); outline: none; }
.rpcard.is-new { border-color: rgba(210, 160, 110, .5); background: linear-gradient(160deg, rgba(210, 160, 110, .08), rgba(27, 21, 20, .6) 60%); }
.rpcard__top { display: flex; align-items: flex-start; gap: 10px; }
.rpcard__proj { font-size: 12px; opacity: .6; }
.rpcard__t { font-size: 14.5px; font-weight: 500; line-height: 1.45; margin-top: 2px; }
.rpcard__new {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #16120F;
  font-size: 10.5px;
  font-weight: 700;
  flex: none;
}
.rpcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: 10.5px; opacity: .5; }
.rpcard__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line-on-dark); }
.rpcard__kpis div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rpcard__kpis dt { font-size: 10.5px; opacity: .45; }
.rpcard__kpis dd { font-family: var(--mono); font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpcard__kpis dd small { display: block; font-size: 10px; font-weight: 500; margin-top: 1px; }
.rpcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; }
.rpcard__ai { display: inline-flex; align-items: center; gap: 6px; color: var(--c-accent); }
.rpcard__ai svg { width: 13px; height: 13px; }
.rp-timeline__m { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--c-accent); opacity: .85; }

/* 報告詳情（彈窗內） */
.rpv { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .rpv { grid-template-columns: 1fr; } }
.rpv__pdf { display: flex; flex-direction: column; border: 1px dashed var(--line-on-dark); border-radius: 6px; overflow: hidden; min-width: 0; }
.rpv__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px dashed var(--line-on-dark); font-family: var(--mono); font-size: 11px; }
.rpv__bar span { opacity: .55; }
.rpv__bar div { display: flex; gap: 4px; }
.rpv__bar button { width: 26px; height: 24px; border-radius: 4px; border: 1px dashed var(--line-on-dark); color: rgba(247, 247, 247, .7); }
.rpv__bar button:hover:not(:disabled) { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.rpv__bar button:disabled { opacity: .3; }
.rpv__page {
  margin: 16px;
  aspect-ratio: 1 / 1.3;
  max-height: 440px;
  padding: 22px 20px;
  border-radius: 3px;
  background: #F4F1EC;
  color: #1B1514;
  display: flex; flex-direction: column; gap: 9px;
  overflow: hidden;
  align-self: center;
  width: calc(100% - 32px);
  max-width: 340px;
}
.rpv__page h4 { font-size: 13px; font-weight: 500; }
.rpv__page p { font-family: var(--mono); font-size: 8.5px; color: #A9764A; letter-spacing: .08em; }
.rpv__page i { display: block; height: 5px; border-radius: 2px; background: rgba(27, 21, 20, .12); }
.rpv__page i.s { width: 62%; }
.rpv__page i.m { width: 84%; }
.rpv__page .blk { height: 64px; border-radius: 3px; background: linear-gradient(180deg, rgba(169, 118, 74, .22), rgba(169, 118, 74, .05)); margin: 6px 0; }
.rpv__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rpv__h { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; opacity: .55; }
.rpv__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rpv__kpis div { padding: 10px 10px; border: 1px dashed var(--line-on-dark); border-radius: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rpv__kpis dt { font-size: 10.5px; opacity: .5; }
.rpv__kpis dd { font-family: var(--mono); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.rpv__kpis dd small { display: block; font-size: 10px; font-weight: 500; }
.rpv__sum { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.7; }
.rpv__sum li { position: relative; padding-left: 14px; opacity: .8; }
.rpv__sum li::before { content: ''; position: absolute; left: 0; top: .78em; width: 5px; height: 5px; border-radius: 1px; background: var(--c-accent); }
.ai-cta {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(210, 160, 110, .55);
  border-radius: 8px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(210, 160, 110, .2), rgba(210, 160, 110, .03) 70%);
  text-align: left;
  transition: border-color .25s, background-color .25s;
}
.ai-cta:hover { border-color: var(--c-accent); }
.ai-cta__mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent); color: #16120F; flex: none; }
.ai-cta__mark svg { width: 16px; height: 16px; }
.ai-cta b { display: block; font-size: 13.5px; font-weight: 500; color: var(--c-accent); }
.ai-cta span { font-size: 11.5px; opacity: .6; }
.ai-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px dashed rgba(210, 160, 110, .45); border-radius: 8px; background: rgba(210, 160, 110, .04); }
.ai-box__a { font-size: 13px; line-height: 1.85; opacity: .9; min-height: 3em; }
.ai-box__a.is-typing::after { content: '▍'; color: var(--c-accent); animation: aiBlink 1s steps(2) infinite; }
@keyframes aiBlink { 50% { opacity: 0; } }
.ai-box__qs { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-box__qs button { padding: 4px 10px; border: 1px dashed var(--line-on-dark); border-radius: 999px; font-size: 11.5px; color: rgba(247, 247, 247, .7); }
.ai-box__qs button:hover { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.ai-box__note { font-size: 10.5px; opacity: .4; }

/* ============ 彈窗（Glass-3） ============ */
.as-modal {
  position: fixed; inset: 0;
  z-index: 140;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity .22s var(--ease-power4);
}
.as-modal.is-open { opacity: 1; }
.as-modal__scrim { position: fixed; inset: 0; background: rgba(12, 9, 9, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.as-dialog {
  position: relative;
  width: min(480px, 100%);
  margin: auto;
  padding: 22px 22px 20px;
  border: 1px dashed rgba(210, 160, 110, .55);
  border-radius: 0;
  background: linear-gradient(160deg, rgba(36, 28, 26, .97), rgba(22, 18, 16, .98));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 60px rgba(224, 179, 132, .06), 0 30px 80px rgba(0, 0, 0, .55);
  transform: translateY(12px);
  transition: transform .3s var(--ease-power4);
}
.as-modal.is-open .as-dialog { transform: none; }
.as-dialog--wide { width: min(980px, 100%); }
.as-dialog--danger { border-color: rgba(217, 140, 122, .6); }
.as-dialog--danger .handle { background: var(--down); }
.as-dialog__head { display: flex; flex-direction: column; gap: 4px; padding-right: 36px; margin-bottom: 16px; }
.as-dialog__kicker { font-size: 10.5px; color: var(--c-accent); opacity: .8; }
.as-dialog--danger .as-dialog__kicker { color: var(--down); }
.as-dialog__title { font-size: 19px; font-weight: 500; line-height: 1.4; }
.as-dialog__x { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; color: rgba(247, 247, 247, .55); }
.as-dialog__x:hover { color: var(--c-text); background: rgba(247, 247, 247, .06); }
.as-dialog__body { display: flex; flex-direction: column; gap: 14px; }
.as-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 6px; }
@media (max-width: 480px) {
  .as-dialog { padding: 20px 16px 16px; }
  .as-dialog__foot .as-btn { flex: 1; }
}
html.has-modal { overflow: hidden; }

.as-sum { display: flex; flex-direction: column; border: 1px dashed var(--line-on-dark); border-radius: 6px; }
.as-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px dashed var(--line-on-dark); font-size: 13px; }
.as-sum > div:last-child { border-bottom: none; }
.as-sum dt { opacity: .55; flex: none; }
.as-sum dd { font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
.as-sum dd.is-big { font-size: 17px; font-weight: 700; color: var(--c-accent); }

.as-2fa { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0; text-align: center; }
.as-2fa__lead { font-size: 13.5px; opacity: .75; }
.as-2fa__input { max-width: 240px; text-align: center; font-size: 26px; letter-spacing: .5em; padding: 12px 10px 12px 22px; }
.as-2fa__err { min-height: 18px; font-size: 12.5px; color: var(--down); }
.as-2fa__hint { font-size: 11px; opacity: .4; }

.as-result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 6px 0 4px; }
.as-result__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(169, 196, 151, .6); color: var(--up); font-size: 20px; }
.as-result__ic.is-review { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.as-result b { font-size: 16px; font-weight: 500; }
.as-result p { font-size: 12.5px; opacity: .6; line-height: 1.7; max-width: 360px; }
.as-result .as-sum { width: 100%; text-align: left; }

.as-checks { display: flex; flex-direction: column; gap: 8px; }
.as-checks label { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 9px 12px; border: 1px dashed var(--line-on-dark); border-radius: 6px; cursor: pointer; }
.as-checks label:has(input:checked) { border-color: rgba(210, 160, 110, .6); background: rgba(210, 160, 110, .06); }
.as-checks input { accent-color: var(--c-accent); width: 15px; height: 15px; }

@media (prefers-reduced-motion: reduce) {
  .as-modal, .as-dialog, .pfc, .rpcard, .txr__chev { transition: none; }
  .ai-box__a.is-typing::after { animation: none; }
}

/* 持倉詳情的狀態條只有返回連結與隱私開關，手機上保持同一列 */
@media (max-width: 620px) {
  .page-assets-holding .as-bar { flex-wrap: nowrap; }
  .page-assets-holding .as-bar__tools { width: auto; }
}
