:root {
  color-scheme: light;
  --bg: #f5f5f7; --panel: #ffffff; --panel-2: #f5f6f8; --panel-3: #edf0f4;
  --line: #dcdfe4; --line-soft: #e9ebef; --text: #1d1d1f; --muted: #6e6e73;
  --muted-2: #98989d; --accent: #007aff; --accent-ink: #ffffff;
  --green: #07884a; --red: #d92d20; --amber: #a95700; --blue: #006bd6;
  --radius: 22px; --shadow: 0 18px 45px rgba(30,35,45,.11);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; } button { color: inherit; } button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 228px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line-soft); padding: 30px 22px; display: flex; flex-direction: column; background: #0d131a; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: flex; align-items: flex-end; gap: 3px; padding: 8px; border-radius: 12px; background: var(--accent); transform: rotate(-2deg); }
.brand-mark i { display: block; flex: 1; background: var(--accent-ink); border-radius: 2px 2px 0 0; }
.brand-mark i:nth-child(1) { height: 40%; } .brand-mark i:nth-child(2) { height: 72%; } .brand-mark i:nth-child(3) { height: 100%; }
.brand strong, .brand small { display: block; } .brand strong { font-size: 17px; letter-spacing: .04em; } .brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.side-nav { display: grid; gap: 7px; margin-top: 52px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; font-size: 15px; }
.nav-item:hover { color: var(--text); background: var(--panel); } .nav-item.is-active { color: var(--accent); background: rgba(231,255,88,.08); }
.nav-icon { width: 21px; text-align: center; font-size: 18px; }
.sidebar-note { margin-top: auto; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,rgba(231,255,88,.06),rgba(255,255,255,.02)); display: flex; gap: 10px; }
.sidebar-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; } .sidebar-note strong { color: var(--text); font-size: 13px; }
.note-mark { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.main-panel { min-width: 0; padding: 34px clamp(24px,4vw,64px) 80px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1440px; margin: 0 auto 28px; }
.date-line, .eyebrow, .section-kicker { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: clamp(24px,3vw,36px); letter-spacing: -.04em; line-height: 1.15; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.data-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.data-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,200,97,.08); }
.button { min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 14px; transition: transform .15s ease,border-color .15s ease,background .15s ease; }
.button:hover { transform: translateY(-1px); } .button-primary { background: var(--accent); color: var(--accent-ink); } .button-ghost { border-color: var(--line); background: transparent; color: var(--muted); } .button-danger { color: var(--red); border-color: rgba(255,120,111,.3); background: rgba(255,120,111,.06); }
.view { max-width: 1440px; margin: 0 auto; animation: reveal .28s ease both; } @keyframes reveal { from { opacity: 0; transform: translateY(7px); } }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { min-height: 124px; padding: 19px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); position: relative; overflow: hidden; }
.stat-card.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stat-card .stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; } .stat-card.accent .stat-label { color: rgba(16,20,10,.62); }
.stat-card strong { display: block; margin-top: 19px; font-size: clamp(23px,2.5vw,31px); line-height: 1; letter-spacing: -.04em; } .stat-card small { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; } .stat-card.accent small { color: rgba(16,20,10,.65); }
.stat-spark { position: absolute; right: 10px; bottom: 11px; width: 82px; opacity: .26; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 18px; align-items: start; }
.card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 21px; border-bottom: 1px solid var(--line-soft); }
.card-header h2, .section-title { margin: 0; font-size: 18px; letter-spacing: -.02em; } .card-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.pool-count { margin-left: 6px; color: var(--accent); font-size: 11px; font-weight: 800; vertical-align: 2px; }
.filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; } .filter-chip.is-active { border-color: rgba(231,255,88,.35); background: rgba(231,255,88,.09); color: var(--accent); }
.research-tools { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 9px; padding: 12px 21px; border-bottom: 1px solid var(--line-soft); background: rgba(0,0,0,.08); }
.research-tools label { min-width: 0; }
.research-tools input, .research-tools select { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #0d131a; color: var(--text); font-size: 12px; }
.research-tools input:focus, .research-tools select:focus { border-color: rgba(231,255,88,.55); }
.research-tools input::placeholder { color: var(--muted-2); }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.research-list { display: grid; }
.asset-row { display: grid; grid-template-columns: minmax(190px,1.5fr) minmax(110px,.8fr) minmax(120px,.8fr) minmax(110px,.85fr) 32px; gap: 14px; align-items: center; padding: 17px 21px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.asset-row:last-child { border-bottom: 0; } .asset-row:hover { background: rgba(255,255,255,.018); }
.asset-name { display: flex; align-items: center; min-width: 0; gap: 12px; } .asset-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--panel-3); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.asset-name strong, .asset-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .asset-name strong { font-size: 14px; } .asset-name small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.metric strong, .metric small { display: block; } .metric strong { font-size: 14px; } .metric small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.positive { color: var(--red)!important; } .negative { color: var(--green)!important; } .neutral { color: var(--muted)!important; }
.signal { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 800; } .signal.observe { color: var(--accent); background: rgba(231,255,88,.09); } .signal.hold { color: var(--blue); background: rgba(112,169,255,.1); } .signal.wait { color: var(--amber); background: rgba(255,200,97,.1); }
.signal.review { color: var(--red); background: rgba(255,120,111,.1); }
.row-arrow { color: var(--muted-2); font-size: 18px; }
.focus-card { padding: 21px; position: sticky; top: 24px; } .focus-label { color: var(--accent); font-size: 12px; font-weight: 800; } .focus-card h2 { margin: 11px 0 3px; font-size: 24px; letter-spacing: -.03em; } .focus-code { color: var(--muted); font-size: 12px; }
.focus-chart { height: 124px; margin: 18px -3px 10px; } .focus-chart svg, .detail-chart svg { width: 100%; height: 100%; overflow: visible; }
.focus-price { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); } .focus-price strong { font-size: 28px; } .focus-price span { font-size: 13px; font-weight: 700; }
.scenario-list { display: grid; gap: 9px; margin-top: 17px; } .scenario-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: 12px; } .scenario-row span { color: var(--muted); }
.bar { height: 5px; background: var(--panel-3); border-radius: 10px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: inherit; } .bull i { background: var(--red); } .base i { background: var(--accent); } .bear i { background: var(--green); }
.focus-note { margin: 17px 0 0; padding: 13px; border-radius: 11px; background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 1.65; } .text-button { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 800; }
.empty-panel { padding: 42px 24px; text-align: center; } .empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--accent); font-size: 22px; } .empty-panel h3 { margin: 0; font-size: 17px; } .empty-panel p { max-width: 430px; margin: 9px auto 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.holding-toolbar, .history-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; } .holding-toolbar h2, .history-toolbar h2 { margin: 0; font-size: 23px; } .holding-toolbar p, .history-toolbar p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.import-banner { display: flex; align-items: center; gap: 12px; margin: -2px 0 15px; padding: 12px 14px; border: 1px solid rgba(231,255,88,.16); border-radius: 12px; background: rgba(231,255,88,.04); }
.import-banner strong { flex: 0 0 auto; color: var(--accent); font-size: 12px; } .import-banner span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.holding-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; } .holding-card { padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.holding-top, .holding-bottom { display: flex; justify-content: space-between; gap: 14px; } .holding-title { display: flex; gap: 12px; align-items: center; } .holding-title h3 { margin: 0; font-size: 15px; } .holding-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; } .holding-pnl { text-align: right; } .holding-pnl strong, .holding-pnl span { display: block; } .holding-pnl strong { font-size: 18px; } .holding-pnl span { margin-top: 5px; font-size: 11px; color: var(--muted); }
.holding-middle { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 22px 0; } .holding-middle div { padding: 11px; border-radius: 10px; background: var(--panel-2); } .holding-middle span, .holding-middle strong { display: block; } .holding-middle span { color: var(--muted); font-size: 10px; } .holding-middle strong { margin-top: 7px; font-size: 13px; } .holding-bottom { align-items: center; } .holding-actions { display: flex; gap: 8px; }
.holding-thesis { min-height: 66px; margin: -6px 0 18px; padding: 12px 13px; border-left: 2px solid var(--line); background: rgba(0,0,0,.08); color: var(--muted); font-size: 12px; line-height: 1.7; }
.history-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 18px; align-items: start; } .timeline { padding: 6px 21px; } .timeline-item { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); } .timeline-item:last-child { border-bottom: 0; } .timeline-date { color: var(--muted); font-size: 11px; line-height: 1.6; } .timeline-content h3 { margin: 0; font-size: 15px; } .timeline-content p { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.timeline-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; } .meta-tag { padding: 5px 8px; border-radius: 6px; background: var(--panel-2); color: var(--muted); font-size: 10px; } .principles { padding: 20px; } .principles h3 { margin: 0 0 15px; font-size: 16px; } .principle { display: flex; gap: 10px; margin-top: 13px; } .principle b { flex: 0 0 auto; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: rgba(231,255,88,.09); color: var(--accent); font-size: 11px; } .principle p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
dialog { color: var(--text); } .asset-dialog, .detail-dialog { width: min(590px,calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: #111820; box-shadow: var(--shadow); } .detail-dialog { width: min(720px,calc(100% - 28px)); } dialog::backdrop { background: rgba(2,6,9,.75); backdrop-filter: blur(5px); }
.asset-dialog form { padding: 24px; } .dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; } .dialog-header h2 { margin: 0; font-size: 23px; } .icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 21px; } .dialog-intro { margin: 15px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 11px; background: #0d131a; } .type-switch input { position: absolute; opacity: 0; } .type-switch span { display: grid; place-items: center; height: 38px; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; } .type-switch input:checked + span { background: var(--panel-3); color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form-grid label { display: grid; gap: 7px; } .form-grid label span { color: var(--muted); font-size: 12px; } .form-grid input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #0d131a; color: var(--text); } .form-grid input:focus { border-color: rgba(231,255,88,.55); box-shadow: 0 0 0 3px rgba(231,255,88,.05); } .span-2 { grid-column: 1/-1; } .form-error { min-height: 18px; margin: 10px 0 0; color: var(--red); font-size: 12px; } .dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.detail-wrap { padding: 25px; } .detail-hero { display: flex; justify-content: space-between; gap: 20px; } .detail-hero h2 { margin: 6px 0 5px; font-size: 27px; } .detail-hero p { margin: 0; color: var(--muted); font-size: 12px; } .detail-price { text-align: right; } .detail-price strong { display: block; font-size: 29px; } .detail-price span { display: block; margin-top: 7px; font-size: 12px; }
.detail-chart { height: 190px; margin: 24px 0 6px; padding: 14px 5px 4px; border-bottom: 1px solid var(--line-soft); } .analysis-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 20px; } .analysis-box { padding: 14px; border-radius: 11px; background: var(--panel-2); } .analysis-box span, .analysis-box strong, .analysis-box small { display: block; } .analysis-box span { color: var(--muted); font-size: 10px; } .analysis-box strong { margin-top: 8px; font-size: 15px; } .analysis-box small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.thesis-box { margin-top: 13px; padding: 15px; border: 1px solid rgba(231,255,88,.17); border-radius: 12px; background: rgba(231,255,88,.04); } .thesis-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .thesis-head strong { font-size: 14px; } .thesis-box p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; } .risk-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; } .risk-tag { padding: 6px 8px; border-radius: 7px; color: var(--amber); background: rgba(255,200,97,.08); font-size: 10px; } .detail-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; transform: translateY(20px); padding: 11px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-3); color: var(--text); opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: var(--shadow); font-size: 13px; } .toast.is-visible { transform: none; opacity: 1; } .mobile-nav { display: none; }
@media (max-width:1100px) { .stat-grid { grid-template-columns: repeat(2,1fr); } .workspace-grid { grid-template-columns: 1fr; } .focus-card { position: static; } .focus-card .focus-chart { height: 160px; } .holding-grid { grid-template-columns: 1fr; } }
@media (max-width:760px) {
  body { padding-bottom: 66px; } .app-shell { display: block; } .sidebar { display: none; } .main-panel { padding: 22px 15px 54px; } .topbar { align-items: flex-start; margin-bottom: 20px; } .topbar-actions { align-items: flex-end; } .data-pill { display: none; } .button { min-height: 40px; padding: 0 12px; } .topbar h1 { font-size: 25px; } .stat-grid { gap: 8px; } .stat-card { min-height: 110px; padding: 16px; } .stat-card strong { margin-top: 17px; font-size: 23px; } .card-header { display: block; padding: 17px; } .filter-row { margin-top: 14px; } .research-tools { grid-template-columns: 1fr; padding: 11px 17px; } .asset-row { grid-template-columns: minmax(0,1fr) auto 20px; padding: 15px 17px; } .asset-row .forecast-cell, .asset-row .signal-cell { display: none; } .holding-toolbar, .history-toolbar { align-items: flex-start; } .import-banner { display: grid; gap: 5px; } .history-layout { grid-template-columns: 1fr; } .principles { order: -1; } .timeline { padding: 4px 17px; } .timeline-item { grid-template-columns: 72px 1fr; gap: 12px; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); background: rgba(13,19,26,.96); backdrop-filter: blur(12px); } .mobile-nav button { height: 60px; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 10px; } .mobile-nav button span { font-size: 18px; } .mobile-nav button.is-active { color: var(--accent); }
  .detail-hero { display: block; } .detail-price { margin-top: 16px; text-align: left; } .detail-chart { height: 150px; } .analysis-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; }
}
@media (max-width:430px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat-card { min-height: 105px; } .stat-card strong { font-size: 20px; } .stat-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topbar-actions .button span { display: none; } .holding-middle { grid-template-columns: 1fr 1fr; } .holding-middle div:last-child { grid-column: 1/-1; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto!important; animation: none!important; transition: none!important; } }

/* Senior-friendly mobile app skin */
body { font-size: 16px; background: linear-gradient(180deg,#f8f9fb 0,#f3f4f7 100%); }
.sidebar { background: rgba(255,255,255,.86); backdrop-filter: blur(24px); box-shadow: 1px 0 0 rgba(0,0,0,.02); }
.brand-mark { transform: none; border-radius: 13px; box-shadow: 0 6px 18px rgba(0,122,255,.22); }
.nav-item { min-height: 50px; font-size: 16px; font-weight: 650; }
.nav-item:hover { background: #f2f5f9; } .nav-item.is-active { color: var(--accent); background: #eaf3ff; }
.sidebar-note { border: 0; background: #f2f6fb; }
.main-panel { padding-top: 30px; }
.topbar h1 { font-weight: 750; }
.data-pill { background: rgba(255,255,255,.72); }
.button { min-height: 46px; border-radius: 14px; font-size: 15px; }
.button-primary { box-shadow: 0 6px 18px rgba(0,122,255,.2); }
.stat-card, .card, .holding-card { border-color: rgba(20,25,35,.06); box-shadow: 0 7px 24px rgba(30,35,45,.06); }
.stat-card.accent { background: linear-gradient(145deg,#147df5,#0062d9); color: #fff; border: 0; }
.stat-card.accent .stat-label, .stat-card.accent small { color: rgba(255,255,255,.76); }
.stat-card strong { font-weight: 760; }
.filter-chip.is-active { border-color: #a9d0ff; background: #eaf3ff; color: #006bd6; }
.research-tools { background: #fafbfc; }
.research-tools input, .research-tools select, .form-grid input { background: #fff; color: var(--text); }
.research-tools input:focus, .research-tools select:focus, .form-grid input:focus { border-color: #5ba8ff; box-shadow: 0 0 0 4px rgba(0,122,255,.1); }
.asset-row:hover { background: #f8fafc; }
.asset-avatar { background: #eaf3ff; color: #006bd6; }
.signal.observe { color: #006bd6; background: #eaf3ff; } .signal.hold { color: #087445; background: #e9f7ef; } .signal.wait { color: #9a4f00; background: #fff3df; } .signal.review { color: #bd2a20; background: #fff0ef; }
.focus-label, .text-button { color: #006bd6; }
.focus-note, .holding-middle div, .analysis-box { background: #f5f6f8; }
.holding-thesis { border-left-color: #9ac7ff; background: #f6f9fd; color: #4d5661; font-size: 14px; }
.import-banner { border-color: #cfe3ff; background: #edf6ff; } .import-banner strong { color: #006bd6; }
.principle b { background: #eaf3ff; color: #006bd6; }
.asset-dialog, .detail-dialog { background: #fff; }
dialog::backdrop { background: rgba(20,25,35,.38); }
.type-switch { background: #eef0f4; } .type-switch input:checked + span { background: #fff; color: #111; box-shadow: 0 2px 7px rgba(0,0,0,.08); }
.thesis-box { border-color: #cfe3ff; background: #f5f9ff; }
.toast { background: rgba(35,35,38,.92); color: #fff; }

@media (max-width:760px) {
  body { background: #f5f5f7; }
  .main-panel { padding: max(18px,env(safe-area-inset-top)) 14px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; z-index: 20; top: 0; margin: -18px -14px 16px; padding: calc(15px + env(safe-area-inset-top)) 14px 12px; background: rgba(248,249,251,.9); backdrop-filter: blur(22px); border-bottom: 1px solid rgba(0,0,0,.05); }
  .date-line { font-size: 13px; margin-bottom: 5px; }
  .topbar h1 { font-size: 24px; line-height: 1.25; }
  .topbar-actions .button { min-width: 70px; font-size: 16px; }
  .stat-card { min-height: 124px; padding: 17px; border-radius: 20px; }
  .stat-card .stat-label { font-size: 14px; } .stat-card strong { margin-top: 20px; font-size: 24px; } .stat-card small { font-size: 13px; }
  .card-header h2, .section-title { font-size: 20px; } .card-header p { font-size: 14px; line-height: 1.5; }
  .filter-chip { min-height: 38px; padding: 8px 13px; font-size: 14px; }
  .research-tools input, .research-tools select { height: 46px; font-size: 15px; }
  .asset-row { min-height: 76px; } .asset-name strong { font-size: 16px; } .asset-name small, .metric small { font-size: 13px; } .metric strong { font-size: 16px; }
  .holding-toolbar h2, .history-toolbar h2 { font-size: 26px; } .holding-toolbar p, .history-toolbar p { font-size: 15px; line-height: 1.55; }
  .holding-card { padding: 18px; border-radius: 20px; } .holding-title h3 { font-size: 18px; } .holding-title p { font-size: 13px; } .holding-pnl strong { font-size: 20px; } .holding-pnl span { font-size: 14px; }
  .holding-middle span { font-size: 12px; } .holding-middle strong { font-size: 15px; }
  .holding-thesis { min-height: 0; font-size: 15px; line-height: 1.75; }
  .signal { padding: 7px 10px; font-size: 14px; border-radius: 9px; }
  .text-button { min-height: 40px; font-size: 15px; }
  .import-banner strong, .import-banner span { font-size: 14px; }
  .mobile-nav { padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.94); box-shadow: 0 -8px 28px rgba(30,35,45,.08); }
  .mobile-nav button { height: 66px; font-size: 12px; font-weight: 650; } .mobile-nav button span { font-size: 21px; }
  .detail-wrap { padding: 21px; } .detail-hero h2 { font-size: 25px; } .detail-hero p { font-size: 14px; line-height: 1.5; }
  .analysis-box span, .analysis-box small { font-size: 12px; } .analysis-box strong { font-size: 18px; }
  .thesis-head strong { font-size: 17px; } .thesis-box p { font-size: 15px; line-height: 1.75; } .risk-tag { font-size: 13px; padding: 7px 9px; }
  .timeline-content h3 { font-size: 17px; } .timeline-content p { font-size: 15px; } .timeline-date { font-size: 13px; }
}
