/*
 * The back control (back.js): top left of every page's header, 44 px, graphite (never a blue key), the arrow turned for
 * right-to-left. Its words show on a computer, the arrow alone on a phone (its name stays for screen readers). It
 * replaced the page-level "Back to my space" / "My accounts" links and the arrow of the checkout's strip. Tokens of
 * v3.css where the page has them, else those of style.css (the terminal, the certificate).
 */
.app-back { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px;
  padding: 0 10px 0 6px; margin-inline-end: 4px; border-radius: 10px; color: var(--ink-2, var(--mute)); text-decoration: none;
  font-family: var(--f-sans); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.app-back__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .app-back__icon { transform: scaleX(-1); }
.app-back:focus-visible { outline: 2px solid var(--link, var(--acc-text)); outline-offset: 2px; }
.app-back--float { position: fixed; z-index: 50; top: calc(8px + env(safe-area-inset-top, 0px)); inset-inline-start: 8px;
  background: var(--cell-solid, var(--bg-2)); box-shadow: inset 0 0 0 1px var(--hair-2, var(--line)); }
@media (hover: hover) {
  .app-back:hover { color: var(--ink, var(--text)); background: var(--hair, var(--line)); }
}
@media (max-width: 860px) {
  .app-back { padding: 0; margin-inline-end: 0; }
  .app-back__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* the terminal's bar is full (market, price, statistics, tools): the arrow alone at every width */
.page-terminal .app-back { padding: 0; margin-inline-end: 0; }
.page-terminal .app-back__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the headers that spread or grid their children: the certificate's keeps its logo beside the control; on a phone the
   terminal's grid gives it the logo's column (the market's name stays whole from 360 px; the logo shows on a computer) */
.ct-top > .app-back + .brand { margin-inline-end: auto; }
@media (max-width: 759px) {
  .page-terminal .top { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "back markets tools menu" "quote quote quote quote"; }
  .page-terminal .top > .app-back { grid-area: back; margin-inline-end: -8px; }
  .page-terminal .top > .app-back + .brand { display: none; }
}
