/* Dorax Finance — an account opened on a phone in the summary's look (v321; the markup: features/phone/card-view-land.js). On the forest the card of
   today upgraded (the canvas "Tarjeta mejorada"): the bank's colour brighter at its top left and deeper at its bottom right, a band of light across
   it, finer stripes, an edge of light, the chip in metal, the holder's name in relief, the balance larger; a card with credit turns over in 3D to
   its credit side (a dark band as a card's back, the invoice, the limit's bar). In the sheet its parts with no box, as a goal's panel
   (look-land-goal-view.css: .gv-sec, .gv-mbar, .gv-day, .gv-row, .gv-foot); "···" and its menu beside the close button. */
@media (max-width: 920px) {
  /* ---------- the header's "···" and its menu ---------- */
  :root.land #overlay .drawer > header .cvl-mw { position: relative; flex: none; }
  :root.land #overlay .cvl-more { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #FFFFFF; }
  :root.land #overlay .cvl-more svg { width: 20px; height: 20px; }
  :root.land #overlay .cvl-more:focus-visible { outline: 2px solid var(--lk-lime); outline-offset: 2px; }
  :root.land #overlay .cvl-menu { top: 52px; bottom: auto; left: auto; right: 0; z-index: 6; width: 240px; padding: 6px; border: 0; border-radius: 18px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line), 0 18px 40px -12px rgba(0, 0, 0, .55); transform-origin: top right; animation: cvl-menu-in 240ms cubic-bezier(.32, .72, 0, 1) both; }
  :root.land #overlay .cvl-menu .umenu-item { min-height: 48px; border-radius: 12px; color: var(--bq-ink); font-size: 15px; }
  :root.land #overlay .cvl-menu .umenu-item svg { color: var(--bq-ink-2); }
  :root.land #overlay .cvl-menu .umenu-item:is(.out, .danger), :root.land #overlay .cvl-menu .umenu-item:is(.out, .danger) svg { color: var(--bq-crit); }
  @keyframes cvl-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

  /* ---------- the card ---------- */
  :root.land #overlay .cvl { gap: 22px; }
  :root.land #overlay .cvl-card {
    all: unset; box-sizing: border-box; position: relative; display: block; flex: none; width: 100%; max-width: 420px; aspect-ratio: 1.586; border-radius: 22px; perspective: 1100px; container-type: inline-size;
    -webkit-tap-highlight-color: transparent; transition: transform 160ms ease-out;
    --cvl-bg: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .12) 44%, rgba(255, 255, 255, 0) 58%),
      repeating-linear-gradient(118deg, rgba(255, 255, 255, .045) 0 1.5px, rgba(255, 255, 255, 0) 1.5px 13px),
      radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 55%),
      radial-gradient(90% 80% at 100% 100%, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 60%),
      linear-gradient(135deg, color-mix(in srgb, var(--cc) 84%, #FFFFFF) 0%, var(--cc) 42%, color-mix(in srgb, var(--cc) 60%, #000000) 100%);
  }
  :root.land #overlay button.cvl-card { cursor: pointer; }
  :root.land #overlay button.cvl-card:active { transform: scale(.985); }
  :root.land #overlay .cvl-card:focus-visible { outline: 2px solid var(--lk-lime); outline-offset: 3px; }
  :root.land #overlay .cvl-in { position: absolute; inset: 0; border-radius: 22px; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.32, .72, 0, 1); box-shadow: 0 26px 50px -22px color-mix(in srgb, var(--cc) 75%, #000000), 0 8px 18px -10px rgba(0, 0, 0, .6); }
  :root.land #overlay .cvl-card.back .cvl-in { transform: rotateY(180deg); }
  :root.land #overlay .cvl-face { position: absolute; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; overflow: hidden; border-radius: 22px; background: var(--cvl-bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .32); color: #FFFFFF; text-align: left; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  :root.land #overlay .cvl-face.back { transform: rotateY(180deg); justify-content: flex-end; gap: 16px; background: linear-gradient(rgba(0, 0, 0, .16), rgba(0, 0, 0, .16)), var(--cvl-bg); }
  :root.land #overlay .cvl-face.back.solo { transform: none; }
  :root.land #overlay .cvl-caps { color: rgba(255, 255, 255, .72); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  /* the front */
  :root.land #overlay .cvl-r1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  :root.land #overlay .cvl-who { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 2px; }
  :root.land #overlay .cvl-logo { flex: none; display: block; }
  :root.land #overlay .cvl-logo .inst { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 4px 10px -4px rgba(0, 0, 0, .5); color: #FFFFFF; font-size: 12px; font-weight: 700; }
  :root.land #overlay .cvl-logo .inst.pic { background: #FFFFFF; }
  :root.land #overlay .cvl-logo .inst img { display: block; width: 100%; height: 100%; object-fit: cover; }
  :root.land #overlay .cvl-logo .inst svg { width: 18px; height: 18px; }
  :root.land #overlay .cvl-logo.sm .inst { width: 30px; height: 30px; font-size: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .3); }
  :root.land #overlay .cvl-name { min-width: 0; overflow: hidden; color: #FFFFFF; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  :root.land #overlay .cvl-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
  :root.land #overlay :is(.cvl-amt, .cvl-it) > b { color: #FFFFFF; font-family: var(--fig); font-size: 25px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
  :root.land #overlay :is(.cvl-amt, .cvl-it) > small:not(.cvl-caps) { color: rgba(255, 255, 255, .8); font-size: 12.5px; white-space: nowrap; }
  :root.land #overlay .cvl-mid { display: flex; align-items: center; gap: 12px; margin-left: 2px; }
  :root.land #overlay .cvl-chip { flex: none; width: 48px; height: 38px; }
  :root.land #overlay .cvl-face .cc-nfc { flex: none; width: 22px; height: 22px; color: rgba(255, 255, 255, .85); }
  :root.land #overlay .cvl-r3 { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
  :root.land #overlay .cvl-holder { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 600; letter-spacing: .22em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, .35), 0 -1px 0 rgba(255, 255, 255, .18); }      /* in relief */
  :root.land #overlay .cvl-kind { flex: none; display: flex; align-items: center; gap: 8px; }
  :root.land #overlay .cvl-kind .cvl-caps { color: #FFFFFF; }
  :root.land #overlay .cvl-turn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
  :root.land #overlay .cvl-turn svg { width: 14px; height: 14px; stroke-width: 2.2; }
  /* the back */
  :root.land #overlay .cvl-stripe { position: absolute; left: 0; right: 0; top: 22px; height: 34px; background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 22%, #000000), color-mix(in srgb, var(--cc) 34%, #000000)); }
  :root.land #overlay .cvl-inv { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
  :root.land #overlay .cvl-it { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  :root.land #overlay .cvl-lim { display: flex; flex-direction: column; gap: 7px; }
  :root.land #overlay .cvl-limbar { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .2); }
  :root.land #overlay .cvl-limbar i { display: block; height: 100%; border-radius: inherit; background: #FFFFFF; }
  :root.land #overlay .cvl-limt { display: flex; justify-content: space-between; gap: 8px; color: rgba(255, 255, 255, .85); font-size: 12px; white-space: nowrap; }
  :root.land #overlay .cvl-limt b { color: #FFFFFF; font-weight: 600; }
  /* a narrow phone: the same card, a little smaller inside */
  @container (max-width: 330px) {
    :root.land #overlay .cvl-face { padding: 13px 14px; }
    :root.land #overlay .cvl-face.back { gap: 10px; }
    :root.land #overlay :is(.cvl-amt, .cvl-it) > b { font-size: 21px; }
    :root.land #overlay .cvl-chip { width: 40px; height: 32px; }
    :root.land #overlay .cvl-logo .inst { width: 32px; height: 32px; }
    :root.land #overlay .cvl-stripe { top: 16px; height: 28px; }
    :root.land #overlay .cvl-holder { font-size: 13px; letter-spacing: .16em; }
  }

  /* ---------- in the sheet ---------- */
  :root.land #overlay .cvl-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  :root.land #overlay .cvl-h small { color: var(--bq-ink-2); font-size: 13px; text-align: right; }
  :root.land #overlay .cvl-h .bp-link { align-self: center; margin: -10px 0; }
  :root.land #overlay .cvl-bill.late .cvl-h small { color: var(--bq-late); }
  :root.land #overlay .cvl-fig { color: var(--bq-ink); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
  :root.land #overlay .cvl-paid { display: inline-flex; align-items: center; gap: 8px; color: var(--bq-ink); font-size: 17px; font-weight: 600; }
  :root.land #overlay .cvl-paid svg { width: 18px; height: 18px; color: var(--bq-accent); stroke-width: 2.4; }
  :root.land #overlay .cvl-bill .gv-mbar.warn i { background: var(--bq-warn); }
  :root.land #overlay .cvl-lim-say { color: var(--bq-ink-2); font-size: 13px; }
  :root.land #overlay .cvl-bill > .bp-link { margin-top: -6px; }
  :root.land #overlay .cvl-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
  :root.land #overlay .cvl-months li { display: flex; flex-direction: column; gap: 2px; }
  :root.land #overlay .cvl-months small { color: var(--bq-ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; }
  :root.land #overlay .cvl-months b { color: var(--bq-ink); font-size: 15px; font-weight: 600; }
  /* Debit | Credit: one pill that slides to the side in view */
  :root.land #overlay .cvl-seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 999px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); }
  :root.land #overlay .cvl-seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2)); border-radius: 999px; background: var(--bq-pick-bg); transform: translateX(calc(100% * var(--i, 0))); transition: transform 340ms cubic-bezier(.32, .72, 0, 1); }
  :root.land #overlay .cvl-seg button { all: unset; position: relative; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 999px; color: var(--bq-ink-2); font-size: 14px; font-weight: 600; transition: color 240ms ease; }
  :root.land #overlay .cvl-seg button[aria-pressed="true"] { color: var(--bq-pick-ink); }
  :root.land #overlay .cvl-seg button:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
  /* the transactions */
  :root.land #overlay .cvl-list { display: flex; flex-direction: column; }
  :root.land #overlay .cvl-list.fresh { animation: cvl-fresh 280ms cubic-bezier(.32, .72, 0, 1) both; }
  @keyframes cvl-fresh { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  :root.land #overlay .cvl-tx { all: unset; position: relative; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; }
  :root.land #overlay .cvl-tx + .cvl-tx::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--bq-line); }
  :root.land #overlay .cvl-tx:active { opacity: .7; }
  :root.land #overlay .cvl-tx:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; border-radius: 14px; }
  :root.land #overlay .cvl-tx.ignored { opacity: .55; }
  /* what defines it: the main account's switch, its words under the switch's name */
  :root.land #overlay .cvl .gv-row > b { padding: 8px 0; white-space: normal; line-height: 1.35; }      /* "165 transactions · the last on 1 Oct" whole */
  :root.land #overlay .cvl-main { --switch-on: var(--bq-accent); --switch-off: var(--bq-track); --field: var(--bq-line-2); --knob: #FFFFFF; }
  :root.land #overlay .cvl-main > b { white-space: normal; color: var(--bq-ink-2); font-size: 13.5px; font-weight: 500; line-height: 1.35; }
  :root.land #overlay .cvl-main .switch { flex: none; }
  :root.land #overlay .cvl-main .switch input:disabled + .track { opacity: 1; }
  :root.land #overlay .cvl-main .switch input:focus-visible + .track { outline: 2px solid var(--bq-accent); outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) {
    :root.land #overlay :is(.cvl-in, .cvl-card, .cvl-seg button) { transition: none; }
    :root.land #overlay .cvl-seg::before { transition: none; }
    :root.land #overlay :is(.cvl-menu, .cvl-list.fresh) { animation: none; }
  }
}
