/* Afterlife Stocks (public-site/stocks.js, page #stocks), simple version (owner 11/3: "Stocks looks mad confusing").
   Look pass 11/3 (owner: "the page looks like ass"): slim header, portfolio card, trading-app list (flag · name · 7-day
   sparkline · price · soft change pill · small Buy), refined sheet with a smooth chart. Prefix .stk-*.
   Green = up, red = down, always with ▲/▼ too. Phones: no sideways scroll, paged list, whole row taps, bottom sheet.
   The global button{min-height:40px; padding:0 18px; uppercase} is reset on every button here. */
/* Polish 11/7: gold is the brand accent (title, tabs, links, focus); green / red only ever mean up / down (and Buy / Sell).
   Graphite panels, no purple. Tap targets 40px+, inputs 16px on phones, sticky Buy / Sell bar in the sheet (.stk-dock). */
.stk, .stk-ov { --stk-up: #34d982; --stk-down: #ff6074; --stk-gold: #f0cd7c; --stk-gold-soft: rgba(240,205,124,.1); --stk-gold-edge: rgba(240,205,124,.3);
    --stk-dim: #8a93a2; --stk-mute: #6c7482; --stk-line: rgba(255,255,255,.065);
    --stk-card: linear-gradient(180deg, rgba(22,24,29,.96), rgba(13,14,17,.97)); --stk-edge: rgba(255,255,255,.08); }
.stk { display: grid; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 26px 24px 48px; color: #e9edf3; min-width: 0;
    font-family: "Barlow Condensed", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.stk > * { min-width: 0; }
.stk button, .stk-ov button { min-height: 0; padding: 0 !important; letter-spacing: normal; text-transform: none; font-family: "Barlow Condensed", system-ui, sans-serif; }
.stk.busy .stk-list { opacity: .7; }
.stk .up, .stk-ov .up { color: var(--stk-up); } .stk .down, .stk-ov .down { color: var(--stk-down); } .stk .flat, .stk-ov .flat { color: var(--stk-dim); }
.stk-eye { display: block; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--stk-mute); }
.stk-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 16px; text-align: center; color: var(--stk-dim); font-size: 16px; }
.stk-empty b { color: #fff; font-size: 19px; }
.stk-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(240,205,124,.2); border-top-color: var(--stk-gold); animation: stkSpin .8s linear infinite; display: inline-block; }
@keyframes stkSpin { to { transform: rotate(360deg); } }

.stk-btn, .stk .stk-btn, .stk-ov .stk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px !important; border-radius: 12px; cursor: pointer; border: 0;
    font: 800 16px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: #06140c;
    background: linear-gradient(180deg, #4fe597, #23b866); box-shadow: 0 8px 22px rgba(34,184,102,.22), inset 0 1px 0 rgba(255,255,255,.35); transition: filter .15s, transform .15s; }
.stk-btn:not(:disabled):hover { filter: brightness(1.08); }
.stk-btn:not(:disabled):active { transform: translateY(1px); }
.stk-btn.ghost { color: #dfe4ec; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.stk-btn.sell { color: #fff; background: linear-gradient(180deg, #ff7587, #df3550); box-shadow: 0 8px 22px rgba(223,53,80,.22), inset 0 1px 0 rgba(255,255,255,.3); }
.stk-btn.armed { animation: stkPulse .9s ease-in-out infinite; }
.stk-btn:disabled { opacity: .38; cursor: default; animation: none; box-shadow: none; }
.stk-btn.wide { width: 100%; height: 52px; border-radius: 14px; font-size: 19px !important; }
@keyframes stkPulse { 50% { filter: brightness(1.18); box-shadow: 0 0 0 4px rgba(255,255,255,.14); } }

/* ── header: icon tile, title, one sentence, 3 tiny steps ── */
.stk-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 2px 2px 0; }
.stk-logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--stk-gold);
    background: radial-gradient(90% 90% at 30% 20%, rgba(240,205,124,.2), rgba(240,205,124,.04) 70%), #0e0f12; border: 1px solid var(--stk-gold-edge);
    box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); }
.stk-logo svg { width: 26px; height: 26px; }
.stk-tt { display: grid; gap: 7px; min-width: 0; }
.stk-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.stk-title h1 { margin: 0; font: 800 32px/1 "Barlow Condensed", sans-serif; color: #fff; text-transform: none; letter-spacing: 0; }
.stk-title h1 em { font-style: normal; color: var(--stk-gold); }
.stk-pill { padding: 4px 8px; border-radius: 999px; font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ffd98a; background: rgba(240,205,124,.08); border: 1px solid rgba(240,205,124,.28); white-space: nowrap; }
/* info button: a plain lowercase "i" in a circle (house style) */
.stk .stk-help-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: #d7dde6; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); transition: background .15s, color .15s, border-color .15s; }
.stk .stk-help-btn:hover { color: var(--stk-gold); border-color: var(--stk-gold-edge); background: var(--stk-gold-soft); }
.stk-help-btn span { font: 700 19px/1 Georgia, "Times New Roman", serif; font-style: normal; text-transform: none; }
.stk-lead { margin: 0; max-width: 700px; font: 500 16px/1.4 "Barlow Condensed", sans-serif; color: #a9b2bf; }
.stk-steps { list-style: none; margin: 1px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.stk-steps li { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 "Barlow Condensed", sans-serif; color: #d3d9e2; white-space: nowrap; }
.stk-steps li + li::before { content: ""; width: 5px; height: 5px; margin: 0 6px 0 2px; border: solid var(--stk-mute); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.stk-steps b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; color: var(--stk-gold); background: var(--stk-gold-soft); box-shadow: inset 0 0 0 1px var(--stk-gold-edge); }

/* ── summary: portfolio card + hot today ── */
.stk-sum { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.stk-sum.solo { grid-template-columns: minmax(0, 1fr); }
.stk-port { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 20px 22px; border-radius: 18px; overflow: hidden;
    background: radial-gradient(70% 120% at 0% 0%, rgba(240,205,124,.06), transparent 60%), var(--stk-card); border: 1px solid var(--stk-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px rgba(0,0,0,.25); }
.stk-port-main { display: grid; align-content: center; gap: 0; min-width: 0; }
.stk-big { margin: 9px 0 9px; font: 800 44px/1 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-pl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font: 700 17px/1.2 "Barlow Condensed", sans-serif; }
.stk-pl i { font-style: normal; opacity: .85; }
.stk-pl em { font: 500 14px/1.2 "Barlow Condensed", sans-serif; font-style: normal; color: var(--stk-mute); }
.stk-port-side { display: grid; align-content: center; gap: 16px; padding-left: 24px; border-left: 1px solid var(--stk-line); min-width: 150px; }
.stk-port-side > div { display: grid; gap: 6px; min-width: 0; }
.stk-port-side b { font: 800 22px/1 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; }
.stk-port-side b.gold { color: var(--stk-gold); }
.stk-port-side span { font: 600 13px/1 "Barlow Condensed", sans-serif; }

.stk .stk-hot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eye eye" "name px" "spark spark"; align-items: center; gap: 10px 12px; width: 100%; padding: 16px 18px 12px !important;
    border-radius: 18px; cursor: pointer; color: #fff; text-align: left; overflow: hidden;
    background: radial-gradient(80% 110% at 100% 0%, rgba(240,205,124,.07), transparent 60%), var(--stk-card); border: 1px solid rgba(240,205,124,.2); transition: border-color .15s, transform .15s; }
.stk-hot:hover { border-color: rgba(240,205,124,.45); }
.stk-eye.hot { grid-area: eye; color: var(--stk-gold); }
.stk-hot-n { grid-area: name; display: flex; align-items: center; gap: 10px; min-width: 0; }
.stk-hot-n b { min-width: 0; font: 800 20px/1.1 "Barlow Condensed", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-hot-px { grid-area: px; display: grid; justify-items: end; gap: 5px; }
.stk-hot-px b { font: 700 18px/1 "Barlow Condensed", sans-serif; }
.stk-hot .stk-spark { grid-area: spark; width: 100%; height: 46px; }

/* change pill: arrow + % + soft color */
.stk-chg { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 7px; white-space: nowrap; font: 700 14px/1 "Barlow Condensed", sans-serif; }
.stk .stk-chg.up, .stk-ov .stk-chg.up { color: var(--stk-up); background: rgba(52,217,130,.12); }
.stk .stk-chg.down, .stk-ov .stk-chg.down { color: var(--stk-down); background: rgba(255,96,116,.12); }
.stk .stk-chg.flat, .stk-ov .stk-chg.flat { color: #b9c0cb; background: rgba(255,255,255,.07); }

/* sparkline */
.stk-spark { display: block; width: 120px; height: 34px; overflow: visible; }
.stk-spark.up { color: var(--stk-up); } .stk-spark.down { color: var(--stk-down); } .stk-spark.flat { color: #9aa3b1; }

/* flags */
.stk-flag { --fcx: color-mix(in srgb, var(--fc, #34d982) 70%, #8a93a3); position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; overflow: hidden;
    background: radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--fcx) 45%, transparent), transparent 75%), #0a0b0f; border: 1px solid color-mix(in srgb, var(--fcx) 40%, transparent); }
.stk-flag img { width: 90%; height: 90%; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.6)); }
.stk-flag b { font: 800 15px/1 "Barlow Condensed", sans-serif; color: #fff; text-transform: uppercase; }
.stk-flag.sm { width: 34px; height: 34px; border-radius: 9px; }
.stk-flag.big { width: 58px; height: 58px; border-radius: 15px; }

/* tabs: underline */
.stk-seg { display: flex; gap: 6px; border-bottom: 1px solid var(--stk-line); scroll-margin-top: calc(70px + var(--safe-top, 0px)); }
.stk-seg button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 44px; padding: 0 14px !important; border: 0; border-radius: 0; cursor: pointer; background: transparent;
    color: #858e9c; font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: color .15s; }
.stk-seg button:hover { color: #d7dde6; }
.stk-seg button.on { color: #fff; }
.stk-seg button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--stk-gold); box-shadow: 0 0 10px rgba(240,205,124,.45); }
.stk-seg button small { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: 0; color: #dfe4ec; background: rgba(255,255,255,.08); }
.stk-seg button.on small { color: #1d1504; background: var(--stk-gold); }

/* ── panel + market list ── */
.stk-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px; border-radius: 18px; min-width: 0; background: var(--stk-card); border: 1px solid var(--stk-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.stk-tools { display: flex; gap: 8px; padding: 6px 6px 10px; }
.stk-search { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.08); min-width: 0; transition: border-color .15s; }
.stk-search:focus-within { border-color: var(--stk-gold-edge); }
.stk-search svg { width: 17px; height: 17px; color: var(--stk-mute); flex: 0 0 auto; }
.stk-search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 600 16px/1 "Barlow Condensed", sans-serif; }
.stk-sel { flex: 0 0 auto; height: 40px; padding: 0 10px; border-radius: 11px; background: rgba(0,0,0,.32); color: #dfe4ec; border: 1px solid rgba(255,255,255,.08); font: 600 16px/1 "Barlow Condensed", sans-serif; cursor: pointer; }
.stk-sel option { background: #12151a; }
/* desktop columns: flag | name | 7-day line | price | today | buy */
.stk-colh, .stk-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 120px 110px 78px 64px; align-items: center; column-gap: 16px; }
.stk-colh { padding: 4px 14px 8px; font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--stk-mute); }
.stk-colh span:first-child { grid-column: 1 / span 2; }
.stk-colh span:nth-child(2) { text-align: center; }
.stk-colh span:nth-child(3), .stk-colh span:nth-child(4) { text-align: right; }
.stk-list { list-style: none; margin: 0; padding: 0; display: grid; }
.stk-row { position: relative; padding: 11px 14px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.stk-row + .stk-row::after { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--stk-line); }
.stk-row:hover, .stk-row:focus-visible { background: rgba(255,255,255,.04); outline: 0; }
.stk-row:hover::after, .stk-row:hover + .stk-row::after { opacity: 0; }
.stk-row.held::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--stk-gold); }
.stk-nm { display: grid; gap: 4px; min-width: 0; }
.stk-nm b { font: 700 18px/1.05 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-nm small { font: 600 13px/1.1 "Barlow Condensed", sans-serif; color: var(--stk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-nm small.mine { color: var(--stk-gold); } .stk-nm small.own { color: #9ec5ff; }
.stk-row .stk-spark { justify-self: center; }
.stk-row .stk-spark.none { width: 120px; height: 1px; background: var(--stk-line); }
.stk-px { display: contents; }
.stk-px > b { justify-self: end; font: 700 18px/1 "Barlow Condensed", sans-serif; color: #fff; }
.stk-px > .stk-chg, .stk-px > small { justify-self: end; }
.stk-plc { font: 700 15px/1 "Barlow Condensed", sans-serif; white-space: nowrap; }
.stk .stk-buy { justify-self: end; width: 60px; height: 36px; border-radius: 9px; cursor: pointer; font: 700 13px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .1em !important; text-transform: uppercase !important;
    color: var(--stk-up); background: rgba(52,217,130,.08); border: 1px solid rgba(52,217,130,.28); transition: background .15s, color .15s, border-color .15s; }
.stk-row:hover .stk-buy:not(.off), .stk-buy:not(.off):focus-visible { color: #06140c; background: var(--stk-up); border-color: var(--stk-up); }
.stk-buy.sell { color: var(--stk-down); background: rgba(255,96,116,.08); border-color: rgba(255,96,116,.3); }
.stk-row:hover .stk-buy.sell { color: #fff; background: var(--stk-down); border-color: var(--stk-down); }
.stk-buy.off { display: grid; place-items: center; color: rgba(255,255,255,.2); background: transparent; border-color: transparent; cursor: inherit; }
.stk-chev { display: none; }
.stk-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 0 6px; font: 600 15px/1 "Barlow Condensed", sans-serif; color: var(--stk-dim); }
.stk-pager .stk-btn { height: 40px; min-width: 84px; padding: 0 14px !important; font-size: 14px !important; }

.stk-note { margin: 4px 6px 8px; font: 500 15px/1.35 "Barlow Condensed", sans-serif; color: var(--stk-dim); }
.stk-note b { color: var(--stk-gold); }
.stk-note.bonus { display: flex; align-items: flex-start; gap: 10px; margin: 10px 6px 4px; padding: 12px 14px; border-radius: 12px; color: #c9c0a2; background: rgba(240,205,124,.05); border: 1px solid rgba(240,205,124,.16); }
.stk-h { margin: 18px 14px 6px; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--stk-mute); }
.stk-log { list-style: none; margin: 0 0 4px; padding: 0; display: grid; }
.stk-log li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; font: 500 15px/1.2 "Barlow Condensed", sans-serif; color: var(--stk-dim); }
.stk-log li + li::after { content: ""; position: absolute; left: 56px; right: 14px; top: 0; height: 1px; background: var(--stk-line); }
.stk-log li > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-log li > span b { color: #fff; font-weight: 700; }
.stk-log li > span small { display: block; margin-top: 3px; font-size: 13px; color: var(--stk-mute); }
.stk-log li > b { font: 700 16px/1 "Barlow Condensed", sans-serif; }
.stk-ti { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 12px/1 "Barlow Condensed", sans-serif; font-style: normal; color: #cfd6e0; background: rgba(255,255,255,.06); }
.stk-ti.sell { color: var(--stk-up); background: rgba(52,217,130,.12); }
.stk-ti:not(.buy):not(.sell) { color: var(--stk-gold); background: rgba(240,205,124,.12); }

/* top investors */
.stk-lb { list-style: none; margin: 0; padding: 0; display: grid; }
.stk-lb li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; }
.stk-lb li + li::after { content: ""; position: absolute; left: 58px; right: 14px; top: 0; height: 1px; background: var(--stk-line); }
.stk-lb li.me { background: var(--stk-gold-soft); box-shadow: inset 0 0 0 1px rgba(240,205,124,.18); }
.stk-rk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 14px/1 "Barlow Condensed", sans-serif; color: var(--stk-dim); background: rgba(255,255,255,.05); }
.stk-lb li.r1 .stk-rk { color: #2a1d00; background: linear-gradient(180deg, #ffe39a, #d6a43c); box-shadow: 0 0 16px rgba(240,205,124,.35); }
.stk-lb li.r2 .stk-rk { color: #1b1e23; background: linear-gradient(180deg, #eef1f5, #a9b1bd); }
.stk-lb li.r3 .stk-rk { color: #2a1405; background: linear-gradient(180deg, #f0b27c, #b06a36); }
.stk-lb-n { display: grid; gap: 3px; min-width: 0; }
.stk-lb-n b { font: 700 18px/1.1 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-lb-n b i { margin-left: 4px; padding: 2px 6px; border-radius: 6px; vertical-align: 2px; font: 700 10px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--stk-gold); background: var(--stk-gold-soft); }
.stk-lb-n small { font: 500 13px/1.1 "Barlow Condensed", sans-serif; color: var(--stk-dim); }
.stk-lb li > b { font: 700 18px/1 "Barlow Condensed", sans-serif; }

/* ── faction sheet (overlay on <body>) ── */
html.stk-lock, html.stk-lock body { overflow: hidden; }
.stk-ov { position: fixed; inset: 0; z-index: 1250; display: grid; place-items: center; padding: calc(16px + var(--safe-top, 0px)) 16px 16px; background: rgba(4,5,7,.8); color: #e9edf3;
    font-family: "Barlow Condensed", system-ui, sans-serif; font-variant-numeric: tabular-nums; animation: stkIn .2s ease; }
@keyframes stkIn { from { opacity: 0; } }
.stk-sheet { position: relative; display: grid; gap: 12px; width: min(540px, 100%); max-height: calc(100dvh - 32px - var(--safe-top, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 22px; border-radius: 22px;
    background: linear-gradient(180deg, #16181d, #0c0d10); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 80px rgba(0,0,0,.6);
    animation: stkUp .25s cubic-bezier(.2,.8,.2,1); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
@keyframes stkUp { from { transform: translateY(14px); opacity: .4; } }
.stk-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #cfd6e0; font-size: 14px; line-height: 1; }
.stk-x:hover { color: #fff; background: rgba(255,255,255,.1); }
.stk-sh-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding-right: 44px; }
.stk-sh-t { display: grid; gap: 7px; min-width: 0; }
.stk-sh-t > b { font: 700 22px/1 "Barlow Condensed", sans-serif; color: #e3e8ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-sh-px { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 800 30px/1 "Barlow Condensed", sans-serif; color: #fff; }
.stk-sh-px i { font: 500 14px/1 "Barlow Condensed", sans-serif; font-style: normal; color: var(--stk-mute); }
.stk-ch-cap { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.stk-ch-cap b { font: 700 14px/1 "Barlow Condensed", sans-serif; }
.stk-chart { position: relative; height: 190px; margin: 0 62px 22px 0; touch-action: pan-y; cursor: crosshair; }
.stk-chart.up { color: var(--stk-up); } .stk-chart.down { color: var(--stk-down); } .stk-chart.flat { color: #b7bfcc; }
.stk-chart.empty { display: grid; place-items: center; margin-right: 0; color: var(--stk-dim); font-size: 15px; cursor: default; border-radius: 14px; background: rgba(255,255,255,.02); }
.stk-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stk-chart svg path:last-of-type { filter: drop-shadow(0 4px 10px color-mix(in srgb, currentColor 45%, transparent)); }
.stk-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 2 6; }
.stk-yl span { position: absolute; left: calc(100% + 10px); transform: translateY(-50%); font: 600 12px/1 "Barlow Condensed", sans-serif; color: var(--stk-mute); white-space: nowrap; }
.stk-xl span { position: absolute; top: calc(100% + 8px); transform: translateX(-50%); font: 600 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: var(--stk-mute); white-space: nowrap; }
.stk-xl span:first-child { transform: none; } .stk-xl span:last-child { transform: translateX(-100%); }
.stk-now { position: absolute; left: 100%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: currentColor; pointer-events: none; box-shadow: 0 0 0 3px #10131a; }
.stk-now::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: stkPing 2s ease-out infinite; }
@keyframes stkPing { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.stk-cross { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(255,255,255,.3); pointer-events: none; }
.stk-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px #10131a, 0 0 14px currentColor; pointer-events: none; }
.stk-tip { position: absolute; top: -6px; transform: translateX(-50%); display: grid; gap: 3px; padding: 7px 10px; border-radius: 10px; pointer-events: none; white-space: nowrap; text-align: center;
    background: rgba(10,12,16,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 26px rgba(0,0,0,.5); }
.stk-tip b { font: 800 16px/1 "Barlow Condensed", sans-serif; color: #fff; }
.stk-tip span { font: 500 12px/1 "Barlow Condensed", sans-serif; color: var(--stk-dim); }
.stk-cross[hidden], .stk-dot[hidden], .stk-tip[hidden] { display: none; }
.stk-why { display: grid; gap: 10px; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--stk-line); }
.stk-why-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stk-why-h b { font: 700 15px/1 "Barlow Condensed", sans-serif; white-space: nowrap; }
.stk-why-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stk-why-g span { display: grid; gap: 4px; padding: 9px 11px; border-radius: 10px; background: rgba(0,0,0,.28); min-width: 0; }
.stk-why-g b { font: 800 19px/1 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-why-g small { font: 500 13px/1 "Barlow Condensed", sans-serif; color: var(--stk-dim); }
.stk-own { margin: 0; padding: 11px 14px; border-radius: 12px; background: rgba(240,205,124,.06); border: 1px solid rgba(240,205,124,.22); font: 500 16px/1.3 "Barlow Condensed", sans-serif; color: #c9d0da; }
.stk-own b { color: #fff; } .stk-own span { font-weight: 700; }
.stk-trade { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.07); }
.stk-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); }
.stk-sides button { height: 40px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: #9aa3b0; font: 700 15px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .1em !important; text-transform: uppercase !important; }
.stk-sides button.on.buy { color: #06140c; background: var(--stk-up); } .stk-sides button.on.sell { color: #fff; background: var(--stk-down); }
.stk-ask { font: 600 15px/1 "Barlow Condensed", sans-serif; color: #cfd6e0; }
.stk-qty { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; }
.stk-step { display: grid; place-items: center; height: 48px; border-radius: 12px; cursor: pointer; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; font: 600 24px/1 system-ui, sans-serif !important; transition: background .15s; }
.stk-step:hover { background: rgba(255,255,255,.08); }
.stk-qty input { width: 100%; min-width: 0; height: 48px; padding: 0 12px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); outline: 0; color: #fff; text-align: center; font: 800 26px/1 "Barlow Condensed", sans-serif; -moz-appearance: textfield; transition: border-color .15s; }
.stk-qty input:focus { border-color: var(--stk-gold-edge); }
.stk-qty input::-webkit-outer-spin-button, .stk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stk-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stk-quick button { height: 40px; border-radius: 9px; cursor: pointer; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #cfd6e0; font: 700 14px/1 "Barlow Condensed", sans-serif !important; letter-spacing: .06em !important; text-transform: uppercase !important; transition: background .15s, color .15s; }
.stk-quick button:hover { color: #fff; background: rgba(255,255,255,.08); }
.stk-pay { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--stk-line); font: 600 17px/1 "Barlow Condensed", sans-serif; color: #cfd6e0; }
.stk-pay b { font: 800 30px/1 "Barlow Condensed", sans-serif; color: #fff; }
.stk-fee { margin: -5px 0 0; text-align: right; font: 500 13px/1.2 "Barlow Condensed", sans-serif; color: var(--stk-mute); }
.stk-trade > .stk-fee:last-child { text-align: center; margin: -2px 0 0; }
.stk-bonus { margin: 0; padding: 9px 12px; border-radius: 10px; background: rgba(240,205,124,.06); border: 1px solid rgba(240,205,124,.14); font: 500 15px/1.3 "Barlow Condensed", sans-serif; color: #d6cca9; }
.stk-bonus b { color: var(--stk-gold); }
.stk-block { margin: 0; padding: 9px 12px; border-radius: 10px; background: rgba(255,190,90,.06); font: 600 15px/1.3 "Barlow Condensed", sans-serif; color: #ffcf7a; }
.stk-bonus[hidden], .stk-block[hidden] { display: none; }
.stk-sheet.help h2 { margin: 0; padding-right: 46px; font: 800 26px/1.05 "Barlow Condensed", sans-serif; color: #fff; text-transform: none; letter-spacing: 0; }
.stk-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: stkr; }
.stk-rules li { position: relative; padding: 11px 14px 11px 46px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--stk-line); font: 500 16px/1.35 "Barlow Condensed", sans-serif; color: #c3cad5; counter-increment: stkr; }
.stk-rules li::before { content: counter(stkr); position: absolute; left: 13px; top: 11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 12px/1 "Barlow Condensed", sans-serif; color: var(--stk-gold); background: var(--stk-gold-soft); box-shadow: inset 0 0 0 1px var(--stk-gold-edge); }

/* ── stk4: news, fundamentals, dollar buy box, "How to make money" ── */
.stk .gold, .stk-ov .gold { color: var(--stk-gold); }
.stk-steps-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.stk .stk-learn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px !important; border-radius: 999px; cursor: pointer; white-space: nowrap;
    font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #ffe4a3; background: var(--stk-gold-soft); border: 1px solid var(--stk-gold-edge); transition: background .15s, border-color .15s; }
.stk .stk-learn:hover { background: rgba(240,205,124,.16); border-color: rgba(240,205,124,.6); }
.stk-learn-ar { font-size: 20px; line-height: 1; margin-top: -2px; color: var(--stk-gold); }
.stk-strip { display: grid; gap: 4px; padding: 12px 14px 6px; border-radius: 18px; background: var(--stk-card); border: 1px solid var(--stk-edge); min-width: 0; }
.stk-strip-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stk .stk-link { height: 40px; margin: -8px -6px -8px 0; padding: 0 6px !important; border: 0; background: transparent; cursor: pointer; color: var(--stk-gold); font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; }
.stk .stk-link:hover { color: #ffe4a3; }
.stk-nl { list-style: none; margin: 0; padding: 0; display: grid; min-width: 0; }
.stk-ni { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 9px 4px; border-radius: 10px; min-width: 0; }
.stk-ni + .stk-ni::after { content: ""; position: absolute; left: 38px; right: 4px; top: 0; height: 1px; background: var(--stk-line); }
.stk-ni.tap { cursor: pointer; transition: background .15s; }
.stk-ni.tap:hover, .stk-ni.tap:focus-visible { background: rgba(255,255,255,.035); outline: 0; }
.stk-ni-ic { font-size: 17px; line-height: 22px; text-align: center; }
.stk-ni-t { min-width: 0; font: 500 16px/1.32 "Barlow Condensed", sans-serif; color: #c4cbd6; overflow-wrap: anywhere; }
.stk-ni-t b { color: #fff; font-weight: 700; }
.stk-ni-t em { font-style: normal; font-weight: 800; }
.stk-ni-t small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-top: 3px; font: 500 13px/1.2 "Barlow Condensed", sans-serif; color: var(--stk-mute); }
.stk-ni-t small i { font-style: normal; }
.stk-since { font-weight: 700; white-space: nowrap; }
.stk-on { font-style: normal; color: var(--stk-up); white-space: nowrap; }
.stk-on::before, .stk-dotg { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--stk-up); box-shadow: 0 0 8px rgba(52,217,130,.8); vertical-align: 1px; }
.stk-seg .sm { display: none; }

/* fundamentals card in the faction sheet */
.stk-fund { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid var(--stk-line); min-width: 0; }
.stk-fund-line { margin: -2px 0 0; font: 700 18px/1.25 "Barlow Condensed", sans-serif; }
.stk-ft { width: 100%; border-collapse: collapse; font: 500 15px/1.2 "Barlow Condensed", sans-serif; color: #c4cbd6; table-layout: fixed; }
.stk-ft th, .stk-ft td { padding: 7px 4px; text-align: right; border-top: 1px solid var(--stk-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-ft thead th { border-top: 0; padding-top: 0; font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--stk-mute); }
.stk-ft th:first-child { text-align: left; width: 34%; font-weight: 600; color: #dfe4ec; }
.stk-ft thead th:first-child { width: 34%; }
.stk-ft th:nth-child(4), .stk-ft td:nth-child(4) { width: 26px; }
.stk-ft td b { color: #fff; font-weight: 800; }
.stk-ft td[colspan] { text-align: right; font-weight: 600; }
.stk-ft td i { font-style: normal; font-weight: 800; }
.stk-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; height: 74px; padding-top: 4px; }
.stk-days span { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 5px; min-width: 0; }
.stk-days i { align-self: end; display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #4fe597, rgba(52,217,130,.35)); }
.stk-days span.old i { background: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 3px, rgba(255,255,255,.08) 3px 6px); }
.stk-days span.now i { background: linear-gradient(180deg, #f0cd7c, rgba(240,205,124,.35)); }
.stk-days small { font: 600 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; text-align: center; color: var(--stk-mute); white-space: nowrap; overflow: hidden; }
.stk-days-k, .stk-fund-rule { margin: 0; font: 500 13.5px/1.3 "Barlow Condensed", sans-serif; color: var(--stk-mute); }
.stk-fund-rule { padding-top: 9px; border-top: 1px solid var(--stk-line); color: #9aa3b1; }
.stk-tip2 { margin: 0; padding: 9px 12px; border-radius: 10px; font: 500 15px/1.3 "Barlow Condensed", sans-serif; color: #d6dce5; background: rgba(0,0,0,.25); }
.stk-sh-news { display: grid; gap: 2px; min-width: 0; }
.stk-sh-news .stk-ni-t { font-size: 15px; }

/* buy box in dollars */
.stk-amt { position: relative; display: block; min-width: 0; }
.stk-amt span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 800 22px/1 "Barlow Condensed", sans-serif; color: var(--stk-dim); pointer-events: none; }
.stk-amt input { width: 100%; min-width: 0; height: 48px; padding: 0 12px 0 28px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); outline: 0; color: #fff; text-align: center; font: 800 26px/1 "Barlow Condensed", sans-serif; transition: border-color .15s; }
.stk-amt input:focus { border-color: var(--stk-gold-edge); }
.stk-conv { margin: -2px 0 0; text-align: center; font: 500 15px/1.2 "Barlow Condensed", sans-serif; color: var(--stk-dim); }
.stk-conv b { color: #fff; }
.stk-what { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; align-items: baseline; padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.03); border: 1px solid var(--stk-line);
    font: 500 15px/1.2 "Barlow Condensed", sans-serif; color: #b9c1cd; }
.stk-what b { font: 800 17px/1 "Barlow Condensed", sans-serif; text-align: right; white-space: nowrap; }
.stk-what[hidden] { display: none; }

/* How to make money */
.stk-hh { margin: 6px 0 -2px; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--stk-gold); }
.stk-p { margin: 0; font: 500 16px/1.4 "Barlow Condensed", sans-serif; color: #c3cad5; }
.stk-p b { color: #fff; }
.stk-score { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stk-score li { padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--stk-line); font: 500 15px/1.25 "Barlow Condensed", sans-serif; color: #c3cad5; }
.stk-score b { margin-right: 3px; font-size: 18px; color: var(--stk-gold); }
.stk-ex { display: grid; gap: 8px; padding: 13px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.07); }
.stk-ex p { margin: 0; font: 500 15.5px/1.4 "Barlow Condensed", sans-serif; color: #c3cad5; }
.stk-ex p b { color: #fff; }
.stk-ex .stk-ex-r { margin: -2px 0 4px; font: 800 20px/1.2 "Barlow Condensed", sans-serif; }
.stk-ex .stk-ex-r .gold { display: block; font: 600 15px/1.3 "Barlow Condensed", sans-serif; }

/* sticky Buy / Sell bar: stays at the bottom of the sheet until the trade box scrolls into view */
.stk-dock { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; gap: 8px; margin: 0 -22px -22px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(12,13,16,.97); border-top: 1px solid rgba(255,255,255,.07); box-shadow: 0 -14px 24px rgba(0,0,0,.35); }
.stk-dock[hidden] { display: none; }
.stk-ov .stk-dock .stk-btn { flex: 1 1 0; height: 48px; border-radius: 14px; font-size: 17px !important; }

@media (prefers-reduced-motion: reduce) { .stk-btn.armed, .stk-now::after, .stk-sheet { animation: none; } }

/* ── tablet: drop the separate Today column into the price cell ── */
@media (max-width: 900px) {
    .stk-colh, .stk-row { grid-template-columns: 40px minmax(0, 1fr) 96px 104px 60px; column-gap: 12px; }
    .stk-colh span:nth-child(4) { display: none; }
    .stk-px { display: grid; justify-items: end; gap: 5px; }
    .stk-row .stk-spark, .stk-row .stk-spark.none { width: 96px; }
}

/* ── phone ── */
@media (max-width: 640px) {
    /* the page can sit under the fixed phone top bar (54px), like the other pages' hero art: clear it */
    .stk { gap: 14px; padding: calc(64px + var(--safe-top, 0px)) 12px 28px; }
    /* logo · title · ? on one line, then the sentence and steps full width */
    .stk-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; }
    .stk-logo { width: 42px; height: 42px; border-radius: 13px; } .stk-logo svg { width: 22px; height: 22px; }
    .stk-tt { display: contents; }
    .stk-title { grid-column: 2; grid-row: 1; }
    .stk-title { gap: 4px 8px; }
    .stk-title h1 { font-size: 26px; }
    .stk-pill { padding: 3px 6px; font-size: 10px; letter-spacing: .1em; }
    .stk-lead, .stk-steps { grid-column: 1 / -1; }
    .stk .stk-help-btn { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
    .stk-lead { font-size: 15px; }
    .stk-steps li { font-size: 13px; }
    .stk-sum { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .stk-port { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
    .stk-big { font-size: 38px; margin: 8px 0 7px; }
    .stk-pl { font-size: 16px; } .stk-pl em { font-size: 13px; }
    .stk-port-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--stk-line); min-width: 0; }
    .stk-port-side b { font-size: 20px; }
    .stk .stk-hot { grid-template-columns: minmax(0, 1fr) 64px auto; grid-template-areas: "eye eye eye" "name spark px"; gap: 9px 12px; padding: 13px 14px !important; border-radius: 16px; }
    .stk-hot .stk-spark { height: 28px; }
    .stk-hot-n b { font-size: 18px; }
    .stk-hot-px b { font-size: 16px; }
    .stk-seg { gap: 0; }
    .stk-seg button { flex: 1 1 0; min-width: 0; padding: 0 4px !important; font-size: 14px; letter-spacing: .07em; gap: 5px; }
    .stk-seg button.on::after { left: 6px; right: 6px; }
    .stk-panel { padding: 6px; border-radius: 16px; }
    .stk-tools { padding: 6px 4px 8px; gap: 6px; }
    /* 16px so iOS doesn't zoom in on tap */
    .stk-search { height: 44px; }
    .stk-sel { max-width: 150px; height: 44px; padding: 0 6px; font-size: 16px; }
    .stk-colh { display: none; }
    .stk-row { grid-template-columns: 36px minmax(0, 1fr) 52px 76px 8px; column-gap: 10px; padding: 10px 10px; }
    .stk-row + .stk-row::after { left: 10px; right: 10px; }
    .stk-row .stk-flag { width: 36px; height: 36px; border-radius: 10px; }
    .stk-row .stk-spark, .stk-row .stk-spark.none { width: 52px; height: 26px; }
    .stk-nm b { font-size: 17px; } .stk-nm small { font-size: 12.5px; }
    .stk-px { gap: 4px; } .stk-px > b { font-size: 16px; }
    .stk-px .stk-chg { height: 20px; padding: 0 6px; font-size: 12.5px; }
    .stk-plc { font-size: 13.5px; }
    .stk-buy, .stk-buy.off { display: none; }
    .stk-chev { display: block; width: 7px; height: 7px; border: solid #5d6572; border-width: 2px 2px 0 0; transform: rotate(45deg); justify-self: end; }
    .stk-note.bonus { margin: 8px 4px 2px; font-size: 14.5px; }
    .stk-log li { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 9px 10px; font-size: 14.5px; }
    .stk-log li + li::after { left: 48px; right: 10px; }
    .stk-ti { width: 28px; height: 28px; }
    .stk-log li > b { font-size: 15px; }
    .stk-h { margin: 16px 10px 4px; }
    .stk-lb li { padding: 10px 10px; gap: 12px; }
    .stk-lb li + li::after { left: 52px; right: 10px; }
    .stk-lb-n b, .stk-lb li > b { font-size: 17px; }

    .stk-ov { place-items: end stretch; padding: calc(10px + var(--safe-top, 0px)) 0 0; }
    .stk-sheet { width: 100%; max-height: calc(94dvh - var(--safe-top, 0px)); padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0; border-bottom: 0; gap: 11px; animation-name: stkSheetUp; }
    .stk-sheet::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255,255,255,.16); }
    @keyframes stkSheetUp { from { transform: translateY(40px); } }
    .stk-x { top: 14px; right: 14px; }
    .stk-flag.big { width: 50px; height: 50px; border-radius: 13px; }
    .stk-sh-t > b { font-size: 19px; } .stk-sh-px { font-size: 26px; }
    .stk-chart { height: 150px; margin-right: 56px; }
    .stk-why-g span { padding: 8px 9px; } .stk-why-g b { font-size: 17px; }
    .stk-own { font-size: 15px; }
    .stk-trade { padding: 13px; }
    .stk-pay b { font-size: 27px; }
    /* stk4 */
    .stk-steps-row { gap: 10px; grid-column: 1 / -1; }
    .stk .stk-learn { height: 40px; font-size: 15px; }
    .stk-dock { margin: 0 -16px calc(-18px - env(safe-area-inset-bottom, 0px)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); bottom: calc(-18px - env(safe-area-inset-bottom, 0px)); }
    .stk-strip { padding: 10px 10px 4px; border-radius: 16px; }
    .stk-ni { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 8px 2px; }
    .stk-ni + .stk-ni::after { left: 32px; right: 2px; }
    .stk-ni-t { font-size: 15px; }
    .stk-seg button { font-size: 13.5px; letter-spacing: .05em; }
    .stk-seg .lg { display: none; } .stk-seg .sm { display: inline; }
    .stk-fund { padding: 12px; }
    .stk-fund-line { font-size: 17px; }
    .stk-ft { font-size: 14.5px; }
    .stk-ft th:first-child, .stk-ft thead th:first-child { width: 31%; }
    .stk-ft thead th { font-size: 10px; letter-spacing: .08em; }
    .stk-days { gap: 4px; height: 66px; }
    .stk-days small { font-size: 10px; letter-spacing: 0; }
    .stk-score { grid-template-columns: minmax(0, 1fr); }
    .stk-amt input { font-size: 24px; }
    /* polish 11/7: long faction names wrap to 2 lines instead of "Northern …"; steps lose the arrows so a wrap never starts with one */
    .stk-row .stk-nm b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.08; overflow-wrap: anywhere; }
    .stk-steps { gap: 8px 14px; }
    .stk-steps li + li::before { display: none; }
}
/* small phones (360–380px): a little more room for the name */
@media (max-width: 380px) {
    .stk { padding-left: 10px; padding-right: 10px; }
    .stk-row { grid-template-columns: 34px minmax(0, 1fr) 44px 72px 7px; column-gap: 8px; padding: 10px 8px; }
    .stk-row .stk-flag { width: 34px; height: 34px; }
    .stk-row .stk-spark, .stk-row .stk-spark.none { width: 44px; }
    .stk-nm b { font-size: 16px; }
    .stk-big { font-size: 34px; }
}
