:root {
  --bg: #0e0d0c;
  --bg2: #0e0d0c;
  --card: #1c1a17;
  --card2: #1c1a17;
  --line: #3a3631;
  --line2: #262320;
  --text: #eae3d2;
  --dim: #8c857a;
  --accent: #e06a55;
  --accent-soft: rgba(224, 106, 85, 0.12);
  --blue: #3987e5;
  --ok: #6fb38f;
  --warn: #d9a441;
  --bad: #e06a55;
  --up: #4fb286;
  --down: #e0605a;
  --violet: #a585f0;
  --teal: #3fb5b0;
  --pink: #e07ab8;
  --shadow: none;
  --radius: 6px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}
:root[data-theme='light'] {
  --bg: #eae3d2;
  --bg2: #eae3d2;
  --card: #f3eee2;
  --card2: #f3eee2;
  --line: #c9c0ad;
  --line2: #dbd3c2;
  --text: #16130f;
  --dim: #5d574e;
  --accent: #8e2a1f;
  --accent-soft: rgba(142, 42, 31, 0.1);
  --blue: #2a78d6;
  --ok: #2f6b4f;
  --warn: #8a5f10;
  --bad: #8e2a1f;
  --up: #1f7a50;
  --down: #b3261e;
  --violet: #6b4bc4;
  --teal: #17777a;
  --pink: #a23b7a;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.skip {
  position: absolute;
  inset-inline-start: -999px;
}
.skip:focus {
  inset-inline-start: 8px;
  top: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 6px 10px;
  z-index: 99;
  border-radius: 6px;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
button:hover {
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
input[type='date']:focus,
iframe:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 10px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font:
    700 14px system-ui,
    sans-serif;
  letter-spacing: 0.22em;
}
.brand svg {
  color: var(--accent);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1;
}
nav a {
  color: var(--dim);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 2px;
  font-size: 13.5px;
  transition:
    color 0.2s,
    background 0.2s;
}
nav a:hover {
  color: var(--text);
}
nav a[aria-current='page'] {
  color: var(--accent);
  background: var(--accent-soft);
}
.tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tools button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
}
.ico {
  display: block;
  flex: none;
}
.conn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bad);
}
.conn.on {
  background: var(--ok);
}
.conn.poll {
  background: var(--accent);
}
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 8px;
  outline: 0;
}
.foot {
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
  padding: 22px 16px 34px;
}
.mono,
.num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.hero {
  padding: 28px 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.height {
  position: relative;
  font:
    700 clamp(46px, 12.5vw, 112px) / 1.02 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.since {
  position: relative;
  color: var(--dim);
}
.since b {
  color: var(--text);
  font-weight: 600;
}
.strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 22px;
  text-align: left;
}
.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
}
.chip small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.chip b {
  font:
    600 18px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
}
.hbar {
  position: relative;
  margin-top: 20px;
  text-align: left;
}
.hbar .lab {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 6px;
}
.track {
  height: 8px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s ease;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 14px;
  margin-top: 14px;
}
.panel {
  padding: 18px;
  position: relative;
  border-top: 2px solid var(--text);
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.big {
  font:
    700 28px/1.15 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
a.big {
  color: var(--accent);
  text-decoration: none;
}
.big small {
  font-size: 14px;
  color: var(--dim);
  font-weight: 500;
}
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  margin: 12px 0 0;
  font-size: 14px;
}
.kv dt {
  color: var(--dim);
}
.kv dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.bar-track {
  height: 8px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin: 12px 0 4px;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s ease;
}
.arc {
  display: block;
  margin: 2px auto 6px;
  max-width: 220px;
  width: 100%;
}
.arc text {
  fill: var(--text);
  font:
    700 24px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  text-anchor: middle;
}
.arc .sub {
  font: 500 10.5px system-ui;
  fill: var(--dim);
}
.arc .trk {
  stroke: var(--line);
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
}
.arc .val {
  stroke: var(--accent);
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.spark {
  width: 100%;
  height: 64px;
  display: block;
  margin: 8px 0 0;
}
.spark path.l {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.spark path.a {
  fill: url(#g);
  stroke: none;
}
.fees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.fees div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 4px;
}
.fees b {
  display: block;
  font:
    700 21px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  color: var(--accent);
}
.fees small {
  color: var(--dim);
  font-size: 11.5px;
}
.fees.rtl {
  direction: rtl;
}
.sec {
  margin: 26px 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.blocks {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
}
.blk {
  flex: 0 0 118px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.blk:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.blk b {
  display: block;
  font:
    700 15px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  color: var(--text);
  margin-top: 8px;
}
.blk span {
  color: var(--dim);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blk.cur {
  border-color: var(--accent);
}
.blk.cur b {
  color: var(--accent);
}
.blk.proj {
  border-style: dashed;
}
.cube {
  height: 54px;
  border-radius: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.cube i {
  display: block;
  width: 100%;
  background: var(--accent);
}

form.row,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
input,
select,
textarea {
  font: inherit;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 11px;
  min-width: 0;
  max-width: 100%;
}
.btn-go {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 700;
}
.btn-go:hover {
  filter: brightness(1.08);
}
/* way back to the dashboard from a block page (installed apps have no browser back button) */
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  margin: 0 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
h1 {
  font: 600 26px var(--serif);
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 4px 0 14px;
}
.dim {
  color: var(--dim);
}
.ok {
  color: var(--ok);
}
.bad {
  color: var(--bad);
}
.glossary dt {
  font-weight: 700;
  color: var(--accent);
  margin-top: 14px;
}
.glossary dd {
  margin: 3px 0 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line2);
  text-align: left;
}
th {
  color: var(--dim);
  font-weight: 600;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(6, 7, 7, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 12px;
  overflow: auto;
}
.modal[hidden] {
  display: none;
}
.sheet {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  width: min(580px, 100%);
  box-shadow: var(--shadow);
}
.x {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: transparent;
}
.toast {
  box-shadow: none;
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  z-index: 30;
  max-width: 92vw;
}
.toast[hidden] {
  display: none;
}
label.chk {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.tabs button[aria-selected='true'] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.reduced *,
.reduced *::before {
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.nico {
  display: none;
}
nav .navmore {
  display: none;
}
/* Wider screens: one row; links that do not fit go into More (app.js) instead of wrapping onto a second row */
@media (min-width: 641px) {
  nav {
    flex-wrap: nowrap;
    overflow: hidden;
    min-width: 0;
  }
  nav a {
    white-space: nowrap;
    flex: none;
  }
  nav a.over {
    display: none;
  }
  nav .navmore.show {
    display: block;
    flex: none;
    white-space: nowrap;
    color: var(--dim);
    background: none;
    border: 0;
    border-radius: 2px;
    padding: 6px 11px;
    font-size: 13.5px;
  }
  nav .navmore.show:hover {
    color: var(--text);
  }
  nav .navmore.cur {
    color: var(--accent);
    background: var(--accent-soft);
  }
}
.morelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.morelist a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.morelist a:hover,
.morelist a[aria-current='page'] {
  border-color: var(--accent);
  color: var(--accent);
}
/* Phones: the menu is a tab bar along the bottom (four pages and More), within thumb reach and never cut off */
@media (max-width: 640px) {
  nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    flex: none;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  nav a.xtra {
    display: none;
  }
  nav .tab,
  nav .navmore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    padding: 6px 2px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--dim);
    font-size: 11px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
  }
  nav .tab span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  nav .nico {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  nav a[aria-current='page'],
  nav .navmore.cur {
    color: var(--accent);
    background: none;
  }
  nav .navmore:hover {
    border: 0;
  }
  /* The dashboard scrolls like every other page: locked to the screen height (100dvh) with an inner scroll, browsers without
     dvh support (older iPhones) could not scroll it at all and the last row, the block strips, stayed behind this bar */
  body.fit {
    height: auto;
    overflow: visible;
    display: block;
  }
  body.fit main {
    overflow: visible;
  }
  body.fit .dashgrid {
    min-height: 0;
  }
  body:not(.clockmode) {
    padding-bottom: calc(57px + env(safe-area-inset-bottom));
  }
  .tools {
    margin-left: auto;
  }
  .toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 480px) {
  main {
    padding: 16px 14px 6px;
  }
  .hero {
    padding: 22px 14px 16px;
  }
  .fees {
    grid-template-columns: repeat(2, 1fr);
  }
}
:fullscreen body {
  overflow: auto;
}

/* ---- one-page dashboard ---- */
:root {
  --bar: 48px;
}
.bar {
  padding: 6px 14px;
  min-height: var(--bar);
}
.fit .foot {
  display: none;
}
.fit {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fit .bar {
  flex: 0 0 auto;
}
.fit main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  max-width: none;
  width: 100%;
}
.dashgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  min-height: 100%;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile h2 {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.tv {
  font:
    700 clamp(16px, 2.6vh, 28px) / 1.15 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tv a {
  color: var(--accent);
  text-decoration: none;
}
.ts {
  font-size: clamp(10.5px, 1.55vh, 13px);
  color: var(--dim);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Georgian letters are wide: a slightly smaller small print keeps the tiles' second lines whole */
html[lang='ka'] .ts {
  font-size: clamp(10.5px, 1.4vh, 12px);
}
.tile .arc {
  max-width: 120px;
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  display: none;
}
.tile .spark {
  height: 36px;
  margin: 2px 0;
}
.tile .bar-track {
  margin: 4px 0 2px;
}
.tile.hero {
  grid-column: 1/-1;
  border-top-color: var(--accent);
  text-align: center;
  justify-content: center;
  padding: 12px;
}
.hero .height {
  font-size: clamp(40px, 11vw, 64px);
  margin: 2px 0;
}
.hero .hbar {
  margin-top: 8px;
}
.tile .fees {
  gap: 4px;
}
.tile .fees div {
  padding: 4px 2px;
}
.tile .fees b {
  font-size: clamp(15px, 2.2vh, 20px);
}
.tile .fees small {
  font-size: 10px;
}
.strip2 {
  grid-column: 1/-1;
  display: flex;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}
.sgrp {
  min-width: 0;
  flex: 1 1 auto;
}
.sgrp:first-child:not(:only-child) {
  flex: 0 1 auto;
}
.sgrp h2 {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}
.strip2 .blocks {
  padding: 0 0 2px;
  gap: 6px;
  overflow-x: auto;
}
.strip2 .blk {
  flex: 0 0 76px;
  padding: 6px;
  font-size: 10.5px;
  border-radius: 6px;
}
.strip2 .blk b {
  font-size: 12px;
  margin-top: 4px;
}
.strip2 .cube {
  height: 26px;
  border-radius: 3px;
}
@media (max-width: 899px) {
  .ts.s1,
  .ts.s2,
  .ts.s3,
  .ts.s4 {
    display: none;
  }
  .strip2 {
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
  }
  .strip2 .sgrp,
  .strip2 .sgrp:first-child:not(:only-child) {
    flex: 0 0 auto;
  }
  .strip2 .blocks {
    overflow: visible;
  }
  .strip2 .sgrp:first-child:not(:only-child) .blocks {
    flex-direction: row-reverse;
  }
  .strip2 .sgrp:first-child:not(:only-child) h2 {
    text-align: right;
  }
  .strip2 .sgrp + .sgrp {
    border-left: 2px dashed var(--line);
    margin-left: 8px;
    padding-left: 8px;
  }
  .strip2 .blk {
    flex-basis: 64px;
  }
  .fit main {
    padding: 6px 8px;
  }
  .dashgrid {
    gap: 6px;
  }
  .tile {
    padding: 6px 8px;
  }
  .tv {
    font-size: 16px;
  }
  .tile h2 {
    font-size: 9.5px;
  }
  .tile .spark {
    height: 24px;
    margin: 0;
  }
  .tile .bar-track {
    margin: 2px 0;
  }
  .tile.hero {
    padding: 8px;
  }
  .hero .height {
    font-size: 44px;
    margin: 0;
  }
  .hero .hbar {
    margin-top: 4px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .tile .fees {
    grid-template-columns: repeat(4, 1fr);
  }
  .tile .fees b {
    font-size: 14px;
  }
  .tile .fees div {
    padding: 2px;
  }
  .bar {
    padding: 4px 10px;
    gap: 2px 10px;
  }
  nav {
    gap: 0;
  }
  nav a,
  nav .navmore.show {
    padding: 3px 8px;
    font-size: 12.5px;
  }
  .brand {
    font-size: 12.5px;
  }
  .bar button {
    padding: 4px 9px;
  }
}
@media (min-width: 640px) and (max-width: 899px) {
  .dashgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Tall tablets in portrait: two columns (an even grid, no lone tile), larger figures centred in each tile instead of a tall empty box */
@media (min-width: 641px) and (max-width: 899px) and (min-height: 900px) {
  .dashgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .tile {
    justify-content: center;
    padding: 10px 16px;
  }
  .tv {
    font-size: clamp(20px, 2.6vh, 28px);
  }
  .tile h2 {
    font-size: 11px;
  }
  .ts {
    font-size: 13px;
  }
  .tile .fees b {
    font-size: 20px;
  }
  .tile .spark {
    height: clamp(28px, 4vh, 48px);
  }
  .hero .height {
    font-size: clamp(56px, 8vh, 96px);
  }
  .btc b {
    font-size: 22px;
  }
}
/* Phones and tablets: the block strip keeps its own height (its dashed divider no longer runs down a stretched row) */
@media (max-width: 899px) {
  .strip2 {
    align-self: end;
  }
}
@media (min-width: 900px) {
  .fit main {
    overflow: hidden;
  }
  .dashgrid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1.25fr repeat(var(--rows, 2), 1fr) auto;
    gap: 10px;
    height: 100%;
  }
  .tile.hero {
    grid-column: span 2;
    grid-row: 1;
  }
  .tile {
    padding: 10px 14px;
  }
  .tile .arc {
    display: block;
  }
  .hero .height {
    font-size: clamp(48px, 9vw, min(15vh, 120px));
  }
  .tile .spark {
    height: clamp(28px, 5vh, 56px);
  }
  .strip2 .blk {
    flex-basis: 96px;
  }
  .strip2 .cube {
    height: clamp(22px, 4vh, 40px);
  }
}
@media (min-width: 900px) and (max-height: 640px) {
  .fit main {
    overflow: auto;
  }
  .dashgrid {
    height: auto;
    min-height: 100%;
    grid-template-rows: auto;
  }
}

.btc {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  justify-content: center;
  align-items: baseline;
  margin-top: 2px;
}
.btc b {
  font:
    700 clamp(16px, 2.8vh, 26px) ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
}
.btc .chg {
  font-size: 12.5px;
  color: var(--dim);
}
.btc .src {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 899px) {
  .btc b {
    font-size: 15px;
  }
  .btc .chg,
  .btc .src {
    font-size: 10.5px;
  }
}

.cube {
  border: 1px solid var(--line);
}
.cube i {
  border-radius: 0;
}

/* ---- richer tiles ---- */
.gfx {
  display: none;
}
.minis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 6px;
}
.mini small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.mini b {
  font:
    600 clamp(12px, 1.8vh, 16px) ui-monospace,
    Menlo,
    monospace;
  font-variant-numeric: tabular-nums;
}
.chartbox {
  flex: 1 1 auto;
  min-height: 34px;
}
.chartbox svg {
  width: 100%;
  height: 100%;
  display: block;
}
.cap {
  font-size: 11px;
  color: var(--dim);
}
.stack {
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  margin: 2px 0;
}
.stack i {
  display: block;
  min-width: 2px;
}
.lastviz {
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}
.bigcube {
  width: clamp(44px, 8vh, 84px);
  flex: 0 0 auto;
}
.bigcube .cube {
  height: clamp(44px, 8vh, 84px);
}
.fillnote {
  font:
    600 clamp(12px, 1.8vh, 16px) ui-monospace,
    Menlo,
    monospace;
  min-width: 0;
  flex: 1;
}
.fillnote .stripe {
  height: 8px;
  border-radius: 2px;
  margin: 5px 0 3px;
  border: 1px solid var(--line);
}
.fillnote small {
  display: block;
  font:
    500 11px system-ui,
    sans-serif;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 900px) and (min-height: 641px) {
  .gfx {
    display: block;
  }
  .lastviz.gfx {
    display: flex;
  }
  .minis.gfx,
  .chartbox.gfx {
    display: grid;
  }
  .chartbox.gfx {
    display: flex;
  }
  .tile {
    gap: 5px;
  }
  .tile h2 {
    font-size: 11px;
  }
  .tv {
    font-size: clamp(20px, 3.4vh, 36px);
  }
  .ts {
    font-size: clamp(11.5px, 1.8vh, 15px);
  }
  .tile .arc {
    max-width: none;
    width: auto;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    align-self: center;
  }
  .tile .spark {
    height: auto;
    flex: 1 1 auto;
    min-height: 30px;
    margin: 2px 0;
  }
  .tile .fees b {
    font-size: clamp(20px, 3.6vh, 36px);
  }
  .tile .fees small {
    font-size: 11px;
  }
  .tile .fees div {
    padding: 8px 4px;
  }
  .t-fees .tv {
    margin-top: 2px;
  }
  .t-fees .fees small.gfx {
    display: block;
  }
  .t-halving,
  .t-diff {
    position: relative;
  }
}

/* fixes: stacks are flex rows, two detail lines where a graphic is shown, arcs shrink to fit */
@media (min-width: 900px) and (min-height: 641px) {
  .stack.gfx {
    display: flex;
  }
  .tv {
    font-size: clamp(18px, 3vh, 30px);
  }
  .ts {
    font-size: clamp(11px, 1.6vh, 14px);
  }
  .tile .ts.s2,
  .tile .ts.s3 {
    display: none;
  }
  .t-price .ts.s1 {
    display: none;
  }
  .tile .arc {
    flex: 1 1 0;
    min-height: 44px;
    height: 100%;
    max-width: 100%;
  }
  .tile .chartbox {
    flex: 1 1 0;
    min-height: 30px;
  }
  .tile .spark {
    flex: 1 1 0;
    min-height: 30px;
    height: 100%;
  }
  .bigcube {
    width: clamp(40px, 7vh, 72px);
  }
  .bigcube .cube {
    height: clamp(40px, 7vh, 72px);
  }
  .strip2 .cube {
    height: clamp(18px, 3vh, 30px);
  }
  .strip2 .blk {
    padding: 5px;
  }
  .t-halving .ts.s2 {
    display: block;
  }
  .t-halving .ts.s3 {
    display: none;
  }
}

/* ---- calmer pass: one graphic per tile, graphics fill the tile, nothing left empty ---- */
.gfx {
  display: block;
}
@media (min-width: 900px) and (min-height: 641px) {
  .tile {
    justify-content: space-between;
    padding: 12px 16px;
  }
  .tile .ts {
    font-size: clamp(12px, 1.7vh, 15px);
  }
  .tile .ts.s1 {
    display: none;
  }
  .t-price .ts.s1 {
    display: none;
  }
  .tile .arc,
  .tile .spark,
  .tile .chartbox,
  .tile .lastviz,
  .tile .fees,
  .tile .minis,
  .tile .stack {
    flex: 1 1 0;
    min-height: 0;
  }
  .tile .stack {
    display: flex;
    max-height: 64px;
    min-height: 28px;
    margin: 6px 0;
  }
  .tile .fees {
    display: grid;
    margin: 6px 0;
    gap: 8px;
  }
  .tile .fees div {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .tile .fees .est {
    display: block;
    color: var(--dim);
  }
  .tile .minis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 10px 14px;
  }
  .tile .mini b {
    font-size: clamp(15px, 2.6vh, 24px);
  }
  .tile .mini small {
    font-size: 11px;
  }
  .tile .lastviz {
    display: flex;
    margin: 6px 0;
  }
  .tile .cap {
    font-size: 11.5px;
  }
  .hero .height {
    font-size: clamp(52px, 10vw, min(18vh, 130px));
  }
  .btc b {
    font-size: clamp(20px, 3.6vh, 34px);
  }
}

/* compact screens (phones, short windows): numbers only, so everything fits without scrolling */
.tile .fees .est {
  display: none;
}
@media (max-width: 899px), (max-height: 640px) {
  .tile .chartbox,
  .tile .stack,
  .tile .cap,
  .tile .lastviz,
  .tile .minis,
  .tile .emission {
    display: none;
  }
}
@media (min-width: 900px) and (min-height: 641px) {
  .t-fees .tv {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
  }
  .t-fees .fees {
    flex: 1 1 auto;
    min-height: 0;
  }
  .t-fees .tv {
    margin: 6px 0;
  }
}

.less {
  display: none;
}
@media (max-width: 899px) {
  .more {
    display: none;
  }
  .less {
    display: inline;
  }
}
@media (min-width: 900px) and (min-height: 641px) {
  .tile .fees .est {
    display: block;
  }
}
/* Price tile: its four small figures sit close enough to fit on every screen tall enough to show them */
@media (min-width: 900px) and (min-height: 641px) {
  .tile .minis {
    align-content: space-evenly;
    gap: 2px 14px;
  }
  .tile .mini b {
    display: block;
    line-height: 1.2;
  }
}
/* Short laptop windows (720-860 px tall): smaller height, tighter tiles, so no tile clips or overlaps */
@media (min-width: 900px) and (min-height: 641px) and (max-height: 860px) {
  .hero .height {
    font-size: clamp(48px, 9vw, min(14vh, 130px));
  }
  .btc b {
    font-size: clamp(18px, 3vh, 28px);
  }
  .tile {
    padding: 8px 14px;
  }
  .tile .ts {
    font-size: 12px;
  }
  .dashgrid {
    gap: 8px;
  }
  .tile .fees {
    margin: 4px 0;
    gap: 6px;
  }
  .tile .fees div {
    padding: 2px;
  }
  .tile .fees .est {
    display: none;
  }
  .t-fees .tv {
    margin: 4px 0;
  }
  .tile .mini b {
    font-size: clamp(14px, 2.2vh, 18px);
  }
  .tile .mini small {
    font-size: 10px;
  }
  .tile .lastviz {
    margin: 4px 0;
  }
  .bigcube,
  .bigcube .cube {
    width: clamp(36px, 6vh, 52px);
  }
  .bigcube .cube {
    height: clamp(36px, 6vh, 52px);
  }
  .legend {
    gap: 0 10px;
  }
  .legend small {
    font-size: 10.5px;
  }
}
/* Shortest of those (up to 720 px): keep each tile's main figures, drop the extras */
@media (min-width: 900px) and (min-height: 641px) and (max-height: 720px) {
  .t-price .mini:nth-child(n + 3),
  .t-ln .legend,
  .t-mem .cap {
    display: none;
  }
  .hero .height {
    font-size: clamp(48px, 9vw, 12vh);
  }
  .tile .ts {
    font-size: 11.5px;
    line-height: 1.25;
  }
}

.btc .chg.up {
  color: var(--up);
}
.btc .chg.down {
  color: var(--down);
}
.support {
  margin-top: 14px;
}
.tip-qr {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 6px 0 12px;
  border-radius: 4px;
  background: #fff;
}
.tip-addr {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 10px;
}
.support .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
html {
  overscroll-behavior-y: none;
}
.ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top) - 36px);
  left: 50%;
  transform: translate(-50%, 0);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  z-index: 60;
  pointer-events: none;
}
.ptr.ready {
  color: var(--accent);
  border-color: var(--accent);
}
.ptr.spin {
  animation: ptr-spin 0.8s linear infinite;
  transform: translate(-50%, 90px);
}
@keyframes ptr-spin {
  from {
    transform: translate(-50%, 90px) rotate(0);
  }
  to {
    transform: translate(-50%, 90px) rotate(360deg);
  }
}
.channels {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  columns: 2 220px;
  column-gap: 24px;
}
.channels li {
  break-inside: avoid;
}
.channels a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  box-sizing: border-box;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.channels a:hover {
  text-decoration: underline;
}
.panel .sites-h {
  margin-top: 22px;
}
/* Clock mode: only the height, time since the last block and the price, as large as the screen allows */
.clockmode .bar,
.clockmode .foot {
  display: none;
}
.clockmode main {
  max-width: none;
  padding: 0;
}
.clockview {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5vh;
  padding: 24px 16px;
  position: relative;
}
.clockview .eyebrow {
  font-size: clamp(12px, 2vw, 20px);
}
.clock-h {
  font:
    700 clamp(64px, 21vw, 38vh) / 1 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.clockview .since {
  font-size: clamp(16px, 2.6vw, 30px);
}
.clockview .btc {
  font-size: clamp(14px, 2.2vw, 26px);
}
.clockview .btc b {
  font-size: clamp(22px, 4.5vw, 56px);
}
.clockview .final {
  margin-top: 2.5vh;
  padding-top: 2vh;
  border-top: 1px dashed var(--line);
  max-width: min(640px, 100%);
}
.clockview .final .eyebrow {
  font-size: clamp(11px, 1.6vw, 15px);
}
.final-t {
  font:
    700 clamp(20px, 4.2vw, 44px) / 1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}
.clockview .final p {
  margin: 0;
  font-size: clamp(12px, 1.6vw, 16px);
  text-wrap: balance;
}
/* a short landscape screen (a phone on its side): tighter, and the final block's countdown without its sentence */
@media (max-height: 420px) {
  .clockview {
    gap: 0.8vh;
    padding: 10px 16px;
  }
  .clockview .final {
    margin-top: 1vh;
    padding-top: 1vh;
  }
  .clockview .final p {
    display: none;
  }
}
.clock-x {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 16px;
  color: var(--dim);
  text-decoration: none;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 4px;
}
.clock-x:hover {
  color: var(--text);
}
.txid {
  word-break: break-all;
  margin: -4px 0 12px;
}
.share {
  margin-top: 12px;
}
/* an address's recent transactions: in (green) and out (red) */
.addrtxs {
  width: 100%;
  font-size: 14px;
}
.addrtxs td {
  padding: 4px 8px 4px 0;
}
.addrtxs .num {
  text-align: right;
  white-space: nowrap;
}
/* a past block: its transactions as squares coloured by fee rate */
.blkpic {
  display: block;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 8px auto 10px;
  border-radius: 6px;
}
#blk-health,
#blk-pic,
#blk-txs {
  margin-top: 14px;
}
/* a phone: a block's rows with huge fee rates or amounts (3,600,000 sat/vB, 40.75 BTC) may wrap rather than widen the page */
@media (max-width: 480px) {
  #blk-txs .addrtxs {
    font-size: 12px;
  }
  #blk-txs .addrtxs .num {
    white-space: normal;
  }
}
/* a transaction's inputs and outputs, and what they tell about its privacy */
.txflow,
.txpriv {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.flow .prev {
  text-decoration: none;
}
.txpriv ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 6px;
}
/* a waiting transaction whose fee is too low: what can be done */
.stuck {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.stuck ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.stuck li {
  margin-bottom: 6px;
}
.paytable {
  width: 100%;
  margin-top: 6px;
  font-size: 14px;
}
.paytable td {
  padding: 4px 8px 4px 0;
  white-space: nowrap;
}
.paytable td.num {
  text-align: right;
  white-space: nowrap;
}
/* Accessibility: text for screen readers only; focus ring on the scrollable block strips; readable button and tab text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.blocks:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-go {
  color: var(--bg);
}
.tabs button[aria-selected='true'] {
  color: var(--text);
}
/* Charts page: one range selector above four single-series line charts */
.tabs button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}
.chartgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 14px;
  margin-top: 4px;
}
.cpanel .cbody {
  transition: opacity 0.2s;
}
.cpanel.busy .cbody {
  opacity: 0.45;
}
.chead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 2px 0 6px;
}
.chead .cval {
  font:
    700 22px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
}
.chead .clog {
  font-size: 12px;
}
.lchart {
  position: relative;
  padding-top: 4px;
  border-radius: 4px;
}
.lchart:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.lchart .plot {
  position: relative;
  height: 180px;
  margin-left: 64px;
  touch-action: pan-y;
  cursor: crosshair;
}
.lchart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lchart .ln {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lchart .grid {
  stroke: var(--line2);
  stroke-width: 1;
}
/* long-term charts: more lines (a second series, or one per halving cycle) and a dashed guide such as 1x */
.lchart .ln.c1 {
  stroke: var(--violet);
  stroke-width: 1.5;
}
.lchart .ln.c2 {
  stroke: var(--teal);
  stroke-width: 1.5;
}
.lchart .ln.c3 {
  stroke: var(--blue);
  stroke-width: 1.5;
}
.lchart .ln.c4 {
  stroke: var(--accent);
}
.lchart .ln.rib {
  stroke: var(--violet);
  stroke-width: 1.25;
}
.lchart .guide {
  stroke: var(--dim);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
/* mempool by fee rate: stacked areas in the fee colours, the total as a thin line on top, a ramp of the colours used */
#ch-mempool {
  margin-top: 14px;
}
.mpbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 2px 0 8px;
}
.mpbar .tabs {
  margin: 0;
  flex-wrap: wrap;
}
.tabs.mprange {
  flex-wrap: wrap;
}
.mpbar button,
.tabs.mprange button {
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}
.lchart .area {
  stroke: none;
}
.lchart .ln.mptotal {
  stroke: var(--text);
  stroke-width: 1;
}
.mpnote {
  font-size: 12px;
  margin: 0 0 6px;
}
.mplegend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 6px;
}
.mpramp {
  display: flex;
  flex: 0 1 220px;
  height: 8px;
  border-radius: 2px;
  overflow: hidden;
}
.mpramp i {
  flex: 1;
}
.clegend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 6px;
}
.clegend span::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--accent);
}
.clegend .c1::before {
  background: var(--violet);
}
.clegend .c2::before {
  background: var(--teal);
}
.clegend .rib::before {
  background: var(--violet);
}
.clegend .c3::before {
  background: var(--blue);
}
.lchart .ylab {
  position: absolute;
  right: 100%;
  width: 60px;
  margin-right: 4px;
  text-align: right;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1.2;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
}
.lchart .xlabs {
  direction: ltr; /* time runs left to right in every language, like the line above it */
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
  margin: 6px 0 0 64px;
}
.lchart .xh {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
  background: var(--dim);
  pointer-events: none;
}
.lchart .xd {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--card);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.lchart .tip {
  position: absolute;
  top: -4px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.lchart .tip b {
  font:
    600 14px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
}
.lchart .tip span {
  color: var(--dim);
}
.lchart [hidden] {
  display: none;
}
.ctable {
  margin-top: 8px;
  font-size: 13px;
}
.ctable summary {
  cursor: pointer;
  color: var(--dim);
}
.ctable table {
  width: 100%;
  margin-top: 6px;
}
.ctable td.num {
  text-align: right;
}
.cpanel .cbody {
  min-height: 267px;
}
@media (max-width: 480px) {
  .cpanel .cbody {
    min-height: 289px;
  }
} /* reserve the chart's height so nothing jumps when it loads */
main:empty + .foot {
  visibility: hidden;
} /* until the app has drawn the page, so the footer does not appear under the header and then jump */
/* Phones: the smallest labels one step larger so they stay readable (titles 9.5->11px, captions and block labels 10.5->11.5px) */
@media (max-width: 899px) {
  .tile h2,
  .hero .eyebrow,
  .sgrp h2,
  .tile .fees small {
    font-size: 11px;
  }
  .tile h2 {
    letter-spacing: 0.06em;
  } /* tighter so titles wrap no more often than before */
  .strip2 .blk,
  .btc .chg,
  .btc .src {
    font-size: 11.5px;
  }
  .ts {
    font-size: clamp(11.5px, 1.55vh, 13px);
  }
}
/* Tile titles: the short form on phone and tablet widths (narrow tiles), the full form on desktop */
.tile h2 .tshort {
  display: none;
}
@media (max-width: 899px) {
  .tile h2 .tfull {
    display: none;
  }
  .tile h2 .tshort {
    display: inline;
  }
  .tile h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
} /* never wrap: a font wider than expected ends in an ellipsis instead of pushing the tile down */
/* About page: embed section */
#embed textarea {
  width: 100%;
  font:
    12px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px;
  resize: vertical;
}
.emb-prev {
  display: block;
  border: 0;
  max-width: 100%;
  margin: 4px 0 12px;
  border-radius: 6px;
}
/* "Your block" */
.mycard .myh {
  font:
    700 clamp(40px, 10vw, 84px) / 1.05 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 4px 0;
}
.mycard .myh a {
  color: var(--accent);
  text-decoration: none;
}
.mycard .myh a:hover {
  text-decoration: underline;
}
.mycard .kv {
  margin: 10px 0 4px;
}
#my-out {
  margin-top: 14px;
}
/* "Mining": the block being mined, drawn live */
.strip2 .blk.mining {
  border-color: var(--accent);
}
.strip2 .blk.mining span:last-child {
  color: var(--accent);
}
.minehead {
  display: grid;
  grid-template-columns: minmax(0, min(58vh, 560px)) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  border-top-color: var(--accent);
}
.minehead p {
  margin: 6px 0;
}
.minehead .myh {
  color: var(--accent);
}
.scenebox {
  margin: 0;
  min-width: 0;
}
#scene {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 4px;
  overflow: hidden;
}
canvas.scene {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--text);
  touch-action: manipulation;
}
.scene-tip {
  position: absolute;
  pointer-events: none;
  white-space: pre;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 8px;
  font:
    12px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  z-index: 2;
}
.scene-tip[hidden] {
  display: none;
}
.scenebox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 6px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.legend small {
  font:
    11px ui-monospace,
    Menlo,
    monospace;
  color: var(--dim);
  white-space: nowrap;
}
.legend .stripe {
  flex: 1;
  display: block;
  height: 8px;
  border-radius: 2px;
  border: 1px solid var(--line);
}
.minehead .found {
  color: var(--ok);
  font-weight: 600;
}
.hasher {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  margin: 12px 0;
}
.hasher small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 8px 0 2px;
}
.hasher .hrow b {
  font-size: 20px;
  color: var(--text);
}
.hasher ol {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.hasher li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.hasher li .bad {
  font-size: 12px;
}
.panel .note {
  font-size: 13px;
  margin: 12px 0 0;
}
.hashes {
  margin-top: 14px;
}
.hashes small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
}
.hashlink {
  text-decoration: none;
}
.hash {
  display: block;
  font:
    12px/1.45 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
  word-break: break-all;
  color: var(--text);
  min-width: 0;
}
.hash .z {
  color: var(--accent);
  font-weight: 700;
}
.hash.miss {
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.hash.target {
  color: var(--text);
}
.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 0;
}
.pools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pools li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  font-size: 14px;
}
.pools b {
  font:
    600 14px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
.pools .bar-track {
  grid-column: 1/-1;
  display: block;
  margin: 0;
  height: 6px;
}
.pools .bar-fill {
  display: block;
}
.pools .bar-fill.rest {
  background: var(--dim);
}
@media (max-width: 760px) {
  .minehead {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .minehead {
    padding: 12px;
  }
}
.minetop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Mining page: the pool ranking and past adjustments, two wider panels side by side (one above the other on a phone) */
.mgrid2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  align-items: start;
}
.tscroll {
  overflow-x: auto;
}
.ranktable {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.ranktable th,
.ranktable td {
  padding: 7px 6px;
  text-align: start;
}
.ranktable tbody th {
  color: var(--text);
  font-weight: 500;
}
.ranktable .num {
  text-align: end;
  white-space: nowrap;
}
.ranktable thead th,
.ranktable thead .num {
  white-space: normal;
  hyphens: auto;
  overflow-wrap: anywhere;
} /* a long header word may break on a phone (Moeilijkheid); the numbers below stay on one line */
.morebtn {
  margin-top: 10px;
}
@media (max-width: 480px) {
  .ranktable {
    font-size: 12px;
  }
  .ranktable th,
  .ranktable td {
    padding: 6px 3px;
  }
  .ranktable .opt {
    display: none;
  } /* the estimated hashrate: the share already says it, and a phone has no room */
}
.soundbtn {
  font-size: 12.5px;
  padding: 5px 10px;
  color: var(--dim);
}
.soundbtn[aria-pressed='true'] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.follow {
  margin: 12px 0 0;
}
.follow .eyebrow {
  display: block;
  margin-bottom: 4px;
}
.frow {
  display: flex;
  gap: 8px;
}
.frow input {
  flex: 1;
  font:
    12.5px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
}
.fstatus {
  margin: 8px 0 2px;
  font-weight: 600;
}
.fstatus.accent {
  color: var(--accent);
}
.fstatus.big2 {
  font-size: 17px;
}
.flinks {
  gap: 14px;
  margin: 0;
  font-size: 13.5px;
}

/* Trading chart (trade-chart.js): toolbar, header, canvas plot with an HTML legend */
.tpanel {
  margin: 4px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tpanel:fullscreen {
  margin: 0;
  padding: 14px;
  background: var(--card);
  overflow: auto;
}
.thead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}
.thead h2 {
  margin: 0;
}
.tprice {
  font:
    600 24px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
}
.tchg {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.tpanel .up {
  color: var(--up);
}
.tpanel .down {
  color: var(--down);
}
.lstate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--dim);
  margin-left: auto;
}
.lstate i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
}
.lstate.on i {
  background: var(--up);
}
.tbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.tbar .tabs {
  margin: 0;
  flex-wrap: wrap;
}
.tbar .tabs button {
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}
.tind .sw {
  display: inline-block;
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: var(--sw);
  margin-right: 6px;
  vertical-align: middle;
}
.tind button[aria-pressed='false'] .sw {
  opacity: 0.35;
}
.ttools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  min-width: 0;
}
.ttools select,
.tbtn {
  font: inherit;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  min-height: 34px;
  cursor: pointer;
}
.tbtn[aria-pressed='true'] {
  border-color: var(--accent);
}
.tplot {
  position: relative;
  height: 460px;
  touch-action: none;
  cursor: crosshair;
  border-radius: 4px;
  user-select: none;
  -webkit-user-select: none;
}
.tplot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.tplot canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.tlegend {
  position: absolute;
  left: 6px;
  top: 4px;
  right: 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  pointer-events: none;
}
.tlegend div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.tlegend b {
  font-weight: 600;
}
.tlegend .dimv {
  color: var(--text);
}
.tnote,
.thelp {
  margin: 0;
  font-size: 12px;
}
h2.hist {
  margin: 8px 0 6px;
}
@media (max-width: 600px) {
  .tplot {
    height: 360px;
  }
  .tbar {
    gap: 6px;
  }
  .tbar .tabs {
    gap: 4px;
  }
  .tbar .tabs button,
  .ttools select,
  .tbtn {
    font-size: 13px;
    padding: 4px 8px;
    min-height: 32px;
  }
  .ttools {
    margin-left: 0;
  }
  .tprice {
    font-size: 20px;
  }
  .lstate {
    margin-left: 0;
  }
}

/* Trading chart: tools, alerts, order book and trades beside the plot */
.tgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}
.tgrid.noside {
  grid-template-columns: minmax(0, 1fr);
}
.tgrid.noside .tside {
  display: none;
}
.tmain {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tplot.drawing {
  cursor: copy;
}
.tplot.pick {
  cursor: pointer;
}
.ttool .ticon {
  display: inline-block;
  width: 1.1em;
  margin-right: 4px;
  text-align: center;
}
.tbtn:disabled {
  opacity: 0.45;
  cursor: default;
}
.talerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.talerts:empty {
  display: none;
}
.talert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  border: 1px solid var(--warn);
  color: var(--text);
  border-radius: 4px;
  padding: 2px 2px 2px 8px;
}
.talert button {
  border: 0;
  background: none;
  color: var(--dim);
  cursor: pointer;
  padding: 2px 6px;
  min-height: 0;
  font-size: 12px;
}
.thint {
  margin: 0;
  font-size: 12px;
  min-height: 1em;
}
.thint:empty {
  display: none;
}
.tside {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font:
    12px ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-variant-numeric: tabular-nums;
}
.tside h3 {
  margin: 0;
  font:
    600 12px/1.4 system-ui,
    sans-serif;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.book,
.trades {
  display: flex;
  flex-direction: column;
}
.brow {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 6px;
  padding: 1px 4px;
  position: relative;
  line-height: 1.55;
}
.brow span {
  position: relative;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brow span:first-child {
  text-align: left;
}
.brow.bhead {
  color: var(--dim);
  font-family: system-ui, sans-serif;
  font-size: 11px;
  border-bottom: 1px solid var(--line2);
}
/* a long heading (Russian, Georgian) takes two lines instead of being cut */
.brow.bhead span {
  white-space: normal;
  line-height: 1.25;
  align-self: end;
  padding-bottom: 2px;
}
.book .brow.ask,
.book .brow.bid {
  background: linear-gradient(to left, var(--bar) var(--d, 0%), transparent var(--d, 0%));
}
.book .brow.ask {
  --bar: color-mix(in srgb, var(--down) 16%, transparent);
}
.book .brow.bid {
  --bar: color-mix(in srgb, var(--up) 16%, transparent);
}
.brow.ask span:first-child {
  color: var(--down);
}
.brow.bid span:first-child {
  color: var(--up);
}
.bspread {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px;
  border-block: 1px solid var(--line2);
  font-weight: 600;
}
.bspread span:last-child {
  color: var(--dim);
  font-weight: 400;
}
.tlist {
  max-height: 300px;
  overflow: auto;
}
.bwait {
  margin: 4px 0;
}
@media (max-width: 1000px) {
  .tgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    align-items: start;
  }
  .tside h3:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .tside h3:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .tside .bwrap {
    grid-column: 1;
    grid-row: 2;
  }
  .tside .twrap {
    grid-column: 2;
    grid-row: 2;
  }
}
@media (max-width: 600px) {
  .tside {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .tgrid:not(.noside) {
    align-items: stretch;
  }
  .tgrid:not(.noside) .tplot {
    height: 600px;
  }
  .tgrid:not(.noside) .tside {
    height: 0;
    min-height: 100%;
    overflow: hidden;
  }
  .tside .twrap {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .tside .trades {
    min-height: 0;
    flex: 1 1 0;
  }
  .tside .tlist {
    max-height: none;
    flex: 1 1 0;
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .tplot.panes {
    height: 480px;
  }
}
.tplot.panes {
  height: 540px;
}
@media (min-width: 1001px) {
  .tgrid:not(.noside) .tplot.panes {
    height: 640px;
  }
}
.tlist:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.book .bp {
  all: unset;
  color: inherit;
  font: inherit;
  display: inline;
}
.book .brow span:first-child {
  position: static;
}
.book.armed .bp {
  cursor: pointer;
}
.book.armed .bp::after {
  content: '';
  position: absolute;
  inset: 0;
}
.book.armed .brow[data-p]:hover {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.book .bp:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Full screen: the panel is exactly the screen; the plot takes whatever the toolbar leaves (beats every fixed height above).
   On narrow screens the order book would sit below the chart, so it is left out until full screen ends. */
.tpanel:fullscreen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  gap: 8px;
}
.tpanel:fullscreen .tgrid {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
}
.tpanel:fullscreen .tmain {
  min-height: 0;
}
.tpanel:fullscreen .tgrid .tplot.tplot,
.tpanel:fullscreen .tgrid:not(.noside) .tplot.tplot {
  height: auto;
  flex: 1 1 0;
  min-height: 200px;
}
.tpanel:fullscreen .thelp {
  display: none;
}
@media (max-width: 1000px) {
  .tpanel:fullscreen .tgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tpanel:fullscreen .tside {
    display: none;
  }
}
.book .bp[hidden] {
  display: none;
}
input,
select,
textarea,
progress {
  accent-color: var(--accent);
}
.alarms > .panel + .panel {
  margin-top: 14px;
}
.alarms .panel > p.dim:first-of-type {
  margin-top: 0;
}
.alarms h3.sec {
  margin: 22px 0 6px;
}
.alarms table {
  width: 100%;
}
.alarms > h1 {
  text-transform: uppercase;
}
.mgrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.soundbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.soundbtn[aria-pressed='true'] .slash {
  display: none;
}
.paytable td {
  vertical-align: top;
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--line2);
}
.paytable td:last-child {
  padding-right: 0;
}
.paytable tr:last-child td {
  border-bottom: 0;
}
.paytable td small {
  display: block;
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.glossary {
  margin: 0;
  columns: 2 340px;
  column-gap: 44px;
}
.glossary > div {
  break-inside: avoid;
  padding: 0 0 14px;
}
.glossary > div:first-child dt {
  margin-top: 0;
}
.glossary dd {
  color: var(--text);
  line-height: 1.55;
}
.glossary dt {
  margin-top: 0;
}
.glossary > div {
  padding-bottom: 16px;
}
.calc .grid {
  align-items: start;
}
.calc #c-sats,
.calc #c-fiat,
.calc #c-h {
  flex: 1 1 120px;
}
.alarms .row > input,
.alarms .row > select {
  flex: 1 1 150px;
}
/* polish: fee labels never break mid-word (they inherit the tile value's anywhere-wrapping); a long one ends in an ellipsis */
.tile .fees small {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
.tile .fees div {
  min-width: 0;
}
.ttools select {
  min-width: 4.8em;
}
:root[data-theme='light'] .btc .chg.up {
  color: #196a45;
} /* 5.1:1 on the light page background, where --up is just under 4.5:1 */
@media (max-width: 480px) {
  .tile.t-fees .fees {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .tile.t-fees .fees div {
    padding: 2px 4px;
  }
  .tile.t-fees .fees b {
    font-size: 15px;
  }
} /* phones: 2x2, so "Nächster" or "Sonraki" fits */
main:focus {
  outline: none;
} /* focus lands here after following a link inside the page; the page itself needs no ring */
/* Settings, Dashboard: the tile list, each with its switch and buttons to move it up or down */
.tilelist {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
}
.tilelist li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}
.tilelist .chk {
  flex: 1 1 0;
  min-width: 0;
  hyphens: auto;
  overflow-wrap: break-word;
  margin: 4px 0;
  min-height: 40px;
}
.tilelist .mv {
  flex: none;
}
.tilelist .mv {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}
.tilelist .mv:disabled {
  opacity: 0.35;
  cursor: default;
}
#modal .tabs[role='tablist'] {
  flex-wrap: wrap;
} /* five settings tabs: a second row on narrow phones rather than cut off */
/* Block strips with more blocks out of view fade out at that edge */
.strip2 .more-r {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.strip2 .more-l {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 56px), transparent);
}
.strip2 .more-l.more-r {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.strip2.more-l,
.strip2.more-r {
  -webkit-mask-image: none;
  mask-image: none;
} /* phones scroll the whole row: its own edges fade instead, below */
@media (max-width: 899px) {
  .strip2.more-r {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
  .strip2.more-l {
    -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
  }
  .strip2.more-l.more-r {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }
}
a.mini {
  color: inherit;
  text-decoration: none;
  display: block;
}
a.mini:hover small,
a.mini:focus-visible small {
  text-decoration: underline;
}
.pushpanel .pu-l {
  display: block;
  margin: 10px 0 4px;
}
.pushpanel #pu-url {
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
}

/* Clock mode on a screen that stays on (#/clock?kiosk, #/clock?eink) */
body.kiosk,
body.kiosk * {
  cursor: none;
}
.clockview .stale {
  margin: 0;
  min-height: 1.4em;
  font-size: clamp(12px, 1.6vw, 16px);
  color: var(--accent);
}
body.eink {
  --bg: #fff;
  --card: #fff;
  --text: #000;
  --dim: #000;
  --accent: #000;
  --line: #000;
  background: #fff;
  color: #000;
}
body.eink *,
body.eink *::before,
body.eink *::after {
  transition: none !important;
  animation: none !important;
}
body.eink .clock-h {
  letter-spacing: 0;
}

/* Devanagari and Bengali letters join up and Thai stacks its vowel marks, so letter spacing pulls them apart:
   Hindi, Nepali, Bengali and Thai get none (the Latin brand name keeps it). */
:is([lang='hi'], [lang='ne'], [lang='bn'], [lang='th']) :not(.brand, .brand *) {
  letter-spacing: normal !important;
}

/* Right-to-left languages: a value takes its direction from its own text, so numbers with Latin units keep reading
   left to right ("+9.11%", "60,405 USD") while one with an Arabic word stays right to left. */
[dir='rtl'] :where(b, small, span:not(.more, .less), a, div, p, li, dd, td, th, label, output):not(:has(*)),
[dir='rtl'] .ts {
  unicode-bidi: plaintext;
  /* line up with the parent's side, not with the text's own direction (prefixed form for Chromium and Safari) */
  text-align: -webkit-match-parent;
  text-align: match-parent;
}
/* Block strips run in time order, oldest to newest, left to right, whatever the language. */
[dir='rtl'] .strip2 {
  direction: ltr;
}
/* Send a signed transaction: a full-width paste box, then what it does and the Send button */
.sendform label {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
}
.sendform textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 7.5em;
  font-size: 12px;
  word-break: break-all;
  resize: vertical;
}
.sendform .row {
  margin-top: 8px;
}
.sendview .panel + .panel,
.sendview #snd-out .panel {
  margin-top: 14px;
}
.sendview .txid {
  word-break: break-all;
}
.sendview .err,
.warnline {
  color: var(--warn);
}
.sendstatus {
  margin-top: 12px;
}
.sendstatus .btn-go {
  margin-top: 4px;
}
/* an address as a QR code: black on white in both themes, never wider than a phone allows */
#addr-qr {
  margin-top: 14px;
}
#addr-qr .qr {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px auto;
  border-radius: 4px;
}
