/* Wicklio part 1, style B (owner pick): sand background, pastel rounded cards, chunky geometric sans, pill buttons.
   One theme (light), one radius system: cards 24px, sheets 32px, every button and chip a full pill. */

@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/be-vietnam-pro-vietnamese-800-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

:root {
  --sand: #F4EEE6;
  --sand-2: #EAE2D7;
  --sand-3: #E2D8CB;
  --paper: #FBF8F3;
  --ink: #121110;
  --ink-2: #4A4540;
  --muted: #6E6862;
  --mint: #D6F5E0;
  --mint-2: #BDEFCD;
  --peach: #FBDCCB;
  --lavender: #E6DCFA;
  --butter: #FCEFC6;
  --up: #157A36;
  --up-bg: #C4EFD0;
  --down: #C2201F;
  --down-bg: #F9D0D0;
  --tg: #229ED9;
  --danger: #D51E1E;
  --shadow: 0 18px 40px -18px rgba(84, 60, 30, .28);
  --r-card: 24px;
  --r-sheet: 32px;
  --pad: 16px;
  --font: 'Be Vietnam Pro', ui-rounded, system-ui, sans-serif;
  --nav-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sand); }
body {
  margin: 0; min-height: 100dvh; background: var(--sand); color: var(--ink); font-family: var(--font); font-weight: 500;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid #7C5CE0; outline-offset: 2px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* App column: phone width, centered on desktop. */
#app { max-width: 440px; margin: 0 auto; min-height: 100dvh; position: relative; }
.screen { min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 14px) 12px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.screen.bare { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }

/* Buttons: every interactive control is a pill. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 17px; white-space: nowrap; transition: transform .15s ease, background-color .15s ease, opacity .15s ease; user-select: none; -webkit-user-select: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-black { background: var(--ink); color: #FFFDF9; }
.btn-soft { background: var(--sand-2); color: var(--ink); }
.btn-white { background: #FFFDF9; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 18px -10px rgba(84,60,30,.35); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-peach { background: var(--peach); color: var(--ink); }
.btn-lg { min-height: 58px; font-size: 20px; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn-link { font-weight: 800; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; padding: 10px; }
.btn-danger-link { color: var(--danger); font-weight: 800; font-size: 19px; padding: 12px; }
.round { width: 44px; height: 44px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--sand-2); font-size: 22px; }
.round:active { transform: scale(.96); }

/* Header */
.hdr { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px; }
.wordmark { font-weight: 800; font-size: 31px; letter-spacing: -.035em; line-height: 1; margin-right: auto; }
.hdr .btn { min-height: 44px; padding: 0 22px; font-size: 18px; }

/* Template chips */
.chips { display: flex; gap: 5px; padding: 12px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 999px; background: var(--sand-2); font-weight: 700; font-size: 15px; white-space: nowrap; flex: none; }
.chip.on { background: var(--ink); color: #FFFDF9; }
.chip.on svg { font-size: 18px; }
.chip.plus { width: 36px; padding: 0; justify-content: center; font-size: 20px; }
.chip:active { transform: scale(.97); }

/* Tiles */
.tiles { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.tile { position: relative; border-radius: var(--r-card); padding: 16px 14px 14px; background: var(--paper); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .18s ease, box-shadow .18s ease; }
.tile.t-watchlist { background: var(--mint); }
.tile.t-top_movers { background: var(--peach); }
.tile.t-mascot { background: var(--lavender); }
.tile-head { display: flex; align-items: center; gap: 8px; padding: 0 6px 6px; min-height: 36px; }
.tile-title { font-weight: 800; font-size: 25px; letter-spacing: -.025em; margin: 0; margin-right: auto; line-height: 1.1; }
.grip { width: 36px; height: 36px; display: grid; place-items: center; font-size: 26px; border-radius: 999px; touch-action: none; }
.edit .grip { cursor: grab; }
.remove { width: 32px; height: 32px; display: grid; place-items: center; font-size: 34px; color: #E5484D; }
.remove svg { filter: drop-shadow(0 2px 3px rgba(150, 20, 20, .2)); }
.tile.lifted { transform: rotate(-1.2deg) scale(.985); box-shadow: 0 30px 50px -20px rgba(60, 40, 20, .45); z-index: 5; }
.tile-slot { border: 2px dashed #9E86E6; background: rgba(214, 200, 250, .35); border-radius: var(--r-card); }
.tile-foot { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 6px 0; }
.tile-fail { display: flex; align-items: center; gap: 12px; padding: 8px 6px; color: var(--ink-2); font-weight: 700; }

/* Coin rows */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 36px minmax(74px, 1fr) auto minmax(0, 56px) minmax(64px, auto); align-items: center; gap: 7px; padding: 10px 2px; border-top: 1px solid rgba(40, 80, 50, .10); }
.row:first-child { border-top: 0; }
.coin-ic { width: 40px; height: 40px; border-radius: 999px; background: #fff; object-fit: cover; }
.coin-ic.ph { display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--sand-3); }
.sym { font-weight: 800; font-size: 17px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cname { font-size: 13.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-weight: 800; font-size: 16.5px; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price.stale { color: var(--muted); }
.spark { width: 100%; max-width: 56px; height: 30px; display: block; }
@media (max-width: 374px) { .row { grid-template-columns: 34px minmax(72px, 1fr) auto minmax(0, 44px) minmax(58px, auto); gap: 5px; } .row .price { font-size: 15.5px; } .spark { max-width: 44px; } .row .pct { font-size: 13.5px; padding: 0 7px; } }
.pct { justify-self: end; display: inline-flex; align-items: center; height: 30px; padding: 0 9px; border-radius: 999px; font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pct.up { color: var(--up); background: var(--up-bg); }
.pct.down { color: var(--down); background: var(--down-bg); }
.pct.flat, .pct.stale { color: var(--ink-2); background: rgba(0, 0, 0, .07); font-weight: 700; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.edit .row { grid-template-columns: 26px 36px minmax(56px, 1fr) auto minmax(58px, auto) 30px; gap: 5px; }
.edit .row .grip { width: 30px; }
@media (max-width: 1023px) { .edit .row > .spark { display: none; } }
.row .rm { width: 28px; height: 28px; display: grid; place-items: center; font-size: 28px; color: #E5484D; }
.row .grip { width: 36px; height: 36px; font-size: 22px; }
.row.lifted { background: rgba(255, 255, 255, .7); border-radius: 16px; box-shadow: 0 12px 24px -12px rgba(40, 60, 40, .4); position: relative; z-index: 3; }
.row-slot { border: 2px dashed #7FC79A; border-radius: 16px; margin: 4px 0; }

/* Skeletons */
.sk { background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.75), rgba(255,255,255,.35)); background-size: 200% 100%; border-radius: 10px; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Top movers */
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mv-col { background: rgba(255, 250, 245, .72); border-radius: 20px; padding: 12px 8px 8px; min-width: 0; }
.mv-h { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; padding: 0 4px 6px; }
.mv-h.up { color: var(--up); }
.mv-h.down { color: var(--down); }
.mv-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 6px 0; }
.mv-row .coin-ic { width: 28px; height: 28px; }
.mv-row .sym { font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-row .pct { height: 26px; font-size: 13px; padding: 0 6px; letter-spacing: -.01em; }
.wait { display: grid; grid-template-columns: 1fr 44%; align-items: center; min-height: 230px; }
.wait-txt { display: flex; gap: 12px; align-items: flex-start; font-weight: 800; font-size: 25px; line-height: 1.15; color: #6B635B; padding: 0 6px; }
.wait-txt svg { font-size: 38px; flex: none; margin-top: 4px; }

/* Wick tip */
.tip { display: grid; grid-template-columns: 40% 1fr; align-items: end; gap: 6px; min-height: 150px; text-align: left; width: 100%; }
.tip .wick { width: 100%; max-width: 150px; height: auto; margin: -24px 0 -14px -4px; align-self: end; }
.tip-r { display: flex; flex-direction: column; gap: 10px; align-self: center; padding: 6px 2px; }
.tip-title { font-weight: 800; font-size: 26px; letter-spacing: -.025em; }
.bubble { position: relative; background: rgba(255, 252, 248, .8); border-radius: 22px; padding: 14px 16px; font-weight: 700; font-size: 17.5px; line-height: 1.3; }
.bubble::before { content: ''; position: absolute; left: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-right-color: rgba(255, 252, 248, .8); border-left: 0; }
.tip-plain { display: flex; align-items: center; gap: 14px; font-size: 18px; color: var(--ink-2); padding: 6px; }
.tip-plain svg { font-size: 40px; color: var(--ink-2); }

/* Empty watchlist */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 4px 8px 12px; }
.empty img { width: 40%; max-width: 160px; height: auto; }
.empty h3 { font-weight: 800; font-size: 25px; letter-spacing: -.025em; margin: 6px 0 4px; }

/* Banners */
.banner { display: flex; align-items: center; gap: 14px; background: var(--butter); border-radius: var(--r-card); padding: 16px 18px; font-weight: 800; font-size: 19px; margin-top: 10px; }
.banner svg { font-size: 34px; flex: none; }
.editbar { display: flex; align-items: center; gap: 12px; background: var(--lavender); border-radius: 999px; padding: 8px 8px 8px 18px; margin-top: 10px; font-weight: 800; font-size: 20px; }
.editbar svg { font-size: 28px; }
.editbar .btn { margin-left: auto; min-height: 42px; }
.addtile { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px auto 0; font-weight: 800; font-size: 17px; }
.addtile .round { width: 52px; height: 52px; background: var(--ink); color: #FFFDF9; font-size: 26px; }
.attr { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 4px; }

/* Bottom nav */
.nav { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 8px); width: min(440px, 100%); padding: 0 8px; transition: transform .2s ease, opacity .2s ease; }
.nav-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: rgba(251, 248, 243, .96); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px -14px rgba(84, 60, 30, .35), 0 0 0 1px rgba(84, 60, 30, .05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.nav button svg { font-size: 24px; }
.nav button.on { background: var(--sand-2); font-weight: 800; }
body.typing .nav { opacity: 0; pointer-events: none; transform: translate(-50%, 20px); }

/* Sheets and dialogs */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(56, 44, 32, .38); opacity: 0; transition: opacity .22s ease; }
.scrim.in { opacity: 1; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; width: min(440px, 100%); max-height: calc(100dvh - 60px); overflow-y: auto; background: var(--sand); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 12px 12px calc(env(safe-area-inset-bottom) + 20px); transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.2, .9, .25, 1); overscroll-behavior: contain; box-shadow: 0 -10px 40px -20px rgba(84, 60, 30, .4); }
.sheet.in { transform: translate(-50%, 0); }
.sheet.with-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.grab { width: 52px; height: 6px; border-radius: 99px; background: #CFC6BA; margin: 0 auto 10px; }
.sheet-x { position: absolute; right: 16px; top: 16px; font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; }
.sheet h2 { font-weight: 800; font-size: 34px; letter-spacing: -.03em; margin: 8px 8px 18px; line-height: 1.1; }
.dialog { position: fixed; z-index: 41; left: 50%; top: 50%; width: min(360px, calc(100% - 44px)); transform: translate(-50%, -46%) scale(.96); opacity: 0; background: #FFFDF9; border-radius: 34px; padding: 30px 20px 22px; text-align: center; transition: transform .2s ease, opacity .2s ease; box-shadow: var(--shadow); }
.dialog.in { transform: translate(-50%, -50%); opacity: 1; }
.dialog h2 { font-weight: 800; font-size: 28px; letter-spacing: -.025em; margin: 0 0 10px; line-height: 1.12; }
.dialog p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.4; color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .btn { min-height: 52px; font-size: 19px; min-width: 0; padding: 0 16px; }
.two-wide { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 374px) { .two-wide .btn { font-size: 17.5px; padding: 0 14px; } }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); transform: translateX(-50%); background: var(--ink); color: #FFFDF9; border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 15px; max-width: calc(100% - 40px); text-align: center; animation: toast .25s ease; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* Welcome and template pick */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100dvh; min-height: 560px; padding: calc(env(safe-area-inset-top) + 28px) 24px calc(env(safe-area-inset-bottom) + 14px); }
.welcome .big-word { font-weight: 800; font-size: 58px; letter-spacing: -.045em; line-height: 1; margin: 12px 0 18px; }
.speech { position: relative; background: var(--mint); border-radius: 50%; padding: 30px 34px; margin: 0; font-weight: 800; font-size: 21px; line-height: 1.25; max-width: 340px; }
.speech::after { content: ''; position: absolute; left: 22%; bottom: -26px; border: 18px solid transparent; border-top: 30px solid var(--mint); border-bottom: 0; transform: skewX(18deg); }
.welcome .hero { flex: 1 1 auto; min-height: 0; width: 100%; margin: 22px 0 0; position: relative; display: flex; justify-content: center; align-items: flex-end; }
.welcome .hero img { height: 100%; max-height: 400px; width: auto; object-fit: contain; }
.confetti { position: absolute; width: 22px; height: 9px; border-radius: 6px; }
.welcome .btn-lg { margin-top: 16px; flex: none; min-height: 62px; font-size: 23px; }
.tpl-screen h1 { font-weight: 800; font-size: 40px; letter-spacing: -.035em; line-height: 1.08; margin: 30px 10px 22px; }
.tpl-cards { display: flex; flex-direction: column; gap: 12px; }
.tpl { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 12px; padding: 18px 16px; border-radius: var(--r-card); text-align: left; transition: transform .15s ease, box-shadow .15s ease; }
.tpl:active { transform: scale(.985); }
.tpl img { width: 92px; height: 92px; object-fit: contain; margin: 0 auto; }
.tpl b { display: block; font-weight: 800; font-size: 28px; letter-spacing: -.025em; }
.tpl span { display: block; color: var(--ink-2); font-size: 17px; line-height: 1.3; }
.radio { width: 34px; height: 34px; border-radius: 999px; border: 3px solid var(--ink); display: grid; place-items: center; color: #fff; font-size: 18px; }
.on .radio { background: var(--ink); }
.tpl span.radio { color: #fff; display: grid; }
.tpl-peek { display: grid; grid-template-columns: 40% 1fr; align-items: center; margin: 10px 0 14px; }
.tpl-peek img { width: 100%; max-width: 160px; height: 132px; object-fit: contain; }
@media (max-height: 820px) { .tpl-peek img { height: 104px; } .tpl-screen h1 { margin: 18px 10px 16px; } }
.tpl-peek .bubble { background: #FFFBF6; }
.tpl-peek .bubble::before { border-right-color: #FFFBF6; }
.sticky-cta { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 10px); }

/* Full-page flows (email, wallet, telegram, 2fa) */
.flow-hdr { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.flow-hdr h1 { font-weight: 800; font-size: 26px; letter-spacing: -.025em; margin: 0; }
.flow-hdr .wordmark { font-size: 30px; margin: 0; }
.center { text-align: center; }
.flow h2 { font-weight: 800; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 10px; }
.flow p.sub { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; line-height: 1.4; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 20px; position: relative; }
.code-boxes .cb { height: 64px; border-radius: 16px; background: var(--sand-2); display: grid; place-items: center; font-weight: 800; font-size: 30px; border: 2px solid transparent; }
.code-boxes .cb.cur { border-color: var(--ink); background: #FFFBF6; }
.code-boxes input { position: absolute; inset: 0; opacity: 0; font-size: 16px; letter-spacing: 1em; caret-color: transparent; }
.err { color: var(--down); font-weight: 700; font-size: 15px; min-height: 22px; margin: 6px 0; }
.muted { color: var(--muted); }
.field label { display: block; font-weight: 700; font-size: 15px; margin: 0 6px 8px; }
.field input { width: 100%; height: 56px; border-radius: 999px; border: 2px solid var(--sand-3); background: #FFFDF9; padding: 0 22px; font-size: 17px; font-weight: 600; }
.field input:focus { outline: none; border-color: var(--ink); }
.card { border-radius: var(--r-card); padding: 18px; }
.msg-card { background: #FBF6F0; border-radius: 22px; padding: 18px 20px; font-weight: 700; font-size: 19px; line-height: 1.35; word-break: break-word; }
.msg-card div + div { margin-top: 10px; }
.safe { display: grid; grid-template-columns: 1fr 38%; align-items: center; background: var(--mint); border-radius: 22px; padding: 18px; gap: 6px; }
.safe-t { display: flex; gap: 10px; font-weight: 700; font-size: 18px; line-height: 1.3; }
.safe-t svg { font-size: 36px; color: #1FA347; flex: none; }
.safe img { width: 100%; height: auto; }

/* Sign-in sheet */
.signin-top { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin: 0 0 14px; }
.signin-top img { width: 82%; max-width: 190px; margin-left: 14%; }
.signin-top .bubble { background: #E2F7E8; font-weight: 800; font-size: 19px; text-align: center; }
.signin-top .bubble::before { border-right-color: #E2F7E8; }
.methods { display: flex; flex-direction: column; gap: 12px; }
.methods .btn { width: 100%; min-height: 54px; font-size: 19px; }
.methods .btn svg { font-size: 26px; }
.wallet-btn { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; background: var(--peach); border-radius: 999px; min-height: 66px; padding: 8px 22px 8px 26px; text-align: left; }
.wallet-btn svg { font-size: 38px; }
.wallet-btn b { display: block; font-weight: 800; font-size: 21px; }
.wallet-btn span { display: block; color: var(--ink-2); font-size: 14px; }
.fine { text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.4; margin: 14px 10px 4px; }

/* Telegram confirm */
.tg-card { background: #FBF7F2; border-radius: 30px; padding: 28px 18px 18px; text-align: center; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.tg-logo { width: 96px; height: 96px; border-radius: 999px; background: var(--tg); color: #fff; display: grid; place-items: center; font-size: 56px; margin: 0 auto 16px; }
.tg-card h2 { font-weight: 800; font-size: 29px; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 18px; }
.who { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; background: var(--sand-2); border-radius: 26px; padding: 12px 16px; text-align: left; margin-bottom: 16px; }
.avatar { width: 76px; height: 76px; border-radius: 999px; object-fit: cover; background: var(--lavender); display: grid; place-items: center; font-weight: 800; font-size: 28px; overflow: hidden; }
.who b { display: block; font-weight: 800; font-size: 21px; overflow: hidden; text-overflow: ellipsis; }
.who span { color: var(--muted); font-size: 16px; }
.tg-card p { text-align: left; font-size: 16.5px; line-height: 1.45; margin: 0 4px 18px; }

/* Conflict */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { border: 2px solid var(--sand-3); border-radius: 24px; padding: 8px; background: #FFFDF9; text-align: left; display: flex; flex-direction: column; }
.choice.on { border: 3px solid var(--ink); }
.mini { pointer-events: none; height: 250px; overflow: hidden; border-radius: 16px; }
.mini-in { width: 390px; zoom: .38; display: flex; flex-direction: column; gap: 10px; }
.mini .tile { margin: 0; }
.mini .tile-foot { display: none; }
.choice-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 6px 4px; font-weight: 800; font-size: 17px; line-height: 1.2; }
.choice-l .radio { width: 30px; height: 30px; flex: none; }

/* Me */
.profile { display: grid; grid-template-columns: 80px minmax(0, 1fr) 28%; align-items: center; gap: 12px; background: var(--mint); border-radius: var(--r-card); padding: 16px; overflow: hidden; min-height: 170px; }
.profile .avatar { width: 80px; height: 80px; }
.profile b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-weight: 800; font-size: 20px; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; }
.avatar-l { background: #FFB36B; color: #fff; display: grid; place-items: center; border-radius: 999px; font-weight: 800; font-size: 34px; }
.avatar-l svg { font-size: 36px; }
.mrow.sec-row { grid-template-columns: minmax(0, 1fr) auto; }
.cur-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.cur-pill { position: relative; display: inline-flex; align-items: center; }
.cur-pill select { appearance: none; -webkit-appearance: none; border: 0; background: rgba(255, 255, 255, .75); border-radius: 999px; font: inherit; font-weight: 800; height: 40px; padding: 0 38px 0 16px; color: var(--ink); }
.cur-pill svg { position: absolute; right: 13px; pointer-events: none; font-size: 16px; }
.dialog-free { width: min(372px, calc(100% - 24px)); padding: 26px 16px 18px; }
.dialog-free .code-boxes { gap: 6px; }
.dialog-free .code-boxes .cb { height: 54px; font-size: 26px; border-radius: 14px; }
.dialog-free h2 { font-size: 28px; }
.lost-h { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.lost-h h3 { font-weight: 800; font-size: 22px; margin: 0; }
.lost-ic { position: relative; flex: none; width: 66px; height: 66px; display: grid; place-items: center; font-size: 52px; color: #E2A93B; }
.lost-ic i { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: #1FA347; color: #fff; font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: 1px; border-radius: 6px; padding: 1px 5px; }
.done-art { position: relative; }
.done-art .badge { position: absolute; right: 12%; bottom: 10%; font-size: 92px; color: #22B455; filter: drop-shadow(0 8px 12px rgba(20, 110, 50, .3)); }
.done-art .cf { position: absolute; width: 16px; height: 7px; border-radius: 4px; }
.profile span { color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.profile img.wick { width: 100%; height: auto; margin: -8px -6px -24px 0; }
.sect { border-radius: var(--r-card); padding: 18px 16px; margin-top: 14px; }
.sect h3 { font-weight: 800; font-size: 25px; letter-spacing: -.025em; margin: 0 0 10px 4px; text-wrap: balance; }
.mrow { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid rgba(80, 40, 20, .09); }
.mrow:first-of-type { border-top: 0; }
.m-ic { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-size: 22px; color: #fff; }
.mrow b { font-weight: 800; font-size: 19px; }
.mrow small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.mrow small.addr, .profile b.addr { white-space: nowrap; overflow-wrap: normal; }
.profile b.addr { display: block; font-size: 17px; letter-spacing: -.01em; }
.linked { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--up-bg); color: var(--up); font-weight: 800; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #FFFBF6; border-radius: 999px; padding: 4px; border: 1px solid rgba(0, 0, 0, .06); }
.seg button { height: 50px; border-radius: 999px; font-weight: 800; font-size: 19px; }
.seg button.on { background: var(--ink); color: #FFFDF9; }
.info-row { display: flex; justify-content: space-between; align-items: center; background: #FFF8E2; border-radius: 18px; padding: 16px 18px; font-weight: 800; font-size: 18px; }
.out { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }

/* Help */
.help-top { display: flex; flex-direction: column; align-items: center; }
.help-top img { width: 32%; max-width: 116px; }
.help-top h2 { margin: 8px 0 10px; font-size: 32px; }
.faq { border-radius: 24px; margin-top: 12px; overflow: hidden; }
.faq button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px; font-weight: 800; font-size: 19.5px; text-align: left; letter-spacing: -.01em; }
.faq button svg { font-size: 22px; flex: none; }
.faq .ans { padding: 0 20px 20px; font-size: 18px; line-height: 1.4; margin: -4px 0 0; }
.soon { text-align: center; color: var(--muted); font-weight: 700; font-size: 17px; margin: 22px 0 6px; }

/* Search sheet */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 0 2px 12px; }
.search-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px 0 18px; border-radius: 999px; background: var(--sand-2); }
.search-in svg { font-size: 22px; }
.search-in input { flex: 1; min-width: 0; border: 0; background: none; font-size: 18px; font-weight: 600; outline: none; }
.search-in input::-webkit-search-cancel-button, .search-in input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-in .clr { color: #A39B92; font-size: 24px; display: grid; place-items: center; }
.cancel { flex: none; font-weight: 800; font-size: 17px; padding: 8px 4px; }
.res { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 24px; margin-bottom: 10px; }
.res:nth-child(3n+1) { background: var(--mint); }
.res:nth-child(3n+2) { background: var(--lavender); }
.res:nth-child(3n) { background: var(--butter); }
.res .coin-ic { width: 52px; height: 52px; }
.res .sym { font-size: 18px; }
.res .cname.res-sub { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.25; }
.res-sub .rk { white-space: nowrap; }
.res .pv { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.res .pv .pct { height: 26px; font-size: 14px; }
.res .btn { min-height: 40px; }
.search-wick { display: flex; justify-content: center; padding: 18px 0; }
.search-wick img { width: 52%; max-width: 220px; }

/* Tile library */
.lib { border-radius: var(--r-card); padding: 16px 16px 18px; margin-bottom: 12px; }
.lib h3 { font-weight: 800; font-size: 25px; letter-spacing: -.025em; margin: 0 0 12px 4px; }
.lib-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.lib-prev { background: rgba(255, 252, 248, .7); border-radius: 20px; padding: 8px 12px; }
.lib-prev p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.35; padding: 6px 2px; }
.prev-row { display: grid; grid-template-columns: 28px auto 1fr 50px; align-items: center; gap: 8px; padding: 6px 0; }
.prev-row.two { grid-template-columns: 28px 1fr auto; }
.prev-row .coin-ic { width: 28px; height: 28px; }
.prev-row b { font-weight: 800; font-size: 16px; }
.prev-row .pv { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.prev-row .spark { width: 50px; height: 26px; }
.tip-prev { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 6px; background: none; padding: 0; }
.tip-prev .bubble { font-size: 14.5px; font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
.lib .btn-soft { background: rgba(0, 0, 0, .10); color: #5D5852; }
.lib-body .btn { min-width: 0; padding: 0 14px; height: 42px; font-size: 15.5px; }

/* Steps (2FA) */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 8px 0 4px; }
.step { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 21px; background: var(--sand-2); color: var(--ink-2); flex: none; }
.step.on { background: var(--ink); color: #fff; }
.step.done { background: var(--mint-2); color: var(--ink); }
.step-line { width: 56px; height: 4px; background: var(--sand-3); border-radius: 4px; }
.step-line.done { background: #8FE0AB; }
.step-n { text-align: center; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.qr-box { background: var(--mint); border-radius: 30px; padding: 18px; margin: 12px 0; }
.qr-box .qr { background: #fff; border-radius: 22px; padding: 14px; display: grid; place-items: center; width: min(100%, 250px); margin: 0 auto; }
.qr-box svg { width: 100%; height: auto; display: block; }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--lavender); border-radius: 24px; padding: 12px 12px 12px 20px; }
.keybox code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 700; line-height: 1.45; }
.keybox code span { display: block; white-space: nowrap; }
.apps { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.35; margin: 4px 0 6px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; background: var(--butter); border-radius: 24px; padding: 16px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; font-size: 17.5px; text-align: center; letter-spacing: .02em; }
.check { display: flex; align-items: center; gap: 12px; font-size: 17px; margin: 16px 6px; }
.check input { width: 26px; height: 26px; accent-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 640px) {
  body { background: #EFE7DC; }
  #app { background: var(--sand); box-shadow: 0 0 0 1px rgba(84, 60, 30, .06); }
}

/* Narrow phones (360 px class) and the longer Vietnamese labels. */
.lib-body { grid-template-columns: minmax(0, 1fr) auto; }
.lib-prev { min-width: 0; }
.prev-row { grid-template-columns: 24px auto minmax(max-content, 1fr) 42px; gap: 6px; }
.prev-row .coin-ic { width: 24px; height: 24px; }
.prev-row .pv { font-size: 14.5px; }
.prev-row .spark { width: 42px; max-width: 42px; }
@media (max-width: 374px) {
  .chips { gap: 7px; }
  .chips { gap: 5px; }
  .chip { padding: 0 9px; font-size: 13.5px; gap: 3px; height: 36px; }
  .chip.plus { width: 32px; font-size: 18px; }
  .movers { gap: 8px; }
  .mv-col { padding: 10px 6px 6px; }
  .edit .row { grid-template-columns: 24px 30px minmax(60px, 1fr) auto minmax(52px, auto) 26px; gap: 4px; }
  .edit .row .pct { font-size: 12.5px; padding: 0 6px; }
  .edit .row .price { font-size: 15px; }
  .edit .row .coin-ic { width: 30px; height: 30px; }
  .edit .row .grip { width: 28px; }
  .row .rm { width: 24px; height: 24px; font-size: 24px; }
  .profile { grid-template-columns: 62px minmax(0, 1fr) 22%; gap: 10px; padding: 14px 12px; }
  .profile .avatar { width: 62px; height: 62px; }
  .avatar-l { font-size: 28px; }
  .profile b { font-size: 18px; }
  .profile span { font-size: 13.5px; }
  .editbar { font-size: 17px; gap: 8px; padding-left: 14px; }
  .res { grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 8px; padding: 10px; }
  .res .coin-ic { width: 42px; height: 42px; }
  .res .sym { font-size: 16.5px; }
  .res .pv { font-size: 14.5px; }
  .res .pv .pct { height: 24px; font-size: 13px; padding: 0 6px; }
  .res .btn { padding: 0 12px; }
  .tpl { grid-template-columns: 84px 1fr 36px; gap: 10px; padding: 16px 12px; }
  .tpl img { width: 76px; height: 76px; }
  .tpl b { font-size: 25px; }
  .mv-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 5px; }
  .mv-row .coin-ic { width: 24px; height: 24px; }
  .mv-row .sym { font-size: 14px; }
  .mv-row .pct { font-size: 12.5px; padding: 0 5px; height: 24px; }
  .lib-body .btn { padding: 0 12px; font-size: 15px; }
}
/* On 360 px phones the live preview takes the card's width and the button sits under it. */
@media (max-width: 374px) { .lib-body { grid-template-columns: minmax(0, 1fr); gap: 8px; } .lib-body > .btn { justify-self: end; } }

/* Phone layer details (approved 04, 05, 08, 11, 13, 2fa-01): sheets stop below the template chips and the bottom bar
   stays usable above them; sheet art is kept small so the home stays in view behind. */
@media (max-width: 1023px) {
  .sheet { max-height: calc(100dvh - 118px); }
  .faq { margin-top: 9px; }
  .faq button { padding: 15px 18px; font-size: 17.5px; }
  /* 2FA and wallet pages: the bar sits at the foot of the page, after the content, never over a button. */
  .screen.flow:has(> .flow-nav) { position: relative; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 30px); }
  .flow-nav { position: absolute; bottom: calc(env(safe-area-inset-bottom) + 8px); }
  @media (max-height: 860px) { .flow .card > img { max-width: 150px !important; } .flow > img { max-width: 150px !important; } }
  body.nav-over .nav { z-index: 42; }
  .signin-top { margin: 0 0 10px; }
  .signin-top img { max-width: 132px; }
  .signin-top .bubble { font-size: 17px; text-wrap: balance; padding: 12px 14px; }
  .methods { gap: 9px; }
  .methods .btn { min-height: 48px; font-size: 18px; }
  .wallet-btn { min-height: 58px; padding: 6px 18px 6px 20px; grid-template-columns: 44px minmax(0, 1fr); }
  .wallet-btn svg { font-size: 32px; }
  .wallet-btn b { font-size: 19px; }
  .wallet-btn span { font-size: 13px; }
  .sheet .fine { margin: 10px 10px 2px; font-size: 14px; }
  .prompt-art { max-width: 168px !important; }
  .sheet h2.sync-h { font-size: 25px; margin: 4px 6px 12px; }
  .mini { height: 222px; }
  .mini-in { width: 480px; zoom: .285; }
  .choice-l { font-size: 15px; padding: 8px 4px 2px; }
}

/* Phone-only and desktop-only parts. */
@media (max-width: 1023px) { .desk-only { display: none !important; } }
@media (min-width: 1024px) { .mob-only, .flow-nav { display: none !important; } }
.avatar-btn { width: 52px; height: 52px; border-radius: 999px; background: #FFE3D3; overflow: hidden; display: grid; place-items: center; flex: none; }
.avatar-btn img { width: 74%; }

/* Desktop (approved d01-d05): left sidebar, tiles in columns, sheets as centered modals, settings in two columns. */
@media (min-width: 1024px) {
  body { background: var(--sand); }
  #app { max-width: none; background: none; box-shadow: none; }
  #app:has(> [data-layer="main"] > .nav) { padding-left: 200px; }
  .screen { max-width: 1240px; margin: 0 auto; padding: 22px 32px 40px; }
  .screen.flow, .screen.bare { max-width: 560px; }
  .welcome { max-width: 560px; margin: 0 auto; }

  .nav { left: 0; top: 0; bottom: 0; transform: none; width: 200px; padding: 26px 14px; border-right: 1px solid rgba(84, 60, 30, .10); background: var(--sand); display: flex; flex-direction: column; gap: 26px; }
  .nav-brand { font-size: 32px; padding: 0 12px; margin: 0; }
  .nav-in { grid-template-columns: 1fr; gap: 6px; background: none; box-shadow: none; border-radius: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav button { flex-direction: row; justify-content: flex-start; gap: 14px; height: 52px; padding: 0 16px; border-radius: 18px; font-size: 19px; }
  .nav button svg { font-size: 26px; }
  body.typing .nav { opacity: 1; pointer-events: auto; transform: none; }

  .screen.home { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-content: start; }
  .screen.home > * { grid-column: 1 / -1; }
  .screen.home > .chips { grid-row: 1; grid-column: 1; padding: 0; align-self: center; }
  .screen.home > .hdr { grid-row: 1; grid-column: 2; }
  .hdr .wordmark { display: none; }
  .hdr { gap: 14px; padding: 0; min-height: 56px; }
  .chip { height: 46px; padding: 0 24px; font-size: 18px; }
  .chip.plus { display: none; }
  .search-btn { width: 420px; height: 50px; justify-content: flex-start; display: flex; gap: 12px; padding: 0 20px; color: var(--muted); font-size: 18px; font-weight: 600; }
  .search-btn svg { color: var(--ink); font-size: 22px; }
  .customize { justify-self: end; margin-top: 12px; min-height: 46px; padding: 0 26px; font-size: 18px; }
  .editbar { margin-top: 16px; padding: 10px 12px 10px 26px; font-size: 26px; }
  .editbar .btn { min-height: 46px; padding: 0 26px; font-size: 18px; }

  .tiles { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; margin-top: 14px; }
  .methods .btn-email { background: #FFFDF9; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(40, 30, 20, .22); }
  /* Edit mode keeps the live rows; a coin's remove and move controls show on hover or keyboard focus. */
  .edit .row { position: relative; grid-template-columns: 36px minmax(56px, 1fr) auto minmax(0, 64px) minmax(64px, auto); gap: 8px; }
  .edit .row .coin-ic { width: 36px; height: 36px; }
  .edit .row > .rm, .edit .row > .grip { position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .15s ease; background: #FFFDF9; border-radius: 999px; box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .25); }
  .edit .row > .rm { left: -6px; width: 26px; height: 26px; font-size: 26px; }
  .edit .row > .grip { right: -6px; width: 30px; height: 30px; font-size: 18px; }
  .edit .row:hover > .rm, .edit .row:hover > .grip, .edit .row:focus-within > .rm, .edit .row:focus-within > .grip, .edit .row.lifted > .grip { opacity: 1; }
  /* Top movers fills its tile next to a taller watchlist (d01). */
  .tiles > .t-top_movers { display: flex; flex-direction: column; }
  .tiles > .t-top_movers > :last-child { flex: 1; display: flex; flex-direction: column; }
  .tiles > .t-top_movers .movers { flex: 1; }
  .tiles > .t-top_movers .mv-col { display: flex; flex-direction: column; justify-content: space-around; }
  .mv-p { font-size: 14px; color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
  .tiles > .t-mascot { grid-column: 1 / -1; }
  .tile { padding: 22px 22px 18px; }
  .tile-title { font-size: 32px; }
  .row { grid-template-columns: 44px minmax(80px, 1fr) auto minmax(0, 96px) minmax(84px, auto); gap: 14px; padding: 9px 6px; }
  .row .coin-ic { width: 44px; height: 44px; }
  .spark { width: 100%; max-width: 96px; height: 36px; }
  .sym { font-size: 19px; }
  .price { font-size: 20px; }
  .mv-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 9px 4px; }
  .mv-row .coin-ic { width: 40px; height: 40px; }
  .mv-row .sym { font-size: 18px; }
  .mv-row .pct { font-size: 16px; height: 30px; padding: 0 10px; }
  .mv-h { font-size: 21px; }
  .t-mascot .tip { grid-template-columns: 300px 1fr; min-height: 220px; align-items: center; }
  .t-mascot .tip .wick { max-width: 210px; margin: -30px auto -18px; }
  .t-mascot .tip-title { font-size: 40px; }
  .t-mascot .bubble { font-size: 26px; max-width: 640px; padding: 20px 28px; }
  .tiles > .t-mascot { background: var(--butter); }

  .edit-area { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
  .edit .tiles { grid-template-columns: 1fr 1fr; }
  .edit .tile .remove { width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 253, 249, .9); color: var(--ink); font-size: 20px; display: grid; place-items: center; }
  .edit .tile .grip { font-size: 26px; }
  .addpanel { background: #FFFBF6; border-radius: var(--r-card); padding: 22px 18px 0; margin-top: 14px; box-shadow: 0 1px 0 rgba(84, 60, 30, .05); overflow: hidden; position: sticky; top: 20px; }
  .addpanel h2 { font-weight: 800; font-size: 32px; letter-spacing: -.03em; margin: 0 0 14px 4px; }
  .ap-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 2px; }
  .ap-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
  .ap-row b { font-weight: 800; font-size: 18px; }
  .ap-added { background: var(--sand-2); color: #5D5852; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; }
  .ap-wick { width: 70%; max-width: 210px; margin: 12px 0 0 auto; }

  .scrim { background: rgba(56, 44, 32, .30); }
  .sheet { top: 50%; bottom: auto; width: min(460px, calc(100% - 48px)); max-height: calc(100dvh - 64px); border-radius: 34px; padding: 26px 22px 24px; transform: translate(-50%, -47%) scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease; box-shadow: var(--shadow); }
  .sheet.in { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.with-nav { padding-bottom: 24px; }
  .sheet .grab { display: none; }
  .signin-top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .signin-top img { width: 150px; margin: 0; }
  .signin-top .bubble { background: none; font-size: 32px; letter-spacing: -.03em; line-height: 1.12; padding: 0 8px; }
  .signin-top .bubble::before { display: none; }

  .sheet-wide { width: min(1000px, calc(100% - 64px)); padding: 30px 34px 30px; }
  .setup-top { display: grid; grid-template-columns: 1fr 200px; align-items: start; }
  .setup-top h2 { font-size: 38px; margin: 18px 0 0; }
  .setup-top img { width: 150px; margin: -10px 30px -40px auto; }
  .setup-steps { display: flex; justify-content: center; margin: 4px 0 18px; }
  .setup-steps .steps { width: 560px; }
  .setup-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .setup-panels section { border-radius: 26px; padding: 18px; min-height: 330px; background: #EEE9E3; opacity: .75; }
  .setup-panels section.on { opacity: 1; }
  .setup-panels section:nth-child(1) { background: var(--mint); }
  .setup-panels section:nth-child(2) { background: var(--peach); }
  .setup-panels section.done { opacity: 1; }
  .setup-panels h3 { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 20px; margin: 0 0 14px; line-height: 1.2; }
  .setup-panels .pn { flex: none; width: 34px; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .8); display: grid; place-items: center; font-size: 17px; }
  .setup-panels .on .pn { background: #8FE0A8; }
  .qr-sm .qr { width: 190px; padding: 10px; margin: 0 auto; background: #fff; border-radius: 16px; }
  .mk { font-weight: 700; font-size: 15px; margin: 12px 2px 6px; }
  .keybox.sm { background: #fff; padding: 8px 8px 8px 12px; border-radius: 16px; }
  .keybox.sm code { font-size: 13.5px; }
  .code-boxes.ghost .cb { background: rgba(255, 255, 255, .7); }
  .setup-panels .code-boxes { gap: 6px; }
  .setup-panels .code-boxes .cb { width: 40px; height: 52px; font-size: 24px; }
  .p3 svg { font-size: 72px; color: #A39B92; margin: 26px auto 10px; display: block; }
  .codes.sm { font-size: 14.5px; padding: 12px; gap: 6px; }
  .setup-panels .two { margin-top: 10px; }
  .setup-panels .check { font-size: 14.5px; }
  .setup-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
  .setup-foot .btn { width: 200px; }

  .screen.me { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; align-content: start; }
  .screen.me > * { margin: 0 !important; }
  .screen.me > .hdr { grid-column: 1 / -1; }
  .desk-title { font-weight: 800; font-size: 44px; letter-spacing: -.035em; margin: 0 auto 0 0; }
  .me .me-profile { grid-column: 1; grid-row: 2; min-height: 230px; }
  .me .me-sec { grid-column: 2; grid-row: 2; background: var(--lavender); border-radius: var(--r-card); padding: 18px 18px 8px; }
  .me .me-sec h3 { margin: 0 0 6px 4px !important; font-size: 30px !important; }
  .me .me-sec .sect { background: none !important; padding: 0; }
  .me .me-linked { grid-column: 1; grid-row: 3 / span 3; }
  .me .me-lang { grid-column: 2; grid-row: 3; }
  .me .me-display { grid-column: 2; grid-row: 4; }
  .me .me-out { grid-column: 2; grid-row: 5; flex-direction: row; justify-content: center; gap: 40px; }
  .me.guest .me-signin { grid-column: 1; grid-row: 3; }
  .sect h3 { font-size: 30px; }
  .me .mrow { background: rgba(255, 255, 255, .55); border-radius: 16px; border-top: 0; margin-top: 8px; padding: 10px 14px; }
  .me .mrow.sec-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .sec-ic { font-size: 24px; display: grid; place-items: center; }
  .me .me-lang { background: var(--butter) !important; }
  .me .me-display { background: #FFFDF9 !important; }
  .me .cur-row { justify-content: flex-start; }
  .me .cur-pill select { background: var(--sand-2); }
  .screen.home:not(.edit) .tile-head .grip { display: none; }
  .mv-col { padding: 12px 10px 8px; }
  .mv-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; }
  .mv-row .coin-ic { width: 36px; height: 36px; }
  .mv-row .pct { background: none; padding: 0; height: auto; font-size: 17px; }
  .me-ptitle { font-weight: 800; font-size: 30px; letter-spacing: -.025em; margin: 0 0 4px; grid-column: 1 / -1; }
  .me .me-profile { grid-template-columns: 150px minmax(0, 1fr) 24%; align-content: start; }
  .me .me-profile .avatar { width: 150px; height: 150px; }
  .setup-top { position: relative; display: block; min-height: 64px; }
  .setup-top h2 { margin: 6px 180px 0 0; }
  .setup-top img { position: absolute; right: 40px; top: -14px; width: 118px; margin: 0; }
  .setup-steps { margin: 10px 0 16px; }
  .edit .tile { padding: 18px 14px 14px; }
  .edit .movers { gap: 8px; }
  .edit .mv-col { padding: 10px 6px 6px; }
  .edit .mv-row { grid-template-columns: 30px minmax(46px, 1fr) auto; gap: 6px; }
  .edit .mv-row .coin-ic { width: 30px; height: 30px; }
  .edit .mv-row .sym { font-size: 16px; }
  .edit .mv-row .pct { font-size: 15px; }
}
