/* Dorax Finance — contributing to a goal and withdrawing from it, the owner's, in the v6 look (v427; the markup: features/phone/r6-goalmove.js;
   the canvas "Aportar-V6" and "Retirar-meta-V6"). The panel itself is only a frame: the whole phone, transparent, no header of its own. In it:
   the goal behind (when opened from it, inert), a shade, and the sheet from the foot, square at the top, on the cards' grey with its edge of
   light. Only while the panel holds .r6gm (the owner on a phone, r6Mine): nothing here leans on :root.r6. */
@media (max-width: 920px) {
  /* ---------- the frame: the panel takes the whole phone and draws nothing of its own ---------- */
  :root #overlay .drawer:has(> .body.r6gm) { top: 0; bottom: 0; left: 0; right: 0; width: 100%; height: 100dvh; max-height: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #EFF1F6; animation: none; }
  :root #overlay .drawer:has(> .body.r6gm) > :is(header, .grab) { display: none; }
  :root #overlay:has(> .drawer > .body.r6gm) > .scrim { background: transparent; animation: none; }
  :root #overlay .drawer > .body.r6gm { position: relative; flex: 1 1 auto; display: block; height: 100%; padding: 0; overflow: hidden; }

  /* the goal behind, as its own panel, still: no movement of its own, nothing to touch */
  :root #overlay .r6gm-under { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  :root #overlay .r6gm-under > .drawer { position: absolute; inset: 0; transform: none; animation: none; }
  :root #overlay .r6gm-under *, :root #overlay .r6gm-under *::before, :root #overlay .r6gm-under *::after { animation: none !important; transition: none !important; }
  :root #overlay .r6gm-dim { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .62); cursor: pointer; -webkit-tap-highlight-color: transparent; }

  /* ---------- the sheet: from the foot, square at the top ---------- */
  :root #overlay .r6gm-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: max(calc(var(--safe-t, 0px) + 40px), calc(100dvh - 648px)); z-index: 20; display: flex; flex-direction: column; box-sizing: border-box; padding: 14px 16px 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 55%), #121414; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 -30px 60px -10px rgba(0, 0, 0, .7); color: #EFF1F6; }
  :root #overlay .r6gm-sheet::-webkit-scrollbar { display: none; }
  :root #overlay .r6gm-sheet :is(button, select):focus-visible { outline: 2px solid #9FD182; outline-offset: 3px; }
  :root #overlay .r6gm .press { transition: transform .34s cubic-bezier(.2, .9, .3, 1.25); -webkit-tap-highlight-color: transparent; }
  :root #overlay .r6gm .press:active { transform: scale(.965); }

  /* the goal: its drawing, what this is, what is set aside; the close in dark glass */
  :root #overlay .r6gm-head { flex: none; display: flex; align-items: center; gap: 12px; }
  :root #overlay .r6gm-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
  :root #overlay .r6gm-ico :is(svg, img) { width: 44px; height: 44px; }
  :root #overlay .r6gm-ht { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  :root #overlay .r6gm-ht h2 { margin: 0; overflow: hidden; color: #EFF1F6; font-size: 18px; font-weight: 500; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
  :root #overlay .r6gm-ht small { color: rgba(239, 241, 246, .55); font-size: 13px; }
  :root #overlay .r6gm-x { all: unset; box-sizing: border-box; flex: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(239, 241, 246, .08); box-shadow: inset 0 0 0 1px rgba(239, 241, 246, .14); color: #EFF1F6; }
  :root #overlay .r6gm-x svg { stroke-width: 2.2; }

  /* the amount: large and light; each digit rolls in; smaller as it grows; more than there is shakes it */
  :root #overlay .r6gm-amt { flex: none; display: flex; flex-direction: column; min-height: 98px; margin-top: 20px; }
  :root #overlay .r6gm-fig { display: flex; align-items: baseline; gap: 6px; height: 62px; }
  :root #overlay .r6gm-sym { color: rgba(239, 241, 246, .45); font-size: 22px; font-weight: 500; }
  :root #overlay .r6gm-n { display: inline-flex; align-items: baseline; color: #EFF1F6; font-size: 58px; font-weight: 300; line-height: 1; letter-spacing: -.045em; transition: font-size .22s ease, color .2s ease; }
  :root #overlay .r6gm-n.m { font-size: 48px; }
  :root #overlay .r6gm-n.s { font-size: 40px; }
  :root #overlay .r6gm-n.zero { color: rgba(239, 241, 246, .35); }
  :root #overlay .r6gm-n > span { display: inline-block; }
  :root #overlay .r6gm-n > .rA { animation: r6gm-rA .28s cubic-bezier(.2, .9, .25, 1.2) both; }
  :root #overlay .r6gm-n > .rB { animation: r6gm-rB .28s cubic-bezier(.2, .9, .25, 1.2) both; }
  @keyframes r6gm-rA { from { opacity: 0; transform: translateY(55%); } to { opacity: 1; transform: none; } }
  @keyframes r6gm-rB { from { opacity: 0; transform: translateY(55%); } to { opacity: 1; transform: none; } }
  :root #overlay .r6gm-fig.shA { animation: r6gm-shA .44s cubic-bezier(.36, .07, .19, .97) both; }
  :root #overlay .r6gm-fig.shB { animation: r6gm-shB .44s cubic-bezier(.36, .07, .19, .97) both; }
  @keyframes r6gm-shA { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
  @keyframes r6gm-shB { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
  :root #overlay .r6gm-note { min-height: 18px; margin-top: 8px; color: rgba(239, 241, 246, .55); font-size: 13.5px; font-weight: 500; line-height: 1.35; transition: color .2s ease; }
  :root #overlay .r6gm-note.warn { color: #FF8A80; }

  /* what it does to the goal */
  :root #overlay .r6gm-bar { flex: none; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
  :root #overlay .r6gm-track { position: relative; display: block; height: 8px; overflow: hidden; border-radius: 4px; background: rgba(239, 241, 246, .1); }
  :root #overlay .r6gm-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #9FD182; transition: left .35s cubic-bezier(.2, .9, .25, 1), width .35s cubic-bezier(.2, .9, .25, 1); }
  :root #overlay .r6gm-track > i.chg { background: rgba(159, 209, 130, .45); }
  :root #overlay .r6gm-bar.out .r6gm-track > i.chg { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(239, 241, 246, .35); }
  :root #overlay .r6gm-bl { display: flex; justify-content: space-between; gap: 12px; color: rgba(239, 241, 246, .55); font-size: 13px; }
  :root #overlay .r6gm-bl b { color: #EFF1F6; font-weight: 500; }
  :root #overlay .r6gm-bl b.go { color: #9FD182; }

  /* where the money goes: one account, an arrow, the other; the one to choose a pill with its picker laid over it */
  :root #overlay .r6gm-ends { flex: none; display: flex; align-items: center; gap: 8px; margin-top: 16px; }
  :root #overlay .r6gm-end { flex: 1 1 0; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 9px; height: 48px; box-sizing: border-box; padding: 0 12px 0 8px; }
  :root #overlay .r6gm-end.pick { flex-grow: 1.4; position: relative; border-radius: 999px; background: rgba(239, 241, 246, .06); box-shadow: inset 0 0 0 1px rgba(239, 241, 246, .14); perspective: 300px; }
  :root #overlay .r6gm-end.pick:has(select:focus-visible) { outline: 2px solid #9FD182; outline-offset: 2px; }
  :root #overlay .r6gm-end.pick > svg { flex: none; color: rgba(239, 241, 246, .55); stroke-width: 2.4; }
  :root #overlay .r6gm-fl { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 9px; }
  :root #overlay .r6gm-fl.flip { animation: r6gm-flip .34s cubic-bezier(.2, .9, .25, 1) both; }
  @keyframes r6gm-flip { from { transform: rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }
  :root #overlay .r6gm-sel { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font-size: 16px; }
  :root #overlay .r6gm-lg { flex: none; display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; background: rgba(239, 241, 246, .08); color: rgba(239, 241, 246, .7); }
  :root #overlay .r6gm-lg :is(.inst, .inst img, img, svg) { width: 30px; height: 30px; border-radius: 50%; }
  :root #overlay .r6gm-lg.none svg { width: 16px; height: 16px; }
  :root #overlay .r6gm-et { min-width: 0; display: flex; flex-direction: column; }
  :root #overlay .r6gm-et small { color: rgba(239, 241, 246, .5); font-size: 11.5px; }
  :root #overlay .r6gm-et b { overflow: hidden; color: #EFF1F6; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  :root #overlay .r6gm-arrow { flex: none; display: grid; color: rgba(239, 241, 246, .45); }
  :root #overlay .r6gm-arrow svg { stroke-width: 2.2; }

  /* the keys: a quick dip when pressed */
  :root #overlay .r6gm-keys { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  :root #overlay .r6gm-key { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; display: grid; place-items: center; height: 52px; border-radius: 16px; background: rgba(239, 241, 246, .06); color: #EFF1F6; font-size: 24px; font-weight: 400;
    transition: background-color .15s ease, transform .2s cubic-bezier(.2, .9, .3, 1.25); }
  :root #overlay .r6gm-key:active { background: rgba(239, 241, 246, .18); transform: scale(.94); }
  :root #overlay .r6gm-key.fn { background: transparent; color: rgba(239, 241, 246, .8); }
  :root #overlay .r6gm-key.fn:active { background: rgba(239, 241, 246, .1); }
  :root #overlay .r6gm-key:focus-visible { outline: 2px solid #9FD182; outline-offset: 2px; }
  :root #overlay .r6gm-key svg { stroke-width: 1.8; }

  /* at the thumb: the one button, lime and flat, with the amount in it */
  :root #overlay .r6gm-foot { flex: none; display: flex; flex-direction: column; margin-top: auto; padding: 14px 4px calc(28px + var(--safe-b, 0px)); }
  :root #overlay .r6gm-go { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 20px; border-radius: 999px; background: #9FD182; color: #101212; font-size: 15px; font-weight: 500; white-space: nowrap; transition: opacity .2s ease, transform .34s cubic-bezier(.2, .9, .3, 1.25); }
  :root #overlay .r6gm-go svg { stroke-width: 2.4; }
  :root #overlay .r6gm-go[aria-disabled="true"] { opacity: .45; }
  :root #overlay .r6gm-go:focus-visible { outline: 2px solid #9FD182; outline-offset: 3px; }

  /* ---------- in and out: the shade fades, the sheet comes up from the foot; going, the same way back, quicker ---------- */
  :root #overlay .r6gm.first .r6gm-sheet { animation: r6gm-up .46s cubic-bezier(.2, .9, .25, 1) var(--r6gm-at, 0ms) both; }
  :root #overlay .r6gm.first .r6gm-dim { animation: r6gm-dim .3s ease var(--r6gm-at, 0ms) both; }
  :root #overlay .r6gm.out .r6gm-sheet { animation: r6gm-down .22s cubic-bezier(.4, 0, .8, .4) both; }
  :root #overlay .r6gm.out .r6gm-dim { animation: r6gm-undim .22s ease-in both; }
  /* closed some other way (Escape, the phone's back): the same way down, while the overlay keeps it a moment (app/overlay.js) */
  :root #overlay.out .r6gm .r6gm-sheet { animation: r6gm-down .22s cubic-bezier(.4, 0, .8, .4) both; }
  :root #overlay.out .r6gm :is(.r6gm-dim, .r6gm-under) { animation: r6gm-undim .22s ease-in both; }
  @keyframes r6gm-up { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes r6gm-down { to { transform: translateY(100%); } }
  @keyframes r6gm-dim { from { opacity: 0; } }
  @keyframes r6gm-undim { to { opacity: 0; } }

  @media (prefers-reduced-motion: reduce) {
    :root #overlay :is(.r6gm-sheet, .r6gm-dim, .r6gm-under, .r6gm-n > span, .r6gm-fig, .r6gm-fl) { animation: none !important; }
    :root #overlay :is(.r6gm-key, .r6gm-go, .r6gm-track > i, .r6gm-n, .r6gm .press) { transition: none; }
  }
}
