.stocks-desk { max-width:900px; margin:16px auto; }
.stocks-desk .win-titlebar { font-size:14px; }
.desk-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px 6px; }
.desk-heading h1 { margin:0; font:bold 28px Georgia,serif; }
.desk-heading p { margin:6px 0; font-size:13px; }
.local-note { margin:0 20px 12px; padding:8px 10px; border:1px dotted #777; font-size:12px; line-height:1.5; }
.stocks-tabs { display:flex; gap:5px; padding:0 20px; border-bottom:2px solid #808080; }
.stocks-tabs { flex-wrap:wrap; }
.stocks-tabs .win-btn { padding:9px 20px; font-size:14px; }
.stocks-tabs [aria-selected=true] { background:#fff; color:#000080; border-bottom-color:#fff; font-weight:bold; }
#stocks-status { padding:10px 20px; margin:0; font-size:12px; min-height:16px; }
.money-panel { padding:4px 20px 20px; font-size:14px; line-height:1.5; }
.money-panel h2 { font-size:19px; margin:0 0 6px; }
.money-panel>p { margin:8px 0 14px; }
.stock-warning { padding:10px 12px; background:#fff4cc; color:#4b3900; border:1px solid #9d7d25; margin:14px 0; font-size:13px; }
.stock-warning b { display:block; }
.stocks-quotes { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:16px 0; }
.stock-quote { border:2px inset #aaa; padding:12px; background:#f6f6f6; }
.stock-quote h3 { font-size:18px; margin:0 0 8px; }
.share-price { margin:4px 0; }.share-price strong { font-size:23px; }
.stock-quote small { display:block; }.stock-quote p { font-size:13px; margin:8px 0; }
.share-order { border-top:1px dotted #888; margin-top:8px; padding-top:8px; }
.share-order label { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; }
.share-order input { width:68px; padding:5px; }
.share-order .win-btn { width:100%; padding:8px; margin-top:8px; font:bold 13px Tahoma,Arial,sans-serif; white-space:normal; }
.stock-details { margin:12px 0 0; font-size:13px; }
summary { cursor:pointer; font-weight:bold; }
.stock-details p { margin:8px 0; }
.stocks-chart-wrap { margin-top:12px; padding:12px; border:2px inset #aaa; background:#080f14; color:#e4efdf; }
.chart-caption { display:flex; justify-content:space-between; font:12px 'Courier New',monospace; }
.chart-regron { color:#88dc84; }.chart-cola { color:#ffda50; }
#stocks-chart { width:100%; height:auto; display:block; }
.stock-price-history { margin-top:20px; }
.stock-price-history h3 { margin:0 0 10px; font-size:17px; }
.chart-company-buttons { display:flex; flex-wrap:wrap; gap:6px; }
.chart-company-buttons .win-btn { font: bold 12px Tahoma,Arial,sans-serif; padding:6px 10px; }
.chart-company-buttons [aria-pressed=true] { border-style:inset; background:#000080; color:#fff; }
.chart-color-key { display:inline-block; width:9px; height:9px; margin-right:6px; border:1px solid #333; }
.stocks-chart-scroll { overflow-x:auto; }
#stocks-chart { min-width:520px; font-family:'Courier New',monospace; }
.chart-grid { stroke:#355341; stroke-width:1; }
.chart-day-grid { stroke:#1c3026; stroke-width:1; }
.chart-tick { stroke:#adc1b2; }
.chart-axis,.chart-unit { fill:#c3d6cb; font-size:11px; }
.chart-weekday { fill:#91ab9c; font-size:10px; }
.chart-company-dim { opacity:.18; }
.chart-company-focus polyline { stroke-width:3; }
.chart-day-point { cursor:crosshair; }
.chart-day-point:focus { stroke:#fff; stroke-width:2; outline:none; }
#chart-point-detail { min-height:18px; border-top:1px dotted #355341; padding-top:8px; }
body.theme-halloween .chart-company-buttons [aria-pressed=true] { background:#ff8800 !important; color:#160b00 !important; border-style:inset !important; }
.stocks-help { font-size:12px; line-height:1.5; }
.wallet-balances { display:flex; gap:14px; flex-wrap:wrap; }
.wallet-total { border:2px inset #aaa; padding:14px 20px; min-width:150px; font-size:26px; font-weight:bold; }
.wallet-total small { font-size:13px; display:block; }
.money-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:12px 0; }
.money-actions .win-btn { text-decoration:none; font-size:13px; padding:8px 12px; }
.saving-steps { padding-left:24px; }.saving-steps li { margin:12px 0; padding-left:4px; }
.deposit-slip { border:1px dashed #888; margin-top:14px; padding:12px; font-size:13px; }
.deposit-slip button { margin:8px 4px 0 0; }
.deposit-slip h3 { margin:0 0 12px; font-size:18px; }
.savings-dates { display:grid; grid-template-columns:90px 1fr; gap:8px; }
.savings-dates dt { font-weight:bold; }.savings-dates dd { margin:0; }
.bank-active-notice { padding:10px; border:2px inset #aaa; font-weight:bold; }
.local-savings-tools { margin-top:16px; border-top:1px dotted #888; padding-top:12px; }
.desk-footer { border-top:1px solid #888; display:flex; gap:18px; padding:12px 20px; font-size:12px; }
.activity-box,.local-options { max-width:900px; margin:12px auto; box-sizing:border-box; padding:12px 18px; font-size:12px; }
.stocks-pad { padding:16px; }
.stocks-table { width:100%; border-collapse:collapse; font-size:12px; }
.stocks-table th,.stocks-table td { text-align:left; padding:8px; border-bottom:1px solid #888; }
.account-copy { max-width:540px; margin:24px auto; }.account-copy h1 { font-size:22px; }.account-copy p { font-size:13px; line-height:1.5; }.account-copy .local-note { margin:12px 0; }
.account-copy label { display:block; font-weight:bold; margin:12px 0 5px; }.account-copy input { width:100%; box-sizing:border-box; padding:7px; }
[hidden] { display:none !important; }
.stocks-desk button:disabled,.local-options button:disabled { opacity:.55; cursor:default; }
body.theme-halloween .desk-heading h1,body.theme-halloween .money-panel h2,body.theme-halloween .stock-quote h3 { color:#ffd578; }
body.theme-halloween .stock-quote,body.theme-halloween .wallet-total { border-color:#614076; background:#10091a; }
body.theme-halloween .stocks-tabs [aria-selected=true] { background:#ff8800 !important; color:#160b00 !important; }
body.theme-halloween #stocks-status { color:#c9e5bc; }
body.theme-halloween .stock-warning { background:#2a2110; color:#ffe3a0; border-color:#b18b3e; }
@media(max-width:600px) { .stocks-quotes { grid-template-columns:1fr; }.money-panel { padding:4px 12px 16px; }.desk-heading { padding:14px 12px 10px; }.stocks-tabs { padding:0 12px; }.stocks-tabs .win-btn { flex:1; padding:8px 4px; font-size:13px; }.local-note { margin:0 12px 12px; }.wallet-total { min-width:0; flex:1; padding:12px; }.stocks-table th,.stocks-table td { padding:5px; } }

#bank-amount { width:110px; padding:6px; font-size:15px; }
#bank-amount:disabled { color:#555; -webkit-text-fill-color:#555; opacity:1; }
body.theme-halloween #bank-amount:disabled { color:#e8daf8 !important; -webkit-text-fill-color:#e8daf8; background:#30243b !important; }
.bank-preview { padding:12px; border:2px inset #aaa; font-weight:bold; }
#retry-investment { margin:10px 20px; }

/* Investment desk: compact summaries, familiar borders, no extra libraries. */
.stocks-desk { max-width:1000px; }
.economy-notice { margin:6px 20px 16px; font-size:12px; line-height:1.5; }
.investment-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 20px 18px; }
.overview-cell { border:2px inset #aaa; padding:10px 12px; background:#f6f6f6; min-width:0; }
.overview-cell span,.overview-cell small { display:block; font-size:11px; line-height:1.4; }
.overview-cell strong { display:block; font-size:21px; margin:4px 0; overflow-wrap:anywhere; }
.investment-overview>p { grid-column:1/-1; }
.desk-status { display:flex; flex-wrap:wrap; justify-content:space-between; gap:2px 12px; padding:10px 20px; }
.desk-status #stocks-status { padding:0; flex:1 1 240px; }
.desk-status #stocks-updated { margin:0; font-size:11px; }
.section-heading,.company-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px; }
.section-heading h2 { margin:0; }
.stock-quote { padding:14px; }
.stock-quote h3 { margin:0; }
.share-price { margin:12px 0 8px; }
.share-price strong { font-size:30px; }
.share-price small { display:inline; margin-left:5px; font-size:11px; }
.price-change { font-size:11px; padding:3px 6px; border:1px solid #888; }
.price-up { color:#246321; }.price-down { color:#9d2828; }
.holding-summary { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px; border-bottom:1px dotted #888; padding-bottom:9px; }
.trade-stats { margin:10px 0; }
.trade-stats summary { font-size:12px; font-weight:normal; }
.activity-meter { height:6px; border:1px solid #888; background:#c38d50; margin:8px 0; }
.activity-meter span { display:block; height:100%; background:#579e51; }
.share-order .trade-buttons { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.order-hint { min-height:36px; font-size:12px; line-height:1.5; margin-bottom:0 !important; }
.stock-details { border-top:1px solid #888; padding-top:12px; margin-top:18px; }
.stock-details p { max-width:76ch; }
.savings-choices { display:flex; gap:8px; margin:16px 0; }
.savings-choices button { flex:1; padding:12px; font-size:20px; }
.savings-choices small { display:block; font-size:12px; margin-top:6px; }
.savings-choices [aria-pressed=true] { border-style:inset; }
.savings-progress { width:100%; height:18px; accent-color:#376e32; }
.deposit-slip { border:2px inset #aaa; }
.trade-review { position:fixed; inset:0; margin:auto; padding:0; box-sizing:border-box; width:min(480px,calc(100vw - 24px)); height:fit-content; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); overflow:hidden; color:#111; background:#d4d0c8; }
.trade-review[open] { display:flex; flex-direction:column; }
.trade-review > .win-titlebar { flex-shrink:0; }
.trade-review::backdrop { background:rgba(0,0,0,.65); }
.review-body { padding:16px; font-size:14px; min-height:0; overflow-y:auto; }
.review-body h3 { margin:0 0 14px; }
.review-totals { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:10px 12px; }
.review-totals dt,.review-totals dd { overflow-wrap:anywhere; }
.review-totals dd { margin:0; font-weight:bold; text-align:right; }
.review-body .money-actions { justify-content:flex-end; margin-bottom:0; }
#investment-pending { margin:4px 20px 16px; }
#investment-pending #retry-investment { margin:8px 0 0; }
.activity-box { max-width:1000px; }
.stocks-pad { overflow-x:auto; }
body.theme-halloween .overview-cell { background:#10091a; border-color:#614076; }
body.theme-halloween .price-up { color:#a6e699; }
body.theme-halloween .price-down { color:#ffb1a1; }
body.theme-halloween .trade-review { background:#160f22; color:#fff; border-color:#614076; }
@media(max-width:600px) {
  .investment-overview { grid-template-columns:1fr 1fr; margin:0 12px 14px; }
  .economy-notice { margin:6px 12px 14px; }
  .desk-status { padding:10px 12px; }
  .overview-cell strong { font-size:18px; }
  .review-totals { font-size:13px; }
  .stock-warning { font-size:12px; }
}

/* Seven server-recorded check-ins, readable without relying on color. */
.checkin-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin:10px 0 16px; }
.checkin-cell { border:2px inset #aaa; padding:7px 2px; text-align:center; background:#eee; color:#222; font-weight:bold; }
.checkin-cell small { display:block; font-size:10px; margin-top:4px; }
.checkin-done { background:#d4edc7; }
.checkin-missed { background:#eee0ce; }
.stock-notice { border:1px solid #888; padding:10px; font-size:13px; }
.price-cause { min-height:32px; }
.company-description { min-height:38px; }
.company-order { border-top:1px solid #888; margin-top:10px; padding-top:10px; }
.company-order>summary { display:inline-block; padding:5px 10px; border:2px outset #aaa; background:#d4d0c8; color:#111; font: bold 13px Tahoma,Arial,sans-serif; }
.company-order[open]>summary { border-style:inset; }
.company-order .price-cause { min-height:0; }
.stocks-quotes[data-view=regaron] { grid-template-columns:minmax(0,1fr); max-width:620px; margin:16px auto; }
.stock-details h4 { margin:14px 0 5px; font-size:14px; }
.stock-details .stocks-table { max-width:760px; margin:10px 0; }
body.theme-halloween .company-order>summary { background:#24182f; color:#ffd578; border-color:#614076; }
body.theme-halloween .checkin-cell { background:#24182f; color:#eee; border-color:#614076; }
body.theme-halloween .checkin-done { background:#244323; }
body.theme-halloween .checkin-missed { background:#493727; }
@media(max-width:420px) { .savings-choices button { padding:8px 4px; font-size:17px; } .checkin-grid { gap:2px; } .checkin-cell { font-size:12px; } .checkin-cell small { font-size:9px; } }
