:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang HK", "Noto Sans TC", sans-serif;
  color: #172033;
  background: #edf1f7;
  font-synthesis: none;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #758096;
  --line: #e6eaf0;
  --accent: #3659d9;
  --accent-soft: #eaf0ff;
  --green: #16875f;
  --green-soft: #e8f7f1;
  --red: #d54b51;
  --red-soft: #fff0f1;
  --amber: #b77814;
  --amber-soft: #fff6e5;
  --rose: #b95f78;
  --rose-soft: #fff0f4;
  --shadow: 0 10px 30px rgba(31, 45, 74, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #edf1f7; }
body { min-width: 320px; }
button, textarea, select, input { font: inherit; }
button { color: inherit; }
button, select, input { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100dvh; }
.phone-frame { position: relative; width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; background: var(--bg); overflow-x: hidden; box-shadow: 0 0 50px rgba(29, 40, 70, .08); }
.screen { min-height: 100dvh; padding: max(18px, env(safe-area-inset-top)) 18px calc(102px + env(safe-area-inset-bottom)); }
.detail-screen { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
.icon { width: 22px; height: 22px; display: block; }
.topbar, .page-header, .detail-header { margin-bottom: 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyeline, .section-kicker { margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.02em; }
.page-header h1 { margin-bottom: 8px; }
.page-header p, .detail-header p { color: var(--muted); line-height: 1.55; margin-bottom: 0; font-size: 14px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #172033; color: white; font-weight: 800; }
.avatar.large { width: 54px; height: 54px; font-size: 19px; }
.section { margin-top: 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-note, .soft-count { color: var(--muted); font-size: 12px; }
.soft-count { background: #e9edf4; border-radius: 999px; padding: 5px 9px; font-weight: 700; }
.focus-list { display: grid; gap: 8px; }
.focus-row { display: grid; grid-template-columns: 30px 1fr 10px; align-items: center; gap: 11px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.focus-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #eef2f8; font-size: 12px; font-weight: 800; }
.focus-copy { min-width: 0; }
.focus-copy strong { display: block; font-size: 14px; line-height: 1.35; }
.focus-copy span { color: var(--muted); font-size: 12px; }
.domain-dot { width: 8px; height: 8px; border-radius: 50%; background: #8994a8; }
.domain-dot.work { background: #5174e7; }.domain-dot.family { background: #df7890; }.domain-dot.health { background: #40a77e; }
.attention-strip { margin-top: 12px; display: grid; grid-template-columns: 1fr 1px 1fr; align-items: stretch; background: #202b40; border-radius: 18px; overflow: hidden; }
.attention-item { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: white; padding: 13px 14px; text-align: left; cursor: pointer; }
.attention-item strong { display: block; font-size: 17px; line-height: 1; }.attention-item small { color: #bfc8d8; font-size: 11px; }
.attention-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }.attention-icon .icon { width: 16px; height: 16px; }
.attention-icon.warning { background: rgba(255, 189, 80, .16); color: #ffc761; }.attention-icon.decision { background: rgba(111, 144, 255, .2); color: #9bb0ff; }
.strip-divider { width: 1px; background: rgba(255,255,255,.12); margin: 11px 0; }
.summary-stack { display: grid; gap: 10px; }
.summary-card { width: 100%; display: grid; grid-template-columns: 42px 1fr 18px; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 14px; text-align: left; cursor: pointer; box-shadow: 0 3px 12px rgba(28, 39, 63, .03); }
.summary-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }.summary-icon .icon { width: 21px; height: 21px; }
.summary-icon.mail { background: var(--accent-soft); color: var(--accent); }.summary-icon.finance { background: var(--green-soft); color: var(--green); }
.summary-main { min-width: 0; }.summary-title { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.summary-title strong { font-size: 14px; }.summary-title span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.summary-metrics { display: flex; gap: 13px; margin-top: 6px; color: var(--muted); font-size: 12px; }.summary-metrics b { color: var(--text); font-size: 16px; }.summary-metrics .metric-alert b { color: var(--red); }
.chevron { color: #9ba5b7; width: 17px; height: 17px; }
.finance-inline { margin-top: 7px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.finance-inline span { min-width: 0; }.finance-inline small { display: block; color: var(--muted); font-size: 10px; }.finance-inline b { display: block; margin-top: 2px; font-size: 12px; white-space: nowrap; }
.upcoming-list { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.upcoming-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }.upcoming-row:last-child { border-bottom: 0; }
.upcoming-row time { color: var(--muted); font-weight: 700; font-size: 12px; padding-top: 2px; }.upcoming-row strong { display: block; font-size: 13px; }.domain-label { display: inline-block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.text-action { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 480px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); border-top: 1px solid rgba(219,224,233,.9); backdrop-filter: blur(18px); }
.nav-item { border: 0; background: transparent; display: grid; justify-items: center; gap: 3px; color: #8994a7; font-size: 10px; font-weight: 700; padding: 5px 2px; cursor: pointer; }
.nav-item.active { color: var(--accent); }.nav-icon { width: 30px; height: 27px; display: grid; place-items: center; border-radius: 10px; }.nav-item.active .nav-icon { background: var(--accent-soft); }.nav-icon .icon { width: 18px; height: 18px; }
.life-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.life-card { min-height: 138px; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 15px; text-align: left; cursor: pointer; }
.life-card strong { display: block; font-size: 16px; margin: 12px 0 5px; }.life-card > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.45; }
.life-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #eef2f7; }.life-icon .icon { width: 18px; height: 18px; }
.tone-blue .life-icon { background: #edf2ff; color: #4969d6; }.tone-rose .life-icon { background: #fff0f4; color: #ba5a78; }.tone-green .life-icon { background: #eaf7f1; color: #17825d; }.tone-violet .life-icon { background: #f2edff; color: #7454c9; }.tone-amber .life-icon { background: #fff6e5; color: #ad741c; }.tone-cyan .life-icon { background: #eaf8fb; color: #258aa2; }.tone-indigo .life-icon { background: #eef0ff; color: #5360c9; }
.memory-banner { margin-top: 18px; display: flex; gap: 13px; padding: 16px; border-radius: 18px; background: #1f2b42; color: white; }.memory-banner .memory-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); }.memory-banner .icon { width: 19px; }.memory-banner small { color: #bfc9dc; }.memory-banner strong { display: block; margin: 3px 0 5px; }.memory-banner p { margin: 0; color: #c6cfe0; font-size: 12px; line-height: 1.5; }
.capture-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.capture-panel textarea { width: 100%; min-height: 170px; resize: vertical; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 17px; line-height: 1.6; }
.capture-panel textarea::placeholder { color: #a5aebb; }.capture-hints { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); }.hint-chip { border: 0; background: #eef2f7; border-radius: 999px; padding: 7px 10px; color: #657087; font-size: 11px; font-weight: 700; cursor: pointer; }
.primary-button { width: 100%; border: 0; border-radius: 14px; background: #3156d3; color: white; padding: 13px 16px; margin-top: 12px; font-weight: 800; cursor: pointer; }
.capture-item { display: flex; gap: 10px; align-items: flex-start; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }.capture-item .icon { width: 17px; height: 17px; color: var(--accent); }.capture-item p { margin: 0; font-size: 13px; line-height: 1.5; }.empty-state { padding: 24px; border: 1px dashed #d7dde7; border-radius: 16px; color: var(--muted); text-align: center; font-size: 12px; }
.timeline { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.timeline-item { display: grid; grid-template-columns: 46px 16px 1fr; min-height: 72px; }.timeline-date { color: var(--muted); font-size: 12px; font-weight: 700; }.timeline-line { position: relative; display: grid; justify-items: center; }.timeline-line span { width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: var(--accent); z-index: 1; }.timeline-line i { position: absolute; width: 1px; top: 11px; bottom: -3px; background: #d9deea; }.timeline-copy { padding-left: 8px; }.timeline-copy strong { display: block; font-size: 13px; }.timeline-copy span { color: var(--muted); font-size: 11px; }
.future-note { margin-top: 14px; display: flex; gap: 12px; background: #eef2f8; border-radius: 16px; padding: 14px; }.future-note .icon { width: 18px; color: #68758c; }.future-note strong { font-size: 13px; }.future-note p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-card { display: flex; align-items: center; gap: 13px; padding: 15px; background: white; border: 1px solid var(--line); border-radius: 18px; }.profile-card strong { display: block; }.profile-card span { color: var(--muted); font-size: 11px; }
.account-card { margin-bottom: 10px; background: white; border: 1px solid var(--line); border-radius: 17px; padding: 14px; }.account-top { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; margin-bottom: 12px; }.account-brand { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #f1f4f9; color: #3659d9; font-weight: 900; }.account-copy strong, .account-copy span { display: block; }.account-copy strong { font-size: 13px; }.account-copy span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.setting-row { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #4d586d; font-size: 12px; }.setting-row select { border: 0; background: #f1f4f8; border-radius: 9px; padding: 6px 9px; color: #4c586e; outline: 0; }.setting-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }.switch span { display: block; width: 38px; height: 23px; border-radius: 999px; background: #cfd5df; position: relative; transition: .2s; }.switch span::after { content: ''; position: absolute; width: 19px; height: 19px; left: 2px; top: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .2s; }.switch input:checked + span { background: var(--accent); }.switch input:checked + span::after { transform: translateX(15px); }
.add-account { width: 100%; border: 1px dashed #cfd6e2; border-radius: 15px; background: transparent; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 800; cursor: pointer; }.add-account .icon { width: 17px; height: 17px; }.privacy-note { margin: 10px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detail-header { display: grid; grid-template-columns: 40px 1fr; gap: 11px; align-items: start; }.detail-header h1 { font-size: 23px; }.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }.icon-button .icon { width: 18px; height: 18px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }.category-card { min-height: 93px; border: 1px solid var(--line); border-radius: 15px; background: white; padding: 11px; text-align: left; cursor: pointer; }.category-card > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #eef2f7; }.category-card .icon { width: 15px; height: 15px; }.category-card strong { display: block; margin-top: 8px; font-size: 18px; }.category-card small { color: var(--muted); font-size: 10px; }
.category-card.tone-red > span { background: var(--red-soft); color: var(--red); }.category-card.tone-green > span { background: var(--green-soft); color: var(--green); }.category-card.tone-blue > span { background: var(--accent-soft); color: var(--accent); }.category-card.tone-rose > span { background: var(--rose-soft); color: var(--rose); }
.mail-list, .transaction-list { background: white; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }.mail-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 13px; border-bottom: 1px solid var(--line); }.mail-row:last-child { border-bottom: 0; }.mail-dot { width: 7px; height: 7px; border-radius: 50%; background: #71809a; }.mail-dot.important { background: var(--red); }.mail-dot.finance { background: var(--green); }.mail-dot.action { background: var(--accent); }.mail-row strong { display: block; font-size: 12px; }.mail-row div span, .mail-category { color: var(--muted); font-size: 10px; }.mail-category { white-space: nowrap; }
.safe-banner { margin-top: 14px; display: flex; gap: 10px; padding: 13px; background: #eef2f8; border-radius: 15px; }.safe-banner .icon { width: 18px; color: #68758b; }.safe-banner p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.safe-banner strong { color: var(--text); }
.finance-hero { padding: 20px; border-radius: 20px; color: white; background: #1d6d53; }.finance-hero small { color: #c8e7dc; font-size: 11px; }.finance-hero > strong { display: block; margin: 5px 0 16px; font-size: 31px; letter-spacing: -.04em; }.finance-hero div { display: flex; justify-content: space-between; gap: 12px; color: #d8efe7; font-size: 11px; }.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }.status-grid > div { padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; }.status-grid strong, .status-grid span { display: block; }.status-grid strong { font-size: 18px; }.status-grid span { color: var(--muted); font-size: 10px; margin-top: 2px; }.status-grid .danger strong { color: var(--red); }
.transaction-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }.transaction-row:last-child { border-bottom: 0; }.transaction-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; }.transaction-icon .icon { width: 15px; height: 15px; }.transaction-icon.in { background: var(--green-soft); color: var(--green); }.transaction-icon.out { background: #f2f4f8; color: #6b7586; }.transaction-row div strong, .transaction-row div span { display: block; }.transaction-row div strong { font-size: 12px; }.transaction-row div span { color: var(--muted); font-size: 10px; }.transaction-row > b { font-size: 12px; }.transaction-row > b.in { color: var(--green); }.transaction-row > b.out { color: #566176; }
.detail-list article { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 14px; margin-bottom: 8px; }.detail-list strong { font-size: 13px; }.detail-list p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (min-width: 481px) { .phone-frame { margin-top: 20px; min-height: calc(100dvh - 40px); border-radius: 30px 30px 0 0; } .bottom-nav { width: 480px; } }
@media (max-width: 360px) { .screen { padding-left: 14px; padding-right: 14px; } h1 { font-size: 25px; } .finance-inline b { font-size: 11px; } .summary-title span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
