/* Wall Street (#36): the Wall St tab, the portfolio and stocks, the bank, selling, deals and buyouts. Cards, tiles, chips,
   alerts and the Market rows (.mk-*) come from style.css; this adds what only Wall Street draws. */
.ws, .ws-stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.ws .good { color: var(--good); } .ws .bad { color: var(--stamp); } .ws .warn { color: var(--orange); } .ws .accent { color: var(--accent); }
.ws .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; }
.ws .num.big { font-size: 24px; } .ws .num.xl { font-size: 38px; line-height: 1.05; display: block; }
.ws .right { text-align: right; }
.ws-card { min-width: 0; }
.ws-tiles { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.ws-tiles.two { grid-template-columns: 1fr 1fr; }
.ws-tiles .stattile .val { font-size: 19px; white-space: normal; overflow-wrap: anywhere; }
.ws-tiles .stattile .lbl { font-size: 13px; }
.ws-h { margin: 0; font: 400 13px/1.2 system-ui, sans-serif; color: rgba(235,235,245,.6); text-transform: uppercase; }
.ws-sub { font-size: 17px; margin: 0; font-weight: 400; }
.ws-rule { border: 0; border-top: .5px solid rgba(243,235,216,.22); margin: 2px 0; width: 100%; }
.ws-block { display: grid; gap: 8px; }
.ws-rows { display: grid; gap: 8px; }
.ws-row { font-size: 15px; } .ws-row.bold span { font-weight: 600; }
.ws-row span { color: rgba(235,235,245,.8); }
.ws-flag { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: rgba(235,235,245,.7); }
.ws-flag.warn { color: var(--orange); } .ws-flag.bad { color: var(--stamp); } .ws-flag.good { color: var(--good); }
.ws-flag .sf { flex: none; margin-top: 1px; }
.ws-small { font-size: 14px; }
.ws-lock { display: inline-flex; align-items: center; gap: 4px; }

/* segmented picker */
.ws-seg { display: flex; padding: 2px; border-radius: 9px; background: rgba(118,118,128,.24); gap: 2px; }
.ws-seg button { flex: 1; min-width: 0; padding: 7px 4px; border-radius: 7px; font-size: 13px; font-weight: 500; text-align: center; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-seg button.on { background: rgba(120,120,135,.7); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ws-seg button:disabled { opacity: .45; }

/* buttons */
.ws .bigbtn.secondary-btn { background: transparent; color: var(--ink); border: 1px solid rgba(243,235,216,.5); }
.ws-ghost { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(243,235,216,.35); font-size: 14px; font-weight: 600; background: rgba(243,235,216,.07); text-align: center; }
.ws-ghost:disabled, .ws-danger:disabled, .ws-link:disabled { opacity: .4; }
.ws-danger { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px; border-radius: 12px; color: #FF453A; font-weight: 600; font-size: 16px; background: rgba(255,69,58,.1); }
.ws-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; font-size: 14px; font-weight: 600; color: var(--accent); justify-self: start; }
.ws-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: var(--accent); font-size: 16px; padding: 2px 0; }

/* the Wall St tab */
.ws-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ws-price .xl { display: inline; font-size: 32px; }
.ws-meter { position: relative; height: 10px; border-radius: 5px; background: rgba(243,235,216,.14); }
.ws-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--good); }
.ws-meter i.warn { background: var(--orange); } .ws-meter i.bad { background: var(--stamp); }
.ws-meter u { position: absolute; top: -1px; bottom: -1px; width: 2px; background: rgba(243,235,216,.6); text-decoration: none; }
.ws-reports { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ws-reports .yr { font-size: 12px; color: rgba(235,235,245,.6); }
.ws-reports .rep { font-size: 13px; padding: 3px 7px; border-radius: 999px; background: rgba(52,199,89,.25); color: var(--good); }
.ws-reports .rep.bad { background: rgba(232,85,62,.25); color: var(--stamp); }
.ws-open { display: block; width: 100%; text-align: left; }
.ws-tickers { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ws-ticker { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); font-size: 12px; flex: none; }
.ws-trend { width: 100%; height: 40px; display: block; margin-top: 6px; }

/* the portfolio */
.ws-sum { display: grid; gap: 4px; padding: 0 4px; }
.ws-move { display: flex; gap: 6px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.ws-move b { font-size: 15px; }
.ws-bp { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; color: rgba(235,235,245,.7); }
.ws-bp span { display: inline-flex; align-items: center; gap: 6px; } .ws-bp b { font-size: 16px; color: var(--ink); }
.ws-readout { align-items: flex-end; }
.ws-chart { width: 100%; min-width: 0; touch-action: pan-y; user-select: none; }
.ws-chart svg { display: block; }
.ws-list { display: grid; }
.ws-list > * + * { border-top: .5px solid rgba(243,235,216,.14); }
.ws-holding, .ws-quote, .ws-deal, .ws-story { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 0; min-width: 0; }
.ws-holding .who, .ws-quote .who, .ws-deal .who { display: grid; gap: 2px; min-width: 70px; flex: 1; }
.ws-quote .who .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-quote .who .own { color: var(--accent); }
.ws-holding .val, .ws-quote .px, .ws-deal .px { display: grid; justify-items: end; gap: 3px; min-width: 74px; }
.ws-holding .val b, .ws-quote .px b, .ws-deal .px b { font-size: 17px; }
.ws-spark { flex: none; display: block; margin: 0 auto; }
.ws-quote .pill { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(243,235,216,.2); color: var(--ink); }
.ws-quote .pill.good { background: var(--good); color: #000; } .ws-quote .pill.bad { background: var(--stamp); color: #000; }
.ws-alloc { display: grid; gap: 10px; }
.ws-slice { display: grid; gap: 6px; width: 100%; min-height: 44px; align-content: center; text-align: left; font-size: 13px; }
.ws-slice .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; }
.ws-slice .lbl { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.ws-slice .txt { color: rgba(235,235,245,.7); font-size: 13px; }
.ws-slice .track { display: block; height: 10px; border-radius: 5px; background: rgba(243,235,216,.14); overflow: hidden; }
.ws-slice .track i { display: block; height: 100%; min-width: 10px; border-radius: 5px; }

/* a stock */
.ws-stockhead { display: grid; gap: 8px; }
.ws-stockhead .name { color: rgba(235,235,245,.6); font-weight: 600; }
.ws-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ws-fig { display: grid; gap: 3px; min-width: 0; } .ws-fig b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-story { display: grid; gap: 2px; }
.ws-headline { font-size: 26px; margin: 4px 0; }
.ws-learn summary { cursor: pointer; font-size: 16px; padding: 2px 0; }
.ws-terms { display: grid; gap: 10px; padding: 10px 0 4px; }
.ws-tradebar { position: sticky; bottom: -8px; margin: 0 -16px -16px; padding: 10px 16px 14px; background: rgba(15,42,73,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 6px; }
.ws-tradebar .row { display: flex; gap: 10px; }
.ws-tradebar button { flex: 1; padding: 13px; border-radius: 999px; font-size: 17px; font-weight: 600; }
.ws-tradebar .sell { background: rgba(243,235,216,.14); border: 1px solid rgba(243,235,216,.3); color: var(--ink); }
.ws-tradebar button:disabled { opacity: .4; }
.ws-place { position: sticky; bottom: -8px; margin: 0 -16px -16px; padding: 10px 16px 14px; background: rgba(15,42,73,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ws-place.two { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }

/* bank, selling, deals */
.ws-loan { display: grid; gap: 8px; } .ws-loan + .ws-loan { border-top: .5px solid rgba(243,235,216,.22); padding-top: 12px; }
.ws-steps { display: flex; align-items: flex-start; gap: 4px; }
.ws-steps .st { flex: none; display: grid; justify-items: center; gap: 4px; width: 64px; font-size: 11px; color: rgba(235,235,245,.6); }
.ws-steps .st i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--round); font-style: normal; background: rgba(255,255,255,.15); }
.ws-steps .st.done i { background: var(--good); color: #000; } .ws-steps .st.now i { background: var(--accent); color: #000; } .ws-steps .st.now { color: var(--ink); font-weight: 700; }
.ws-steps u { flex: 1; height: 2px; margin-top: 10px; background: rgba(255,255,255,.15); } .ws-steps u.done { background: var(--good); }
.ws-route { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; padding: 4px 0; }
.ws-route .sf { flex: none; color: rgba(235,235,245,.6); margin-top: 2px; } .ws-route.on .sf { color: var(--accent); }
.ws-route span span { display: block; }
.ws-offer { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.ws-offer .kind { font-size: 12px; font-weight: 600; }
.ws-fair { align-items: baseline; }
.ws-saleline { display: flex; align-items: center; gap: 10px; }
.ws-fic { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 10px; background: rgba(243,235,216,.1); color: var(--accent); }
.ws-mark { display: inline-grid; place-items: center; flex: none; border-radius: 10px; line-height: 1; }
.ws-stockhead .name { display: flex; align-items: center; gap: 8px; }
.ws-stockhead .ws-mark { border-radius: 7px; }
.ws-hold { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; min-width: 0; }
.ws-hold .mono { flex: none; min-width: 52px; }
.ws-hold .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(235,235,245,.7); font-size: 13px; }
.ws-hold .num { flex: none; font-size: 13px; font-weight: 700; }
.ws-fic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ws-dealhead { display: flex; gap: 12px; align-items: center; } .ws-dealhead h3 { margin: 0; font-size: 26px; }
.ws-badgeline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ws-pitch { display: flex; gap: 6px; align-items: center; font-style: italic; }
.ws-stmt { display: grid; grid-template-columns: 1fr auto 44px; gap: 8px; align-items: baseline; font-size: 15px; }
.ws-stmt.bold span:first-child { font-weight: 600; }
.ws-stmt .note { text-align: right; }
.ws-deal .sf:last-child { color: rgba(235,235,245,.6); }

/* the board has voted */
.ws-kicker { background: var(--stamp); color: #fff; font: 700 13px/1 var(--din); letter-spacing: .12em; padding: 7px 10px; border-radius: 8px; justify-self: start; }
.ws-career { font-size: 34px; margin: 0; }
