  :root {
    --bg: #f3f6f5; --card: #ffffff; --ink: #0f1f1d; --mute: #5f716e; --line: #e3ebe9; --soft: #e8f5f2;
    --brand: #0f766e; --brand2: #14b8a6; --accent: #f59e0b; --up: #dc2626; --down: #059669;
    --head1: #0b3b36; --head2: #0f766e; --shadow: 0 1px 2px rgba(15,31,29,.05), 0 8px 24px rgba(15,31,29,.06);
    --r: 20px;
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #0b1211; --card: #121c1b; --ink: #e7f0ee; --mute: #8fa29f; --line: #1f2d2b; --soft: #14302c;
      --head1: #062421; --head2: #0b4a44; --shadow: 0 1px 2px rgba(0,0,0,.4); }
    .chip, .cat-select, input, select.month option { color-scheme: dark; }
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: smooth; }
  body { margin: 0; font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
  a { color: var(--brand2); }
  button, input, select { font: inherit; color: inherit; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 110px; }
  .muted { color: var(--mute); font-size: 13px; }
  .up { color: var(--up); } .down { color: var(--down); }
  .card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
  .grid { display: grid; gap: 14px; }
  .grid > *, .card { min-width: 0; }
  html, body { overflow-x: hidden; max-width: 100%; }
  @media (max-width: 640px) { input, select, textarea { font-size: 16px !important; } .cat-select, .trip-select { font-size: 16px !important; transform: scale(.75); transform-origin: left center; } }
  .auth { background: var(--card); color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); max-width: 420px; }
  .auth .seg { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
  .auth .seg button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--mute); cursor: pointer; }
  .auth .seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
  .auth input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: 16px; }
  .auth .btn { width: 100%; justify-content: center; padding: 13px; }
  .auth .or { text-align: center; color: var(--mute); font-size: 12px; margin: 14px 0 10px; display: flex; align-items: center; gap: 10px; }
  .auth .or::before, .auth .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
  .auth .err { color: var(--up); font-size: 14px; min-height: 18px; margin: 0 0 8px; }
  .sbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 12px; font-weight: 650; font-size: 15px; cursor: pointer; margin-bottom: 8px; border: 1px solid var(--line); background: #fff; color: #1f1f1f; }
  .sbtn.apple { background: #000; color: #fff; border-color: #000; }
  .sbtn:active { transform: scale(.98); }
  .sbtn svg { width: 18px; height: 18px; flex: none; }
  .tg { width: 100%; justify-content: center; background: #229ed9 !important; margin-top: 8px; }
  .tripbar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13.5px; margin: 8px 0; }
  .tripbar .bar2 { grid-column: 1 / -1; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
  .tripbar .bar2 i { display: block; height: 100%; background: linear-gradient(90deg, #06b6d4, #0f766e); border-radius: 4px; }
  .trip { border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
  .trip.active { border-color: var(--brand2); box-shadow: 0 0 0 3px #14b8a622; }
  .trip .tb { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
  .trip .tb i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #06b6d4, #0f766e); }
  .trip .tb i.over { background: linear-gradient(90deg, #f59e0b, #dc2626); }
  .trip .kp3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
  .trip .kp3 div { background: var(--soft); border-radius: 12px; padding: 8px; text-align: center; }
  .trip .kp3 small { display: block; font-size: 10.5px; color: var(--mute); text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
  .trip .kp3 b { font-size: 15px; }
  .tcfg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
  .tcfg label { font-size: 12px; color: var(--mute); display: grid; gap: 4px; min-width: 0; }
  .tcfg input { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 9px 10px; min-width: 0; width: 100%; }
  .tcfg .full { grid-column: 1 / -1; }
  .trip-select { border: 0; background: transparent; font-size: 12px; color: var(--brand2); padding: 0; max-width: 120px; cursor: pointer; }
  .mv { border: 0; background: var(--soft); color: var(--brand2); font-size: 12px; font-weight: 650; border-radius: 999px; padding: 3px 9px; margin-top: 4px; cursor: pointer; display: inline-block; }
  .tripform { display: flex; gap: 8px; margin-top: 10px; }
  .tripform input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; }
  @media (min-width: 820px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1.2fr 1fr; } }
  h2 { font-size: 13px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 700; display: flex; align-items: center; gap: 8px; }
  h2 .grow { flex: 1; }
  .section { margin-top: 14px; }
  .btn { border: 0; border-radius: 14px; padding: 11px 16px; background: var(--brand); color: #fff; font-weight: 650; cursor: pointer; transition: transform .1s, filter .15s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .btn:active { transform: scale(.97); }
  .btn.ghost { background: transparent; color: var(--brand2); border: 1px solid var(--line); }
  .btn.danger { background: #fee2e2; color: #b91c1c; }
  .btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }

  /* Header */
  header.top { background: radial-gradient(1200px 300px at 80% -50%, #14b8a655, transparent), linear-gradient(160deg, var(--head1), var(--head2)); color: #fff; padding: 18px 16px 90px; }
  header .inner { max-width: 1040px; margin: 0 auto; }
  .bar { display: flex; align-items: center; gap: 10px; }
  .logo { font-weight: 850; font-size: 20px; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
  .logo i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
  .spacer { flex: 1; }
  .month { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 12px; padding: 8px 10px; }
  .month option { color: #000; }
  .streak { background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; cursor: default; }
  .streak.hot { background: linear-gradient(90deg, #f59e0b, #ef4444); animation: glow 2.4s ease-in-out infinite; }
  @keyframes glow { 50% { box-shadow: 0 0 18px #f59e0b88; } }
  .hello { margin-top: 22px; font-size: 15px; opacity: .85; }
  .big { font-size: 42px; font-weight: 850; letter-spacing: -1.5px; margin-top: 2px; }
  .sub { font-size: 14px; opacity: .85; margin-top: 4px; }
  .lift { margin-top: -66px; }

  /* Tabs */
  .tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; padding: 10px 0; background: var(--bg); }
  .tab { flex: 1; border: 0; background: var(--card); border-radius: 14px; padding: 10px 6px; font-weight: 650; font-size: 14px; color: var(--mute); cursor: pointer; box-shadow: var(--shadow); }
  .tab.on { background: var(--brand); color: #fff; }
  @media (max-width: 640px) {
    .tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); gap: 2px; }
    .tab { box-shadow: none; background: transparent; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; }
    .tab b { font-size: 20px; font-weight: 400; }
    .tab.on { background: var(--soft); color: var(--brand2); }
  }
  @media (min-width: 641px) { .tab b { margin-right: 6px; font-weight: 400; } }
  .view { display: none; animation: fade .25s ease; }
  .view.on { display: block; }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } }

  /* Budget ring */
  .hero { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: center; }
  .ring { position: relative; width: 132px; height: 132px; }
  .ring svg { transform: rotate(-90deg); }
  .ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
  .ring .c b { font-size: 24px; letter-spacing: -.5px; display: block; }
  .ring .c span { font-size: 11px; color: var(--mute); }
  .ring circle.fg { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
  .kp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .kp div { background: var(--soft); border-radius: 14px; padding: 10px 12px; }
  .kp small { display: block; color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
  .kp b { font-size: 18px; }
  @media (max-width: 480px) { .hero { grid-template-columns: 110px 1fr; gap: 12px; } .ring { transform: scale(.84); transform-origin: left center; } .hero .kp { grid-template-columns: 1fr; gap: 6px; } .hero .kp div { padding: 7px 10px; } .hero .kp b { font-size: 16px; } }
  .hero > * { min-width: 0; }
  .topbar { max-width: 1040px; margin: 0 auto; padding: 14px 16px 6px; display: flex; align-items: center; gap: 10px; }
  .topbar .logo { color: var(--ink); }
  .topbar .logo i { background: var(--soft); }
  .topbar .pillx { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 14px; color: var(--ink); box-shadow: var(--shadow); }
  .topbar .pillx.hot { background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; border: 0; animation: glow 2.4s ease-in-out infinite; }
  .topbar select.pillx { appearance: none; -webkit-appearance: none; }
  .balance { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 22px 18px; color: #fff; margin-top: 6px;
    background: radial-gradient(120% 140% at 100% 0%, #34d39966 0%, transparent 55%), radial-gradient(90% 120% at 0% 100%, #0ea5e955 0%, transparent 60%), linear-gradient(135deg, #0f766e, #134e4a 70%);
    box-shadow: 0 18px 40px rgba(15, 118, 110, .28); margin-bottom: 14px; }
  .balance::after { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; border: 26px solid rgba(255,255,255,.07); }
  .balance .hi { font-size: 14px; opacity: .85; position: relative; }
  .balance .big { font-size: 44px; font-weight: 850; letter-spacing: -1.5px; margin: 4px 0 2px; position: relative; }
  .balance .bar3 { height: 8px; background: rgba(255,255,255,.18); border-radius: 6px; overflow: hidden; margin: 12px 0 6px; }
  .balance .bar3 i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #a7f3d0, #fde68a); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
  .balance .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; position: relative; }
  .balance .meta span { background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 11px; font-size: 13px; }
  .budget-set { display: flex; gap: 8px; margin-top: 12px; }
  .budget-set input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 9px 12px; }

  /* Quick add */
  .add { display: flex; gap: 8px; }
  .add input { flex: 1; min-width: 0; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 16px; font-size: 17px; outline: none; transition: border-color .15s; }
  .add input:focus { border-color: var(--brand2); }
  .chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; font-size: 14px; cursor: pointer; transition: transform .1s, background .15s; white-space: nowrap; }
  .chip:active { transform: scale(.95); }
  .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

  /* Savings carousel */
  .save-head { display: flex; align-items: center; gap: 14px; }
  .save-head .pig { font-size: 40px; animation: bob 3s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
  .save-head b { font-size: 28px; letter-spacing: -.5px; color: var(--down); }
  .cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 2px 6px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  @media (min-width: 820px) { .cards { grid-auto-columns: minmax(280px, 32%); } }
  .scard { scroll-snap-align: start; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: linear-gradient(180deg, var(--soft), transparent 70%); cursor: pointer; transition: transform .15s; }
  .scard:hover { transform: translateY(-2px); }
  .scard .ic { font-size: 30px; }
  .scard h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.3; }
  .scard .amt { color: var(--down); font-weight: 800; font-size: 14px; }
  .scard p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .scard.open p { -webkit-line-clamp: unset; color: var(--ink); }
  .scard .more { font-size: 12px; color: var(--brand2); font-weight: 700; margin-top: 6px; }

  /* Challenges & badges */
  .chal { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .chal:last-child { border: 0; }
  .chal .ic { width: 42px; height: 42px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-size: 22px; flex: none; }
  .chal .grow { flex: 1; min-width: 0; }
  .chal .grow b { display: block; font-size: 14.5px; }
  .chal.done .ic { background: var(--brand); }
  .badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
  .badge { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--soft); transition: transform .2s; }
  .badge .e { font-size: 30px; display: block; }
  .badge small { display: block; font-size: 11.5px; margin-top: 6px; line-height: 1.25; font-weight: 600; }
  .badge.off { opacity: .35; filter: grayscale(1); }
  .badge:not(.off):hover { transform: scale(1.06) rotate(-2deg); }

  /* Donut */
  .donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: center; }
  @media (max-width: 420px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } }
  .donut { position: relative; width: 170px; height: 170px; }
  .donut path { cursor: pointer; transition: opacity .2s, transform .2s; transform-origin: 85px 85px; }
  .donut path:hover, .donut path.sel { transform: scale(1.05); }
  .donut.has-sel path:not(.sel) { opacity: .3; }
  .donut .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
  .donut .c b { font-size: 18px; display: block; }
  .legend { display: grid; gap: 6px; }
  .lg { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; font-size: 14px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
  .lg:hover, .lg.sel { background: var(--soft); }
  .lg i { width: 12px; height: 12px; border-radius: 4px; }
  .lg .p { color: var(--mute); font-size: 12px; margin-left: 4px; }

  /* Day bars */
  .chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; border-bottom: 1px solid var(--line); position: relative; }
  .chart .b { flex: 1; background: var(--brand2); border-radius: 4px 4px 0 0; min-height: 2px; cursor: pointer; transition: filter .15s, height .8s cubic-bezier(.2,.8,.2,1); }
  .chart .b.we { background: #5eead4; }
  .chart .b.z { background: var(--line); }
  .chart .b.today { background: var(--accent); }
  .chart .b:hover { filter: brightness(1.15); }
  .chart .avg { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--mute); pointer-events: none; }
  .chart .avg span { position: absolute; right: 0; top: -16px; font-size: 10px; color: var(--mute); }
  .days { display: flex; gap: 3px; font-size: 9px; color: var(--mute); margin-top: 4px; }
  .days span { flex: 1; text-align: center; }
  .tipbox { min-height: 20px; font-size: 13px; margin-top: 8px; }

  /* List */
  .list { margin: 0; padding: 0; list-style: none; }
  .list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); animation: fade .2s ease; }
  .list li:last-child { border-bottom: 0; }
  .em { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 19px; }
  .grow { flex: 1; min-width: 0; }
  .grow > b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 620; }
  .amt { font-weight: 750; white-space: nowrap; }
  .x { border: 0; background: none; color: var(--mute); cursor: pointer; font-size: 20px; padding: 4px 6px; border-radius: 8px; }
  .x:hover { background: #fee2e2; color: #b91c1c; }
  .cat-select { border: 0; background: transparent; font-size: 12px; color: var(--mute); padding: 0; max-width: 150px; cursor: pointer; }
  .daygrp { font-size: 12px; font-weight: 700; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; padding: 14px 0 4px; display: flex; justify-content: space-between; }
  .search { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 4px; }

  .tip { border-left: 3px solid var(--brand2); padding: 2px 0 2px 12px; margin: 14px 0; }
  .tip b { display: block; margin-bottom: 4px; }
  .tip p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.5; }
  .toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .toggle input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
  .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .pill { display: inline-block; background: var(--soft); color: var(--brand2); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
  details summary { cursor: pointer; color: var(--brand2); font-weight: 650; margin-top: 8px; }

  .toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 20; max-width: 90vw; text-align: center; }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .confetti { position: fixed; top: -10px; width: 8px; height: 14px; z-index: 30; pointer-events: none; animation: fall 1.6s ease-in forwards; }
  @keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .6; } }

  /* Landing */
  .land header { padding-bottom: 40px; }
  .hero-l { display: grid; gap: 30px; align-items: center; padding: 20px 0 10px; }
  @media (min-width: 860px) { .hero-l { grid-template-columns: 1.1fr .9fr; } }
  .hero-l h1 { font-size: clamp(34px, 6vw, 54px); letter-spacing: -2px; line-height: 1.02; margin: 0 0 16px; }
  .hero-l h1 em { font-style: normal; background: linear-gradient(90deg, #5eead4, #fcd34d); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero-l p { font-size: 18px; line-height: 1.55; opacity: .9; margin: 0 0 22px; }
  .cta { background: #fff; color: var(--head1); padding: 15px 22px; font-size: 16px; border-radius: 16px; }
  .phone { background: #0e1621; border-radius: 30px; padding: 16px 14px; max-width: 340px; margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 6px solid #1b2733; min-height: 380px; }
  .msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; margin: 8px 0; opacity: 0; transform: translateY(8px); transition: all .35s; color: #fff; }
  .msg.show { opacity: 1; transform: none; }
  .msg.me { background: #2b5278; margin-left: auto; border-bottom-right-radius: 4px; }
  .msg.bot { background: #182533; border-bottom-left-radius: 4px; }
  .feat { display: grid; gap: 14px; margin-top: 30px; }
  @media (min-width: 760px) { .feat { grid-template-columns: repeat(3, 1fr); } }
  .feat .card b { font-size: 16px; display: block; margin: 8px 0 6px; }
  .feat .e { font-size: 30px; }
  @media (max-width: 640px) { .feat { grid-template-columns: 1fr 1fr; gap: 10px; } .feat .card { padding: 14px; } .feat .e { font-size: 24px; } .feat .card b { font-size: 14px; margin: 6px 0 4px; } .feat .muted { font-size: 12px; line-height: 1.4; } .howtab span { font-size: 12px; } .howpane { min-height: 0; } .mini { font-size: 13.5px; } }
  .howtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .howtab { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 6px; cursor: pointer; text-align: center; position: relative; overflow: hidden; }
  .howtab b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 10px; background: var(--soft); color: var(--brand2); }
  .howtab span { font-size: 13px; font-weight: 700; }
  .howtab.on { border-color: var(--brand2); }
  .howtab.on b { background: var(--brand); color: #fff; }
  .howtab i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brand2); width: 0; }
  .howtab.on i { animation: prog 5s linear forwards; }
  @keyframes prog { to { width: 100%; } }
  .howpane { margin-top: 14px; min-height: 170px; animation: fade .3s ease; }
  .howpane p { margin: 0 0 10px; line-height: 1.5; }
  .mini { background: var(--soft); border-radius: 16px; padding: 14px; font-size: 14px; line-height: 1.6; }
  .tryin { width: 100%; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 14px 16px; font-size: 17px; outline: none; }
  .tryin:focus { border-color: var(--brand2); }
  .tryout { margin-top: 12px; min-height: 64px; }
  .bubble { display: inline-block; background: var(--soft); border-radius: 16px 16px 16px 4px; padding: 10px 14px; line-height: 1.5; animation: fade .25s ease; }
