/* Dorax Finance — Transactions on a phone, v326 (features/phone/tx-land.js, features/phone/bosque-moves.js): under the menu, on the page, the
   chart's and the filter's buttons; what has no category as one row; the list by day with no box; adding one at the thumb, over the bar. Their
   sheets: the spending's chart, the filter (everything a button), a transaction to be read. The forest stays in the menu; every colour here is the
   page's own (look-land.css: --bq-*), so the light and the dark theme are the same design. */
@media (max-width: 920px) {
  /* ---------- the page ---------- */
  :root.land #view > .bq-tx.txl { gap: 20px; padding: 30px 16px 0; }
  :root.land .txl .bq-find { background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); }
  :root.land .txl .bq-find:focus-within { box-shadow: inset 0 0 0 2px var(--bq-accent); }
  :root.land .txl .bq-find-ico, :root.land .txl .bq-find-x { color: var(--bq-ink-2); }
  :root.land .txl .bq-find input[type=search] { color: var(--bq-ink); }
  :root.land .txl .bq-find input::placeholder { color: var(--bq-ink-3); }
  :root.land .txl .bq-find-x:focus-visible { outline-color: var(--bq-accent); }

  /* the two buttons: the chart, the filter (lime with how many, once something is chosen) */
  :root.land .txl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
  :root.land .txl-pill { all: unset; box-sizing: border-box; touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer; -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); color: var(--bq-ink); font-size: 14px; font-weight: 600; transition: background-color 200ms ease-out, color 200ms ease-out, transform 120ms ease-out; }
  :root.land .txl-pill svg { width: 18px; height: 18px; }
  :root.land .txl-pill:active { transform: scale(.97); }
  :root.land .txl-pill:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
  :root.land .txl-pill.on { background: var(--lk-lime); box-shadow: none; color: var(--lk-deep); }
  :root.land .txl-n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--lk-deep); color: var(--lk-lime); font-size: 12px; font-weight: 700; }

  :root.land .txl-page { display: flex; flex-direction: column; gap: 18px; padding-bottom: 84px; }      /* room under the last row for the Add button */
  :root.land .txl-page > .banner { margin: 0; border: 0; border-radius: 20px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); }
  :root.land .txl-page .banner .btn.sm { border-color: var(--bq-line); border-radius: 999px; background: var(--bq-card); color: var(--bq-accent); font-weight: 600; }

  /* what has no category: one row */
  :root.land .txl-row { all: unset; 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 .txl-row:active { opacity: .7; }
  :root.land .txl-row:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; border-radius: 14px; }
  :root.land .txl-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bq-circle); color: var(--bq-accent); }
  :root.land .txl-ic.warn { background: color-mix(in srgb, var(--bq-warn) 15%, transparent); color: var(--bq-warn); }
  :root.land .txl-ic svg { width: 18px; height: 18px; }
  :root.land .txl-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  :root.land .txl-t b { color: var(--bq-ink); font-size: 15px; font-weight: 600; }
  :root.land .txl-t small { color: var(--bq-ink-2); font-size: 12.5px; line-height: 1.35; }
  :root.land .txl-go { flex: none; display: inline-flex; align-items: center; gap: 2px; color: var(--bq-accent); font-size: 14px; font-weight: 600; }
  :root.land .txl-go svg { width: 15px; height: 15px; }

  /* the month, how many, what the filter holds; the days with no box */
  :root.land .txl .bq-txh { align-items: baseline; margin-top: 6px; }
  :root.land .txl-on { margin: -10px 0 0; color: var(--bq-ink-2); font-size: 13px; }
  :root.land .txl-days { display: flex; flex-direction: column; margin-top: -8px; }
  :root.land .txl-days .bq-op-bank { box-shadow: 0 0 0 2px var(--bq-page); }
  :root.land .txl-days .bq-op-ico { width: 40px; height: 40px; }
  :root.land .txl-days .bq-op-ico > svg { width: 18px; height: 18px; }
  :root.land .txl-none { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 0; }
  :root.land .txl-none b { color: var(--bq-ink); font-size: 15px; }
  :root.land .txl-none span { color: var(--bq-ink-2); font-size: 14px; line-height: 1.4; }
  :root.land .txl-none .btn.sm { margin-top: 4px; border-color: var(--bq-line); border-radius: 999px; background: var(--bq-card); color: var(--bq-accent); font-weight: 600; }

  /* adding one: at the thumb, over the bar at the foot */
  :root.land .txl-add { all: unset; box-sizing: border-box; touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer; -webkit-tap-highlight-color: transparent; position: fixed; z-index: 30; right: 16px; bottom: calc(max(12px, calc(var(--safe-b) - 14px)) + 70px); display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--lk-lime); color: var(--lk-deep); font-size: 15px; font-weight: 600; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55); animation: txl-add-in 420ms var(--ease-ios, cubic-bezier(.32, .72, 0, 1)) 120ms both; transition: transform 120ms ease-out; }
  :root.land .txl-add svg { width: 18px; height: 18px; stroke-width: 2.4; }
  :root.land .txl-add:active { transform: scale(.96); }
  :root.land .txl-add:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 3px; }
  @keyframes txl-add-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
}

/* ---------- the sheets ---------- */
@media (max-width: 920px) {
  /* the spending's chart */
  :root.land #overlay .txc { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 16px 30px; overflow-x: hidden; }
  :root.land #overlay .txc-k { color: var(--bq-ink-2); font-size: 14px; }
  :root.land #overlay .txc-v { color: var(--bq-ink); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
  :root.land #overlay .txc-v .cents { color: var(--bq-ink-3); font-size: .53em; letter-spacing: 0; }
  :root.land #overlay .txc .bq-cmp { background: var(--bq-mint); color: var(--bq-accent); }
  :root.land.land-dark #overlay .txc .bq-cmp { background: rgba(255, 255, 255, .08); color: var(--bq-ink); }      /* spending more is not good news: not in green */
  :root.land #overlay .txc-none { margin: 10px 0 0; color: var(--bq-ink-2); font-size: 14px; }
  :root.land #overlay .bq-chart.on-sheet { align-self: stretch; margin: 14px -16px 0; }
  :root.land #overlay .bq-chart.on-sheet .g { stroke: var(--bq-line); }
  :root.land #overlay .bq-chart.on-sheet .g0 { stroke: var(--bq-line-2); }
  :root.land #overlay .bq-chart.on-sheet .ax { fill: var(--bq-ink-3); }
  :root.land #overlay .bq-chart.on-sheet .area { fill: var(--bq-area); }
  :root.land #overlay .bq-chart.on-sheet .before { stroke: var(--bq-ink-3); opacity: .7; }
  :root.land #overlay .bq-chart.on-sheet .now { stroke: var(--bq-accent); }
  :root.land #overlay .bq-chart.on-sheet .bq-mk path { stroke: var(--bq-line-2); }
  :root.land #overlay .bq-chart.on-sheet .bq-mk circle { fill: var(--bq-page); stroke: var(--bq-accent); }
  :root.land #overlay .bq-chart.on-sheet .bq-mk rect { fill: var(--bq-pick-bg); }
  :root.land #overlay .bq-chart.on-sheet .bq-mk text { fill: var(--bq-pick-ink); }
  :root.land #overlay .bq-chart.on-sheet svg:focus-visible { outline-color: var(--bq-accent); }
  :root.land #overlay .bq-chart.on-sheet figcaption { color: var(--bq-ink-2); }
  :root.land #overlay .bq-chart.on-sheet .lg.now::before { background: var(--bq-accent); }
  :root.land #overlay .bq-chart.on-sheet .lg.before::before { border-top-color: var(--bq-ink-3); }

  /* the filter: every choice a button; the one chosen in the pick colour, sliding into it */
  :root.land #overlay .txf { display: flex; flex-direction: column; gap: 26px; padding: 4px 16px 20px; }
  :root.land #overlay .txf-sec h3 { margin: 0 0 10px; color: var(--bq-ink-3); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  :root.land #overlay .txf-chs { display: flex; flex-wrap: wrap; gap: 8px; }
  :root.land #overlay .txf-ch { all: unset; box-sizing: border-box; touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer; -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); color: var(--bq-ink); font-size: 14px; font-weight: 600; transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out, transform 120ms ease-out; }
  :root.land #overlay .txf-ch:active { transform: scale(.97); }
  :root.land #overlay .txf-ch:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
  :root.land #overlay .txf-ch[aria-pressed="true"] { background: var(--bq-pick-bg); box-shadow: none; color: var(--bq-pick-ink); }
  :root.land #overlay .txf-ico { display: grid; color: var(--bq-accent); }
  :root.land #overlay .txf-ch[aria-pressed="true"] .txf-ico { color: inherit; }
  :root.land #overlay .txf-ico svg { width: 17px; height: 17px; }
  :root.land #overlay .txf-bank { display: grid; margin-left: -6px; }
  :root.land #overlay .txf-bank .inst, :root.land #overlay .txf-bank .inst img { width: 22px; height: 22px; min-width: 22px; border-radius: 50%; font-size: 8px; }
  :root.land #overlay .txf-note { margin: 10px 0 0; color: var(--bq-ink-3); font-size: 12.5px; line-height: 1.4; }
  :root.land #overlay .txf-subs { margin-top: 14px; }
  :root.land #overlay .txf-in { display: block; margin-bottom: 8px; color: var(--bq-ink-2); font-size: 13px; }
  :root.land #overlay .txf-mon { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-bottom: 10px; padding: 0 4px; border-radius: 999px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); }
  :root.land #overlay .txf-mon b { color: var(--bq-ink); font-size: 15px; font-weight: 600; }
  :root.land #overlay .txf-arrow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--bq-ink); -webkit-tap-highlight-color: transparent; }
  :root.land #overlay .txf-arrow svg { width: 18px; height: 18px; }
  :root.land #overlay .txf-arrow:disabled { cursor: default; opacity: .3; }
  :root.land #overlay .txf-arrow:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: -2px; }
  :root.land #overlay .txf-days { display: flex; gap: 6px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  :root.land #overlay .txf-days::-webkit-scrollbar { display: none; }
  :root.land #overlay .txf-days .txf-ch { flex: none; min-height: 60px; border-radius: 16px; }
  :root.land #overlay .txf-day { all: unset; box-sizing: border-box; touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 46px; height: 60px; border-radius: 16px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); color: var(--bq-ink); transition: background-color 200ms ease-out, color 200ms ease-out, transform 120ms ease-out; }
  :root.land #overlay .txf-day small { color: var(--bq-ink-3); font-size: 11px; font-weight: 600; }
  :root.land #overlay .txf-day b { font-size: 16px; font-weight: 600; }
  :root.land #overlay .txf-day i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
  :root.land #overlay .txf-day i.on { background: var(--bq-accent); }
  :root.land #overlay .txf-day:active { transform: scale(.96); }
  :root.land #overlay .txf-day:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
  :root.land #overlay .txf-day[aria-pressed="true"] { background: var(--bq-pick-bg); box-shadow: none; color: var(--bq-pick-ink); }
  :root.land #overlay .txf-day[aria-pressed="true"] small { color: inherit; }
  :root.land #overlay .txf-day[aria-pressed="true"] i.on { background: var(--bq-pick-ink); }
  :root.land #overlay .txf-foot { display: flex; gap: 8px; }
  :root.land #overlay :is(.txf-foot, .txv-foot) .btn { min-height: 52px; justify-content: center; font-size: 15px; font-weight: 600; }
  :root.land #overlay .txf-foot .btn { flex: 1 1 0; }
  :root.land #overlay .txf-foot .btn.primary { flex: 1.6 1 0; }

  /* a transaction, to be read */
  :root.land #overlay .txv { display: flex; flex-direction: column; padding: 4px 16px 24px; }
  :root.land #overlay .txv-top { display: flex; align-items: center; gap: 14px; }
  :root.land #overlay .txv-ico { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bq-circle); color: var(--bq-accent); }
  :root.land #overlay .txv-ico > svg { width: 24px; height: 24px; }
  :root.land #overlay .txv-bank { position: absolute; right: -3px; bottom: -3px; display: grid; border-radius: 50%; box-shadow: 0 0 0 2px var(--bq-page); }
  :root.land #overlay .txv-bank .inst, :root.land #overlay .txv-bank .inst img { width: 22px; height: 22px; min-width: 22px; border-radius: 50%; font-size: 8px; }
  :root.land #overlay .txv-what { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  :root.land #overlay .txv-what small { overflow: hidden; color: var(--bq-ink-2); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  :root.land #overlay .txv-what b { color: var(--bq-ink); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
  :root.land #overlay .txv-what b .cents { color: var(--bq-ink-3); font-size: 18px; letter-spacing: 0; }
  :root.land #overlay .txv-what b.in { color: var(--bq-in); }
  :root.land #overlay .txv-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  :root.land #overlay .txv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); color: var(--bq-ink); font-size: 13px; font-weight: 600; }
  :root.land #overlay .txv-pill svg { width: 14px; height: 14px; }
  :root.land #overlay .txv-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  :root.land #overlay .txv-pill.warn { background: color-mix(in srgb, var(--bq-warn) 15%, transparent); box-shadow: none; color: var(--bq-warn); }
  :root.land #overlay .txv-pill.ok { color: var(--bq-accent); }
  :root.land #overlay .txv-pill.off { color: var(--bq-ink-3); }
  :root.land #overlay .txv-h { margin: 30px 0 4px; color: var(--bq-ink); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
  :root.land #overlay .txv-def { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; box-sizing: border-box; }
  :root.land #overlay .txv-def + .txv-def::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--bq-line); }
  :root.land #overlay .txv-def > span { flex: none; width: 112px; color: var(--bq-ink-2); font-size: 14px; }
  :root.land #overlay .txv-def > b { flex: 1 1 auto; min-width: 0; color: var(--bq-ink); font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
  :root.land #overlay .txv-bankfold { margin-top: 18px; }
  :root.land #overlay .txv-fold { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; color: var(--bq-ink-3); font-size: 13.5px; -webkit-tap-highlight-color: transparent; }
  :root.land #overlay .txv-fold span { flex: 1 1 auto; }
  :root.land #overlay .txv-fold svg { width: 16px; height: 16px; }
  :root.land #overlay .txv-fold svg:last-child { transition: transform 300ms var(--ease); }
  :root.land #overlay .txv-fold[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
  :root.land #overlay .txv-fold:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; border-radius: 10px; }
  :root.land #overlay .txv-said { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 320ms var(--ease), opacity 240ms ease-out; }
  :root.land #overlay .txv-said.on { grid-template-rows: 1fr; opacity: 1; }
  :root.land #overlay .txv-said > dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; min-height: 0; overflow: hidden; margin: 0 0 0 26px; font-size: 13px; }
  :root.land #overlay .txv-said dt { color: var(--bq-ink-3); }
  :root.land #overlay .txv-said dd { margin: 0; color: var(--bq-ink-2); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
  :root.land #overlay .txv-foot { display: flex; }
  :root.land #overlay .txv-foot .btn.primary { flex: 1 1 auto; gap: 8px; }
  :root.land #overlay .txv-foot .btn svg { width: 17px; height: 17px; }
  :root.land #overlay .drawer:is(:has(.txv), :has(.tfl-edit)) .cvl-more { background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); color: var(--bq-ink); }
  :root.land #overlay .drawer:has(.txv) .cvl-menu .umenu-item.danger, :root.land #overlay .drawer:has(.txv) .cvl-menu .umenu-item.danger svg { color: var(--bq-crit); }

  @media (prefers-reduced-motion: reduce) {
    :root.land .txl-add { animation: none; }
    :root.land :is(.txl-pill, .txl-add), :root.land #overlay :is(.txf-ch, .txf-day, .txv-said, .txv-fold svg) { transition: none; }
  }
}
