:root{--bg: #121016;--card: #1c1922;--card-2: #17141c;--line: #25212d;--border: #3a3347;--text: #f3eff7;--text-2: #c9c2d6;--muted: #a69fb3;--accent: #b9a4ff;--up: #ff6b78;--up-soft: #ff8a94;--up-bg: #3a1d26;--down: #3dd598;--down-soft: #5fe0ac;--down-bg: #16332a;--warn: #f2c879;--mono: "IBM Plex Mono", ui-monospace, monospace}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:Noto Sans TC,system-ui,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}h1,h2,p{margin:0}h1{font-size:22px;font-weight:700}h2{font-size:14px;font-weight:700}a{color:inherit;text-decoration:none}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.small{font-size:12px}.strong{font-weight:600}.lg{font-size:19px}.up{color:var(--up)}.down{color:var(--down)}.flat{color:var(--text)}.right{text-align:right}.label{font-size:12px;color:var(--muted)}.note{font-size:12px;color:var(--muted);line-height:1.7}.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px}.row-between.end{align-items:flex-end}.spacer{flex:1;min-height:8px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.center-screen{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}.phone{min-height:100%;display:flex;flex-direction:column}.phone.with-tabs{padding-bottom:calc(72px + env(safe-area-inset-bottom))}.page{flex:1;width:100%;max-width:560px;margin:0 auto;padding:calc(20px + env(safe-area-inset-top)) 20px 24px;display:flex;flex-direction:column;gap:16px}.page.form{min-height:100%}.home-header{display:flex;flex-direction:column;gap:2px}.home-header.row-between{flex-direction:row}.home-header .sub{font-size:13px;color:var(--muted)}.actions{display:flex;gap:8px}.page-header{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;min-height:44px}.page-header .center{text-align:center}.page-header .title{font-size:16px;font-weight:700}.page-header .sub{font-size:12px;color:var(--muted)}.page-header .side.right{display:flex;justify-content:flex-end}.icon-btn{width:44px;height:44px;border-radius:22px;background:var(--card);border:1px solid var(--border);display:inline-flex;align-items:center;justify-content:center;color:var(--text)}.icon-btn.accent{background:var(--accent);border-color:var(--accent);color:var(--bg)}.card{background:var(--card);border-radius:20px}.status{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status.warn{color:var(--warn)}.badge{padding:1px 8px;border-radius:8px;border:1px solid var(--border);color:var(--text-2);font-size:11px}.link-btn{background:none;border:none;padding:10px 4px;color:var(--accent);font-size:13px}.summary{padding:20px;display:flex;flex-direction:column;gap:6px}.summary .total{font-size:38px;font-weight:600;letter-spacing:-1px;line-height:1.15}.summary.compact .total{font-size:30px}.summary-row{display:flex;gap:14px;margin-top:8px}.summary-row>div:not(.divider){flex:1;display:flex;flex-direction:column;gap:2px}.summary-row .strong{font-size:17px}.divider{width:1px;background:var(--line)}.indices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.index{padding:14px 16px;border-radius:18px;display:flex;flex-direction:column;gap:2px}.index .strong{font-size:17px}.section-head{display:flex;justify-content:space-between;align-items:center;min-height:32px;margin-bottom:6px}.section-head h2{color:var(--muted);font-weight:500;font-size:13px}.section-head a{color:var(--accent);font-size:13px;padding:8px 0 8px 12px}.section-head .hint{font-size:11px;color:var(--muted)}.list{padding:0 6px;display:flex;flex-direction:column}.row{display:flex;align-items:center;gap:10px;min-height:68px;padding:8px 10px;border-radius:14px;background:none;border:none;width:100%;text-align:left;color:var(--text)}.row+.row{box-shadow:0 -1px 0 var(--line)}.row.active{background:#262131;box-shadow:none}.row.active+.row{box-shadow:none}.row-name{flex:1;min-width:0}.row-name .name{font-size:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-name .code{font-size:12px;color:var(--muted)}.row-price{text-align:right}.row-price .price{font-size:15px;font-weight:500}.row-price .pl{font-size:12px}.pill{width:74px;flex-shrink:0;text-align:center;padding:6px 0;border-radius:10px;font-family:var(--mono);font-size:13px;font-weight:500;background:var(--line);color:var(--text-2)}.pill.up{background:var(--up-bg);color:var(--up-soft)}.pill.down{background:var(--down-bg);color:var(--down-soft)}.quote{display:flex;flex-direction:column;gap:2px}.quote .big{font-size:46px;font-weight:600;letter-spacing:-1.5px;line-height:1.1}.quote .strong{font-size:16px}.segmented{background:var(--card);border-radius:14px;padding:4px;display:grid;gap:4px}.segmented button{height:44px;border:none;border-radius:10px;background:transparent;color:var(--muted);font-size:14px}.segmented button.on{background:var(--accent);color:var(--bg);font-weight:700}.chart-card{padding:12px 4px 8px 8px;border-radius:22px}.chart{height:220px;width:100%}.chart.tall{height:300px}.chart.placeholder{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}.ma-legend{display:flex;gap:14px;padding:0 8px 6px;font-size:12px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 12px}.stats .mono{font-size:15px}.holding{padding:16px 18px;display:flex;flex-direction:column;gap:12px}.field{display:flex;flex-direction:column;gap:8px}.field>label{font-size:13px;color:var(--muted)}.field input,.search{height:52px;width:100%;padding:0 16px;border-radius:16px;background:var(--card);border:1px solid var(--border);color:var(--text);font-size:17px}.field input:focus,.search:focus-within{border-color:var(--accent);outline:none}.search{display:flex;align-items:center;gap:10px;color:var(--muted)}.search input{flex:1;min-width:0;height:100%;padding:0;border:none;background:none;font-size:16px}.results{max-height:320px;overflow-y:auto}.row.result{min-height:60px}.preview{padding:14px 16px;border-radius:18px;display:flex;flex-direction:column;gap:8px;font-size:14px}.info{padding:14px 16px;border-radius:18px;font-size:13px;color:var(--text-2);line-height:1.7}.form-error{color:var(--warn);font-size:14px}.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}.check input{width:22px;height:22px;margin:0;accent-color:var(--accent)}.btn{height:54px;border-radius:18px;border:none;font-size:16px;font-weight:700;padding:0 24px;width:100%}.btn.primary{background:var(--accent);color:var(--bg)}.btn.ghost{background:transparent;border:1px solid var(--border);color:var(--text-2);font-weight:500;font-size:15px;height:48px;border-radius:16px}.btn.danger{background:transparent;border:1px solid var(--warn);color:var(--warn);font-weight:700;font-size:15px;height:48px;border-radius:16px}.confirm{display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--text-2)}.choice{padding:14px 16px;border-radius:18px;border:1.5px solid var(--line);background:var(--card);text-align:left;display:flex;flex-direction:column;gap:4px}.choice.on{border-color:var(--accent)}.choice-title{font-size:15px;font-weight:700}.choice-text{font-size:13px;color:var(--muted)}.loading{padding:24px;text-align:center;color:var(--muted);font-size:14px}.error-box{padding:20px;display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center;color:var(--text-2);max-width:360px;margin:0 auto}.empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:32px 16px}.empty-icon{width:88px;height:88px;border-radius:28px;background:var(--card);display:flex;align-items:center;justify-content:center;color:var(--accent)}.empty-title{font-size:20px;font-weight:700}.empty-text{font-size:14px;color:var(--muted);line-height:1.7}.empty .btn{width:auto;margin-top:8px}.login{width:100%;max-width:380px;display:flex;flex-direction:column;gap:20px}.login-head{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}.login-head h1{font-size:26px}.login-head p{color:var(--muted);font-size:14px}.login-icon{width:76px;height:76px;border-radius:24px;background:var(--card);display:flex;align-items:center;justify-content:center;color:var(--accent)}.tabbar{position:fixed;left:0;right:0;bottom:0;height:calc(72px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--card-2);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;color:var(--muted)}.tabbar a.on{color:var(--accent)}.split{display:flex;height:100%}.pane-left{width:392px;flex-shrink:0;height:100%;overflow-y:auto;border-right:1px solid var(--line);padding:calc(24px + env(safe-area-inset-top)) 20px 24px;display:flex;flex-direction:column;gap:14px}.pane-right{flex:1;min-width:0;height:100%;overflow-y:auto;display:flex}.pane-right .page{max-width:760px;padding:calc(24px + env(safe-area-inset-top)) 32px 24px}.pane-right.narrow .page{max-width:520px}.pane-right .chart{height:300px}.pane-right .chart.tall{height:380px}.pane-right .stats{grid-template-columns:repeat(6,minmax(0,1fr))}
