/* Dorax Finance — a fixed cost opened, the owner's, in the v6 look (v350; the markup: features/phone/r6-linev.js, the canvas "Gasto-fijo-abierto-V6").
   The panel takes the whole screen on the page's black #070808: the top row with the cost's icon, its name and its second line, "···" and × side by
   side; its own top on the page (no forest, no sheet), this month's amount at 52 px and the days to the due day; the year's dots; what defines it
   and the payments each in one card (#121414 with the edge of light); "Another amount" and "I paid it" (lime) at the foot, at the thumb.
   Only while its body is on screen (the owner on a phone: r6Mine), whatever screen it was opened over. */
@media (max-width: 920px) {
  /* ---------- the frame: the whole screen, black, square ---------- */
  #overlay .drawer:has(> .body.r6-lv) {
    --ink: #EFF1F6; --ink-2: rgba(239, 241, 246, .62); --ink-3: rgba(239, 241, 246, .5); --line: rgba(239, 241, 246, .08); --focus: #9FD182;
    top: 0; max-height: none; height: 100dvh; padding-top: var(--safe-t); border: 0; border-radius: 0; background: #070808; color: #EFF1F6;
  }
  #overlay .drawer:has(> .body.r6-lv) > .grab { display: none; }
  #overlay .drawer:has(> .body.r6-lv) :focus-visible { outline: 2px solid #9FD182; outline-offset: 2px; }

  /* ---------- the top row: the icon (drawn by the body, placed here), the name and its second line, "···" and × side by side ---------- */
  #overlay .drawer:has(> .body.r6-lv) > header { position: relative; align-items: flex-start; gap: 8px; min-height: 72px; padding: 12px 16px 10px; border: 0; background: #070808; }
  #overlay .drawer:has(> .body.r6-lv) > header h2 { flex: 1 1 auto; min-width: 0; margin: 0 0 0 60px; padding-top: 1px; overflow: hidden; color: #EFF1F6; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  #overlay .drawer:has(> .body.r6-lv):has(.dr-back-slot > *) > header h2 { margin-left: 0; }      /* opened from another panel: its back arrow where the icon was */
  #overlay .drawer:has(> .body.r6-lv):has(.dr-back-slot > *) .r6lv-ic { display: none; }
  #overlay .drawer:has(> .body.r6-lv):has(.dr-back-slot > *) .r6lv-id > small { left: 68px; }
  #overlay .drawer:has(> .body.r6-lv) > header :is([data-a="close"], .cvl-more) { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; flex: none; 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; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  #overlay .drawer:has(> .body.r6-lv) > header [data-a="close"] svg { width: 17px; height: 17px; }
  #overlay .drawer:has(> .body.r6-lv) > header .cvl-more svg { width: 19px; height: 19px; }
  #overlay .drawer:has(> .body.r6-lv) > header .gmenu-wrap { position: relative; flex: none; }
  #overlay .drawer:has(> .body.r6-lv) > header .cvl-menu { top: 54px; bottom: auto; left: auto; right: 0; z-index: 6; width: 228px; padding: 6px; border: 0; border-radius: 22px; background: #1A1D1D; box-shadow: inset 0 0 0 1px rgba(239, 241, 246, .12), 0 18px 40px -12px rgba(0, 0, 0, .8); }
  #overlay .drawer:has(> .body.r6-lv) > header .cvl-menu .umenu-item { min-height: 48px; border-radius: 14px; color: #EFF1F6; font-size: 15px; }
  #overlay .drawer:has(> .body.r6-lv) > header .cvl-menu .umenu-item.out, #overlay .drawer:has(> .body.r6-lv) > header .cvl-menu .umenu-item.out svg { color: #FF8A80; }
  /* the icon and the second line: in the body, placed on the top row (the panel is their box, so they do not scroll away) */
  #overlay .r6lv-ic { position: absolute; z-index: 2; left: 16px; top: calc(var(--safe-t) + 12px); display: grid; place-items: center; width: 48px; height: 48px; }
  #overlay .r6lv-ic .cg { width: 48px; height: 48px; border-radius: 50%; }
  #overlay .r6lv-ic .cg:not(.dx):not(.pic) { background: rgba(239, 241, 246, .08); color: #9FD182; }
  #overlay .r6lv-ic .cg svg:not(.dxi) { width: 22px; height: 22px; }
  #overlay .r6lv-ic .dxi { width: 48px; height: 48px; }
  #overlay .r6lv-id > small { position: absolute; z-index: 2; left: 76px; right: 124px; top: calc(var(--safe-t) + 42px); overflow: hidden; color: rgba(239, 241, 246, .55); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

  /* ---------- the body: on the page ---------- */
  #overlay .r6-lv { gap: 0; padding: 0 16px 28px; background: #070808; color: #EFF1F6; overflow-x: hidden; }
  #overlay .r6-lv .press, #overlay .r6lv-foot .press { transition: transform .34s cubic-bezier(.2, .9, .3, 1.25); }
  #overlay .r6-lv .press:active, #overlay .r6lv-foot .press:active { transform: scale(.965); }

  /* ---------- its own top: this month's amount, large, on the left; when it is due ---------- */
  #overlay .r6lv-top { display: flex; flex-direction: column; margin-top: 4px; }
  #overlay .r6lv-top > small { color: rgba(239, 241, 246, .6); font-size: 15px; }
  #overlay .r6lv-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; }
  #overlay .r6lv-big > b { color: #EFF1F6; font-size: clamp(40px, 13.4vw, 52px); font-weight: 300; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
  #overlay .r6lv-big > b .cents { opacity: 1; color: rgba(239, 241, 246, .42); font-size: .5em; letter-spacing: -.02em; }
  #overlay .r6lv-big > span { color: rgba(239, 241, 246, .5); font-size: 17px; }
  #overlay .r6lv-when { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 0; }
  #overlay .r6lv-wl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  #overlay .r6lv-wl > b { font-size: 16px; font-weight: 500; color: rgba(239, 241, 246, .8); }
  #overlay .r6lv-when:is(.soon, .good) .r6lv-wl > b { color: #9FD182; }
  #overlay .r6lv-when.warn .r6lv-wl > b { color: #F7D27A; }
  #overlay .r6lv-wl > small { flex: none; color: rgba(239, 241, 246, .55); font-size: 13.5px; }
  /* the week from today: today ringed, the days between with a faint lime ring and the line through them, the due day lit; the rest dim */
  #overlay .r6lv-wk { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  #overlay .r6lv-run { position: absolute; left: calc(100% / 14); top: 41px; width: calc(100% * var(--to) / 7); height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(159, 209, 130, .25), #9FD182); transform-origin: 0 50%; animation: r6lv-run 1s cubic-bezier(.2, .9, .25, 1) .25s both; }
  @keyframes r6lv-run { from { transform: scaleX(0); } to { transform: none; } }
  #overlay .r6lv-d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  #overlay .r6lv-d > small { color: rgba(239, 241, 246, .55); font-size: 12px; font-weight: 500; }
  #overlay .r6lv-d > b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(239, 241, 246, .05); color: rgba(239, 241, 246, .4); font-size: 15px; font-weight: 500; }
  #overlay .r6lv-d > em { min-height: 15px; color: rgba(239, 241, 246, .7); font-size: 12px; font-style: normal; font-weight: 500; }
  #overlay .r6lv-d.now > small { color: #EFF1F6; }
  #overlay .r6lv-d.now > b { background: #070808; box-shadow: inset 0 0 0 2px rgba(239, 241, 246, .7); color: #EFF1F6; }
  #overlay .r6lv-d.mid > b { background: #070808; box-shadow: inset 0 0 0 1px rgba(159, 209, 130, .4); color: #EFF1F6; }
  #overlay .r6lv-d.after > small { color: rgba(239, 241, 246, .35); }
  #overlay .r6lv-d.due > small, #overlay .r6lv-d.due > em { color: #9FD182; }
  #overlay .r6lv-d.due > b { background: #9FD182; color: #101212; animation: r6lv-due 2.4s ease-in-out 1.2s infinite; }
  @keyframes r6lv-due { 0%, 100% { box-shadow: 0 0 0 0 rgba(159, 209, 130, .45); } 50% { box-shadow: 0 0 0 8px rgba(159, 209, 130, 0); } }

  /* ---------- its parts: a 22 px heading, a short line under it ---------- */
  #overlay .r6lv-sec { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
  #overlay .r6lv-h { display: flex; flex-direction: column; gap: 3px; }
  #overlay .r6lv-h h2 { margin: 0; color: #EFF1F6; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
  #overlay .r6lv-h small { color: rgba(239, 241, 246, .55); font-size: 14px; }
  /* the year in twelve dots */
  #overlay .r6lv-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
  #overlay .r6lv-year li { display: flex; flex-direction: column; align-items: center; gap: 7px; }
  #overlay .r6lv-year li > span { display: grid; place-items: center; width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; background: rgba(239, 241, 246, .1); color: #101212; }
  #overlay .r6lv-year li > span svg { width: 13px; height: 13px; stroke-width: 3; }
  #overlay .r6lv-year li > small { color: rgba(239, 241, 246, .35); font-size: 11px; font-weight: 500; }
  #overlay .r6lv-year li.paid > span { background: #9FD182; }
  #overlay .r6lv-year li.paid > small { color: rgba(239, 241, 246, .6); }
  #overlay .r6lv-year li.now > span { background: none; box-shadow: inset 0 0 0 2px #9FD182; }
  #overlay .r6lv-year li.now > small { color: #EFF1F6; }
  #overlay .r6lv-year li.none > span { background: none; box-shadow: inset 0 0 0 1px rgba(239, 241, 246, .14); }

  /* ---------- one card: #121414 with the edge of light ---------- */
  #overlay .r6lv-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; border-radius: 32px;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 55%) padding-box, linear-gradient(#121414, #121414) padding-box, linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .025) 70%, rgba(255, 255, 255, .06)) border-box; }
  /* what defines it: a row each, a hairline between */
  #overlay .r6lv-row { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; margin: 0 18px 0 20px; }
  #overlay .r6lv-row + .r6lv-row { border-top: 1px solid rgba(239, 241, 246, .07); }
  #overlay .r6lv-row.still { cursor: default; }
  #overlay .r6lv-row > span:first-child { flex: none; width: 104px; color: rgba(239, 241, 246, .55); font-size: 14px; }
  #overlay .r6lv-row > b { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; color: #EFF1F6; font-size: 15.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  #overlay .r6lv-row > b .atag { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
  #overlay .r6lv-row > b .atag-n { overflow: hidden; text-overflow: ellipsis; }
  #overlay .r6lv-row > b .inst.sm { flex: none; width: 22px; height: 22px; }
  #overlay .r6lv-row:active { opacity: .7; }
  #overlay .r6lv-go { flex: none; display: grid; color: rgba(239, 241, 246, .45); }
  #overlay .r6lv-go svg { width: 16px; height: 16px; stroke-width: 2.2; }
  #overlay .r6lv-ni { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
  #overlay .r6lv-ni .cg { flex: none; width: 24px; height: 24px; }
  #overlay .r6lv-ni .dxi { width: 24px; height: 24px; }
  #overlay .r6lv-ni .cg svg:not(.dxi) { width: 14px; height: 14px; }
  /* the payments: the day as plain text, the cost and its account's mark, the amount; all of them on the card's band */
  #overlay .r6lv-pays { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
  #overlay .r6lv-pay { display: flex; align-items: center; gap: 14px; min-height: 68px; margin: 0 20px 0 18px; }
  #overlay .r6lv-pay + .r6lv-pay { border-top: 1px solid rgba(239, 241, 246, .07); }
  #overlay .r6lv-dm { flex: none; width: 34px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
  #overlay .r6lv-dm > b { color: #EFF1F6; font-size: 18px; font-weight: 500; line-height: 1; }
  #overlay .r6lv-dm > small { color: rgba(239, 241, 246, .45); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
  #overlay .r6lv-pt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  #overlay .r6lv-pt > b { overflow: hidden; color: #EFF1F6; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  #overlay .r6lv-pt > small { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: rgba(239, 241, 246, .55); font-size: 13px; white-space: nowrap; }
  #overlay .r6lv-pt .atag { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
  #overlay .r6lv-pt .atag-n { overflow: hidden; text-overflow: ellipsis; }
  #overlay .r6lv-pt .inst.sm { flex: none; width: 16px; height: 16px; font-size: 7px; }
  #overlay .r6lv-amt { flex: none; color: #EFF1F6; font-size: 16px; font-weight: 500; }
  #overlay .r6lv-x { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: 50%; color: rgba(239, 241, 246, .55); }
  #overlay .r6lv-x svg { width: 16px; height: 16px; }
  #overlay .r6lv-band { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; border-top: 1px solid rgba(239, 241, 246, .07); background: rgba(255, 255, 255, .025); color: #9FD182; font-size: 14.5px; font-weight: 500; }
  #overlay .r6lv-band svg { width: 16px; height: 16px; stroke-width: 2.2; }
  #overlay .r6lv-link { all: unset; box-sizing: border-box; cursor: pointer; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #9FD182; font-size: 14.5px; font-weight: 500; }
  #overlay .r6lv-link svg { width: 15px; height: 15px; }
  /* what "I paid it" does, in one quiet line */
  #overlay .r6lv-say { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 0; color: rgba(239, 241, 246, .5); font-size: 13px; line-height: 1.45; }
  #overlay .r6lv-say svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

  /* ---------- at the foot, at the thumb: the other amount in dark glass, the main one in lime on the right; the page fades under them ---------- */
  #overlay .drawer > footer.r6lv-foot { position: relative; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px calc(28px + var(--safe-b)); border: 0; background: #070808; box-shadow: 0 -40px 30px -10px #070808; }
  #overlay .r6lv-b { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 999px;
    background: rgba(26, 29, 29, .92); box-shadow: inset 0 0 0 1px rgba(239, 241, 246, .14), 0 8px 22px rgba(0, 0, 0, .45); color: #EFF1F6; font-size: 15px; font-weight: 500; white-space: nowrap; }
  #overlay .r6lv-b.go { flex: none; padding: 0 22px 0 18px; background: #9FD182; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); color: #101212; }
  #overlay .r6lv-b svg { flex: none; width: 19px; height: 19px; stroke-width: 2.4; }
  @media (max-width: 359px) {      /* a narrow phone: the week's days, the year's dots and the rows' words a little smaller, nothing past the edge */
    #overlay .drawer > footer.r6lv-foot { gap: 8px; padding-left: 14px; padding-right: 14px; } #overlay .r6lv-b { padding: 0 14px; font-size: 14px; } #overlay .r6lv-b.go { padding: 0 16px; }
    #overlay .r6lv-d > b { width: 38px; height: 38px; font-size: 15px; } #overlay .r6lv-run { top: 38px; }
    #overlay .r6lv-year li > span { width: 19px; height: 19px; } #overlay .r6lv-year li > span svg { width: 11px; height: 11px; }
    #overlay .r6lv-row { margin: 0 14px 0 16px; } #overlay .r6lv-row > span:first-child { width: 88px; font-size: 13.5px; } #overlay .r6lv-row > b { font-size: 14.5px; }
  }
  @media (prefers-reduced-motion: reduce) { #overlay .r6lv-run, #overlay .r6lv-d.due > b { animation: none; } #overlay .r6-lv .press, #overlay .r6lv-foot .press { transition: none; } }
}
