/* ============================================================
   融資申請（raise-apply.html）
   視覺方向：「工程圖紙上的申請書」—— 暖紙底、虛線框、等寬編號、
   聚焦中的卡片才亮出四角金色手柄。長表單用淺色，深金 #A9764A 只作重音。
   版面：左側步驟軌道 / 中央 720px 單欄 / 右側 AI 天使助手（可收起）。
   ============================================================ */

:root {
  --ra-nav: 56px;
  --ra-bg: #F1EEE8;            /* 暖紙底：比品牌亮區 #F7F7F7 略暖，長時間填寫不刺眼 */
  --ra-card: #F7F6F3;          /* 卡片面：接近品牌亮區色，非純白 */
  --ra-field: #FCFBF9;         /* 輸入框：小面積，略亮於卡片 */
  --ra-ink: #1B1514;
  --ra-sub: rgba(27, 21, 20, .6);
  --ra-faint: rgba(27, 21, 20, .38);
  --ra-line: rgba(27, 21, 20, .2);       /* 虛線框 */
  --ra-rule: rgba(27, 21, 20, .1);       /* 細分隔 */
  --ra-gold: #A9764A;                    /* 亮底上的金：品牌規定用深金 */
  --ra-gold-soft: rgba(169, 118, 74, .1);
  --ra-red: #A9483A;
  --ra-green: #557A43;
  --ra-handle: 6px;
}
@media (max-width: 860px) { :root { --ra-nav: 62px; } }

.ra {
  position: relative; min-height: 100dvh; padding-top: var(--ra-nav);
  background: var(--ra-bg); color: var(--ra-ink);
  font-variant-numeric: tabular-nums;
}
/* 品牌語彙：淡金虛線網格，只鋪在頁首一帶並遮罩淡出 */
.ra::before {
  content: ''; position: absolute; inset: var(--ra-nav) 0 auto; height: 520px; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(169, 118, 74, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 118, 74, .09) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.ra section, .ra-form { padding: 0; }
.ra :focus-visible { outline: 2px solid var(--ra-gold); outline-offset: 2px; }

/* ============ 頂部：申請書抬頭 ============ */
.ra-top {
  position: sticky; top: var(--ra-nav); z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 14px var(--pad);
  background: rgba(241, 238, 232, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px dashed var(--ra-line);
}
.ra-top__t { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ra-top__t h1 { font-size: 19px; font-weight: 300; letter-spacing: .02em; white-space: nowrap; }
.ra-top__t h1::before { content: '[APPLY]'; margin-right: 10px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--ra-gold); vertical-align: 2px; }
.ra-pid { white-space: nowrap; padding: 2px 7px; border: 1px dashed rgba(169, 118, 74, .55); border-radius: 3px; color: var(--ra-gold); font-size: 10.5px; letter-spacing: .06em; }
.ra-top__prog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ra-top__pct { font-size: 15px; font-weight: 700; color: var(--ra-ink); min-width: 44px; }
/* 五段式進度：用背景切出四道縫，對應五個步驟 */
.ra-bar { position: relative; height: 4px; background: rgba(27, 21, 20, .1); overflow: hidden; }
.ra-top .ra-bar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent calc(20% - 2px), var(--ra-bg) calc(20% - 2px), var(--ra-bg) 20%, transparent 20%, transparent calc(40% - 2px), var(--ra-bg) calc(40% - 2px), var(--ra-bg) 40%, transparent 40%, transparent calc(60% - 2px), var(--ra-bg) calc(60% - 2px), var(--ra-bg) 60%, transparent 60%, transparent calc(80% - 2px), var(--ra-bg) calc(80% - 2px), var(--ra-bg) 80%, transparent 80%);
}
.ra-bar i { display: block; height: 100%; width: 0; background: var(--ra-gold); transition: width .5s var(--ease-power4); }
.ra-top__eta { font-family: var(--mono); font-size: 11px; color: var(--ra-sub); white-space: nowrap; }
.ra-top__tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.ra-saved { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ra-sub); white-space: nowrap; }
.ra-saved::before { content: ''; width: 6px; height: 6px; background: var(--ra-faint); }
.ra-saved.is-ok::before { background: var(--ra-green); }
.ra-saved.is-local { color: var(--ra-gold); }
.ra-saved.is-local::before { background: var(--ra-gold); animation: ra-blink 1.6s steps(2) infinite; }
@keyframes ra-blink { 50% { opacity: .2; } }
@media (max-width: 860px) {
  .ra-top { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t tools" "prog prog"; gap: 10px 12px; padding: 10px var(--pad); }
  .ra-top__t { grid-area: t; } .ra-top__tools { grid-area: tools; } .ra-top__prog { grid-area: prog; }
  .ra-top__t h1::before, .ra-top__eta, .ra-saved { display: none; }
}
.ra-offline { position: sticky; top: calc(var(--ra-nav) + 61px); z-index: 29; padding: 8px var(--pad); background: var(--ra-ink); color: rgba(247, 247, 247, .88); font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; text-align: center; cursor: pointer; }

/* ============ 版面 ============ */
.ra-wrap { position: relative; max-width: 1400px; margin: 0 auto; padding: 40px var(--pad) 110px; display: grid; grid-template-columns: 196px minmax(0, 720px) 300px; gap: 44px; justify-content: center; align-items: start; }
.ra-wrap.is-ai-off { grid-template-columns: 196px minmax(0, 720px); }
@media (max-width: 1240px) {
  .ra-wrap { grid-template-columns: 184px minmax(0, 720px); gap: 36px; }
  .ra-ai { position: fixed !important; right: 16px; top: auto !important; bottom: 80px; width: min(340px, calc(100vw - 32px)); max-height: 70vh; z-index: 60; box-shadow: 0 24px 60px rgba(27, 21, 20, .22); }
  .ra-ai:not(.is-open) { display: none; }
}
@media (max-width: 860px) { .ra-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 18px; } }

/* ============ 左側：步驟軌道 ============ */
.ra-nav { position: sticky; top: calc(var(--ra-nav) + 100px); display: flex; flex-direction: column; }
.ra-nav button[data-step] {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 0 0 22px; text-align: left; color: var(--ra-ink); transition: color .25s;
}
/* 軌道虛線 */
.ra-nav button[data-step]::before { content: ''; position: absolute; left: 14px; top: 26px; bottom: 2px; border-left: 1px dashed var(--ra-line); }
.ra-nav button[data-step]:last-of-type::before { display: none; }
.ra-nav button.is-done::before { border-left: 1px solid var(--ra-gold); }
.ra-nav button:disabled { color: var(--ra-faint); cursor: not-allowed; }
.ra-nav i {
  width: 29px; height: 24px; display: grid; place-items: center; font-style: normal;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  border: 1px dashed var(--ra-line); border-radius: 3px; background: var(--ra-bg); color: var(--ra-sub);
  transition: border-color .25s, background-color .25s, color .25s;
}
.ra-nav button:not(:disabled):hover i { border-color: var(--ra-gold); color: var(--ra-gold); }
.ra-nav .is-done i { border: 1px solid var(--ra-gold); color: var(--ra-gold); }
.ra-nav [aria-current="step"] i { border: 1px solid var(--ra-ink); background: var(--ra-ink); color: #F7F7F7; }
.ra-nav b { display: block; padding-top: 3px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.ra-nav [aria-current="step"] b { font-weight: 500; }
.ra-nav button[data-step] > span > span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--ra-sub); letter-spacing: .02em; }
.ra-nav__note { margin-top: 6px; padding: 14px 0 0; border-top: 1px dashed var(--ra-line); font-size: 11.5px; color: var(--ra-sub); line-height: 1.75; }
.ra-nav [data-aitoggle] { display: block; margin-top: 10px; padding: 0 !important; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ra-gold); text-align: left; }
@media (max-width: 860px) {
  .ra-nav { position: static; flex-direction: row; gap: 0; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); border-bottom: 1px dashed var(--ra-line); }
  .ra-nav::-webkit-scrollbar { display: none; }
  .ra-nav button[data-step] { flex: none; grid-template-columns: auto auto; gap: 7px; align-items: center; padding: 10px 14px 12px 0; margin-right: 6px; }
  .ra-nav button[data-step]::before { display: none; }
  .ra-nav i { width: 26px; height: 22px; font-size: 10px; }
  .ra-nav button[data-step] > span > span, .ra-nav__note { display: none; }
  .ra-nav b { padding: 0; font-size: 13px; white-space: nowrap; }
  .ra-nav button[aria-current="step"] { box-shadow: inset 0 -2px 0 var(--ra-ink); }
}

/* ============ 表單主欄 ============ */
.ra-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ra-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 16px; padding-bottom: 4px; }
.ra-h__k { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--ra-gold); }
.ra-h h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; letter-spacing: -.01em; line-height: 1.15; text-wrap: balance; }
.ra-h > span { font-family: var(--mono); font-size: 11px; color: var(--ra-sub); padding-bottom: 6px; white-space: nowrap; }
.ra-lead { max-width: 62ch; font-size: 14px; color: var(--ra-sub); line-height: 1.8; margin-top: -6px; text-wrap: pretty; }

/* 卡片：虛線框；聚焦其中欄位時亮出四角金色手柄（品牌選取框語彙） */
.ra-card {
  position: relative; display: flex; flex-direction: column; gap: 20px;
  padding: 26px 28px 28px !important; border: 1px dashed var(--ra-line); border-radius: 4px; background: var(--ra-card);
  transition: border-color .3s var(--ease-power4), background-color .3s;
}
.ra-card::before {
  content: ''; position: absolute; inset: calc(var(--ra-handle) / -2 - 1px); pointer-events: none; opacity: 0;
  background:
    linear-gradient(var(--ra-gold), var(--ra-gold)) top left / var(--ra-handle) var(--ra-handle) no-repeat,
    linear-gradient(var(--ra-gold), var(--ra-gold)) top right / var(--ra-handle) var(--ra-handle) no-repeat,
    linear-gradient(var(--ra-gold), var(--ra-gold)) bottom left / var(--ra-handle) var(--ra-handle) no-repeat,
    linear-gradient(var(--ra-gold), var(--ra-gold)) bottom right / var(--ra-handle) var(--ra-handle) no-repeat;
  transform: scale(.985); transition: opacity .3s var(--ease-power4), transform .3s var(--ease-power4);
}
.ra-card:focus-within { border-color: rgba(169, 118, 74, .55); background: #F9F8F5; }
.ra-card:focus-within::before { opacity: 1; transform: none; }
.ra-card__k { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--ra-gold); }
.ra-card__k em { font-style: normal; color: var(--ra-red); }

.ra-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 13px 16px; border: 1px dashed var(--ra-line); border-left: 2px solid var(--ra-gold); border-radius: 0 4px 4px 0; background: var(--ra-card); font-size: 13px; line-height: 1.7; }
.ra-banner span { flex: 1 1 280px; }
.ra-banner b { font-weight: 500; }
.ra-banner a, .ra-banner button { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--ra-gold); white-space: nowrap; }
.ra-banner a:hover, .ra-banner button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ra-banner.is-warn { border-left-color: var(--ra-red); background: rgba(169, 72, 58, .04); }
.ra-banner.is-warn b { color: var(--ra-red); }
.ra-secret { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px dashed rgba(85, 122, 67, .45); border-radius: 4px; color: var(--ra-green); font-size: 12.5px; line-height: 1.6; }
.ra-secret svg { width: 14px; height: 14px; flex: none; }

/* ============ 欄位 ============ */
.rf { display: flex; flex-direction: column; gap: 8px; position: relative; }
.rf__l { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 500; }
.rf__l em { font-style: normal; color: var(--ra-gold); margin-left: 4px; font-family: var(--mono); }
.rf__l small { font-weight: 400; font-size: 11px; color: var(--ra-faint); font-family: var(--mono); }
.rf__h { font-size: 12px; color: var(--ra-sub); line-height: 1.65; }
.rf__e { font-size: 12px; color: var(--ra-red); }
.rf__e:empty { display: none; }
.rf__e::before { content: '! '; font-family: var(--mono); font-weight: 700; }
.rf__ok { font-size: 12px; color: var(--ra-green); line-height: 1.6; }
.rf.is-err .ri { border-color: var(--ra-red); background: rgba(169, 72, 58, .03); }
.rf.is-marked { padding: 12px; margin: -12px; border-radius: 4px; background: rgba(169, 72, 58, .06); box-shadow: inset 2px 0 0 var(--ra-red); }
.rf.is-locked .ri { pointer-events: none; opacity: .55; border-style: dashed; }
.rf__lock { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--ra-sub); }
.rf__lock::before { content: ''; width: 6px; height: 6px; background: var(--ra-gold); animation: ra-blink 1.6s steps(2) infinite; }

.ri {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ra-line); border-radius: 4px; background: var(--ra-field);
  color: var(--ra-ink); font-family: var(--sans); font-size: 14.5px; line-height: 1.5;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.ri::placeholder { color: var(--ra-faint); }
.ri:hover { border-color: rgba(27, 21, 20, .32); }
.ri:focus { outline: none; border-color: var(--ra-gold); background: #FEFDFB; box-shadow: 0 1px 0 var(--ra-gold); }
input.ri[inputmode="numeric"], input.ri[inputmode="decimal"], input.ri[type="month"], input.ri[type="date"] { font-family: var(--mono); font-size: 14px; }
textarea.ri { min-height: 116px; resize: vertical; line-height: 1.8; }
select.ri { appearance: none; cursor: pointer; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ra-gold) 50%), linear-gradient(135deg, var(--ra-gold) 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.ri-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ri-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .ri-row, .ri-row3 { grid-template-columns: 1fr; } }
.ri-unit { display: flex; }
.ri-unit .ri:first-child { border-radius: 4px 0 0 4px; }
.ri-unit .ri + .ri { width: 112px; flex: none; border-radius: 0 4px 4px 0; border-left-style: dashed; }
.ri-ex { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-left: 1px dashed var(--ra-line); }
.ri-ex .rf__h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ra-faint); margin-bottom: 2px; }
.ri-ex button { text-align: left; font-size: 12.5px; color: var(--ra-ink); opacity: .72; line-height: 1.7; transition: color .2s, opacity .2s; }
.ri-ex button:hover { opacity: 1; color: var(--ra-gold); }

/* ============ 選項卡片、Chips ============ */
.rcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rcards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) { .rcards, .rcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rcard {
  position: relative; display: flex; flex-direction: column; gap: 5px; padding: 15px 16px 16px;
  border: 1px dashed var(--ra-line); border-radius: 4px; background: var(--ra-field); cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease-power4);
}
.rcard:hover { border-color: rgba(169, 118, 74, .6); }
.rcard:active { transform: translateY(1px); }
.rcard input { position: absolute; opacity: 0; pointer-events: none; }
.rcard::after { content: ''; position: absolute; right: 12px; top: 14px; width: 9px; height: 9px; border: 1px solid var(--ra-line); transition: background-color .2s, border-color .2s; }
.rcard:has(input:checked) { border: 1px solid var(--ra-gold); background: rgba(169, 118, 74, .06); }
.rcard:has(input:checked)::after { border-color: var(--ra-gold); background: var(--ra-gold); }
.rcard:focus-within { outline: 2px solid var(--ra-gold); outline-offset: 2px; }
.rcard b { font-size: 15px; font-weight: 500; padding-right: 18px; }
.rcard span { font-size: 12px; color: var(--ra-sub); line-height: 1.6; }
.rcard__dot { width: 18px; height: 3px; margin-bottom: 6px; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { padding: 7px 14px; border: 1px dashed var(--ra-line); border-radius: 999px; font-size: 13px; background: transparent; color: var(--ra-ink); transition: border-color .2s, background-color .2s, color .2s; }
.rchip:hover { border-color: rgba(169, 118, 74, .6); color: var(--ra-gold); }
.rchip[aria-pressed="true"] { border: 1px solid var(--ra-ink); background: var(--ra-ink); color: #F7F7F7; font-weight: 500; }

/* ============ 按鈕（品牌 .btn 的亮底版） ============ */
.ra-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px; border: 1px dashed var(--ra-line); border-radius: 5px; background: transparent; color: var(--ra-ink);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .05em; white-space: nowrap; cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s, transform .2s var(--ease-power4);
}
.ra-btn:hover { border-color: rgba(169, 118, 74, .7); color: var(--ra-gold); }
.ra-btn:active { transform: translateY(1px); }
.ra-btn:disabled, .ra-btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; transform: none; }
/* 主要動作：深墨底＋金色方形箭頭塊（金色不做大面積填充） */
.ra-btn--gold { padding: 8px 8px 8px 20px; border: 1px solid var(--ra-ink); background: var(--ra-ink); color: #F7F7F7; gap: 16px; }
.ra-btn--gold::after {
  content: ''; width: 28px; height: 28px; flex: none; border-radius: 3px;
  background: var(--ra-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' fill='none'%3E%3Cpath d='M2 6.5h7M6 3l3.5 3.5L6 10' stroke='%231B1514' stroke-width='1.4'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .42s var(--ease-power4), background-color .3s;
}
.ra-btn--gold:hover { color: #F7F7F7; border-color: var(--ra-ink); background: #2A2220; }
.ra-btn--gold:hover::after { transform: translateX(3px); background-color: #C08A58; }
a.ra-btn--gold, .ra-done .ra-btn--gold { text-decoration: none; }
.ra-btn--plain { background: transparent; }
.ra-btn--sm { padding: 7px 13px; font-size: 11px; }
.ra-btn--gold.ra-btn--sm { padding: 5px 5px 5px 13px; gap: 10px; }
.ra-btn--gold.ra-btn--sm::after { width: 22px; height: 22px; background-size: 10px; }
.ra-link { font-size: 12.5px; color: var(--ra-gold); text-underline-offset: 3px; }
.ra-link:hover { text-decoration: underline; }
.ra-link--mute { color: var(--ra-sub); }
.ra-link--mute:hover { color: var(--ra-red); }

/* 步驟底欄：桌面跟隨表單黏在視窗底部，手機固定全寬 */
.ra-foot {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding: 14px 0 18px;
  background: linear-gradient(to bottom, rgba(241, 238, 232, 0), var(--ra-bg) 28%);
  border-top: 1px dashed transparent;
}
.ra-foot > span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ra-sub); }
@media (max-width: 860px) {
  .ra-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; padding: 10px var(--pad); background: rgba(241, 238, 232, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px dashed var(--ra-line); }
  .ra-foot > span { display: none; }
  .ra-foot [data-next], .ra-foot [data-submit] { margin-left: auto; }
  .ra-form { padding-bottom: 76px; }
  .page-raise .sb-foot { padding-bottom: 84px; }
}

/* ============ Step 1：Logo、網站預覽、立項 ============ */
.logo-up { display: flex; align-items: center; gap: 16px; }
.logo-up__img { width: 76px; height: 76px; border-radius: 6px; border: 1px dashed rgba(169, 118, 74, .55); display: grid; place-items: center; background: var(--ra-field); overflow: hidden; font-family: var(--mono); font-weight: 700; color: var(--ra-gold); font-size: 20px; letter-spacing: .04em; }
.logo-up__img img { width: 100%; height: 100%; object-fit: cover; }
.site-prev { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px dashed var(--ra-line); border-radius: 4px; font-size: 12.5px; }
.site-prev i { width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; background: var(--ra-ink); color: #E6BC8E; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.ra-id { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid rgba(85, 122, 67, .45); border-radius: 4px; color: var(--ra-green); font-size: 13px; }
.ra-id b { font-family: var(--mono); letter-spacing: .04em; }

/* ============ Step 2：成員 ============ */
.members { display: flex; flex-direction: column; gap: 12px; }
.member { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; padding: 16px; border: 1px dashed var(--ra-line); border-radius: 4px; background: var(--ra-field); transition: border-color .25s; }
.member:focus-within { border-color: rgba(169, 118, 74, .55); }
.member__av { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--ra-ink); color: #E6BC8E; font-size: 17px; }
.member__f { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.member__ops { display: flex; flex-direction: column; gap: 4px; }
.member__ops button { width: 30px; height: 30px; border-radius: 3px; border: 1px dashed var(--ra-line); font-family: var(--mono); font-size: 12px; color: var(--ra-sub); transition: border-color .2s, color .2s; }
.member__ops button:hover:not(:disabled) { border-color: var(--ra-gold); color: var(--ra-gold); }
.member__ops button:disabled { opacity: .28; cursor: not-allowed; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.toggle input { width: 15px; height: 15px; accent-color: var(--ra-gold); }
@media (max-width: 600px) { .member { grid-template-columns: minmax(0, 1fr) auto; } .member__av { display: none; } }

/* ============ Step 3：上傳 ============ */
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 18px;
  border: 1px dashed rgba(169, 118, 74, .6); border-radius: 4px; text-align: center; cursor: pointer;
  background: repeating-linear-gradient(135deg, rgba(169, 118, 74, .035) 0 10px, transparent 10px 20px);
  transition: background-color .25s, border-color .25s;
}
.drop::before { content: '[ + ]'; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--ra-gold); }
.drop:hover, .drop.is-over { background-color: rgba(169, 118, 74, .08); border-color: var(--ra-gold); }
.drop b { font-size: 15px; font-weight: 500; }
.drop span { font-size: 12px; color: var(--ra-sub); }
.drop input { display: none; }
.upfile { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 13px; border: 1px dashed var(--ra-line); border-radius: 4px; background: var(--ra-field); font-size: 13px; }
.upfile__ic { width: 38px; height: 46px; border: 1px solid var(--ra-ink); border-radius: 2px; display: grid; place-items: end center; padding-bottom: 5px; font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--ra-ink); background: linear-gradient(225deg, var(--ra-bg) 8px, transparent 8px); }
.upfile b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upfile span { font-family: var(--mono); font-size: 11px; color: var(--ra-sub); }
.upfile .ra-bar { margin-top: 7px; height: 2px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.thumbs i { flex: none; width: 68px; aspect-ratio: 16 / 10; border: 1px dashed var(--ra-line); border-radius: 2px; background: var(--ra-field); font-style: normal; font-family: var(--mono); font-size: 8.5px; color: var(--ra-faint); display: grid; place-items: end start; padding: 4px; }
.thumbs i:first-child { border: 1px solid var(--ra-gold); color: var(--ra-gold); }
.ai-fill { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid rgba(169, 118, 74, .45); border-radius: 4px; background: rgba(169, 118, 74, .05); font-size: 13px; }
.ai-fill > b { font-family: var(--mono); font-size: 11px !important; letter-spacing: .08em; margin-bottom: 4px; }
.ai-fill__row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--ra-line); }
.ai-fill__row b { font-weight: 500; font-size: 12px; color: var(--ra-sub); }
.ai-fill__row span { line-height: 1.65; }
@media (max-width: 600px) { .ai-fill__row { grid-template-columns: minmax(0, 1fr) auto; } .ai-fill__row b { grid-column: 1 / -1; } }

/* 列表編輯器（競品、里程碑、既往融資） */
.list-ed { display: flex; flex-direction: column; gap: 10px; }
.list-ed__row { display: grid; gap: 10px; align-items: center; }
.list-ed__row button.x { width: 32px; height: 44px; border-radius: 3px; border: 1px dashed var(--ra-line); font-family: var(--mono); color: var(--ra-sub); transition: border-color .2s, color .2s; }
.list-ed__row button.x:hover:not(:disabled) { color: var(--ra-red); border-color: var(--ra-red); }
.list-ed__row button.x:disabled { opacity: .3; cursor: not-allowed; }
.ms-toggle { display: inline-flex; border: 1px dashed var(--ra-line); border-radius: 4px; overflow: hidden; }
.ms-toggle button { padding: 9px 11px; font-size: 12px; color: var(--ra-sub); transition: background-color .2s, color .2s; }
.ms-toggle button[aria-pressed="true"] { background: var(--ra-ink); color: #F7F7F7; }
.ms-toggle button.is-plan[aria-pressed="true"] { background: transparent; color: var(--ra-gold); box-shadow: inset 0 0 0 1px var(--ra-gold); }
@media (max-width: 600px) {
  .list-ed__row { grid-template-columns: minmax(0, 1fr) 32px !important; padding-bottom: 12px; border-bottom: 1px dashed var(--ra-rule); }
  .list-ed__row > :not(.x) { grid-column: 1; }
  .list-ed__row > .x { grid-column: 2; grid-row: 1; }
}

/* ============ Step 4：資金用途、對比提示 ============ */
.uof { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 28px; align-items: center; }
@media (max-width: 600px) { .uof { grid-template-columns: 1fr; } #uofPie svg { max-width: 140px; margin: 0 auto; display: block; } }
.uof__rows { display: flex; flex-direction: column; gap: 12px; }
.uof__row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 13px; }
.uof__row input[type="range"] { width: 100%; accent-color: var(--ra-ink); }
.uof__row .ri { padding: 7px 9px; font-family: var(--mono); text-align: right; }
.uof__sum { display: block; padding-top: 10px; border-top: 1px dashed var(--ra-line); font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ra-green); }
.uof__sum.is-bad { color: var(--ra-red); }
.uof svg { width: 160px; height: 160px; transform: rotate(-90deg); }
.cmp { padding: 11px 14px; border-left: 2px solid var(--ra-ink); background: rgba(27, 21, 20, .035); font-size: 12.5px; line-height: 1.75; color: var(--ra-sub); }
.cmp b { color: var(--ra-ink); font-family: var(--mono); font-weight: 700; }
.cmp.is-warn { border-left-color: var(--ra-red); background: rgba(169, 72, 58, .05); color: var(--ra-red); }

/* ============ Step 5：合規材料 ============ */
.mats { display: flex; flex-direction: column; gap: 12px; }
.mat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px dashed var(--ra-line); border-radius: 4px; background: var(--ra-card); transition: border-color .25s; }
.mat:hover { border-color: rgba(27, 21, 20, .32); }
.mat:has(.mat__ok) { border-style: solid; border-color: rgba(85, 122, 67, .4); }
.mat.is-err { border: 1px solid var(--ra-red); background: rgba(169, 72, 58, .03); }
.mat__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mat__h b { flex: 1 1 200px; font-size: 14.5px; font-weight: 500; }
.need { padding: 2px 7px; border-radius: 2px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.need::before { content: '['; } .need::after { content: ']'; }
.need--must { color: var(--ra-red); }
.need--suggest { color: var(--ra-gold); }
.need--later { color: var(--ra-faint); }
.mat__ok { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ra-green); }
.mat__d { font-size: 12.5px; color: var(--ra-sub); line-height: 1.65; }
.mat__ops { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.mat__note { width: 100%; }
.mat__note .ri { padding: 9px 11px; font-size: 12.5px; }

/* ============ Step 6：提交確認 ============ */
.prev-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 4px; background: #1B1514; color: #F7F7F7; }
.prev-card::before { content: 'INVESTOR VIEW'; position: absolute; right: 16px; top: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; color: rgba(247, 247, 247, .35); }
.prev-card__top { display: flex; align-items: center; gap: 14px; }
.prev-card__logo { width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center; border: 1px dashed rgba(210, 160, 110, .6); color: #D2A06E; font-family: var(--mono); font-weight: 700; overflow: hidden; }
.prev-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.prev-card b { font-size: 17px; font-weight: 500; }
.prev-card p { font-size: 13.5px; opacity: .72; line-height: 1.75; }
.prev-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(247, 247, 247, .2); }
.prev-card dt { font-size: 11px; opacity: .5; }
.prev-card dd { margin-top: 3px; font-family: var(--mono); font-size: 15px; font-weight: 700; color: #D2A06E; }
.checks-list { display: flex; flex-direction: column; }
.checks-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--ra-rule); font-size: 13px; }
.checks-list li:last-child { border-bottom: 0; }
.checks-list i { width: 20px; height: 20px; border: 1px dashed var(--ra-line); border-radius: 2px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--ra-gold); }
.checks-list li.is-ok i { border: 1px solid var(--ra-green); color: var(--ra-green); }
.checks-list small { font-family: var(--mono); font-size: 11px; color: var(--ra-red); }
.vis { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 10px 16px; align-items: center; font-size: 13px; }
.vis > span { padding: 4px 0; }
.vis .ri { padding: 8px 32px 8px 11px; font-size: 12.5px; }
.agree { display: flex; flex-direction: column; gap: 4px; }
.agree label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--ra-rule); font-size: 13.5px; line-height: 1.65; cursor: pointer; }
.agree label:last-child { border-bottom: 0; }
.agree input { width: 16px; height: 16px; accent-color: var(--ra-ink); margin-top: 3px; flex: none; }

/* ============ 提交成功 ============ */
.ra-done { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 12px 20px; text-align: center; }
.ra-done__ic { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--ra-green); color: var(--ra-green); font-family: var(--mono); font-size: 26px; position: relative; }
.ra-done__ic::before, .ra-done__ic::after { content: ''; position: absolute; width: 6px; height: 6px; background: var(--ra-gold); }
.ra-done__ic::before { left: -4px; top: -4px; } .ra-done__ic::after { right: -4px; bottom: -4px; }
.ra-done h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 300; }
.ra-done p { font-size: 14px; color: var(--ra-sub); max-width: 480px; line-height: 1.85; text-wrap: pretty; }
.ra-next { width: 100%; display: flex; flex-direction: column; margin: 8px 0; text-align: left; border-top: 1px dashed var(--ra-line); }
.ra-next li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--ra-line); font-size: 13.5px; align-items: baseline; line-height: 1.65; }
.ra-next li b { font-family: var(--mono); font-weight: 700; color: var(--ra-gold); }
.ra-next li span { font-family: var(--mono); color: var(--ra-sub); font-size: 11px; white-space: nowrap; }

/* ============ AI 天使助手 ============ */
.ra-ai {
  position: sticky; top: calc(var(--ra-nav) + 100px); display: flex; flex-direction: column;
  border: 1px dashed rgba(169, 118, 74, .5); border-radius: 4px; background: var(--ra-card); overflow: hidden;
  max-height: calc(100dvh - var(--ra-nav) - 130px);
}
.ra-ai__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px dashed var(--ra-line); }
.ra-ai__h b { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--ra-gold); }
.ra-ai__h button { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ra-sub); }
.ra-ai__h button:hover { color: var(--ra-ink); }
.ra-ai__b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; font-size: 13px; line-height: 1.75; }
.ra-ai__tip { padding: 0 0 14px; border-bottom: 1px dashed var(--ra-rule); }
.ra-ai__tip b { display: block; font-size: 13px; font-weight: 500; color: var(--ra-ink); margin-bottom: 4px; }
.ra-ai__tip b::before { content: 'Q · '; font-family: var(--mono); font-size: 10.5px; color: var(--ra-gold); }
.ra-ai__out { padding: 12px 14px; border-left: 2px solid var(--ra-gold); background: rgba(169, 118, 74, .06); }
.ra-ai__note { padding: 10px 16px 14px; border-top: 1px dashed var(--ra-rule); font-size: 10.5px; color: var(--ra-faint); line-height: 1.65; }
.ra-aifab { display: none; position: fixed; right: 16px; bottom: 80px; z-index: 61; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 5px; background: var(--ra-ink); color: #E6BC8E; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; box-shadow: 0 14px 34px rgba(27, 21, 20, .28); transition: transform .25s var(--ease-power4); }
.ra-aifab:hover { transform: translateY(-2px); }
.ra-aifab svg { width: 15px; height: 15px; }
@media (max-width: 1240px) { .ra-aifab { display: inline-flex; } .ra-nav [data-aitoggle] { display: none; } }
@media (min-width: 861px) and (max-width: 1240px) { .ra-aifab { bottom: 96px; } .ra-ai { bottom: 148px; } }

.page-raise .toast { background: rgba(27, 21, 20, .96); }
@media (max-width: 860px) { .page-raise .toast { bottom: 130px; } }

/* 步驟切換：表單內容淡入上移 */
.ra-form.is-enter > * { animation: ra-in .5s var(--ease-power4) both; }
.ra-form.is-enter > *:nth-child(2) { animation-delay: .04s; } .ra-form.is-enter > *:nth-child(3) { animation-delay: .08s; } .ra-form.is-enter > *:nth-child(4) { animation-delay: .12s; } .ra-form.is-enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes ra-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .ra-bar i, .ra-card, .ra-card::before { transition: none; }
  .ra-form.is-enter > * { animation: none; }
  .ra-saved.is-local::before, .rf__lock::before { animation: none; }
}

/* 載入骨架（淺色版） */
.ra .sk { border: 1px dashed var(--ra-line); border-radius: 4px; background: linear-gradient(100deg, transparent 30%, rgba(169, 118, 74, .08) 50%, transparent 70%) var(--ra-card); background-size: 200% 100%; animation: ra-sk 1.4s linear infinite; }
@keyframes ra-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ra .sk { animation: none; } }
.uof__row > span { display: inline-flex; align-items: center; gap: 7px; }
.uof__row > span i { width: 8px; height: 8px; flex: none; }
.ra-done p b { white-space: nowrap; }
