/* Dorax Finance — the owner's Accounts in the "v6" look (v349, features/phone/r6-accounts.js; the canvas "Cuentas-V6"): what you have on the page
   and its three parts, every day's accounts and the savings in one card each, the credit cards drawn in their bank's colour, how long the savings
   last. The frame: look-r6-pages.css. */
@media (max-width: 920px) {
  /* the top bar's round + went down to the thumb (the dock's Add account) */
  :root.r6.r6-pg .navbar .bq-new[data-a="account-add"] { display: none; }

  /* ---------- the top: everything, large; one line in two parts; the three parts under it ---------- */
  :root.r6.r6-pg #view .r6-acc-line { display: flex; gap: 3px; height: 14px; margin-top: 20px; }
  :root.r6.r6-pg #view .r6-acc-line > i { display: block; min-width: 14px; border-radius: 7px; transform-origin: 0 50%; animation: r6-acc-grow 1s cubic-bezier(.2, .9, .25, 1) .2s both; }
  :root.r6.r6-pg #view .r6-acc-line > i + i { animation-delay: .32s; }
  :root.r6.r6-pg #view .r6-acc-line > .day, :root.r6.r6-pg #view .r6-acc-keys .day i { background: #9FD182; }
  :root.r6.r6-pg #view .r6-acc-line > .sv, :root.r6.r6-pg #view .r6-acc-keys .sv i { background: #6AAFA2; }
  :root.r6.r6-pg #view .r6-acc-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  :root.r6.r6-pg #view .r6-acc-keys > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  :root.r6.r6-pg #view .r6-acc-keys small { display: flex; align-items: center; gap: 6px; overflow: hidden; color: rgba(239, 241, 246, .6); font-size: 12.5px; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-keys i { flex: none; width: 9px; height: 9px; border-radius: 3px; }
  :root.r6.r6-pg #view .r6-acc-keys .cc i { box-shadow: inset 0 0 0 1.5px #FF8A80; }
  :root.r6.r6-pg #view .r6-acc-keys b { overflow: hidden; padding-left: 15px; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-keys .cc b { color: #FF8A80; }

  /* ---------- the sections: their name, their total at the right ---------- */
  :root.r6.r6-pg #view .r6-acc { display: flex; flex-direction: column; }
  :root.r6.r6-pg #view .r6-acc > .r6-acc-sec { margin-top: 30px; }
  :root.r6.r6-pg #view .r6-acc > .r6-acc-sec:first-child { margin-top: 34px; }
  :root.r6.r6-pg #view .r6-acc-sec .r6-h { align-items: baseline; }
  :root.r6.r6-pg #view .r6-acc-sum { flex: none; color: rgba(239, 241, 246, .75); font-size: 15px; font-weight: 500; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-sum .owe { color: #FF8A80; }

  /* ---------- a card of accounts: a row each, the bank's logo, a hairline between ---------- */
  :root.r6.r6-pg #view .r6-acc-rows { display: flex; flex-direction: column; }
  :root.r6.r6-pg #view .r6-acc-r { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 74px; margin: 0 18px 0 16px; color: #EFF1F6; -webkit-tap-highlight-color: transparent; }
  :root.r6.r6-pg #view .r6-acc-r + .r6-acc-r { border-top: 1px solid rgba(239, 241, 246, .07); }
  :root.r6.r6-pg #view .r6-acc-r:focus-visible { outline: 2px solid #9FD182; outline-offset: -2px; border-radius: 14px; }
  :root.r6.r6-pg #view .r6-acc-lg { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
  :root.r6.r6-pg #view .r6-acc-lg .inst { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; margin: 0; border-radius: 50%; font-size: 13px; font-weight: 600; }
  :root.r6.r6-pg #view .r6-acc-lg .inst img { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
  :root.r6.r6-pg #view .r6-acc-lg .r6-acc-w { background: rgba(239, 241, 246, .08); color: #EFF1F6; }
  :root.r6.r6-pg #view .r6-acc-lg .r6-acc-w svg { width: 19px; height: 19px; }
  :root.r6.r6-pg #view .r6-acc-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  :root.r6.r6-pg #view .r6-acc-t > b { overflow: hidden; font-size: 16px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-t > small { overflow: hidden; color: rgba(239, 241, 246, .55); font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-r:has(.r6-acc-tag) { min-height: 80px; }
  :root.r6.r6-pg #view .r6-acc-r:has(.r6-acc-tag) .r6-acc-t > small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }      /* a savings account: what it is for on two lines */
  :root.r6.r6-pg #view .r6-acc-v { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
  :root.r6.r6-pg #view .r6-acc-v > b { font-size: 16px; font-weight: 500; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(106, 175, 162, .16); color: #8FD3C5; font-size: 12px; font-weight: 500; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-tag svg { width: 11px; height: 11px; stroke-width: 2.4; }
  :root.r6.r6-pg #view .r6-acc-add .r6-acc-w { color: #9FD182; }

  /* ---------- a credit card: the card itself, in its bank's colour ---------- */
  :root.r6.r6-pg #view .r6-acc-ccs { display: flex; flex-direction: column; gap: 12px; }
  :root.r6.r6-pg #view .r6-acc-cc { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; height: 178px; padding: 20px 22px;
    border-radius: 26px; background: linear-gradient(135deg, var(--cc0) 0%, var(--cc1) 55%, var(--cc2) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 14px 30px rgba(0, 0, 0, .45); -webkit-tap-highlight-color: transparent; }
  :root.r6.r6-pg #view .r6-acc-cc::before { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
  :root.r6.r6-pg #view .r6-acc-cc:focus-visible { outline: 2px solid #9FD182; outline-offset: 3px; }
  :root.r6.r6-pg #view .r6-acc-cc > span { position: relative; }
  :root.r6.r6-pg #view .r6-acc-cc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  :root.r6.r6-pg #view .r6-acc-cc .r6-acc-lg .inst { box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
  :root.r6.r6-pg #view .r6-acc-due { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-cc-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  :root.r6.r6-pg #view .r6-acc-cc-b > small { overflow: hidden; opacity: .78; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-cc-b > b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
  :root.r6.r6-pg #view .r6-acc-cc-b > b .cents { color: inherit; opacity: .7; font-size: .57em; }

  /* ---------- how long the savings last: one row to the days of freedom ---------- */
  :root.r6.r6-pg #view .r6-acc-free { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 68px; margin-top: 18px; padding: 0 4px; color: #EFF1F6; -webkit-tap-highlight-color: transparent; }
  :root.r6.r6-pg #view .r6-acc-free:focus-visible { outline: 2px solid #9FD182; outline-offset: 2px; border-radius: 16px; }
  :root.r6.r6-pg #view .r6-acc-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(159, 209, 130, .12); color: #9FD182; }
  :root.r6.r6-pg #view .r6-acc-ic.dx { background: none; }      /* v537: Dorax's 3D hourglass */
  :root.r6.r6-pg #view .r6-acc-ic.dx .dxi { width: 44px; height: 44px; }
  :root.r6.r6-pg #view .r6-acc-free .r6-acc-t > b { font-size: 15px; font-weight: 500; white-space: normal; }
  :root.r6.r6-pg #view .r6-acc-free .r6-acc-t > small { color: #9FD182; }
  :root.r6.r6-pg #view .r6-acc-free > svg:last-child { flex: none; width: 16px; height: 16px; color: rgba(239, 241, 246, .5); stroke-width: 2.2; }

  @keyframes r6-acc-grow { from { transform: scaleX(0); } to { transform: none; } }
  @media (prefers-reduced-motion: reduce) { :root.r6.r6-pg #view .r6-acc-line > i { animation: none; } }
}
