/* ------------------------------------------------------------------ */
/* SolEntry — ONE theme everywhere: the red login page theme.        */
/* Red/gold neon (DogeWifHat login look) on every page — dashboard,  */
/* bots, wallet, P&L, settings, auth, popups and HUD. Green/red are  */
/* used ONLY for data (gains/losses, 24h change), never for chrome.  */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; background: radial-gradient(120% 60% at 50% 0%, #2a0705 0%, #0a0505 55%, #050303 100%); color: #e8ecf1; }
a { color: #ffd700; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #1a0805; border-bottom: 2px solid #ffb300; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; row-gap: 8px; }
.top-left { display: flex; align-items: center; gap: 10px; }
/* Page ID: the page's number in the top-left corner, same spot on
   every page. Small gold pill on black, readable on a phone. */
.page-id { font-size: 11px; font-weight: 700; color: #ffd700; background: #000; border: 1px solid #ffb300; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
/* Page picker: the Page N chip is a clickable button (a <details>
   dropdown, so it needs no JS and works on the login page too).
   Pressing it lists every page by number + name; tapping an entry
   loads that page. */
.page-id-picker { position: relative; }
.page-id-picker summary { list-style: none; cursor: pointer; }
.page-id-picker summary::-webkit-details-marker { display: none; }
.page-picker { position: absolute; top: calc(100% + 6px); left: 0; background: #160b08; border: 1px solid #ffb300; border-radius: 8px; min-width: 230px; max-height: 70vh; overflow-y: auto; z-index: 50; padding: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
.page-picker-item { display: block; padding: 8px 10px; color: #ffd700; text-decoration: none; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.page-picker-item:hover, .page-picker-item:focus { background: #2a0f08; }
/* Slim link to the Trenches page on the Bots page — a plain link,
   not a card, so it can never be mistaken for the Trenches bot. */
.trenches-link { display: block; color: #ffd700; text-decoration: none; font-size: 14px; padding: 6px 2px; }
.brand { font-weight: 900; font-style: italic; font-size: 18px; text-decoration: none; background: linear-gradient(100deg, #ff1e14 0%, #ff5e1f 35%, #ffb300 65%, #ffd700 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-link { color: #b9a99a; text-decoration: none; font-size: 14px; }
.wallet-menu { position: relative; }
.wallet-btn { cursor: pointer; background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); color: #1a0505; border: 2px solid #ffcf3d; border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 700; list-style: none; }
.wallet-btn::-webkit-details-marker { display: none; }
.wallet-drop { position: absolute; right: 0; top: 40px; background: #160b08; border: 2px solid #ffb300; border-radius: 10px; min-width: 170px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.wallet-drop a { display: block; padding: 9px 10px; color: #e8ecf1; text-decoration: none; border-radius: 6px; }
.wallet-drop a:hover { background: #241503; }
.wrap { max-width: 480px; margin: 0 auto; padding: 16px 12px 40px; }
@media (min-width: 900px) { .wrap { max-width: 860px; } }
h1 { font-size: 24px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 0 0 8px; }
h3 { font-size: 15px; margin: 14px 0 6px; }
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { font-size: 30px; }
.sub { color: #b9a99a; }
.cards { display: grid; gap: 12px; margin: 12px 0; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #160b08; border: 2px solid #ffb300; border-radius: 14px; padding: 16px; margin: 12px 0; box-shadow: 0 0 16px rgba(255, 120, 0, .25); }
.card.narrow { max-width: 420px; margin: 12px auto; }
.muted { color: #b9a99a; }
.small { font-size: 12px; }
.big-num { font-size: 26px; font-weight: 800; margin: 6px 0; color: #ffd700; }
/* Live feed: the status pill in the topbar (source + freshness of
   the last tick), and stale ticks shown dimmed, never as fresh. */
.live-status { font-size: 12px; font-weight: 700; color: #b9a99a; white-space: nowrap; }
.live-status.live-up { color: #4ade80; }
.live-status.live-down { color: #fbbf24; }
.live-stale { opacity: .55; }
.addr { word-break: break-all; background: #000; border: 2px solid #ffb300; border-radius: 8px; padding: 10px; font-family: monospace; font-size: 13px; }
/* Plain refusal (coin detail Send/Receive when the coin is not a
   Solana asset): red-bordered box, impossible to mistake for a form. */
.refusal { background: #2a0705; border: 2px solid #f87171; border-radius: 8px; padding: 12px; color: #fecaca; }
.btn { display: inline-block; background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); color: #1a0505; border: 2px solid #ffcf3d; border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid #ffb300; color: #ffd700; }
.btn.danger { background: #dc2626; margin-top: 12px; }
.btn.big { padding: 12px 22px; font-size: 16px; }
.btn.small { padding: 6px 10px; font-size: 13px; }
label { display: block; margin: 12px 0; font-size: 14px; }
input[type=text], input[type=password], input[type=number], select { width: 100%; padding: 10px; margin-top: 4px; background: #000; color: #fff; border: 2px solid #ffb300; border-radius: 8px; font-size: 15px; }
input[type=text]:focus, input[type=password]:focus, input[type=number]:focus, select:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 12px rgba(255, 200, 0, .4); }
.inline { display: inline; }
.inline input, .inline select { width: auto; }
.flash { background: #3f1d1d; border: 1px solid #e62e1b; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #4a1f0d; }
.chat-log { max-height: 260px; overflow-y: auto; background: #000; border: 2px solid #ffb300; border-radius: 8px; padding: 10px; margin: 8px 0; }
.chat-log p { margin: 6px 0; font-size: 14px; }
#chat-form { display: flex; gap: 8px; }
#chat-form input { flex: 1; }
.foot { text-align: center; color: #b9a99a; font-size: 12px; padding: 16px; }

/* Data colours only: gains green, losses red. Chrome never uses them. */
.up { color: #4ade80; font-weight: 700; }
.down { color: #f87171; font-weight: 700; }

/* Silent trading badges + explanation box */
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.badge.silent-on { background: #3a2a00; color: #ffd700; border: 1px solid #ffb300; }
.badge.silent-off { background: #1a0805; color: #b9a99a; border: 1px solid #4a1f0d; }
.silent-box { border: 1px solid #ffb300; border-radius: 10px; padding: 10px 12px; margin: 12px 0; background: #1a0805; }
.silent-box label { font-weight: 700; }

/* Header balance chip + Paper/Devnet switch (top corner). Plain
   form + button, no JavaScript, so it works in any browser. */
.mode-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.balance-chip { font-size: 14px; background: #1a0805; border: 1px solid #ffb300; border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.balance-chip strong { color: #ffd700; }
.mode-switch { display: inline-flex; background: #000; border: 1px solid #ffb300; border-radius: 999px; padding: 2px; cursor: pointer; }
.mode-switch .mode-opt { padding: 5px 10px; border-radius: 999px; font-size: 13px; color: #b9a99a; }
.mode-switch .mode-opt.on { background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); color: #1a0505; font-weight: 700; }
@media (max-width: 560px) {
  .topbar { padding: 8px 10px; }
  .brand { font-size: 16px; }
  .nav-link { font-size: 13px; }
  .balance-chip { font-size: 13px; padding: 6px 10px; }
  .mode-switch .mode-opt { padding: 4px 8px; font-size: 12px; }
}

/* ------------------------------------------------------------------ */
/* App shell: one screen, HUD at the bottom. The page itself never
   scrolls — the content area scrolls internally, and the HUD stays
   on screen so the user can always change the page or the mode.   */
/* ------------------------------------------------------------------ */
body.app-shell { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
body.app-shell .wrap { flex: 1 1 auto; overflow-y: auto; padding-bottom: 84px; }
.mode-banner { background: #160b08; border: 1px solid #ffb300; border-radius: 999px; padding: 8px 14px; font-size: 14px; margin: 4px 0 10px; display: inline-block; }
.mode-banner strong { color: #ffd700; }

/* HUD: bottom navigation bar + mode switch (Kraken-style tabs). */
.hud { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-around; gap: 2px; background: #1a0805; border-top: 2px solid #ffb300; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
.hud-item { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #b9a99a; text-decoration: none; font-size: 18px; padding: 4px 8px; border-radius: 8px; border-top: 2px solid transparent; }
.hud-item span { font-size: 11px; }
.hud-item.active { color: #ffd700; font-weight: 700; border-top-color: #ffd700; }
.hud-mode { margin: 0; }
.hud-switch { padding: 2px; }
.hud-switch .mode-opt { padding: 6px 9px; }

/* Portfolio header (Kraken-style): total balance + chart. */
.portfolio-head { text-align: center; }
.portfolio-mode { margin: 0; font-size: 14px; }
.portfolio-mode strong { color: #ffd700; }
.portfolio-total { font-size: 30px; font-weight: 900; color: #ffd700; margin: 6px 0 2px; }
.portfolio-chart { margin-top: 10px; }
.portfolio-chart svg { width: 100%; height: auto; display: block; }

/* Coins list: one tappable row per coin. */
.coin-list { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; }
.coin-row { display: flex; align-items: center; gap: 10px; padding: 11px 10px; background: #160b08; border: 1px solid rgba(255, 179, 0, .35); border-radius: 10px; color: #e8ecf1; text-decoration: none; }
.coin-row:active { background: #241503; }
.coin-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The ticker is a flex sibling of the name, never inside it: a long
   coin name truncates with an ellipsis, but the ticker is always
   fully visible — it can never be cut off the end of the row. */
.coin-ticker { flex: 0 0 auto; font-size: 13px; white-space: nowrap; }
.coin-price { flex: 0 0 auto; font-weight: 700; }
.coin-change { flex: 0 0 56px; text-align: right; font-weight: 700; }
.coin-pnl { flex: 0 0 74px; text-align: right; font-weight: 700; }

/* Overlays: mode chooser + coin popup (bottom sheet). */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .72); display: flex; align-items: flex-end; justify-content: center; }
.chooser-card { width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: #160b08; border: 2px solid #ffb300; border-radius: 16px 16px 0 0; padding: 18px 16px 28px; text-align: center; box-shadow: 0 0 24px rgba(255, 120, 0, .3); }
.chooser-logo { font-size: 44px; margin: 6px 0 2px; }
.chooser-btn { width: 100%; margin-top: 10px; }
.chooser-btn.real { background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); color: #1a0505; border: 2px solid #ffcf3d; }
.coin-popup { width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: #160b08; border: 2px solid #ffb300; border-bottom: none; border-radius: 16px 16px 0 0; padding: 12px 16px 28px; }
.popup-head { text-align: right; margin: 0; }
.popup-close { color: #b9a99a; text-decoration: none; font-size: 20px; padding: 6px 10px; }
.popup-actions h3 { margin: 18px 0 6px; }
.popup-actions label { margin: 8px 0; }

/* Quick Buy/Sell popup: full screen, hidden until opened. The
   refresh row sits at the top of the coins page. */
.hidden { display: none; }
.overlay.hidden { display: none; }
.overlay-fullscreen { align-items: stretch; }
.overlay-fullscreen .coin-popup { max-width: none; width: 100%; max-height: none; height: 100dvh; border: none; border-radius: 0; }
.refresh-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.search-results { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.search-result { text-align: left; background: #1a0805; border: 1px solid #ffb300; border-radius: 10px; color: #e8ecf1; padding: 10px; font-weight: 700; cursor: pointer; }
/* Network tags on a search result row: one small gold pill per
   verified network (a multi-chain coin shows each one), plus a
   Wrapped pill for a wrapped token. Small and neat beside the
   coin name — the row stays readable even with many tags. */
.search-result-network { display: inline-block; font-size: 11px; font-weight: 600; line-height: 1.4; padding: 1px 7px; margin: 2px 4px 2px 0; border: 1px solid #ffb300; border-radius: 999px; color: #ffd700; white-space: nowrap; }
.amount-kind { display: flex; gap: 16px; margin: 8px 0; }
.amount-kind label { display: inline-flex; align-items: center; gap: 6px; }

/* Trade ticket: one Buy/Sell switch over the coin popup's buy and
   sell forms. CSS-only radio switch — no JavaScript, so it works
   in any in-app browser. Same forms, same endpoints as before. */
.trade-ticket { background: #000; border: 2px solid #ffb300; border-radius: 14px; padding: 12px; margin: 12px 0; }
.ticket-radio { position: absolute; opacity: 0; pointer-events: none; }
.ticket-switch { display: flex; background: #1a0805; border: 1px solid #ffb300; border-radius: 999px; padding: 2px; margin-bottom: 10px; }
.ticket-switch label { flex: 1; text-align: center; padding: 8px; border-radius: 999px; color: #b9a99a; font-weight: 700; cursor: pointer; margin: 0; }
#ticket-buy:checked ~ .ticket-switch label[for="ticket-buy"], #ticket-sell:checked ~ .ticket-switch label[for="ticket-sell"] { background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); color: #1a0505; }
.ticket-panel { display: none; }
#ticket-buy:checked ~ .ticket-buy-panel { display: block; }
#ticket-sell:checked ~ .ticket-sell-panel { display: block; }

/* Platform wallet rows (bot form + wallet page). */
.platform-row { border-top: 1px solid #4a1f0d; padding: 10px 0; }
.platform-row:first-of-type { border-top: none; }

/* ------------------------------------------------------------------ */
/* Wallet homepage + coin detail page (red + yellow, one screen).    */
/* The wallet is the homepage: Dogewifhat hero, coins with P&L and   */
/* 24h %, and the wallet itself. Every page fits one screen — the    */
/* page itself never scrolls; long lists scroll only inside a        */
/* fixed-height panel. Original SolEntry logo (.brand) untouched.    */
/* ------------------------------------------------------------------ */
.one-screen { display: flex; flex-direction: column; min-height: 0; }
.wallet-hero { margin: 4px 0 8px; }
.wallet-hero img { width: 100%; max-height: 132px; object-fit: cover; object-position: center 30%; display: block; border-radius: 14px; border: 2px solid #ffd700; box-shadow: 0 0 22px rgba(255, 190, 0, .45); }
.wallet-flag { font-size: 26px; vertical-align: middle; }
.section-title { color: #ffd700; border-bottom: 2px solid #e62e1b; padding-bottom: 4px; margin: 14px 0 8px; }
.wallet-total { margin-top: 4px; }
.coin-list-panel { max-height: 300px; overflow-y: auto; background: #000; border: 2px solid #ffb300; border-radius: 12px; padding: 4px; }
.coin-list-panel .coin-list { margin: 0; }
.trenches-list .coin-row { border-color: rgba(255, 45, 32, .55); }
.chart-ranges { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.range-btn { flex: 1 1 auto; text-align: center; padding: 8px 4px; background: #1a0805; border: 1px solid #ffb300; border-radius: 999px; color: #ffd700; text-decoration: none; font-size: 13px; font-weight: 700; }
.range-btn.active { background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); color: #1a0505; border-color: #ffcf3d; }
.detail-chart { position: relative; margin: 8px 0; }
.detail-chart svg { width: 100%; height: auto; display: block; }
/* Candlestick ↔ regular line toggle: a button in the corner of the
   chart, big enough to tap on a phone. It shows the OTHER view —
   "📈 Line" while candles are showing, "🕯 Candles" while the line
   is showing. The choice is remembered for the session. */
.chart-view-toggle { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 4px 10px; font-size: 13px; }
.chart-view.hidden { display: none; }
/* Homepage balance-area chart: compact, in the balance card, with
   its own one-row duration options. The chart is ~90px tall so the
   half-screen holdings list keeps its room. */
.home-chart { margin-top: 8px; }
.home-chart-durations { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 6px; }
.home-range-btn { color: #ffd700; text-decoration: none; font-size: 12px; font-weight: 700; padding: 3px 8px; border: 1px solid rgba(255, 179, 0, .35); border-radius: 999px; }
.home-range-btn.active { background: #ffd700; color: #1a0505; border-color: #ffd700; }
.home-chart-wrap { position: relative; }
.home-chart-wrap svg { width: 100%; height: 100px; display: block; }
.detail-stats { background: #160b08; border: 2px solid #ffb300; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.detail-stats p { margin: 6px 0; font-size: 14px; }

/* Trade ticket, third tab: Sell all. */
#ticket-sellall:checked ~ .ticket-switch label[for="ticket-sellall"] { background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); color: #1a0505; }
#ticket-sellall:checked ~ .ticket-sellall-panel { display: block; }

/* ------------------------------------------------------------------ */
/* Fox-layout rebuild: home / bots / trenches, one screen each.      */
/* The rebuilt pages get body class "fit-screen": the page itself    */
/* never scrolls — lists scroll only inside their own fixed-height  */
/* panels. Other pages (coins, P&L, settings) keep the scrolling    */
/* content area they already had.                                    */
/* ------------------------------------------------------------------ */
body.app-shell.fit-screen .wrap { overflow: hidden; display: flex; flex-direction: column; }
.home-screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.home-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px 0 6px; }
.home-top-right { display: flex; gap: 8px; align-items: center; }
.icon-btn { background: #1a0805; border: 2px solid #ffb300; color: #ffd700; border-radius: 10px; width: 38px; height: 38px; font-size: 18px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: 0 0 auto; }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.home-logo { text-align: center; margin: 0 0 4px; }
.fox-logo { width: 118px; height: 118px; object-fit: cover; border-radius: 50%; border: 3px solid #ffb300; box-shadow: 0 0 22px rgba(255, 120, 0, .45); display: block; margin: 0 auto; }
.home-wordmark { font-size: clamp(40px, 12vw, 54px); margin: 2px 0 0; }
.home-total { margin: 2px 0 6px; padding: 12px 14px; }
.home-total .portfolio-total { font-size: 34px; }
.change-24h { font-size: 15px; font-weight: 700; margin: 2px 0 0; }
.chart-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.home-ranges { flex: 1; margin: 0; }
.home-ranges .range-btn { padding: 6px 2px; font-size: 12px; }
.chart-more { flex: 0 0 auto; font-size: 26px; font-weight: 900; color: #ffd700; text-decoration: none; padding: 0 10px; line-height: 1; }
.buy-sell-row { display: flex; gap: 10px; margin: 4px 0 8px; }
.buy-btn, .sell-btn { flex: 1; padding: 14px; font-size: 20px; font-weight: 900; border-radius: 12px; border: 2px solid #ffcf3d; cursor: pointer; }
.buy-btn { background: #ffd700; color: #1a0505; border-color: #ffd700; }
.sell-btn { background: #e62e1b; color: #fff; border-color: #e62e1b; }
.section-link { float: right; font-size: 13px; }
.holdings-panel { flex: 1 1 auto; min-height: 80px; max-height: none; }
.coin-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #1a0805; border: 2px solid #ffb300; color: #ffd700; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.trenches-card { display: block; text-decoration: none; margin: 8px 0 0; padding: 12px 16px; }
.trenches-card-title { display: block; color: #ffd700; font-weight: 800; font-size: 17px; }
.page-scroll-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; }

/* Bots page (fox layout): balance + eye, + / − / Edit, carousel. */
.bots-balance { font-size: 30px; font-weight: 900; color: #ffd700; margin: 2px 0 0; display: flex; align-items: center; gap: 10px; }
.bots-balance-usd { margin: 0 0 4px; }
.eye-btn { width: 34px; height: 34px; font-size: 16px; }
.bot-actions { display: flex; gap: 10px; margin: 6px 0 8px; }
.square-btn { flex: 0 0 52px; padding: 10px 0; font-size: 24px; text-align: center; border-radius: 12px; }
.edit-btn { flex: 1; padding: 12px; font-size: 17px; border-radius: 12px; }
.edit-btn:disabled { opacity: .45; cursor: not-allowed; }
.carousel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 6px; }
.carousel-head h2 { margin: 0; flex: 1; text-align: center; }
.bot-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; flex: 0 0 auto; }
.bot-carousel[hidden] { display: none; }
/* Presets swap: while the preset list is showing in the carousel
   spot, the carousel arrows hide (they scroll the hidden Active
   Bots strip) but keep their space so the header stays centred. */
.bots-section.showing-presets [data-carousel-prev],
.bots-section.showing-presets [data-carousel-next] { visibility: hidden; }
.bot-card { flex: 0 0 92%; scroll-snap-align: start; display: flex; align-items: center; gap: 12px; margin: 0; text-decoration: none; color: #e8ecf1; }
.bot-card.active { border-color: #ffd700; box-shadow: 0 0 18px rgba(255, 200, 0, .45); }
.bot-ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: #1a0805; border: 2px solid #ffb300; font-size: 26px; display: inline-flex; align-items: center; justify-content: center; }
.bot-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bot-name { font-size: 16px; }
.bot-status { font-size: 12px; font-weight: 800; }
.bot-status.on { color: #4ade80; }
.bot-status.off { color: #b9a99a; }
.bot-id { color: #ff2d20; font-weight: 800; font-size: 13px; }
.bot-arrow { font-size: 24px; color: #b9a99a; flex: 0 0 auto; }
.memecoin-card { margin: 8px 0 0; }
.memecoin-card .inline { margin-right: 6px; }

/* Trenches page: black + gold theme, distinct from the red/gold
   main theme. Only the trenches page uses these colours. */
body.trenches-theme { background: #000; }
body.trenches-theme .topbar { background: #000; border-bottom-color: #ffd700; }
body.trenches-theme .hud { background: #000; border-top-color: #ffd700; }
body.trenches-theme .card, body.trenches-theme .coin-row { background: #0d0d0d; border-color: #ffd700; }
body.trenches-theme .trenches-title { color: #ffd700; font-size: 30px; margin: 4px 0 2px; }
body.trenches-theme .trenches-panel { border-color: #ffd700; background: #000; }
body.trenches-theme .coin-list-panel { background: #000; border-color: #ffd700; }
.trenches-panel { flex: 1 1 auto; min-height: 120px; max-height: none; }
.hud-ico { display: flex; line-height: 1; }
.hud-ico svg { width: 26px; height: 26px; display: block; }
.se-page { max-width: 480px; margin: 0 auto; padding: 10px 12px 28px; background: radial-gradient(120% 60% at 50% 0%, #2a0705 0%, #0a0505 55%, #050303 100%); border-radius: 0; }
.se-hero img { width: 100%; display: block; border-radius: 14px; border: 2px solid rgba(255, 190, 0, .55); box-shadow: 0 0 28px rgba(255, 30, 0, .35); }
.se-title { font-size: clamp(52px, 17vw, 76px); font-weight: 900; font-style: italic; letter-spacing: -3px; line-height: 1; text-align: center; margin: 14px 0 4px; color: #ff2d20; background: linear-gradient(100deg, #ff1e14 0%, #ff5e1f 35%, #ffb300 65%, #ffd700 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 10px rgba(255, 60, 0, .55)); position: relative; }
.se-title .se-entry { letter-spacing: -2px; }
.se-crown { position: absolute; left: 2px; top: -16px; font-size: 30px; -webkit-text-fill-color: initial; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.se-sub { display: flex; align-items: center; gap: 10px; justify-content: center; color: #fff; font-weight: 700; letter-spacing: 2px; font-size: 14px; font-style: italic; margin: 6px 0 18px; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.se-rule { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #ffb300); }
.se-rule:last-child { background: linear-gradient(90deg, #ffb300, transparent); }
.se-form { margin: 0; }
.se-field { position: relative; margin: 12px 0; }
.se-field input { width: 100%; padding: 14px 48px 14px 46px; background: #000; color: #fff; border: 2px solid #ffb300; border-radius: 12px; font-size: 16px; box-shadow: 0 0 12px rgba(255, 170, 0, .25); }
.se-field input::placeholder { color: #9a9a9a; }
.se-field input:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 16px rgba(255, 200, 0, .5); }
.se-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; }
.se-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; padding: 6px; line-height: 1; }
.se-eye.off::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #ff2d20; transform: rotate(-45deg); }
.se-login-btn { width: 100%; padding: 14px; font-size: 22px; font-weight: 800; color: #1a0505; background: linear-gradient(180deg, #ffd700 0%, #ff7a18 45%, #e62e1b 100%); border: 2px solid #ffcf3d; border-radius: 14px; cursor: pointer; box-shadow: 0 0 18px rgba(255, 90, 0, .5); margin-top: 6px; }
.se-login-btn:active { transform: scale(.98); filter: brightness(1.2); }
.se-hint { text-align: center; color: #b9a99a; font-size: 12px; margin: 8px 0 0; }
.se-create { text-align: center; margin: 14px 0 4px; }
.se-create a { color: #ffd700; font-weight: 700; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; }
.se-create a:active { color: #fff; }
.se-card { background: #160b08; border: 2px solid #ffb300; border-radius: 16px; padding: 16px; margin-top: 18px; box-shadow: 0 0 16px rgba(255, 120, 0, .25); }
.se-donate-head { display: flex; gap: 12px; align-items: flex-start; }
.se-heart { font-size: 34px; line-height: 1; }
.se-donate-title { color: #ffd700; font-weight: 800; font-size: 21px; }
.se-donate-sub { color: #fff; font-size: 14px; margin-top: 2px; }
.se-connect-btn { width: 100%; margin-top: 14px; padding: 12px; font-size: 16px; font-weight: 700; color: #ffd700; background: #000; border: 2px solid #ffb300; border-radius: 12px; cursor: pointer; }
.se-connect-btn:active { transform: scale(.98); background: #241503; }
.se-connect-btn.connected { color: #4ade80; border-color: #4ade80; }
.se-phantom-help { color: #fca5a5; font-size: 13px; margin: 10px 0 0; }
.se-amount-label { display: block; margin-top: 14px; color: #ffd700; font-weight: 700; font-size: 14px; }
.se-amount-label input { width: 100%; padding: 12px; margin-top: 6px; background: #000; color: #fff; border: 2px solid #ffb300; border-radius: 12px; font-size: 16px; }
.se-amount-label input:focus { outline: none; border-color: #ffd700; }
.se-send-btn { width: 100%; margin-top: 14px; padding: 13px; font-size: 18px; font-weight: 800; color: #1a0505; background: linear-gradient(180deg, #ffd700 0%, #ffb300 60%, #ff8c1a 100%); border: 2px solid #ffcf3d; border-radius: 12px; cursor: pointer; }
.se-send-btn:disabled { opacity: .45; cursor: not-allowed; }
.se-send-btn:not(:disabled):active { transform: scale(.98); filter: brightness(1.15); }
.se-donate-dest { color: #b9a99a; font-size: 12px; margin: 12px 0 0; }
.se-addr { font-family: monospace; color: #e8ecf1; }
.se-donate-status { font-size: 13px; margin: 10px 0 0; color: #4ade80; min-height: 1em; }
.se-donate-status.err { color: #f87171; }
.se-contact { display: flex; gap: 12px; align-items: center; text-decoration: none; border-color: #e62e1b; }
.se-contact:active { transform: scale(.99); }
.se-mail { font-size: 30px; }
.se-contact-title { display: block; color: #ffd700; font-weight: 800; font-size: 19px; }
.se-contact-mail { display: block; color: #fff; font-size: 15px; }
.se-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 22px; padding: 0 4px; }
.se-version { color: #ffd700; font-weight: 700; font-size: 17px; }
.se-version b { color: #ff2d20; }
.se-sig { font-family: 'Brush Script MT', 'Segoe Script', 'Snell Roundhand', cursive; color: #ffd700; font-size: 38px; transform: rotate(-4deg); text-shadow: 0 0 10px rgba(255, 200, 0, .4); }

/* ------------------------------------------------------------------ */
/* Home redo: smaller, simpler home. Holdings live in a HALF-screen  */
/* scrollable window as normal-size coin buttons (real name +       */
/* ticker, amount held, value, 1hr %); the rest of the home UI is   */
/* lifted up to fill the freed space. The page still fits one phone */
/* screen — only the holdings window scrolls.                        */
/* ------------------------------------------------------------------ */
body.app-shell.fit-screen .wrap { padding: 8px 12px 84px; }
.home-screen .fox-logo { width: clamp(56px, 10dvh, 96px); height: clamp(56px, 10dvh, 96px); }
.home-wordmark { font-size: clamp(36px, 6dvh, 50px); background: linear-gradient(100deg, #ffb300 0%, #ffd700 50%, #ffcf3d 100%); }
.home-total { padding: 10px 14px; }
.home-total .portfolio-total { font-size: clamp(32px, 5dvh, 44px); color: #fff; }
/* Narrower chart, same proportions (the SVG keeps its aspect, so
   nothing is clipped — the full chart is one tap away via ›). */
.home-total .portfolio-chart { max-width: 280px; margin: 10px auto 0; }
.buy-btn, .sell-btn { padding: 12px; font-size: 20px; }
.send-receive-row { margin: 0 0 8px; }
.send-receive-btn { flex: 1; text-align: center; padding: 10px; font-size: 15px; }
.home-screen .section-title { margin: 8px 0 6px; }
.holdings-row { font-size: 16px; padding: 7px 10px; }
.holdings-row .coin-ico { flex: 0 0 32px; width: 32px; height: 32px; font-size: 14px; }
.holdings-row .coin-img { flex: 0 0 32px; width: 32px; height: 32px; }
.holdings-name { display: block; font-size: 16px; }
.holdings-row .coin-ticker { font-size: 12px; }
.holdings-amount { display: block; font-size: 12px; margin-top: 1px; }

/* Coin detail page: four action buttons + the live chart. */
.coin-actions-row { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.coin-action-btn { flex: 1 1 0; padding: 12px 4px; font-size: 15px; }
.live-chart { background: #000; border: 2px solid #ffb300; border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.live-chart svg { width: 100%; height: 90px; display: block; }
.live-status { margin: 0 0 6px; }

/* Very short screens: shrink the decorative logo and the home
   chart further so the page still fits one screen. */
@media (max-height: 740px) {
  .home-screen .fox-logo { width: 48px; height: 48px; }
  .home-wordmark { font-size: 30px; }
  .home-total .portfolio-chart { max-width: 200px; }
}

/* ------------------------------------------------------------------ */
/* Home lift: everything lifted up, holdings take the remaining
   space (compact build, 2026-11-11, supersedes the 50dvh
   half-screen panel). Each held coin is a NORMAL-SIZE coin button
   (name + ticker + value + 1hr %), the action buttons sit in one
   row right under the fox logo, and the page still fits one phone
   screen — the holdings list scrolls internally only if it
   genuinely overflows a small screen. The candlestick chart is
   back in the balance card (2026-11-10) with duration options;
   the total and 24h change stay. The holdings panel flexes to
   fill the freed space.                                           */
/* ------------------------------------------------------------------ */
body.app-shell.fit-screen .wrap { padding: 4px 12px 84px; }
.home-top { margin: 0 0 4px; }
.home-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 2px; }
.home-logo .fox-logo { margin: 0; flex: 0 0 auto; }
.home-logo .home-wordmark { margin: 0; text-align: left; }
/* One row of four action buttons, raised near the top under the fox. */
.home-actions-row { display: flex; gap: 8px; margin: 6px 0 8px; }
.home-actions-row .buy-btn, .home-actions-row .sell-btn, .home-actions-row .send-receive-btn { flex: 1 1 0; padding: 12px 2px; font-size: 16px; text-align: center; }
.home-actions-row .send-receive-btn { background: #000; border: 2px solid #ffb300; color: #ffd700; }
.home-total { margin: 2px 0 4px; padding: 10px 14px; }
.home-total .change-24h .chart-more { font-size: 14px; font-weight: 700; padding: 0 4px; }
.home-screen .section-title { margin: 6px 0 4px; font-size: 14px; }
.holdings-summary { margin: 2px 0 6px; }
/* 1-hour % column on each holdings button. */
.holdings-1h { flex: 0 0 auto; text-align: right; font-weight: 800; font-size: 14px; }

/* ------------------------------------------------------------------ */
/* Fox login / sign-up pages (Pages 1 and 2, from the owner's        */
/* screenshots): black background, gold borders, gold "SolEntry"      */
/* wordmark, red fox in a gold circle on top, gold fox hero with      */
/* the red "Still on the $GATE?" tagline at the bottom. The filled-in */
/* username text is the same gold, bold, system font as the           */
/* screenshot's "Dev_SolEntry" — #ffd700, weight 800.               */
/* ------------------------------------------------------------------ */
/* Auth pages (Login / Sign up / Forgot username) — ONE screen, NO
   scrolling, exactly like the owner's screenshots. The column is
   exactly the viewport minus the fixed 40px topbar; every vertical
   size is viewport-relative (dvh/clamp), and the hero is the only
   flexible element — it shrinks to absorb a short viewport (or a
   flash message / Turnstile widget) so every field and button stays
   visible and tappable. Nothing here touches long pages: they keep
   scrolling exactly as before. */
.fox-topbar { height: 40px; padding-top: 0; padding-bottom: 0; }
.fox-auth { max-width: 480px; margin: -16px auto -40px; padding: 4px 14px 6px; background: #000; height: calc(100vh - 40px); height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.fox-auth > * { flex-shrink: 0; }
.fox-auth > .fox-hero { flex: 1 1 0; min-height: clamp(70px, 12dvh, 120px); max-height: clamp(110px, 16dvh, 160px); margin-bottom: 2dvh; }
/* A flash message (e.g. failed login) sits above the column: shrink
   the column by its height so the page still does not scroll. */
.wrap:has(> .flash) .fox-auth { height: calc(100vh - 40px - 57px); height: calc(100dvh - 40px - 57px); }
.fox-brand { display: flex; align-items: center; gap: 12px; margin: 0.6dvh 0 0.3dvh; }
.fox-auth .fox-logo { width: clamp(72px, 12dvh, 112px); height: clamp(72px, 12dvh, 112px); }
.fox-wordmark { font-size: clamp(40px, 8dvh, 66px); font-weight: 900; font-style: italic; letter-spacing: -2px; line-height: 1; margin: 0; background: linear-gradient(100deg, #ffb300 0%, #ffd700 50%, #ffb300 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 8px rgba(255, 170, 0, .4)); }
.fox-rule { height: 2px; border: none; margin: 0.6dvh 0; background: linear-gradient(90deg, #ffd700 0%, #ff7a18 45%, #ff2d20 100%); }
.fox-field { position: relative; margin: 0.5dvh 0 0; }
.fox-field input { width: 100%; padding: clamp(8px, 1.2dvh, 12px) 48px clamp(8px, 1.2dvh, 12px) 46px; background: #000; color: #ffd700; border: 2px solid #ffb300; border-radius: 12px; font-size: 17px; font-weight: 800; box-shadow: 0 0 12px rgba(255, 170, 0, .25); }
.fox-field input::placeholder { color: #9a9a9a; font-weight: 400; }
.fox-field input:focus { outline: none; border-color: #ffd700; box-shadow: 0 0 16px rgba(255, 200, 0, .5); }
.fox-field .fox-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: #ffd700; }
.fox-field .fox-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 20px; cursor: pointer; padding: 6px; line-height: 1; color: #ffd700; }
.fox-field .fox-eye.off::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #ff2d20; transform: rotate(-45deg); }
.fox-forgot { display: block; margin: 0.4dvh 0 0; color: #ff2d20; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.fox-forgot:active { color: #fff; }
.fox-btn { display: block; width: 100%; padding: clamp(8px, 1.3dvh, 12px); font-size: clamp(18px, 2.6dvh, 22px); font-weight: 800; border-radius: 14px; cursor: pointer; margin-top: 0.7dvh; text-align: center; text-decoration: none; }
.fox-btn:active { transform: scale(.98); filter: brightness(1.2); }
.fox-btn-gold { color: #1a0505; background: linear-gradient(180deg, #ffd700 0%, #f5a623 55%, #e8a020 100%); border: 2px solid #ffcf3d; box-shadow: 0 0 18px rgba(255, 170, 0, .5); }
.fox-btn-red { color: #ff2d20; background: #4a0505; border: 2px solid #ff2d20; }
.fox-btn-donate { color: #ffd700; background: #000; border: 2px solid #ffb300; }
.fox-passkey { display: block; width: 100%; margin: 0.6dvh 0 0; background: none; border: none; color: #ffd700; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* The donate card is hidden until Donate is tapped; when shown it
   becomes a fixed bottom sheet so it never makes the page scroll. */
.fox-auth .se-card { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 456px; margin: 0 auto; max-height: 72vh; max-height: 72dvh; overflow-y: auto; }
/* The gold fox hero at the bottom of the auth pages (owner's
   screenshot): the big gold fox sits bottom-left and the red
   "Still on the $GATE?" motto is raised to the fox's vertical
   centre on its right, in large red italic letters. */
.fox-hero { display: flex; align-items: center; gap: 10px; padding-top: 0.5dvh; }
.fox-hero img { height: 100%; max-height: 100%; width: auto; max-width: 46%; flex: 0 0 auto; display: block; object-fit: contain; }
.fox-tagline { color: #ff2d20; font-size: clamp(20px, 3.5dvh, 30px); font-weight: 900; font-style: italic; line-height: 1.05; margin: 0; flex: 1 1 auto; }
.fox-reveal { text-align: center; margin: 2dvh 0; }
.fox-reveal .fox-username { color: #ffd700; font-size: 28px; font-weight: 800; }
.fox-note { color: #b9a99a; font-size: 13px; text-align: center; margin: 1dvh 0 0; }

/* Short screens: the brand and the hero floor shrink a touch so Pages
   1 and 2 still fit one screen with no scrolling (Page 2 has six
   fields). The hero stays large — only its guaranteed share drops. */
@media (max-height: 700px) {
  .fox-auth .fox-logo { width: clamp(56px, 10dvh, 84px); height: clamp(56px, 10dvh, 84px); }
  .fox-auth .fox-wordmark { font-size: clamp(32px, 6.5dvh, 52px); }
  .fox-auth > .fox-hero { min-height: clamp(60px, 10dvh, 100px); max-height: clamp(80px, 12dvh, 120px); }
}

/* ------------------------------------------------------------------ */
/* Home mockup (owner's screenshot, 2026-11-11): Page 3 rebuilt to   */
/* match it exactly. Header: circular red fox + big gold "SolEntry"  */
/* + red "HOME of the $GATE" underneath. Action row: BUY gold with   */
/* a cart icon, SELL red with a download icon, Send / Receive black  */
/* with gold borders. Balance window: BALANCE + duration pills + CAD */
/* selector on top, TOTAL PORTFOLIO VALUE, big total with the %      */
/* change beside it, ≈ $ CAD, candlestick chart. Holdings rows: the  */
/* coin's real token image (or the ticker-initial icon), name +      */
/* ticker, amount held, a small gold sparkline (only when real price */
/* history exists), price per coin, total value, 1h %.               */
/* ------------------------------------------------------------------ */
.home-title { text-align: left; min-width: 0; }
.home-title .home-wordmark { background: none; -webkit-text-fill-color: #ffd700; color: #ffd700; filter: drop-shadow(0 2px 8px rgba(255, 170, 0, .4)); font-size: clamp(38px, 6.5dvh, 56px); }
.home-subtitle { color: #ff2d20; font-size: clamp(16px, 2.6dvh, 22px); font-weight: 900; letter-spacing: 1px; margin: 2px 0 0; }
.home-screen .fox-logo { width: clamp(64px, 12dvh, 110px); height: clamp(64px, 12dvh, 110px); }
/* Action buttons: icon stacked over the label, like the screenshot. */
.home-actions-row .btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; padding: 10px 2px; }
.home-action-ico { display: block; line-height: 1; }
.home-action-ico svg { width: 26px; height: 26px; display: block; }
.home-action-label { display: block; font-size: 16px; font-weight: 900; }
/* Balance window: left-aligned total, % change big on the right. */
.home-total { text-align: left; }
.home-balance-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.home-balance-label { color: #ffd700; font-weight: 900; font-size: 15px; letter-spacing: 1px; flex: 0 0 auto; }
.home-balance-top .home-chart-durations { flex: 1 1 auto; margin: 0; justify-content: flex-end; }
.home-total .portfolio-mode { text-align: left; }
.home-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.home-total-row .portfolio-total { margin: 2px 0 0; text-align: left; flex: 1 1 auto; min-width: 0; }
.home-total-pct { font-size: clamp(20px, 3dvh, 26px); font-weight: 900; margin: 2px 0 0; flex: 0 0 auto; }
.home-total-cad { margin: 2px 0 0; font-size: 15px; }
/* Currency selector: the app prices in CAD, so the dropdown lists
   the one display currency. A <details> element — it opens and
   closes with no JavaScript. */
.home-currency { position: relative; flex: 0 0 auto; }
.home-currency summary { list-style: none; cursor: pointer; color: #ffd700; font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.home-currency summary::-webkit-details-marker { display: none; }
.home-currency summary .wallet-flag { font-size: 18px; }
.home-currency-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; background: #160b08; border: 2px solid #ffb300; border-radius: 10px; padding: 8px 10px; min-width: 210px; box-shadow: 0 0 16px rgba(255, 120, 0, .3); }
.home-currency-option { margin: 0; color: #ffd700; font-weight: 700; font-size: 14px; }
.home-currency-menu .muted { margin: 4px 0 0; }
/* Holdings rows: real token image (32px circle, gold ring) or the
   ticker-initial icon; wide thin sparkline; price over the amount. */
.holdings-panel .coin-list { gap: 6px; }
.coin-img { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #ffb300; background: #1a0805; display: block; }
.holdings-spark { flex: 0 0 64px; display: flex; align-items: center; }
.holdings-spark svg { width: 64px; height: 16px; display: block; }
.holdings-spark:empty { display: none; }
.holdings-price-block { flex: 0 0 auto; text-align: right; min-width: 0; }
.holdings-price { display: block; font-weight: 800; font-size: 16px; }
.holdings-value-live { display: none; }

/* ------------------------------------------------------------------ */
/* Page 6 (Bots) rebuild — the owner's spec (2026-11-10/11).          */
/* - Lower scrolling section gone: the assistant (robo logo, red      */
/*   letters) and the platform-wallet rotating selector (red writing,  */
/*   two arrows) take the lower half.                                  */
/* - 2026-11-11: the solid yellow washed the whole page out, so both  */
/*   sections are now compact BLACK cards with gold borders (red      */
/*   letters kept) — the page reads black/gold/red like the rest.     */
/* - Motto "Still on the $GATE?" under the crown banner, same large   */
/*   red italic style as Pages 1-2.                                   */
/* - Signing-bot dashboard card at the bottom: Support ID, current    */
/*   tasks with the time each was tasked, transactions signed.        */
/* - Edit Bot is the same size as Add Bot (one shared action-btn).   */
/* - App name + logo bigger on this page.                             */
/* - Black crown-tipped banner under the logo. (2026-11-11: the thin  */
/*   gold bar that used to cross the logo was DELETED — it cut        */
/*   through the fox, so the logo now sits clean with no bar.)       */
/* The page stays one screen (fit-screen): the signer card sits
   at the bottom with its tasks panel hidden until tapped.       */
/* ------------------------------------------------------------------ */
.bots-screen .home-logo .fox-logo { width: clamp(96px, 16dvh, 140px); height: clamp(96px, 16dvh, 140px); }
.bots-screen .home-wordmark { font-size: clamp(48px, 9dvh, 68px); }
.bots-logo-wrap { position: relative; flex: 0 0 auto; }
.bots-crown-banner { background: #000; color: #ffd700; text-align: center; font-weight: 900; font-size: 20px; letter-spacing: 2px; padding: 8px 12px 16px; margin: 2px 0 6px; border-top: 2px solid #ffb300; clip-path: polygon(0 0, 100% 0, 100% 60%, 87.5% 100%, 75% 60%, 62.5% 100%, 50% 60%, 37.5% 100%, 25% 60%, 12.5% 100%, 0 60%); }
.bot-actions .action-btn { flex: 1 1 0; padding: 12px 4px; font-size: 16px; font-weight: 700; text-align: center; border-radius: 12px; margin-top: 0; }
.bot-actions .action-btn:disabled { opacity: .45; cursor: not-allowed; }
/* Motto on the Bots page: same large red italic style as Pages 1-2,
   centred under the crown banner. */
.bots-screen .bots-motto { flex: 0 0 auto; text-align: center; margin: 2px 0 4px; }
/* Signer bot card (owner, 2026-11-11): a bot card like the ones
   above it, full-width in the bottom half — .bot-card's 92%
   carousel slot would stretch it down the page, so the flex
   basis is reset here. The tasks panel below it is a compact
   black card with a gold border; it stays hidden until the card
   is tapped. */
.signer-card { flex: 0 0 auto; width: 100%; margin: 6px 0; }
.signer-tasks-panel { background: #000; border: 2px solid #ffd700; margin: 6px 0; padding: 10px; flex: 0 0 auto; }
.signer-tasks-panel h3 { color: #ffd700; margin: 0 0 4px; font-size: 15px; }
.signer-tasks { list-style: none; margin: 4px 0 0; padding: 0; }
.signer-tasks li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-top: 1px solid #3a1c10; }
.signer-tasks a { color: #ffd700; }
/* Clyde preset button (owner, 2026-11-11): the Clyde card is a
   carousel item inside #active-bots-list — no separate preset
   window, no outer wrapper, so the ONLY visible card in that
   spot is the Clyde button itself. The form takes the same 92%
   carousel slot as a bot card; the button fills it. Items hide
   via [hidden] — .bot-card is display:flex, which beats the UA
   [hidden] rule, so the carousel needs the override. */
.bot-carousel [hidden] { display: none; }
#active-bots-list form[data-preset-item] { flex: 0 0 92%; scroll-snap-align: start; margin: 0; }
/* A <button> needs its UA chrome reset (font, alignment, cursor,
   appearance) so it renders pixel-identical to the
   <a class="card bot-card">. The .card border and black
   background come through from the shared classes. */
button.bot-card { font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.badge.preset { background: #3a2a00; color: #ffd700; border: 1px solid #ffb300; }
@media (max-height: 640px) {
  .bots-screen .home-logo .fox-logo { width: 72px; height: 72px; }
  .bots-screen .home-wordmark { font-size: 36px; }
}

/* ------------------------------------------------------------------ */
/* Home rebuild from scratch (owner, 2026-11-11): Page 3 rebuilt to  */
/* match the photo exactly — header, four action buttons, BALANCE    */
/* box, HOLDINGS heading + rows, bottom nav (in base.html). One      */
/* consolidated block: it supersedes the earlier home layers         */
/* (redo / lift / mockup / compact) — the LAST rule wins, so this    */
/* block, sitting at the end of the file, is the home's single       */
/* source of truth. Home-only classes here — never .bot-*, .bots-*,  */
/* preset, or any other page's rules. The old compact block        */
/* above is deleted with this change (restated here, except the      */
/* holdings-panel rule, which follows the scrollable form: the       */
/* panel grows with the page and never scrolls internally (owner,   */
/* 2026-11-12).                                                      */
/* ------------------------------------------------------------------ */
body.app-shell.fit-screen .wrap { overflow: hidden; display: flex; flex-direction: column; padding: 4px 12px 84px; }
.home-screen { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* Header: fox left, wordmark + subtitle right, centred as a group. */
.home-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 2px; text-align: left; }
.home-logo .fox-logo { margin: 0; flex: 0 0 auto; width: clamp(64px, 12dvh, 110px); height: clamp(64px, 12dvh, 110px); }
.home-logo .home-wordmark { margin: 0; text-align: left; }
.home-title { text-align: left; min-width: 0; }
.home-title .home-wordmark { background: none; -webkit-text-fill-color: #ffd700; color: #ffd700; filter: drop-shadow(0 2px 8px rgba(255, 170, 0, .4)); font-size: clamp(38px, 6.5dvh, 56px); }
.home-subtitle { color: #ff2d20; font-size: clamp(16px, 2.6dvh, 22px); font-weight: 900; letter-spacing: 1px; margin: 2px 0 0; }
/* Four action buttons, one row: icon stacked over the label. */
.home-actions-row { display: flex; gap: 8px; margin: 4px 0 6px; }
.home-actions-row .buy-btn, .home-actions-row .sell-btn, .home-actions-row .send-receive-btn { flex: 1 1 0; padding: 10px 2px; font-size: 16px; text-align: center; }
.home-actions-row .send-receive-btn { background: #000; border: 2px solid #ffb300; color: #ffd700; }
.home-actions-row .btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; padding: 10px 2px; }
.home-action-ico { display: block; line-height: 1; }
.home-action-ico svg { width: 26px; height: 26px; display: block; }
.home-action-label { display: block; font-size: 16px; font-weight: 900; }
/* Balance window: left-aligned total, % change big on the right. */
.home-total { margin: 2px 0 4px; padding: 6px 12px; text-align: left; }
.home-total .portfolio-total { font-size: clamp(24px, 4dvh, 32px); color: #fff; }
.home-total .portfolio-mode { font-size: 12px; text-align: left; }
.home-balance-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.home-balance-label { color: #ffd700; font-weight: 900; font-size: 13px; letter-spacing: 1px; flex: 0 0 auto; }
.home-balance-top .home-chart-durations { flex: 1 1 auto; margin: 0; justify-content: flex-end; }
.home-range-btn { padding: 2px 7px; font-size: 11px; }
.home-currency summary { font-size: 13px; }
.home-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.home-total-row .portfolio-total { margin: 0; text-align: left; flex: 1 1 auto; min-width: 0; }
.home-total-pct { font-size: clamp(16px, 2.4dvh, 20px); font-weight: 900; margin: 0; flex: 0 0 auto; }
.home-total-cad { margin: 0; font-size: 13px; }
.home-chart { margin-top: 4px; }
.home-chart-wrap svg { width: 100%; height: 100px; display: block; }
/* HOLDINGS heading: gold, no line under it — the photo has none. */
.home-screen .section-title { margin: 6px 0 4px; font-size: 14px; border-bottom: none; padding-bottom: 0; }
/* Holdings: no panel border, no row borders, no dividers. */
.holdings-panel { max-height: none; border: none; background: transparent; padding: 0; }
.holdings-panel .coin-list { gap: 6px; }
.holdings-row { font-size: 16px; padding: 6px 8px; border: none; background: transparent; border-radius: 0; }
.holdings-row .coin-name { flex: 1 1 auto; min-width: 0; }
.holdings-name { display: block; font-size: 16px; }
.holdings-row .coin-ticker { display: block; font-size: 12px; }
.holdings-row .coin-ico { flex: 0 0 32px; width: 32px; height: 32px; font-size: 14px; }
.holdings-row .coin-img { flex: 0 0 32px; width: 32px; height: 32px; }
.holdings-spark { flex: 0 0 64px; display: flex; align-items: center; }
.holdings-spark svg { width: 64px; height: 16px; display: block; }
.holdings-spark:empty { display: none; }
.holdings-price-block { flex: 0 0 auto; text-align: right; min-width: 0; }
.holdings-price { display: block; font-weight: 800; font-size: 16px; }
.holdings-amount { display: block; font-size: 12px; margin-top: 1px; }
.holdings-value-live { display: none; }
.holdings-1h { flex: 0 0 auto; text-align: right; font-weight: 800; font-size: 14px; }
/* Below the photo content: Logs link, support ID line, Trenches card. */
.home-logs-link { align-self: flex-start; margin: 6px 0 2px; }
.home-screen > p.muted.small { margin: 2px 0; }
.trenches-card { margin: 6px 0 0; padding: 10px 14px; }
/* Very short screens: shrink the decorative logo so the page still fits one screen. */
@media (max-height: 740px) {
  .home-screen .fox-logo { width: 48px; height: 48px; }
  .home-wordmark { font-size: 30px; }
}
