/* ==========================================================================
   股權規劃工具－進階版（stock-calculator-v2.html）頁面樣式
   輪次卡、身分統計卡、估值卡由頁面腳本產生並帶 inline 樣式；這裡只覆蓋外觀，
   不改腳本。#capture-area 會被 html2canvas 匯出，避免使用其不支援的樣式。
   ========================================================================== */

/* ---- 標題與區段 ---- */
html body .tp-equity .tp-hero-head { padding-bottom: 8px; }
html body .tp-equity .table-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 14px;
  color: var(--lt-ink);
  font-size: 1.25rem;
  font-weight: 800;
  text-align: left;
}
html body .tp-equity .table-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #5a55f0, #3fb6e8);
}
html body .tp-equity #fundingRoundsSection h4 { display: flex; align-items: center; gap: 8px; color: var(--lt-ink) !important; font-size: 1.25rem; font-weight: 800 !important; }
html body .tp-equity #fundingRoundsSection h4 .bi { color: var(--lt-brand-600); }

/* ---- 股東表格 ---- */
html body .tp-equity #equityTable,
html body .tp-equity [id^="round-"] .table { overflow: hidden; border: 1px solid var(--lt-line); border-radius: 14px; border-collapse: separate; border-spacing: 0; }
html body .tp-equity #equityTable thead th,
html body .tp-equity [id^="round-"] .table thead th { background: var(--lt-surface-2); color: var(--lt-ink-4); font-size: .75rem; font-weight: 600; }
html body .tp-equity #equityTable tfoot th,
html body .tp-equity [id^="round-"] .table tfoot th { background: var(--lt-brand-50); color: var(--lt-ink); }

/* ---- 估值卡（初始＋各輪） ---- */
html body .tp-equity .valuation-card {
  overflow: hidden;
  border: 1px solid var(--lt-line) !important;
  border-radius: 18px;
  background: #fff !important;
}
html body .tp-equity .valuation-card .card-header {
  border-bottom: 1px solid var(--lt-line);
  background: var(--lt-surface-2) !important;
  color: var(--lt-ink) !important;
  font-size: .9375rem;
}
html body .tp-equity .valuation-card .card-header .bi { color: var(--lt-brand-600); }
html body .tp-equity .valuation-number { font: 800 1.375rem/1.4 var(--lt-font-num) !important; letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* ---- 參與身分統計面板 ---- */
html body .tp-equity #investorStatsPanel,
html body .tp-equity .investor-stats-card {
  overflow: hidden;
  border: 1px solid var(--lt-line) !important;
  border-radius: 18px;
  background: #fff !important;
  box-shadow: none !important;
}
html body .tp-equity #investorStatsPanel > .card-header,
html body .tp-equity .investor-stats-card > .card-header {
  border-bottom: 1px solid var(--lt-line) !important;
  background: linear-gradient(120deg, #3a33ab 0%, #5a55f0 70%, #3f8fe0 100%) !important;
  color: #fff !important;
  font-size: 1rem !important;
}
html body .tp-equity #investorStatsPanel .card-body,
html body .tp-equity .investor-stats-card .card-body { border-radius: 0 !important; }
html body .tp-equity [id^="investorStats"] .card { border-radius: 14px; box-shadow: none; }

/* 「尚未選擇」原本用接近白色的 #ecf0f1 當文字與進度條顏色，幾乎看不到 */
html body .tp-equity [style*="color: #ecf0f1"],
html body .tp-equity [style*="color: rgb(236, 240, 241)"] { color: var(--lt-ink-4) !important; }
html body .tp-equity [style*="background-color: #ecf0f1"],
html body .tp-equity [style*="background-color: rgb(236, 240, 241)"] { background-color: #a6abc0 !important; }
html body .tp-equity [style*="solid #ecf0f1"],
html body .tp-equity [style*="solid rgb(236, 240, 241)"] { border-left-color: #a6abc0 !important; }

/* ---- 增資輪次卡 ---- */
html body .tp-equity [id^="round-"].card {
  overflow: hidden;
  border: 1px solid var(--lt-line) !important;
  border-radius: 20px;
  box-shadow: var(--lt-shadow-1) !important;
}
html body .tp-equity [id^="round-"] > .card-header {
  background: linear-gradient(120deg, #3a33ab 0%, #5a55f0 70%, #3f8fe0 100%) !important;
}
html body .tp-equity #emptyRoundsMessage {
  border: 1px dashed var(--lt-line-2);
  border-radius: 18px;
  background: var(--lt-surface-2);
}

/* ---- 工具列 ---- */
html body .tp-equity-actions .btn-icon { color: var(--lt-brand-700); }

@media screen and (max-width: 767.98px) {
  html body .tp-equity .valuation-number { font-size: 1.125rem !important; }
}
html body .tp-equity-actions #copy-link-button { border-color: var(--lt-brand-600); background: var(--lt-brand-600); color: #fff; }
html body .tp-equity-actions #copy-link-button:hover { border-color: var(--lt-brand-700); background: var(--lt-brand-700); }
