/* v0.3: neutral white and subtle sage art direction and a desktop game workspace. */
:root{--paper:#eff4f2;--card:#fff;--ink:#2b4034;--muted:#6c8175;--line:#e1eae4;--mint:#dfeae4;--green:#3e6d52;--up:#cb4e68;--down:#396a4d;--navy:#2e4638;--shadow:0 4px 18px #334c3d10}
body{padding-bottom:0;background:var(--paper)}
.brand-icon{color:#d8f3f0}.panel{border-radius:10px}.muted,.quiet{color:#73877b}.live-dot{background:#558368}
.watch-item.selected{background:#ecf3ef;border-color:#507f64}.watch-item+.watch-item{border-top-color:#eff4f1}.watch-bottom span{color:#76887e}.market-switch{color:#70887a}
.rank-mark{background:#eaf1ed;border-color:#d4e2da;color:#4e7860}.sidebar-bottom p,.sidebar-bottom>small,.stress-label{color:#74887c}.stress-track{background:#eaf0ec}.stress-track i{background:#6e9980}
.segmented,.side-switch{background:#eff4f2}.segmented button,.chart-options,.chart-options button{color:#657f70}.segmented .selected{color:#3a694e}.chart-options input,.volume-label input,.audio-dialog-controls input{accent-color:#548769}
.ma5{color:#b07722}.ma20{color:#3385c0}.ma60{color:#9269bf}.symbol-code,.ohlc-line,.legend-hint,.chart-foot{color:#6e8377}.market-badge,.story-badge{color:#5f7c6b;border-color:#dbe7e0}.foreign{background:#308caa}.trust{background:#8971c4}.dealer{background:#77899e}
.story-body h3{font-size:14px;line-height:1.5;margin-bottom:8px}.story-body p{font-size:13px;line-height:1.8;color:#5f7869}.speaker-row small,.story-hint{color:#768b7f}.story-hint{border-color:#e0eae4}.choice-btn{background:#f5f9f7;border-color:#d4e4db;color:#3f664f}.choice-btn:hover{background:#eaf3ee}
.quantity-input{border-color:#d2e1d8}.quantity-input input{color:#365945}.field-label,.quantity-input span,.cost-summary,.quick-qty button{color:#677e71}.quick-qty button{border-color:#dce7e1}.cost-summary b{color:#446552}.side-switch #buySide.selected{background:#f8e7ed;color:#b74160}.side-switch #sellSide.selected{background:#e5eee9;color:#38644a}
.order-button{background:#cb627c;color:#fff}.order-button.sell{background:#4e7f62}.trade-note,.inline-message{color:#72897c}.advance-panel{background:#ebf4ef;border:1px solid #d7e6dd;color:#456753}.advance-panel>button{background:#3c674e;color:#fff}.advance-info,.advance-info b,.advance-panel>small,.advance-panel .eyebrow,.skip-row button{color:#5d7a69}.skip-row button{border-color:#c8dbd0}
.empty-state,.empty-state span,.local-tag{color:#768c7f}.tabs button{color:#6f8679}.tabs button.active{color:#3d7153;border-color:#5b8c6f}.table-action{color:#46785b}.data-note{color:#76887e}
.game-menu{position:relative;margin-left:auto;z-index:30;flex-shrink:0}.game-menu summary{cursor:pointer;list-style:none;display:flex;gap:8px;align-items:center;padding:11px 13px;border:1px solid #d3e1d9;border-radius:8px;background:#f7faf8;font-size:13px;color:#476855;white-space:nowrap}.game-menu summary::-webkit-details-marker{display:none}.game-menu[open] summary{background:#eaf3ee}.topbar .game-menu nav{position:absolute;right:0;top:calc(100% + 8px);display:grid;gap:4px;min-width:196px;padding:8px;background:#fff;border:1px solid #d9e6de;border-radius:10px;box-shadow:0 12px 36px #324e3e26;margin:0}.game-menu nav button{padding:12px 14px;font-size:13px;text-align:left;border-radius:5px;color:#4a6a57}.game-menu nav button:hover{background:#f0f7f3}
.title-screen{background:#f2f7f4}.title-background{opacity:.8}.title-wash{background:linear-gradient(90deg,#f7fbf9 0%,#f7fbf9f0 31%,#f6faf890 57%,#f5faf722 100%),linear-gradient(0deg,#f1f7f3 0%,transparent 50%)}
.title-copy h1{color:#345240}.title-copy h1>span{color:#5d856e}.title-chapter,.title-description{color:#668573}.title-version{color:#6d8878}.title-top .brand small{color:#728d7d}
.menu-primary{background:#416a52;color:#fff;box-shadow:0 5px 0 #2e4d3b,0 12px 25px #395e4814}.menu-primary small{color:#cde2d6}.menu-continue{background:#f8fbf9dd;border-color:#b6d0c1;color:#4b745c}.menu-save,.menu-save>span{color:#6a8977}
.title-records button{background:#ffffffcc;border-color:#d3e2d9}.title-records button>span,.title-records small{color:#738d7e}.title-records strong{color:#48745a}.title-halo{background:#cfe5d86e;box-shadow:0 0 0 22px #deece44a,0 0 0 45px #ecf4ef44}.title-bubble{background:#fcfdfced;color:#6a8876;border-color:#c7dcd0;box-shadow:0 6px 0 #8ab59c14}.title-bubble b{color:#446953}.title-note{color:#62816f}.floating-note{background:#e9f4ee;color:#658a74;box-shadow:0 4px 10px #58796612}.note-two{background:#e6efea;color:#587966}
.achievement-strip{background:#f8fbf9e8;border-color:#d3e1d9}.achievement-heading{border-color:#d4e2da}.achievement-heading>span,.achievement-group>span{color:#537b64}.achievement-heading small,.achievement-group small,.title-footer,.title-footer button{color:#748d7e}.achievement-group>span{border-color:#c9dcd1}
.music-dock{background:#f9fcfaef;border-color:#d2e0d8;box-shadow:none;backdrop-filter:blur(8px)}.bgm-toggle{background:#eaf3ee;border-color:#cee1d6;color:#538267}.bgm-toggle[aria-pressed=false]{color:#889f92}.bgm-copy strong{color:#557c65}.bgm-copy small,.bgm-settings{color:#749080}.bgm-settings{border-color:#d4e2da}.music-auditions button{background:#f5faf7;border-color:#d9e6de}.music-auditions button.selected{background:#e9f3ed;border-color:#80a991}.music-auditions button strong,.music-auditions button>span,.music-auditions button>small{color:#638571}
.intro-art-shade{background:linear-gradient(0deg,#2c503bcc,transparent 85%)}.intro-content{background:#fcfefd}.intro-content p{color:#607b6b}.toast{bottom:48px}.utility-dialog{background:#fcfefd}.record-details b{color:#4a745c}

/* One desktop viewport. Historical lists scroll inside their panel only. */
@media(min-width:1000px){
 body{height:100dvh;overflow:hidden}
 #gameShell{height:100dvh;display:grid;grid-template-rows:78px minmax(0,1fr) 36px}
 .topbar{height:auto;padding:0 16px;gap:16px;min-width:0}
 .topbar>.brand{font-size:17px;gap:9px;letter-spacing:1px}.topbar .brand-icon{width:33px;height:33px;font-size:21px}.topbar .brand small{font-size:6px;letter-spacing:1.8px}
 .session{padding-left:14px;text-align:left;gap:2px;min-width:156px;flex-shrink:0}.session>span{font-size:10px}.session strong{font-size:20px}.session small{font-size:9px;max-width:158px;line-height:1.35;color:#6d8577}
 .stats{display:flex;flex:1;gap:0;margin:0;min-width:0;align-self:stretch;align-items:center}.stats article{flex:1;min-height:0;min-width:0;padding:0 15px;border:0;border-left:1px solid #e4ede8;border-radius:0;overflow:visible;background:transparent}.stats article>span{font-size:11px;white-space:nowrap;color:#668071;gap:0}.stats i,.tiny-trend{display:none}.stats article>strong{font-size:20px;margin:4px 0;white-space:nowrap;color:#365a45}.stats small{font-size:10px;white-space:nowrap;color:#647e6f}.stats .alpha-stat{background:transparent}.stats .alpha-stat>strong{color:#3e6b51}.stats .alpha-stat small{font-size:9px}.alpha-stat em{font-size:10px}
 main{max-width:none;min-height:0;min-width:0;width:100%;margin:0;padding:12px 16px 8px;display:grid;grid-template-rows:minmax(0,1fr) 22px;grid-row:2;gap:6px}
 .workspace{height:100%;min-height:0;grid-template-columns:155px minmax(0,1fr) 320px;gap:12px;align-items:stretch}
 .panel-head{padding:12px}.panel-head h2{font-size:12px}
 .watchlist{display:flex;flex-direction:column;min-height:0}.watchlist .panel-head{padding:15px 12px}.market-switch{padding:12px 10px 5px;font-size:7px}.watch-item{padding:15px 10px}.watch-top strong{font-size:12px}.watch-top b{font-size:12px}.watch-bottom span{font-size:10px}.watch-bottom b{font-size:11px}
 .sidebar-bottom{margin:auto 12px 0;padding:16px 0}.rank-mark{margin:12px auto 10px;width:40px;height:40px;font-size:24px}.sidebar-bottom h3{font-size:12px}.sidebar-bottom p{font-size:10px}.sidebar-bottom .eyebrow{font-size:9px}.stress-label{margin-top:16px;font-size:10px}.sidebar-bottom>small{font-size:9px;line-height:1.6}
 .center-column{display:grid;grid-template-rows:minmax(0,1fr) 184px;gap:12px;min-height:0}
 .chart-panel{display:flex;flex-direction:column;min-height:0}.chart-title{padding:12px 15px 7px;gap:10px}.chart-title h2{font-size:17px}.quote strong{font-size:22px}.quote>span{font-size:11px}.chart-tools{padding:0 14px 7px}.segmented button{font-size:11px;padding:5px 10px}.chart-options{font-size:11px;gap:12px}.chart-options input{width:13px;height:13px}.chart-options button{font-size:10px}.ohlc-line{padding:7px 15px 5px;min-height:0;font-size:11px}.ma-legend{padding:0 15px 4px;font-size:10px}.legend-hint{font-size:9px}.chart-wrap{flex:1;min-height:0;height:auto;padding:0 7px 0 8px}.chart-foot{padding:6px 14px;font-size:10px}.data-note{padding:0 14px 6px;font-size:10px}
 .story-panel{display:grid;grid-template-columns:82px minmax(0,1fr) minmax(190px,32%);grid-template-rows:35px minmax(0,1fr) 24px;padding:0;gap:0 10px;min-height:0}.story-panel .panel-head{grid-column:1/-1;padding:8px 13px;border-bottom:1px solid #e7efea}.story-panel .story-badge{max-width:65%;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.speaker-row{grid-column:1;grid-row:2/4;display:flex;flex-direction:column;gap:0;padding:6px 0 8px 9px;text-align:center}.speaker-row .avatar{width:72px;height:72px}.speaker-row strong{font-size:11px}.speaker-row small{font-size:9px;line-height:1.4;margin:4px 0 0}.speech-icon{display:none}
 .story-body{grid-column:2;grid-row:2;align-self:start;padding:10px 0 0;min-width:0}.story-body h3{font-size:14px;line-height:1.5;margin:0 0 5px;padding:0}.story-body p{font-size:12px;line-height:1.8;padding:0;color:#5d7667}.story-panel:not(:has(.choice-btn)) .story-body{grid-column:2/4;padding-right:15px}.story-hint{grid-column:2/4;grid-row:3;font-size:10px;line-height:1.4;margin:0 13px 0 0;padding:3px 0 0;border:0;align-self:start}#storyChoices{grid-column:3;grid-row:2;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:8px 12px 5px 0}.choice-btn{margin:0;padding:9px 10px;font-size:12px;line-height:1.5;min-height:35px}
 .right-column{display:grid;grid-template-rows:auto minmax(110px,1fr) 116px;gap:10px;min-height:0}
 .trade-panel{padding-bottom:8px;display:grid;grid-template-columns:1fr 1fr;gap:7px 9px;padding:0 12px 9px;align-content:start}.trade-panel .panel-head{grid-column:1/3;margin:0 -12px;padding:11px 12px}.side-switch{grid-column:1/3;margin:0;padding:3px}.side-switch button{font-size:12px;padding:6px}.field-label{grid-column:1/3;margin:0;font-size:11px}.field-label span{font-size:10px}.quantity-input{grid-column:1;grid-row:4/6;margin:0;padding:8px 10px;align-self:stretch}.quantity-input input{font-size:21px}.quick-qty{grid-column:2;grid-row:4/6;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:4px}.quick-qty button{font-size:10px;padding:5px 4px}.quick-qty button:last-child{grid-column:1/3}.cost-summary{grid-column:1/3;padding:0;margin:0;display:grid;gap:4px}.cost-summary>div{font-size:11px;margin:0}.cost-summary b{font-size:12px}.order-button{grid-column:1/3;margin:0;width:100%;padding:10px 12px;font-size:13px;border-radius:5px}.trade-note{grid-column:1/3;margin:0;padding:0;font-size:10px;line-height:1.5}.inline-message{grid-column:1/3;font-size:11px;margin:0;padding:0;line-height:1.5}.inline-message:empty{display:none}
 .portfolio-panel{display:flex;flex-direction:column;min-height:0}.portfolio-panel .panel-head{padding:0 9px;flex-shrink:0}.tabs{display:flex;gap:9px;flex:1;justify-content:space-between}.tabs button{padding:11px 0;font-size:11px;white-space:nowrap}.tabs button span{font-size:9px;margin-left:2px}.local-tag{display:none}#portfolioContent{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.empty-state{padding:18px 12px;font-size:12px;line-height:1.8}.empty-state span{font-size:10px;line-height:1.7;margin-top:6px}.table-scroll{overflow:visible}.portfolio-panel table{min-width:0;width:100%;font-size:11px}.portfolio-panel thead{display:none}.portfolio-panel tbody{display:block;padding:0 10px}.portfolio-panel tr{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px 6px;padding:9px 0;border-bottom:1px solid #e7efea;position:relative}.portfolio-panel td{padding:0;border:0;text-align:left;font-size:11px;white-space:normal}.portfolio-panel td:first-child{grid-column:1/3;display:flex;align-items:center;gap:7px}.portfolio-panel td:first-child strong{font-size:12px}.portfolio-panel td:first-child small{margin:0;font-size:10px}.portfolio-panel td:last-child{grid-row:1;grid-column:3;text-align:right}.portfolio-panel td:nth-child(2)::before{content:'股數 ';color:#778c80;font-size:9px}.portfolio-panel td:nth-child(3)::before{content:'均價 ';color:#778c80;font-size:9px}.portfolio-panel td:nth-child(4)::before{content:'市值 ';color:#778c80;font-size:9px}.portfolio-panel td:nth-child(5){grid-column:1/4;text-align:right}.portfolio-panel td:nth-child(5)::before{content:'未實現 ';font-size:9px}.portfolio-panel td:nth-child(5) br{display:none}.portfolio-panel td:nth-child(5) small{margin-left:5px}.table-action{padding:2px 5px;font-size:11px}.journal-row{padding:8px 10px;font-size:10px;gap:6px}.journal-row time{font-size:9px}.performance-wrap{padding:9px}.performance-wrap svg{max-height:100%;width:100%}
 .advance-panel{padding:9px 12px;display:grid;grid-template-columns:1fr 1fr;gap:6px 9px;align-content:start;border-radius:9px}.advance-panel>.eyebrow,.advance-panel>small{display:none}.advance-info{grid-column:1/3;margin:0;font-size:11px;display:flex;justify-content:space-between}.advance-info b{font-size:12px}.advance-panel>button{grid-column:1/3;margin:0;padding:9px 10px;min-height:34px;font-size:13px;border-radius:5px}.skip-row{grid-column:1/3;margin:0;gap:8px}.skip-row button{font-size:11px;padding:5px;border-radius:4px}
 footer{padding:0;font-size:9px;gap:10px;min-height:0;align-items:center;border:0}footer b{margin-left:8px}footer button{font-size:10px}footer>span:nth-child(2){margin-left:auto}.music-dock{position:fixed;bottom:0;left:0;right:0;max-width:none;height:36px;justify-content:flex-end;border-radius:0;border-width:1px 0 0;padding:3px 18px;gap:10px}.bgm-toggle{width:25px;height:25px;font-size:17px}.bgm-copy{display:flex;align-items:center;gap:12px;min-width:0}.bgm-copy strong{font-size:10px}.bgm-copy small{font-size:9px;margin:0;max-width:none}.volume-label{width:65px}.bgm-settings{font-size:10px}.toast{bottom:45px}
}
@media(min-width:1100px) and (min-height:620px){
 /* The title and achievements share the viewport instead of stacking below it. */
 .title-screen{height:100dvh;min-height:0;display:grid;grid-template-rows:66px minmax(0,1fr) 68px 44px;padding:0 6% 36px}.title-top{height:auto;max-width:1280px;width:100%}.title-layout{width:100%;height:100%;min-height:0;max-width:1150px;margin:0 auto;gap:45px}.title-copy{padding:8px 0}.title-copy h1{font-size:clamp(56px,6.4vw,86px)}.title-copy h1>span{font-size:15px;margin-top:15px;letter-spacing:4px}.title-chapter{margin-bottom:14px}.title-description{font-size:13px;margin-top:21px;line-height:1.9}.title-actions{margin-top:22px;gap:8px;max-width:420px}.menu-primary{padding:16px 21px;font-size:18px;margin-bottom:5px}.menu-continue{padding:11px 18px;font-size:12px}.menu-save{padding:8px 5px;font-size:12px}.title-records{margin-top:12px;gap:10px;max-width:490px}.title-records button{padding:12px}.title-records strong{font-size:12px;margin-top:7px}.title-records small{font-size:9px;margin-top:4px}.title-illustration{height:100%;max-height:590px;min-height:0;align-self:center}.title-character{width:min(100%,54vh);max-width:560px;left:0;bottom:2%}.title-halo{width:min(90%,40vh);height:auto;aspect-ratio:1;left:6%;top:20%}.title-bubble{right:0;top:5%;font-size:13px}.note-one{top:30%;left:-5%}.note-two{top:71%;right:0}.title-note{bottom:2%;right:0;font-size:10px}.achievement-strip{width:100%;max-width:1280px;margin:0 auto;padding:12px 0;align-self:stretch}.achievement-heading>span{font-size:13px}.achievement-heading small{font-size:10px}.achievement-group>span{font-size:13px;padding:0 26px}.achievement-group small{font-size:10px}.title-footer{width:100%;height:44px;min-height:0;font-size:10px}.title-footer button{font-size:10px}
}
@media(min-width:1000px) and (max-height:800px){
 #gameShell{grid-template-rows:72px minmax(0,1fr) 32px}.topbar{gap:12px}.stats article{padding:0 12px}.stats article>strong{font-size:18px}.stats small{font-size:9px}.session strong{font-size:19px}.session{min-width:152px}.workspace{grid-template-columns:150px minmax(0,1fr) 310px;gap:10px}.center-column{grid-template-rows:minmax(0,1fr) 184px;gap:10px}.right-column{grid-template-rows:auto minmax(100px,1fr) 110px;gap:9px}.sidebar-bottom{padding:12px 0}.watch-item{padding:12px 10px}.rank-mark{margin:8px auto}.stress-label{margin-top:10px}.music-dock{height:32px}.story-panel{grid-template-columns:72px minmax(0,1fr) minmax(175px,31%);gap:0 7px}.speaker-row .avatar{width:64px;height:64px}.story-body p{font-size:12px;line-height:1.7}.choice-btn{padding:8px;font-size:11px}.story-hint{font-size:9px}}
@media(min-width:1100px) and (max-height:800px) and (min-height:620px){
 .title-screen{grid-template-rows:58px minmax(0,1fr) 62px 34px;padding-bottom:32px}.title-top .brand-icon{width:32px;height:32px;font-size:20px}.title-layout{max-width:1050px;gap:32px}.title-copy h1{font-size:64px}.title-copy h1>span{font-size:13px;margin-top:12px}.title-chapter{margin-bottom:10px}.title-description{font-size:12px;margin-top:17px}.title-actions{margin-top:18px;gap:6px}.menu-primary{font-size:16px;padding:13px 18px}.menu-continue{padding:9px 16px}.menu-save{padding:7px 4px;font-size:11px}.title-records button{padding:10px 12px}.title-records strong{margin-top:6px}.title-records small{font-size:8px}.title-character{width:min(100%,60vh)}.title-footer{height:34px}.title-note{bottom:3%;font-size:9px}.title-bubble{font-size:12px}.achievement-heading>span,.achievement-group>span{font-size:12px}.achievement-heading small,.achievement-group small{font-size:9px}
}
/* Tablet and mobile keep a natural vertical flow. */
@media(max-width:999px){
 body{padding-bottom:64px}.topbar{height:auto;padding:12px 16px;gap:12px;flex-wrap:wrap}.topbar>.brand{font-size:17px}.topbar .session{margin-left:auto;border:0;padding:0;min-width:0}.session strong{font-size:19px}.session small{font-size:9px;max-width:200px}.session>span{font-size:10px}.topbar>.stats{order:4;width:100%;flex-basis:100%;margin:0;gap:8px;grid-template-columns:repeat(4,1fr)}.stats article{padding:10px;min-height:85px}.stats article>strong{font-size:18px}.stats i,.tiny-trend{display:none}.stats .alpha-stat{background:#eaf3ee}.stats article>span{font-size:10px}.stats small{font-size:9px}.workspace{grid-template-columns:155px minmax(0,1fr);gap:12px}.right-column{grid-column:1/3;display:grid;grid-template-columns:1fr 1fr}.advance-panel{grid-column:1/3}.story-body{padding:0 17px}.story-panel{padding-bottom:14px}.story-body h3{font-size:14px}.story-body p{font-size:13px}.music-dock{bottom:0;left:0;right:0;max-width:none;border-radius:0;justify-content:flex-end;height:54px}.title-screen{padding-bottom:10px}.title-footer{padding-bottom:10px}.title-copy h1{color:#345240}.game-menu summary{padding:9px 11px}.game-menu nav{z-index:40}
}
@media(max-width:650px){
 .topbar{padding:10px 12px;gap:8px}.topbar>.brand{font-size:15px;gap:6px}.topbar .brand small{font-size:5px}.topbar .brand-icon{width:29px;height:29px;font-size:18px}.topbar .session{min-width:104px}.session>span{font-size:8px}.session strong{font-size:16px}.session small{display:none}.game-menu summary{padding:8px;font-size:13px;gap:4px}.game-menu summary span{font-size:11px}.topbar>.stats{grid-template-columns:repeat(2,1fr);gap:7px;margin-top:5px}.stats article{min-height:80px}.stats article>strong{font-size:19px;margin:7px 0}.stats article>span{font-size:11px}.stats small{font-size:10px}.workspace{display:flex;gap:12px}.right-column{display:flex}.portfolio-panel{order:1}.advance-panel{order:2}.center-column{gap:12px}.story-body{padding:0 15px}.story-body p{font-size:13px;line-height:1.9}.story-hint{font-size:10px}.story-panel .panel-head{gap:5px}.story-badge{font-size:8px}.chapter-banner{display:none}.title-screen{min-height:0}.title-layout{margin-top:16px}.title-description{color:#668573}.title-illustration{right:-10px}.title-copy h1{font-size:55px}.title-halo{box-shadow:0 0 0 10px #e2ede766}.achievement-strip{margin-top:16px}.music-dock{padding:8px 12px;gap:8px}.bgm-copy strong{font-size:10px}.bgm-copy small{font-size:8px}.bgm-copy{min-width:105px}.volume-label{width:48px}.bgm-settings{font-size:10px}.title-background{object-position:65% 50%}.title-wash{background:linear-gradient(90deg,#f6fbf8f7,#f6fbf8cc 53%,#f1f7f366),linear-gradient(0deg,#f2f7f4,transparent 65%)}
}
@media(min-width:1100px) and (min-height:620px){.title-screen{grid-template-columns:minmax(0,1fr)}.title-screen>*{min-width:0}}
@media(min-width:1000px){
 #portfolioContent[data-view=orders] td:nth-child(2){grid-row:2;grid-column:1}#portfolioContent[data-view=orders] td:nth-child(2)::before{content:'方向 '}
 #portfolioContent[data-view=orders] td:nth-child(3){grid-row:2;grid-column:2}#portfolioContent[data-view=orders] td:nth-child(3)::before{content:'股數 '}
 #portfolioContent[data-view=orders] td:nth-child(4){grid-row:3;grid-column:1/4}#portfolioContent[data-view=orders] td:nth-child(4)::before{content:'成交 '}
 #portfolioContent[data-view=orders] td:nth-child(5){grid-row:1;grid-column:3;text-align:right}#portfolioContent[data-view=orders] td:nth-child(5)::before{content:none}
 .trade-panel{gap:6px 9px}.cost-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.cost-summary>div{display:block;font-size:9px}.cost-summary b{display:block;font-size:11px;margin-top:4px;white-space:nowrap}
 #portfolioContent[data-view=performance]{overflow:hidden}.performance{height:100%;padding:8px 10px;display:flex;flex-direction:column;gap:3px}.performance svg{flex:1;min-height:0;height:0;width:100%}.performance p{font-size:8px;line-height:1.3;margin:0;color:#6e8778;flex-shrink:0}.perf-key{font-size:9px;color:#647f6f;flex-shrink:0}.perf-key span:before{background:#4a8060}.perf-key span:last-child:before{background:#8872b7}
}
@media(min-width:1000px) and (max-height:760px){
 .watchlist .panel-head{padding:12px 10px}.watch-item{padding:10px}.sidebar-bottom{padding:10px 0}.sidebar-bottom .eyebrow,.sidebar-bottom>small{display:none}.rank-mark{width:32px;height:32px;font-size:20px;margin:6px auto}.sidebar-bottom h3{margin-bottom:5px}.sidebar-bottom p{font-size:9px}.stress-label{margin-top:8px}.stress-track{margin:7px 0 0}
}
@media(min-width:1000px) and (max-height:699px){
 #gameShell{grid-template-rows:64px minmax(0,1fr) 32px}main{padding:8px 12px;grid-template-rows:minmax(0,1fr);gap:0}main>footer{display:none}.workspace{gap:9px}.center-column{grid-template-rows:minmax(0,1fr) 160px;gap:9px}.right-column{grid-template-rows:auto minmax(90px,1fr) 92px;gap:8px}.trade-panel{min-height:max-content}.advance-panel{padding:7px 10px;gap:4px 8px}.advance-panel>button{min-height:30px;padding:6px 10px;font-size:12px}.skip-row button{padding:3px;font-size:10px}.story-panel{grid-template-rows:32px minmax(0,1fr) 22px}.story-body{padding-top:7px}.story-body h3{font-size:13px}.story-body p{font-size:11px;line-height:1.7}.speaker-row .avatar{width:58px;height:58px}
}
@media(prefers-reduced-motion:reduce){.title-character,.character-sprite{animation:none}}
.menu-utilities{display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu-utilities .menu-save{width:100%;gap:5px}.menu-utilities .menu-save>span{white-space:nowrap;font-size:8px}
.quick-qty #allQty[aria-pressed=true]{background:#e5f1ed;border-color:#77a38c;color:#315b46;font-weight:700}.quick-qty #allQty{white-space:nowrap}
.inline-highlights{display:block;width:100%;padding:10px 12px;text-align:left;font-size:11px;color:#426c57;background:#f0f5f2;border-bottom:1px solid #dce6df}
.highlight-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.highlight-counts>div{border:1px solid var(--line);border-radius:7px;padding:10px}.highlight-counts span{display:block;font-size:11px;color:var(--muted)}.highlight-counts b{display:block;font-size:17px;margin-top:5px;font-family:ui-monospace,monospace;color:var(--ink)}
.highlight-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.highlight-card{border:1px solid var(--line);border-radius:9px;padding:16px;background:#fff}.highlight-card>span{font-size:12px;color:var(--muted)}.highlight-card>strong{display:block;font:24px ui-monospace,monospace;margin:10px 0}.highlight-card>strong.highlight-empty{font:14px inherit;color:var(--muted);line-height:1.6}.highlight-card>b{display:block;font-size:13px;color:var(--ink)}.highlight-card>b small{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}.highlight-card p{font-size:11px;line-height:1.8!important;color:var(--muted)}.highlight-card>small{font-size:10px;line-height:1.8;color:var(--muted);display:block}.highlight-rules{font-size:11px;line-height:1.8;color:var(--muted);margin-top:13px!important}
.board-notice{background:#edf4f0;border:1px solid #d1e0d7;border-radius:7px;padding:11px 13px}.board-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.board-tabs button{padding:8px 12px;font-size:12px;border:1px solid #ceddd3;border-radius:5px}.board-tabs .selected{background:#e3eee7;color:#315e45;border-color:#85a88f}.board-table-wrap{overflow:auto}.board-table{width:100%;min-width:580px;border-collapse:collapse}.board-table th{font-size:10px;color:var(--muted);white-space:nowrap}.board-table td{font-size:11px;white-space:nowrap}.board-table td small{display:block;font-size:9px;color:var(--muted)}.board-table .board-empty{text-align:center;padding:25px 10px;color:var(--muted);font-size:12px;white-space:normal}
@media(min-width:1000px){.quick-qty #halfQty,.quick-qty #allQty{grid-column:auto}.quick-qty{grid-template-rows:1fr 1fr}.quick-qty button{padding:5px 2px}}
@media(max-width:650px){.highlight-counts{gap:6px}.highlight-counts>div{padding:8px}.highlight-counts span{font-size:9px}.highlight-counts b{font-size:14px}.highlight-grid{grid-template-columns:1fr;gap:10px}.highlight-card{padding:13px}.board-tabs button{font-size:11px;padding:8px 10px}.menu-utilities{gap:8px}.menu-utilities .menu-save{font-size:11px;padding:9px 2px}.menu-utilities .menu-save>span{font-size:7px}}

.dialog-heading{background:#fff;border-color:var(--line)}#utilityContent{color:#586f61}#utilityContent h3{color:#365a44}#utilityContent button.primary,.intro-actions>button{background:#416f53;color:#fff}.intro-content{background:#fbfdfb}.intro-content p{color:#596f61}.intro-art-shade{background:linear-gradient(0deg,#293c32bb,transparent 85%)}
.highlight-card>strong.highlight-empty{font-size:14px;font-family:inherit;font-weight:600}
