/* ------------------------------------------------------------------
   /app polish, 2026-11-22: the leftovers of a full pass over every tab (exports/screens/app-audit-20261122).
   One more layer after the atelier skin and the brand layer; styles only, no markup or logic.
   The legacy MomoAppPage sheet loads after everything in <head>, so every rule starts at
   `html body .momo-app-shell` (or `html body` for windows outside the shell) to win on weight.
   ------------------------------------------------------------------ */

/* Rewards with no wallet: a card the size of its message, a full-size plate, snapshots across the page. */
html body .momo-app-shell .momo-app-rewards-empty { min-height: 0; padding-block: 3.5rem; }
html body .momo-app-shell .momo-app-rewards-empty .momo-app-rewards-activate { min-height: 44px; padding: .55rem 1.5rem; font-size: .9rem; }
html body .momo-app-shell .momo-app-rewards-workspace:has(> .momo-app-rewards-empty) .momo-app-reward-snapshots { width: 100%; max-width: none; justify-self: stretch; grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); align-items: start; gap: .6rem; }
html body .momo-app-shell .momo-app-rewards-workspace:has(> .momo-app-rewards-empty) .momo-app-reward-snapshots > h2 { grid-column: 1 / -1; text-align: left; }
html body .momo-app-shell .momo-app-reward-snapshots > h2 { font-size: .8rem; }
html body .momo-app-shell .momo-app-reward-snapshots summary, html body .momo-app-shell .momo-app-reward-snapshots summary > * { font-size: .78rem; }
html body .momo-app-shell .momo-app-reward-snapshots summary { min-height: 44px; }

/* Analytics: the two bare blocks become cards like their neighbours, and the left column fills its rows. */
html body .momo-app-shell .momo-app-tier-breakdown, html body .momo-app-shell .momo-app-fee-mix { border: 1px solid rgba(255, 255, 255, .66); border-radius: 22px; box-shadow: 0 12px 30px -18px rgba(46, 30, 40, .45), inset 0 1px 0 rgba(255, 255, 255, .8); }
html body .momo-app-shell .momo-app-tier-breakdown { padding: .9rem 1rem 1rem; gap: .6rem; }
html body .momo-app-shell .momo-app-tier-breakdown header span, html body .momo-app-shell .momo-app-tier-breakdown header strong, html body .momo-app-shell .momo-app-tier-breakdown small { font-size: .74rem; }
html body .momo-app-shell .momo-app-tier-breakdown span > strong { font-size: .86rem; }
html body .momo-app-shell .momo-app-bento--rewards { display: flex; flex-direction: column; gap: .5rem; }
html body .momo-app-shell .momo-app-bento--rewards .momo-app-fee-mix { flex: 1; margin: 0; display: flex; flex-direction: column; justify-content: center; gap: .45rem; }
html body .momo-app-shell .momo-app-bento--token { display: grid; }
html body .momo-app-shell .momo-app-bento--token .momo-app-stat-grid { height: 100%; }
html body .momo-app-shell .momo-app-data-freshness { font-size: .72rem; }

/* Swap: the chart and the swap panel start on one line. The panel is sticky; its offset was 38px lower
   than where it sits, which pushed it down even before any scroll. */
@media (min-width: 1001px) { html body .momo-app-shell .momo-app-market-workspace > .momo-app-market-action { top: 106px; } }

/* Activate: the two notes run the width of the blocks under them, in a readable size. */
html body .momo-app-shell .momo-app-notice.momo-app-notice--activation { width: 100%; max-width: none; font-size: .8rem; }

/* Prize Draw: the same side margins as every other tab. */
html body .momo-app-shell .momo-app-page > .momo-raffle { width: 100%; max-width: none; margin-inline: 0; padding-inline: 0; }

/* Connect to Momo: rounded like everything else (a sheet on phones keeps its own top corners). */
@media (min-width: 701px) { html body .momo-app-wallet-connect-modal { border-radius: 22px; } }
html body .momo-app-wallet-connect-modal .reveal-icon-button { border-radius: 999px; }
html body .momo-app-wallet-connect-modal .reveal-wallet-section :is(button, a) { border-radius: 14px; }
html body .momo-app-wallet-connect-modal .reveal-wallet-section :is(button, a) :is(img, svg, span:first-child:has(img, svg)) { border-radius: 10px; }

/* Phone "More": no Japanese duplicates outside the header. */
@media (max-width: 700px) {
  html body .momo-app-shell .momo-app-nav .momo-app-more-menu > :is(a, button)::after { content: none !important; }
  html body .momo-app-shell .momo-app-nav .momo-app-more-menu > a.momo-app-more-atelier.momo-app-more-atelier:not(.momo-app-more-raffles)::after { content: "↗" / "" !important; }
}
html body .momo-app-shell .momo-app-reward-snapshots summary > strong { white-space: nowrap; }
@media (max-width: 700px) { html body .momo-app-shell .momo-app-reward-snapshots summary, html body .momo-app-shell .momo-app-reward-snapshots summary > * { font-size: .72rem; } }
