:root{color-scheme:light;--line:#dfe5ea;--muted:#75838f;--ink:#293945;--accent:#246d82;--red:#d32f2f}
*{box-sizing:border-box}body{margin:0;background:#f5f7f9;color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}button,input,select{font:inherit}button,input,select{border:1px solid var(--line);border-radius:7px;background:#fff;min-height:36px;padding:6px 10px;color:inherit}button{cursor:pointer;color:var(--accent)}button:hover:not(:disabled){background:#edf6f8;border-color:#a8c4ce}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #4589a1;outline-offset:2px}[hidden]{display:none!important}
.page-heading{max-width:1520px;margin:auto;padding:20px 26px 13px;display:flex;align-items:center;justify-content:space-between;gap:14px}.page-heading h1{margin:0;font-size:25px;letter-spacing:.02em}.page-heading h1 span{font-size:16px;font-weight:500;color:#607887;margin-left:8px}.page-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}.phc-workbench{max-width:1468px;margin:0 auto 30px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 22px;min-width:0}
.phc-heading h2{font-size:18px;margin:0 0 4px}.phc-heading p{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 12px}.phc-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3}.phc-toolbar label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:13px}.phc-small{width:76px}.phc-count{width:92px}.phc-datebar{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.phc-datebar button{font-size:12px;padding:5px 8px;min-height:34px}.phc-query{background:#246d82;color:white;border-color:#246d82}.phc-query:hover:not(:disabled){background:#19586d;color:white}.phc-rule{font-size:12px;color:var(--muted);margin:10px 0 0}.phc-rule b{color:#536573}.phc-status{font-size:12px;color:#607787;margin:5px 0 10px;min-height:19px}.phc-status[data-stale=true]{color:#a65c16}.phc-status[data-error=true]{color:#b73434}
.phc-upcoming{border:1px solid #cee4df;background:#f3f9f7;border-radius:10px;padding:13px 14px}.phc-upcoming-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:9px}.phc-upcoming-heading h3{font-size:15px;margin:0}.phc-upcoming-heading small{color:var(--muted);font-weight:400;margin-left:10px}.phc-upcoming-meta{font-size:12px;color:#6c7e88;margin:7px 0 0}.phc-upcoming-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.phc-upcoming-position{border:1px solid #dfe9e5;border-radius:8px;padding:10px 12px;background:#fff;min-width:0}.phc-position-label{display:flex;justify-content:space-between;font-weight:600;color:#526a70;font-size:13px;gap:8px}.phc-previous{font-size:11px;color:#89969c;font-weight:400}.phc-previous strong{font-size:14px;margin-left:4px}.phc-previous-hit{color:var(--red)}.phc-ranked-picks{display:grid;grid-template-columns:repeat(var(--rank-columns),1fr);text-align:center;margin:2px 0}.phc-rank-slot{height:18px;font-size:20px;line-height:18px;font-weight:800;color:var(--red)}.phc-next-digit{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:26px;font-weight:700;line-height:34px}.phc-rank-note{font-size:11px;color:#8a969d;min-height:17px}.phc-copy-state{font-size:12px;min-height:18px;color:#6b7a82;margin:5px 0 0}.phc-upcoming[data-stale=true]{background:#fbf8f2;border-color:#e8d9bd}.phc-upcoming[data-stale=true] .phc-next-digit{color:#859198}
.phc-period{margin:14px 0}.phc-period-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:9px}.phc-period-head h3{font-size:14px;margin:0}.phc-period-head span{font-size:12px;color:var(--muted)}.phc-period-nav{margin-left:auto;display:flex;gap:5px}.phc-period-nav button{padding:4px 8px;font-size:12px;min-height:30px}.phc-period-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}.phc-day{border:1px solid var(--line);border-radius:7px;padding:8px 7px;background:#fff;color:#6b7d88;font-size:11px;text-align:left;min-width:0}.phc-day time{display:block;font-size:12px;font-weight:600;color:#465c69}.phc-day strong{display:block;font-size:14px;margin:2px 0;white-space:nowrap}.phc-day-selected{border:2px solid #347c92;background:#eff7fa!important;padding:7px 6px}.phc-day-empty{opacity:.6}.phc-note{color:var(--muted);font-size:11px;margin:6px 0}
.phc-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.phc-metric{border:1px solid #e6ebef;background:#f7f9fb;border-radius:8px;padding:8px 11px;min-width:0}.phc-metric span{display:block;color:var(--muted);font-size:11px}.phc-metric strong{display:block;margin-top:2px;font-size:15px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.phc-profit{color:#168267!important}.phc-loss{color:#c33d3d!important}.phc-neutral{color:#72828e!important}.phc-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0 8px}.phc-detail-heading h3{margin:0;font-size:14px}.phc-detail-heading span{font-size:11px;color:var(--muted)}
.phc-table-wrap{position:relative;overflow:auto;max-height:680px;border:1px solid var(--line);border-radius:8px;isolation:isolate}.phc-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap;text-align:left;position:relative}.phc-table th{background:#f0f4f7;color:#536c7b;position:sticky;top:0;z-index:3}.phc-table td,.phc-table th{padding:10px 10px;border-bottom:1px solid #e8edf1;vertical-align:middle}.phc-table td small{display:block;color:#93a0aa;font-size:10px}.phc-table td.phc-picks{min-width:105px;text-align:center}.phc-table th.phc-picks-head{text-align:center}.phc-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;letter-spacing:2px}.phc-code b{font-weight:500}.phc-code .phc-code-hit{color:var(--red);font-weight:800}.phc-pick-digit{display:inline-block;font:15px/22px ui-monospace,SFMono-Regular,Menlo,monospace;min-width:23px;text-align:center;position:relative;z-index:2;color:#536574}.phc-pick-hit{color:var(--red);font-weight:800}.phc-gap td{background:#fff9ef}.phc-empty{text-align:center;color:#8997a0;padding:24px!important}.phc-history-trend{position:absolute;pointer-events:none;overflow:visible;z-index:1}.phc-history-trend line{stroke:#087fb7;stroke-width:1.25;stroke-dasharray:4 4;stroke-linecap:round;opacity:.5;vector-effect:non-scaling-stroke}.phc-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px;font-size:12px;color:var(--muted)}.phc-pagination button{white-space:nowrap;flex-shrink:0}.phc-pagination>span{min-width:0;text-align:center}
@media(min-width:1550px){.page-heading{padding-left:0;padding-right:0}}@media(max-width:1100px){.phc-workbench{margin-left:14px;margin-right:14px}.phc-period-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:680px){.page-heading{padding:15px 14px 10px}.page-heading h1{font-size:21px}.page-heading h1 span{font-size:14px}.page-heading p{font-size:11px;max-width:290px}.page-heading>button{font-size:12px;white-space:nowrap;padding:5px 8px}.phc-workbench{margin:0 8px 15px;padding:13px 12px}.phc-heading h2{font-size:16px}.phc-heading p{font-size:12px}.phc-toolbar{gap:9px}.phc-toolbar label{font-size:12px}.phc-toolbar input,.phc-toolbar select{min-height:34px;padding:5px 7px}.phc-toolbar select{max-width:136px}.phc-datebar{width:100%}.phc-datebar label{width:100%;justify-content:space-between}.phc-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.phc-upcoming{padding:10px}.phc-upcoming-position{padding:8px}.phc-upcoming-heading h3{font-size:13px}.phc-upcoming-heading small{display:block;margin-left:0;font-size:11px}.phc-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.phc-metric{padding:7px 8px}.phc-metric strong{font-size:13px}.phc-period-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.phc-day{font-size:10px;padding:6px 4px}.phc-day-selected{padding:5px 3px}.phc-day strong{font-size:11px}.phc-period-nav{margin-left:0}.phc-detail-heading{align-items:baseline}.phc-detail-heading span{text-align:right;max-width:160px}.phc-table td,.phc-table th{padding:9px 8px}}
/* Two independent modules share a compact page; draw history stays alongside. */
.workspace-shell{max-width:1520px;margin:0 auto 28px;padding:0 16px;display:grid;grid-template-columns:200px minmax(0,1fr);gap:14px;align-items:start}.workspace-main{min-width:0}.workspace-main .phc-workbench{margin:0;padding:16px 18px;border-radius:0 10px 10px 10px}.module-tabs{display:flex;align-items:end;gap:5px;margin-bottom:-1px;position:relative;z-index:2}.module-tabs button{font-size:13px;border-radius:8px 8px 0 0;padding:9px 17px;color:#778792;background:#edf1f4}.module-tabs button[aria-selected=true]{background:#fff;color:#246d82;border-bottom-color:#fff;font-weight:650}.history-sidebar{position:sticky;top:12px;border:1px solid var(--line);background:#fff;border-radius:9px;min-width:0;overflow:hidden}.history-toggle{border:0;border-radius:0;width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:10px 10px;background:#edf2f5;color:#546a77;cursor:default}.history-toggle strong{font-size:13px}.history-toggle span{font-size:10px;color:#83929d}.history-status{font-size:10px;color:#8998a1;margin:6px 9px;min-height:15px}.history-status[data-error=true]{color:#bd4141}.history-scroll{max-height:calc(100vh - 210px);overflow:auto;position:relative}.history-table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}.history-table th{position:sticky;top:0;background:#f7f9fa;color:#8998a2;font-weight:500;font-size:10px;z-index:1}.history-table td,.history-table th{padding:7px 8px;border-bottom:1px solid #edf1f4;text-align:left}.history-table td small{display:block;color:#a0abb3;font-size:9px;line-height:1.3}.history-number{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:2px;font-size:14px}.history-number strong{font-weight:650;color:#536d7c}.history-number span{color:#c1c9cf;font-weight:400}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:8px 6px;font-size:10px;color:#8a98a2}.history-pagination button{padding:4px 5px;font-size:10px;min-height:28px;white-space:nowrap}.workspace-main .phc-heading h2{font-size:17px}.workspace-main .phc-heading p{font-size:12px}.workspace-main .phc-toolbar label{font-size:12px}.workspace-main .phc-table{font-size:11px}.workspace-main .phc-metric strong{font-size:14px}.workspace-main .phc-pick-digit{font-size:14px;min-width:21px}.workspace-main .phc-next-digit{font-size:23px}.workspace-main .phc-table td,.workspace-main .phc-table th{padding:8px}.workspace-main .phc-table td.phc-picks{min-width:95px}.workspace-main .phc-period-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1100px){.workspace-shell{grid-template-columns:200px minmax(0,1fr);gap:10px}.workspace-main .phc-workbench{margin:0;padding:14px}.workspace-main .phc-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-main .phc-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.workspace-shell{display:block;padding:0 10px}.history-sidebar{position:static;margin-bottom:12px}.history-toggle{cursor:pointer}.history-toggle:after{content:'展开';font-size:11px;color:#6e8794}.history-sidebar[data-open=true] .history-toggle:after{content:'收起'}.history-content{display:none}.history-sidebar[data-open=true] .history-content{display:block}.history-scroll{max-height:260px}.history-table{font-size:11px}.history-table td,.history-table th{padding:5px 12px}.history-table .history-number{text-align:right}.history-pagination{justify-content:center;gap:18px}.workspace-main .phc-workbench{padding:13px 12px}.module-tabs button{font-size:12px;padding:8px 15px}.page-heading{padding-bottom:11px}.workspace-main .phc-period-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
