/* TapEquity premium v2: device-stable typography, unified tabs and richer earning motion. */
:root {
  --te-navy-950:#061827;
  --te-navy-900:#0a263b;
  --te-navy-800:#0d324d;
  --te-gold-500:#f4b942;
  --te-gold-300:#ffd77c;
  --te-ivory:#fffaf0;
  --te-canvas:#edf2f4;
  --te-green:#16844c;
  --te-ink:#0a2940;
  --te-muted:#53697c;
  --te-radius-lg:22px;
  --te-shadow:0 12px 30px rgba(2,17,28,.18);
}

html { width:100%; overflow-x:hidden; background:var(--te-navy-950); }
body {
  width:100%; min-width:0; min-height:100dvh; overflow-x:clip;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI Variable","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.45; letter-spacing:-.01em;
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
  font-synthesis:none; font-optical-sizing:auto;
}
button,input,select,textarea { max-width:100%; font-family:inherit; }
input,select,textarea { font-size:16px !important; }
.screen,.wrap,.card,.te-home-header { min-width:0; max-width:100vw; }
.screen.on { min-height:100dvh; overflow-x:clip; }
.wrap { padding:16px max(16px,env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }

/* Clear, consistent title treatment on every tab. */
header.te-page-header {
  display:grid !important;
  grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  min-height:132px;
  padding:max(54px,calc(env(safe-area-inset-top) + 18px)) max(18px,env(safe-area-inset-right)) 18px max(18px,env(safe-area-inset-left)) !important;
  background:linear-gradient(145deg,var(--te-navy-950),var(--te-navy-800)) !important;
  border-bottom:1px solid rgba(244,185,66,.22) !important;
}
.te-page-header>div { min-width:0; }
.te-page-icon {
  width:52px; height:52px; display:grid; place-items:center;
  color:var(--te-gold-500); border:1px solid rgba(244,185,66,.34);
  border-radius:17px; background:rgba(255,255,255,.06);
  box-shadow:inset 0 1px rgba(255,255,255,.08);
}
.te-page-icon .te-svg { width:27px; height:27px; }
.te-page-kicker { display:block; color:var(--te-gold-300); font-size:11px; font-weight:800; letter-spacing:.12em; }
header.te-page-header h1 { margin:1px 0 0; font-size:clamp(24px,6.2vw,30px); line-height:1.08; letter-spacing:-.035em; }
header.te-page-header .sub { margin-top:5px; font-size:13px; line-height:1.35; color:#cbd7df; overflow-wrap:anywhere; }
.te-language { align-self:start; margin-top:5px; padding:6px 9px; border:1px solid rgba(244,185,66,.32); border-radius:999px; color:#fff; font-size:11px; font-weight:800; }
.te-page-heading { display:grid; grid-template-columns:minmax(0,1fr); }
.te-page-controls { display:flex; align-items:center; gap:10px; margin-top:9px; min-width:0; }
.te-page-controls select { width:auto; min-width:118px; min-height:44px; padding:8px 34px 8px 12px; color:#fff; background:rgba(255,255,255,.09); border:1px solid rgba(244,185,66,.28); }
.te-page-controls #j-count { color:#cbd7df; margin-left:auto; text-align:right; font-size:11px; line-height:1.3; }

/* One material language for every member and business screen. */
#s-tasks,#s-jobs,#s-feed,#s-refer,#s-wallet,#s-more,
#s-bhome,#s-bcamp,#s-bprod,#s-bbill,#s-bacct { background:linear-gradient(180deg,var(--te-navy-900),var(--te-navy-950)); }
#s-tasks .wrap,#s-jobs .wrap,#s-feed .wrap,#s-refer .wrap,#s-wallet .wrap,#s-more .wrap,
#s-bhome .wrap,#s-bcamp .wrap,#s-bprod .wrap,#s-bbill .wrap,#s-bacct .wrap { background:transparent !important; min-height:calc(100dvh - 132px); }
#s-tasks .card,#s-jobs .card,#s-feed .card,#s-refer .card,#s-wallet .card,#s-more .card,
#s-bhome .card,#s-bcamp .card,#s-bprod .card,#s-bbill .card,#s-bacct .card,
.job,.post,.product,.menu-sec,.stat {
  background:var(--te-ivory); border:1px solid rgba(244,185,66,.32);
  border-radius:var(--te-radius-lg); box-shadow:var(--te-shadow);
}
#s-feed .feed-news-note,#s-feed .news-section>h2,#s-feed .news-section>.small,
#s-jobs>.wrap>.muted { color:#d6e0e7 !important; }
.news-section h2 { font-size:22px; letter-spacing:-.025em; }
.news-jump a { border-color:rgba(244,185,66,.36); box-shadow:0 6px 18px rgba(2,17,28,.14); }
.news-sites a { background:#ffe4a0; color:var(--te-ink); border-radius:12px; }
#f-tabs { padding:5px; border:1px solid rgba(244,185,66,.26); background:rgba(255,255,255,.10) !important; box-shadow:0 8px 20px rgba(2,17,28,.14); }
#f-tabs button { color:#d6e0e7 !important; min-height:48px; }
#f-tabs button.on { color:#fff !important; background:var(--te-navy-800); box-shadow:inset 0 0 0 1px rgba(244,185,66,.36); }
#j-filters { scrollbar-width:none; }
#j-filters::-webkit-scrollbar { display:none; }
#j-filters .chip { flex:0 0 auto; min-height:44px; padding:9px 14px; background:var(--te-ivory); border-color:rgba(244,185,66,.38); color:var(--te-ink); }
#j-filters .chip.on { color:var(--te-navy-950); background:var(--te-gold-500); border-color:var(--te-gold-500); }
.te-empty-state { text-align:center; padding:30px 22px; }
.te-empty-icon { width:64px; height:64px; margin:0 auto 14px; display:grid; place-items:center; border-radius:20px; color:var(--te-gold-500); background:var(--te-navy-900); }
.te-empty-icon .te-svg { width:31px; height:31px; }
.te-empty-state h3 { font-size:21px; }
.te-empty-state p { color:var(--te-muted); max-width:380px; margin:8px auto 16px; }
.te-empty-state .btn { max-width:280px; margin:auto; }

/* Projection: separate pending estimate, market value, and legally issued shares. */
.te-shares-card { justify-content:flex-start; padding-top:13px !important; }
.te-shares-card .te-label { padding-right:44px; font-size:11px; letter-spacing:.11em; }
.te-share-number { margin:4px 0 5px !important; color:var(--te-ink); font-size:clamp(35px,9.2vw,45px) !important; font-weight:850; letter-spacing:-.055em; }
.te-share-meta { display:grid; gap:2px; color:var(--te-muted); font-size:10.5px !important; line-height:1.3 !important; }
.te-share-meta .te-share-points { color:#52687a; }
.te-share-meta .te-share-value { color:var(--te-green); font-size:12px; font-weight:800; }
.te-share-meta small { color:#6b7d8b; font-size:9.5px; white-space:normal; }

/* Premium emerald box: restrained glow, floating chest and clear state copy. */
.te-box-card {
  display:grid !important; grid-template-columns:minmax(0,1fr) 20px; grid-template-rows:auto 1fr auto;
  gap:0 4px; align-items:center; justify-content:initial !important; padding:10px 12px !important;
  color:#fff !important; text-align:left; isolation:isolate;
  background:radial-gradient(circle at 58% 28%,rgba(44,224,139,.32),transparent 33%),linear-gradient(145deg,#086246,#063d37 70%,#052d31) !important;
  border:1px solid rgba(71,241,163,.54) !important;
  box-shadow:0 12px 30px rgba(2,30,25,.34),inset 0 1px rgba(255,255,255,.09) !important;
}
.te-box-card::before { content:""; position:absolute; inset:-45% -25%; z-index:-1; background:conic-gradient(from 210deg,transparent 0 34%,rgba(110,255,192,.28) 40%,transparent 47% 100%); animation:te-box-shine 5.2s ease-in-out infinite; }
.te-box-card::after { content:""; position:absolute; inset:auto 12px 10px; height:1px; background:linear-gradient(90deg,transparent,rgba(127,255,199,.48),transparent); }
.te-box-kicker { grid-column:1/3; color:#a8f3cf; font-size:9px; font-weight:850; letter-spacing:.14em; }
.te-box-visual { grid-column:1/3; position:relative; display:grid; place-items:center; min-height:55px; }
.te-box-art { width:94px !important; height:61px !important; margin:-3px auto -2px !important; overflow:visible !important; border-radius:0 !important; filter:drop-shadow(0 12px 12px rgba(0,0,0,.38)) !important; animation:te-chest-float 2.8s ease-in-out infinite; }
.te-box-art img { object-fit:contain !important; border-radius:15px; }
.te-box-copy { grid-column:1; display:grid; min-width:0; position:relative; z-index:2; }
.te-box-title { color:#c8eee0 !important; font-size:11px !important; letter-spacing:.01em; }
.te-box-card #rail-rate { color:#fff !important; font-size:clamp(20px,5.8vw,27px) !important; line-height:1.05 !important; letter-spacing:-.035em; }
.te-box-arrow { grid-column:2; align-self:end; width:18px; height:18px; color:#fff; }
.te-box-spark { position:absolute; width:5px; height:5px; border-radius:50%; background:#7affbd; box-shadow:0 0 9px #42f59b; animation:te-box-spark 1.9s ease-in-out infinite; }
.te-box-spark-a { left:22%; top:15px; }.te-box-spark-b { right:22%; top:27px; animation-delay:.65s; }.te-box-spark-c { right:31%; bottom:7px; animation-delay:1.15s; }
.te-box-card.on { background:radial-gradient(circle at 58% 28%,rgba(50,241,148,.42),transparent 36%),linear-gradient(145deg,#087552,#06483e 70%,#052f34) !important; }
.te-box-card.is-locked,.te-box-card.is-paused { filter:saturate(.35); }
.te-box-card:active { transform:none !important; box-shadow:0 5px 16px rgba(2,30,25,.28),inset 0 1px rgba(255,255,255,.09) !important; }

/* Active countdown: clock ticks while a stock-style line rises, without layout movement. */
#s-home #h-session .te-timer-panel { position:relative; overflow:hidden; min-height:142px; padding:13px 12px 10px !important; }
.te-timer-label { position:relative; z-index:2; display:flex; align-items:center; gap:8px; color:#647487; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.te-live-clock { position:relative; width:25px; height:25px; flex:0 0 25px; border:2px solid #dda62e; border-radius:50%; }
.te-live-clock::before { content:""; position:absolute; width:2px; height:7px; left:10px; top:4px; border-radius:2px; background:#dda62e; transform-origin:50% 8px; animation:te-clock-hand 6s linear infinite; }
.te-live-clock::after { content:""; position:absolute; width:6px; height:2px; left:11px; top:11px; border-radius:2px; background:#dda62e; transform:rotate(25deg); transform-origin:left center; }
.session-timer { position:relative; z-index:2; }
.session-timer b { color:var(--te-green) !important; font-size:clamp(28px,7.8vw,38px) !important; letter-spacing:-.045em; text-shadow:0 1px rgba(255,255,255,.5); }
.te-market-pulse { position:absolute; z-index:1; left:10px; right:10px; bottom:15px; width:calc(100% - 20px); height:48px; opacity:.78; pointer-events:none; }
.te-market-area { fill:url(#te-market-fill); }
.te-market-line { fill:none; stroke:#21a366; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:240; stroke-dashoffset:240; animation:te-market-rise 2.4s cubic-bezier(.2,.8,.2,1) infinite alternate; }
.te-market-caption { position:relative; z-index:2; display:block; margin-top:31px; color:#4f7765; font-size:9px; font-weight:700; letter-spacing:.04em; }

/* Countdown must remain unobstructed; stock progress belongs outside the timer. */
#s-home #h-session .te-market-pulse,
#s-home #h-session .te-market-caption { display:none !important; }

/* Wallet summary cards replace the oversized inline verification form. */
#s-wallet .wallet-balance-card { box-shadow:0 15px 34px rgba(0,0,0,.24); }
#s-wallet>.wrap>.card { overflow:hidden; }
.te-summary-row { width:100%; min-height:76px; display:grid; grid-template-columns:44px minmax(0,1fr) auto 18px; align-items:center; gap:11px; padding:0; border:0; background:transparent; color:var(--te-ink); text-align:left; }
.te-summary-icon { width:44px; height:44px; display:grid; place-items:center; color:var(--te-gold-500); background:var(--te-navy-900); border-radius:14px; }
.te-summary-icon .te-svg { width:23px; height:23px; }
.te-summary-row b,.te-summary-row small { display:block; }
.te-summary-row b { font-size:16px; }.te-summary-row small { margin-top:3px; color:var(--te-muted); font-size:11px; line-height:1.35; }
.te-summary-status { max-width:92px; color:#7a5b16; background:#fff0c9; border-radius:999px; padding:5px 8px; font-size:10px; font-weight:800; text-align:center; }
.te-summary-status.ok { color:#0f6e3c; background:#e3f5ea; }.te-summary-status.bad { color:#9d2d25; background:#fbe5e1; }
.te-summary-arrow { width:16px; height:16px; color:#6a7b88; }

/* Team input, ledgers and menu stay within every phone width. */
#s-refer .code { font-size:clamp(20px,7vw,29px); overflow-wrap:anywhere; }
#s-refer #r-link { font-size:14px !important; }
#s-refer #r-addcode { min-width:0; }
#s-refer #r-addcode + .btn { flex:0 0 auto; min-width:72px; white-space:nowrap; }
.led { align-items:center; gap:12px; min-height:50px; }
.led>span:first-child { flex:1; }
#s-more .menu-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
#s-more .menu-grid button { min-width:0; color:var(--te-ink); }
#s-more .app-footer { color:#cbd7df; }

nav.tabs { height:auto; min-height:76px; padding:7px max(4px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); }
nav.tabs button { min-width:0; min-height:58px; padding:7px 2px 5px; font-size:10.5px; }
nav.tabs button.on { box-shadow:inset 0 2px var(--te-gold-500); }

@keyframes te-chest-float { 0%,100%{transform:translateY(1px) scale(1)} 50%{transform:translateY(-4px) scale(1.025)} }
@keyframes te-box-shine { 0%,30%{transform:rotate(-18deg);opacity:.25} 62%,100%{transform:rotate(32deg);opacity:.75} }
@keyframes te-box-spark { 0%,100%{opacity:.25;transform:scale(.6)} 50%{opacity:1;transform:scale(1.45)} }
@keyframes te-clock-hand { to{transform:rotate(360deg)} }
@keyframes te-market-rise { to{stroke-dashoffset:0} }

/* Exact target classes: 17 Pro Max 440px, 14 Pro Max 430px, 15 Pro 393px, S24 360px. */
@media (max-width:440px) {
  #s-home .te-home-header { padding-left:14px; padding-right:14px; }
  .te-info-row { grid-template-columns:minmax(0,1fr) minmax(0,1.02fr); gap:10px; }
  .te-info-card { min-height:148px !important; }
  .te-quick-actions { gap:8px; }
  #s-home #h-session .te-session-grid { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
  .te-secondary { gap:10px; }
}
@media (max-width:400px) {
  header.te-page-header { grid-template-columns:46px minmax(0,1fr) auto; gap:10px; padding-left:14px !important; padding-right:14px !important; }
  .te-page-icon { width:46px; height:46px; border-radius:15px; }
  .te-page-controls { align-items:flex-start; flex-direction:column; gap:5px; }
  .te-page-controls #j-count { margin-left:0; text-align:left; }
  .te-share-mark { width:34px !important; height:34px !important; }
  .te-share-number { font-size:34px !important; }
  .te-share-meta { font-size:9.5px !important; }
  .te-share-meta .te-share-value { font-size:11px; }
  .te-box-card #rail-rate { font-size:21px !important; }
  .te-quick-actions { gap:6px; }
  .te-quick-actions button { min-height:76px; }
  #s-home #h-session .te-session-grid { grid-template-columns:minmax(0,1fr); }
  #s-home #h-session .te-session-info { grid-template-columns:1fr 1fr; }
  #s-home #h-session .miner-stage { grid-row:1; width:min(100%,260px); }
  #s-home #h-session .te-session-info { grid-row:2; }
  #s-home #h-session .te-timer-panel,#s-home #h-session .session-pending { min-height:132px; }
  .te-summary-row { grid-template-columns:40px minmax(0,1fr) 17px; }
  .te-summary-status { grid-column:2; justify-self:start; margin-top:3px; }
  .te-summary-arrow { grid-column:3; grid-row:1/3; }
  #s-more .menu-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
}
@media (max-width:370px) {
  .wrap { padding-left:12px; padding-right:12px; }
  .te-info-row { gap:7px; }
  .te-info-card { min-height:145px !important; padding-left:10px !important; padding-right:10px !important; }
  .te-share-number { font-size:31px !important; }
  .te-box-art { width:82px !important; }
  .te-box-card #rail-rate { font-size:19px !important; }
  .te-checklist b { font-size:13px; }.te-checklist span { font-size:11px; }
  .te-checklist a { font-size:12px; }
  nav.tabs button { font-size:10px; }
}

/* v28: tighter home hierarchy, premium navy treasure card, and calm story crossfade. */
@keyframes te-earnings-crossfade {
  0%,20% { opacity:1; transform:scale(1); visibility:visible; pointer-events:auto; }
  25%,95% { opacity:0; transform:scale(1.025); visibility:hidden; pointer-events:none; }
  100% { opacity:1; transform:scale(1); visibility:visible; pointer-events:auto; }
}
.te-earnings-carousel { position:relative !important; background:#071c2d !important; }
.te-earnings-carousel .te-earnings-slide {
  position:absolute; inset:0; display:block; width:100%; height:100%; opacity:0;
  animation:te-earnings-crossfade 28s ease-in-out infinite;
}
.te-earnings-carousel .te-earnings-slide img { width:100%; height:100%; object-fit:cover; }
.te-earnings-carousel .te-slide-link { border:0; padding:0; background:transparent; cursor:pointer; text-decoration:none; color:inherit; }
.te-earnings-carousel .te-slide-link:focus-visible { outline:3px solid #fff; outline-offset:-5px; }
.te-earnings-carousel .te-slide-1 { animation-delay:0s; }
.te-earnings-carousel .te-slide-2 { animation-delay:7s; }
.te-earnings-carousel .te-slide-3 { animation-delay:14s; }
.te-earnings-carousel .te-slide-4 { animation-delay:21s; }
.te-earnings-carousel.is-paused .te-earnings-slide { animation-play-state:paused !important; }
.te-carousel-toggle {
  position:absolute; z-index:8; right:7px; bottom:7px; min-width:44px; min-height:28px;
  padding:4px 8px; border:1px solid rgba(255,255,255,.38); border-radius:999px;
  background:rgba(4,24,39,.82); color:#fff; font:750 9px/1 system-ui,sans-serif;
  box-shadow:0 3px 10px rgba(0,0,0,.24); backdrop-filter:blur(5px);
}

@media (max-width:480px) {
  .te-compact-summary { min-height:88px !important; }
  .te-points-gauge { min-height:76px !important; padding:7px 8px !important; border-radius:16px; }
  .te-points-gauge::before { font-size:7.5px; }
  .te-points-gauge strong { font-size:35px !important; }
  .te-points-gauge small { font-size:9px !important; }
  .te-compact-shares .te-share-number { font-size:26px !important; }

  .te-compact-middle .te-box-card {
    min-height:88px !important; overflow:hidden; border:1px solid rgba(244,185,66,.62) !important;
    background:radial-gradient(circle at 31% 38%,rgba(244,185,66,.18),transparent 34%),linear-gradient(145deg,#102f49,#071c2d 76%) !important;
    box-shadow:inset 0 1px rgba(255,255,255,.12),0 8px 18px rgba(2,17,28,.22) !important;
  }
  .te-compact-middle .te-box-visual {
    left:7px !important; top:-4px !important; width:104px !important; min-height:88px !important;
    transform:none !important; opacity:1 !important;
  }
  .te-compact-middle .te-box-art { width:104px !important; height:88px !important; }
  .te-compact-middle .te-box-art img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
  .te-compact-middle .te-box-copy {
    margin-left:88px; max-width:calc(100% - 92px) !important; padding:3px 4px !important;
    background:linear-gradient(90deg,rgba(7,28,45,.96),rgba(7,28,45,.78),transparent) !important;
  }
  .te-compact-middle .te-box-title { color:#f7e6b0 !important; font-size:8.5px !important; }
  .te-compact-middle .te-box-card #rail-rate { color:#fff !important; font-size:17px !important; }
  .te-compact-middle .te-box-arrow { right:7px !important; bottom:7px !important; }
  .te-compact-middle .te-checklist { min-height:88px !important; }

  .te-quick-actions { margin-top:6px !important; gap:5px !important; }
  .te-quick-actions button { min-height:47px !important; padding:3px 2px !important; border-radius:12px !important; }
  .te-quick-actions .te-quick-icon { width:18px !important; height:18px !important; }
  .te-quick-actions span,.te-quick-actions b { font-size:8px !important; }
  #s-home .te-home-wrap { padding-top:4px !important; }
  #s-home #h-session .miner-stage { max-width:148px !important; }
}

@media (max-width:410px) {
  #s-home #h-session .te-timer-panel { gap:5px !important; padding:6px !important; }
  #s-home #h-session .te-countdown-dial { width:48px !important; height:48px !important; flex-basis:48px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock { width:34px !important; height:34px !important; flex-basis:34px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock::before { left:15px !important; top:6px !important; height:10px !important; transform-origin:50% 11px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock::after { left:16px !important; top:16px !important; width:9px !important; }
  #s-home #h-session .session-timer b { font-size:18px !important; letter-spacing:-.035em !important; }
  #s-home #h-session .te-timer-label { font-size:8px !important; letter-spacing:.1em !important; }
  #s-home #h-session .te-timer-panel .te-countdown-copy small { font-size:6.8px !important; letter-spacing:.08em; }
}

/* v29 treasure frame: full-bleed product art with a dedicated readable data zone. */
@media (max-width:480px) {
  .te-compact-middle .te-box-card {
    isolation:isolate; min-height:92px !important; padding:0 !important;
    border:1px solid rgba(244,185,66,.72) !important; border-radius:17px !important;
    background:#06192a !important; box-shadow:inset 0 1px rgba(255,255,255,.14),0 10px 22px rgba(2,17,28,.3) !important;
  }
  .te-compact-middle .te-box-card::after {
    content:""; position:absolute; z-index:2; inset:0;
    background:linear-gradient(90deg,transparent 0 47%,rgba(4,19,32,.28) 58%,rgba(4,19,32,.97) 79%);
    pointer-events:none;
  }
  .te-compact-middle .te-box-visual { inset:0 !important; width:100% !important; min-height:100% !important; transform:none !important; }
  .te-compact-middle .te-box-art { width:100% !important; height:100% !important; }
  .te-compact-middle .te-box-art img { width:100%; height:100%; object-fit:cover; object-position:left center; border-radius:0; }
  .te-compact-middle .te-box-kicker {
    visibility:visible !important; position:absolute; z-index:4; top:8px; right:9px;
    padding:3px 6px; border:1px solid rgba(244,185,66,.38); border-radius:999px;
    background:rgba(4,19,32,.78); color:#f7d77a !important; font-size:6.5px !important; letter-spacing:.12em;
  }
  .te-compact-middle .te-box-copy {
    position:absolute; z-index:4; right:10px; bottom:9px; width:47%; max-width:47% !important;
    margin:0 !important; padding:0 !important; align-items:flex-start; text-align:left;
    background:none !important;
  }
  .te-compact-middle .te-box-title { color:#f7e6b0 !important; font-size:8px !important; }
  .te-compact-middle .te-box-card #rail-rate { color:#fff !important; font-size:17px !important; line-height:1 !important; letter-spacing:-.03em; }
  .te-compact-middle .te-box-arrow { z-index:5; right:6px !important; bottom:8px !important; width:17px !important; color:#f4b942 !important; }
}

@media (prefers-reduced-motion:reduce) {
  .te-earnings-carousel .te-earnings-slide { animation:none !important; opacity:0; transform:none; }
  .te-earnings-carousel .te-slide-1 { opacity:1; }
  .te-carousel-toggle { display:none; }
}
@media (orientation:landscape) and (max-height:520px) {
  header.te-page-header { min-height:92px; padding:max(18px,calc(env(safe-area-inset-top) + 8px)) max(24px,env(safe-area-inset-right)) 12px max(24px,env(safe-area-inset-left)) !important; }
  .wrap { max-width:980px; padding-left:max(24px,env(safe-area-inset-left)); padding-right:max(24px,env(safe-area-inset-right)); }
  .te-info-card { min-height:126px !important; }
}
@media (prefers-reduced-motion:reduce) {
  .te-box-card::before,.te-box-art,.te-box-spark,.te-live-clock::before,.te-market-line { animation:none !important; }
  .te-market-line { stroke-dashoffset:0; }
}

/* v26: quiet instruments and a shorter complete Home viewport. */
.te-gauge-arc { overflow:hidden !important; filter:drop-shadow(0 7px 10px rgba(2,17,28,.28)); }
.te-gauge-arc::before {
  background:none !important; -webkit-mask:none !important; mask:none !important;
  border-color:rgba(130,165,188,.28) !important;
}
.te-gauge-arc i {
  clip-path:polygon(0 0,68% 0,55% 100%,0 100%) !important;
  background:none !important;
}
.te-gauge-arc::after {
  left:50%; bottom:-1px; width:38%; height:3px;
  background:linear-gradient(90deg,#fff7d8,#ffd45e); box-shadow:0 0 7px rgba(255,212,94,.55);
  animation:te-quiet-accelerator 7.2s cubic-bezier(.3,.7,.25,1) infinite !important;
}
.te-points-gauge::after { display:none !important; }

.te-countdown-dial {
  position:relative; z-index:2; width:62px; height:62px; flex:0 0 62px;
  display:grid; place-items:center; border-radius:50%; overflow:hidden;
  background:conic-gradient(#159154 0 28%,#f4b942 28% 55%,#e8edf0 55% 100%);
  box-shadow:0 7px 16px rgba(10,41,64,.14);
}
.te-countdown-dial::before {
  content:""; position:absolute; inset:-12px; border-radius:50%;
  background:conic-gradient(transparent 0 72%,rgba(255,255,255,.95) 78%,transparent 84%);
  animation:te-countdown-orbit 5.5s linear infinite;
}
.te-countdown-dial::after {
  content:""; position:absolute; inset:4px; border-radius:50%; background:#fffaf0;
}
#s-home #h-session .te-countdown-dial .te-live-clock {
  z-index:3; width:42px; height:42px; flex-basis:42px; border:0;
  background:transparent; box-shadow:none;
}
#s-home #h-session .te-countdown-dial .te-live-clock::before {
  left:19px; top:7px; width:3px; height:13px; background:#0d7f4b; transform-origin:50% 14px;
}
#s-home #h-session .te-countdown-dial .te-live-clock::after {
  left:20px; top:20px; width:11px; height:3px; background:#0d7f4b;
}
.te-countdown-copy { position:relative; z-index:2; min-width:0; display:grid; align-content:center; }
#s-home #h-session .te-countdown-copy .te-timer-label { min-height:0; font-size:9px; letter-spacing:.12em; }
#s-home #h-session .te-countdown-copy small { color:#647789; font-size:8px; line-height:1.2; }
#s-home #h-session .te-timer-panel::before,
#s-home #h-session .te-timer-panel::after { content:none !important; }

@keyframes te-quiet-accelerator {
  0%,20% { transform:rotate(-140deg); }
  60%,82% { transform:rotate(-56deg); }
  100% { transform:rotate(-140deg); }
}
@keyframes te-countdown-orbit { to { transform:rotate(360deg); } }

@media (max-width:480px) {
  .te-gauge-arc { width:108px !important; }
  .te-gauge-arc::before,.te-gauge-arc i { border-width:13px !important; }
  .te-points-gauge strong { z-index:5; font-size:32px; text-shadow:0 2px 4px rgba(2,17,28,.45); }

  .te-compact-middle .te-box-card { min-height:100px !important; padding:7px 10px !important; }
  .te-compact-middle .te-box-kicker { font-size:8px; }
  .te-compact-middle .te-box-visual {
    top:1px !important; right:13px !important; width:104px !important; min-height:68px !important;
    opacity:1 !important;
  }
  .te-compact-middle .te-box-art { width:102px !important; height:69px !important; }
  .te-compact-middle .te-box-copy { max-width:calc(100% - 82px); }
  .te-compact-middle .te-box-card #rail-rate { font-size:19px !important; }

  #s-home .te-home-header { padding-bottom:7px; }
  #s-home .te-home-wrap { padding-top:5px; }
  #s-home .tapcard { padding:10px 10px 9px; }
  #s-home #h-session .te-session-head { margin-bottom:2px; }
  #s-home #h-session h3 { margin:2px 0 0; font-size:16px; line-height:1.18; }
  #s-home #h-session .tap-explain { margin:2px 0 5px; font-size:10px; line-height:1.28; }
  #s-home #h-session .te-session-grid { gap:7px; }
  #s-home #h-session .te-session-info { gap:5px; }
  #s-home #h-session .te-timer-panel {
    min-height:82px !important; padding:8px !important; display:flex; align-items:center; gap:8px;
    border:1px solid rgba(13,43,67,.14) !important; background:#fffaf0 !important;
  }
  #s-home #h-session .session-timer b { font-size:22px !important; line-height:1; }
  #s-home #h-session .session-pending { min-height:63px; padding:7px 8px; }
  #s-home #h-session .session-pending b { font-size:10px; line-height:1.2; }
  #s-home #h-session .session-pending span { margin-top:2px; font-size:8.5px; line-height:1.25; }
  #s-home #h-session .miner-stage { max-width:154px; border-radius:22px; }
  #s-home #h-session .te-session-footer { margin-top:5px; padding-top:6px; }
  #s-home #h-session .te-rate-icon { width:30px; height:30px; }
  #s-home #h-session .te-rate-value { font-size:18px; }
  #s-home #h-session .te-rate-label { font-size:8px; }
  #s-home #h-session .te-view-details { min-height:36px; padding:6px 10px; font-size:10px; }
  #s-home #h-session .badges,#s-home #h-session .te-session-note { display:none; }
  #s-home .te-secondary { margin-top:7px; }
  #s-home .te-secondary .card { min-height:82px; padding:9px 10px; }
}

@media (max-width:370px) {
  .te-compact-middle .te-box-visual { right:8px !important; width:88px !important; }
  .te-compact-middle .te-box-art { width:88px !important; height:60px !important; }
  .te-countdown-dial { width:54px; height:54px; flex-basis:54px; }
  #s-home #h-session .te-countdown-dial .te-live-clock { width:36px; height:36px; flex-basis:36px; }
  #s-home #h-session .te-countdown-dial .te-live-clock::before { left:16px; top:5px; height:12px; transform-origin:50% 13px; }
  #s-home #h-session .te-countdown-dial .te-live-clock::after { left:17px; top:17px; width:9px; }
}

@media (prefers-reduced-motion:reduce) {
  .te-gauge-arc::after,.te-countdown-dial::before { animation:none !important; }
  .te-gauge-arc::after { transform:rotate(-62deg); }
}

/* v25 live mobile repair: instrument motion, readable Feed and predictable back navigation. */
.te-gauge-arc {
  overflow:visible;
  filter:drop-shadow(0 6px 9px rgba(2,17,28,.3));
}
.te-gauge-arc::before {
  background:repeating-conic-gradient(from 270deg at 50% 100%,rgba(255,255,255,.78) 0 1deg,transparent 1deg 12deg);
  -webkit-mask:linear-gradient(#000 0 0) top/100% 100% no-repeat;
  mask:linear-gradient(#000 0 0) top/100% 100% no-repeat;
}
.te-gauge-arc i::after { content:none; }
.te-gauge-arc::after {
  content:""; position:absolute; z-index:3; left:50%; bottom:-2px;
  width:43%; height:4px; border-radius:999px;
  background:linear-gradient(90deg,#fff2bd,#ffd45e 70%,#fff);
  box-shadow:0 0 8px rgba(255,214,94,.78);
  transform-origin:0 50%; transform:rotate(-142deg);
  animation:te-accelerator-needle 3.4s cubic-bezier(.45,0,.2,1) infinite;
}
.te-points-gauge::after {
  content:""; position:absolute; z-index:4; left:50%; top:52%; width:10px; height:10px;
  border:3px solid #fff1b6; border-radius:50%; background:var(--te-navy-900);
  box-shadow:0 0 8px rgba(244,185,66,.6); transform:translate(-50%,-50%);
}

#s-home #h-session .te-timer-panel {
  isolation:isolate; border:0 !important; background:transparent !important;
  box-shadow:0 8px 20px rgba(2,17,28,.12);
}
#s-home #h-session .te-timer-panel::before {
  content:""; position:absolute; z-index:0; inset:-70%;
  background:conic-gradient(from 0deg,transparent 0 31%,#f4b942 38%,#fff1b8 44%,transparent 51% 70%,#22a866 78%,transparent 86%);
  animation:te-timer-frame 4.8s linear infinite;
}
#s-home #h-session .te-timer-panel::after {
  content:""; position:absolute; z-index:1; inset:2px; border-radius:inherit;
  background:linear-gradient(145deg,#fffdf7,#fff7e8);
}
#s-home #h-session .te-timer-panel>* { position:relative; z-index:2; }
#s-home #h-session .te-timer-label { min-height:46px; gap:9px; font-size:10px; color:#506477; }
#s-home #h-session .te-live-clock {
  width:46px; height:46px; flex-basis:46px; border-width:3px;
  background:radial-gradient(circle,#fffdf7 0 55%,#fff1cb 56% 100%);
  box-shadow:inset 0 0 0 1px rgba(221,166,46,.15);
}
#s-home #h-session .te-live-clock::before {
  left:20px; top:7px; width:3px; height:14px; transform-origin:50% 16px;
}
#s-home #h-session .te-live-clock::after {
  left:21px; top:21px; width:12px; height:3px;
}

/* A light content canvas needs dark ink, including inactive controls and section notes. */
#s-feed .feed-news-note,
#s-feed .news-section>h2,
#s-feed .news-section>.small { color:#405a6f !important; opacity:1 !important; }
#s-feed .news-section>h2 { color:var(--te-ink) !important; }
#f-tabs { background:#e6edf1 !important; }
#f-tabs button { color:#385268 !important; opacity:1 !important; font-weight:750; }
#f-tabs button.on { color:#fff !important; }

/* When a secondary screen receives a back control, it replaces—not overlaps—the icon tile. */
header.te-page-header:has(.hdrback)>.te-page-icon { display:none !important; }
header.te-page-header:has(.hdrback) {
  grid-template-columns:48px minmax(0,1fr) auto;
}
header.te-page-header .hdrback {
  position:relative !important; inset:auto !important; width:48px; height:48px;
  display:grid; place-items:center; border:1px solid rgba(244,185,66,.52);
  border-radius:16px; background:rgba(255,255,255,.1); color:#fff;
  font-size:34px; line-height:1; box-shadow:inset 0 1px rgba(255,255,255,.1);
}
.screen.on header.te-page-header:has(.hdrback) h1 { padding-left:0 !important; }

@keyframes te-accelerator-needle {
  0%,12% { transform:rotate(-142deg); }
  55% { transform:rotate(-54deg); }
  72% { transform:rotate(-67deg); }
  100% { transform:rotate(-48deg); }
}
@keyframes te-timer-frame { to { transform:rotate(360deg); } }

@media (max-width:480px) {
  .te-compact-middle .te-box-visual { top:1px; right:3px; width:78px; min-height:55px; opacity:1; }
  .te-compact-middle .te-box-art { width:78px !important; height:54px !important; }
  .te-compact-middle .te-box-copy { max-width:calc(100% - 55px); }
  #s-home .te-home-wrap { padding-top:5px; }
  #s-home #h-session .te-timer-panel { min-height:112px; padding:8px 9px 7px !important; }
  #s-home #h-session .te-timer-label { min-height:44px; font-size:9px; }
  #s-home #h-session .te-live-clock { width:42px; height:42px; flex-basis:42px; }
  #s-home #h-session .te-live-clock::before { left:18px; top:6px; height:13px; transform-origin:50% 15px; }
  #s-home #h-session .te-live-clock::after { left:19px; top:19px; width:11px; }
  #s-home #h-session .session-timer b { margin-top:0; font-size:25px !important; white-space:nowrap; }

  #s-feed .wrap { padding-top:10px; }
  #s-feed .wrap>.card:first-child { margin-bottom:8px; padding:11px 12px; }
  #s-feed #f-tabs { margin-bottom:8px !important; }
  #s-feed .feed-news-note { margin-bottom:7px; font-size:11px; line-height:1.35; }
  #s-feed .news-jump { gap:6px; margin-bottom:10px; }
  #s-feed .news-jump a { padding:8px 10px; font-size:11px; }
  #s-feed .news-section { margin-bottom:14px; }
  #s-feed .news-section h2 { margin-bottom:3px; font-size:18px; }
  #s-feed .news-sites { margin:7px 0 10px; gap:6px; }
  #s-feed .news-sites a { padding:7px 9px; font-size:11px; }
}

@media (max-width:370px) {
  .te-compact-middle .te-box-visual { width:68px; }
  .te-compact-middle .te-box-art { width:68px !important; height:48px !important; }
  #s-home #h-session .te-live-clock { width:38px; height:38px; flex-basis:38px; }
  #s-home #h-session .te-live-clock::before { left:16px; top:5px; height:12px; transform-origin:50% 14px; }
  #s-home #h-session .te-live-clock::after { left:17px; top:17px; width:10px; }
}

@media (prefers-reduced-motion:reduce) {
  .te-gauge-arc::after,#s-home #h-session .te-timer-panel::before { animation:none !important; }
  .te-gauge-arc::after { transform:rotate(-52deg); }
}

/* Compact Home selected from the approved phone mockup. */
#s-home .te-home-header { padding-bottom:14px; }
.te-growth-mark { margin-right:7px; filter:drop-shadow(0 3px 7px rgba(244,185,66,.22)); }
.te-growth-mark .te-svg { width:30px !important; height:30px !important; stroke-width:2.25 !important; stroke-linecap:round; stroke-linejoin:round; }
.te-compact-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; align-items:center; min-height:142px; margin-top:6px; }
.te-points-gauge { position:relative; min-width:0; min-height:126px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding-bottom:12px; color:#fff; }
.te-gauge-arc { position:absolute; top:6px; left:50%; width:132px; max-width:94%; aspect-ratio:2/1; transform:translateX(-50%); overflow:hidden; }
.te-gauge-arc::before { content:""; position:absolute; inset:0; border:15px solid rgba(164,190,208,.25); border-bottom:0; border-radius:100px 100px 0 0; }
.te-gauge-arc i { position:absolute; inset:0; border:15px solid var(--te-gold-500); border-bottom:0; border-radius:100px 100px 0 0; clip-path:polygon(0 0,72% 0,55% 100%,0 100%); filter:drop-shadow(0 3px 5px rgba(244,185,66,.22)); }
.te-gauge-arc i::after { content:""; position:absolute; right:27%; bottom:-3px; width:42px; height:4px; border-radius:5px; background:#ffe087; transform:rotate(-42deg); transform-origin:right center; }
.te-points-gauge strong { position:relative; z-index:2; font-size:38px; line-height:1; font-weight:780; font-variant-numeric:tabular-nums; }
.te-points-gauge small { position:relative; z-index:2; margin-top:4px; color:#dce6ed; font-size:12px; }
.te-compact-shares { min-width:0; color:#fff; text-align:center; }
.te-compact-shares h1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; font-weight:700; }
.te-compact-shares>p { margin:2px 0 7px; color:#c4d2dc; font-size:10px; }
.te-compact-shares .te-share-number { display:block; margin:0 !important; color:#fff; font-size:35px !important; font-weight:650; letter-spacing:-.04em; }
.te-compact-shares>.te-label { display:block; color:#fff; font-size:11px; font-weight:700; text-transform:none; letter-spacing:.01em; }
.te-compact-shares .te-share-meta { margin:6px auto 0; max-width:170px; gap:0; color:#c7d4dd; font-size:9px !important; }
.te-compact-shares .te-share-meta .te-share-points { display:none; }
.te-compact-shares .te-share-meta .te-share-value { color:#8fe3b4; font-size:10px; }
.te-compact-shares .te-share-meta small { color:#bac9d3; font-size:8px; }
.te-compact-middle { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:9px; margin-top:2px; }
.te-compact-middle .te-box-card { position:relative; min-height:104px; border-radius:17px; }
.te-compact-middle .te-box-visual { position:absolute; top:9px; right:8px; width:66px; min-height:45px; opacity:.92; }
.te-compact-middle .te-box-art { width:65px !important; height:45px !important; }
.te-compact-middle .te-box-copy { align-self:end; }
.te-compact-middle .te-box-card #rail-rate { font-size:clamp(16px,4.7vw,23px) !important; }
.te-compact-middle .te-checklist { min-height:104px; margin:0; padding:13px 12px 10px; border-radius:17px; background:var(--te-ivory); color:var(--te-ink); }
.te-compact-middle .te-check-head { display:grid; grid-template-columns:25px minmax(0,1fr); gap:3px 7px; align-items:center; }
.te-compact-middle .te-check-head .te-svg { grid-row:1/3; color:var(--te-gold-500); }
.te-compact-middle .te-check-head b { color:var(--te-ink); font-size:13px; }
.te-compact-middle .te-check-head>span { font-size:18px; font-weight:800; }
.te-compact-middle .te-check-head a { grid-column:1/3; min-height:22px; margin-top:1px; color:#826018; font-size:10px; text-align:right; }
.te-compact-middle .te-check-progress { margin:6px 0 0 32px; }
.te-quick-actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:9px; }
.te-quick-actions button { min-height:72px; border-radius:15px; background:var(--te-ivory); color:var(--te-ink); border-color:rgba(244,185,66,.35); }
.te-quick-actions button:active { background:#fff3d5; }
.te-quick-actions .te-quick-icon { width:27px; height:27px; color:#d99109; }
.te-quick-actions span { font-size:11px; }
.te-quick-actions b { color:#cf8500; }
#s-home .te-home-wrap { padding-top:11px; }
#s-home #h-session { border-radius:20px; }

@media (max-width:380px) {
  .te-compact-summary { min-height:128px; }
  .te-points-gauge { min-height:116px; }
  .te-gauge-arc { width:116px; }
  .te-points-gauge strong { font-size:34px; }
  .te-compact-shares .te-share-number { font-size:31px !important; }
  .te-compact-middle .te-box-card,.te-compact-middle .te-checklist { min-height:98px; }
  .te-quick-actions button { min-height:68px; }
}

/* Phone-height optimization: keep the complete dashboard and session context visible sooner. */
@media (max-width:480px) {
  #s-home .te-home-header { padding:max(82px,calc(env(safe-area-inset-top) + 55px)) 12px 11px; border-radius:0 0 22px 22px; }
  #s-home .te-brand-row { min-height:44px; padding:max(39px,calc(env(safe-area-inset-top) + 5px)) 12px 5px; }
  #s-home .te-brand strong { font-size:25px; }
  #s-home .te-brand small { margin-top:0; font-size:9px; }
  #s-home .te-round-button { width:38px; height:38px; }
  .te-growth-mark .te-svg { width:24px !important; height:24px !important; }
  .te-compact-summary { min-height:105px; margin-top:0; gap:6px; }
  .te-points-gauge { min-height:98px; padding-bottom:7px; }
  .te-gauge-arc { top:3px; width:102px; }
  .te-gauge-arc::before,.te-gauge-arc i { border-width:12px; }
  .te-points-gauge strong { font-size:30px; }
  .te-points-gauge small { margin-top:2px; font-size:10px; }
  .te-compact-shares h1 { font-size:13px; }
  .te-compact-shares>p { margin:1px 0 3px; font-size:9px; }
  .te-compact-shares .te-share-number { font-size:28px !important; }
  .te-compact-shares>.te-label { font-size:9.5px; }
  .te-compact-shares .te-share-meta { margin-top:3px; line-height:1.18 !important; }
  .te-compact-shares .te-share-meta .te-share-value { font-size:9px; }
  .te-compact-shares .te-share-meta small { font-size:7.5px; }
  .te-compact-middle { gap:7px; }
  .te-compact-middle .te-box-card,.te-compact-middle .te-checklist { min-height:83px; border-radius:15px; }
  .te-compact-middle .te-box-card { padding:8px 9px !important; }
  .te-compact-middle .te-box-kicker { font-size:7.5px; }
  .te-compact-middle .te-box-visual { top:5px; right:4px; width:55px; min-height:38px; }
  .te-compact-middle .te-box-art { width:54px !important; height:38px !important; }
  .te-compact-middle .te-box-title { font-size:9px !important; }
  .te-compact-middle .te-box-card #rail-rate { font-size:17px !important; }
  .te-compact-middle .te-checklist { padding:9px 9px 7px; }
  .te-compact-middle .te-check-head { grid-template-columns:20px minmax(0,1fr); gap:1px 5px; }
  .te-compact-middle .te-check-head .te-svg { width:18px; height:18px; }
  .te-compact-middle .te-check-head b { font-size:11px; }
  .te-compact-middle .te-check-head>span { font-size:15px; }
  .te-compact-middle .te-check-head a { min-height:18px; font-size:8.5px; }
  .te-compact-middle .te-check-progress { height:5px; margin:3px 0 0 25px; }
  .te-quick-actions { gap:6px; margin-top:7px; }
  .te-quick-actions button { min-height:55px; gap:2px; padding:4px 2px; border-radius:13px; }
  .te-quick-actions .te-quick-icon { width:21px; height:21px; }
  .te-quick-actions span,.te-quick-actions b { font-size:9px; }
  #s-home .te-home-wrap { padding:9px 12px 24px; }
  #s-home .tapcard { padding:13px 12px; border-radius:20px; }
  #s-home #h-session .te-session-head { margin-bottom:5px; font-size:10px; }
  #s-home #h-session h3 { font-size:17px; }
  #s-home #h-session .tap-explain { margin:3px 0 7px; font-size:11px; }

  /* Active session redesigned to stay compact and legible. */
  #s-home #h-session .te-session-grid { grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr); gap:8px; align-items:center; }
  #s-home #h-session .te-session-info { grid-column:1; grid-row:1; display:grid; grid-template-columns:1fr; gap:7px; }
  #s-home #h-session .miner-stage { grid-column:2; grid-row:1; width:100%; max-width:185px; aspect-ratio:1/1; border-radius:28px; }
  #s-home #h-session .te-timer-panel { min-height:100px; padding:9px 9px 7px !important; border-radius:15px; }
  #s-home #h-session .session-pending { min-height:86px; padding:9px; border-radius:15px; }
  #s-home #h-session .session-pending b { font-size:11px; }
  #s-home #h-session .session-pending span { font-size:9.5px; }
  #s-home #h-session .te-timer-label { gap:5px; font-size:9px; }
  #s-home #h-session .te-live-clock { width:20px; height:20px; flex-basis:20px; }
  #s-home #h-session .te-live-clock::before { left:7px; top:3px; height:6px; transform-origin:50% 7px; }
  #s-home #h-session .te-live-clock::after { left:8px; top:8px; }
  #s-home #h-session .session-timer b { margin-top:2px; font-size:27px !important; }
  #s-home #h-session .te-market-pulse { left:8px; right:8px; bottom:4px; width:calc(100% - 16px); height:29px; opacity:.64; }
  #s-home #h-session .te-market-caption { display:none; }
  #s-home #h-session .te-session-footer { margin-top:8px; padding-top:8px; }
  #s-home #h-session .te-rate-icon { width:34px; height:34px; }
  #s-home #h-session .te-rate-value { font-size:20px; }
  #s-home #h-session .te-view-details { min-height:40px; padding:8px 11px; font-size:11px; }
  #s-home #h-session .badges { margin-top:7px; gap:4px; }
  #s-home #h-session .badges .badge { padding:3px 7px; font-size:8px; }
  #s-home .te-secondary { gap:7px; }
  #s-home .te-secondary .card { min-height:92px; padding:11px; border-radius:15px; }
  #s-home .te-secondary h3 { font-size:13px; }
  #s-home .te-secondary .small { font-size:9px; line-height:1.3; }
  #s-home #h-next,#s-home #h-mission,#s-home .te-home-wrap>details { padding:11px; border-radius:15px; }
  #s-home #h-next h3,#s-home #h-mission h3 { font-size:13px; }
  #s-home #h-next .task { margin-top:6px; }
  #s-home #h-next .task .ic { width:34px; height:34px; }
  #s-home #h-next .task .t b { font-size:11px; line-height:1.25; }
  #s-home #h-next .task .t small,#s-home #h-mission p { font-size:8.5px; line-height:1.35; }
  #s-home #h-next .btn { min-height:40px; padding:8px; font-size:10px; }
  #s-home #h-mission .bar { margin-top:6px; }
  #s-home .te-home-wrap>details summary { font-size:12px; }
}

/* v26 cascade seal: these final rules intentionally win every legacy phone breakpoint. */
.te-gauge-arc { overflow:hidden !important; filter:drop-shadow(0 7px 10px rgba(2,17,28,.28)) !important; }
.te-gauge-arc::before { background:none !important; -webkit-mask:none !important; mask:none !important; border-color:rgba(130,165,188,.28) !important; }
.te-gauge-arc i { clip-path:polygon(0 0,68% 0,55% 100%,0 100%) !important; }
.te-gauge-arc i::after { content:none !important; }
.te-gauge-arc::after { animation:te-quiet-accelerator 7.2s cubic-bezier(.3,.7,.25,1) infinite !important; }
.te-points-gauge::after { display:none !important; }
#s-home #h-session .te-timer-panel::before,#s-home #h-session .te-timer-panel::after { content:none !important; }
#s-home #h-session .te-countdown-dial .te-live-clock { width:42px !important; height:42px !important; flex-basis:42px !important; border:0 !important; }
#s-home #h-session .te-countdown-dial .te-live-clock::before { left:19px !important; top:7px !important; height:13px !important; transform-origin:50% 14px !important; }
#s-home #h-session .te-countdown-dial .te-live-clock::after { left:20px !important; top:20px !important; width:11px !important; }

@media (max-width:480px) {
  .te-gauge-arc { width:108px !important; }
  .te-gauge-arc::before,.te-gauge-arc i { border-width:13px !important; }
  .te-points-gauge strong { font-size:32px !important; text-shadow:0 2px 4px rgba(2,17,28,.45); }
  .te-compact-middle .te-box-card { min-height:100px !important; padding:7px 10px !important; }
  .te-compact-middle .te-box-visual { top:1px !important; right:13px !important; width:104px !important; min-height:68px !important; opacity:1 !important; }
  .te-compact-middle .te-box-art { width:102px !important; height:69px !important; }
  .te-compact-middle .te-box-copy { max-width:calc(100% - 82px) !important; }
  .te-compact-middle .te-box-card #rail-rate { font-size:19px !important; }
  #s-home .te-home-header { padding-bottom:7px !important; }
  #s-home .te-home-wrap { padding-top:5px !important; }
  #s-home .tapcard { padding:10px 10px 9px !important; }
  #s-home #h-session .te-session-head { margin-bottom:2px !important; }
  #s-home #h-session h3 { margin:2px 0 0 !important; font-size:16px !important; line-height:1.18 !important; }
  #s-home #h-session .tap-explain { margin:2px 0 5px !important; font-size:10px !important; line-height:1.28 !important; }
  #s-home #h-session .te-session-grid { gap:7px !important; }
  #s-home #h-session .te-session-info { gap:5px !important; }
  #s-home #h-session .te-timer-panel { min-height:82px !important; padding:8px !important; display:flex !important; align-items:center; gap:8px; border:1px solid rgba(13,43,67,.14) !important; background:#fffaf0 !important; }
  #s-home #h-session .session-timer b { margin-top:0 !important; font-size:22px !important; line-height:1 !important; }
  #s-home #h-session .session-pending { min-height:63px !important; padding:7px 8px !important; }
  #s-home #h-session .session-pending b { font-size:10px !important; line-height:1.2 !important; }
  #s-home #h-session .session-pending span { margin-top:2px; font-size:8.5px !important; line-height:1.25 !important; }
  #s-home #h-session .miner-stage { max-width:154px !important; border-radius:22px !important; }
  #s-home #h-session .te-session-footer { margin-top:5px !important; padding-top:6px !important; }
  #s-home #h-session .te-rate-icon { width:30px !important; height:30px !important; }
  #s-home #h-session .te-rate-value { font-size:18px !important; }
  #s-home #h-session .te-rate-label { font-size:8px !important; }
  #s-home #h-session .te-view-details { min-height:36px !important; padding:6px 10px !important; font-size:10px !important; }
  #s-home #h-session .badges,#s-home #h-session .te-session-note { display:none !important; }
  #s-home .te-secondary { margin-top:7px !important; }
  #s-home .te-secondary .card { min-height:82px !important; padding:9px 10px !important; }
}

@media (max-width:370px) {
  .te-compact-middle .te-box-visual { right:8px !important; width:88px !important; }
  .te-compact-middle .te-box-art { width:88px !important; height:60px !important; }
}

@media (prefers-reduced-motion:reduce) {
  .te-gauge-arc::after,.te-countdown-dial::before { animation:none !important; }
}

/* v26 timer containment: defeat the legacy blanket span layout inside timer panels. */
#s-home #h-session .te-timer-panel .te-countdown-copy {
  display:grid !important; grid-template-columns:minmax(0,1fr); flex:1 1 auto;
  min-width:0; align-content:center;
}
#s-home #h-session .te-timer-panel .te-countdown-copy>* { display:block !important; min-width:0; }
#s-home #h-session .te-timer-panel .te-countdown-copy .session-timer { display:block !important; }
#s-home #h-session .te-timer-panel .te-countdown-copy .session-timer b { display:block; white-space:nowrap; }

@media (max-width:480px) {
  .te-compact-middle .te-box-kicker { visibility:hidden; }
  .te-compact-middle .te-box-visual {
    left:50% !important; right:auto !important; top:-1px !important;
    transform:translateX(-50%); width:108px !important;
  }
  .te-compact-middle .te-box-copy { max-width:calc(100% - 26px) !important; }
  #s-home #h-session .te-timer-panel .te-countdown-copy small { font-size:8px !important; }
}

/* v27: static premium points balance and hero-size treasure artwork. */
.te-points-gauge {
  min-height:92px !important; padding:12px 10px 10px !important;
  justify-content:center !important; border:1px solid rgba(244,185,66,.38);
  border-radius:20px; overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  box-shadow:inset 0 1px rgba(255,255,255,.09),0 10px 24px rgba(2,17,28,.2);
}
.te-points-gauge::before {
  content:"AVAILABLE POINTS"; position:static; display:block;
  margin-bottom:2px; color:var(--te-gold-300); font-size:9px; line-height:1;
  font-weight:850; letter-spacing:.15em;
}
.te-points-gauge::after,.te-gauge-arc { display:none !important; animation:none !important; }
.te-points-gauge strong {
  position:static; color:#fff; font-size:42px !important; line-height:1 !important;
  font-weight:760; letter-spacing:-.045em; text-shadow:none !important;
}
.te-points-gauge small {
  position:static; margin-top:2px !important; color:#d7e1e8 !important;
  font-size:11px !important; line-height:1.1;
}

.te-box-card::before,.te-box-art,.te-box-spark { animation:none !important; }
.te-compact-middle .te-box-card { min-height:116px !important; }
.te-compact-middle .te-box-visual {
  left:50% !important; top:-7px !important; width:146px !important;
  min-height:96px !important; transform:translateX(-50%);
}
.te-compact-middle .te-box-art { width:142px !important; height:96px !important; }
.te-compact-middle .te-box-copy {
  z-index:4; max-width:calc(100% - 24px) !important;
  padding:3px 5px; border-radius:8px;
  background:linear-gradient(90deg,rgba(3,43,39,.92),rgba(3,43,39,.62),transparent);
}
.te-compact-middle .te-box-title { color:#d9f6e9 !important; }

@media (max-width:370px) {
  .te-points-gauge { min-height:86px !important; }
  .te-points-gauge strong { font-size:38px !important; }
  .te-compact-middle .te-box-visual { width:126px !important; }
  .te-compact-middle .te-box-art { width:124px !important; height:84px !important; }
}

/* v28 cascade seal: keep the redesigned compact Home above all legacy breakpoints. */
@media (max-width:480px) {
  .te-compact-summary { min-height:88px !important; }
  .te-points-gauge { min-height:76px !important; padding:7px 8px !important; border-radius:16px; }
  .te-points-gauge::before { font-size:7.5px; }
  .te-points-gauge strong { font-size:35px !important; }
  .te-points-gauge small { font-size:9px !important; }
  .te-compact-shares .te-share-number { font-size:26px !important; }
  .te-compact-middle .te-box-card {
    min-height:88px !important; overflow:hidden; border:1px solid rgba(244,185,66,.62) !important;
    background:radial-gradient(circle at 31% 38%,rgba(244,185,66,.18),transparent 34%),linear-gradient(145deg,#102f49,#071c2d 76%) !important;
    box-shadow:inset 0 1px rgba(255,255,255,.12),0 8px 18px rgba(2,17,28,.22) !important;
  }
  .te-compact-middle .te-box-visual {
    left:7px !important; right:auto !important; top:-4px !important; width:104px !important;
    min-height:88px !important; transform:none !important; opacity:1 !important;
  }
  .te-compact-middle .te-box-art { width:104px !important; height:88px !important; }
  .te-compact-middle .te-box-art img { width:100%; height:100%; object-fit:cover; border-radius:12px; }
  .te-compact-middle .te-box-copy {
    margin-left:88px; max-width:calc(100% - 92px) !important; padding:3px 4px !important;
    background:linear-gradient(90deg,rgba(7,28,45,.96),rgba(7,28,45,.78),transparent) !important;
  }
  .te-compact-middle .te-box-title { color:#f7e6b0 !important; font-size:8.5px !important; }
  .te-compact-middle .te-box-card #rail-rate { color:#fff !important; font-size:17px !important; }
  .te-compact-middle .te-box-arrow { right:7px !important; bottom:7px !important; }
  .te-compact-middle .te-checklist { min-height:88px !important; }
  .te-quick-actions { margin-top:6px !important; gap:5px !important; }
  .te-quick-actions button { min-height:47px !important; padding:3px 2px !important; border-radius:12px !important; }
  .te-quick-actions .te-quick-icon { width:18px !important; height:18px !important; }
  .te-quick-actions span,.te-quick-actions b { font-size:8px !important; }
  #s-home .te-home-wrap { padding-top:4px !important; }
  #s-home #h-session .miner-stage { max-width:148px !important; }
}

@media (max-width:410px) {
  #s-home #h-session .te-timer-panel { gap:3px !important; padding:6px !important; }
  #s-home #h-session .te-countdown-dial { width:42px !important; height:42px !important; flex:0 0 42px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock { width:30px !important; height:30px !important; flex-basis:30px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock::before { left:13px !important; top:5px !important; height:9px !important; transform-origin:50% 10px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock::after { left:14px !important; top:14px !important; width:8px !important; }
  #s-home #h-session .session-timer b { font-size:17px !important; letter-spacing:-.05em !important; }
  #s-home #h-session .te-timer-label { font-size:7.5px !important; letter-spacing:.08em !important; }
  #s-home #h-session .te-timer-panel .te-countdown-copy small { font-size:6.5px !important; letter-spacing:.06em; }
}

/* v29 treasure frame final cascade. */
@media (max-width:480px) {
  .te-compact-middle .te-box-card {
    isolation:isolate; min-height:92px !important; padding:0 !important; overflow:hidden;
    border:1px solid rgba(244,185,66,.72) !important; border-radius:17px !important;
    background:#06192a !important; box-shadow:inset 0 1px rgba(255,255,255,.14),0 10px 22px rgba(2,17,28,.3) !important;
  }
  .te-compact-middle .te-box-card::after {
    content:""; position:absolute; z-index:2; inset:0;
    background:linear-gradient(90deg,transparent 0 47%,rgba(4,19,32,.28) 58%,rgba(4,19,32,.97) 79%); pointer-events:none;
  }
  .te-compact-middle .te-box-visual { inset:0 !important; width:100% !important; min-height:100% !important; transform:none !important; }
  .te-compact-middle .te-box-art { width:100% !important; height:100% !important; }
  .te-compact-middle .te-box-art img { width:100%; height:100%; object-fit:cover; object-position:left center; border-radius:0; }
  .te-compact-middle .te-box-kicker {
    visibility:visible !important; position:absolute; z-index:4; top:8px; right:9px;
    padding:3px 6px; border:1px solid rgba(244,185,66,.38); border-radius:999px;
    background:rgba(4,19,32,.78); color:#f7d77a !important; font-size:6.5px !important; letter-spacing:.12em;
  }
  .te-compact-middle .te-box-copy {
    position:absolute; z-index:4; right:10px; bottom:9px; width:47%; max-width:47% !important;
    margin:0 !important; padding:0 !important; align-items:flex-start; text-align:left; background:none !important;
  }
  .te-compact-middle .te-box-title { color:#f7e6b0 !important; font-size:8px !important; }
  .te-compact-middle .te-box-card #rail-rate { color:#fff !important; font-size:17px !important; line-height:1 !important; letter-spacing:-.03em; }
  .te-compact-middle .te-box-arrow { z-index:5; right:6px !important; bottom:8px !important; width:17px !important; color:#f4b942 !important; }
}

/* v30 frame polish: no cropped artwork, no large control covering a person. */
.te-earnings-carousel { border:1px solid rgba(13,43,67,.16) !important; background:#fff8e8 !important; box-shadow:inset 0 0 0 4px rgba(255,255,255,.42) !important; }
.te-earnings-carousel .te-earnings-slide img { object-fit:contain !important; object-position:center bottom; }
.te-carousel-toggle {
  top:4px; right:4px; bottom:auto; width:44px; height:44px; min-width:44px; min-height:44px;
  padding:0; border:0; background:transparent; color:transparent; font-size:0; box-shadow:none; backdrop-filter:none;
}
.te-carousel-toggle::before {
  content:"Ⅱ"; display:grid; place-items:center; width:28px; height:28px; margin:auto;
  border:1px solid rgba(255,255,255,.65); border-radius:50%; background:rgba(4,24,39,.76);
  color:#fff; font:800 10px/1 system-ui,sans-serif; box-shadow:0 3px 8px rgba(0,0,0,.2); backdrop-filter:blur(5px);
}
.te-carousel-toggle[aria-pressed="true"]::before { content:"▶"; padding-left:1px; }

@media (max-width:480px) {
  .te-compact-middle .te-box-copy { right:14px !important; width:40% !important; max-width:40% !important; }
  .te-compact-middle .te-box-card #rail-rate { font-size:16px !important; }
  .te-compact-middle .te-box-arrow { top:50% !important; right:3px !important; bottom:auto !important; transform:translateY(-50%); width:14px !important; }
}

/* v31 static points instrument and wider owner-managed picture stage. */
.te-points-gauge {
  min-height:92px !important; padding:5px 8px 7px !important; overflow:visible;
  border:0 !important; border-radius:0; background:transparent !important; box-shadow:none !important;
}
.te-points-gauge::before { content:none !important; }
.te-points-gauge .te-gauge-arc {
  display:block !important; animation:none !important; top:2px !important; width:124px !important;
  filter:drop-shadow(0 8px 10px rgba(2,17,28,.28)) !important;
}
.te-points-gauge .te-gauge-arc::before {
  display:block !important; border:14px solid rgba(106,145,170,.35) !important; border-bottom:0 !important;
  background:none !important;
}
.te-points-gauge .te-gauge-arc i {
  display:block !important; border:14px solid #f4b942 !important; border-bottom:0 !important;
  clip-path:polygon(0 0,69% 0,56% 100%,0 100%) !important; animation:none !important;
}
.te-points-gauge .te-gauge-arc::after {
  content:"" !important; display:block !important; position:absolute; left:50% !important; bottom:-1px !important;
  width:43% !important; height:5px !important; border-radius:6px; transform-origin:left center !important;
  transform:rotate(-57deg) !important; animation:none !important;
  background:linear-gradient(90deg,#fff5c5,#ffd86a) !important; box-shadow:0 0 8px rgba(255,216,106,.5) !important;
}
.te-points-gauge strong { z-index:3; margin-top:34px; font-size:39px !important; }
.te-points-gauge small { z-index:3; }

@media (max-width:480px) {
  #s-home #h-session .te-session-grid { grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr) !important; gap:7px !important; }
  #s-home #h-session .miner-stage { width:100% !important; max-width:none !important; aspect-ratio:1/1 !important; }
  #s-home #h-session .te-timer-panel { gap:3px !important; padding:6px !important; }
  #s-home #h-session .te-countdown-dial { width:42px !important; height:42px !important; flex:0 0 42px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock { width:30px !important; height:30px !important; flex-basis:30px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock::before { left:13px !important; top:5px !important; height:9px !important; transform-origin:50% 10px !important; }
  #s-home #h-session .te-countdown-dial .te-live-clock::after { left:14px !important; top:14px !important; width:8px !important; }
  #s-home #h-session .session-timer b { font-size:17px !important; letter-spacing:-.05em !important; }
  #s-home #h-session .te-timer-label { font-size:7.5px !important; letter-spacing:.08em !important; }
  #s-home #h-session .te-timer-panel .te-countdown-copy small { font-size:6.5px !important; letter-spacing:.05em; }
}

/* v32: clean static curve and a space-efficient landscape earnings frame. */
.te-points-gauge .te-gauge-arc::after {
  content:none !important;
  display:none !important;
  animation:none !important;
}

@media (max-width:480px) {
  #s-home #h-session .te-session-grid {
    align-items:stretch !important;
  }
  #s-home #h-session .te-session-info {
    align-self:stretch;
    grid-template-rows:minmax(0,1fr) minmax(0,1fr);
    align-content:stretch;
  }
  #s-home #h-session .te-timer-panel,
  #s-home #h-session .session-pending {
    height:100%;
    min-height:0 !important;
  }
  #s-home #h-session .miner-stage {
    align-self:stretch;
    aspect-ratio:16/9 !important;
    border-radius:20px !important;
  }
  #s-home #h-session .te-earnings-slide img {
    width:100%;
    height:100%;
    object-fit:cover !important;
    object-position:center center;
  }
}

/* v36: clearer Home branding, treasure calls to action, and shortcuts. */
@media (max-width:480px) {
  #s-home .te-brand small {
    margin-top:4px !important;
    line-height:1.2;
  }
  .te-compact-middle .te-box-card #rail-rate {
    max-width:100%;
    overflow:hidden;
    font-size:16px !important;
    line-height:1.05 !important;
    white-space:nowrap;
  }
  .te-quick-actions button {
    min-height:60px !important;
    padding:6px 3px 5px !important;
    gap:4px !important;
  }
  .te-quick-actions .te-quick-icon {
    width:32px !important;
    height:32px !important;
    padding:6px;
    border-radius:10px;
    stroke-width:2.15;
  }
  .te-quick-actions span {
    font-size:10.5px !important;
    line-height:1.08;
  }
  .te-quick-actions b {
    font-size:9px !important;
  }
  #s-home #h-session .tap-now-btn {
    position:relative;
    width:100%;
    min-height:112px;
    margin:10px 0 12px;
    padding:10px 54px 10px 10px;
    grid-template-columns:112px minmax(0,1fr);
    gap:14px;
    overflow:hidden;
    border:1px solid rgba(255,211,105,.72);
    border-radius:22px;
    background:radial-gradient(circle at 18% 46%,rgba(244,185,66,.2),transparent 34%),linear-gradient(135deg,#071d30,#123d5b);
    box-shadow:inset 0 1px rgba(255,255,255,.14),0 12px 24px rgba(2,17,28,.25);
  }
  #s-home #h-session .tap-now-btn::after {
    content:"›";
    position:absolute;
    right:15px;
    top:50%;
    display:grid;
    place-items:center;
    width:31px;
    height:31px;
    transform:translateY(-50%);
    border:1px solid rgba(255,255,255,.38);
    border-radius:50%;
    background:rgba(255,255,255,.09);
    color:#ffd66c;
    font-size:27px;
    line-height:1;
  }
  #s-home #h-session .tap-now-btn .tap-icon-shell {
    width:112px;
    height:88px;
    border:1px solid rgba(255,211,105,.42);
    border-radius:17px;
    overflow:hidden;
    background:#061829;
    animation:none;
  }
  #s-home #h-session .tap-now-btn img {
    width:100%;
    height:100%;
    border-radius:0;
    object-fit:cover;
    object-position:left center;
    filter:none;
  }
  #s-home #h-session .tap-now-btn b {
    color:#fff7df;
    max-width:190px;
    font-size:18px;
    line-height:1.16;
    letter-spacing:.025em;
    overflow-wrap:normal;
    word-break:normal;
  }
  #s-home #h-session .tap-now-btn small {
    color:#f6cc72;
    font-size:11px;
    line-height:1.32;
  }
}

/* v33: compact premium shortcuts with consistent icon badges. */
@media (max-width:480px) {
  .te-quick-actions {
    gap:6px !important;
    margin-top:7px !important;
  }
  .te-quick-actions button {
    min-height:50px !important;
    padding:5px 3px 4px !important;
    gap:3px !important;
    border:1px solid rgba(218,153,25,.32) !important;
    border-radius:14px !important;
    background:linear-gradient(180deg,#fffdf8,#fff8e9) !important;
    box-shadow:inset 0 1px #fff,0 3px 8px rgba(2,17,28,.10) !important;
  }
  .te-quick-actions .te-quick-icon {
    box-sizing:border-box;
    width:25px !important;
    height:25px !important;
    padding:5px;
    border:1px solid rgba(218,153,25,.28);
    border-radius:9px;
    background:#fff2cf;
    color:#c98200 !important;
  }
  .te-quick-actions span {
    color:#17364d;
    font-size:8.5px !important;
    font-weight:700;
    line-height:1.05;
  }
  .te-quick-actions b {
    margin-top:1px !important;
    color:#b87300 !important;
    font-size:7.5px !important;
  }
}

/* v34: nudge the treasure countdown toward the right-side safe area. */
@media (max-width:480px) {
.te-compact-middle .te-box-copy {
    right:6px !important;
    width:41% !important;
    max-width:41% !important;
  }
}

/* v36 final cascade seal for shortcut legibility. */
@media (max-width:480px) {
  .te-quick-actions button {
    min-height:60px !important;
    padding:6px 3px 5px !important;
    gap:4px !important;
  }
  .te-quick-actions .te-quick-icon {
    width:32px !important;
    height:32px !important;
    padding:6px !important;
    border-radius:10px !important;
  }
  .te-quick-actions span { font-size:10.5px !important; }
.te-quick-actions b { font-size:9px !important; }
}

/* v38: distinct 16:9 press-to-open gift animation for the primary CTA. */
#s-home #h-session .tap-now-btn {
  grid-template-columns:124px minmax(0,1fr);
  gap:13px;
  overflow:hidden;
}
#s-home #h-session .tap-now-btn .tap-icon-shell {
  box-sizing:border-box;
  width:124px;
  height:70px;
  border:1px solid rgba(246,204,114,.46);
  border-radius:15px;
  overflow:hidden;
  background:#071a2c;
  animation:none;
}
#s-home #h-session .tap-now-btn .tap-icon-shell img {
  display:block;
  width:100%;
  height:100%;
  border-radius:0;
  object-fit:cover;
  object-position:center;
  filter:none;
}
#s-home #h-session .tap-now-btn b,
#s-home #h-session .tap-now-btn small { max-width:100%; }
@media (max-width:360px) {
  #s-home #h-session .tap-now-btn { grid-template-columns:104px minmax(0,1fr); gap:10px; }
  #s-home #h-session .tap-now-btn .tap-icon-shell { width:104px; height:59px; }
}

/* v39: one crisp, spacious icon system across all six Home shortcuts. */
#s-home .te-quick-actions { gap:8px !important; }
#s-home .te-quick-actions button {
  box-sizing:border-box;
  min-height:74px !important;
  padding:7px 4px 6px !important;
  gap:4px !important;
  overflow:hidden;
}
#s-home .te-quick-actions .te-quick-badge {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border:1px solid rgba(218,153,25,.34);
  border-radius:13px;
  background:linear-gradient(145deg,#fff9e8,#ffedbd);
  box-shadow:inset 0 1px rgba(255,255,255,.9),0 3px 8px rgba(126,83,0,.10);
}
#s-home .te-quick-actions .te-quick-icon {
  display:block;
  width:25px !important;
  height:25px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#c98200 !important;
}
#s-home .te-quick-actions .te-quick-label {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  color:#17364d;
  font-size:11px !important;
  font-weight:750;
  line-height:1.08;
  white-space:nowrap;
}
#s-home .te-quick-actions .te-quick-label b {
  margin:2px 0 0 !important;
  color:#b87300 !important;
  font-size:9.5px !important;
  line-height:1;
}
@media (max-width:360px) {
  #s-home .te-quick-actions { gap:6px !important; }
  #s-home .te-quick-actions button { min-height:68px !important; padding:5px 2px !important; }
  #s-home .te-quick-actions .te-quick-badge { width:36px; height:36px; flex-basis:36px; border-radius:11px; }
  #s-home .te-quick-actions .te-quick-icon { width:23px !important; height:23px !important; }
  #s-home .te-quick-actions .te-quick-label { font-size:10px !important; }
}

/* v42: keep the box countdown in the artwork's clear upper-right safe area. */
@media (max-width:480px) {
  .te-compact-middle .te-box-copy {
    right:12px !important;
    bottom:15px !important;
    width:35% !important;
    max-width:35% !important;
  }
  .te-compact-middle .te-box-title {
    font-size:8.5px !important;
    line-height:1.15 !important;
    white-space:nowrap;
    text-shadow:0 2px 4px rgba(0,0,0,.85);
  }
  .te-compact-middle .te-box-card #rail-rate {
    font-size:16px !important;
    text-shadow:0 2px 5px rgba(0,0,0,.9);
  }
}
@media (max-width:360px) {
  .te-compact-middle .te-box-copy {
    right:10px !important;
    bottom:14px !important;
    width:37% !important;
    max-width:37% !important;
  }
  .te-compact-middle .te-box-title { font-size:7.5px !important; }
  .te-compact-middle .te-box-card #rail-rate { font-size:15px !important; }
}

/* v43: balanced horizontal shortcut controls that use the whole card. */
#s-home .te-quick-actions button {
  display:grid !important;
  grid-template-columns:42px minmax(0,auto);
  justify-content:center !important;
  align-items:center !important;
  min-height:68px !important;
  padding:8px 7px !important;
  gap:8px !important;
}
#s-home .te-quick-actions .te-quick-badge {
  width:42px;
  height:42px;
  flex-basis:42px;
  border-radius:14px;
}
#s-home .te-quick-actions .te-quick-icon {
  width:27px !important;
  height:27px !important;
  stroke-width:2.15;
}
#s-home .te-quick-actions .te-quick-label {
  align-items:flex-start;
  text-align:left;
  font-size:11.5px !important;
  line-height:1.05;
}
#s-home .te-quick-actions .te-quick-label b {
  font-size:9.5px !important;
}
@media (max-width:360px) {
  #s-home .te-quick-actions button {
    grid-template-columns:36px minmax(0,auto);
    min-height:62px !important;
    padding:6px 4px !important;
    gap:5px !important;
  }
  #s-home .te-quick-actions .te-quick-badge {
    width:36px;
    height:36px;
    flex-basis:36px;
    border-radius:12px;
  }
  #s-home .te-quick-actions .te-quick-icon { width:23px !important; height:23px !important; }
  #s-home .te-quick-actions .te-quick-label { font-size:10px !important; }
}

/* v44: shorten both shortcut rows while retaining accessible touch targets. */
#s-home .te-quick-actions {
  margin-top:6px !important;
  gap:6px !important;
}
#s-home .te-quick-actions button {
  grid-template-columns:34px minmax(0,auto);
  min-height:56px !important;
  padding:5px 6px !important;
  gap:6px !important;
  border-radius:13px !important;
}
#s-home .te-quick-actions .te-quick-badge {
  width:34px;
  height:34px;
  flex-basis:34px;
  border-radius:11px;
}
#s-home .te-quick-actions .te-quick-icon {
  width:22px !important;
  height:22px !important;
}
#s-home .te-quick-actions .te-quick-label { font-size:10.5px !important; }
#s-home .te-quick-actions .te-quick-label b { margin-top:1px !important; font-size:8.5px !important; }
@media (max-width:360px) {
  #s-home .te-quick-actions { gap:5px !important; }
  #s-home .te-quick-actions button {
    grid-template-columns:31px minmax(0,auto);
    min-height:52px !important;
    padding:4px 3px !important;
    gap:4px !important;
  }
  #s-home .te-quick-actions .te-quick-badge { width:31px; height:31px; flex-basis:31px; border-radius:10px; }
  #s-home .te-quick-actions .te-quick-icon { width:20px !important; height:20px !important; }
  #s-home .te-quick-actions .te-quick-label { font-size:9.5px !important; }
}

/* v45: stronger active-session message with balanced mobile typography. */
#s-home #h-session #active-session-title {
  max-width:100%;
  margin:5px auto 2px !important;
  color:#102f49;
  font-size:clamp(19px,4.8vw,24px) !important;
  font-weight:850;
  line-height:1.12 !important;
  letter-spacing:-.025em;
  text-align:center;
  text-wrap:balance;
}
#s-home #h-session #active-session-title + .tap-explain {
  max-width:46ch;
  margin:3px auto 8px !important;
  color:#263f50;
  font-size:clamp(11px,2.9vw,13px) !important;
  font-weight:600;
  line-height:1.45 !important;
  text-align:center;
  text-wrap:pretty;
}

/* v46: readable, vertically centered pending-points status card. */
#s-home #h-session .session-pending {
  box-sizing:border-box;
  display:flex !important;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  min-height:0 !important;
  height:100%;
  margin:0 !important;
  padding:10px 11px !important;
  text-align:left;
}
#s-home #h-session .session-pending b {
  display:flex !important;
  align-items:center;
  gap:5px;
  width:100%;
  color:#126b42;
  font-size:clamp(12px,3.15vw,14px) !important;
  font-weight:850;
  line-height:1.15 !important;
  white-space:nowrap;
}
#s-home #h-session .session-pending b .te-svg {
  width:17px;
  height:17px;
  flex:0 0 17px;
  margin:0 !important;
  color:#17804c;
  vertical-align:0;
}
#s-home #h-session .session-pending b span {
  margin:0 !important;
  color:inherit;
  font-size:inherit !important;
  line-height:inherit !important;
}
#s-home #h-session .session-pending > span {
  display:block;
  margin:6px 0 0 !important;
  color:#356248;
  font-size:clamp(10px,2.65vw,12px) !important;
  font-weight:600;
  line-height:1.4 !important;
}
@media (max-width:360px) {
  #s-home #h-session .session-pending { padding:8px 9px !important; }
  #s-home #h-session .session-pending b { gap:4px; font-size:11px !important; }
  #s-home #h-session .session-pending b .te-svg { width:15px; height:15px; flex-basis:15px; }
  #s-home #h-session .session-pending > span { margin-top:4px !important; font-size:9px !important; }
}

/* v47: a clear gutter between the status column and gallery artwork. */
@media (max-width:480px) {
  #s-home #h-session .te-session-grid { gap:12px !important; }
}
@media (max-width:360px) {
  #s-home #h-session .te-session-grid { gap:10px !important; }
}

/* v48: wider separation without squeezing the status text column. */
@media (max-width:480px) {
  #s-home #h-session .te-session-grid {
    grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr) !important;
    gap:18px !important;
  }
}
@media (max-width:360px) {
  #s-home #h-session .te-session-grid {
    grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr) !important;
    gap:14px !important;
  }
}
