/* ============================================================
   我的資產 — 資產總覽
   全站唯一的「工具型＋高密度」頁面：左側子導航、右側內容區。
   依賴 style.css（代幣、導航、按鈕）與 club.css（.select、[hidden]、.sr-only）
   ============================================================ */

:root {
  --up: #A9C497;        /* 漲 / 流入：霧綠 */
  --down: #D98C7A;      /* 跌 / 流出警示：霧紅 */
  --tr-ai: #D2A06E;
  --tr-web3: #8CA9BF;
  --tr-rwa: #9DB98C;
}

/* ============ 版面 ============ */
.as-wrap {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: start;
  /* 不是 <section>：自己補內距，頂部讓開固定導航 */
  padding: calc(56px + clamp(24px, 3vw, 40px)) var(--pad) var(--pad-lg);
  max-width: 1480px;
  margin: 0 auto;
}
.as-main { display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 22px); min-width: 0; }

@media (max-width: 980px) {
  .as-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* 這頁的區塊多半是 <section>：先清掉 style.css 給 section 的大內距，各元件再自行指定 */
.as-card, .as-todos, .as-rec { padding: 0; }

/* ============ 左側子導航 ============ */
.as-side {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 14px;
}
.as-side__head { color: var(--c-accent); opacity: .8; font-size: 10.5px; padding-left: 12px; }
.as-subnav { display: flex; flex-direction: column; gap: 2px; }
.as-subnav__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 14px;
  color: rgba(247, 247, 247, .66);
  transition: background-color .25s, color .25s;
}
.as-subnav__link:hover { color: var(--c-text); background: rgba(247, 247, 247, .04); }
.as-subnav__link.is-current {
  color: var(--c-accent);
  background: rgba(210, 160, 110, .1);
  box-shadow: inset 2px 0 0 var(--c-accent);
}
.as-subnav__badge {
  margin-left: auto;
  min-width: 18px; padding: 1px 6px;
  border-radius: 999px;
  background: rgba(210, 160, 110, .18);
  color: var(--c-accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.as-quota {
  display: flex; flex-direction: column; gap: 7px;
  padding: 14px 14px;
  border: 1px dashed rgba(210, 160, 110, .38);
  border-radius: 6px;
  background: rgba(210, 160, 110, .05);
  transition: border-color .25s;
}
.as-quota:hover { border-color: rgba(210, 160, 110, .7); }
.as-quota__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.as-quota__lv { font-size: 13px; font-weight: 500; }
.as-quota__lv b { color: var(--c-accent); font-size: 10.5px; margin-right: 6px; }
.as-quota__up { font-size: 10.5px; color: var(--c-accent); }
.as-quota__label { font-size: 11px; opacity: .5; margin-top: 2px; }
.as-quota__num { font-size: 12px; text-transform: none; letter-spacing: .02em; }
.as-quota .progress__bar { height: 3px; }
.as-quota__hint { font-size: 11px; opacity: .45; line-height: 1.6; }

/* 窄螢幕：子導航收成頂部橫向 Tab，會員卡隱藏（總覽卡下方已有升級提示） */
@media (max-width: 980px) {
  .as-side { position: static; gap: 0; }
  .as-side__head, .as-quota { display: none; }
  .as-subnav {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px dashed var(--line-on-dark);
  }
  .as-subnav::-webkit-scrollbar { display: none; }
  .as-subnav__link { flex: none; border-radius: 0; padding: 12px 12px; white-space: nowrap; }
  .as-subnav__link.is-current { background: none; box-shadow: inset 0 -2px 0 var(--c-accent); }
  .as-subnav__badge { margin-left: 4px; }
}

/* ============ 橫幅 ============ */
.as-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  line-height: 1.7;
}
.as-banner__text { flex: 1 1 320px; }
.as-banner--kyc { border: 1px dashed rgba(210, 160, 110, .55); background: rgba(210, 160, 110, .08); }
.as-banner--kyc b { color: var(--c-accent); font-weight: 500; }
.as-banner__cta { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--c-accent); }
.as-banner__close { width: 26px; height: 26px; border-radius: 4px; color: rgba(247, 247, 247, .5); font-size: 18px; line-height: 1; }
.as-banner__close:hover { color: var(--c-text); background: rgba(247, 247, 247, .06); }
/* 凍結：實色紅，不用虛線 */
.as-banner--frozen { background: #5A2620; border: 1px solid #8C3B30; color: #F7E4DF; }
.as-banner--frozen b { font-weight: 500; color: #FFF; }

/* ============ Zone 1 · 狀態條 ============ */
.as-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 20px;
}
.as-bar__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.as-h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; letter-spacing: .02em; }
.as-bar__meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  opacity: .55;
  text-transform: none;
  letter-spacing: .03em;
}
.as-bar__meta.is-stale { color: #E6A07A; opacity: 1; }
.as-bar__tools { display: flex; align-items: center; gap: 10px; }

.as-iconbtn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: rgba(247, 247, 247, .7);
  transition: color .25s, background-color .25s;
}
.as-iconbtn:hover { color: var(--c-accent); background: rgba(210, 160, 110, .1); }
.as-iconbtn svg { width: 13px; height: 13px; }
.as-iconbtn.is-spinning svg { animation: asSpin .8s linear infinite; }
@keyframes asSpin { to { transform: rotate(360deg); } }

.as-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.as-seg::-webkit-scrollbar { display: none; }
.as-seg button {
  flex: none;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(247, 247, 247, .6);
  white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.as-seg button:hover { color: var(--c-text); }
.as-seg button[aria-checked="true"] { background: var(--c-accent); color: #16120F; font-weight: 500; }

.as-eye {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px dashed var(--line-on-dark);
  border-radius: 50%;
  color: rgba(247, 247, 247, .75);
  flex: none;
  transition: border-color .25s, color .25s;
}
.as-eye:hover { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.as-eye svg { width: 16px; height: 16px; }
.as-eye__off { display: none; }
.as-eye[aria-pressed="true"] { color: var(--c-accent); border-style: solid; border-color: rgba(210, 160, 110, .5); }
.as-eye[aria-pressed="true"] .as-eye__on { display: none; }
.as-eye[aria-pressed="true"] .as-eye__off { display: block; }

@media (max-width: 620px) {
  .as-bar__tools { width: 100%; }
  .as-seg { flex: 1; }
}

/* ============ Zone 2 · 資產總覽卡（首屏焦點） ============ */
.as-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.6vw, 34px);
  border: 1px solid rgba(210, 160, 110, .4);
  border-radius: 10px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(210, 160, 110, .16), transparent 60%),
    linear-gradient(160deg, #1B1514, #16120F 70%);
  box-shadow: inset 0 0 50px rgba(224, 179, 132, .08);
}
.as-hero__label { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .6; }
.as-hero__total {
  margin-top: 8px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--c-accent);
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.as-hero__total small { font-size: .42em; margin-right: 6px; opacity: .7; vertical-align: .55em; }
.as-hero__change { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 13px; }
.as-hero__range { opacity: .5; }

.as-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px dashed var(--line-on-dark);
}
.as-metrics > div {
  padding: 16px 16px 2px 20px;
  border-right: 1px dashed var(--line-on-dark);
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.as-metrics > div:first-child { padding-left: 0; }
.as-metrics > div:last-child { border-right: none; }
.as-metrics dt { display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .55; }
.as-metrics dd {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-family: var(--mono);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .as-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-metrics > div:nth-child(2n) { border-right: none; }
  .as-metrics > div:nth-child(2n+1) { padding-left: 0; }
  .as-metrics > div:nth-child(n+3) { border-top: 1px dashed var(--line-on-dark); padding-top: 14px; margin-top: 12px; }
}

.as-rate {
  display: inline-flex;
  padding: 2px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 999px;
}
.as-rate button {
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(247, 247, 247, .5);
}
.as-rate button[aria-pressed="true"] { background: rgba(210, 160, 110, .22); color: var(--c-accent); }

.as-invest {
  padding: 4px 11px;
  border: 1px dashed rgba(210, 160, 110, .55);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--c-accent);
  transition: background-color .25s;
}
.as-invest:hover { background: rgba(210, 160, 110, .12); }
.as-invest.is-primary { background: var(--c-accent); color: #16120F; border-style: solid; }
.as-invest.is-primary:hover { background: #E0B384; }
.as-invest[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

.as-hero__formula {
  font-size: 12px;
  opacity: .5;
  line-height: 1.8;
}
.as-hero__formula b { font-family: var(--mono); font-weight: 500; opacity: 1; }

/* 有餘額無持倉：餘額高亮 */
.as-metrics > div.is-glow { background: rgba(210, 160, 110, .08); border-radius: 6px; padding-left: 14px; }

/* 零持倉三步引導 */
.as-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .as-steps { grid-template-columns: 1fr; } }
.as-step {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 16px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 6px;
}
.as-step.is-done { opacity: .5; }
.as-step__num { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--c-accent); }
.as-step__title { font-size: 14.5px; font-weight: 500; }
.as-step__desc { font-size: 12.5px; opacity: .6; line-height: 1.7; }
.as-step .actlink { margin-top: auto; }

/* ============ 漲跌三重編碼：顏色 + ▲▼ + 正負號 ============ */
.up { color: var(--up); }
.down { color: var(--down); }
.flat { opacity: .6; }
.flash { animation: asFlash 1.2s ease-out; }
@keyframes asFlash { 0% { background: rgba(210, 160, 110, .35); } 100% { background: transparent; } }

.as-stale { display: inline-grid; place-items: center; width: 15px; height: 15px; color: #E6A07A; }
.as-stale::before {
  content: '';
  width: 11px; height: 11px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  background: linear-gradient(currentColor, currentColor) 50% 30% / 1.4px 4px no-repeat, linear-gradient(currentColor, currentColor) 62% 50% / 3px 1.4px no-repeat;
}

/* ============ Zone 3 · 待辦 ============ */
.as-todos { display: flex; flex-direction: column; gap: 10px; }
.as-todos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.as-todos__title { font-size: 14px; font-weight: 500; }
.as-todos__title b { color: var(--c-accent); font-family: var(--mono); margin-left: 6px; }
.as-todos__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.todo {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 14px 12px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 6px;
  background: var(--c-surface);
}
.todo.is-urgent { border-color: rgba(217, 140, 122, .6); }
.todo__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.todo__type {
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(247, 247, 247, .07);
  font-size: 11px;
  font-weight: 500;
}
.todo.is-urgent .todo__type { background: rgba(217, 140, 122, .16); color: var(--down); }
.todo__due { font-family: var(--mono); font-size: 10.5px; opacity: .55; }
.todo.is-urgent .todo__due { color: var(--down); opacity: 1; }
.todo__text { font-size: 12.5px; line-height: 1.7; opacity: .75; flex: 1; }
.todo__act {
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #16120F;
  font-size: 12px;
  font-weight: 500;
  transition: background-color .25s;
}
.todo__act:hover { background: #E0B384; }
.todo__act:disabled { opacity: .5; cursor: progress; }
.as-todos__more { font-size: 12px; color: var(--c-accent); }

/* ============ 卡片（Zone 4 / 5 / 6） ============ */
.as-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 22px); }
@media (max-width: 1180px) { .as-grid2 { grid-template-columns: minmax(0, 1fr); } }

.as-card {
  display: flex; flex-direction: column;
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  background: rgba(27, 21, 20, .6);
  min-width: 0;
}
.as-card--solid { background: var(--c-surface); border-style: solid; border-color: rgba(247, 247, 247, .1); }
.as-card__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 14px;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--line-on-dark);
}
.as-card__title { font-size: 15px; font-weight: 500; }
.as-card__link { font-size: 12px; color: var(--c-accent); }
.as-card__body { padding: 18px 18px; position: relative; min-height: 120px; }

.as-tabs, .as-toggles { display: inline-flex; gap: 4px; }
.as-tabs button, .as-toggles button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border: 1px dashed transparent;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(247, 247, 247, .55);
  transition: color .25s, border-color .25s, background-color .25s;
}
.as-tabs button:hover, .as-toggles button:hover { color: var(--c-text); }
.as-tabs button[aria-selected="true"],
.as-toggles button[aria-pressed="true"] { color: var(--c-accent); border-color: rgba(210, 160, 110, .45); background: rgba(210, 160, 110, .08); }
.as-key { width: 10px; height: 3px; border-radius: 2px; }
.as-key--nav { background: var(--c-accent); }
.as-key--gain { background: var(--tr-web3); }

.as-sort .select { padding: 7px 34px 7px 12px; font-size: 12.5px; }

/* 模組錯誤 */
.as-err {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 160px;
  font-size: 13px;
  opacity: .75;
}
.as-err button {
  padding: 6px 14px;
  border: 1px dashed rgba(210, 160, 110, .5);
  border-radius: 999px;
  color: var(--c-accent);
  font-size: 12px;
}

/* ============ 骨架屏（佔住版面，不跳動） ============ */
.sk {
  display: inline-block;
  width: 110px; height: 1em;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(247, 247, 247, .05), rgba(247, 247, 247, .11), rgba(247, 247, 247, .05));
  background-size: 200% 100%;
  animation: skPulse 1.4s ease-in-out infinite;
  vertical-align: middle;
}
.sk--xl { width: min(320px, 70%); height: .9em; }
.sk--sm { width: 180px; height: 13px; }
.sk--line { width: min(480px, 90%); height: 12px; }
.sk--block { display: block; width: 100%; height: 200px; border-radius: 6px; }
@keyframes skPulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ============ 資產分布（環形圖） ============ */
.alloc { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: center; }
@media (max-width: 520px) { .alloc { grid-template-columns: 1fr; justify-items: center; } }
.alloc__chart { position: relative; width: 190px; height: 190px; }
.alloc__chart svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.alloc__seg { transition: opacity .25s, stroke-width .25s; cursor: pointer; }
.alloc__seg.is-dim { opacity: .2; }
.alloc__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none;
}
.alloc__center b { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--c-accent); line-height: 1; }
.alloc__center span { margin-top: 6px; font-size: 11.5px; opacity: .55; }

.legend { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.legend__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 8px;
  border-radius: 4px;
  font-size: 13px;
  text-align: left;
  transition: background-color .2s, opacity .2s;
}
.legend__item:hover, .legend__item.is-on { background: rgba(247, 247, 247, .05); }
.legend.has-focus .legend__item:not(.is-on) { opacity: .4; }
.legend__dot { width: 10px; height: 10px; border-radius: 2px; }
.legend__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend__val { font-family: var(--mono); font-size: 12px; opacity: .7; }
.legend__pct { font-family: var(--mono); font-size: 12px; font-weight: 700; min-width: 48px; text-align: right; }

.alloc__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-on-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px;
}
.alloc__risk { opacity: .55; }
.alloc__risk.is-warn { color: #E6A07A; opacity: 1; }

/* ============ 收益趨勢（面積折線） ============ */
.trend { position: relative; }
.trend svg { display: block; width: 100%; height: 240px; overflow: visible; }
.trend__axis { font-family: var(--mono); font-size: 10px; fill: rgba(247, 247, 247, .4); }
.trend__grid { stroke: rgba(247, 247, 247, .08); stroke-dasharray: 2 5; }
.trend__ev { cursor: pointer; outline: none; }
.trend__ev:focus-visible circle, .trend__ev:hover circle { stroke-width: 2.4; }
.trend__tip {
  position: absolute;
  z-index: 3;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px dashed rgba(210, 160, 110, .55);
  border-radius: 6px;
  background: rgba(20, 16, 16, .97);
  font-size: 12px;
  line-height: 1.7;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  white-space: nowrap;
}
.trend__tip b { font-family: var(--mono); font-weight: 700; }
.trend__tip em { display: block; font-family: var(--mono); font-size: 10.5px; opacity: .55; }
.trend__legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; opacity: .6; }
.trend__legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend__legend i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid; }
.trend__warming {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center;
  font-size: 13px;
}
.trend__warming small { font-size: 11.5px; opacity: .5; }

/* ============ 投資組合速覽（實色表格） ============ */
.hold-wrap { overflow-x: auto; margin: -18px -18px 0; }
.hold {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13px;
}
.hold th, .hold td { padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(247, 247, 247, .06); white-space: nowrap; }
.hold th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .5;
}
.hold .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hold tbody tr { transition: background-color .2s; cursor: pointer; }
.hold tbody tr:hover { background: rgba(210, 160, 110, .05); }
.hold__proj { display: flex; align-items: center; gap: 10px; }
.hold__logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(150deg, rgba(247, 247, 247, .1), rgba(247, 247, 247, .03));
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  flex: none;
}
.hold__name { font-weight: 500; }
.hold__name a:hover { color: var(--c-accent); }
.trtag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
.trtag--ai { background: rgba(210, 160, 110, .16); color: var(--tr-ai); }
.trtag--web3 { background: rgba(140, 169, 191, .16); color: var(--tr-web3); }
.trtag--rwa { background: rgba(157, 185, 140, .16); color: var(--tr-rwa); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid;
}
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill--raising { color: var(--c-accent); border-color: rgba(210, 160, 110, .4); }
.pill--operating { color: var(--tr-rwa); border-color: rgba(157, 185, 140, .4); }
.pill--distributing { color: var(--tr-web3); border-color: rgba(140, 169, 191, .4); }
.pill--exited { color: rgba(247, 247, 247, .45); border-color: var(--line-on-dark); }
.hold__val { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.hold__src { width: 14px; height: 14px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid rgba(247, 247, 247, .25); font-size: 9px; opacity: .5; cursor: help; }
.hold__recent { opacity: .65; font-size: 12.5px; }
.hold__recent span { opacity: .6; font-family: var(--mono); font-size: 10.5px; }
.hold__ops { position: relative; display: flex; gap: 6px; justify-content: flex-end; }
.hold__btn {
  padding: 4px 10px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 4px;
  font-size: 12px;
  color: rgba(247, 247, 247, .75);
}
.hold__btn:hover { border-color: rgba(210, 160, 110, .55); color: var(--c-accent); }
.hold__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  z-index: 6;
  display: flex; flex-direction: column;
  min-width: 170px;
  padding: 6px;
  border: 1px dashed rgba(210, 160, 110, .45);
  border-radius: 6px;
  background: rgba(20, 16, 16, .98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.hold__menu button { padding: 8px 10px; border-radius: 4px; font-size: 12.5px; text-align: left; white-space: nowrap; }
.hold__menu button:hover { background: rgba(210, 160, 110, .1); color: var(--c-accent); }
.hold__menu button[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.hold__menu button[aria-disabled="true"]:hover { background: none; color: inherit; }
.hold__menu small { display: block; font-size: 10.5px; opacity: .7; }
.hold__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 14px;
  font-size: 12px;
}
.hold__foot span { opacity: .5; }

/* ============ 近期交易 ============ */
.txlist { display: flex; flex-direction: column; }
.tx {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-on-dark);
}
.tx:last-child { border-bottom: none; }
.tx__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--line-on-dark); font-size: 11px; }
.tx__icon--in { color: var(--up); border-color: rgba(169, 196, 151, .45); }
.tx__icon--out { color: rgba(247, 247, 247, .7); }
.tx__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tx__t { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx__t b { font-weight: 500; margin-right: 6px; }
.tx__m { font-family: var(--mono); font-size: 10.5px; opacity: .45; }
.tx__amt { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.tx__amt b { font-family: var(--mono); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx__amt span { font-size: 10.5px; opacity: .5; }

/* ============ 分配日曆 ============ */
.dcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dcal__month { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.dcal__nav { display: flex; gap: 6px; }
.dcal__nav button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px dashed var(--line-on-dark); border-radius: 4px; font-size: 12px; color: rgba(247, 247, 247, .65); }
.dcal__nav button:hover:not(:disabled) { border-color: rgba(210, 160, 110, .6); color: var(--c-accent); }
.dcal__nav button:disabled { opacity: .3; cursor: not-allowed; }
.dcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dcal__dow { text-align: center; font-family: var(--mono); font-size: 10px; opacity: .4; padding-bottom: 4px; }
.dcal__day {
  position: relative;
  aspect-ratio: 1.3;
  display: grid; place-items: center;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(247, 247, 247, .5);
  border: 1px solid transparent;
}
.dcal__day--pad { visibility: hidden; }
.dcal__day.is-today { color: var(--c-text); border: 1px dashed rgba(247, 247, 247, .3); }
.dcal__day.has { cursor: pointer; color: var(--c-text); background: rgba(247, 247, 247, .04); }
.dcal__day.has:hover, .dcal__day.is-sel { border-color: rgba(210, 160, 110, .6); background: rgba(210, 160, 110, .12); }
.dcal__day.has::after {
  content: '';
  position: absolute; bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
}
.dcal__day.st-paid::after { background: var(--up); }
.dcal__day.st-expected::after { background: var(--c-accent); }
.dcal__day.st-delayed::after { background: var(--down); }
.dcal__legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; opacity: .55; }
.dcal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.dcal__legend i { width: 6px; height: 6px; border-radius: 50%; }
.dcal__detail {
  margin-top: 12px;
  padding: 11px 13px;
  border-left: 1px dashed rgba(210, 160, 110, .5);
  background: rgba(210, 160, 110, .05);
  font-size: 12.5px;
  line-height: 1.8;
  min-height: 44px;
}
.dcal__detail b { font-family: var(--mono); }

/* ============ Zone 7 · 推薦 ============ */
.as-rec { display: flex; flex-direction: column; gap: 12px; }
.as-rec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.as-rec__title { font-size: 15px; font-weight: 500; }
.as-rec__note { font-size: 11.5px; opacity: .45; }
.as-rec__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .as-rec__list { grid-template-columns: 1fr; } }
.reccard {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px;
  border: 1px dashed var(--line-on-dark);
  border-radius: 8px;
  background: rgba(27, 21, 20, .5);
  transition: border-color .25s, transform .3s var(--ease-power4);
}
.reccard:hover { border-color: rgba(210, 160, 110, .55); transform: translateY(-2px); }
.reccard__top { display: flex; align-items: center; gap: 10px; }
.reccard__name { font-size: 14px; font-weight: 500; }
.reccard__meta { font-size: 11.5px; opacity: .55; }
.reccard__why { font-size: 11.5px; color: var(--c-accent); opacity: .85; }
.reccard .progress__bar { height: 3px; }
.reccard__row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; opacity: .6; }

.actlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-accent);
  transition: gap .3s var(--ease-power4), color .25s;
}
.actlink:hover { gap: 14px; color: #E6BC8E; }

.as-disclaimer { margin-top: 8px; font-size: 11.5px; opacity: .4; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .sk, .as-iconbtn.is-spinning svg, .flash { animation: none; }
  .reccard, .as-subnav__link, .as-seg button { transition: none; }
}
