/*
 * Bullion Accounts license desk.
 *
 * Shares the POS's palette, typeface and card shapes (see the POS's
 * webroot/css/app.css): a client should not feel they have left the product when
 * they look at the desk, and you should not have to learn two visual languages.
 * Colour still carries one job only - brass for grace, red for locked - so the
 * state of a client is the first thing the eye lands on.
 *
 * Variable names are historical (--paper, --sheet, --ink, --rule); they now hold
 * the POS's values. Kept as-is so markup referring to them did not have to churn.
 */

:root {
  /* Same palette as the POS (webroot/css/app.css), so the desk and the shops
     look like one product. Names stay as they were so the rest of this file,
     and any markup referring to them, does not have to change. */
  --paper: #f5f7fb;          /* page */
  --sheet: #ffffff;          /* cards, table rows */
  --sheet-2: #eef2f8;        /* quiet fills, hovers */
  --sheet-3: #dfe6f0;
  --ink: #1a2338;
  --ink-soft: #4b5670;
  --ink-dim: #6f7a90;
  --rule: #e4e9f0;
  --rule-strong: #d1d9e5;

  /* Gold is the POS's accent, so it is the panel's too. */
  --action: #b8860b;
  --action-dark: #8f6708;
  --brass: #d4a017;
  --brass-ink: #8f6708;
  --brass-wash: rgba(212, 160, 23, 0.10);
  --margin: #dc2626;
  --margin-ink: #b91c1c;
  --margin-wash: rgba(220, 38, 38, 0.08);
  --green: #16a34a;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 4px 14px -8px rgba(15, 23, 42, 0.08);
  --ring: 0 0 0 3px rgba(212, 160, 23, 0.18);

  --step--1: 0.8125rem;
  --step-0: 0.875rem;
  --step-1: 1.0625rem;
  --step-2: 1.375rem;
  --step-3: 1.875rem;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(37, 99, 235, 0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(212, 160, 23, 0.05), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--action); text-underline-offset: 0.15em; }
a:hover { color: var(--action-dark); }

:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

h1, h2, h3 { margin: 0; line-height: 1.15; }

.title {
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.subtitle {
  font-size: var(--step-1);
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
}
.muted { color: var(--ink-soft); }
.small { font-size: var(--step--1); }
.nowrap { white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
.struck { text-decoration: line-through; color: var(--ink-soft); }

/* ---- frame ---- */
.bar {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #ffffff, #f8fafd);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bar__in, .page {
  max-width: 74rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.bar__in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding-top: 0.8rem;
  padding-bottom: 0.7rem;
}
.bar__name {
  display: flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  /* The logo carries the name, so the link needs no text of its own. */
}
.bar__logo {
  /* The source is 250x100, so 100px tall is as large as it stays crisp. 60 in
     the bar keeps the small "license desk" line under it readable without
     making the header taller than the content it sits above. */
  height: 60px;
  width: auto;
  max-width: 100%;
  display: block;
}
/* The toggle and its checkbox exist only for narrow screens; on a wide one the
   nav is simply a row and neither is rendered. */
.bar__check, .bar__toggle { display: none; }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.bar__link { color: var(--ink); text-decoration: none; padding: 0.15rem 0; border-bottom: 2px solid transparent; }
.bar__link:hover { border-bottom-color: var(--rule-strong); color: var(--ink); }
.bar__link[aria-current="page"] { border-bottom-color: var(--ink); font-weight: 600; }
.bar__nav form { display: inline; }
.bar__out {
  font: inherit; color: var(--ink-soft); background: none; border: 0; padding: 0.15rem 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.15em;
}
.bar__out:hover { color: var(--ink); }

.page { padding-top: 2rem; padding-bottom: 4rem; }
.page--narrow { max-width: 46rem; }

.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.head__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.crumb { font-size: var(--step--1); margin: 0 0 0.35rem; }

/* ---- the sentence under the title ---- */
.tally { margin: 0 0 1.5rem; font-size: var(--step-1); max-width: 62ch; line-height: 1.45; }
.tally strong { font-weight: 700; }
.tally__grace { color: var(--brass-ink); font-weight: 600; }
.tally__locked { color: var(--margin-ink); font-weight: 600; }

/* ---- flash ---- */
.flash {
  margin: 0 0 1.25rem;
  padding: 0.7rem 1rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--action);
}
.flash--error { border-left-color: var(--margin); }
.flash--warning { border-left-color: var(--brass); }

/* ---- ledger tables ---- */
.ledger-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); }
.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { padding: 0.6rem 0.8rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rule); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger th {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
.ledger th.num, .ledger td.num { text-align: right; }
.ledger tfoot td { border-top: 1px solid var(--rule-strong); border-bottom: 0; font-weight: 600; }

/* the margin column: state lives here, ruled off like a ledger margin */
.ledger .ledger__margin {
  width: 6.5rem;
  border-right: 1px solid var(--rule-strong);
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-soft);
}
.ledger tr[data-state="grace"] .ledger__margin { background: var(--brass-wash); color: var(--brass-ink); }
.ledger tr[data-state="locked"] .ledger__margin { background: var(--margin-wash); color: var(--margin-ink); }

.ledger__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.ledger__name:hover { text-decoration: underline; }
.ledger__sub { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.ledger__track { min-width: 12rem; width: 26%; }
.ledger__row-actions { display: flex; gap: 0.4rem; justify-content: flex-end; flex-wrap: wrap; }
.ledger tr.is-void td { color: var(--ink-soft); }

.empty { padding: 2.5rem 1.25rem; background: var(--sheet); border: 1px solid var(--rule); max-width: 40rem; }
.empty p { margin: 0 0 1rem; }

/* ---- the cycle track ---- */
.track {
  position: relative;
  display: flex;
  height: 0.6rem;
  margin: 0.55rem 0 0.3rem;
  background: var(--rule);
}
.track__paid { background: #cfe0cd; height: 100%; }
.track__grace {
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--brass) 0 3px, var(--brass-wash) 3px 6px);
}
.track__elapsed { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(21, 38, 30, 0.28); }
.track__today {
  position: absolute; top: -0.3rem; bottom: -0.3rem; width: 2px; margin-left: -1px; background: var(--ink);
}
.track--locked .track__elapsed { background: rgba(156, 47, 36, 0.45); }
.track--locked .track__today { background: var(--margin-ink); }
.track__caption { font-size: var(--step--1); color: var(--ink-soft); }
.track--large { height: 0.9rem; margin-top: 0.9rem; }
.track__ends { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--ink-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.55rem 0.95rem;
  border: 1px solid #ca9a06;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eab308, #ca9a06);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--quiet { background: transparent; color: var(--action); border-color: var(--rule-strong); }
.btn--quiet:hover { background: var(--sheet); color: var(--action-dark); border-color: var(--action); }
.btn--danger { background: transparent; color: var(--margin-ink); border-color: var(--margin); }
.btn--danger:hover { background: var(--margin-ink); border-color: var(--margin-ink); color: #fff; }
.btn--small { padding: 0.3rem 0.6rem; font-size: var(--step--1); }
form.inline { display: inline; }

/* ---- forms ---- */
.form { background: var(--sheet); border: 1px solid var(--rule); padding: 1.5rem; }
.form + .form { margin-top: 1.5rem; }
.form__title { font-size: var(--step-1); font-weight: 700; margin: 0 0 1rem; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1.25rem; }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.5rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 0.4rem; }

.field { margin: 0 0 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="number"],
.field input[type="date"], .field input[type="tel"], .field select, .field textarea, .input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--brass);
  box-shadow: var(--ring);
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--margin); }
.field__error { margin: 0.3rem 0 0; color: var(--margin-ink); font-size: var(--step--1); font-weight: 600; }
.field__help { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: var(--step--1); }
.field--affix { display: flex; align-items: stretch; }
.affix { display: flex; align-items: stretch; }
.affix input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.affix__text {
  display: flex; align-items: center; padding: 0 0.6rem; white-space: nowrap;
  border: 1px solid var(--rule-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); background: var(--paper);
}

.choice { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; margin: 0 0 0.55rem !important; cursor: pointer; }
.choice input { margin-top: 0.3rem; accent-color: var(--action); flex: none; }
.choice strong { display: block; font-weight: 600; }
.choice small { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.choice__extra { margin: 0.4rem 0 0.2rem; max-width: 14rem; }

/* ---- client page ---- */
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 1.5rem; }
.panel--grace { border-left: 4px solid var(--brass); border-radius: var(--radius); }
.panel--locked { border-left: 4px solid var(--margin); border-radius: var(--radius); }
.panel__state { font-size: var(--step-2); font-weight: 700; margin: 0; }
.panel__state--grace { color: var(--brass-ink); }
.panel__state--locked { color: var(--margin-ink); }

.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.25rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.key { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.key code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--step--1);
  background: #fff; border: 1px solid var(--rule); padding: 0.3rem 0.45rem; overflow-wrap: anywhere; user-select: all;
}

details.more { margin-top: 1rem; }
details.more summary { cursor: pointer; color: var(--action); font-weight: 600; }
details.more[open] summary { margin-bottom: 0.9rem; }

.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.history li:last-child { border-bottom: 0; }
.history__what { font-weight: 600; }

/* ---- filters ---- */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.filters .field { margin: 0; min-width: 9rem; }
.filters .field--wide { min-width: 14rem; }
.filters .choice { margin: 0 0 0.6rem !important; }

.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; font-size: var(--step--1); }
.pager ul { list-style: none; display: flex; gap: 0.75rem; margin: 0; padding: 0; }

/* ---- sign-in ---- */
.auth {
  /* Centred in the viewport rather than pinned near the top: the sign-in page
     has one job and nothing below the fold, so floating it in the middle reads
     as a door rather than as a page with its content missing. */
  max-width: 24rem;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth .form {
  border-radius: var(--radius);
  border-color: var(--rule);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem 1.4rem;
}
.auth__title { text-align: center; margin-bottom: 0.2rem; }
.auth__hint {
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--step--1);
  margin: 0 0 1.4rem;
}
.auth .field input { padding: 0.6rem 0.75rem; }
.auth .form__actions { margin-top: 1.3rem; }
/* One action, so it takes the full width: nothing else to choose between. */
.auth .btn {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: var(--step-0);
}
.auth .flash { border-radius: var(--radius-sm); border-left-width: 4px; }
.auth__logo {
  /* Full natural height: any larger and a 250x100 PNG starts to soften. */
  height: 100px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 1.75rem;
}

/* ---- small screens: the ledger becomes a stack of slips ---- */
@media (max-width: 47.5rem) {
  /* ---- the top bar on a phone ----
     Everything used to wrap into a pile: a 60px logo, four links and a Sign out
     button all on one line. Now the logo shrinks and the links go behind a
     button, which drops them as a list with targets big enough for a thumb. */
  .bar__in { gap: 0.5rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
  .bar__logo { height: 42px; }
  /* Focusable but invisible: a `hidden` checkbox cannot be reached by keyboard,
     and the label is the only thing that can open this menu. */
  .bar__check {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .bar__toggle {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    background: var(--sheet);
    color: var(--ink);
    font-weight: 600;
    font-size: var(--step--1);
    cursor: pointer;
    user-select: none;
  }
  .bar__check:checked ~ .bar__toggle,
  .bar__check:focus-visible ~ .bar__toggle { border-color: var(--brass); box-shadow: var(--ring); }

  /* Three bars that become an X when the menu is open, so the button says
     what pressing it again will do. */
  .bar__burger,
  .bar__burger::before,
  .bar__burger::after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 120ms ease, opacity 120ms ease;
  }
  .bar__burger { position: relative; }
  .bar__burger::before, .bar__burger::after { content: ""; position: absolute; left: 0; }
  .bar__burger::before { top: -5px; }
  .bar__burger::after { top: 5px; }
  .bar__check:checked ~ .bar__toggle .bar__burger { background: transparent; }
  .bar__check:checked ~ .bar__toggle .bar__burger::before { transform: translateY(5px) rotate(45deg); }
  .bar__check:checked ~ .bar__toggle .bar__burger::after { transform: translateY(-5px) rotate(-45deg); }

  /* The list itself: full width, under the bar, one row per destination. */
  .bar__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1.25rem 0.75rem;
    background: var(--sheet);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
  }
  .bar__nav { display: none; }
  .bar__check:checked ~ .bar__nav { display: flex; }

  .bar__link {
    padding: 0.8rem 0.25rem;        /* a thumb-sized target, not a text link */
    border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent;
    padding-left: 0.6rem;
  }
  .bar__link:hover { border-bottom-color: var(--rule); }
  .bar__link[aria-current="page"] {
    border-bottom-color: var(--rule);
    border-left-color: var(--brass);
    background: var(--brass-wash);
  }
  .bar__outform { margin-top: 0.5rem; }
  .bar__out { padding: 0.6rem 0.25rem; text-decoration: none; font-weight: 600; }

  .title { font-size: var(--step-2); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .ledger--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger--stack, .ledger--stack tbody, .ledger--stack tr, .ledger--stack td { display: block; width: 100%; }
  .ledger--stack tr { border-bottom: 1px solid var(--rule-strong); padding: 0.4rem 0 0.7rem; }
  .ledger--stack tbody tr:last-child { border-bottom: 0; }
  .ledger--stack td { border: 0; padding: 0.25rem 0.9rem; text-align: left !important; }
  .ledger--stack .ledger__margin { width: auto; border-right: 0; border-bottom: 1px solid var(--rule); padding: 0.4rem 0.9rem; margin-bottom: 0.35rem; }
  .ledger--stack td[data-label]::before { content: attr(data-label) " "; color: var(--ink-soft); font-size: var(--step--1); margin-right: 0.35rem; }
  .ledger--stack .ledger__track { width: 100%; min-width: 0; }
  .ledger--stack .ledger__row-actions { justify-content: flex-start; padding-top: 0.3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .bar__link { transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease; }
}

@media print {
  .bar, .btn, .filters, .head__actions { display: none !important; }
  body { background: #fff; }
}

/* ---- dashboard stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.25rem;
}
.stat {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat--grace { border-color: rgba(212, 160, 23, 0.45); }
.stat--locked { border-color: rgba(220, 38, 38, 0.35); }
.stat__label {
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat__value { font-size: var(--step-2); font-weight: 700; line-height: 1.1; }
.stat--grace .stat__value { color: var(--brass-ink); }
.stat--locked .stat__value { color: var(--margin-ink); }
.stat__sub { font-size: var(--step--1); color: var(--ink-soft); }

ul.bare { list-style: none; margin: 0.5rem 0 0; padding: 0; }
ul.bare li + li { margin-top: 0.2rem; }

/* ---- system check pills ---- */
.pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  border: 1px solid;
}
.pill--ok { color: #15803d; border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.08); }
.pill--warn { color: var(--brass-ink); border-color: rgba(212, 160, 23, 0.45); background: var(--brass-wash); }
.pill--bad { color: var(--margin-ink); border-color: rgba(220, 38, 38, 0.35); background: var(--margin-wash); }

/* ---- install as app ----
   Pinned to the bottom so it never covers the top bar or a page heading. Two
   shapes, switched by data-mode: "prompt" where the browser lets us install,
   "ios" where it does not and all we can do is point at the Share button. */
.pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  /* Clears the home indicator on a notched iPhone. */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px -16px rgba(15, 23, 42, 0.35);
  font-size: 13px;
  color: var(--ink);
}
.pwa-install[hidden] { display: none; }
.pwa-install-icon { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; }
.pwa-install-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pwa-install-text strong { font-size: 13.5px; }
.pwa-install-text span { color: var(--ink-soft); line-height: 1.4; }
.pwa-install-text .pwa-share-ic { width: 15px; height: 15px; vertical-align: -3px; color: #2563eb; }
.pwa-install .btn { padding: 0.4rem 0.8rem; font-size: 12.5px; }
.pwa-install-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.pwa-install[data-mode="ios"] .pwa-prompt { display: none; }
.pwa-install[data-mode="prompt"] .pwa-ios { display: none; }
/* Room at the foot of the page so the banner never hides the last row. */
body.has-pwa-banner .page,
body.has-pwa-banner .auth { padding-bottom: 7rem; }
@media (min-width: 700px) {
  .pwa-install { left: auto; right: 20px; bottom: 20px; width: 420px; }
}
