html,body,#root{min-height:100vh;margin:0;padding:0}button{font-family:inherit}:root{--primary:#3b7dff;--primary-10:#e5ebfb;--warning:#ffba54;--success:#2ecc71;--cancel:#7f8c8d;--danger:#f24848;--bg:#f2f3f7;--card:#fff;--text:#1a1a1a;--text-secondary:#333;--text-helper:#999;--exchange-sha:#f24848;--exchange-sza:#a62121;--exchange-hk:#5c6b7a;--radius:12px;--radius-sm:8px;--radius-xs:4px;--shadow:0 2px 12px #0000000f;--shadow-lg:0 8px 32px #0000001f}*,:before,:after{box-sizing:border-box}body{color:var(--text);-webkit-font-smoothing:antialiased;background:#111827;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,SF Pro,sans-serif;font-size:14px;line-height:1.5}button{color:inherit;cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent;background:0 0;border:none}.mobile-prototype-page{background:#111827;justify-content:center;align-items:center;width:100%;min-height:100vh;padding:56px 24px 32px;display:flex;position:relative}.mobile-prototype-stage{justify-content:center;align-items:center;gap:24px;width:min(980px,100%);display:flex}.mobile-device{background:#0b0f16;border-radius:36px;width:390px;height:844px;padding:10px;position:relative;box-shadow:0 28px 80px #00000073}.mobile-screen{background:var(--bg);height:100%;color:var(--text);border-radius:28px;flex-direction:column;display:flex;position:relative;overflow:hidden}.mobile-status-bar{background:linear-gradient(180deg, #dbeafe 0%, var(--bg) 100%);color:#0f172a;flex:none;justify-content:space-between;align-items:center;height:38px;padding:0 24px;font-size:14px;font-weight:700;display:flex}.app{background:var(--bg);flex:1;width:100%;min-height:0;position:relative;overflow-x:hidden}.app-scroll{scrollbar-width:none;height:100%;padding-bottom:88px;overflow:hidden auto}.app-scroll::-webkit-scrollbar{display:none}.page-top{z-index:100;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#f2f3f7f5;padding:8px 16px 10px;position:sticky;top:0}.module-links{border-bottom:1px solid #0000000d;justify-content:space-between;align-items:center;min-height:30px;display:flex}.module-links-tabs{align-items:center;gap:26px;display:flex}.module-links-account{position:relative}.account-trigger{color:var(--text-helper);cursor:pointer;align-items:center;gap:3px;padding:2px 0;font-size:12px;font-weight:500;display:flex}.account-trigger .account-arrow{font-size:10px;transition:transform .2s}.account-trigger.open .account-arrow{transform:rotate(180deg)}.account-dropdown{z-index:150;border-radius:var(--radius-sm);background:var(--card);min-width:160px;box-shadow:var(--shadow-lg);position:absolute;top:calc(100% + 6px);right:0;overflow:hidden}.account-option{text-align:left;border-bottom:1px solid #0000000a;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:11px 14px;font-size:13px;display:flex}.account-option:last-child{border-bottom:0}.account-option-type{color:var(--text);font-weight:600}.account-option-id{color:var(--text-helper);font-size:11px}.account-option.selected{background:var(--primary-10)}.account-option.selected .account-option-type{color:var(--primary)}.module-link{color:var(--text-helper);padding:4px 0 8px;font-size:14px;font-weight:500;position:relative}.module-link.active{color:var(--primary);font-weight:700}.module-link.active:after{background:var(--primary);content:"";border-radius:3px 3px 0 0;height:3px;position:absolute;bottom:-1px;left:0;right:0}.mode-panel{padding-top:10px}.mode-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.trade-switch,.period-switch{align-items:center;display:flex}.trade-switch{gap:18px}.trade-switch button{color:var(--text-helper);letter-spacing:0;padding:4px 0;font-size:18px;font-weight:700;position:relative}.trade-switch button.active{color:var(--text)}.trade-switch button.active:after{background:var(--primary);content:"";border-radius:3px;width:18px;height:3px;position:absolute;bottom:0;left:0}.period-switch{background:#00000009;border-radius:7px;gap:2px;padding:2px}.period-switch button{min-width:40px;min-height:24px;color:var(--text-helper);border-radius:5px;font-size:12px;font-weight:600}.period-switch button.active{background:var(--card);color:var(--text-secondary);box-shadow:0 1px 3px #0000000d}.content{min-height:200px;padding:0 16px 18px}.context-toolbar{z-index:98;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#f2f3f7f5;border-bottom:1px solid #0000000a;margin:0 -16px 8px;padding:8px 16px 9px;position:sticky;top:87px}.filter-shell{align-items:center;gap:10px;display:flex}.filter-bar{scrollbar-width:none;gap:8px;display:flex;overflow-x:auto}.filter-bar::-webkit-scrollbar{display:none}.filter-shell .filter-bar,.filter-shell .capsule-tabs{flex:1;min-width:0}.filter-chip{border-radius:var(--radius-sm);min-width:0;min-height:32px;color:var(--text-secondary);background:#ffffffd1;border:1px solid #0000000a;flex:none;justify-content:center;align-items:center;gap:4px;padding:7px 8px;font-size:12px;font-weight:500;display:flex}.filter-chip span:first-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.filter-chip.has-value{background:var(--primary-10);color:var(--primary)}.filter-chip .arrow{color:var(--text-helper);flex:none;font-size:10px}.chip-clear{width:16px;height:16px;color:var(--primary);text-align:center;background:#3b7dff33;border-radius:50%;flex:none;font-size:10px;font-weight:700;line-height:16px}.capsule-tabs{scrollbar-width:none;gap:6px;padding-bottom:1px;display:flex;overflow-x:auto}.capsule-tabs::-webkit-scrollbar{display:none}.capsule-tab{border-radius:var(--radius-sm);min-height:32px;color:var(--text-secondary);white-space:nowrap;background:#ffffffd1;border:1px solid #0000000a;flex:none;align-items:center;gap:6px;padding:6px 10px;font-size:12px;font-weight:600;display:flex}.capsule-tab em{min-width:18px;color:var(--text-helper);text-align:center;background:#0000000d;border-radius:9px;padding:1px 5px;font-size:11px;font-style:normal;font-weight:700;line-height:1.45}.capsule-tab.active{background:var(--primary-10);color:var(--primary);border-color:#3b7dff47}.capsule-tab.active em{background:var(--primary);color:#fff}.list-context{justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px;display:flex}.list-context>span{color:var(--text-helper);flex:none;font-size:12px;font-weight:600}.micro-notice{min-width:0;color:var(--text-helper);align-items:center;gap:6px;margin:0;font-size:12px;display:flex}.micro-notice span{color:#d58a17;background:#ffba542e;border-radius:50%;justify-content:center;align-items:center;width:15px;height:15px;font-size:10px;font-weight:800;display:inline-flex}.order-list{flex-direction:column;gap:10px;display:flex}.record-card{border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow);overflow:hidden}.record-summary{text-align:left;width:100%;padding:16px 16px 14px;display:block;position:relative}.record-head,.stock-line,.record-meta,.record-metrics{align-items:center;display:flex}.record-head{justify-content:space-between;gap:10px;margin-bottom:14px}.stock-line{gap:8px;min-width:0}.record-name{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:17px;font-weight:700;overflow:hidden}.record-code{color:var(--text-helper);white-space:nowrap;font-size:13px}.record-metrics{justify-content:space-between;gap:16px;margin-bottom:12px}.order-metrics{align-items:flex-start}.exercise-metrics{flex-direction:column;align-items:stretch;gap:10px}.exercise-profit{justify-content:space-between;align-items:baseline;display:flex}.exercise-profit-label{color:var(--text-helper);font-size:14px;font-weight:500}.exercise-profit strong{color:var(--text);font-size:26px;font-weight:800;line-height:1.2}.exercise-profit strong.positive{color:var(--danger)}.exercise-profit strong.negative{color:var(--success)}.exercise-price{color:var(--text-helper);justify-content:space-between;align-items:center;font-size:12px;display:flex}.exercise-price span:last-child{color:var(--text-secondary);font-weight:600}.exercise-support{color:var(--text-helper);justify-content:space-between;align-items:center;gap:10px;font-size:12px;display:flex}.exercise-support span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.metric-block{flex:1;min-width:0}.metric-block span{color:var(--text-helper);font-size:12px;display:block}.metric-block strong{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:16px;font-weight:700;display:block;overflow:hidden}.metric-block.emphasis strong{color:var(--text);font-size:24px;font-weight:800;line-height:1.2}.metric-block.estimated span{color:var(--warning)}.metric-block.estimated.emphasis strong{color:var(--text-secondary);font-weight:700}.metric-block strong.positive,.detail-row strong.positive{color:var(--danger)}.metric-block strong.negative,.detail-row strong.negative{color:var(--success)}.record-meta{min-width:0;color:var(--text-helper);gap:8px;padding-right:20px;font-size:12px}.record-meta span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.record-arrow{color:var(--text-helper);font-size:11px;transition:transform .25s;position:absolute;bottom:12px;right:14px}.record-card.expanded .record-arrow{transform:rotate(180deg)}.badge-ex{border-radius:var(--radius-xs);color:#fff;flex:none;padding:1px 5px;font-size:10px;font-weight:600;line-height:1.5;display:inline-block}.badge-ex.sha{background:var(--exchange-sha)}.badge-ex.sza{background:var(--exchange-sza)}.badge-ex.hk{background:var(--exchange-hk)}.badge-status{white-space:nowrap;border-radius:12px;flex:none;padding:3px 9px;font-size:12px;font-weight:600;display:inline-block}.badge-status.filled{color:var(--danger);background:#f248481a}.badge-status.partial{color:#e6a020;background:#ffba5426}.badge-status.pending{color:var(--primary);background:#3b7dff1a}.badge-status.cancelled{color:var(--cancel);background:#7f8c8d1a}.badge-status.settled{color:var(--success);background:#2ecc711f}.badge-status.failed{color:var(--cancel);background:#7f8c8d1a}.record-detail{max-height:0;transition:max-height .35s;overflow:hidden}.record-card.expanded .record-detail{max-height:1180px}.detail-content{border-top:1px solid #0000000a;padding:0 14px 14px}.detail-section{padding-top:13px}.detail-section h3{color:var(--text-secondary);margin:0 0 8px;font-size:12px;font-weight:700}.detail-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.metric-tile{border-radius:var(--radius-sm);background:#00000006;min-width:0;padding:9px 10px}.metric-tile span{color:var(--text-helper);font-size:11px;display:block}.metric-tile strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:14px;font-weight:700;display:block;overflow:hidden}.detail-rows{border-radius:var(--radius-sm);background:#00000005}.detail-row{border-bottom:1px solid #00000009;justify-content:space-between;align-items:center;gap:14px;min-height:34px;padding:8px 10px;display:flex}.detail-row:last-child{border-bottom:0}.detail-row span{color:var(--text-helper);flex:none;font-size:12px}.detail-row strong{min-width:0;color:var(--text);text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.change-log-content{flex-direction:column;gap:2px;display:flex}.change-log-note{color:var(--text-helper);font-size:11px}.change-log-entry{border-left:1px solid #0000000f;align-items:flex-start;gap:10px;padding:8px 0 8px 14px;display:flex;position:relative}.change-log-entry:last-child{border-left-color:#0000}.change-log-dot{background:var(--primary);border-radius:50%;flex:none;width:7px;height:7px;position:absolute;top:12px;left:-4px}.change-log-entry:first-child .change-log-dot{background:var(--text-helper)}.change-log-action{color:var(--text);font-size:13px;font-weight:600}.change-log-time{color:var(--text-helper);margin-left:auto;font-size:11px}.empty-state{color:var(--text-helper);text-align:center;padding:60px 20px}.empty-state .icon{opacity:.4;margin-bottom:12px;font-size:48px}.empty-state .text{font-size:14px}.backdrop{z-index:200;opacity:0;pointer-events:none;background:#0006;transition:opacity .3s;position:absolute;inset:0}.backdrop.show{opacity:1;pointer-events:auto}.sheet{z-index:201;background:var(--card);border-radius:20px 20px 0 0;flex-direction:column;max-height:80vh;transition:transform .35s cubic-bezier(.32,.72,0,1);display:flex;position:absolute;bottom:0;left:0;right:0;transform:translateY(100%)}.sheet.show{transform:translateY(0)}.sheet-header{border-bottom:1px solid #0000000f;flex:none;justify-content:space-between;align-items:center;padding:16px 20px 12px;display:flex}.sheet-title{font-size:16px;font-weight:600}.sheet-close{width:32px;height:32px;color:var(--text-helper);border-radius:50%;justify-content:center;align-items:center;font-size:20px;display:flex}.sheet-body{flex:1;padding:16px 20px 24px;overflow-y:auto}.sheet-section-title{color:var(--text-helper);margin:16px 0 4px;font-size:12px;font-weight:700}.sheet-section-title:first-child{margin-top:0}.status-list,.stock-list{flex-direction:column;display:flex}.status-group+.status-group{margin-top:10px}.status-item,.stock-option{width:100%;color:var(--text);text-align:left;border-bottom:1px solid #0000000a;justify-content:space-between;align-items:center;padding:12px 0;font-size:14px;display:flex}.stock-name{color:var(--text-helper);font-size:13px}.status-item{justify-content:flex-start;gap:12px}.status-item .checkbox,.stock-option .radio{border:2px solid #0003;flex:none;justify-content:center;align-items:center;width:20px;height:20px;transition:all .2s;display:flex}.status-item .checkbox{border-radius:4px}.status-item.checked .checkbox{border-color:var(--primary);background:var(--primary)}.status-item.checked .checkbox:after{color:#fff;content:"✓";font-size:12px;font-weight:700}.stock-option .left{align-items:center;gap:8px;min-width:0;display:flex}.stock-option .radio{border-radius:50%}.stock-option.checked .radio{border-color:var(--primary);background:var(--primary)}.stock-option.checked .radio:after{content:"";background:#fff;border-radius:50%;width:6px;height:6px}.date-presets{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.selected-range{border-radius:var(--radius-sm);background:#3b7dff14;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;padding:10px 12px;display:flex}.selected-range span{color:var(--text-helper);font-size:12px}.selected-range strong{color:var(--primary);font-size:13px;font-weight:700}.date-preset{color:var(--text-secondary);white-space:nowrap;border:1px solid #00000014;border-radius:18px;padding:7px 14px;font-size:13px;font-weight:500}.date-preset.active{border-color:var(--primary);background:var(--primary-10);color:var(--primary);font-weight:600}.calendar{margin-top:4px}.calendar-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.calendar-title{color:var(--text);font-size:15px;font-weight:600}.calendar-nav{width:32px;height:32px;color:var(--text-secondary);border-radius:50%;justify-content:center;align-items:center;font-size:20px;display:flex}.calendar-nav:active{background:#0000000a}.calendar-weekdays{text-align:center;color:var(--text-helper);grid-template-columns:repeat(7,1fr);margin-bottom:6px;font-size:12px;font-weight:600;display:grid}.calendar-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.calendar-day{aspect-ratio:1;color:var(--text);border-radius:50%;justify-content:center;align-items:center;font-size:14px;transition:background .15s;display:flex}.calendar-day.today{color:var(--primary);font-weight:700}.calendar-day.range-start,.calendar-day.range-end{background:var(--primary);color:#fff;font-weight:700}.calendar-day.in-range{background:var(--primary-10);border-radius:0}.calendar-day.range-start{border-radius:50% 0 0 50%}.calendar-day.range-end{border-radius:0 50% 50% 0}.calendar-day.range-start.range-end{border-radius:50%}.stock-search-wrap{align-items:center;margin-bottom:12px;display:flex;position:relative}.stock-search-icon{pointer-events:none;font-size:14px;position:absolute;left:10px}.stock-search-input{border-radius:var(--radius-sm);width:100%;color:var(--text);background:#00000008;border:1px solid #0000001a;outline:none;padding:10px 32px 10px 34px;font-size:14px}.stock-search-input:focus{border-color:var(--primary);background:var(--card)}.stock-search-clear{width:22px;height:22px;color:var(--text-helper);text-align:center;background:#00000014;border-radius:50%;font-size:13px;line-height:22px;position:absolute;right:8px}.stock-search-empty{color:var(--text-helper);text-align:center;padding:24px 0;font-size:13px}.sheet-footer{border-top:1px solid #0000000a;flex:none;gap:10px;padding:12px 20px 28px;display:flex}.btn{border-radius:var(--radius-sm);text-align:center;flex:1;padding:12px;font-size:15px;font-weight:600}.btn-secondary{color:var(--text-secondary);background:#0000000a}.btn-primary{background:var(--primary);color:#fff}.bottom-nav{z-index:90;background:#fffffff5;border-top:1px solid #00000014;grid-template-columns:repeat(3,1fr);width:100%;height:74px;display:grid;position:absolute;bottom:0;left:0;box-shadow:0 -8px 24px #0000000a}.bottom-nav button{color:var(--text-helper);flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:12px;font-weight:500;display:flex}.bottom-nav button.active{color:var(--primary)}.nav-icon{font-size:22px;line-height:1}@media (width<=980px){.mobile-prototype-page{align-items:flex-start;overflow-y:auto}.mobile-prototype-stage{flex-direction:column}}@media (width<=430px){.mobile-prototype-page{padding:0}.mobile-device{width:100vw;height:100vh;box-shadow:none;border-radius:0;padding:0}.mobile-screen{border-radius:0}.app-scroll{padding-bottom:82px}.page-top,.content{padding-inline:12px}.context-toolbar{margin-inline:-12px;padding-inline:12px;top:87px}.filter-shell{gap:8px}.trade-switch button{font-size:17px}.record-summary{padding-inline:12px}.record-metrics{gap:8px}.metric-block.emphasis strong{font-size:20px}.exercise-profit strong{font-size:22px}.record-meta{gap:6px;font-size:11px}.badge-status{padding-inline:8px}}
